Professional Documents
Culture Documents
Page 1
Towards Production(Server)
Step 1: Take a backup of full database,controlfile and archives using
rman.
RMAN>run
Page 2
Step 3: Transfer the rman backup and control file backup from
production(server) to test machine(orcl).
$ export ORACLE_SID=orcl
$ df h
<SQL>Drop database
Or
Edit the pfile and give the dbname as same as production database name(server)
Page 3
$ sqlplus '/as sysdba'
SQL>exit
$rmantarget /
RMAN>set DBID=3811002090
Page 4
SET NEWNAME FOR DATAFILE '+ORA_DATA/server/datafile/system.267.810838825' to
'/u02/orcl/ system02.dbf';
RESTORE Database;
SQL>exit
Page 5
Step 6: Rename the all restored controlfiles on test machine.
ie. /u03/orcl/controlfiles/control01.ctl to control01.ctl_bkup ...
Step 7: Now recreate controlfile and also can change the test
machine database name.
To change database name
b.editcontrolfile(control.sql)
To recreate controlfile
$ export ORACLE_SID=ORCL
SQL>startup nomount;
SQL>@/u03/orcl/control.sql
Page 6
Step 11: Put the Database in NOARCHIVE mode
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL>startup mount
ORACLE instance started.
SQL> alter database noarchivelog;
Database altered.
SQL> alter database open;
Database altered.
SQL> archive log list;
ISSUES
*{[Error 1:-while converting the datafiles path from asm to non-asm we got the following
Error
Linux-x86_64 Error: 2: No such file or directory
Additional information: 3
Solution:-This Error occurred because we had 3 backups in our backup set so other two backup
piece was no datafiles to restore the actual datafiles was in the 3rd backup piece, so we gave a
command as
Page 7
RMAN> crosscheck backup of database;
This command made the other two backup piece has expired and the one we need was made as
available.}
Page 8