Control File Creation
Control File Creation
===================================================================================
================================
SQL> select name from v$controlfile;
NAME
--------------------------------------------------------------------------------
+DATA/CRCDB01/CONTROLFILE/current.5222.892038833
+FRA/CRCDB01/CONTROLFILE/current.1133.892038833
cp current.5222.892038833 /tmp/controldataback.5222.892038833
cp current.1133.892038833 /tmp/controlfraback.1133.892038833
/u01/app/oracle/diag/rdbms/crcdb01/crcdb01_1/trace/crcdb01_1_ora_53281442.trc
startup nomount
alter system set cluster_database=false scope=spfile;
shutdown
startup nomount
===================================================================================
===================================
startup nomount
sqlplus / as sysdba
SQL> @create_control.sql
SQL> @control.sql
ORA-01081: cannot start already-running ORACLE - shut it down first
Database altered.
System altered.
Database altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
Tablespace altered.
Session altered.
===================================================================================
======================================================
comment crontab file:
Database altered.
/u01/app/oracle/diag/rdbms/sector71/sector71/trace/sector71_ora_3746.trc
@script
------------------------------>>
Schedule backup:
RUN{
ALLOCATE CHANNEL c1 TYPE DISK;
ALLOCATE CHANNEL c2 TYPE DISK;
ALLOCATE CHANNEL c3 TYPE DISK;
ALLOCATE CHANNEL c4 TYPE DISK;
backup incremental level 0 database format '/tempdump/oracle/rman_backup/P3010DVH_
%D_%M_%Y_%U.bak' TAG Before_upgrade;
backup archivelog from time 'sysdate-1' until time 'sysdate' format
'/tempdump/oracle/rman_backup/arc_%d_%D_%M_%Y_%U.bak' TAG Before_upgrade;
backup current controlfile FORMAT '/tempdump/oracle/rman_backup/ctl_%d_%D_%M_%Y_
%U.ctl' TAG Before_upgrade;
}
https://support.oracle.com/epmos/faces/SearchDocDisplay?_adf.ctrl-
state=8jaaq8j7v_9&_afrLoop=365553896000136#aref_section32
https://support.oracle.com/epmos/faces/DocumentDisplay?
_afrLoop=377055122398383&id=118931.1&_adf.ctrl-state=1a8xnn15gt_150
===================================================================================
==================================================================