Net8(TM) Administrator's Guide Release 8.0.3 A51576_01 |
|
Net8 provides you with utilities through which you can control each networking component. This appendix describes the control utilities for the network listener, Names Server 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 and examples to help you use them.
The three control utilities described in this appendix are:
Listener Control is a utility that allows you to operate and control a network listener. The general syntax of the Listener Control Utility is as follows:
LSNRCTL
command[
listener_name]
In this syntax, the Listener Control Utility s
pecifies the name of the tool that controls the listener. In some operating systems, this fixed parameter is case sensitive. If the operating system is case sensitive, enter LSNRCTL in lowercase.
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).
Oracle Names Control (NAMESCTL) is a utility for operating and controlling Names Servers. It contains several types of commands:
You can use NAMESCTL to perform basic management functions on one or more Names Servers.
You can run NAMESCTL in one of three modes:
NAMESCTL>
NAMESCTL START NAMESCTL STATUS CHEDDAR.ACME
NAMESCTL @file_name
You can use either REM or a `#' symbol to comment the batch script; all other lines are considered commands. Commands 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
will load NAMESCTL and set tracing to the ADMIN level, regardless of the configured value in a profile (NAMESCTL.TRACE_LEVEL).
You can use the modifier SET to change Names Server parameters 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 trace level for a server called DOLPHIN.WORLD. 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 to indicate 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).
Connection Manager Control, CMCTL, is a utility that you run from the operating system prompt to operate 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 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 CMCTL 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 Connection Manager Control Utility (CMCTL).
EXIT | |
---|---|
Purpose: |
To exit out of the CMCTL utility program. |
Prerequisites: |
None |
Example: |
CMCTL> exit |