Académique Documents
Professionnel Documents
Culture Documents
================
192.168.234.153
192.168.234.154
primary
standby
db_unique_name='PRIMARY'
FAL_Client='to_primary'
FAL_Server='to_standby'
Log_archive_config='DG_CONFIG=(primary,standby)'
Log_archive_dest_1='Location=c:\oracle\backup
VALID_FOR=(ALL_LOGFILES,ALL_ROLES)
db_unique_name=primary'
Log_archive_dest_2='Service=to_standby
VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)
db_unique_name=standby'
Log_archive_dest_state_1=ENABLE
Log_archive_dest_state_2=DEFER
Service_names='primary'
Standby_File_Management='AUTO'
db_unique_name='PRIMARY'
FAL_Client='primary'
FAL_Server='standby'
Log_archive_config='DG_CONFIG=(primary,standby)'
Log_archive_dest_1='Location=use_db_recovery_file_dest
VALID_FOR=(ALL_LOGFILES,ALL_ROLES)
db_unique_name=primary'
Log_archive_dest_2='Service=standby
VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)
db_unique_name=standby'
Log_archive_dest_state_1=ENABLE
Log_archive_dest_state_2=ENABLE
Service_names='PRIMEDB'
Standby_File_Management='AUTO'
and save it
Rename the pfile from initprimedb.ora to initprimary.ora
Create the password file
[oracle@primary ~]$ orapwd file=/u01/app/oracle/product/11.2.0/db_1/dbs/orapwpri
mary password=sys force=y ignorecase=y
[oracle@primary dbs]$ export ORACLE_SID=primary
[oracle@primary dbs]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Fri Oct 21 15:18:10 2016
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup pfile='/u01/app/oracle/product/11.2.0/db_1/dbs/initprimary.ora' mou
nt
ORACLE instance started.
Total System Global Area 830930944 bytes
Fixed Size
2217912 bytes
Variable Size
490735688 bytes
Database Buffers
335544320 bytes
Redo Buffers
2433024 bytes
Database mounted.
SQL> archive log list
Database log mode
Automatic archival
Archive destination
Oldest online log sequence
Next log sequence to archive
Current log sequence
Archive Mode
Enabled
USE_DB_RECOVERY_FILE_DEST
2
4
4
STANDBY SERVER
===============
vi initstandby.ora
*.dispatchers='(protocol=TCP) (service=standby_DGMGRL)'
db_unique_name='STANDBY'
FAL_Client='standby'
FAL_Server='primary'
Log_archive_config='DG_CONFIG=(primary,standby)'
Log_archive_dest_1='Location=use_db_recovery_file_dest
VALID_FOR=(ALL_LOGFILES,ALL_ROLES)
db_unique_name=standby'
Log_archive_dest_2='Service=primary
VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)
db_unique_name=primary'
Log_archive_dest_state_1=ENABLE
Log_archive_dest_state_2=ENABLE
Service_names='PRIMEDB'
Standby_File_Management='AUTO'
[oracle@standby ~]$ orapwd file=/u01/app/oracle/product/11.2.0/db_1/dbs/orapwsta