Different ways of restoring spfile and controlfile
1. Restore SPFILE
restore spfile to '/bkp/spfile.ora';
restore spfile to '/bkp/spfile.ora' from autobackup;
restore spfile to '/bkp/spfile.ora' from tag=man_bkp;
restore spfile to '/bkp/spfile.ora' from /home/oracle/bkp/c-543432-24342-01 ;
restore spfile to '/bkp/spfile.ora' until time 'sysdate-31;
2. Restore Controlfile
restore controlfile to '/bkp/controlfile.ctl';
restore controlfile to '/bkp/controlfile.ctl' from autobackup;
restore controlfile to '/bkp/controlfile.ctl' from tag=man_bkp;
restore controlfile to '/bkp/controlfile.ctl' from /bkp/c-543432-24342-01 ;
restore controlfile to '/bkp/controlfile.ctl' until time 'sysdate-31;
Wednesday, February 6, 2008
Monday, February 4, 2008
Transportable TBS - Part 3
Transportable Tablespace from RMAN backup.
Assumptions
* Tablespace name=TTBS
* Same platform (source and target)
* We have RMAN backup of the database
RMAN> transport tablespace TTBS
tablespace destination '/opt/oracle/ttbs_dir'
auxiliary destination '/opt/oracle/aux_ttbs'
datapump directory DATA_PUMP_DIR
dump file 'expdp_ttbs_01.dmp'
import script 'impdp_ttbs_01.sql'
export log 'expdp_ttbs.log';
Explanation:
tablespace destination - in this location RMAN stores datafiles of the TTBS
auxiliary destination - in this location RMAN creates temporary database and later deletes it.
datapump directory - in this export dump of metadata of TTBS is stored
dump file - Name of the datapump dump file
import script - RMAN creates import file which can be used to import the metadata
Possible Error:
While importing i got the below error. i just created the user_name in the database.
ORA-29342: user user_name does not exist in the database
Assumptions
* Tablespace name=TTBS
* Same platform (source and target)
* We have RMAN backup of the database
RMAN> transport tablespace TTBS
tablespace destination '/opt/oracle/ttbs_dir'
auxiliary destination '/opt/oracle/aux_ttbs'
datapump directory DATA_PUMP_DIR
dump file 'expdp_ttbs_01.dmp'
import script 'impdp_ttbs_01.sql'
export log 'expdp_ttbs.log';
Explanation:
tablespace destination - in this location RMAN stores datafiles of the TTBS
auxiliary destination - in this location RMAN creates temporary database and later deletes it.
datapump directory - in this export dump of metadata of TTBS is stored
dump file - Name of the datapump dump file
import script - RMAN creates import file which can be used to import the metadata
Possible Error:
While importing i got the below error. i just created the user_name in the database.
ORA-29342: user user_name does not exist in the database
Subscribe to:
Posts (Atom)