Oracle8(TM) Getting Started for Windows NT
Release 8.0.3
A54894-01

Library

Product

Contents

Index


Prev Next

10
Administering a Database

This chapter describes how to administer Oracle8.

Specific topics discussed are:

Starting and Stopping Oracle Services

Starting Oracle Services

When you reboot your Windows NT machine, the following three main Oracle services are started:

Service   Description  

OracleServiceORCL  

Created for the database instance ORCL. An Oracle instance is a logical term that refers to:

  • an Oracle service called OracleServiceORCL
  • a database

Each Oracle instance must have a system identifier (SID). A SID is a unique name for an Oracle database instance that can be up to four alphanumeric characters in length. The default SID of ORCL is appended to the service OracleService. Each file for the database instance ORCL in the ORACLE_HOME\ DATABASE directory has this SID as part of its name (for example, CTL1ORCL.ORA, LOG1ORCL.ORA, and INITORCL.ORA). The instance name is the same as the value of the ORACLE_SID registry configuration parameter.

To connect to a specific Oracle database, users must specify a service name (database alias) that contains a SID for that database.  

OracleStartORCL  

Starts the database instance ORCL automatically whenever the Windows NT machine reboots.  

OracleTNSListener80  

Listens for and accepts incoming connection requests from client applications. Automatically starts when the Windows NT machine reboots. The 80 appended to the end is the name or abbreviated ID associated with the network listener.  

If any of these three services does not start and you attempt to use any of the Oracle8 Utilities, such as Server Manager, the following message appears:

ORA-12547:TNS: lost contact

This error is analogous to the following Oracle7 error:

ORA-09352: Windows 32-bit Two-Task driver unable to spawn new ORACLE task

To eliminate this error message:

  1. Choose Start>Settings>Control Panel.
  2. The Control Panel window appears.

  3. Double-click Services.
  4. The Services dialog box appears.

  5. Find OracleServiceORCL in the list, and verify that it has a status of Started. If it does not, select it and choose Start.
  6. Find OracleTNSListener80 and verify that its status is Started. If it is not, select it and choose Start.
  7. Note: You must complete steps 3 and 4 in order.  

    Note: To start Oracle services whenever the machine reboots, choose the Startup button, and choose Automatic Startup Type.  

If you cannot find these service names in the list, use ORADIM80 to create them. See Chapter 4, "Database Tools" for instructions on using ORADIM80.

Additional Oracle Services

Depending upon what other products you have installed, additional Oracle networking and server services can also be available:

Service   Description  

OracleAgent  

Listens for and responds to job and event requests sent from the Oracle Enterprise Manager console.  

OracleConTextService80  

ConText server processes started on an NT server are normally terminated by Windows NT when the user logs off. This service can be used to start server processes that survive logouts.  

OracleWebAssistant  

Enables information from database queries to be published to a web page at specified time intervals.  

See Oracle Networking Products Getting Started for Windows Platforms for information on Oracle networking services.

Stopping Oracle Services

On occasion (for example, if you want to re-install the Oracle8 database), you must stop the Oracle Services.

  1. Choose Start>Settings>Control Panel.
  2. The Control Panel window appears.

  3. Double-click Services.
  4. The Services dialog box appears.

  5. Select OracleTNSListener80 and choose Stop.
  6. Select OracleServiceORCL and choose Stop.

Auto-starting Oracle Services

Use the Service dialog box to configure when and how the Oracle8 database is started.

To configure the Oracle8 database to start automatically each time you reboot:

  1. Choose Start>Settings>Control Panel.
  2. The Control Panel window appears.

  3. Double-click Services.
  4. The Services dialog box appears.

  5. Select the service OracleStartORCL and choose the Startup button.
  6. The Service dialog box appears.

  7. Specify the startup type Automatic.

Starting and Shutting Down a Database with Server Manager

Starting Server Manager

To start or shut down an Oracle8 database with Server Manager:

  1. Start Server Manager at the MS-DOS command prompt:
  2. C:\>SVRMGR30
    
  3. Connect to the Oracle8 database using your user name:
  4. SVRMGR> CONNECT INTERNAL/PASSWORD
    
    

    Note: The password for INTERNAL is ORACLE if you installed your Oracle8 database through the Oracle8 option. If you installed your Oracle8 database through the Custom installation option, the password for INTERNAL is whatever you entered when prompted during installation.  

  5. Follow the instructions below:
  6. To...   Go to Section...  

    Start a database  

    Starting a Database with Server Manager  

    Shut down a database  

    Shutting Down a Database with Server Manager  

Starting a Database with Server Manager

Before starting the database, ensure that a database instance has been created and that the services have been started.

  1. Start up the database by entering one of the following commands:
  2. Command   Description  

    SVRMGR> STARTUP  

    Uses the default INITSID.ORA file located in your ORACLE_HOME\DATABASE directory to start the Oracle8 database.  

    SVRMGR> STARTUP PFILE=PATH\FILENAME  

    Uses an initialization file other than the default to start your database. PATH\FILENAME specifies an initialization parameter file other than the default, INITSID.ORA. The following example starts the database using a file named INIT2.ORA.

    SVRMGR> STARTUP PFILE=%ORACLE_HOME%\RDBMS80\INIT2.ORA  

    After completing these steps, you can connect to the Oracle8 database.

    Note: See the section "Choosing Which Database Tools to Use" in Chapter 4, "Database Tools" for a list of other tools that can start the database.  

Shutting Down a Database with Server Manager

To shut down a database using Server Manager:

  1. Enter the following command:
  2. SVRMGR> SHUTDOWN [MODE]
    
    

    where MODE is one of the following:  

    Normal  

    The database waits for all currently connected users to disconnect and disallows any new connections before shutting down. This is the default mode.  

    Immediate  

    The database terminates and rolls back active transactions, disconnects clients, and shuts down.  

    Abort  

    The database terminates active transactions and disconnects users; it does not roll back transactions. The database performs automatic recovery and rollback the next time it is started. Use this mode only in emergencies.  

    Note: See the section "Choosing Which Database Tools to Use" in Chapter 4, "Database Tools" for a list of other tools that can shut down the database.  

Starting and Shutting Down a Database with Oracle Enterprise Manager

Oracle Enterprise Manager enables you to start and shut down your Oracle8 database in several different ways. This section describes how to use the Navigator. You can also use:

See the Oracle Enterprise Manager Administrator's Guide for information on using these tools to start your database.

Note:

This section assumes you have configured Oracle Enterprise Manager. If you have not, see the section "Configuring Oracle Enterprise Manager" in Chapter 6, "Configuration Tasks" for instructions.  

  1. Choose Start>Programs>Oracle Enterprise Manager>Enterprise Manager.
  2. The Repository Login Information dialog box appears.

  3. Enter your repository user login information.
  4. Note:

    A Net8 service name entry is only necessary if you are connecting from a client Console machine to the Oracle8 repository database. If the repository database is on your Console, you do not need to enter a service name.  

    The Oracle Enterprise Manager Console appears. The Navigator Window displays in the upper-left portion of the console.

  5. Double-click Databases in the Navigator window of the Oracle Enterprise Manager Console.
  6. The list of databases in your Oracle Enterprise Manager network appears.

  7. Select the appropriate database.
  8. Choose Tools>Applications>Oracle Instance Manager from the main menu.
  9. The Login Information dialog box appears.

    Note:

    If this is the first time you have used Oracle Instance Manager, the Login Information dialog box appears. If you have previously logged in, the Oracle Instance Manager opens without prompting you to log on. Go to Step 8.  

  10. Enter the INTERNAL user name and password, and Net8 service name for the Oracle8 database.
  11. Click OK.
  12. The Oracle Instance Manager window appears.

  13. Double-click Initialization Parameters in the Navigator tree.
  14. The initialization parameters appear for the Oracle8 database.

  15. Click Save.
  16. The Save Configuration dialog box appears.

  17. Enter an appropriate configuration name for the initialization parameters (for example, SALES_DB) and click OK.
  18. Choose File>Exit to Console from the main menu.
  19. You are returned to the Oracle Enterprise Manager Console.

  20. Double-click Databases in the Navigator window of the Oracle Enterprise Manager Console.
  21. Follow the instructions below:
  22. To...   Go to Section...  

    Start a database  

    Starting a Database with Oracle Enterprise Manager  

    Shut down a database  

    Shutting Down a Database with Oracle Enterprise Manager  

Starting a Database with Oracle Enterprise Manager

  1. Right-click the database in the Navigator tree that you want to start.
  2. Choose Connect from the menu that appears.
  3. The Login Information dialog box appears.

  4. Enter the INTERNAL user name and password, and click OK.
  5. Choose Startup from the menu that appears:
  6. The Startup dialog box appears.

  7. Provide the appropriate information and choose OK.
  8. Your Oracle8 database starts.

Shutting Down a Database with Oracle Enterprise Manager

  1. Right-click the database in the Navigator tree that you want to shut down.
  2. Choose Connect from the menu that appears.
  3. The Login Information dialog box appears.

  4. Enter the INTERNAL user name and password, and click OK.
  5. Choose Shutdown from the menu that appears:
  6. The Shutdown Options dialog box appears:

  7. Provide the appropriate information and choose OK.
  8. Your Oracle8 database shuts down.

Shutting Down a Database By Stopping a Service

You can immediately shut down the Oracle8 database by stopping the service OracleServiceORCL. This automated procedure is equivalent to manually entering the following two commands:

C:\> SVRMGR30
SVRMGR> SHUTDOWN IMMEDIATE

This causes the database to terminate and roll back active transactions, disconnect clients, and shut down.

To use this feature, you must set either of two registry parameter values to TRUE in \\HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE.

Registry Parameter   Description  

ORA_SHUTDOWN  

When set to TRUE, enables the selected Oracle8 database to be shut down.  

ORA_SID_SHUTDOWN  

When set to TRUE, shuts down the Oracle8 database identified by the SID value.  

Note:

ORA_SID_SHUTDOWN must be added to the registry.  

If either of these parameters is set to FALSE (the default setting), you cannot shut down the database by stopping OracleServiceORCL. In addition, two other registery parameters are available:

To immediately shut down the database by selecting OracleServiceORCL:

  1. Set ORA_SHUTDOWN or ORA_SID_SHUTDOWN to TRUE in the registry.
  2. Stop and restart OracleServiceORCL and reboot the database for the change to take effect.
  3. Choose Start>Settings>Control Panel.
  4. The Control Panel window appears.

  5. Double-click Services.
  6. The Services dialog box appears.

  7. Select OracleServiceORCL and choose Stop.
  8. This automatically starts Server Manager, which issues the SHUTDOWN IMMEDIATE command.

    See Appendix C, "Configuration Parameters and the Registry" for instructions on setting ORA_SHUTDOWN, ORA_SID_SHUTDOWN, ORA_SHUTDOWN_TIMEOUT, and ORA_SID_SHUTDOWN_TIMEOUT.

Running Multiple Instances

To run multiple instances, ensure that you have already created each instance and started the services for each instance using ORADIM80 or the Services dialog box in Windows NT.

You then run multiple instances by starting each of the instances using Server Manager.

To run multiple instances:

  1. Set a value for the ORACLE_SID configuration parameter at the command prompt for each instance you want to run:
  2. C:\> SET ORACLE_SID=SID
    

    where SID is the name of the instance.

  3. Start Server Manager:
  4. C:\>SVRMGR30
    
  5. Connect as INTERNAL.
  6. SVRMGR>CONNECT INTERNAL/PASSWORD
    
  7. Start up the database with the new instance:
  8. SVRMGR>STARTUP PFILE=%ORACLE_HOME%\RDBMS80\INITSID.ORA
    

    where SID is the name of the instance.

Integrating Database User Authentication with Windows NT

This section describes how to authenticate nonprivileged database users (not database administrators) using Windows NT without requiring a password at the database level.

Note: See the Oracle8 Server Administrator's Guide for general information on authenticating users.  

When you use Windows NT to authenticate nonprivileged database users, your database relies on Windows NT to restrict access to database accounts. A database password is not needed for this type of feature.

To use Windows NT for nonprivileged user authentication:

  1. Set the OS_AUTHENT_PREFIX parameter in the INITSID.ORA file, and use this prefix in Oracle user names. The default value for this parameter is OPS$.
  2. Note: You can set OS_AUTHENT_PREFIX to the null string (a set of double quotes with no string included, ""). This eliminates the need for any prefix to the Windows NT user names.  

  3. Start Server Manager:
  4. C:\> SVRMGR30
    
  5. Create an operating system-authenticated user by entering the following:
  6. SVRMGR> CREATE USER OPS$USERID IDENTIFIED EXTERNALLY;
    

    where:

    OPS$  

    is the value set for the OS_AUTHENT_PREFIX initialization parameter.  

    USERID  

    is the user's Windows NT user name.  

Example:

To authenticate a user whose Windows NT user name is FRANK, when the OS_AUTHENT_PREFIX is set to XYZ, enter:

SVRMGR> CREATE USER XYZFRANK IDENTIFIED EXTERNALLY;

If you logged onto the client workstation as FRANK, or are using a share from the Windows NT machine hosting the Oracle8 database as user FRANK, you do not need to enter your database user name. For example, using Server Manager, enter:

SVRMGR> CONNECT /@SERVICE_NAME

where @SERVICE_NAME is the Net8 alias of the remote database.

The Oracle8 database searches the data dictionary for an automatic login user name corresponding to the Windows NT user name of FRANK, verifies it, and allows you to connect as XYZFRANK.

As the Oracle8 user name is the whole name XYZFRANK, all objects created by XYZFRANK (that is tables, views, indexes, etc.) are prefixed by this name. For another user to reference the table SHARK owned by XYZFRANK, the user must enter:

SVRMGR> SELECT * FROM XYZFRANK.SHARK

Attention: Automatic authorization accounts are supported for all Net8 protocols.  

Note: No other changes are required in the initialization parameter file to enable automatic logins.  

Authenticating Database Administrators

You can use any of the following methods to authenticate database administrators for your Oracle8 database:

Using Password Files

The Password Utility ORAPWD80 creates password files. Password files are located in the ORACLE_HOME\ DATABASE directory and are of the form PWDSID.ORA, where SID identifies the instance. The essential elements of a password file are.

Element   Description  

PASSWORD  

Sets the password for INTERNAL and SYS accounts.  

ENTRIES  

Sets the maximum number of entries in the password file. This corresponds to the maximum number of distinct users allowed to connect to the database with the SYSDBA and SYSOPER DBA privileges.  

Use Server Manager to add or delete user names, user passwords, and user privileges in password files. In addition to creating the password file, you must also set the REMOTE_LOGIN_PASSWORDFILE to one of the following values:

NONE  

Indicates that the Oracle8 database ignores the password file and that privileged users are authenticated by the Windows NT operating system.  

EXCLUSIVE  

Indicates that only one database can use the password file and that the password file contains names other than SYS and INTERNAL. Oracle8 looks in the registry for the value of the ORA_SID_PWFILE parameter. If a value is unspecified, it looks in the registry for the value of the ORA_PWFILE parameter, which points to a file containing the INTERNAL password as well as user names, passwords, and privileges. If that is not set, it uses the default of ORACLE_HOME\ DATABASE\PWDSID.ORA.  

SHARED  

Indicates that more than one database can use the password file (for example, a parallel server environment). However, the only users recognized by the password file are SYS and INTERNAL. You cannot log in with SYSOPER or SYSDBA privileges even if those privileges are granted in the password file. The SHARED value of this parameter affords backward compatibility with earlier releases of the Oracle8 database. The Oracle8 database looks for the same files as it does when the value is EXCLUSIVE, but only the INTERNAL account is available for privileged access. This is the default value.  

Caution: To move or copy password files, use only ORADIM80. Copying or manually moving them may result in ORADIM80 not being able to find a password to start an instance.  

Using Operating System Authentication

You can have the Windows NT operating system authenticate database administrators.

To use operating system authentication:

  1. Set up the database administrators to be authenticated by the operating system.
  2. Ensure that the REMOTE_LOGIN_PASSWORDFILE initialization parameter is set to NONE. Setting this parameter to NONE causes Windows NT to ignore the password file. REMOTE_LOGIN_PASSWORDFILE can have the value NONE, EXCLUSIVE, or SHARED as described above.
  3. An authenticated database administrator can now connect to a local or remote database over a secure connection by entering the following commands:

    SVRMGR> CONNECT / AS SYSOPER
    SVRMGR> CONNECT / AS SYSDBA
    

Connecting as SYSOPER and SYSDBA

DBAs who issue the CONNECT INTERNAL command from a client machine must belong to one of the following Windows NT local groups:

The SYSDBA and SYSOPER roles are mapped as follows:

This role...   Maps to...  

SYSDBA  

ORA_SID_DBA, ORA_DBA  

SYSOPER  

ORA_SID_OPER, ORA_OPER  

For example, an authenticated connection exists between a client machine and a Windows NT machine running the Oracle8 database (with the authenticated user name being NTUSER2). The Oracle8 database then searches for the user name NTUSER2 in group ORA_ORCL_DBA when the user enters the command:

SVRMGR> CONNECT / AS SYSDBA

If the user name NTUSER2 is located, the user is given DBA privileges. If not found, Oracle8 checks the global group ORA_DBA.

Connecting as INTERNAL

There are two ways to connect as INTERNAL to the Oracle8 database:

This section describes both types of connections.

Note: The password for INTERNAL is ORACLE if you installed Oracle8 through the Oracle8 option. If you installed Oracle8 through the Custom installation option, the password for INTERNAL is whatever you entered when prompted during installation.  

Note: CONNECT INTERNAL continues to be supported for backwards compatibility only.  

Note: When REMOTE_LOGIN_PASSWORDFILE is set to NONE, connecting remotely to a database as INTERNAL is prohibited even if the correct password is supplied.  

Connecting as INTERNAL With a Password

Follow the procedures below to connect as INTERNAL with a password:

  1. Create a password file using the ORAPWD80 utility.
  2. Set the REMOTE_LOGIN_PASSWORDFILE parameter to EXCLUSIVE or SHARED.
  3. Connect to your database as follows:
  4. SVRMGR> CONNECT INTERNAL/PASSWORD
    

    where PASSWORD is the password created with ORAPWD80 or ORADIM80.

Connecting as INTERNAL Without a Password

There are three ways to connect as INTERNAL without a password:

To connect as INTERNAL without a password, you must install Net8 Client and Net8 Server. Both products include the Net8 Native Authentication Adapter, which enables a user to make secure Windows NT and Windows 95 client connections to an Oracle8 database without a password. To do this, you must create a new local Windows NT users group and add a Windows NT operating system user to that group. This enables you to log into a Windows NT domain, of which your Oracle8 database is just one of many resources to which you have access. Once you access this domain, you are automatically validated as an authorized DBA who can access the Oracle8 database without a password.

To create a user account that uses the Net8 Native Authentication Adapter:

  1. Identify a Windows NT user account (local or domain) on your Oracle8 database server.
  2. Set the REMOTE_LOGIN_PASSWORDFILE parameter to EXCLUSIVE or SHARED.
  3. Create a new local user group called ORA_SID_DBA or ORA_DBA with the Windows NT User Manager. This corresponds to Oracle roles with DBA privileges.
    1. Open the Windows NT User Manager.
    2. Choose User->New Local Group from the main menu.
    3. The New Local Group dialog box appears.

    4. Create the local group with the following syntax:
      • ORA_SID_DBA

       

      (specific to one instance)  

      • ORA_DBA

       

      (specific to all instances)  

    5. Choose OK.
    6. The Windows NT local group appears in the Groups list at the bottom of the User Manager Utility window.

    7. Double-click the new group in the Groups list.
    8. The Local Group Properties dialog box appears.

    9. Click Add.
    10. The Add Users and Groups dialog box appears.

    11. Select the Windows NT local or domain user account you identified earlier and choose Add.
    12. Choose OK to grant the DBA database role to the NT user account.
    13. The Windows NT user account appears in the Local Group Properties dialog box.

    14. Click OK.
    15. You are returned to the User Manager window.

    16. Exit User Manager.
  4. Open an Oracle tool such as SQL*Plus or Server Manager.
  5. Enter the following command to access the Oracle8 database:
  6. For...   Enter...  

    Windows NT local and remote logins or Windows 95 remote logins:  

    CONNECT INTERNAL/@CONNECT_STRING

    where CONNECT_STRING maps to the database alias.  

Changing the Internal Password:

To change the Internal password in either of two ways (both involve re-creation of the password file):

  1. Using ORADIM80
    1. Delete the SID for the password you want to change:
    2. C:\>ORADIM80 -DELETE -SID ORCL
      
    3. Create the same SID again and specify a new Internal password:
    4. C:\>ORADIM80 -NEW -SID ORCL -INTPWD NEW_PASSWORD - MAXUSERS N
      

      where NEW_PASSWORD is the new Internal password and N is the maximum number of DBAs/operators who can be logged in at once with this password.

  2. Using the password utility (ORAPWD80)
  3. See the Oracle8 Server Administrator's Guide for specific instructions.

Granting Database Roles with Windows NT

The Oracle8 database allows roles to be granted to users directly by Windows NT. When users are enrolled using the automatic authenticated accounts, Windows NT local groups can grant these users database roles. Windows NT groups are created by using the Windows NT User Manager.

Note: See the Oracle8 Server Administrator's Guide for more information on database roles.  

When you use Windows NT to authenticate users, you can operate the database so that it uses Windows NT groups to identify a user's database roles when they create a database session. Use the Windows NT User Manager to create, grant, or revoke database roles to users.

To grant database roles with Windows NT:

  1. Set the value of the OS_ROLES initialization parameter in INITSID.ORA to TRUE. The default setting for this parameter is FALSE.
  2. Start or restart the database instance.
  3. Open the Windows NT User Manager.
  4. Choose User->New Local Group from the main menu.
  5. The New Local Group dialog box appears.

  6. Enter the Windows NT local group name corresponding to the database role in the Group Name field with the following syntax:
  7. ORA_SID_ROLENAME [_D] [_A] 
    

    where:

    SID  

    Indicates the database instance.  

    ROLE NAME  

    Identifies the database role granted to users of a database session.  

    D  

    Optional character indicating that this database role is to be the default role of the database user. If specified, this character must be preceded by an underscore.  

    A  

    Optional character indicating that this database role includes the ADMIN OPTION. This enables the user to grant the role to other roles only. If specified, this character must be preceded by an underscore.  

  8. Choose OK.
  9. The Windows NT local group appears in the Groups list at the bottom of the User Manager Utility main window.

  10. Double-click the new group in the Groups list.
  11. The Local Group Properties dialog box appears.

  12. Click Add.
  13. The Add Users and Groups dialog box appears.

  14. Select the Windows NT local or domain user account and choose Add.
  15. Choose OK.
  16. The user appears in the Local Group Properties dialog box.

  17. Click OK.
  18. You are returned to the User Manager main window.

Using this syntax appropriately in Step 5, you can convert the database roles in the following table to Windows NT groups. Then users who are:

have the privileges associated with ROLE2 and ROLE4 by default. ROLE1 and ROLE 3 are available for use by the user if they use the SET ROLE command. Additionally, users can grant ROLE3 and ROLE4 to other roles.

Database Roles   Windows NT Groups  

ROLE1  

ORA_ORCL_ROLE1  

ROLE2  

ORA_ORCL_ROLE2_D  

ROLE3  

ORA_ORCL_ROLE3_A  

ROLE4  

ORA_ORCL_ROLE4_DA  

Note: All privileges for these roles are active when the user connects. When using operating system roles, all roles are granted and managed through the operating system. You cannot use both operating system roles and Oracle roles at the same time.  

Note: When the Oracle8 database converts the group name to a role name, it changes the name to uppercase.  

Example:

When OS_ROLES is set to TRUE in the INITSID.ORA file, it is important to understand how roles, and the privileges granted to these roles, are obtained by Oracle users whose IDs are not defined externally.

The user connects over Net8 with the Oracle user name SCOTT/TIGER. The roles applied to the Oracle user name SCOTT consist of all roles defined for the Windows NT user account that were mapped to the database roles above. All roles available under an authenticated connection are determined by the Windows NT user ID and the Oracle-specific Windows NT local groups to which the user belongs (for example, ORA_SID_ROLE1 or ORA_SID_ROLE4_DA).

Encrypting Database Passwords

With the Oracle8 database, you can encrypt the password used to verify a remote database connection.

To enable password encryption:

  1. Set the DBLINK_ENCRYPT_LOGIN initialization parameter on the server machine to TRUE.
  2. Set the ORA_ENCRYPT_LOGIN configuration variable on the client machine to TRUE.

Once these parameters are set to TRUE, whenever a user attempts a remote login, the Oracle8 database encrypts the password before sending it to the remote database. If the connection fails, the failure is noted in the audit log. The Oracle8 database then checks if either of these parameters is set to FALSE. If so, the Oracle8 database attempts the connection again using an unencrypted version of the password. If the connection is successful, the success is noted in the audit log, and the connection proceeds.

Note: Releases prior to release 7.1 do not support encrypted passwords. If you are connecting to an earlier version of the Oracle database, you must set the initialization parameter DBLINK_ENCRYPT_LOGIN to FALSE for the connection to succeed.  

Using the Oracle Enterprise Manager Console

The section provides an overview of using the Oracle Enterprise Manager Console. The Console is the centralized point from where you manage your database network. See Chapter 8, "Understanding Oracle Enterprise Manager" for a conceptual overview of the Oracle Enterprise Manager and the Oracle Enterprise Manager Administrator's Guide for specific instructions on using the console.

You can customize the Oracle Enterprise Manager Console to suit both your preferences and the DBA tasks you perform. The individual windows in the Console can be minimized, resized, and relocated. The windows can be sized by selecting and dragging the splitter bar between the windows.

This section provides procedures for using the following console features:

Logging In

When you start Oracle Enterprise Manager, you are prompted for a user name, password, and service name. By supplying this authentication information, you log into the Repository and are identified by the console and its communication daemon.

Whenever you submit a job or register an event set, it is marked as belonging to you. Any messages regarding the job or event are sent only to you.

For example:

  1. Start the console on your office PC.
  2. Log in to a Repository.
  3. Submit a backup database job to be executed that night.
  4. Log out.

The next day, you can run the console on your home PC. The agent that performed the backup job then delivers messages related to the backup job to the new Console and daemon. The agent can also notify multiple administrators of an event's occurrence by email or electronic paging.

Performing Simple Single Tasks in the Navigator

The Navigator simplifies ad-hoc administration. For example, if you want to grant a privilege to a single user, you can click the right-mouse button on that user in the Navigator tree and choose Quick Edit from the context-sensitive menu. The Quick Edit User property sheet is displayed, allowing you to easily add the privilege.

The Navigator makes it easy to perform simple, single tasks. However, for more complicated, composite tasks, use one of the integrated DBA applications. For example, to assign a set of privileges to several users, use Security Manager, one of the DBA applications integrated into Oracle Enterprise Manager.

Customizing your View in the Navigator

Although the Navigator can display all objects being managed, you may not want to view the entire system in one Navigator tree if your system is a large and complex environment. Consequently, the Navigator can be divided into smaller tree lists. These subtrees can be displayed in separate windows. The objects in the Navigator can also be filtered to control which objects are displayed.

Checking the Status of an Item

Graphical cues (status indicators) show the state of an object in the Navigator tree. For example, the status of a database is depicted graphically by a green or red signal light icon. You can determine at a glance the states of items in the Navigator tree as they change dynamically.

Creating User-Defined Groups

A user-defined group is a collection of nodes or services of the same type. You can group services based on organization, geographic location, or function. For example, you might create a group of databases called CAL_MAIL that contains the mail databases in California.

Because nodes and services can belong to more than one group, a group can also contain other groups of the same type. For example, the group CAL_MAIL can belong to the group US_MAIL, which is a group of all the mail databases in the United States.

Groups can be placed on maps. If you double-click a group icon, it expands to reveal its members and subgroups. The state of a group is also depicted graphically on a map. Groups inherit the worst state of a member. For example, if one service in a group is down, that state is shown on the map.

Grouping nodes or services simplifies tasks that are applied to all members of the group. For example, in order to back up all the databases in the CAL_MAIL group, you only need to schedule the backup job once with the group as the destination. The backup is scheduled on all relevant databases.

Creating Maps

You create maps by dragging and dropping objects from the Navigator into the Map window. Any number of maps can be created, then saved or edited.

A map can perform DBA tasks. For example, you can double-click an object to call up its property sheet. You can also select items from the map and launch one of the integrated applications to administer them.

Integrating Applications into the Console

The console application is written in Microsoft's Visual C++ and uses OLE2 technology to enable applications to integrate or plug into the console. Integrated applications also use the common services provided by the Oracle Enterprise Manager platform.

Besides the standard suite of integrated database administrator applications that Oracle Corporation provides with Oracle Enterprise Manager, third-party developers have developed integrated applications using the Enterprise Manager application programmatic interfaces (APIs). For more information on integrating third-party applications into the Console, see the Oracle Enterprise Manager Application Developer's Guide.




Prev

Next
Oracle
Copyright © 1997 Oracle Corporation.
All Rights Reserved.

Library

Product

Contents

Index