- 论坛徽章:
- 0
|
新学oracle备份与恢复。环境:win2000 server+oracle8.1.7
备份脚本:(已做好archivelog,catalog)
create script back {
allocate channel n1 type disk;
backup database
format '/data/backup/ora8_%d_%s_%p';
release channel n1;}
run{execute script back;}
以上可以正确通过。
恢复脚本:
run{
allocate channel n1 type disk;
restore database;
recover database;
sql "alter database open resetlogs";
release channel n1;}
rman报错:
RMAN-03022: compiling command: allocate
RMAN-03026: error recovery releasing channel resources
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure during compilation of command
RMAN-03013: command type: allocate
RMAN-06004: ORACLE error from recovery catalog database: ORA-03114: not connected to ORACLE
RMAN-06097: text of failing SQL statement: begin dbms_rcvman . resetAll ; :succe
ss := dbms_rcvman . SUCCESS ; :av
RMAN-06099: error occurred in source file: krmk.pc, line: 9397
请高人帮忙!!! |
|