1. Configure network services
1.1 oracle net and client-server case.
1.2 oracle net and communication protocol.
1.3 Establish a session.
Link to local instance
name resolution
start server process
1.4 Create a listener.
netca
1.5 Database registration
Dynamic registration and static registration
1.6 Techniques for resolving names
3. Name resolution
session: CONNECT SYSTEM/******@service_name;
@service_name needs to be resolved.
(1).Easy Connect (available since version 10g)
SQL> connect scott/[email protected]:1521/service_name;
(2) Local name resolution tnsname
TNSNAME configuration file: $ORACLE_HOME/network/admin/tnsnames.ora
includes: service alias, protocol, address, port, service name or instance name.
TNSNAME configuration can be configured using the netca program.
Test tnsname settings: tnsping service_name
service1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = hostname)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = db_name.domain.com)
)
)
service2 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = hostname)(PORT = 1521))
)
(CONNECT_DATA =
(sid = db_name)
)
)
(3) External name resolution
LDAP directory server
1.7 Listening Manager
Listener configuration file: $ORACLE_HOME/network/admin/listener.ora
listens on port 1521 of the host by default.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = hostname)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)
The listener can be configured using the netca program .Listener
control program lsnrctl:
·start to start the listener
·stop to stop the listener
·status to view the status of the listener
·services to view the services provided by the
listener ·version to view the version of the listener
·reload to reload the listener
·save_config to save the configuration changes Go to the configuration file listener.ora
·trace trace listener activity
·change_password set listener password
·quit exit the listener without saving changes
·exit exit the listener with saving changes
set sets various options such as tracing and timeouts.
show shows the options that have been set for the listener
1.8 Configure the network service alias.
1.9 Filenames and tnsadmin
There are three files to manage, they are located in oracle_home/network/admin
Environment variable TNS_ADMIN. specified, for specifying the location of the three configuration files? ? ? ? ? ? ?
Note a diagram ---------------------------------------
1.10 Create a linked server
2. Shared server