|
注意Oracle的controlfile trace脚本的set2有问题,要加上until cancel:
- [oracle@station90 ~]$ vim control10d-after.sql
- [oracle@station90 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Thu Sep 7 19:28:08 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected to an idle instance.
- SQL> startup
- ORACLE instance started.
- Total System Global Area 6680915968 bytes
- Fixed Size 2213936 bytes
- Variable Size 3556771792 bytes
- Database Buffers 3087007744 bytes
- Redo Buffers 34922496 bytes
- ORA-00205: error in identifying control file, check alert log for more info
- SQL> @control10d-after.sql
- Control file created.
- PL/SQL procedure successfully completed.
- PL/SQL procedure successfully completed.
- PL/SQL procedure successfully completed.
- PL/SQL procedure successfully completed.
- PL/SQL procedure successfully completed.
- PL/SQL procedure successfully completed.
- PL/SQL procedure successfully completed.
- PL/SQL procedure successfully completed.
- SQL> alter database open ;
- alter database open
- *
- ERROR at line 1:
- ORA-01113: file 1 needs media recovery
- ORA-01110: data file 1: '+DATA/orcl/datafile/system.256.816169553'
- SQL> recover database;
- Media recovery complete.
- SQL> alter database open ;
- Database altered.
- SQL> select name fromv$tempfile;
- select name fromv$tempfile
- *
- ERROR at line 1:
- ORA-00923: FROM keyword not found where expected
- SQL> select name from v$tempfile;
- no rows selected
- SQL> select file_name from dba_temp_files;
- no rows selected
- SQL> alter tablespace temp add tempfile '+Data' size 30M autoextend on ;
- Tablespace altered.
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, OLAP, Data Mining and Real Application Testing options
- [oracle@station90 ~]$ rman target /
- Recovery Manager: Release 11.2.0.1.0 - Production on Thu Sep 7 19:40:33 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1343950367)
- RMAN> exit
- Recovery Manager complete.
- [oracle@station90 ~]$ rman target / catalog u90/oracle_4U@rcat
- Recovery Manager: Release 11.2.0.1.0 - Production on Thu Sep 7 19:41:06 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1343950367)
- connected to recovery catalog database
- RMAN> backup tag 'NEWBACKUP' incremental level 0 database plus archivelog delete all input;
- starting full resync of recovery catalog
- full resync complete
- Starting backup at 07-SEP-17
- current log archived
- allocated channel: ORA_SBT_TAPE_1
- channel ORA_SBT_TAPE_1: SID=9 device type=SBT_TAPE
- channel ORA_SBT_TAPE_1: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_2: SID=71 device type=SBT_TAPE
- channel ORA_SBT_TAPE_2: Oracle Secure Backup
- channel ORA_SBT_TAPE_1: starting archived log backup set
- channel ORA_SBT_TAPE_1: specifying archived log(s) in backup set
- input archived log thread=1 sequence=20 RECID=5 STAMP=954099825
- input archived log thread=1 sequence=21 RECID=6 STAMP=954099826
- input archived log thread=1 sequence=22 RECID=7 STAMP=954099826
- channel ORA_SBT_TAPE_1: starting piece 1 at 07-SEP-17
- channel ORA_SBT_TAPE_2: starting archived log backup set
- channel ORA_SBT_TAPE_2: specifying archived log(s) in backup set
- input archived log thread=1 sequence=23 RECID=8 STAMP=954099826
- input archived log thread=1 sequence=24 RECID=9 STAMP=954099826
- input archived log thread=1 sequence=29 RECID=1 STAMP=954098976
- input archived log thread=1 sequence=30 RECID=2 STAMP=954098976
- input archived log thread=1 sequence=31 RECID=3 STAMP=954098977
- channel ORA_SBT_TAPE_2: starting piece 1 at 07-SEP-17
- channel ORA_SBT_TAPE_1: finished piece 1 at 07-SEP-17
- piece handle=02sdsq3i_1_1 tag=NEWBACKUP comment=API Version 2.0,MMS Version 10.4.0.4
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:25
- channel ORA_SBT_TAPE_1: deleting archived log(s)
- archived log file name=+FRA/orcl/archivelog/2017_09_07/thread_1_seq_20.262.954073551 RECID=5 STAMP=954099825
- archived log file name=+FRA/orcl/archivelog/2017_09_07/thread_1_seq_21.261.954073587 RECID=6 STAMP=954099826
- archived log file name=+FRA/orcl/archivelog/2017_09_07/thread_1_seq_22.263.954079971 RECID=7 STAMP=954099826
- channel ORA_SBT_TAPE_1: starting archived log backup set
- channel ORA_SBT_TAPE_1: specifying archived log(s) in backup set
- input archived log thread=1 sequence=32 RECID=4 STAMP=954099812
- channel ORA_SBT_TAPE_1: starting piece 1 at 07-SEP-17
- channel ORA_SBT_TAPE_2: finished piece 1 at 07-SEP-17
- piece handle=03sdsq3i_1_1 tag=NEWBACKUP comment=API Version 2.0,MMS Version 10.4.0.4
- channel ORA_SBT_TAPE_2: backup set complete, elapsed time: 00:00:26
- channel ORA_SBT_TAPE_2: deleting archived log(s)
- archived log file name=+FRA/orcl/archivelog/2017_09_07/thread_1_seq_23.264.954088595 RECID=8 STAMP=954099826
- archived log file name=+FRA/orcl/archivelog/2017_09_07/thread_1_seq_24.265.954097927 RECID=9 STAMP=954099826
- archived log file name=+FRA/orcl/archivelog/2017_09_07/thread_1_seq_29.271.954098977 RECID=1 STAMP=954098976
- archived log file name=+FRA/orcl/archivelog/2017_09_07/thread_1_seq_30.272.954098977 RECID=2 STAMP=954098976
- archived log file name=+FRA/orcl/archivelog/2017_09_07/thread_1_seq_31.273.954098977 RECID=3 STAMP=954098977
- channel ORA_SBT_TAPE_1: finished piece 1 at 07-SEP-17
- piece handle=04sdsq4b_1_1 tag=NEWBACKUP comment=API Version 2.0,MMS Version 10.4.0.4
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:25
- channel ORA_SBT_TAPE_1: deleting archived log(s)
- archived log file name=+FRA/orcl/archivelog/2017_09_07/thread_1_seq_32.275.954099813 RECID=4 STAMP=954099812
- Finished backup at 07-SEP-17
- Starting backup at 07-SEP-17
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_1: starting incremental level 0 datafile backup set
- channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
- input datafile file number=00001 name=+DATA/orcl/datafile/system.256.816169553
- input datafile file number=00005 name=+DATA/orcl/datafile/example.265.816169651
- channel ORA_SBT_TAPE_1: starting piece 1 at 07-SEP-17
- channel ORA_SBT_TAPE_2: starting incremental level 0 datafile backup set
- channel ORA_SBT_TAPE_2: specifying datafile(s) in backup set
- input datafile file number=00002 name=+DATA/orcl/datafile/sysaux.257.816169553
- input datafile file number=00003 name=+DATA/orcl/datafile/undotbs1.258.816169553
- input datafile file number=00004 name=+DATA/orcl/datafile/users.259.816169553
- channel ORA_SBT_TAPE_2: starting piece 1 at 07-SEP-17
- channel ORA_SBT_TAPE_1: finished piece 1 at 07-SEP-17
- piece handle=05sdsq57_1_1 tag=NEWBACKUP comment=API Version 2.0,MMS Version 10.4.0.4
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:25
- channel ORA_SBT_TAPE_2: finished piece 1 at 07-SEP-17
- piece handle=06sdsq58_1_1 tag=NEWBACKUP comment=API Version 2.0,MMS Version 10.4.0.4
- channel ORA_SBT_TAPE_2: backup set complete, elapsed time: 00:00:25
- Finished backup at 07-SEP-17
- Starting backup at 07-SEP-17
- current log archived
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_1: starting archived log backup set
- channel ORA_SBT_TAPE_1: specifying archived log(s) in backup set
- input archived log thread=1 sequence=33 RECID=10 STAMP=954099905
- channel ORA_SBT_TAPE_1: starting piece 1 at 07-SEP-17
- channel ORA_SBT_TAPE_1: finished piece 1 at 07-SEP-17
- piece handle=07sdsq63_1_1 tag=NEWBACKUP comment=API Version 2.0,MMS Version 10.4.0.4
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:25
- channel ORA_SBT_TAPE_1: deleting archived log(s)
- archived log file name=+FRA/orcl/archivelog/2017_09_07/thread_1_seq_33.275.954099905 RECID=10 STAMP=954099905
- Finished backup at 07-SEP-17
- Starting Control File and SPFILE Autobackup at 07-SEP-17
- piece handle=c-1343950367-20170907-01 comment=API Version 2.0,MMS Version 10.4.0.4
- Finished Control File and SPFILE Autobackup at 07-SEP-17
- RMAN> exit
- RMAN-06900: WARNING: unable to generate V$RMAN_STATUS or V$RMAN_OUTPUT row
- RMAN-06901: WARNING: disabling update of the V$RMAN_STATUS and V$RMAN_OUTPUT rows
- ORACLE error from target database:
- ORA-03135: connection lost contact
- Process ID: 21348
- Session ID: 75 Serial number: 308
- Recovery Manager complete.
- [oracle@station90 ~]$ rman target /
- Recovery Manager: Release 11.2.0.1.0 - Production on Thu Sep 7 19:55:51 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database (not started)
- RMAN> startup
- Oracle instance started
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03002: failure of startup command at 09/07/2017 19:55:58
- ORA-00205: error in identifying control file, check alert log for more info
- RMAN> list backup of controlfile;
- using target database control file instead of recovery catalog
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03002: failure of list command at 09/07/2017 19:56:23
- ORA-01507: database not mounted
- RMAN> exit
- Recovery Manager complete.
- [oracle@station90 ~]$ rman target / catalog u90/oracle_4U@rcat
- Recovery Manager: Release 11.2.0.1.0 - Production on Thu Sep 7 19:56:49 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (not mounted)
- connected to recovery catalog database
- RMAN> list backup of controlfile;
- List of Backup Sets
- ===================
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ ---------------
- 195 Full 9.67M DISK 00:00:00 07-SEP-17
- BP Key: 196 Status: AVAILABLE Compressed: NO Tag: TAG20170907T193823
- Piece Name: +FRA/orcl/autobackup/2017_09_07/s_954099503.274.954099503
- Control File Included: Ckp SCN: 1109658 Ckp time: 07-SEP-17
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ ---------------
- 254 Full 9.75M SBT_TAPE 00:00:16 07-SEP-17
- BP Key: 256 Status: AVAILABLE Compressed: NO Tag: TAG20170907T194534
- Handle: c-1343950367-20170907-01 Media: station90-000003
- Control File Included: Ckp SCN: 1110190 Ckp time: 07-SEP-17
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ ---------------
- 287 Full 9.75M SBT_TAPE 00:00:16 07-SEP-17
- BP Key: 291 Status: AVAILABLE Compressed: NO Tag: LABS-11A-CONTROLFILE
- Handle: 09sdsqgp_1_1 Media: station90-000001
- Control File Included: Ckp SCN: 1111253 Ckp time: 07-SEP-17
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ ---------------
- 288 Full 9.75M SBT_TAPE 00:00:15 07-SEP-17
- BP Key: 292 Status: AVAILABLE Compressed: NO Tag: TAG20170907T195115
- Handle: c-1343950367-20170907-02 Media: station90-000001
- Control File Included: Ckp SCN: 1111296 Ckp time: 07-SEP-17
- RMAN> restore controlfile from tag 'LABS-11A-CONTROLFILE';
- Starting restore at 07-SEP-17
- allocated channel: ORA_DISK_1
- channel ORA_DISK_1: SID=68 device type=DISK
- allocated channel: ORA_DISK_2
- channel ORA_DISK_2: SID=131 device type=DISK
- allocated channel: ORA_DISK_3
- channel ORA_DISK_3: SID=192 device type=DISK
- allocated channel: ORA_DISK_4
- channel ORA_DISK_4: SID=8 device type=DISK
- allocated channel: ORA_DISK_5
- channel ORA_DISK_5: SID=69 device type=DISK
- allocated channel: ORA_DISK_6
- channel ORA_DISK_6: SID=132 device type=DISK
- allocated channel: ORA_DISK_7
- channel ORA_DISK_7: SID=193 device type=DISK
- allocated channel: ORA_DISK_8
- channel ORA_DISK_8: SID=9 device type=DISK
- allocated channel: ORA_SBT_TAPE_1
- channel ORA_SBT_TAPE_1: SID=70 device type=SBT_TAPE
- channel ORA_SBT_TAPE_1: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_2: SID=194 device type=SBT_TAPE
- channel ORA_SBT_TAPE_2: Oracle Secure Backup
- channel ORA_SBT_TAPE_1: starting datafile backup set restore
- channel ORA_SBT_TAPE_1: restoring control file
- channel ORA_SBT_TAPE_1: reading from backup piece 09sdsqgp_1_1
- channel ORA_SBT_TAPE_1: piece handle=09sdsqgp_1_1 tag=LABS-11A-CONTROLFILE
- channel ORA_SBT_TAPE_1: restored backup piece 1
- channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:00:35
- output file name=+DATA/orcl/controlfile/current.263.954100675
- output file name=+FRA/orcl/controlfile/current.259.954100681
- Finished restore at 07-SEP-17
- RMAN> alter database mount;
- database mounted
- released channel: ORA_DISK_1
- released channel: ORA_DISK_2
- released channel: ORA_DISK_3
- released channel: ORA_DISK_4
- released channel: ORA_DISK_5
- released channel: ORA_DISK_6
- released channel: ORA_DISK_7
- released channel: ORA_DISK_8
- released channel: ORA_SBT_TAPE_1
- released channel: ORA_SBT_TAPE_2
- RMAN> recover database ;
- Starting recover at 07-SEP-17
- Starting implicit crosscheck backup at 07-SEP-17
- allocated channel: ORA_DISK_1
- channel ORA_DISK_1: SID=130 device type=DISK
- allocated channel: ORA_DISK_2
- channel ORA_DISK_2: SID=70 device type=DISK
- allocated channel: ORA_DISK_3
- channel ORA_DISK_3: SID=133 device type=DISK
- allocated channel: ORA_DISK_4
- channel ORA_DISK_4: SID=194 device type=DISK
- allocated channel: ORA_DISK_5
- channel ORA_DISK_5: SID=10 device type=DISK
- allocated channel: ORA_DISK_6
- channel ORA_DISK_6: SID=69 device type=DISK
- allocated channel: ORA_DISK_7
- channel ORA_DISK_7: SID=132 device type=DISK
- allocated channel: ORA_DISK_8
- channel ORA_DISK_8: SID=193 device type=DISK
- Crosschecked 1 objects
- Finished implicit crosscheck backup at 07-SEP-17
- Starting implicit crosscheck copy at 07-SEP-17
- using channel ORA_DISK_1
- using channel ORA_DISK_2
- using channel ORA_DISK_3
- using channel ORA_DISK_4
- using channel ORA_DISK_5
- using channel ORA_DISK_6
- using channel ORA_DISK_7
- using channel ORA_DISK_8
- Finished implicit crosscheck copy at 07-SEP-17
- searching for all files in the recovery area
- cataloging files...
- cataloging done
- List of Cataloged Files
- =======================
- File Name: +fra/ORCL/ARCHIVELOG/2017_09_07/thread_1_seq_25.266.954098709
- File Name: +fra/ORCL/ARCHIVELOG/2017_09_07/thread_1_seq_26.267.954098709
- File Name: +fra/ORCL/ARCHIVELOG/2017_09_07/thread_1_seq_27.268.954098711
- File Name: +fra/ORCL/ARCHIVELOG/2017_09_07/thread_1_seq_28.269.954098711
- File Name: +fra/ORCL/ARCHIVELOG/2017_09_07/thread_1_seq_29.270.954098713
- using channel ORA_DISK_1
- using channel ORA_DISK_2
- using channel ORA_DISK_3
- using channel ORA_DISK_4
- using channel ORA_DISK_5
- using channel ORA_DISK_6
- using channel ORA_DISK_7
- using channel ORA_DISK_8
- allocated channel: ORA_SBT_TAPE_1
- channel ORA_SBT_TAPE_1: SID=131 device type=SBT_TAPE
- channel ORA_SBT_TAPE_1: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_2: SID=8 device type=SBT_TAPE
- channel ORA_SBT_TAPE_2: Oracle Secure Backup
- starting media recovery
- archived log for thread 1 with sequence 38 is already on disk as file +FRA/orcl/archivelog/2017_09_07/thread_1_seq_38.265.954100237
- archived log for thread 1 with sequence 39 is already on disk as file +FRA/orcl/archivelog/2017_09_07/thread_1_seq_39.264.954100237
- archived log file name=+FRA/orcl/archivelog/2017_09_07/thread_1_seq_38.265.954100237 thread=1 sequence=38
- archived log file name=+FRA/orcl/archivelog/2017_09_07/thread_1_seq_39.264.954100237 thread=1 sequence=39
- unable to find archived log
- archived log thread=1 sequence=40
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03002: failure of recover command at 09/07/2017 20:05:00
- RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 40 and starting SCN of 1111225
- RMAN> run {
- 2> set until sequence 40 thread 1;
- 3> restore database;
- 4> recover database;
- 5> }
- executing command: SET until clause
- Starting restore at 07-SEP-17
- using channel ORA_DISK_1
- using channel ORA_DISK_2
- using channel ORA_DISK_3
- using channel ORA_DISK_4
- using channel ORA_DISK_5
- using channel ORA_DISK_6
- using channel ORA_DISK_7
- using channel ORA_DISK_8
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_1: starting datafile backup set restore
- channel ORA_SBT_TAPE_1: specifying datafile(s) to restore from backup set
- channel ORA_SBT_TAPE_1: restoring datafile 00001 to +DATA/orcl/datafile/system.256.816169553
- channel ORA_SBT_TAPE_1: restoring datafile 00005 to +DATA/orcl/datafile/example.265.816169651
- channel ORA_SBT_TAPE_1: reading from backup piece 05sdsq57_1_1
- channel ORA_SBT_TAPE_2: starting datafile backup set restore
- channel ORA_SBT_TAPE_2: specifying datafile(s) to restore from backup set
- channel ORA_SBT_TAPE_2: restoring datafile 00002 to +DATA/orcl/datafile/sysaux.257.816169553
- channel ORA_SBT_TAPE_2: restoring datafile 00003 to +DATA/orcl/datafile/undotbs1.258.816169553
- channel ORA_SBT_TAPE_2: restoring datafile 00004 to +DATA/orcl/datafile/users.259.816169553
- channel ORA_SBT_TAPE_2: reading from backup piece 06sdsq58_1_1
- channel ORA_SBT_TAPE_1: piece handle=05sdsq57_1_1 tag=NEWBACKUP
- channel ORA_SBT_TAPE_1: restored backup piece 1
- channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:00:45
- channel ORA_SBT_TAPE_2: piece handle=06sdsq58_1_1 tag=NEWBACKUP
- channel ORA_SBT_TAPE_2: restored backup piece 1
- channel ORA_SBT_TAPE_2: restore complete, elapsed time: 00:00:45
- Finished restore at 07-SEP-17
- Starting recover at 07-SEP-17
- using channel ORA_DISK_1
- using channel ORA_DISK_2
- using channel ORA_DISK_3
- using channel ORA_DISK_4
- using channel ORA_DISK_5
- using channel ORA_DISK_6
- using channel ORA_DISK_7
- using channel ORA_DISK_8
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- starting media recovery
- media recovery failed
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03002: failure of recover command at 09/07/2017 20:06:24
- RMAN-11003: failure during parse/execution of SQL statement: alter database recover if needed
- start until cancel using backup controlfile
- ORA-00275: media recovery has already been started
- RMAN> run {
- 2> set until sequence 40 thread 1;
- 3> recover database;
- 4> }
- executing command: SET until clause
- Starting recover at 07-SEP-17
- using channel ORA_DISK_1
- using channel ORA_DISK_2
- using channel ORA_DISK_3
- using channel ORA_DISK_4
- using channel ORA_DISK_5
- using channel ORA_DISK_6
- using channel ORA_DISK_7
- using channel ORA_DISK_8
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- starting media recovery
- media recovery failed
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03002: failure of recover command at 09/07/2017 20:07:05
- RMAN-11003: failure during parse/execution of SQL statement: alter database recover if needed
- start until cancel using backup controlfile
- ORA-00275: media recovery has already been started
- RMAN> exit
- Recovery Manager complete.
- [oracle@station90 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Thu Sep 7 20:07:26 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected.
- SQL> recover database until cancel ;
- ORA-00283: recovery session canceled due to errors
- ORA-01610: recovery using the BACKUP CONTROLFILE option must be done
- SQL> recover database until cancel using BACKUP CONTROLFILE ;
- ORA-00279: change 1110115 generated at 09/07/2017 19:44:40 needed for thread 1
- ORA-00289: suggestion : +FRA
- ORA-00280: change 1110115 for thread 1 is in sequence #33
- Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
- ORA-00308: cannot open archived log '+FRA'
- ORA-17503: ksfdopn:2 Failed to open file +FRA
- ORA-15045: ASM file name '+FRA' is not in reference form
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, Automatic Storage Management, OLAP, Data Mining
- and Real Application Testing options
- [oracle@station90 ~]$ crs_stat -t
- Name Type Target State Host
- ------------------------------------------------------------
- ora.DATA.dg ora....up.type ONLINE ONLINE station90
- ora.FRA.dg ora....up.type ONLINE ONLINE station90
- ora....ER.lsnr ora....er.type ONLINE ONLINE station90
- ora.asm ora.asm.type ONLINE ONLINE station90
- ora.cssd ora.cssd.type ONLINE ONLINE station90
- ora.diskmon ora....on.type ONLINE ONLINE station90
- ora.orcl.db ora....se.type ONLINE ONLINE station90
- [oracle@station90 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Thu Sep 7 20:08:09 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected.
- SQL> recover database until cancel using BACKUP CONTROLFILE ;
- ORA-00279: change 1110115 generated at 09/07/2017 19:44:40 needed for thread 1
- ORA-00289: suggestion : +FRA
- ORA-00280: change 1110115 for thread 1 is in sequence #33
- Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
- quit
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, Automatic Storage Management, OLAP, Data Mining
- and Real Application Testing options
- [oracle@station90 ~]$ rman target / catalog u90/oracle_4U@rcat
- Recovery Manager: Release 11.2.0.1.0 - Production on Thu Sep 7 20:08:57 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1343950367, not open)
- connected to recovery catalog database
- RMAN> run {
- 2> set until sequence 40 thread 1;
- 3> restore database;
- 4> }
- executing command: SET until clause
- Starting restore at 07-SEP-17
- allocated channel: ORA_DISK_1
- channel ORA_DISK_1: SID=8 device type=DISK
- allocated channel: ORA_DISK_2
- channel ORA_DISK_2: SID=71 device type=DISK
- allocated channel: ORA_DISK_3
- channel ORA_DISK_3: SID=133 device type=DISK
- allocated channel: ORA_DISK_4
- channel ORA_DISK_4: SID=194 device type=DISK
- allocated channel: ORA_DISK_5
- channel ORA_DISK_5: SID=10 device type=DISK
- allocated channel: ORA_DISK_6
- channel ORA_DISK_6: SID=70 device type=DISK
- allocated channel: ORA_DISK_7
- channel ORA_DISK_7: SID=130 device type=DISK
- allocated channel: ORA_DISK_8
- channel ORA_DISK_8: SID=193 device type=DISK
- allocated channel: ORA_SBT_TAPE_1
- channel ORA_SBT_TAPE_1: SID=132 device type=SBT_TAPE
- channel ORA_SBT_TAPE_1: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_2: SID=7 device type=SBT_TAPE
- channel ORA_SBT_TAPE_2: Oracle Secure Backup
- skipping datafile 1; already restored to file +DATA/orcl/datafile/system.256.816169553
- skipping datafile 5; already restored to file +DATA/orcl/datafile/example.265.816169651
- skipping datafile 2; already restored to file +DATA/orcl/datafile/sysaux.257.816169553
- skipping datafile 3; already restored to file +DATA/orcl/datafile/undotbs1.258.816169553
- skipping datafile 4; already restored to file +DATA/orcl/datafile/users.259.816169553
- Finished restore at 07-SEP-17
- RMAN> run {
- 2> set until sequence 40 thread 1;
- 3> recover database;
- 4> }
- executing command: SET until clause
- Starting recover at 07-SEP-17
- using channel ORA_DISK_1
- using channel ORA_DISK_2
- using channel ORA_DISK_3
- using channel ORA_DISK_4
- using channel ORA_DISK_5
- using channel ORA_DISK_6
- using channel ORA_DISK_7
- using channel ORA_DISK_8
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- starting media recovery
- archived log for thread 1 with sequence 34 is already on disk as file +FRA/orcl/archivelog/2017_09_07/thread_1_seq_34.275.954100231
- archived log for thread 1 with sequence 35 is already on disk as file +FRA/orcl/archivelog/2017_09_07/thread_1_seq_35.273.954100231
- archived log for thread 1 with sequence 36 is already on disk as file +FRA/orcl/archivelog/2017_09_07/thread_1_seq_36.272.954100233
- archived log for thread 1 with sequence 37 is already on disk as file +FRA/orcl/archivelog/2017_09_07/thread_1_seq_37.271.954100235
- archived log for thread 1 with sequence 38 is already on disk as file +FRA/orcl/archivelog/2017_09_07/thread_1_seq_38.265.954100237
- archived log for thread 1 with sequence 39 is already on disk as file +FRA/orcl/archivelog/2017_09_07/thread_1_seq_39.264.954100237
- channel ORA_SBT_TAPE_1: starting archived log restore to default destination
- channel ORA_SBT_TAPE_1: restoring archived log
- archived log thread=1 sequence=33
- channel ORA_SBT_TAPE_1: reading from backup piece 07sdsq63_1_1
- channel ORA_SBT_TAPE_1: piece handle=07sdsq63_1_1 tag=NEWBACKUP
- channel ORA_SBT_TAPE_1: restored backup piece 1
- channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:00:25
- archived log file name=+FRA/orcl/archivelog/2017_09_07/thread_1_seq_33.258.954101405 thread=1 sequence=33
- channel default: deleting archived log(s)
- archived log file name=+FRA/orcl/archivelog/2017_09_07/thread_1_seq_33.258.954101405 RECID=22 STAMP=954101405
- archived log file name=+FRA/orcl/archivelog/2017_09_07/thread_1_seq_34.275.954100231 thread=1 sequence=34
- archived log file name=+FRA/orcl/archivelog/2017_09_07/thread_1_seq_35.273.954100231 thread=1 sequence=35
- archived log file name=+FRA/orcl/archivelog/2017_09_07/thread_1_seq_36.272.954100233 thread=1 sequence=36
- archived log file name=+FRA/orcl/archivelog/2017_09_07/thread_1_seq_37.271.954100235 thread=1 sequence=37
- archived log file name=+FRA/orcl/archivelog/2017_09_07/thread_1_seq_38.265.954100237 thread=1 sequence=38
- archived log file name=+FRA/orcl/archivelog/2017_09_07/thread_1_seq_39.264.954100237 thread=1 sequence=39
- media recovery complete, elapsed time: 00:00:02
- Finished recover at 07-SEP-17
- RMAN> alter database open resetlog;s
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-00558: error encountered while parsing input commands
- RMAN-01009: syntax error: found "identifier": expecting one of: "resetlogs, ;"
- RMAN-01008: the bad identifier was: resetlog
- RMAN-01007: at line 1 column 21 file: standard input
- RMAN> alter database open resetlog;
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-00558: error encountered while parsing input commands
- RMAN-01009: syntax error: found "identifier": expecting one of: "resetlogs, ;"
- RMAN-01008: the bad identifier was: resetlog
- RMAN-01007: at line 1 column 21 file: standard input
- RMAN> alter database open resetlogs;
- database opened
- new incarnation of database registered in recovery catalog
- starting full resync of recovery catalog
- full resync complete
- RMAN> exit
- RMAN-06900: WARNING: unable to generate V$RMAN_STATUS or V$RMAN_OUTPUT row
- RMAN-06901: WARNING: disabling update of the V$RMAN_STATUS and V$RMAN_OUTPUT rows
- ORACLE error from target database:
- ORA-03135: connection lost contact
- Process ID: 630
- Session ID: 131 Serial number: 42
- Recovery Manager complete.
- [oracle@station90 ~]$ cd /u01/app/oracle/diag/
- [oracle@station90 diag]$ ls
- asm rdbms tnslsnr
- [oracle@station90 diag]$ cd rdbms/
- [oracle@station90 rdbms]$ ls
- orcl rcat
- [oracle@station90 rdbms]$ cd orcl/
- [oracle@station90 orcl]$ ls
- i_1.mif orcl
- [oracle@station90 orcl]$ cd orcl/
- [oracle@station90 orcl]$ ls
- alert cdump hm incident incpkg ir lck metadata stage sweep trace
- [oracle@station90 orcl]$ cd trace/
- [oracle@station90 trace]$ ls
- alert_orcl.log orcl_dbrm_9303.trm orcl_mark_17470.trm orcl_ora_17059.trm orcl_ora_29771.trm orcl_pr00_31636.trm
- orcl_arc0_1159.trc orcl_dbw0_16967.trc orcl_mark_29631.trc orcl_ora_17106.trc orcl_ora_30163.trc orcl_pr00_32335.trc
- orcl_arc0_1159.trm orcl_dbw0_16967.trm orcl_mark_29631.trm orcl_ora_17106.trm orcl_ora_30163.trm orcl_pr00_32335.trm
- orcl_arc0_17773.trc orcl_dbw0_17186.trc orcl_mark_3310.trc orcl_ora_17113.trc orcl_ora_32301.trc orcl_pr00_32375.trc
- orcl_arc0_17773.trm orcl_dbw0_17186.trm orcl_mark_3310.trm orcl_ora_17113.trm orcl_ora_32301.trm orcl_pr00_32375.trm
- orcl_arc0_9392.trc orcl_dbw0_17446.trc orcl_mark_6222.trc orcl_ora_17117.trc orcl_ora_3235.trc orcl_pr00_32459.trc
- orcl_arc0_9392.trm orcl_dbw0_17446.trm orcl_mark_6222.trm orcl_ora_17117.trm orcl_ora_3235.trm orcl_pr00_32459.trm
- orcl_arc1_9401.trc orcl_dbw0_3288.trc orcl_mark_9333.trc orcl_ora_17128.trc orcl_ora_32393.trc orcl_pr00_772.trc
- orcl_arc1_9401.trm orcl_dbw0_3288.trm orcl_mark_9333.trm orcl_ora_17128.trm orcl_ora_32393.trm orcl_pr00_772.trm
- orcl_arc2_1165.trc orcl_dbw0_6200.trc orcl_mman_16716.trc orcl_ora_17134.trc orcl_ora_32445.trc orcl_pr01_17753.trc
- orcl_arc2_1165.trm orcl_dbw0_6200.trm orcl_mman_16716.trm orcl_ora_17134.trm orcl_ora_32445.trm orcl_pr01_17753.trm
- orcl_arc2_17777.trc orcl_j000_10078.trc orcl_mman_16837.trc orcl_ora_17135.trc orcl_ora_3318.trc orcl_pr01_31638.trc
- orcl_arc2_17777.trm orcl_j000_10078.trm orcl_mman_16837.trm orcl_ora_17135.trm orcl_ora_3318.trm orcl_pr01_31638.trm
- orcl_arc3_1167.trc orcl_j000_11045.trc orcl_mman_16965.trc orcl_ora_17144.trc orcl_ora_5016.trc orcl_pr01_32377.trc
- orcl_arc3_1167.trm orcl_j000_11045.trm orcl_mman_16965.trm orcl_ora_17144.trm orcl_ora_5016.trm orcl_pr01_32377.trm
- orcl_arc3_17779.trc orcl_j000_17643.trc orcl_mman_17184.trc orcl_ora_17216.trc orcl_ora_5020.trc orcl_pr01_32461.trc
- orcl_arc3_17779.trm orcl_j000_17643.trm orcl_mman_17184.trm orcl_ora_17216.trm orcl_ora_5020.trm orcl_pr01_32461.trm
- orcl_arc3_9405.trc orcl_j000_17816.trc orcl_mman_17409.trc orcl_ora_17262.trc orcl_ora_5022.trc orcl_pr01_774.trc
- orcl_arc3_9405.trm orcl_j000_17816.trm orcl_mman_17409.trm orcl_ora_17262.trm orcl_ora_5022.trm orcl_pr01_774.trm
- orcl_asmb_16780.trc orcl_j000_18834.trc orcl_mman_17444.trc orcl_ora_17360.trc orcl_ora_5024.trc orcl_pr02_17755.trc
- orcl_asmb_16780.trm orcl_j000_18834.trm orcl_mman_17444.trm orcl_ora_17360.trm orcl_ora_5024.trm orcl_pr02_17755.trm
- orcl_asmb_16879.trc orcl_j000_26330.trc orcl_mman_29607.trc orcl_ora_17365.trc orcl_ora_5235.trc orcl_pr02_31640.trc
- orcl_asmb_16879.trm orcl_j000_26330.trm orcl_mman_29607.trm orcl_ora_17365.trm orcl_ora_5235.trm orcl_pr02_31640.trm
- orcl_asmb_17005.trc orcl_j000_3447.trc orcl_mman_3286.trc orcl_ora_17394.trc orcl_ora_5237.trc orcl_pr02_32379.trc
- orcl_asmb_17005.trm orcl_j000_3447.trm orcl_mman_3286.trm orcl_ora_17394.trm orcl_ora_5237.trm orcl_pr02_32379.trm
- orcl_asmb_17198.trc orcl_j000_6299.trc orcl_mman_6198.trc orcl_ora_17444.trc orcl_ora_5249.trc orcl_pr02_32463.trc
- orcl_asmb_17198.trm orcl_j000_6299.trm orcl_mman_6198.trm orcl_ora_17444.trm orcl_ora_5249.trm orcl_pr02_32463.trm
- orcl_asmb_17424.trc orcl_j000_7525.trc orcl_mman_9309.trc orcl_ora_17522.trc orcl_ora_5660.trc orcl_pr02_776.trc
- orcl_asmb_17424.trm orcl_j000_7525.trm orcl_mman_9309.trm orcl_ora_17522.trm orcl_ora_5660.trm orcl_pr02_776.trm
- orcl_asmb_17458.trc orcl_j001_1251.trc orcl_mmon_9325.trc orcl_ora_17639.trc orcl_ora_5827.trc orcl_pr03_17757.trc
- orcl_asmb_17458.trm orcl_j001_1251.trm orcl_mmon_9325.trm orcl_ora_17639.trm orcl_ora_5827.trm orcl_pr03_17757.trm
- orcl_asmb_29621.trc orcl_j001_17080.trc orcl_ora_10006.trc orcl_ora_17814.trc orcl_ora_6147.trc orcl_pr03_31642.trc
- orcl_asmb_29621.trm orcl_j001_17080.trm orcl_ora_10006.trm orcl_ora_17814.trm orcl_ora_6147.trm orcl_pr03_31642.trm
- orcl_asmb_3300.trc orcl_j001_31994.trc orcl_ora_10195.trc orcl_ora_18201.trc orcl_ora_6231.trc orcl_pr03_32381.trc
- orcl_asmb_3300.trm orcl_j001_31994.trm orcl_ora_10195.trm orcl_ora_18201.trm orcl_ora_6231.trm orcl_pr03_32381.trm
- orcl_asmb_6212.trc orcl_j006_10090.trc orcl_ora_10242.trc orcl_ora_18203.trc orcl_ora_630.trc orcl_pr03_32465.trc
- orcl_asmb_6212.trm orcl_j006_10090.trm orcl_ora_10242.trm orcl_ora_18203.trm orcl_ora_630.trm orcl_pr03_32465.trm
- orcl_asmb_9323.trc orcl_lgwr_16969.trc orcl_ora_10248.trc orcl_ora_18298.trc orcl_ora_6851.trc orcl_pr03_778.trc
- orcl_asmb_9323.trm orcl_lgwr_16969.trm orcl_ora_10248.trm orcl_ora_18298.trm orcl_ora_6851.trm orcl_pr03_778.trm
- orcl_ckpt_16843.trc orcl_lgwr_17188.trc orcl_ora_10253.trc orcl_ora_18709.trc orcl_ora_7064.trc orcl_pr04_17759.trc
- orcl_ckpt_16843.trm orcl_lgwr_17188.trm orcl_ora_10253.trm orcl_ora_18709.trm orcl_ora_7064.trm orcl_pr04_17759.trm
- orcl_ckpt_16971.trc orcl_lgwr_17448.trc orcl_ora_10255.trc orcl_ora_21348.trc orcl_ora_7069.trc orcl_pr04_31644.trc
- orcl_ckpt_16971.trm orcl_lgwr_17448.trm orcl_ora_10255.trm orcl_ora_21348.trm orcl_ora_7069.trm orcl_pr04_31644.trm
- orcl_ckpt_17190.trc orcl_lgwr_3290.trc orcl_ora_10259.trc orcl_ora_21694.trc orcl_ora_7072.trc orcl_pr04_32383.trc
- orcl_ckpt_17190.trm orcl_lgwr_3290.trm orcl_ora_10259.trm orcl_ora_21694.trm orcl_ora_7072.trm orcl_pr04_32383.trm
- orcl_ckpt_17415.trc orcl_lgwr_6202.trc orcl_ora_10288.trc orcl_ora_22780.trc orcl_ora_7095.trc orcl_pr04_32467.trc
- orcl_ckpt_17415.trm orcl_lgwr_6202.trm orcl_ora_10288.trm orcl_ora_22780.trm orcl_ora_7095.trm orcl_pr04_32467.trm
- orcl_ckpt_17450.trc orcl_m000_1153.trc orcl_ora_10796.trc orcl_ora_2314.trc orcl_ora_710.trc orcl_pr04_780.trc
- orcl_ckpt_17450.trm orcl_m000_1153.trm orcl_ora_10796.trm orcl_ora_2314.trm orcl_ora_710.trm orcl_pr04_780.trm
- orcl_ckpt_29613.trc orcl_m000_17048.trc orcl_ora_10910.trc orcl_ora_24127.trc orcl_ora_7130.trc orcl_smon_29615.trc
- orcl_ckpt_29613.trm orcl_m000_17048.trm orcl_ora_10910.trm orcl_ora_24127.trm orcl_ora_7130.trm orcl_smon_29615.trm
- orcl_ckpt_3292.trc orcl_m000_17495.trc orcl_ora_1245.trc orcl_ora_24796.trc orcl_ora_7864.trc orcl_vktm_16702.trc
- orcl_ckpt_3292.trm orcl_m000_17495.trm orcl_ora_1245.trm orcl_ora_24796.trm orcl_ora_7864.trm orcl_vktm_16702.trm
- orcl_ckpt_6204.trc orcl_m000_17729.trc orcl_ora_13937.trc orcl_ora_24932.trc orcl_ora_7871.trc orcl_vktm_16823.trc
- orcl_ckpt_6204.trm orcl_m000_17729.trm orcl_ora_13937.trm orcl_ora_24932.trm orcl_ora_7871.trm orcl_vktm_16823.trm
- orcl_ckpt_9315.trc orcl_m000_20797.trc orcl_ora_1563.trc orcl_ora_24938.trc orcl_ora_8107.trc orcl_vktm_16951.trc
- orcl_ckpt_9315.trm orcl_m000_20797.trm orcl_ora_1563.trm orcl_ora_24938.trm orcl_ora_8107.trm orcl_vktm_16951.trm
- orcl_dbrm_16959.trc orcl_m000_29689.trc orcl_ora_15670.trc orcl_ora_24940.trc orcl_ora_8621.trc orcl_vktm_17170.trc
- orcl_dbrm_16959.trm orcl_m000_29689.trm orcl_ora_15670.trm orcl_ora_24940.trm orcl_ora_8621.trm orcl_vktm_17170.trm
- orcl_dbrm_17178.trc orcl_m000_31651.trc orcl_ora_16676.trc orcl_ora_24968.trc orcl_ora_9254.trc orcl_vktm_17395.trc
- orcl_dbrm_17178.trm orcl_m000_31651.trm orcl_ora_16676.trm orcl_ora_24968.trm orcl_ora_9254.trm orcl_vktm_17395.trm
- orcl_dbrm_17403.trc orcl_mark_16786.trc orcl_ora_16740.trc orcl_ora_24989.trc orcl_ora_9342.trc orcl_vktm_17430.trc
- orcl_dbrm_17403.trm orcl_mark_16786.trm orcl_ora_16740.trm orcl_ora_24989.trm orcl_ora_9342.trm orcl_vktm_17430.trm
- orcl_dbrm_17438.trc orcl_mark_16912.trc orcl_ora_16797.trc orcl_ora_25003.trc orcl_p000_17767.trc orcl_vktm_29593.trc
- orcl_dbrm_17438.trm orcl_mark_16912.trm orcl_ora_16797.trm orcl_ora_25003.trm orcl_p000_17767.trm orcl_vktm_29593.trm
- orcl_dbrm_29601.trc orcl_mark_17012.trc orcl_ora_16864.trc orcl_ora_26701.trc orcl_p001_17769.trc orcl_vktm_3272.trc
- orcl_dbrm_29601.trm orcl_mark_17012.trm orcl_ora_16864.trm orcl_ora_26701.trm orcl_p001_17769.trm orcl_vktm_3272.trm
- orcl_dbrm_3280.trc orcl_mark_17213.trc orcl_ora_16925.trc orcl_ora_27077.trc orcl_p002_17771.trc orcl_vktm_6184.trc
- orcl_dbrm_3280.trm orcl_mark_17213.trm orcl_ora_16925.trm orcl_ora_27077.trm orcl_p002_17771.trm orcl_vktm_6184.trm
- orcl_dbrm_6192.trc orcl_mark_17436.trc orcl_ora_16985.trc orcl_ora_29560.trc orcl_pr00_17751.trc orcl_vktm_9295.trc
- orcl_dbrm_6192.trm orcl_mark_17436.trm orcl_ora_16985.trm orcl_ora_29560.trm orcl_pr00_17751.trm orcl_vktm_9295.trm
- orcl_dbrm_9303.trc orcl_mark_17470.trc orcl_ora_17059.trc orcl_ora_29771.trc orcl_pr00_31636.trc sbtio.log
- [oracle@station90 trace]$ ls -l *7871*
- -rw-r----- 1 oracle dba 9675 9月 7 20:34 orcl_ora_7871.trc
- -rw-r----- 1 oracle dba 90 9月 7 20:34 orcl_ora_7871.trm
- [oracle@station90 trace]$ cp orcl_ora_7871.trc /home/oracle/control11a.sql
- [oracle@station90 trace]$ cd
- [oracle@station90 ~]$ ls
- control10d-after.sql create_t04209_uname.sql osb.txt revertape-root.sh ttio.rcv 公共的 图片 音乐
- control11a.sql mail rac_tns select_t04209_uname.sql update2_t04209_uname.sql 模板 文档 桌面
- copytape-root.sh oradiag_oracle rcat.sql tnsnames.ora update_t04209_uname.sql 视频 下载
- [oracle@station90 ~]$ vim control11a.sql
- [oracle@station90 ~]$ ls
- control10d-after.sql create_t04209_uname.sql osb.txt revertape-root.sh ttio.rcv 公共的 图片 音乐
- control11a.sql mail rac_tns select_t04209_uname.sql update2_t04209_uname.sql 模板 文档 桌面
- copytape-root.sh oradiag_oracle rcat.sql tnsnames.ora update_t04209_uname.sql 视频 下载
- [oracle@station90 ~]$ diff control10d-after.sql control11a.sql
- 1c1
- < CREATE CONTROLFILE REUSE DATABASE "ORCL" NORESETLOGS ARCHIVELOG
- ---
- > CREATE CONTROLFILE REUSE DATABASE "ORCL" RESETLOGS ARCHIVELOG
- 9,10c9,10
- < '+DATA/orcl/onlinelog/group_1.261.816169635',
- < '+FRA/orcl/onlinelog/group_1.257.816169637'
- ---
- > '+DATA/orcl/onlinelog/group_1.262.954101431',
- > '+FRA/orcl/onlinelog/group_1.258.954101433'
- 13,14c13,14
- < '+DATA/orcl/onlinelog/group_2.262.816169639',
- < '+FRA/orcl/onlinelog/group_2.258.816169639'
- ---
- > '+DATA/orcl/onlinelog/group_2.261.954101433',
- > '+FRA/orcl/onlinelog/group_2.257.954101433'
- 17,18c17,18
- < '+DATA/orcl/onlinelog/group_3.263.816169641',
- < '+FRA/orcl/onlinelog/group_3.259.816169641'
- ---
- > '+DATA/orcl/onlinelog/group_3.260.954101433',
- > '+FRA/orcl/onlinelog/group_3.256.954101433'
- [oracle@station90 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Thu Sep 7 20:40:57 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected to an idle instance.
- SQL> startup
- ORACLE instance started.
- Total System Global Area 6680915968 bytes
- Fixed Size 2213936 bytes
- Variable Size 3556771792 bytes
- Database Buffers 3087007744 bytes
- Redo Buffers 34922496 bytes
- ORA-00205: error in identifying control file, check alert log for more info
- SQL> @control11.sql
- SP2-0310: unable to open file "control11.sql"
- SQL> @control11a.sql
- Control file created.
- PL/SQL procedure successfully completed.
- PL/SQL procedure successfully completed.
- PL/SQL procedure successfully completed.
- PL/SQL procedure successfully completed.
- PL/SQL procedure successfully completed.
- PL/SQL procedure successfully completed.
- PL/SQL procedure successfully completed.
- PL/SQL procedure successfully completed.
- SQL> recover database;
- ORA-00283: recovery session canceled due to errors
- ORA-01610: recovery using the BACKUP CONTROLFILE option must be done
- SQL> recover database using BACKUP CONTROLFILE;
- ORA-00279: change 1114775 generated at 09/07/2017 20:34:23 needed for thread 1
- ORA-00289: suggestion :
- +FRA/orcl/archivelog/2017_09_07/thread_1_seq_5.278.954102865
- ORA-00280: change 1114775 for thread 1 is in sequence #5
- Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
- ORA-00279: change 1114781 generated at 09/07/2017 20:34:24 needed for thread 1
- ORA-00289: suggestion :
- +FRA/orcl/archivelog/2017_09_07/thread_1_seq_6.279.954102867
- ORA-00280: change 1114781 for thread 1 is in sequence #6
- ORA-00278: log file
- '+FRA/orcl/archivelog/2017_09_07/thread_1_seq_5.278.954102865' no longer needed
- for this recovery
- Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
- ORA-00279: change 1114792 generated at 09/07/2017 20:34:26 needed for thread 1
- ORA-00289: suggestion : +FRA
- ORA-00280: change 1114792 for thread 1 is in sequence #7
- ORA-00278: log file
- '+FRA/orcl/archivelog/2017_09_07/thread_1_seq_6.279.954102867' no longer needed
- for this recovery
- Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
- ORA-00308: cannot open archived log '+FRA'
- ORA-17503: ksfdopn:2 Failed to open file +FRA
- ORA-15045: ASM file name '+FRA' is not in reference form
- SQL> recover database using BACKUP CONTROLFILE;
- ORA-00279: change 1114792 generated at 09/07/2017 20:34:26 needed for thread 1
- ORA-00289: suggestion : +FRA
- ORA-00280: change 1114792 for thread 1 is in sequence #7
- Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
- cancel
- Media recovery cancelled.
- SQL> alter database open ;
- alter database open
- *
- ERROR at line 1:
- ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
- SQL> alter database open resetlogs;
- alter database open resetlogs
- *
- ERROR at line 1:
- ORA-01113: file 1 needs media recovery
- ORA-01110: data file 1: '+DATA/orcl/datafile/system.256.816169553'
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, OLAP, Data Mining and Real Application Testing options
- [oracle@station90 ~]$ rman target /
- Recovery Manager: Release 11.2.0.1.0 - Production on Thu Sep 7 20:43:07 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1343950367, not open)
- RMAN> list backup of database;
- using target database control file instead of recovery catalog
- specification does not match any backup in the repository
- RMAN> exit
- Recovery Manager complete.
- [oracle@station90 ~]$ rman target / catalog u90/oracle_4U@rcat
- Recovery Manager: Release 11.2.0.1.0 - Production on Thu Sep 7 20:43:24 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1343950367, not open)
- connected to recovery catalog database
- RMAN> list backup of database;
- List of Backup Sets
- ===================
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ ---------------
- 77 Incr 0 657.75M SBT_TAPE 00:00:27 18-MAY-17
- BP Key: 83 Status: AVAILABLE Compressed: NO Tag: 0T_INCR0_WHOLE
- Handle: 12s4ih4j_1_1 Media: station90-000001
- List of Datafiles in backup set 77
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- --------- ----
- 1 0 Incr 1057421 18-MAY-17 +DATA/orcl/datafile/system.256.816169553
- 5 0 Incr 1057421 18-MAY-17 +DATA/orcl/datafile/example.265.816169651
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ ---------------
- 179 Full 3.50M SBT_TAPE 00:00:15 07-SEP-17
- BP Key: 181 Status: AVAILABLE Compressed: NO Tag: LABS-10D-USERS-BEFORE-RW
- Handle: 16sdsos7_1_1 Media: station90-000001
- List of Datafiles in backup set 179
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- --------- ----
- 4 Full 1087196 07-SEP-17 +DATA/orcl/datafile/users.259.816169553
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ ---------------
- 180 Full 3.50M SBT_TAPE 00:00:15 07-SEP-17
- BP Key: 182 Status: AVAILABLE Compressed: NO Tag: LABS-10D-USERS-AFTER-RW
- Handle: 18sdsou6_1_1 Media: station90-000001
- List of Datafiles in backup set 180
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- --------- ----
- 4 Full 1087321 07-SEP-17 +DATA/orcl/datafile/users.259.816169553
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ ---------------
- 214 Incr 0 445.75M SBT_TAPE 00:00:19 07-SEP-17
- BP Key: 221 Status: AVAILABLE Compressed: NO Tag: NEWBACKUP
- Handle: 06sdsq58_1_1 Media: station90-000003
- List of Datafiles in backup set 214
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- --------- ----
- 2 0 Incr 1110116 07-SEP-17 +DATA/orcl/datafile/sysaux.257.816169553
- 3 0 Incr 1110116 07-SEP-17 +DATA/orcl/datafile/undotbs1.258.816169553
- 4 0 Incr 1110116 07-SEP-17 +DATA/orcl/datafile/users.259.816169553
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ ---------------
- 215 Incr 0 658.00M SBT_TAPE 00:00:20 07-SEP-17
- BP Key: 222 Status: AVAILABLE Compressed: NO Tag: NEWBACKUP
- Handle: 05sdsq57_1_1 Media: station90-000001
- List of Datafiles in backup set 215
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- --------- ----
- 1 0 Incr 1110115 07-SEP-17 +DATA/orcl/datafile/system.256.816169553
- 5 0 Incr 1110115 07-SEP-17 +DATA/orcl/datafile/example.265.816169651
- RMAN> restore database;
- Starting restore at 07-SEP-17
- allocated channel: ORA_DISK_1
- channel ORA_DISK_1: SID=68 device type=DISK
- allocated channel: ORA_DISK_2
- channel ORA_DISK_2: SID=131 device type=DISK
- allocated channel: ORA_DISK_3
- channel ORA_DISK_3: SID=192 device type=DISK
- allocated channel: ORA_DISK_4
- channel ORA_DISK_4: SID=8 device type=DISK
- allocated channel: ORA_DISK_5
- channel ORA_DISK_5: SID=132 device type=DISK
- allocated channel: ORA_DISK_6
- channel ORA_DISK_6: SID=193 device type=DISK
- allocated channel: ORA_DISK_7
- channel ORA_DISK_7: SID=9 device type=DISK
- allocated channel: ORA_DISK_8
- channel ORA_DISK_8: SID=69 device type=DISK
- allocated channel: ORA_SBT_TAPE_1
- channel ORA_SBT_TAPE_1: SID=133 device type=SBT_TAPE
- channel ORA_SBT_TAPE_1: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_2: SID=10 device type=SBT_TAPE
- channel ORA_SBT_TAPE_2: Oracle Secure Backup
- channel ORA_SBT_TAPE_1: starting datafile backup set restore
- channel ORA_SBT_TAPE_1: specifying datafile(s) to restore from backup set
- channel ORA_SBT_TAPE_1: restoring datafile 00001 to +DATA/orcl/datafile/system.256.816169553
- channel ORA_SBT_TAPE_1: restoring datafile 00005 to +DATA/orcl/datafile/example.265.816169651
- channel ORA_SBT_TAPE_1: reading from backup piece 05sdsq57_1_1
- channel ORA_SBT_TAPE_2: starting datafile backup set restore
- channel ORA_SBT_TAPE_2: specifying datafile(s) to restore from backup set
- channel ORA_SBT_TAPE_2: restoring datafile 00002 to +DATA/orcl/datafile/sysaux.257.816169553
- channel ORA_SBT_TAPE_2: restoring datafile 00003 to +DATA/orcl/datafile/undotbs1.258.816169553
- channel ORA_SBT_TAPE_2: restoring datafile 00004 to +DATA/orcl/datafile/users.259.816169553
- channel ORA_SBT_TAPE_2: reading from backup piece 06sdsq58_1_1
- channel ORA_SBT_TAPE_2: piece handle=06sdsq58_1_1 tag=NEWBACKUP
- channel ORA_SBT_TAPE_2: restored backup piece 1
- channel ORA_SBT_TAPE_2: restore complete, elapsed time: 00:00:45
- channel ORA_SBT_TAPE_1: piece handle=05sdsq57_1_1 tag=NEWBACKUP
- channel ORA_SBT_TAPE_1: restored backup piece 1
- channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:00:55
- Finished restore at 07-SEP-17
- RMAN> exit
- Recovery Manager complete.
- [oracle@station90 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Thu Sep 7 20:44:53 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected.
- SQL> recover database using BACKUP CONTROLFILE;
- ORA-00279: change 1110115 generated at 09/07/2017 19:44:40 needed for thread 1
- ORA-00289: suggestion : +FRA
- ORA-00280: change 1110115 for thread 1 is in sequence #33
- Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
- ORA-00308: cannot open archived log '+FRA'
- ORA-17503: ksfdopn:2 Failed to open file +FRA
- ORA-15045: ASM file name '+FRA' is not in reference form
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, Automatic Storage Management, OLAP, Data Mining
- and Real Application Testing options
- [oracle@station90 ~]$ rman target / catalog u90/oracle_4U@rcat
- Recovery Manager: Release 11.2.0.1.0 - Production on Thu Sep 7 20:45:33 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1343950367, not open)
- connected to recovery catalog database
- RMAN> list backup of archivelog sequence 33 thread 1;
- specification does not match any backup in the repository
- RMAN> list incarnation of database;
- List of Database Incarnations
- DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
- ------- ------- -------- ---------------- --- ---------- ----------
- 2 21 ORCL 1343950367 PARENT 1 15-AUG-09
- 2 4 ORCL 1343950367 PARENT 945184 23-MAY-13
- 2 358 ORCL 1343950367 CURRENT 1111226 07-SEP-17
- RMAN> reset database to incarnation 4;
- database reset to incarnation 4
- RMAN> list backup of archivelog sequence 33 thread 1;
- List of Backup Sets
- ===================
- BS Key Size Device Type Elapsed Time Completion Time
- ------- ---------- ----------- ------------ ---------------
- 243 256.00K SBT_TAPE 00:00:16 07-SEP-17
- BP Key: 246 Status: AVAILABLE Compressed: NO Tag: NEWBACKUP
- Handle: 07sdsq63_1_1 Media: station90-000003
- List of Archived Logs in backup set 243
- Thrd Seq Low SCN Low Time Next SCN Next Time
- ---- ------- ---------- --------- ---------- ---------
- 1 33 1110005 07-SEP-17 1110141 07-SEP-17
- RMAN> restore archivelog sequence 33 thread 1;
- Starting restore at 07-SEP-17
- allocated channel: ORA_DISK_1
- channel ORA_DISK_1: SID=71 device type=DISK
- allocated channel: ORA_DISK_2
- channel ORA_DISK_2: SID=133 device type=DISK
- allocated channel: ORA_DISK_3
- channel ORA_DISK_3: SID=192 device type=DISK
- allocated channel: ORA_DISK_4
- channel ORA_DISK_4: SID=9 device type=DISK
- allocated channel: ORA_DISK_5
- channel ORA_DISK_5: SID=131 device type=DISK
- allocated channel: ORA_DISK_6
- channel ORA_DISK_6: SID=193 device type=DISK
- allocated channel: ORA_DISK_7
- channel ORA_DISK_7: SID=8 device type=DISK
- allocated channel: ORA_DISK_8
- channel ORA_DISK_8: SID=68 device type=DISK
- allocated channel: ORA_SBT_TAPE_1
- channel ORA_SBT_TAPE_1: SID=132 device type=SBT_TAPE
- channel ORA_SBT_TAPE_1: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_2: SID=7 device type=SBT_TAPE
- channel ORA_SBT_TAPE_2: Oracle Secure Backup
- channel ORA_SBT_TAPE_1: starting archived log restore to default destination
- channel ORA_SBT_TAPE_1: restoring archived log
- archived log thread=1 sequence=33
- channel ORA_SBT_TAPE_1: reading from backup piece 07sdsq63_1_1
- channel ORA_SBT_TAPE_1: piece handle=07sdsq63_1_1 tag=NEWBACKUP
- channel ORA_SBT_TAPE_1: restored backup piece 1
- channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:00:25
- Finished restore at 07-SEP-17
- RMAN> list incarnation of database;
- List of Database Incarnations
- DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
- ------- ------- -------- ---------------- --- ---------- ----------
- 2 21 ORCL 1343950367 PARENT 1 15-AUG-09
- 2 4 ORCL 1343950367 CURRENT 945184 23-MAY-13
- 2 358 ORCL 1343950367 ORPHAN 1111226 07-SEP-17
- RMAN> reset database to incarnation 358;
- database reset to incarnation 358
- RMAN> list incarnation of database;
- List of Database Incarnations
- DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
- ------- ------- -------- ---------------- --- ---------- ----------
- 2 21 ORCL 1343950367 PARENT 1 15-AUG-09
- 2 4 ORCL 1343950367 PARENT 945184 23-MAY-13
- 2 358 ORCL 1343950367 CURRENT 1111226 07-SEP-17
- RMAN> exit
- Recovery Manager complete.
- [oracle@station90 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Thu Sep 7 20:48:41 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected.
- SQL> recover database using BACKUP CONTROLFILE;
- ORA-00279: change 1110115 generated at 09/07/2017 19:44:40 needed for thread 1
- ORA-00289: suggestion :
- +FRA/orcl/archivelog/2017_09_07/thread_1_seq_33.257.954103659
- ORA-00280: change 1110115 for thread 1 is in sequence #33
- Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
- ORA-00279: change 1110141 generated at 09/07/2017 19:45:05 needed for thread 1
- ORA-00289: suggestion :
- +FRA/orcl/archivelog/2017_09_07/thread_1_seq_34.275.954100231
- ORA-00280: change 1110141 for thread 1 is in sequence #34
- ORA-00278: log file
- '+FRA/orcl/archivelog/2017_09_07/thread_1_seq_33.257.954103659' no longer
- needed for this recovery
- Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
- ORA-00279: change 1111189 generated at 09/07/2017 19:50:30 needed for thread 1
- ORA-00289: suggestion :
- +FRA/orcl/archivelog/2017_09_07/thread_1_seq_35.273.954100231
- ORA-00280: change 1111189 for thread 1 is in sequence #35
- ORA-00278: log file
- '+FRA/orcl/archivelog/2017_09_07/thread_1_seq_34.275.954100231' no longer
- needed for this recovery
- Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
- ORA-00279: change 1111206 generated at 09/07/2017 19:50:31 needed for thread 1
- ORA-00289: suggestion :
- +FRA/orcl/archivelog/2017_09_07/thread_1_seq_36.272.954100233
- ORA-00280: change 1111206 for thread 1 is in sequence #36
- ORA-00278: log file
- '+FRA/orcl/archivelog/2017_09_07/thread_1_seq_35.273.954100231' no longer
- needed for this recovery
- Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
- ORA-00279: change 1111211 generated at 09/07/2017 19:50:32 needed for thread 1
- ORA-00289: suggestion :
- +FRA/orcl/archivelog/2017_09_07/thread_1_seq_37.271.954100235
- ORA-00280: change 1111211 for thread 1 is in sequence #37
- ORA-00278: log file
- '+FRA/orcl/archivelog/2017_09_07/thread_1_seq_36.272.954100233' no longer
- needed for this recovery
- Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
- ORA-00279: change 1111214 generated at 09/07/2017 19:50:34 needed for thread 1
- ORA-00289: suggestion :
- +FRA/orcl/archivelog/2017_09_07/thread_1_seq_38.265.954100237
- ORA-00280: change 1111214 for thread 1 is in sequence #38
- ORA-00278: log file
- '+FRA/orcl/archivelog/2017_09_07/thread_1_seq_37.271.954100235' no longer
- needed for this recovery
- Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
- ORA-00279: change 1111220 generated at 09/07/2017 19:50:35 needed for thread 1
- ORA-00289: suggestion :
- +FRA/orcl/archivelog/2017_09_07/thread_1_seq_39.264.954100237
- ORA-00280: change 1111220 for thread 1 is in sequence #39
- ORA-00278: log file
- '+FRA/orcl/archivelog/2017_09_07/thread_1_seq_38.265.954100237' no longer
- needed for this recovery
- Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
- ORA-00279: change 1111226 generated at 09/07/2017 20:10:31 needed for thread 1
- ORA-00289: suggestion :
- +FRA/orcl/archivelog/2017_09_07/thread_1_seq_1.261.954102861
- ORA-00280: change 1111226 for thread 1 is in sequence #1
- ORA-00278: log file
- '+FRA/orcl/archivelog/2017_09_07/thread_1_seq_39.264.954100237' no longer
- needed for this recovery
- Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
- ORA-00279: change 1114750 generated at 09/07/2017 20:34:20 needed for thread 1
- ORA-00289: suggestion :
- +FRA/orcl/archivelog/2017_09_07/thread_1_seq_2.262.954102861
- ORA-00280: change 1114750 for thread 1 is in sequence #2
- ORA-00278: log file
- '+FRA/orcl/archivelog/2017_09_07/thread_1_seq_1.261.954102861' no longer needed
- for this recovery
- Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
- ORA-00279: change 1114767 generated at 09/07/2017 20:34:21 needed for thread 1
- ORA-00289: suggestion :
- +FRA/orcl/archivelog/2017_09_07/thread_1_seq_3.276.954102863
- ORA-00280: change 1114767 for thread 1 is in sequence #3
- ORA-00278: log file
- '+FRA/orcl/archivelog/2017_09_07/thread_1_seq_2.262.954102861' no longer needed
- for this recovery
- Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
- ORA-00279: change 1114772 generated at 09/07/2017 20:34:21 needed for thread 1
- ORA-00289: suggestion :
- +FRA/orcl/archivelog/2017_09_07/thread_1_seq_4.277.954102865
- ORA-00280: change 1114772 for thread 1 is in sequence #4
- ORA-00278: log file
- '+FRA/orcl/archivelog/2017_09_07/thread_1_seq_3.276.954102863' no longer needed
- for this recovery
- Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
- ORA-00279: change 1114775 generated at 09/07/2017 20:34:23 needed for thread 1
- ORA-00289: suggestion :
- +FRA/orcl/archivelog/2017_09_07/thread_1_seq_5.278.954102865
- ORA-00280: change 1114775 for thread 1 is in sequence #5
- ORA-00278: log file
- '+FRA/orcl/archivelog/2017_09_07/thread_1_seq_4.277.954102865' no longer needed
- for this recovery
- Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
- ORA-00279: change 1114781 generated at 09/07/2017 20:34:24 needed for thread 1
- ORA-00289: suggestion :
- +FRA/orcl/archivelog/2017_09_07/thread_1_seq_6.279.954102867
- ORA-00280: change 1114781 for thread 1 is in sequence #6
- ORA-00278: log file
- '+FRA/orcl/archivelog/2017_09_07/thread_1_seq_5.278.954102865' no longer needed
- for this recovery
- Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
- ORA-00279: change 1114792 generated at 09/07/2017 20:34:26 needed for thread 1
- ORA-00289: suggestion : +FRA
- ORA-00280: change 1114792 for thread 1 is in sequence #7
- ORA-00278: log file
- '+FRA/orcl/archivelog/2017_09_07/thread_1_seq_6.279.954102867' no longer needed
- for this recovery
- Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
- ORA-00308: cannot open archived log '+FRA'
- ORA-17503: ksfdopn:2 Failed to open file +FRA
- ORA-15045: ASM file name '+FRA' is not in reference form
- SQL> recover database using BACKUP CONTROLFILE;
- ORA-00279: change 1114792 generated at 09/07/2017 20:34:26 needed for thread 1
- ORA-00289: suggestion : +FRA
- ORA-00280: change 1114792 for thread 1 is in sequence #7
- Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
- cancel
- Media recovery cancelled.
- SQL> alter database open ;
- alter database open
- *
- ERROR at line 1:
- ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
- SQL> alter database open resetlogs;
- alter database open resetlogs
- *
- ERROR at line 1:
- ORA-01113: file 1 needs media recovery
- ORA-01110: data file 1: '+DATA/orcl/datafile/system.256.816169553'
- SQL> recover database until cancel using BACKUP CONTROLFILE;
- ORA-00279: change 1114792 generated at 09/07/2017 20:34:26 needed for thread 1
- ORA-00289: suggestion : +FRA
- ORA-00280: change 1114792 for thread 1 is in sequence #7
- Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
- cancel
- Media recovery cancelled.
- SQL> alter database open resetlogs;
- Database altered.
- SQL> alter tablespace temp add tempfile '+data' size 30M autoextend on ;
- Tablespace altered.
- SQL> select dbid from v$database;
- DBID
- ----------
- 1343950367
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, Automatic Storage Management, OLAP, Data Mining
- and Real Application Testing options
- [oracle@station90 ~]$ exit
- logout
- [root@station90 tmp]# su - oracle
- [oracle@station90 ~]$ ls
- control10d-after.sql create_t04209_uname.sql osb.txt revertape-root.sh ttio.rcv 公共的 图片 音乐
- control11a.sql mail rac_tns select_t04209_uname.sql update2_t04209_uname.sql 模板 文档 桌面
- copytape-root.sh oradiag_oracle rcat.sql tnsnames.ora update_t04209_uname.sql 视频 下载
- [oracle@station90 ~]$ mv control11a.sql control11b.sql
- [oracle@station90 ~]$ ls
- control10d-after.sql create_t04209_uname.sql osb.txt revertape-root.sh ttio.rcv 公共的 图片 音乐
- control11b.sql mail rac_tns select_t04209_uname.sql update2_t04209_uname.sql 模板 文档 桌面
- copytape-root.sh oradiag_oracle rcat.sql tnsnames.ora update_t04209_uname.sql 视频 下载
- [oracle@station90 ~]$ cp control11b.sql control11c.sql
- [oracle@station90 ~]$ ls
- control10d-after.sql create_t04209_uname.sql rac_tns tnsnames.ora 公共的 文档
- control11b.sql mail rcat.sql ttio.rcv 模板 下载
- control11c.sql oradiag_oracle revertape-root.sh update2_t04209_uname.sql 视频 音乐
- copytape-root.sh osb.txt select_t04209_uname.sql update_t04209_uname.sql 图片 桌面
- [oracle@station90 ~]$ vim control11c.sql
- [oracle@station90 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Thu Sep 7 21:08:11 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected.
- SQL> shutdown immediate
- Database closed.
- Database dismounted.
- ORACLE instance shut down.
- SQL> startup nomount
- ORACLE instance started.
- Total System Global Area 6680915968 bytes
- Fixed Size 2213936 bytes
- Variable Size 3556771792 bytes
- Database Buffers 3087007744 bytes
- Redo Buffers 34922496 bytes
- SQL> @control11c.sql
- CREATE CONTROLFILE SET DATABASE "DOG" RESETLOGS ARCHIVELOG
- *
- ERROR at line 1:
- ORA-01503: CREATE CONTROLFILE failed
- ORA-01504: database name 'DOG' does not match parameter db_name 'orcl'
- BEGIN :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('RETENTION POLICY','TO RECOVERY WINDOW OF 1 DAYS'); END;
- *
- ERROR at line 1:
- ORA-01507: database not mounted
- ORA-06512: at "SYS.X$DBMS_BACKUP_RESTORE", line 5049
- ORA-06512: at line 1
- BEGIN :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('BACKUP OPTIMIZATION','ON'); END;
- *
- ERROR at line 1:
- ORA-01507: database not mounted
- ORA-06512: at "SYS.X$DBMS_BACKUP_RESTORE", line 5049
- ORA-06512: at line 1
- BEGIN :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('DEFAULT DEVICE TYPE TO','''SBT_TAPE'''); END;
- *
- ERROR at line 1:
- ORA-01507: database not mounted
- ORA-06512: at "SYS.X$DBMS_BACKUP_RESTORE", line 5049
- ORA-06512: at line 1
- BEGIN :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('CONTROLFILE AUTOBACKUP','ON'); END;
- *
- ERROR at line 1:
- ORA-01507: database not mounted
- ORA-06512: at "SYS.X$DBMS_BACKUP_RESTORE", line 5049
- ORA-06512: at line 1
- BEGIN :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('DEVICE TYPE','DISK PARALLELISM 8 BACKUP TYPE TO BACKUPSET'); END;
- *
- ERROR at line 1:
- ORA-01507: database not mounted
- ORA-06512: at "SYS.X$DBMS_BACKUP_RESTORE", line 5049
- ORA-06512: at line 1
- BEGIN :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('DEVICE TYPE','''SBT_TAPE'' PARALLELISM 2 BACKUP TYPE TO BACKUPSET'); END;
- *
- ERROR at line 1:
- ORA-01507: database not mounted
- ORA-06512: at "SYS.X$DBMS_BACKUP_RESTORE", line 5049
- ORA-06512: at line 1
- BEGIN :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('CHANNEL','1 DEVICE TYPE ''SBT_TAPE'' PARMS ''ENV=(OB_MEDIA_FAMILY=station90)'''); END;
- *
- ERROR at line 1:
- ORA-01507: database not mounted
- ORA-06512: at "SYS.X$DBMS_BACKUP_RESTORE", line 5049
- ORA-06512: at line 1
- BEGIN :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('CHANNEL','2 DEVICE TYPE ''SBT_TAPE'' PARMS ''ENV=(OB_MEDIA_FAMILY=station90)'''); END;
- *
- ERROR at line 1:
- ORA-01507: database not mounted
- ORA-06512: at "SYS.X$DBMS_BACKUP_RESTORE", line 5049
- ORA-06512: at line 1
- SQL> create pfile='/home/oracle/initdog.ora' from spfile;
- File created.
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, OLAP, Data Mining and Real Application Testing options
- [oracle@station90 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Thu Sep 7 21:09:40 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected.
- SQL> shutdown immediate
- ORA-01507: database not mounted
- ORACLE instance shut down.
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, Automatic Storage Management, OLAP, Data Mining
- and Real Application Testing options
- [oracle@station90 ~]$ exit
- logout
- [root@station90 tmp]# vim /etc/oratab
- [root@station90 tmp]# su - oracle
- [oracle@station90 ~]$ . oraenv
- ORACLE_SID = [orcl] ? dog
- The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1 is /u01/app/oracle
- [oracle@station90 ~]$ ls
- control10d-after.sql create_t04209_uname.sql osb.txt select_t04209_uname.sql update_t04209_uname.sql 图片 桌面
- control11b.sql initdog.ora rac_tns tnsnames.ora 公共的 文档
- control11c.sql mail rcat.sql ttio.rcv 模板 下载
- copytape-root.sh oradiag_oracle revertape-root.sh update2_t04209_uname.sql 视频 音乐
- [oracle@station90 ~]$ vim initdog.ora
- [oracle@station90 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Thu Sep 7 21:11:08 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected to an idle instance.
- SQL> create spfile from pfile='/home/oracle/initdog.ora' ;
- File created.
- SQL> startup nomount
- ORACLE instance started.
- Total System Global Area 6680915968 bytes
- Fixed Size 2213936 bytes
- Variable Size 3556771792 bytes
- Database Buffers 3087007744 bytes
- Redo Buffers 34922496 bytes
- SQL> @control11c.sql
- CREATE CONTROLFILE SET DATABASE "DOG" RESETLOGS ARCHIVELOG
- *
- ERROR at line 1:
- ORA-01503: CREATE CONTROLFILE failed
- ORA-00200: control file could not be created
- ORA-00202: control file: '+DATA/orcl/controlfile/current.260.954103283'
- ORA-17502: ksfdcre:4 Failed to create file
- +DATA/orcl/controlfile/current.260.954103283
- ORA-15046: ASM file name '+DATA/orcl/controlfile/current.260.954103283' is not
- in single-file creation form
- BEGIN :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('RETENTION POLICY','TO RECOVERY WINDOW OF 1 DAYS'); END;
- *
- ERROR at line 1:
- ORA-01507: database not mounted
- ORA-06512: at "SYS.X$DBMS_BACKUP_RESTORE", line 5049
- ORA-06512: at line 1
- BEGIN :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('BACKUP OPTIMIZATION','ON'); END;
- *
- ERROR at line 1:
- ORA-01507: database not mounted
- ORA-06512: at "SYS.X$DBMS_BACKUP_RESTORE", line 5049
- ORA-06512: at line 1
- BEGIN :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('DEFAULT DEVICE TYPE TO','''SBT_TAPE'''); END;
- *
- ERROR at line 1:
- ORA-01507: database not mounted
- ORA-06512: at "SYS.X$DBMS_BACKUP_RESTORE", line 5049
- ORA-06512: at line 1
- BEGIN :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('CONTROLFILE AUTOBACKUP','ON'); END;
- *
- ERROR at line 1:
- ORA-01507: database not mounted
- ORA-06512: at "SYS.X$DBMS_BACKUP_RESTORE", line 5049
- ORA-06512: at line 1
- BEGIN :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('DEVICE TYPE','DISK PARALLELISM 8 BACKUP TYPE TO BACKUPSET'); END;
- *
- ERROR at line 1:
- ORA-01507: database not mounted
- ORA-06512: at "SYS.X$DBMS_BACKUP_RESTORE", line 5049
- ORA-06512: at line 1
- BEGIN :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('DEVICE TYPE','''SBT_TAPE'' PARALLELISM 2 BACKUP TYPE TO BACKUPSET'); END;
- *
- ERROR at line 1:
- ORA-01507: database not mounted
- ORA-06512: at "SYS.X$DBMS_BACKUP_RESTORE", line 5049
- ORA-06512: at line 1
- BEGIN :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('CHANNEL','1 DEVICE TYPE ''SBT_TAPE'' PARMS ''ENV=(OB_MEDIA_FAMILY=station90)'''); END;
- *
- ERROR at line 1:
- ORA-01507: database not mounted
- ORA-06512: at "SYS.X$DBMS_BACKUP_RESTORE", line 5049
- ORA-06512: at line 1
- BEGIN :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('CHANNEL','2 DEVICE TYPE ''SBT_TAPE'' PARMS ''ENV=(OB_MEDIA_FAMILY=station90)'''); END;
- *
- ERROR at line 1:
- ORA-01507: database not mounted
- ORA-06512: at "SYS.X$DBMS_BACKUP_RESTORE", line 5049
- ORA-06512: at line 1
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, OLAP, Data Mining and Real Application Testing options
- [oracle@station90 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Thu Sep 7 21:12:36 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected.
- SQL> shutdown immediate
- ORA-01507: database not mounted
- ORACLE instance shut down.
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, Automatic Storage Management, OLAP, Data Mining
- and Real Application Testing options
- [oracle@station90 ~]$ ls
- control10d-after.sql create_t04209_uname.sql osb.txt select_t04209_uname.sql update_t04209_uname.sql 图片 桌面
- control11b.sql initdog.ora rac_tns tnsnames.ora 公共的 文档
- control11c.sql mail rcat.sql ttio.rcv 模板 下载
- copytape-root.sh oradiag_oracle revertape-root.sh update2_t04209_uname.sql 视频 音乐
- [oracle@station90 ~]$ vim initdog.ora
- [oracle@station90 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Thu Sep 7 21:13:30 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected to an idle instance.
- SQL> create spfile from pfile='/home/oracle/initdog.ora' ;
- File created.
- SQL> startup nomount
- ORACLE instance started.
- Total System Global Area 6680915968 bytes
- Fixed Size 2213936 bytes
- Variable Size 3556771792 bytes
- Database Buffers 3087007744 bytes
- Redo Buffers 34922496 bytes
- SQL> @control11c.sql
- Control file created.
- PL/SQL procedure successfully completed.
- PL/SQL procedure successfully completed.
- PL/SQL procedure successfully completed.
- PL/SQL procedure successfully completed.
- PL/SQL procedure successfully completed.
- PL/SQL procedure successfully completed.
- PL/SQL procedure successfully completed.
- PL/SQL procedure successfully completed.
- SQL> alter database open ;
- alter database open
- *
- ERROR at line 1:
- ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
- SQL> alter database open resetlogs;
- Database altered.
- SQL> select name , dbid from v$database;
- NAME DBID
- --------- ----------
- DOG 1343950367
- SQL> shutdown immediate
- Database closed.
- Database dismounted.
- ORACLE instance shut down.
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, OLAP, Data Mining and Real Application Testing options
- [oracle@station90 ~]$ ls
- control10d-after.sql create_t04209_uname.sql osb.txt select_t04209_uname.sql update_t04209_uname.sql 图片 桌面
- control11b.sql initdog.ora rac_tns tnsnames.ora 公共的 文档
- control11c.sql mail rcat.sql ttio.rcv 模板 下载
- copytape-root.sh oradiag_oracle revertape-root.sh update2_t04209_uname.sql 视频 音乐
- [oracle@station90 ~]$ mv initdog.ora initorcl.ora
- [oracle@station90 ~]$ ls
- control10d-after.sql create_t04209_uname.sql osb.txt select_t04209_uname.sql update_t04209_uname.sql 图片 桌面
- control11b.sql initorcl.ora rac_tns tnsnames.ora 公共的 文档
- control11c.sql mail rcat.sql ttio.rcv 模板 下载
- copytape-root.sh oradiag_oracle revertape-root.sh update2_t04209_uname.sql 视频 音乐
- [oracle@station90 ~]$ vim initorcl.ora
- [oracle@station90 ~]$ vim initorcl.ora
- [oracle@station90 ~]$ . oraenv
- ORACLE_SID = [dog] ? orcl
- The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1 is /u01/app/oracle
- [oracle@station90 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Thu Sep 7 21:17:30 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected to an idle instance.
- SQL> startup pfile='/home/oracle/initorcl.ora' nomount
- ORACLE instance started.
- Total System Global Area 6680915968 bytes
- Fixed Size 2213936 bytes
- Variable Size 3556771792 bytes
- Database Buffers 3087007744 bytes
- Redo Buffers 34922496 bytes
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, OLAP, Data Mining and Real Application Testing options
- [oracle@station90 ~]$ ls
- control10d-after.sql create_t04209_uname.sql osb.txt select_t04209_uname.sql update_t04209_uname.sql 图片 桌面
- control11b.sql initorcl.ora rac_tns tnsnames.ora 公共的 文档
- control11c.sql mail rcat.sql ttio.rcv 模板 下载
- copytape-root.sh oradiag_oracle revertape-root.sh update2_t04209_uname.sql 视频 音乐
- [oracle@station90 ~]$ vim control11c.sql
- [oracle@station90 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Thu Sep 7 21:18:42 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / aS SYSDBA
- Connected.
- SQL> @control11c.sql
- Control file created.
- PL/SQL procedure successfully completed.
- PL/SQL procedure successfully completed.
- PL/SQL procedure successfully completed.
- PL/SQL procedure successfully completed.
- PL/SQL procedure successfully completed.
- PL/SQL procedure successfully completed.
- PL/SQL procedure successfully completed.
- PL/SQL procedure successfully completed.
- SQL> alter database open resetlogs;
- Database altered.
- SQL> select file_name , status from dba_temp_files;
- no rows selected
- SQL> alter tablespace temp add tempfile '+data' size 30M autoextend on ;
- Tablespace altered.
- SQL> select name , db_id from v$database;
- select name , db_id from v$database
- *
- ERROR at line 1:
- ORA-00904: "DB_ID": invalid identifier
- SQL> select name , dbid from v$database;
- NAME DBID
- --------- ----------
- ORCL 1343950367
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, Automatic Storage Management, OLAP, Data Mining
- and Real Application Testing options
- [oracle@station90 ~]$ exit
- logout
- [root@station90 tmp]# vim /etc/oratab
- [root@station90 tmp]# su - oracle
- [oracle@station90 ~]$ ls
- control10d-after.sql create_t04209_uname.sql osb.txt select_t04209_uname.sql update_t04209_uname.sql 图片 桌面
- control11b.sql initorcl.ora rac_tns tnsnames.ora 公共的 文档
- control11c.sql mail rcat.sql ttio.rcv 模板 下载
- copytape-root.sh oradiag_oracle revertape-root.sh update2_t04209_uname.sql 视频 音乐
- [oracle@station90 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Thu Sep 7 21:21:31 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> exit
- [oracle@station90 ~]$ . oraenv
- ORACLE_SID = [orcl] ?
- The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1 is /u01/app/oracle
- [oracle@station90 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Thu Sep 7 21:21:45 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected.
- SQL> shutdown immediate
- Database closed.
- Database dismounted.
- ORACLE instance shut down.
- SQL> startup mount
- ORACLE instance started.
- Total System Global Area 6680915968 bytes
- Fixed Size 2213936 bytes
- Variable Size 3556771792 bytes
- Database Buffers 3087007744 bytes
- Redo Buffers 34922496 bytes
- Database mounted.
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, Automatic Storage Management, OLAP, Data Mining
- and Real Application Testing options
- [oracle@station90 ~]$ nid
- DBNEWID: Release 11.2.0.1.0 - Production on Thu Sep 7 21:22:27 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- Keyword Description (Default)
- ----------------------------------------------------
- TARGET Username/Password (NONE)
- DBNAME New database name (NONE)
- LOGFILE Output Log (NONE)
- REVERT Revert failed change NO
- SETNAME Set a new database name only NO
- APPEND Append to output log NO
- HELP Displays these messages NO
- [oracle@station90 ~]$ nid target=sys/oracle_4U DBNAME=cat
- DBNEWID: Release 11.2.0.1.0 - Production on Thu Sep 7 21:23:15 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- Connected to database ORCL (DBID=1343950367)
- Connected to server version 11.2.0
- Control Files in database:
- +DATA/orcl/controlfile/current.260.954103283
- +FRA/orcl/controlfile/current.256.954103283
- Cannot read the header of the following datafiles:
- +DATA/orcl/datafile/system.256.81616955 (1), error: 14
- +DATA/orcl/datafile/sysaux.257.81616955 (2), error: 14
- +DATA/orcl/datafile/undotbs1.258.81616955 (3), error: 14
- +DATA/orcl/datafile/users.259.81616955 (4), error: 14
- +DATA/orcl/datafile/example.265.81616965 (5), error: 14
- NID-00137: All datafiles that are not dropped should be readable
- Change of database name failed during validation - database is intact.
- DBNEWID - Completed with validation errors.
- [oracle@station90 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Thu Sep 7 21:24:45 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdbas
- SP2-0306: Invalid option.
- Usage: CONN[ECT] [{logon|/|proxy} [AS {SYSDBA|SYSOPER|SYSASM}] [edition=value]]
- where <logon> ::= <username>[/<password>][@<connect_identifier>]
- <proxy> ::= <proxyuser>[<username>][/<password>][@<connect_identifier>]
- SQL> conn / as sysdba
- Connected.
- SQL> alter database open ;
- alter database open
- *
- ERROR at line 1:
- ORA-01190: control file or data file 1 is from before the last RESETLOGS
- ORA-01110: data file 1: '+DATA/orcl/datafile/system.256.816169553'
- SQL> alter database open resetlogs;
- alter database open resetlogs
- *
- ERROR at line 1:
- ORA-01139: RESETLOGS option only valid after an incomplete database recovery
- SQL> recover database ;
- ORA-00283: recovery session canceled due to errors
- ORA-19909: datafile 1 belongs to an orphan incarnation
- ORA-01110: data file 1: '+DATA/orcl/datafile/system.256.816169553'
- SQL> shutdown immediate
- ORA-01109: database not open
- Database dismounted.
- ORACLE instance shut down.
- SQL> startup
- ORACLE instance started.
- Total System Global Area 6680915968 bytes
- Fixed Size 2213936 bytes
- Variable Size 3556771792 bytes
- Database Buffers 3087007744 bytes
- Redo Buffers 34922496 bytes
- [oracle@station90 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Thu Sep 7 21:28:44 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected to an idle instance.
- SQL> create spfile='+data/orcl/spfileorcl.ora' from pfile='/home/oracle/initorcl.ora';
- File created.
- SQL> startup
- ORACLE instance started.
- Total System Global Area 6680915968 bytes
- Fixed Size 2213936 bytes
- Variable Size 3556771792 bytes
- Database Buffers 3087007744 bytes
- Redo Buffers 34922496 bytes
- Database mounted.
- Database opened.
- SQL> shutdown immediate
- Database closed.
- Database dismounted.
- ORACLE instance shut down.
- SQL> startup mount
- ORA-01078: failure in processing system parameters
- ORA-01565: error in identifying file '+DATA/orcl/spfileorcl.ora'
- ORA-17503: ksfdopn:2 Failed to open file +DATA/orcl/spfileorcl.ora
- ORA-15056: additional error message
- ORA-17503: ksfdopn:DGOpenFile05 Failed to open file +DATA/orcl/spfileorcl.ora
- ORA-17503: ksfdopn:2 Failed to open file +DATA/orcl/spfileorcl.ora
- ORA-15173: entry 'spfileorcl.ora' does not exist in directory 'orcl'
- ORA-06512: at line 4
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, Automatic Storage Management, OLAP, Data Mining
- and Real Application Testing options
- [oracle@station90 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Thu Sep 7 21:30:55 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected to an idle instance.
- SQL> startup mount
- ORA-01078: failure in processing system parameters
- ORA-01565: error in identifying file '+DATA/orcl/spfileorcl.ora'
- ORA-17503: ksfdopn:2 Failed to open file +DATA/orcl/spfileorcl.ora
- ORA-15056: additional error message
- ORA-17503: ksfdopn:DGOpenFile05 Failed to open file +DATA/orcl/spfileorcl.ora
- ORA-17503: ksfdopn:2 Failed to open file +DATA/orcl/spfileorcl.ora
- ORA-15173: entry 'spfileorcl.ora' does not exist in directory 'orcl'
- ORA-06512: at line 4
- SQL> create spfile='+DATA/orcl/spfileorcl.ora' from pfile='/home/oracle/initorcl.ora';
- File created.
- SQL> startup mount
- ORACLE instance started.
- Total System Global Area 6680915968 bytes
- Fixed Size 2213936 bytes
- Variable Size 3556771792 bytes
- Database Buffers 3087007744 bytes
- Redo Buffers 34922496 bytes
- Database mounted.
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, Automatic Storage Management, OLAP, Data Mining
- and Real Application Testing options
- [oracle@station90 ~]$ nid target=sys/oracle_4U DBNAME=cat
- DBNEWID: Release 11.2.0.1.0 - Production on Thu Sep 7 21:32:08 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- Connected to database ORCL (DBID=1343950367)
- Connected to server version 11.2.0
- Control Files in database:
- +DATA/orcl/controlfile/current.273.954105535
- +FRA/orcl/controlfile/current.286.954105535
- Change database ID and database name ORCL to CAT? (Y/[N]) => Y
- Proceeding with operation
- Changing database ID from 1343950367 to 766562648
- Changing database name from ORCL to CAT
- Control File +DATA/orcl/controlfile/current.273.954105535 - modified
- Control File +FRA/orcl/controlfile/current.286.954105535 - modified
- Datafile +DATA/orcl/datafile/system.256.81616955 - dbid changed, wrote new name
- Datafile +DATA/orcl/datafile/sysaux.257.81616955 - dbid changed, wrote new name
- Datafile +DATA/orcl/datafile/undotbs1.258.81616955 - dbid changed, wrote new name
- Datafile +DATA/orcl/datafile/users.259.81616955 - dbid changed, wrote new name
- Datafile +DATA/orcl/datafile/example.265.81616965 - dbid changed, wrote new name
- Datafile +DATA/orcl/tempfile/temp.277.95410557 - dbid changed, wrote new name
- Control File +DATA/orcl/controlfile/current.273.954105535 - dbid changed, wrote new name
- Control File +FRA/orcl/controlfile/current.286.954105535 - dbid changed, wrote new name
- Instance shut down
- Database name changed to CAT.
- Modify parameter file and generate a new password file before restarting.
- Database ID for database CAT changed to 766562648.
- All previous backups and archived redo logs for this database are unusable.
- Database is not aware of previous backups and archived logs in Recovery Area.
- Database has been shutdown, open database with RESETLOGS option.
- Succesfully changed database name and ID.
- DBNEWID - Completed succesfully.
- [oracle@station90 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Thu Sep 7 21:32:56 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected to an idle instance.
- SQL> exit
- Disconnected
- [oracle@station90 ~]$ ls
- control10d-after.sql create_t04209_uname.sql osb.txt select_t04209_uname.sql update_t04209_uname.sql 图片 桌面
- control11b.sql initorcl.ora rac_tns tnsnames.ora 公共的 文档
- control11c.sql mail rcat.sql ttio.rcv 模板 下载
- copytape-root.sh oradiag_oracle revertape-root.sh update2_t04209_uname.sql 视频 音乐
- [oracle@station90 ~]$ mv initorcl.ora initcat.ora
- [oracle@station90 ~]$ ls
- control10d-after.sql create_t04209_uname.sql osb.txt select_t04209_uname.sql update_t04209_uname.sql 图片 桌面
- control11b.sql initcat.ora rac_tns tnsnames.ora 公共的 文档
- control11c.sql mail rcat.sql ttio.rcv 模板 下载
- copytape-root.sh oradiag_oracle revertape-root.sh update2_t04209_uname.sql 视频 音乐
- [oracle@station90 ~]$ vim initcat.ora
- [oracle@station90 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Thu Sep 7 21:33:54 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected to an idle instance.
- SQL> exit
- Disconnected
- [oracle@station90 ~]$ . oraenv
- ORACLE_SID = [orcl] ? cat
- The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1 is /u01/app/oracle
- [oracle@station90 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Thu Sep 7 21:34:09 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected to an idle instance.
- SQL> startup
- ORA-01078: failure in processing system parameters
- LRM-00109: could not open parameter file '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/initcat.ora'
- SQL> conn / as sysdba
- Connected to an idle instance.
- SQL> startup pfile='/home/oracle/initcat.ora'
- ORACLE instance started.
- Total System Global Area 6680915968 bytes
- Fixed Size 2213936 bytes
- Variable Size 3556771792 bytes
- Database Buffers 3087007744 bytes
- Redo Buffers 34922496 bytes
- Database mounted.
- ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
- SQL> alter database open resetlogs;
- Database altered.
- SQL> select name, dbid from v$database;
- NAME DBID
- --------- ----------
- CAT 766562648
- SQL> select file_name , status from dba_temp_files;
- FILE_NAME
- --------------------------------------------------------------------------------
- STATUS
- -------
- +DATA/orcl/tempfile/temp.277.954105579
- ONLINE
- SQL> shutdown immediate
- Database closed.
- Database dismounted.
- ORACLE instance shut down.
- SQL> startup pfile='/home/oracle/initcat.ora' mount
- ORACLE instance started.
- Total System Global Area 6680915968 bytes
- Fixed Size 2213936 bytes
- Variable Size 3556771792 bytes
- Database Buffers 3087007744 bytes
- Redo Buffers 34922496 bytes
- Database mounted.
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
- With the Partitioning, Automatic Storage Management, OLAP, Data Mining
- and Real Application Testing options
- [oracle@station90 ~]$ nid target=sys/oracle_4U DBNAME=orcl
- DBNEWID: Release 11.2.0.1.0 - Production on Thu Sep 7 21:36:52 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- Connected to database CAT (DBID=766562648)
- Connected to server version 11.2.0
- Control Files in database:
- +DATA/orcl/controlfile/current.273.954105535
- +FRA/orcl/controlfile/current.286.954105535
- Change database ID and database name CAT to ORCL? (Y/[N]) => Y
- Proceeding with operation
- Changing database ID from 766562648 to 1481917044
- Changing database name from CAT to ORCL
- Control File +DATA/orcl/controlfile/current.273.954105535 - modified
- Control File +FRA/orcl/controlfile/current.286.954105535 - modified
- Datafile +DATA/orcl/datafile/system.256.81616955 - dbid changed, wrote new name
- Datafile +DATA/orcl/datafile/sysaux.257.81616955 - dbid changed, wrote new name
- Datafile +DATA/orcl/datafile/undotbs1.258.81616955 - dbid changed, wrote new name
- Datafile +DATA/orcl/datafile/users.259.81616955 - dbid changed, wrote new name
- Datafile +DATA/orcl/datafile/example.265.81616965 - dbid changed, wrote new name
- Datafile +DATA/orcl/tempfile/temp.277.95410557 - dbid changed, wrote new name
- Control File +DATA/orcl/controlfile/current.273.954105535 - dbid changed, wrote new name
- Control File +FRA/orcl/controlfile/current.286.954105535 - dbid changed, wrote new name
- Instance shut down
- Database name changed to ORCL.
- Modify parameter file and generate a new password file before restarting.
- Database ID for database ORCL changed to 1481917044.
- All previous backups and archived redo logs for this database are unusable.
- Database is not aware of previous backups and archived logs in Recovery Area.
- Database has been shutdown, open database with RESETLOGS option.
- Succesfully changed database name and ID.
- DBNEWID - Completed succesfully.
- [oracle@station90 ~]$ ls
- control10d-after.sql create_t04209_uname.sql osb.txt select_t04209_uname.sql update_t04209_uname.sql 图片 桌面
- control11b.sql initcat.ora rac_tns tnsnames.ora 公共的 文档
- control11c.sql mail rcat.sql ttio.rcv 模板 下载
- copytape-root.sh oradiag_oracle revertape-root.sh update2_t04209_uname.sql 视频 音乐
- [oracle@station90 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Thu Sep 7 21:37:19 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected to an idle instance.
- SQL> startup
- ORA-01078: failure in processing system parameters
- LRM-00109: could not open parameter file '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/initcat.ora'
- SQL> exit
- Disconnected
- [oracle@station90 ~]$ . oraenv
- ORACLE_SID = [cat] ? orcl
- The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1 is /u01/app/oracle
- [oracle@station90 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Thu Sep 7 21:37:35 2017
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected to an idle instance.
- SQL> startup
- ORACLE instance started.
- Total System Global Area 6680915968 bytes
- Fixed Size 2213936 bytes
- Variable Size 3556771792 bytes
- Database Buffers 3087007744 bytes
- Redo Buffers 34922496 bytes
- Database mounted.
- ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
- SQL> alter database open resetlogs;
- Database altered.
- SQL> select name , dbid from v$database;
- NAME DBID
- --------- ----------
- ORCL 1481917044
- SQL>
复制代码
|
|