= [Static registration] =
Static registration can be configured through graphical net manager.
The relationship between configuration options and related files in net manager:
Profile <=> sqlnet. ora
Service name <=> tnsnames. ora
Listener <=> listener. ora
For static registration on the server, you need to configure the [listener (listener. ora)], including:
Listening location (protocol, host, Port );
Database Service (Global Database Name: the global database name corresponds to the service name, Oracle main directory, SID of the Client [service name (tnsnames. ora );
Other services (I found that I couldn't leave it blank during the test, but the program name and SID here can be entered with some characters at Will );
To append a listener, you must configure it through netca. In win, netca creates a service.
- Listener. ora (server side)
- SID_LIST_SL01 =
- (SID_LIST =
- (SID_DESC =
- (PROGRAM = xx)
- (SID_NAME = xx)
- )
- (SID_DESC =
- (GLOBAL_DBNAME = gdbn01)
- (ORACLE_HOME = d: \ oracle \ product \ 10.2.0 \ db_1)
- (SID_NAME = ORCL)
- )
- )
- SL01 =
- (DESCRIPTION =
- (ADDRESS = (PROTOCOL = TCP) (HOST = duzz) (PORT = 8899 ))
- )
- Tnsnames. ora (client)
- S01 =
- (DESCRIPTION =
- (ADDRESS_LIST =
- (ADDRESS = (PROTOCOL = TCP) (HOST = duzz) (PORT = 8899 ))
- )
- (CONNECT_DATA =
- (SERVICE_NAME = d01)
- )
- )
- = [Dynamic Registration] =
- To dynamically register a non-1521 port, you must first set the connection information (protocal, host, port-this connection information must be in the [listener (listener. ora)] Listening location) www.bkjia.com configured to the server tnsnames. ora, and then modify the local_listener parameter to point to tnsnames. configuration options in ora.
- Listener. ora (server, SL01 is the listener created through netca)
- SL01 =
- (DESCRIPTION =
- (ADDRESS = (PROTOCOL = TCP) (HOST = duzz) (PORT = 8899 ))
- )
- Tnsnames. ora (server side)
- DL01 = (ADDRESS = (PROTOCOL = TCP) (HOST = duzz) (PORT = 8899 ))
- AlterSystemSetLocal_listener ='Dl01';
- AlterSystemSetService_names ='D01, d02, d03';
- The client only needs to fill in the corresponding SERVICE_NAME in tnsnames. ora:
- Tnsnames. ora (client)
- S01 =
- (DESCRIPTION =
- (ADDRESS_LIST =
- (ADDRESS = (PROTOCOL = TCP) (HOST = duzz) (PORT = 8899 ))
- )
- (CONNECT_DATA =
- (SERVICE_NAME = d01)
- )
- )
To dynamically register a default port of 1521 on PMON, it is relatively simple. You do not need to set the local_listener parameter. www.bkjia.com naturally does not need to modify tnsnames on the server. ora file. The other steps are the same as those for Dynamic Registration of Non-1521 ports.
= [Verify Registration] =
- Sqlplus/@ s01AsSysdba
- Select DistinctSidFromV $ mystat;
- SelectService_nameFromV $ sessionWhereSid =: sid;
- View the service name of the current session,
- If SYS $ USERS is returned, it indicates that the current session is connected by a service name registered statically,
- Otherwise, the dynamic registration service name is returned.