test_OLD =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.120.1.1)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = test)
)
)
test_NEW =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.120.1.2)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = test)
)
)
On Source:
alter user sys identified by "password" account unlock;
orapwd file=orapwtest password=password entries=5
create pfile from spfile;
scp orapwtest oracle@10.120.1.2:/opt/app/oracle/product/10.2.0/dbs/
scp inittest.ora oracle@10.120.1.2:/opt/app/oracle/product/10.2.0/dbs/
Rman > CONFIGURE DEVICE TYPE DISK PARALLELISM 6 BACKUP TYPE TO BACKUPSET;
Take a fullbackup.
On TARGET
Edit pfile
*.db_create_file_dest='+DATA'
*.db_create_online_log_dest_1='+REDO'
*.control_files='+DATA/test/controlfile/control01.ctl','+REDO/test/controlfile/control02.ctl'
*.audit_file_dest='/opt/app/oracle/admin/test/adump'
*.background_dump_dest='/opt/app/oracle/admin/test/bdump'
*.core_dump_dest='/opt/app/oracle/admin/test/cdump'
*.user_dump_dest='/opt/app/oracle/admin/test/udump'
Create directories
mkdir -p /opt/app/oracle/admin/test/adump
mkdir -p /opt/app/oracle/admin/test/bdump
mkdir -p /opt/app/oracle/admin/test/cdump
mkdir -p /opt/app/oracle/admin/test/udump
Make sure the backup from source db is accessible in the same location to standby
If not create directories and copy backup and archive logs to the target
scp -r /oracle/oradata1/backup/test oracle@10.120.1.2:/oracle/oradata1/backup/
Copy the archive logs from source to target
scp -r /oracle/oradata1/archive/test oracle@10.120.1.2:/oracle/oradata1/archive/
Target:
startup nomount
rman target sys/Password@test_old auxiliary /
DUPLICATE TARGET DATABASE TO test;
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.120.1.1)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = test)
)
)
test_NEW =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.120.1.2)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = test)
)
)
On Source:
alter user sys identified by "password" account unlock;
orapwd file=orapwtest password=password entries=5
create pfile from spfile;
scp orapwtest oracle@10.120.1.2:/opt/app/oracle/product/10.2.0/dbs/
scp inittest.ora oracle@10.120.1.2:/opt/app/oracle/product/10.2.0/dbs/
Rman > CONFIGURE DEVICE TYPE DISK PARALLELISM 6 BACKUP TYPE TO BACKUPSET;
Take a fullbackup.
On TARGET
Edit pfile
*.db_create_file_dest='+DATA'
*.db_create_online_log_dest_1='+REDO'
*.control_files='+DATA/test/controlfile/control01.ctl','+REDO/test/controlfile/control02.ctl'
*.audit_file_dest='/opt/app/oracle/admin/test/adump'
*.background_dump_dest='/opt/app/oracle/admin/test/bdump'
*.core_dump_dest='/opt/app/oracle/admin/test/cdump'
*.user_dump_dest='/opt/app/oracle/admin/test/udump'
Create directories
mkdir -p /opt/app/oracle/admin/test/adump
mkdir -p /opt/app/oracle/admin/test/bdump
mkdir -p /opt/app/oracle/admin/test/cdump
mkdir -p /opt/app/oracle/admin/test/udump
Make sure the backup from source db is accessible in the same location to standby
If not create directories and copy backup and archive logs to the target
scp -r /oracle/oradata1/backup/test oracle@10.120.1.2:/oracle/oradata1/backup/
Copy the archive logs from source to target
scp -r /oracle/oradata1/archive/test oracle@10.120.1.2:/oracle/oradata1/archive/
Target:
startup nomount
rman target sys/Password@test_old auxiliary /
DUPLICATE TARGET DATABASE TO test;
No comments:
Post a Comment