IT貓撲網(wǎng):您身邊最放心的安全下載站! 最新更新|軟件分類|軟件專題|手機版|論壇轉(zhuǎn)貼|軟件發(fā)布

您當(dāng)前所在位置: 首頁數(shù)據(jù)庫Oracle → oracle 10g rman全庫備份腳本例子

oracle 10g rman全庫備份腳本例子

時間:2015-06-28 00:00:00 來源:IT貓撲網(wǎng) 作者:網(wǎng)管聯(lián)盟 我要評論(0)

  測試:

  run

  {

  allocate channel t1 device type disk format='db_%U.bak';

  backup database plus archivelog delete all input;

  release channel t1;

  }

  全庫備份加切換歸檔,并刪除已備份歸檔:

  CONFIGURE MAXSETSIZE to 295m;

  backup database format='db_%U.bak' plus archivelog delete all input;

  -------------

  Starting backup at 11-JUN-09

  current log archived

  using channel ORA_DISK_1

  channel ORA_DISK_1: starting archive log backupset

  channel ORA_DISK_1: specifying archive log(s) in backup set

  input archive log thread=1 sequence=5 recid=22 stamp=689273809

  channel ORA_DISK_1: starting piece 1 at 11-JUN-09

  channel ORA_DISK_1: finished piece 1 at 11-JUN-09

  piece handle=/u04/app/oracle/product/9.2.0/dbs/05khauui_1_1 comment=NONE

  channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02

  channel ORA_DISK_1: deleting archive log(s)

  archive log filename=/u04/arch/1_5.dbf recid=22 stamp=689273809

  Finished backup at 11-JUN-09

  Starting backup at 11-JUN-09

  using channel ORA_DISK_1

  channel ORA_DISK_1: starting full datafile backupset

  channel ORA_DISK_1: specifying datafile(s) in backupset

  including current controlfile in backupset

  input datafile fno=00001 name=/u04/app/oracle/oradata/test/system01.dbf

  channel ORA_DISK_1: starting piece 1 at 11-JUN-09

  channel ORA_DISK_1: finished piece 1 at 11-JUN-09

  piece handle=/u04/app/oracle/product/9.2.0/dbs/db_06khauuk_1_1.bak comment=NONE

  channel ORA_DISK_1: backup set complete, elapsed time: 00:01:56

  channel ORA_DISK_1: starting full datafile backupset

  channel ORA_DISK_1: specifying datafile(s) in backupset

  input datafile fno=00006 name=/u04/app/oracle/oradata/test/test01.dbf

  input datafile fno=00004 name=/u04/app/oracle/oradata/test/tools01.dbf

  channel ORA_DISK_1: starting piece 1 at 11-JUN-09

  channel ORA_DISK_1: finished piece 1 at 11-JUN-09

  piece handle=/u04/app/oracle/product/9.2.0/dbs/db_07khav29_1_1.bak comment=NONE

  channel ORA_DISK_1: backup set complete, elapsed time: 00:00:55

  channel ORA_DISK_1: starting full datafile backupset

  channel ORA_DISK_1: specifying datafile(s) in backupset

  input datafile fno=00002 name=/u04/app/oracle/oradata/test/undotbs01.dbf

  input datafile fno=00003 name=/u04/app/oracle/oradata/test/indx01.dbf

  input datafile fno=00005 name=/u04/app/oracle/oradata/test/users01.dbf

  channel ORA_DISK_1: starting piece 1 at 11-JUN-09

  channel ORA_DISK_1: finished piece 1 at 11-JUN-09

  piece handle=/u04/app/oracle/product/9.2.0/dbs/db_08khav40_1_1.bak comment=NONE

  channel ORA_DISK_1: backup set complete, elapsed time: 00:01:05

  Finished backup at 11-JUN-09

  Starting backup at 11-JUN-09

  current log archived

  using channel ORA_DISK_1

  channel ORA_DISK_1: starting archive log backupset

  channel ORA_DISK_1: specifying archive log(s) in backup set

  input archive log thread=1 sequence=6 recid=23 stamp=689274050

  channel ORA_DISK_1: starting piece 1 at 11-JUN-09

  channel ORA_DISK_1: finished piece 1 at 11-JUN-09

  piece handle=/u04/app/oracle/product/9.2.0/dbs/09khav63_1_1 comment=NONE

  channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02

  channel ORA_DISK_1: deleting archive log(s)

  archive log filename=/u04/arch/1_6.dbf recid=23 stamp=689274050

  Finished backup at 11-JUN-09

關(guān)鍵詞標(biāo)簽:oracle

相關(guān)閱讀

文章評論
發(fā)表評論

熱門文章 Oracle中使用alter table來增加,刪除,修改列的語法 Oracle中使用alter table來增加,刪除,修改列的語法 oracle中使用SQL語句修改字段類型-oracle修改SQL語句案例 oracle中使用SQL語句修改字段類型-oracle修改SQL語句案例 誤刪Oracle數(shù)據(jù)庫實例的控制文件 誤刪Oracle數(shù)據(jù)庫實例的控制文件 為UNIX服務(wù)器設(shè)置Oracle全文檢索 為UNIX服務(wù)器設(shè)置Oracle全文檢索

相關(guān)下載

    人氣排行 oracle中使用SQL語句修改字段類型-oracle修改SQL語句案例 Oracle中使用alter table來增加,刪除,修改列的語法 ORACLE SQL 判斷字符串是否為數(shù)字的語句 ORACLE和SQL語法區(qū)別歸納(1) oracle grant 授權(quán)語句 ORACLE修改IP地址后如何能夠使用 如何加速Oracle大批量數(shù)據(jù)處理 Oracle刪除表的幾種方法