Использование нескольких Home
В этом случае следует прописать в реестре путь к дир. где будут указаны настройки. Например: [HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOME2]
TNS_ADMIN=c:\\oracle\\tns_admin
Это делается для каждого Home. В саму дир. помещаюся файлы:
listener.ora # Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\db)
(PROGRAM = extproc)
)
(SID_DESC =
(SID_NAME = F1VTQ_BASE)
(ORACLE_HOME = C:\oracle\product\10.2.0\db)
(PROGRAM = hsodbc)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = dwsi1db)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
)
sqlnet.ora
# Generated by Oracle configuration tools.
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (LDAP, TNSNAMES, EZCONNECT, ONAMES, HOSTNAME)
tnsnames.ora# Generated by Oracle configuration tools.
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
F1VTQ_BASE =
(DESCRIPTION =
(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))
(CONNECT_DATA=(SID=F1VTQ_BASE))
(HS=OK)
)
DSI01DW =
(DESCRIPTION =
(ADDRESS = (PROTOCOL=TCP)(HOST=localhost)(PORT=1521))
(CONNECT_DATA=(SERVICE_NAME=dsi01dw))
)
|