| Oracle8i Server and Tools Administrator's Guide Release 3 (8.1.7) for Alpha OpenVMS Part Number A86712-01 |
|
Because you access a database with an instance, managing instances is an integral part of database administration. This chapter describes how to control and manage both single and parallel instances.
The following topics are presented:
This section discusses the following topics:
Information for each instance is recorded in a file named ORA_RDBMS:ORA_RDBMS_SIDS.DAT. This file contains the instance SID, the name of the database associated with the instance, and the name of the node where the instance was set up. This file is used to determine whether a SID is currently in use and if it is defined for a given database on a given node.
The following files are associated with an instance:
You can use ORACLEINS to set up an instance on a particular node to access a particular database.
The following command files, located in the ORA_DB directory of each database, start up, shut down, and define logical names for all instances of database <dbname>:
STARTUP_<dbname>.COM
SHUTDOWN_<dbname>.COM
ORAUSER_<dbname>.COM
To delete an instance, perform the following procedure:
orasrv_beq_'sid'.com
orasrv_netv2_'sid'.com orasrv_hsalloci_'sid'.com
With Oracle8i, each instance writes to its own log files. A given log file is not associated with any particular instance like rollback segments are, but is instead associated with a thread number.
Each instance that starts has the next available thread number assigned to it. Before a thread number can be assigned, it must have log files associated with it and these log files must be enabled. Refer to the SQL Language Reference Manual for more information.
Adding threads for new instances is accomplished in two steps:
ALTER DATABASE ADD LOGFILE THREAD <number> <filespec> <storage>;
For example:
ALTER DATABASE ADD LOGFILE THREAD 2
'DISK$DEV1:[ORALOG]ORA_LOG3.RDO' SIZE 2000K REUSE,'DISK$DEV1:[ORALOG]ORA_LOG4.RDO' SIZE 2000K REUSE;
When adding log files to your database, if you do not specify the thread number, the log file is associated with the thread number of the instance to which you are connected. Once a log file is associated with a thread, it is very difficult to change its thread number. Each thread you want to use must have at least two log files associated with it.
ALTER DATABASE ENABLE PUBLIC THREAD <number>
For example:
ALTER DATABASE ENABLE PUBLIC THREAD 4;
The thread for the initial instance is enabled by default, and all log files created with the initial database are associated with this thread. Additional instances, even if they are set up and have rollback segments identified in their instance-specific INIT.ORA files, cannot be started until additional log files (associated with unique thread numbers) have been created and their respective threads have been enabled.
Parallel Query is an option that allows parallel query processing, index creation, and data loading.
To prevent a parallel query server from timing out, you can modify your INIT.ORA file by setting one of the following parameters:
These modifications will prevent trace files from being generated when the parallel query servers time out.
For more information on the parallel query option, refer to the Oracle8i Server Administrator's Guide.
|
|
![]() Copyright © 2000 Oracle Corporation. All Rights Reserved. |
|