Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
2009-10-17
Page 1
rman catalog
run {
set until time "to_date('02.04.2009 03:54:32', 'DD.MM.YYYY HH24:MI:SS')" ;
allocate channel ch1 type 'SBT_TAPE' parms 'ENV=(TDPO_OPTFILE
/usr/tivoli/tsm/client/oracle/bin64/tdpoconf showenv -TDPO_OPTfile=/tui/npmdb/pat/oracle/admin/NPMT/scripts/TDPO/tdpo.NPMP.opt)';
restore controlfile;
}
10. SQL>alter database mount ;
11. Restore database as below
run {
set until time "to_date('02.04.2009 03:54:32', 'DD.MM.YYYY HH24:MI:SS')" ;
allocate channel ch1 type 'SBT_TAPE' parms 'ENV=(TDPO_OPTFILE
/usr/tivoli/tsm/client/oracle/bin64/tdpoconf showenv -TDPO_OPTfile=/tui/npmdb/pat/oracle/admin/NPMT/scripts/TDPO/tdpo.NPMP.opt)';
@setnewname.sql
restore ( database);
switch datafile all;
recover database delete archivelog;
}
12. SQL> alter database open resetlogs;
ERROR at line 1:
ORA-38856: cannot mark instance UNNAMED_INSTANCE_2 (redo thread 2) as enabled
Got error as below due to Bug 4355382 and solution is set the hidden parameter
13. alter system set "_no_recovery_through_resetlogs"=TRUE
14. Rename the Database name with NID
Nid target=/ dbname=NPMT
15. Uncomment all cluster parameters and restart the DB and change the DBname to NPMT
16. SQL>Startup pfile=initNPMT1.ora
17. Enable thread for 2:
SQL> alter database enable public thread 2;
alter database enable public thread 2
ERROR at line 1:
ORA-01613: instance UNNAMED_INSTANCE_2 (thread 2) only has 0 logs - at least 2 logs
required to enable.
18. Add 5 groups as below for Thread 2 to avoid the above error
alter database add logfile thread 2 group 6 size 1G;
2009-10-17
Page 2
2009-10-17
Page 3