You could at this stage cancel and copy the recomended
University sqlnet.ora file (windows version)
to allow use of central Oracle Names servers
newly created oracle/ora90/network/admin/ folder, renaming any default
sqlnet.ora file if it exists. This is the recommended
thing to do.
The sqlnet.ora file looks like:
# C:\ORANT\NET80\ADMIN\SQLNET.ORA Configuration
File:C:\ORANT\net80\admin\sqlnet.ora
# Generated by Oracle Net8 Assistant
NAME.DEFAULT_ZONE = world
#sqlnet.authentication_services = (NONE)
SQLNET.EXPIRE_TIME = 0
NAMES.DIRECTORY_PATH= (ONAMES,TNSNAMES, HOSTNAME)
#names.directory_path = (TNSNAMES)
NAMES.DEFAULT_DOMAIN = bris.ac.uk
#NAMES.DEFAULT_DOMAIN = world
NAMES.PREFERRED_SERVERS =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = oranamesrvr0.bris.ac.uk)(PORT = 1532))
(ADDRESS = (PROTOCOL = TCP)(HOST = oranamesrvr1.bris.ac.uk)(PORT = 1575))
(ADDRESS = (PROTOCOL = TCP)(HOST = oranamesrvr2.bris.ac.uk)(PORT = 1575))
(ADDRESS = (PROTOCOL = TCP)(HOST = oranamesrvr3.bris.ac.uk)(PORT = 1575))
)
AUTOMATIC_IPC = OFF
#TRACE_LEVEL_CLIENT = OFF
You can pick up
the tnsnames.ora file (if you find you need it- for example if you get
unrecognised service name) from a previous installation
or from Maggie Shapland and paste it into the
newly created oracle/ora90/network/admin/ folder making sure
the old tnsnames.ora that was created by default if you did not exit,
is renamed first.
For each
connection, the entry
looks like (where datasource, machine_address, and database_name must
be specified):
datasource =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = machine_address)(PORT =1521))
)
(CONNECT_DATA =
(sid = database_name)
)
)
eg
hprod.bris.ac.uk =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =
(COMMUNITY = tcp.bris.ac.uk)
(PROTOCOL = TCP)
(Host = sunshine.bris.ac.uk)
(Port = 1521)
)
)
(CONNECT_DATA = (SID = hprod)
)
)