- Copy and Edit init.ora file (if init.ora cant be found or unavailable then, do strings on the controlfile from rman backup and make up init.ora)
- Create required folders like bdump, udump etc (that are referred in init.ora)
- Add entry into /etc/oratab file
- Add entry into /etc/tnsnames.ora file
- set . oraenv
- sqlplus / as sysdba
- startup nomount (use pfile= option if init.ora file is not located under $ORACLE_HOME/dbs folder)
- exit from sqlplus
- rman target / nocatalog (once connected to RMAN, pl. note that the “connected to target database:” is the one that you intended to connect and its in “(not mounted)” mode.
- set dbid= (find this value from the backup logs);
- restore controlfile from ‘full_path_here’;
- mount database;
- restore database;
- recover database;
- alter database open resetlogs;
if ORA-39700: database must be opened with UPGRADE option Then,
- sqlplus / as sysdba
- startup upgrade;
- run catupgrd.sql from $ORACLE_HOME/rdbms/admin Folder. To upgrade to 10.2 (latest version if the backup was from previous release)
- shutdown immediate
- startup
- run utlrp.sql from $ORACLE_HOME/rdbms/admin Folder to recompile any invalid objects.
No comments:
Post a Comment