Note_Tech

All technological notes.


Project maintained by simonangel-fong Hosted on GitHub Pages — Theme by mattgraham

DBA - Oracle Net Services

Back


Oracle Net Services


Oracle Net Listener


Default Listener

ADDRESS=(PROTOCOL=tcp)(HOST=host_name)(PORT=1521)

Establishing Oracle Network Connections


SERVICE_NAMES

# connect descriptor
#   enables clients to connect to a database service called finance.us.flowers.com
finflowers =  # net service name
  (DESCRIPTION=
      (ADDRESS=(PROTOCOL=tcp)(HOST=flowers-server)(PORT=1521))
      (CONNECT_DATA=(SERVICE_NAME=finance.us.flowers.com))
)

Connect string


Example: Name Resolution Connection

network_name_resolution_example

# Using connect string
# provide username, password, and a net service name(finflowers)
CONNECT jsmith/jspass@finflowers
# A connect descriptor
# provide protocol, host/address, port, service name
finflowers =(
    DESCRIPTION=
      (ADDRESS=(PROTOCOL=tcp)(HOST=flowers-server)(PORT=1521))
      (CONNECT_DATA=
        (SERVICE_NAME=finance.us.flowers.com)
      )
  )

Establishing a Connection

name resolution » listener » validate service name » spawn server process » lsnr pass initialization info server_pro » server_pro authenticate credentials » create user process


Service Registration

Dynamic Service Registration


Static Service Registration


Naming Methods


Easy Connect

# SERVICE_NAMES=db
# DB_DOMAIN=us.oracle.com
connect hr/hr@db.us.oracle.com


Local Naming

CONNECT hr/hr@orcl

Directory Naming


Oracle Net Services Components

Component Description File
Listeners A process to listen for incoming client connection requests and manage traffic to the server. listener.ora
Naming methods A resolution method to resolve a connect identifier to a connect descriptor  
Naming (net service name) A simple name (connect identifier) to resolve a connect descriptor . tnsnames.ora (local configuration)
Profiles Parameters that specifies preferences for enabling and configuring Oracle Net features. sqlnet.ora

TOP