oracle 12c Single Instance to Single Instance的Active Database Duplicate测试
2016-10-11 17:14
239 查看
oracle 12c Single Instance to Single Instance的Active Database Duplicate测试
--target
SQL> archive log list
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination /home/oracle/app/oracle/product/12.1.0/db_1/dbs/arch
Oldest online log sequence 278
Current log sequence 280
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance
ORACLE instance started.
Total System Global Area 2516582400 bytes
Fixed Size 2927528 bytes
Variable Size 973079640 bytes
Database Buffers 1526726656 bytes
Redo Buffers 13848576 bytes
Database mounted.
SQL> alter database archivelog
2 ;
Database altered.
SQL> alter database open;
Database altered.
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /home/oracle/app/oracle/product/12.1.0/db_1/dbs/arch
Oldest online log sequence 278
Next log sequence to archive 280
Current log sequence 280
SQL>
--auxiliary
cat initauxdb.ora
*.audit_file_dest='/home/oracle/app/oracle/admin/oradb/adump'
*.audit_trail='db'
*.compatible='12.1.0.2.0'
*.control_files='/home/oracle/app/oracle/oradata/oradb/control01.ctl','/home/oracle/app/oracle/fast_recovery_area/oradb/control02.ctl'
*.db_block_size=8192
*.db_name='oradb'
db_file_name_convert=('/home/oracle/app/oracle/oradata/tardb','/home/oracle/app/oracle/oradata/oradb','/home/oracle/app/oracle/oradata/tsp_tardb','/home/oracle/app/oracle/oradata/oradb')
log_file_name_convert=('/home/oracle/app/oracle/oradata/tardb','/home/oracle/app/oracle/oradata/oradb')
cp orapwtardb orapwauxdb
startup nomount pfile='/home/oracle/app/oracle/product/12.1.0/db_1/dbs/initauxdb.ora';
--target
rman target sys/tardb@10.16.28.200/tardb auxiliary sys/tardb@172.16.28.210/oradb
--duplicate target database to oradb from active database;
duplicate target database to oradb from active database nofilenamecheck;
--auxiliary check
ALTER SYSTEM SET SEC_CASE_SENSITIVE_LOGON = FALSE;
select name from v$datafile;
select host_name,instance_name,status from gv$instance;
show parameter name
show parameter pfile
select * from v$log;
select * from v$logfile;
--target
SQL> archive log list
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination /home/oracle/app/oracle/product/12.1.0/db_1/dbs/arch
Oldest online log sequence 278
Current log sequence 280
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance
ORACLE instance started.
Total System Global Area 2516582400 bytes
Fixed Size 2927528 bytes
Variable Size 973079640 bytes
Database Buffers 1526726656 bytes
Redo Buffers 13848576 bytes
Database mounted.
SQL> alter database archivelog
2 ;
Database altered.
SQL> alter database open;
Database altered.
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /home/oracle/app/oracle/product/12.1.0/db_1/dbs/arch
Oldest online log sequence 278
Next log sequence to archive 280
Current log sequence 280
SQL>
--auxiliary
cat initauxdb.ora
*.audit_file_dest='/home/oracle/app/oracle/admin/oradb/adump'
*.audit_trail='db'
*.compatible='12.1.0.2.0'
*.control_files='/home/oracle/app/oracle/oradata/oradb/control01.ctl','/home/oracle/app/oracle/fast_recovery_area/oradb/control02.ctl'
*.db_block_size=8192
*.db_name='oradb'
db_file_name_convert=('/home/oracle/app/oracle/oradata/tardb','/home/oracle/app/oracle/oradata/oradb','/home/oracle/app/oracle/oradata/tsp_tardb','/home/oracle/app/oracle/oradata/oradb')
log_file_name_convert=('/home/oracle/app/oracle/oradata/tardb','/home/oracle/app/oracle/oradata/oradb')
cp orapwtardb orapwauxdb
startup nomount pfile='/home/oracle/app/oracle/product/12.1.0/db_1/dbs/initauxdb.ora';
--target
rman target sys/tardb@10.16.28.200/tardb auxiliary sys/tardb@172.16.28.210/oradb
--duplicate target database to oradb from active database;
duplicate target database to oradb from active database nofilenamecheck;
--auxiliary check
ALTER SYSTEM SET SEC_CASE_SENSITIVE_LOGON = FALSE;
select name from v$datafile;
select host_name,instance_name,status from gv$instance;
show parameter name
show parameter pfile
select * from v$log;
select * from v$logfile;
相关文章推荐
- oracle 12c RAC to Single Instance的Active Database Duplicate测试
- Convert Oracle 9i Single-Instance database to 10g RAC .
- Migrate database from single instance to Oracle RAC
- Upgrade Oracle 10g from 10.2.0.1 to 10.2.0.4 (Single Instance)
- Convert a Single Instance Database to Oracle RAC 10g on RHEL3
- How to Convert a Single-Instance ASM to Cluster ASM [ID 452758.1]
- Upgrading ASM instance from Oracle 10.1 to Oracle 10.2. (Single Instance)
- How to Convert a Single-Instance ASM to Cluster ASM [ID 452758.1]
- Oracle by Example - Oracle Database 10g Release 2 on a Single Database Instance (All In One CHM)
- Oracle SQL Developer - Unable to create an instance of the Java Virtual Machine
- How to Convert a Single-Instance ASM to Cluster ASM [ID 452758.1]
- How to Convert a Single-Instance ASM to Cluster ASM [ID 452758.1]
- HowTo Restore RMAN Disk backups of RAC Database to Single Instance On Another Node [ID 415579.1]
- HowTo Restore RMAN Disk backups of RAC Database to Single Instance On Another Node
- HowTo Restore RMAN Disk backups of RAC Database to Single Instance On Another Node [ID 415579.1]
- Configure HA for Oracle with Single Instance Oracle ASM
- How to Convert a Single-Instance ASM to Cluster ASM [ID 452758.1]
- Oracle内建函数(greatest, least, to_single_byte)
- Convert your single instance to 10g RAC by manual
- Asktom Oracle:How to multiplex single row into multiple rows