Installing Oracle 9 client and ODBC on Windows 2000 and XP

Make sure you have rights to install software on your PC before you start. Available products are now loaded

Types of installation

There are 3 types of installation:

Custom Installation

If you just want ODBC,choose Custom and then deselect the options in the correct order (if you deselect in the wrong order you will not be able to deselect ones you do not want).

Oracle Network Configuration Assistant

The assistant will take you through the configuration either for Directory Usage Naming Methods or you can choose to perform a typical configuration.
  • Leave typical configuration unticked and select next.
  • You are then given the choice to complete the configuration now or defer.
    Answer No.
  • 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)
        )
      )
    
  • If you really want to carry on with the network configuration, you are given the choice to complete the configuration or defer. Make sure you tick No at this stage
  • On naming methods configuration, choose host name
  • The version of Oracle is 8i or later
  • The service name is the name of the database
  • the network protocol is tcp
  • the hostname is the name of the server- which should be suffixed with .bris.ac.uk
  • the port number is 1521
  • At this stage you can perform a test, but be aware the default test username/password is scott/tiger which is not installed in this database, so try typing the username, password and service name you have been given
  • This will create tnsnames.ora and sqlnet.ora, but the domain name will have an extra suffix of your department, so rename these two files and copy in the files you have been given. You can use Notepad to edit

    Connection Timeout

    You are now ready to stop the connection being timed out after the default 10 minutes.
  • Run regedit as a Start command. This will edit the registry
  • Find connectiontimeout
  • Choose Modify and show decimal
  • Change 600 to 0 (so does not disconnect) or to something bigger (the number represents seconds)

    Testing the connection

  • select the DOS command prompt from Accessories
  • Type tnsping hprod
    (one of the Bristol databases, otherwise type the name of one you want to test). It should identify the connection and confirm OK

    Creating a Data Source

    You need to create a data source to be able to use Access as a front end to Oracle