#1.listener.ora
#############################################################################
LISTENER1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ora19adg1)(PORT = 1529))
)
LISTENER2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = radg1)(PORT = 9999))
)
#############################################################################
#2.listener.ora
#############################################################################
LISTENER1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ora19adg2)(PORT = 1529))
)
LISTENER2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = radg2)(PORT = 9999))
)
#############################################################################
#1,#2 서버에 모두 적용
alter system set local_listener='LISTENER1','LISTENER2' scope=both;
#############################################################################
#1.tnsnames.ora
LISTENER1 =
(ADDRESS = (PROTOCOL = TCP)(HOST = ora19adg1)(PORT = 1529))
LISTENER2 =
(ADDRESS = (PROTOCOL = TCP)(HOST = radg1)(PORT = 9999))
SER1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ora19adg1)(PORT = 1529))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SID = ora19c)
)
)
SER2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ora19adg2)(PORT = 1529))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SID = standby)
)
)
primary =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = radg1)(PORT = 1529))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = primary)
)
)
standby =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = radg2)(PORT = 1529))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = standby)
)
~
#############################################################################
#2.tnsnames.ora
LISTENER1 =
(ADDRESS = (PROTOCOL = TCP)(HOST = ora19adg2)(PORT = 1529))
LISTENER2 =
(ADDRESS = (PROTOCOL = TCP)(HOST = radg2)(PORT = 9999))
SER1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ora19adg1)(PORT = 1529))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SID = ora19c)
)
)
SER2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ora19adg2)(PORT = 1529))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SID = standby)
)
)
primary =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = radg1)(PORT = 1529))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = primary)
)
)
standby =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = radg2)(PORT = 1529))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = standby)
)
~
#############################################################################
#2 서버에서 ADG 기동
alter database recover managed standby database cancel;
alter database flashback on;
alter database recover managed standby database using current logfile disconnect;
모니터링
COLUMN NAME FORMAT A24
COLUMN VALUE FORMAT A16
COLUMN DATUM_TIME FORMAT A24
SELECT NAME, VALUE, DATUM_TIME FROM V$DATAGUARD_STATS;
'ORACLE > INSTALL' 카테고리의 다른 글
oracle 19c Silent install linux (0) | 2023.07.26 |
---|---|
오라클 single adg 초기 설정 (1) (0) | 2023.06.14 |
oracle seha 설치 후 relocate 실패 (2) | 2022.09.30 |
오라클 11G upgrade관련문서 (0) | 2013.10.29 |
oracle silent install (0) | 2012.05.11 |