I am currently working on a duplicated infrastructure like this :
We have two data server, with two database on each.
- Server 1
- Oracle instance 1
- Oracle instance mirror 1
- Server 2
- Oracle instance 2
- Oracle instance mirror 2
I cannot change the instance name on the database.
DWH_connection =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = Server1)(PORT = 1521)
(ADDRESS = (PROTOCOL = TCP)(HOST = Server2)(PORT = 1521)
)
(CONNECT_DATA =
(SERVICE_NAME = Oracleinstance1)
(SERVER = DEDICATED)
)
)
Here is what I know we can do, but I am stuck and can't find any docs. Maybe I am bad at searching, but can't find a way.
I would like to get the Server 1 - Oracle instance 1
with the same alias as Server 2 - Oracle instance 2
. So in case Server 1
is not up, our application will go the Server 2. So this is what I would like to have:
DWH_connection =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = Server1)(PORT = 1521)
(ADDRESS = (PROTOCOL = TCP)(HOST = Server2)(PORT = 1521)
)
(CONNECT_DATA =
(SERVICE_NAME = Oracleinstance1)
(SERVICE_NAME = Oracleinstance2)
(SERVER = DEDICATED)
)
)
srvctl add service
if you use Oracle Restart, orDBMS_SERVICE
if you do not have Oracle Restart.