Oracle Network Products Getting Started Release 2.3.4 for Windows Platforms Go to Product Documentation Library 
Library
Go to books for this product 
Product
Go to Contents for this book 
Contents
Go to Index 
Index


 

Go to previous file in sequence Go to next file in sequence

Modifying Oracle Configurations for Windows NT and Windows 95

This appendix describes how to edit and add Oracle-related settings for Windows NT and Windows 95.

Specifically, this appendix covers:


Configuration Parameters

You can use the following parameters on Windows NT and Windows 95: SQL*Net first checks for the parameters as environment variables, and uses the values defined. It environment variables are not defined, these parameters are searched for in the registry.

LOCAL

You can add the LOCAL parameter to make a connection without specifying a connect string. The value for LOCAL is the service name in the TNSNAMES.ORA file located in the ORACLE_HOME\NETWORK\ADMIN directory.

For example, if the LOCAL parameter is specified as finance, you connect to a database from Server Manager with the following:

SVRMGR>CONNECT SCOTT/TIGER
SQL*Net checks if LOCAL is defined as an environment variable or as a parameter the registry, and uses finance as the service name. If it exists, SQL*Net connects.

REMOTE

You can add the REMOTE parameter to make a remote connection without specifying a connect string. The value for REMOTE is the connect descriptor parameter in the TNSNAMES.ORA file located at the ORACLE_HOME\NETWORK\ADMIN directory. For example, if the REMOTE parameter is specified, you connect to a remote database from Server Manager with the following:
SVRMGR>CONNECT SCOTT/TIGER@REMOTE
SQL*Net checks if REMOTE is defined as an environment variable or as a parameter in the registry. If it exists, SQL*Net connects.

TNS_ADMIN

You can add the TNS_ADMIN parameter to change the directory name for configuration files from the default location. For example, if you set TNS_ADMIN to ORACLE_HOME\TEST\ADMIN, the configuration files are used from ORACLE_HOME\TEST\ADMIN.

Adding Configuration Parameters

You can add these configuration parameters in three ways:

Using the Registry

The LOCAL, REMOTE and TNS_ADMIN parameters must have a value class of REG_EXPAND_SZ and must located in the following key:

HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE

The instructions below explain how to add a parameter entry to the Registry.

To add a parameter to the registry:

  1. Start the registry the following ways:
     
    On Windows NT 3.51:  From the command prompt, enter: 
      C:\>REGEDT32
    Exiting Server Manager closes the database connection.
    On Windows NT 4.0: 
    • From the command prompt, enter:
    • C:\>REGEDT32 

    • Choose Start>Run, enter REGEDT32 in the Open field, and choose OK.
    On Windows 95: 
    • From the command prompt, enter:
    • C:\>REGEDIT 

    • Choose Start>Run, enter REGEDIT in the Open field, and choose OK.
     
    The Registry Editor window appears.

  1. Navigate to the HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE key where you want to add the new value.
  2. Choose the Add Value option in the Edit menu.
  3. The Add Value dialog box appears:

  4. In the Value Name field, enter the name that you want to assign to the currently selected key.
  5. In the Data Type box, select the REG_EXPAND_SZ value class.
  6. Click OK.
  7. An editor dialog box appropriate for the data type appears:

  8. Enter the value itself for the parameter and choose OK.
  9. The Registry Editor adds the parameter.

  10. Choose Exit from the Registry menu.
  11. The registry exits.

Using the Control Panel on Windows NT

The instructions below explain how to add a parameter entry to the Control Panel System Properties window. This functionality is only available on Windows NT.

To add a parameter:

  1. From the Control Panel window, double-click System.
  2. The System Properties window appears.

  3. Choose the Environment tab.
  4. The Environment view appears:

  5. Click in System Variables list box.
  6. Enter the parameter name in the Variable field and its value in the Value field.
  7. Click Set.
  8. The parameter is added to the System Variables list box.

  9. Click OK.
  10. Log out and log back in for the changes to take effect.

Go to previous file in sequence Go to next file in sequence 
Prev Next
Oracle 
Copyright © 1997 Oracle Corporation. 
All Rights Reserved.
Go to Product Documentation Library 
Library
Go to books for this product 
Product
Go to Contents for this book 
Contents
Go to Index 
Index