Oracle Net8 Administrator's Guide Release 8.0 A58230-01 |
|
Net8 provides you with utilities through which you can control each networking component. This appendix describes the control utilities for the listener, Oracle Names and Oracle Connection Manager. It also lists the commands that are available with each utility, including any applicable prerequisites, passwords, syntax or argument rules, usage notes or examples to help you use them.
The three control utilities described in this appendix are:
The Listener Control Utility (LSNRCTL)is a tool that you run from the operating system prompt to start and control the listener. The general syntax of the Listener Control Utility is as follows:
LSNRCTL command [listener_name]
You can also issue Listener Control Utility commands at the program prompt. When you enter LSNRCTL on the command line, the program is opened. You can then enter the desired commands from the program prompt.
The following commands are available through the Listener Control Utility (LSNRCTL).
The Oracle Names Control Utility (NAMESCTL) is a tool that you run from the operating system prompt to start and control Names Servers. It contains several types of commands:
You can use the any of these utilities to perform basic management functions on one or more Names Servers. By using this tool, you can execute such commands as STARTUP, SHUTDOWN, and STATUS. Additionally, you can view and change Names Server parameter settings such as RESET_STATS_INTERVAL and TRACE_LEVEL.
You can run NAMESCTL in one of three modes:
You can use either REM or # to identify Comments in the batch script; all other lines are considered commands. Any commands that would typically require confirmation do not require confirmation during batch execution.
When loading NAMESCTL, any valid parameter settings can be passed to the program to override the default or configured settings. For example:
NAMESCTL NAMESCTL.TRACE_LEVEL=ADMIN
would load NAMESCTL and turn on tracing to the ADMIN level, regardless of the currently configured value of NAMESCTL.TRACE_LEVEL
.
You can use the modifier SET to change some parameter values of the Names Server or the Oracle Names Control Utility environment. For example, the following sequence sets the node to control and changes its trace level.
NAMESCTL> SET SERVER DOLPHIN.WORLD NAMESCTL> SET TRACE_LEVEL ADMIN
The first modifier sets the node to DOLPHIN.WORLD. Subsequent commands are directed to DOLPHIN.WORLD. The second modifier sets the server DOLPHIN.WORLD's trace level. The server will then begin tracing at the ADMIN level.
The Oracle Names Control Utility operates on a Names Server on the same machine as any other Names Servers in the network. This is very useful when a single administrator is managing all of the Names Servers in a region, or wants to check the availability of a specific Names Server.
Most commands accept the name of a Names Server as the last argument indicating which Names Server to perform the command against. If omitted, the current SET Names Server is used. For example:
SHOW SYSTEM_QUERIES DOLPHIN.ACME
will display the system queries on the Names Server DOLPHIN.ACME and when they will next occur. To perform a series of commands against an individual Names Server, type
NAMESCTL> SET SERVER server_name
then perform the commands.
You have the option of configuring a Names Server to require a password for any NAMESCTL command that alters how it operates.
The value for PASSWORD is set to the value specified for the NAMESCTL.SERVER_PASSWORD parameter in the SQLNET.ORA file on the node running NAMESCTL. This is the password of the first Names Server listed in the NAMES.PREFERRED_SERVERS list. The current setting for PASSWORD must match the value in the NAMES.PASSWORD parameter in the NAMES.ORA file on the current Names Server.
If you are concerned with the security implications of explicitly putting a Names Server password in the administrator's client SQLNET.ORA
file, you can omit the parameter and always use the command:
NAMESCTL> SET PASSWORD
You will be prompted for the password. When passed over the network, the password is ALWAYS encrypted, regardless of how it is set in NAMESCTL.
Some of the NAMESCTL commands require your confirmation before they are executed. When you issue the command, you are prompted:
confirm:[yes or no]
Type "yes" to execute the command; type "no" to cancel the command.
You can turn confirmation mode off by using by setting the parameter
NAMESCTL.NOCONFIRM = TRUE
in a profile (SQLNET.ORA). Note that with this parameter set to OFF, all commands execute without asking for confirmation.
The following commands are available through the Oracle Names Control Utility (NAMESCTL).
The Connection Manager Control Utility (CMCTL) is a tool that you run from the operating system prompt to start and control Oracle Connection Manager. The general form of the Connection Manager Control Utility is:
CMCTL command [process_type]
where the process_type is the type of process that the command is being executed on. The choices are:
For example, to start both the administration and main processes, you would execute the following:
CMCTL start cman
In this syntax: CMCTL specifies the name of the tool that controls the Oracle Connection Manager. In some operating systems, this fixed parameter is case sensitive. If the operating system is case sensitive, enter CMCTL in lowercase.
You can also issue Oracle Connection Manager Control commands at the program prompt. When you enter CMCTL on the command line, the program is opened. You can then enter the desired commands from the program prompt.
The following commands are available through the Oracle Connection Manager Control Utility (CMCTL).
EXIT | |
---|---|
Purpose: |
To exit out of the CMCTL utility program. |
Prerequisites: |
None |
Example: |
CMCTL> exit |