You are on page 1of 1

steps Source (redmi) Target (redmicln)

Should be 1) open 2) archivelog 3)no datafiles/tb's offline


1 Run redmi.env (database env file) Run redmicln.env (database env file)
2 Copy password file Change the password file as per sid
$ scp -r orapwredmi linux3.oracle.com:/$ORACLE_HOME/dbs
3 Copy pfile Edit the pfile parameters
$scp initfile.ora linux3.oracle.com:/$ORACLE_HOME/dbs 1 DB_NAME
2 CONTROL_FILES
3 AUDIT_FILE_DEST
4 DB_FILE_NAME_CONVERT
5 LOG_FILE_NAME_CONVERT
6 LOG_ARCHIVE_DEST_1='LOCATION=/U02/ARC'
7 DB_UNIQUE_NAME=

4 CREATE THE DIRECTORIES AS PER STRUCTURE (pfile)

5 Configure listener
Admin]$vi listener.ora
LISREDMICLN = (DESCRIPTION =
(ADDRESS = (HOST = 192.168.1.30) (PORT = 1521) (PROTOCOL =
TCP)))
SID_LIST_LISREDMICLN =
(SID_LIST =
(SID_DESC =
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME = redmicln)
)
)

6 Configure tnsnames.ora
Admin]$ vi tnsnames.ora
tredmicln =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.30)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = redmicln)
)
)

7 Do tnsping for testing Start the listener for testing


]$tnsping tredmicln ]$lsnrctl start lisredmicln

8 ]$ sqlplus / as sysdba
Startup nomount
9 SQL> alter system switch logfile; ( three or four times)
rman target /
RMAN> configure channel device type disk format
'/u01/app/rman/%d_%s';
RMAN> backup database current controlfile plus archivelog;

10 Copy all backup pieces to target Backup location should be same as in source

11 $ rman target / auxiliary = sys/manager@tredmicln

12 RMAN> duplicate target database to redmicln;

13 SQL> select name, open_mode, log_mode from v$database;

You might also like