Oracle Advanced Networking Option Administrator's Guide | Library |
Product |
Contents |
Index |
Note: In this case DCE security would not be available to clients. Also, service names would be located and resolved to network addresses in a TNSNAMES.ORA file on the client, not using the CDS name server. See "Sample LISTENER.ORA File" . for a sample file. Also see "TNSNAMES.ORA Can be Used for Name Lookup when CDS is Inaccessible" on page 14 - 5.
Following are samples of LISTENER.ORA and TNSNAMES.ORA files as they would need to be configured if a client from outside of DCE wanted to connect to Oracle database servers in a DCE environment.
The following example assumes the UNIX operating system and the TCP/IP protocol for one listener, and the DCE protocol for another listener. A single listener may have multiple addresses too. For example, instead of having two separate listeners for different database instances on a server node, you could have one listener for both, listening on both TCP/IP and on DCE. However, performance will be better with separate listeners.
LSNR_TCP= (ADDRESS_LIST= (ADDRESS= (PROTOCOL=IPC) (KEY=DB1) ) (ADDRESS= (PROTOCOL=tcp) (HOST=rose) (PORT=1521) )) SID_LIST_LSNR_TCP= (SID_DESC= (SID_NAME=ORASID) (ORACLE_HOME=/usr/prod/oracle7) ) LSNR_DCE= (ADDRESS= (PROTOCOL=DCE) (SERVER_PRINCIPAL=oracle) (CELL_NAME=cell1) (SERVICE=dce_svc)) SID_LIST_LSNR_DCE= (SID_DESC= (SID_NAME=ORASID) (ORACLE_HOME=/usr/prod/oracle7)) #For all listeners, the following parameters list sample #default values. PASSWORDS_LISTENER= STARTUP_WAIT_TIME_LISTENER=0 CONNECT_TIMEOUT_LISTENER=10 TRACE_LEVEL_LISTENER=OFF TRACE_DIRECTORY_LISTENER=/usr/prod/oracle7/network/trace TRACE FILE_LISTENER=listener.trc LOG_DIRECTORY_LISTENER=/usr/prod/oracle7/network/log LOG_FILE_LISTENER=listener.log
ORATCP = (DESCRIPTION= (ADDRESS= (PROTOCOL=TCP) (HOST=rose) (PORT=1521) ) (CONNECT_DATA= (SID=DB1) ) )
ORADCE=(DESCRIPTION= (ADDRESS= (PROTOCOL=DCE) (SERVER_PRINCIPAL=oracle) (CELL_NAME=cell1) (SERVICE=dce_svc) ) (CONNECT_DATA= (SID=ORASID) ) )
A user who wished to access the DB1 database would use ORATCP to identify the appropriate connect descriptor. For example:
SQLPLUS SCOTT/TIGER@ORATCP
#native_names.use_native=true #native_names.directory_path=(dce)
names.directory_path=(dce, tnsnames)
This parameter enables you to list more than one names resolution method. The methods are tried in order. In this example, dce is attempted first. If it is unsuccessful, tnsnames is tried next.
Prev Next |
Copyright © 1996 Oracle Corporation. All Rights Reserved. |
Library |
Product |
Contents |
Index |