GG Single Instance 10g to 11g RAC build configuration Environment:
10g Single Instance 10.2.1 11g RAC 11.2.3
Target RAC:
Oracle Users
Vim. Bash_profile
Export ogg_home= $ORACLE _base/ogg
Export ld_library_path= $ORACLE _home/lib
Exportnls_lang=american_america. Al32utf8
Vim/etc/hosts
Add IP address for Source Library
172.16.10.140 SDB
SOURCE on:
Oracle Users
Vim. Bash_profile
export ogg_home= $ORACLE _base/ogg
export ld_library_path= $ORACLE _home/lib
Exportnls_lang=american_america. Al32utf8
Vim/etc/hosts
#public Network
172.16.15.101 M1
172.16.15.102 m2
172.16.15.103 m3
#private Network
10.11.11.1 M1-pri
10.11.11.2 M2-pri
10.11.11.3 M3-pri
#VIP Network
172.16.15.104 M1-VIP
172.16.15.105 M2-VIP
172.16.15.106 M3-VIP
#racscan Network
172.16.15.100 Scan
#source IP
172.16.10.140 SDB
172.16.15.107 QR01-VIP
Sql> Select log_mode,supplemental_log_data_min,force_logging from V$database;
Log_mode Suppleme for
------------ -------- ---
Noarchivelog No No
sql> Archive Log list
Database log mode No Archive mode
Automatic Archival Disabled
Archive Destination Use_db_recovery_file_dest
Oldest online log sequence 1
Current Log Sequence 3
sql> shutdown Immediate
Because the main database was previously configured with stream, these settings are enabled, and the following actions are enabled, and you can log on to the Sqlplus command line as SYSDBA and execute the following commands:
--Boot to Mount state:
startup Mount;
--Put in archive mode:
ALTER DATABASE Archivelog;
--Force log record:
ALTER DATABASE force logging;
--Enable minimum additional log
ALTER DATABASE add supplemental log data;
--Start the database and query the status:
sql> ALTER DATABASE open;
Database altered.
Sql> select log_mode,supplemental_log_data_min,force_logging from V$database; Log_mode SUP for
------------ --- ---
Archivelog Yes Yes
Sql> create user ogg identified by OGG;
User created.
Sql> Grant execute on utl_file to Ogg;
Grant succeeded.
Sql> Grant Dba,resource,connect to Ogg;
Grant succeeded.
Sql> Alter system set Recyclebin=off;
System altered.
Sql> Show Parameter RecycleBin
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
RecycleBin string off
Sql>
Above is the preparation for the source.
The prep work on the RAC is not written on the document just to feel like I'm still going to write because there are 2 of environments.
On RAC:
Select Log_mode,force_logging,supplemental_log_data_min from V$database;
No no
Then
Crs_stop ora.mes.db closes the database.
Node one just needs to be done on one node.
Sqlplus/as SYSDBA
Startup Mount
Alter database Archivelog;
ALTER DATABASE open;
Alter system set log_archive_dest_state_1= ' Location=/home/oracle/arch ' scope=spfile;
alter system set log_archive_dest_1 = ' location=+data/arc1 ' scope=spfile sid= ' ORCL1 ';
alter system set log_archive_dest_1 = ' location=+data/arc2 ' scope=spfile sid= ' Orcl2 ';
Show Parameter Db_recovery
ALTER DATABASE ADD supplemental LOG DATA;
ALTER DATABASE FORCE LOGGING;
ALTER SYSTEM SWITCH LOGFILE;
Select Log_mode,force_logging,supplemental_log_data_min from V$database;
Commit
Shutdown immediate
Node one source on startup