#!/bin/bash #oracle_rman.sh/script run by oracle week_daily=`date +%a` date=`date +%Y%m%d` bak_dir=/data/rman/$date log=${bak_dir}/$date.log case ${week_daily} in "Sun") level=0;; "Mon") level=2;; "
原创 2014-03-31 16:00:57
793阅读
日常习惯使用netbackup进行数据库备份,但是经常环境中无netbackup,因此的自己写个脚本脚本很简单,主要是写费时间,因此贴出来以备后用:全备:cat arch_rman_backup.sh: source /home/oracle/.bash_profile rman target / log=/u01/app/script/arch_rman.log<<EOF run
原创 2018-09-28 11:41:48
1915阅读
      将windows下用RMAN进行自动备份脚本,且自动拷贝备份文件到其它机器(windows)的脚本       将各个文件存放的目录结构进行了优化,而且对脚本中用到的环境变量的命名也进行了彻底整改,目的是为了方便维护,达到见其名,知其意。 [red]使用前提:[/red] 看readme/readme
转载 精选 2010-08-17 21:51:44
2293阅读
oracle@dbservera ~]$ crontab -l0 0 * * * /u01/rmanbak/rmanbak.sh > /u01/r
原创 2022-08-17 08:55:42
96阅读
Windows下oracle RMAN备份脚本
转载 精选 2012-03-06 11:57:58
4678阅读
一、linux/unix平台最小负载rman备份脚本#!/bin/sh. ~/.bash_profileDATE=`date +%Y-%m-%d-%H-%M-%S`daterman target / log=/backup/log_$DATE <<eofrun{allocate channel c1 type disk maxpiecesize=200M;sql 'alter syst
转载 2023-03-13 21:28:01
1470阅读
1点赞
1. 建备份目录 oradataback,2级目录archback(放归档日志)、rmanscripts(备份脚本), 在rmanscripts下面建  rmanlevel0.sh  rmanlevel1.sh  rmanlevel2.sh 文件:  mkdir oradataback  --home/oracle/app/oradata
翻译 精选 2011-09-28 16:36:05
3369阅读
oracle
原创 2023-03-10 10:18:39
100阅读
D盘新建一个文件夹backup_file,里面新建一个文件夹logs 一个文件叫auto_full_one_rman.bat 修改这三处 set oracle_sid=wiicare rman
原创 2022-08-27 00:05:15
289阅读
本文选自http://blog.csdn.net/sopost/article/details/4734395一.创建RMANCATALOGRMAN可以之用控制文件来存储RMAN备份metadata,也可以配置CATALOG来存储RMAN备份信息.一般来说最好在另一数据库上配置CATALOG来管理RMAN备份信息,这样当所有的控制文件都无效的时候还可以保证用CATALOG来重建控制文件和数据库
转载 精选 2013-09-22 16:23:28
888阅读
2点赞
run {configure retention policy to recovery window of 14 days;configure controlfile autobackup on;configure controlfile autobackup format for device type disk to 'E:\backup\controlfile\bak_%F'
原创 2012-06-14 09:16:00
479阅读
在数据库中启用块跟踪alter database enable block change tracking;alter database enable block change tracking using file '/u01/app/oracle/track/blockchange.trc';取消块跟踪alter database disable block change tracking查看
原创 2015-08-09 18:55:48
677阅读
[oracle@11rac1 ~]$ cat hot_rman_backup.sh #!/bin/sh # $Header: hot_database_backup.sh,v 1.3 2010/08/04 17:56:02 $ # # ---------------------------------------------------------------------------# this
转载 精选 2014-02-28 13:11:10
504阅读
rman备份脚本
原创 2019-06-26 13:50:01
1061阅读
run {configure retention policy to recovery window of 14 days;configure controlfile autobackup on;configure controlfile autobackup format for device type disk to 'E:\backup\controlfile\bak_%F';allocate channel c1 device type disk format 'E:\backup\data\bak_%u';allocate channel c2 dev
转载 2012-06-14 09:16:00
60阅读
2评论
RMAN备份、一致性备份脚本run{shutdown immediate; startup mount;allocate channel c1 type disk;allocate channel c2 typ...
转载 2013-10-14 19:27:00
69阅读
2评论
##===========================================================  ##   dbn.sh    ##          BACKUP
转载 2023-05-24 14:05:52
58阅读
全备 run{ allocate channel c1 device type disk; backup database format '/app/oracle/backup/full_%d_%T_%s_%p.bak'; sql 'alter system archive log current'; sql 'alter system archive log current'; s
原创 2023-10-23 09:11:22
130阅读
rman 脚本 level 0: [oracle@oracle scripts]$ cat rman_level0.rcv connect target / run{     CONFIGURE CONTROLFILE AUTOBACKUP ON;     CONFIGURE CONTROLFILE AUTOBACKUP FO
原创 2010-06-10 13:06:48
1494阅读
2评论
rman脚本备份数据库: 第一步:写三个脚本,分别0 级,1级,2级备份 1. vi .bakl0.sh # user env source /home/oracle/.bash_profile export ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/db_1 export ORACLE_SID=E812 export BAC
原创 2012-04-11 09:59:23
697阅读
  • 1
  • 2
  • 3
  • 4
  • 5