Oracle远程备份 - Windows

1,On the machine where you wish to write the files to, create a shared drive granting the user 'Administrator' FULL Control.
2,Make sure that the Oracle services for the TARGET DB need to be reconfigured to logon using an Administrator account (preferably a Domain Administrator).
3,C:\>rman target / nocatalog;
  RMAN> CONFIGURE DEFAULT DEVICE TYPE TO DISK;
  RMAN> CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO BACKUPSET PARALLELISM 2;
  RMAN> configure controlfile autobackup on;
  RMAN> CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 2;
  RMAN> CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 2;
   
4, Make sure that the database is running in ARCHIVELOG mode.
   If database is running in NON ARCHIVELOG Mode. run the following command:
   SQL> shutdown immediate;
   SQL> startup mount;
   SQL> alter database archivelog;
   SQL> alter database open;
   
5,Connect to OEM using sysdba and then click the 'Maintenance' link, click 'Schedule Backup'. Configure the 'Schedule Customized Backup' step by step till the last step.
  Modify the RMAN scripts to like the following:
    backup device type disk tag '%TAG' database include current controlfile format 'D:\Oracle\product\10.2.0\backup\R1020CN\%U','\\zhzhao-cn\sharefolder\backup\%U';
    backup device type disk tag '%TAG' archivelog all not backed up;
    delete noprompt obsolete device type disk;

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值