Control file creation script can be extracted in many ways
1. alter database backup controlfile to trace;
2. dbms_resotre.restoreControlfile
3. using views
select ' CREATE CONTROLFILE REUSE DATABASE "ORCL" RESETLOGS ARCHIVELOG ' from dual
/
Select ' MAXDATAFILES ' || records_total from v$controlfile_record_section where type = 'DATAFILE'
/
Select ' MAXLOGHISTORY ' || records_total from v$controlfile_record_section where type = 'LOG HISTORY'
/
Select ' MAXINSTANCES ' || records_total from v$controlfile_record_section where type = 'DATABASE'
/
Select ' MAXLOGFILES ' || records_total from v$controlfile_record_section where type = 'REDO LOG'
/
Select ' MAXLOGMEMBERS ' || dimlm from x$kccdi/
select ' LOGFILE ' from dual
/
select ' GROUP ' || group# || ' ''' || member ||'''' from v$logfile
/
select ' datafile ' from dual
/
select ' ''' || file_name ||'''' from dba_data_files
/
select ' alter tablespace ' || tablespace_name || ' add tempfile ' || file_name || ' ; ' from dba_temp_files;
/
Dear Friends, The content in this blog are purely based on my own opinion ,it is not reflecting any of my current or previous employers materials or official documents. All my posts here are not warranted to be free of errors. Please use at your own risk and after thorough testing in your environment. If you feel that i am violating any of the company's policies or documents, kindly mail me at jeyaseelan.hi@gmail.com,I am happy to take out those content from this blog.
Subscribe to:
Post Comments (Atom)
-
We may not be able to disable the logtransport when the database is in maximum availabilty mode. We may get the below error DGMGRL...
-
Error Messages: We may get the following error messages while doing ASM operations ORA-15137: The ASM cluster is in rolling patch state....
-
MIRA - Multi Instance Redo Apply - 12cR2 onwards/18C With Oracle 12c Release 2, We can enable Multi Instance Redo apply ( MIR...
No comments:
Post a Comment