ORACLE12Credo exception recovery test-some pdb are not open

Source: Internet
Author: User
In order to verify the restoration of ORACLE12CCDB database when redo is lost, a small experiment was conducted. Three sessions were operated to execute a delete statement in rootpdb without submitting the statement; the delete record of another session in userpdb is not submitted; the last session directly abort the database, and then restore the database to verify whether the database can

In order to verify the restoration of the ORACLE 12C CDB database when redo is lost, a small experiment was conducted. Three sessions were operated to execute a delete statement in root pdb without submitting the statement; the delete record of another session in user pdb is not submitted; the last session directly abort the database, and then restore the database to verify whether the database is available

In order to verify the restoration of the ORACLE 12C CDB database when redo is lost, a small experiment was conducted. Three sessions were operated to execute a delete statement in root pdb without submitting the statement; the delete record of another session in user pdb is not submitted; the last session directly abort the database, and then restore the database to verify whether the database can be open normally (all pdb)
Session 1 (actions in root pdb)

CDB_CDB $ ROOT @ SYS> show pdbs; CON_ID CON_NAME open mode restricted ---------- response ---------- 2 PDB $ seed read only no 3 pdb read write NOCDB_CDB $ ROOT @ SYS> show con_nameCON_NAME primary CDB $ ROOTCDB_CDB $ ROOT @ SYS> create table External as select * from dba_objects; the table has been created. CDB_CDB $ ROOT @ SYS> delete from t_xifenfei; 91032 rows have been deleted. CDB_CDB $ ROOT @ SYS>

Session 2 (Operations in user pdb)

CDB_CDB $ ROOT @ SYS> show con_nameCON_NAME ------------------------------ PDBCDB_CDB $ ROOT @ SYS> drop table t_xifenfei purge; the table has been deleted. CDB_CDB $ ROOT @ SYS> create table t_xifenfei as select * from dba_objects; the table has been created. CDB_CDB $ ROOT @ SYS> delete from t_xifenfei; 91144 rows have been deleted.

Session 3 (direct abort database)

CDB_CDB $ ROOT @ SYS> shutdown abort; the ORACLE routine has been disabled.

Delete online database logs

E: \ app \ XIFENFEI \ oradata \ cdb> dir redo *. the volume in log drive E is the serial number of the local disk volume, which is 000C-3B41 E: \ app \ XIFENFEI \ oradata \ cdb directory 2013-08-07 0:41 52,429,312 REDO01.LOG2013-08-07 0:40 52,429,312 REDO02.LOG2013-08-07 0:40 52,429,312 REDO03.LOG2014-03-20 52,432,896 REDO04.LOG2014-03-20 52,432,896 REDO05.LOG2014-03-20 52,432,896 314,586,624 REDO06.LOG 6 files 21,359,374,336 bytes 0 directories available bytes e: \ app \ XIFENFEI \ oradata \ cdb> del redo *. logE: \ app \ XIFENFEI \ oradata \ cdb> dir redo *. the volume in log drive E is the serial number of the local disk volume, which is 000C-3B41 E: \ app \ XIFENFEI \ oradata \ cdb. the file cannot be found.

Startup database reports ORA-00313 Error

Idle> the startupORACLE routine has been started. Total System Global Area 521936896 bytesFixed Size 2404552 bytesVariable Size 205524792 bytesDatabase Buffers 306184192 bytesRedo Buffers 7823360 bytes database loaded. ORA-00313: Unable to open member ORA-00312 for log group 6 (for thread 1): Online log 6 thread 1: 'e: \ APP \ XIFENFEI \ ORADATA \ CDB \ REDO06.LOG 'ora-27041: failed to open file OSD-04002: failed to open file O/S-Error: (OS 2) the system could not find the specified file.

Use the _ allow_resetlogs_uption parameter to try the open Database

Idle> the shutdown abortORACLE routine has been disabled. Idle> startup pfile = 'd:/pfile.txt 'mountORACLE routine has been started. Total System Global Area 521936896 bytesFixed Size 2404552 bytesVariable Size 205524792 bytesDatabase Buffers 306184192 bytesRedo Buffers 7823360 bytes database loaded. Idle> show parameter resetlogs; name type value values ----------- extract _ allow_resetlogs_upload uption boolean TRUEidle> recover database until cancel; ORA-00279: Change 12696935641735 (generated at 03/20/2014 22:38:52) is a required ORA-00289 for thread 1: suggestion: E: \ APP \ XIFENFEI \ FAST_RECOVERY_AREA \ CDB \ ARCHIVELOG \ 2014_03_20 \ O1_MF_1_872_9LOZSK9X_.ARCORA-00280: Change 12696935641735 (for thread 1) Specify the log in sequence #872: {= suggested | filename | AUTO | CANCEL} cancelORA-01547: Warning: RECOVER successful but open resetlogs will have the following error ORA-01194: File 1 requires more recovery to maintain consistent ORA-01110: data File 1: 'e: \ APP \ XIFENFEI \ ORADATA \ CDB \ system01.dbf' ORA-01112: Restoring idle> alter database open resetlogs when no media is started; alter database open resetlogs * 1st row error: ORA-00603: ORACLE server session terminated by fatal errorORA-00600: internal error code, arguments: [2662], [2956], [1012314778], [2956], [1012314903], [268435600], [], [], [], [], [], [] ORA-00600: internal error code, arguments: [2662], [2956], [1012314777], [2956], [1012314903], [268435600], [], [], [], [], [], [], [] ORA-01092: ORACLE instance terminated. disconnection forcedORA-00600: internal error code, arguments: [2662], [2956], [1012314768], [2956], [1012314903], [268435600], [], [], [], [], [], [] process ID: 9268 session ID: 92 serial number: 3

Ora-600 [2662] is very familiar with, the file header scn is smaller than the csn of a block in the file, through bbed and other tools to modify the file scn, try to start the database

CDB_CDB $ ROOT @ SYS> the shutdown abortoracle routine has been disabled. CDB_CDB $ ROOT @ SYS> the STARTUPORACLE routine has been started. Total System Global Area 521936896 bytesFixed Size 2404552 bytesVariable Size 205524792 bytesDatabase Buffers 306184192 bytesRedo Buffers 7823360 bytes database loaded. The database has been opened.

Try open user pdb

CDB_CDB $ ROOT @ SYS> alter session set container = pdb; the session has been changed. CDB_CDB $ ROOT @ SYS> alter database open; alter database open * 1st Line Error: ORA-00600: Internal error code, parameter: [kcvfdb_pdb_set_clean_scn: cleanckpt], [3], [2956], [1012312995], [2956], [1012334778], [2], [], [], [], [], [], []

Query mos to get the conclusion:
Bug 16784143 ORA-600 [kcvfdb_pdb_set_clean_scn: cleanckpt] with PDBs
Fix the issue in 12.2/12.1.0.2/12.1.0.1.1 and try patch later for further recovery.

Test result proof
1. There is no major difference between the open process of root pdb and the database of previous versions, but it is difficult to promote the scn. The previous event and implicit parameter methods are invalid.
2. user pdb checks again because the bug cannot be opened, and subsequent verification will continue.
3.12.1 The base version may have a lot of problems, so be cautious in production.

  • ORACLE 12C redo exception recovery test-patch-based recovery complete
  • ORACLE 12C control file exception recovery
  • Deploying mongourad in ORACLE 12C Windows-Linux
  • Promote the database scn by modifying the control file scn
  • Record 8.0.5 database recovery process
  • Current redo damage due to abnormal power failure
  • Recovery of data files lost during normal operation of pdb
  • Current online log corruption recovery

Original article address: ORACLE 12C redo exception recovery test-some pdb are not open normally. Thank you for sharing it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.