Oracle9i Installation Guide
Release 2 (9.2.0.1.0) for UNIX Systems: AIX-Based Systems, Compaq Tru64 UNIX, HP 9000 Series HP-UX, Linux Intel, and Sun Solaris Part No. A96167-01 |
|
After completing installation, you must perform certain post-installation steps and configure the Oracle9i database. This chapter describes the required steps as well as some optional ones.
Note: This chapter describes basic configuration only. See the Oracle9i Administrator's Reference Release 2 (9.2.0.1.0) for UNIX Systems and the product administration and tuning guides for more sophisticated configuration and tuning information. |
Log in as the root
user and perform the following tasks:
Automating Database Startup and Shutdown for HP, Linux and Solaris (Optional)
Automating Database Startup and Shutdown for Tru64 (Optional)
If necessary, create additional UNIX accounts. Users must be members of the OSDBA or OSOPER groups to connect to the database with administrator privileges.
If you configure Oracle9i database in a way similar to the United States NCSC C2 or European ITSEC E3 security evaluation configuration, then verify database file security to ensure the integrity of the Oracle software installation. This task is optional if security is not an issue.
To prevent unauthorized access to secure data, you must protect your files. The file privileges and recommended ownership are as follows:
The oracle
account should have read, write, and execute privileges for all files and directories in the Oracle9i installation.
The ORAINVENTORY group should have read, write, and execute privileges on the oraInventory
directory, but should not have write permissions on anything else.
No user other than the oracle
user or the ORAINVENTORY group should have write access on any files or directories in the Oracle9i installation.
Table 4-1 summarizes the directory and file permissions for different types of files.
Note: These permissions are the default values and should not be changed. |
Table 4-1 Access Permissions on Oracle Directories and Files
After installing the Oracle9i database, the APACHE account access to the oraInventory
directory needs to be removed in order to ensure database security. Perform the following tasks:
Create a new group to which no other group or user has access.
Assign ownership of this group to Apache.
Change the APACHE account primary Group Identifier (GID) from the one that has ownership of the oraInventory
directory (typically ORAINVENTORY) to the new group name.
Oracle Corporation recommends that you configure your system to automatically start Oracle databases when your system starts up, and to shut down Oracle databases when your system shuts down. Automatic database startup and shutdown protects against improper shutdown of the database.
The dbstart
and dbshut
scripts are located in the $ORACLE_HOME/bin
directory and can be used to automate database startup and shutdown. The dbstart
and dbshut
scripts reference the same entries in the oratab
file, so the scripts must apply to the same set of databases. For example, you cannot have the dbstart
script automatically start up databases sid1
, sid2
, and sid3
, and the dbshut
script shut down only databases sid1
and sid2
. You can, however, specify that the dbshut
script shut down a set of databases while the dbstart
script is not used at all. To do this, include a dbshut
entry in the system shutdown file but omit the dbstart
entry from the system startup files.
See Also: init command in your UNIX system documentation for more information on system startup and shutdown procedures.
|
Perform the following tasks to set up the dbstart
and dbshut
scripts so that they are called at system startup. This process must be completed for every new database that you want to configure for automated startup and shutdown.
Edit the /var/opt/oracle/oratab
file for Solaris and /etc/oratab
file for HP and Linux.
Database entries in the oratab
file appears in the following format:
ORACLE_SID:ORACLE_HOME:{Y|N}
In the preceding command, Y or N specifies whether you want the dbstart
and dbshut
scripts to start up and shut down the database. For each database that you want to start up, find the ORACLE_SID
entry identified by the sid
in the first field. Change the last field for each to Y.
For Oracle Real Application Clusters installation, this entry appears in the following format:
DB_NAME:ORACLE_HOME:{Y|N}
In the preceding command, DB_NAME is the cluster database name. Y or N specifies whether you want the dbstart
and dbshut
scripts to start up and shut down the database.
In the /etc/init.d
directory, create a dbora
script similar to the following, if it does not already exist. Be sure to give the full path of the dbstart
utility.
#!/bin/sh # Set ORA_HOME to be equivalent to the $ORACLE_HOME # from which you wish to execute dbstart and dbshut; # # Set ORA_OWNER to the user id of the owner of the # Oracle database in ORA_HOME. ORA_HOME=/u01/app/oracle/product/9.2.0.1.0 ORA_OWNER=oracle if [! -f $ORA_HOME/bin/dbstart] then echo "Oracle startup: cannot start" exit fi case "$1" in 'start') # Start the Oracle databases: # The following command assumes that the oracle login # will not prompt the user for any values su - $ORA_OWNER -c $ORA_HOME/bin/dbstart & ;; 'stop') # Stop the Oracle databases: # The following command assumes that the oracle login # will not prompt the user for any values su - $ORA_OWNER -c $ORA_HOME/bin/dbshut & ;; esac
Create symbolic links to the dbora
script in the appropriate run-level script directories, as follows:
# ln -s /etc/init.d/dbora /etc/rc0.d/K10dbora # ln -s /etc/init.d/dbora /etc/rc3.d/S99dbora
Oracle Corporation recommends that you configure your system to automatically start Oracle databases when your system starts up, and to shut down Oracle databases when your system shuts down. Automatic database startup and shutdown protects against improper shutdown of the database.
Perform the following tasks to set up the dbstart
and dbshut
scripts so that they are called at system startup. This process must be completed for every new database that you want to configure for automated startup:
Edit the /etc/oratab
file.
Database entries in the oratab
file appears in the following format:
ORACLE_SID:ORACLE_HOME:{Y|N}
In the preceding command, Y or N specifies whether you want the dbstart
and dbshut
scripts to start up and shut down the database.
For Oracle Real Application Clusters installation, this entry appears in the following format:
DB_NAME:ORACLE_HOME:{Y|N}
In the preceding command, DB_NAME
is the cluster database name. Y or N specifies whether you want the dbstart
and dbshut
scripts to start up and shut down the database.
For each database that you want to start up, find the ORACLE_SID
entry identified by the sid
in the first field. Change the last field for each to Y.
Add the dbstart
script to the /etc/inittab
file:
# mkitab "oradb:2:wait:/bin/su oradb -c|/$ORACLE_HOMES/bin/dbstart"
In the preceding command, oradb
is the identifier of the oracle
user for which you want to start the database.
Automate database and system shutdown by creating a script, shut
, to start dbshut
and the system executable /etc/shutdown
. Complete the following steps to create the script:
If you have not already done so, edit the database entries of your /etc/oratab
file to enable dbstart
and dbshut
, as described in step 1 of the dbstart
instructions.
As root
, create the shut
shell script:
# cd /etc cat > shut << EOF ? su oracle_owner -c /usr/oracle/bin/dbshut ? /etc/shutdown $* \ ? [Ctrl-D] # chmod u+x shut
Execute the following command to run the shut
script and shut down the database:
# /etc/shut -h now
This closes Oracle databases and shuts down the system with the specified options.
This process must be completed for every new database that you want to configure for automated startup and shutdown. Perform the following tasks to start up and shut down listeners and set up the dbstart
and dbshut
scripts so that they are called at system startup:
Log in as root
user.
Edit the /etc/oratab
file.
Database entries in the /etc/oratab
file appear in the following format:
ORACLE_SID:ORACLE_HOME:{Y|N}
In the preceding command, Y or N specifies whether you want the dbstart
and dbshut
scripts to start up and shut down the database.
For Oracle Real Application Clusters installation, this entry appears in the following format:
DB_NAME:ORACLE_HOME:{Y|N}
In the preceding command, DB_NAME is the cluster database name. Y or N specifies whether you want the dbstart
and dbshut
scripts to start up and shut down the database.
For each database that you want to start up, find the ORACLE_SID
entry identified by the sid
in the first field. Change the last field for each to Y.
Change directory to /sbin/init.d
.
Create a file named oracle
, and use chmod
to set the privileges to 750.
Note: This script assumes that a password is not set for the listener. If a password is set, the listener will not be stopped.The ORACLE_HOME and ORACLE variables are examples. Use information as appropriate for your installation. |
Add the following contents to the /sbin/init.d/oracle
file:
#!/bin/sh # # change the value of ORACLE_HOME to be correct for your # installation ORACLE_HOME=/opt/oracle/product/9.2.0.1.0 PATH=${PATH}:$ORACLE_HOME/bin HOST='hostname' # # change the value of ORACLE to the login name of the # oracle owner at your site # ORACLE=oracle export ORACLE_HOME PATH # if [ ! "$2" = "ORA_DB" ] ; then rsh $HOST -l $ORACLE /sbin/init.d/oracle $1 ORA_DB exit fi # LOG=$ORACLE_HOME/startup.log touch $LOG chmod a+r $LOG # case $1 in 'start') echo "$0: starting up" >> $LOG date >> $LOG # Start Oracle Net if [ -f $ORACLE_HOME/bin/tnslsnr ] ; then echo "starting Oracle Net listener" $ORACLE_HOME/bin/lsnrctl start >> $LOG 2>&1 & fi echo "starting Oracle databases" $ORACLE_HOME/bin/dbstart >> $LOG 2>&1 ;; 'stop') echo "$0: shutting down" >> $LOG date >> $LOG # Stop Oracle Net if [ -f $ORACLE_HOME/bin/tnslsnr ] ; then echo "stopping Oracle Net listener" $ORACLE_HOME/bin/lsnrctl stop >> $LOG 2>&1 fi echo "stopping Oracle databases" $ORACLE_HOME/bin/dbshut >> $LOG 2>&1 ;; *) echo "usage: $0 {start|stop}" exit ;; esac # exit
Change the .rhosts
file in the oracle
user login home directory to allow root
login access to the account.
your_host_name root
Link files into the startup and shutdown directories by using the 'ln -s'
command.
# ln -s /sbin/init.d/oracle /sbin/rc3.d/S99oracle # ln -s /sbin/init.d/oracle /sbin/rc0.d/K01oracle
This file automatically starts and stops Oracle9i when the system is started or stopped.
Perform the following tasks as the oracle
user:
Update the startup files of the oracle
user and the UNIX accounts of oracle
users.
Set the following environment variables in the.profile
or.login
file of the oracle
user before using Oracle9i products. The settings that you use here should correspond to the settings used during installation as described in "Set Environment Variables". The syntax for setting environment variables is as follows.
For the Bourne or Korn shell:
variable_name=value; export variable_name
For the C shell:
setenv variable_name value
Table 4-2 describes the Environment Variable Settings.
Caution: Do not define environment variables with names that are identical to those used for Oracle processes such asCKPT , PMON , and DBWR .
|
Table 4-2 Environment Variable Settings
Environment Variable | Recommended Setting |
---|---|
ORACLE_HOME | Set the ORACLE_HOME variable to specify the directory containing the Oracle software for a particular release. The OFA recommended value is:
For example,
|
CLASSPATH | Set the CLASSPATH variable to ensure Java functionality. The CLASSPATH variable is different for various products.
CLASSPATH must include the following: $ORACLE_HOME/jlib/<product jar file>: $ORACLE_HOME/product/jlib/product_jar_file See Also: Oracle9i Java documentation for more information on setting the CLASSPATH variable. |
LD_LIBRARY_PATH | Set the LD_LIBRARY_PATH variable as $ORACLE_HOME/lib for HP, Linux, Tru64, and Solaris 32-bit.
Set the LD_LIBRARY_PATH variable as |
LD_LIBRARY_PATH_64 | Set the LD_LIBRARY_PATH_64 variable as $ORACLE_HOME/lib for Solaris 64-bit.
|
SHLIB_PATH | Set the SHLIB_PATH variable as $ORACLE_HOME/lib32 for HP.
|
LIBPATH | Set the LIBPATH variable as $ORACLE_HOME/lib32: $ORACLE_HOME/lib for AIX.
|
ORACLE_SID | Set the ORACLE_SID variable to specify the name of the Oracle Server instance name. Oracle Corporation recommends restricting it to no more than four characters to avoid filename problems on different operating systems, as the sid is incorporated in many files. If you do not remember the value you entered when you were prompted by the Oracle Universal Installer, you can find it listed in the installActions.log file located in the oraInventory_location / logs directory.
The |
PATH | Make sure the new $ORACLE_HOME/bin directory is included in the PATH setting.
AIX Path is
See Also: Chapter 2, " Pre-Installation Requirements" for more information on other PATH requirements. |
TNS_ADMIN | TNS_ADMIN specifies the directory containing the Oracle Net Services configuration files.
Oracle Net Services configuration files are typically, but not always located in the The search order for the
|
TWO_TASK | Set the TWO_TASK variable to the default connect identifier to use in the connect string. The default connect identifier does not need to be specified in the connect string. For example, if the TWO_TASK environment variable is set to sales , you can connect to a database using the CONNECT username/password command rather than the CONNECT username/password @sales command.
See Also: Oracle9i Net Services Administrator's Reference and Oracle9i Administrator's Reference Release 2 (9.2.0.1.0) for UNIX Systems: AIX-Based Systems, Compaq Tru64 UNIX, HP 9000 Series HP-UX, Linux Intel, and Sun Solaris for more information on connect identifiers. |
You can use the oraenv
script to set a common environment for Oracle software users.
On a single-instance system, set the ORACLE_SID environment variable in the .profile
or.login
file of the oracle
user account. Enter the following commands to initialize the oraenv
file at login.
For the Bourne or Korn shell:
ORAENV_ASK=NO
. /usr/local/bin/oraenv
For the C shell:
set ORAENV_ASK = NO
source /usr/local/bin/coraenv
unset ORAENV_ASK
Note: The C shell uses the settings incoraenv file instead of the oraenv file.
|
On a multiple-instance System, include a list of instance names and commands necessary to initialize the oraenv
script at the end of the startup file of the oracle
user account.
Table 4-3 shows the required Bourne or Korn shell commands for initializing the oraenv script on UNIX platforms.
Table 4-3 Bourne/Korn Commands to Initialize the oraenv Script on Multiple-Instance Systems
Platforms | Bourne or Korn Shell |
---|---|
Solaris |
#!/bin/sh echo "The SIDs on this machine are:" cat /var/opt/oracle/oratab | awk -F: '{print $1}' |\ grep -v "#" ORAENV_ASK="YES" . /usr/local/bin/oraenv |
AIX, HP, Linux and Tru64 |
#!/bin/sh echo "The SIDs on this machine are:" cat /etc/oratab | awk -F: '{print $1}' | grep -v "#" ORAENV_ASK="YES" . /usr/local/bin/oraenv |
Table 4-4 describes the C shell commands for initializing the oraenv script on UNIX platforms.
Table 4-4 C Shell Commands to Initialize the oraenv Script on Multiple-Instance Systems
Platforms | C shell |
---|---|
Solaris |
#!/usr/bin/csh echo "The SIDs on this machine are:" cat /var/opt/oracle/oratab | awk -F: '{print $1}' |\ grep -v "#" set ORAENV_ASK="YES" source /usr/local/bin/coraenv |
AIX, HP, Linux and Tru64 |
#!/usr/bin/csh echo "The SIDs on this machine are:" cat /etc/oratab | awk -F: '{print $1}' | grep -v "#" set ORAENV_ASK="YES" source /usr/local/bin/coraenv |
To create the same environment for all Oracle software user accounts, modify each oracle
user startup file to include the following addition at the end of the file:
For .profile
files used by the Bourne or Korn shells, add:
.
/usr/local/bin/oraenv
For .login
files used by the C shell, add:
source /usr/local/bin/coraenv
The ORACLE_HOME and PATH environment variables are described in "Setting Environment Variables".
If you have created a database manually instead of using Database Configuration Assistant, you must ensure the system configuration is reflected in the oratab
file. The oratab
file is located in the /var/opt/oracle
directory on Solaris and in the /etc
directory on AIX, HP, Linux and Tru64.
Add an entry for each server instance on the system in the following format:
ORACLE_SID:ORACLE_HOME:{Y|N}
In the preceding command, Y or N indicates whether you want to activate the dbstart
and dbshut
scripts. Database Configuration Assistant automatically adds an entry for each database it creates.
For Oracle Real Application Clusters installation, this entry appears in the following format:
DB_NAME:ORACLE_HOME:{Y|N}
In the preceding command, DB_NAME is the cluster database name. Y or N specifies whether you want the dbstart
and dbshut
scripts to start up and shut down the database.
Oracle Corporation recommends that you back up the root.sh
script after a successful product installation. If you install another product category later into the same Oracle home directory, then the Oracle Universal Installer replaces the contents of the existing root.sh
script during the installation. If after a later installation you require information from the original root.sh
script, then you can recover it from the backed up root.sh
file.
For example, if you install Oracle9i Management Infrastructure into the same Oracle home directory as a successful Oracle9i Server installation, then the Oracle Universal Installer replaces the contents of the existing root.sh
script during the installation. Backing up the root.sh
file after each product installation insures that you have all root.sh
files available for reference if necessary.
When you create a typical startup database using Database Configuration Assistant, the init
sid
.ora
parameters are automatically set. Change initialization parameters to configure and tune the system for optimal performance. The default init
sid
.ora
file is located in the $ORACLE_BASE/admin/
sid
/pfile
directory. A template init.ora
file is also in the $ORACLE_HOME/dbs
directory. The file contains settings for small, medium, and large databases, with the settings for medium and large databases commented out in the file. The size settings are relative to each other, but do not represent an empirical size of the database.
Manually modify the initialization parameters in the init
sid
.ora
file with a UNIX text editor. To activate the modified init
sid
.ora
file, shut down and restart the database.
Oracle Corporation recommends that you do not use symbolic character representations such as question marks (?) for the ORACLE_HOME environment variable in parameter files, as they might lead to startup errors.
To bring rollback segments online automatically with database startup, uncomment the rollback_segments
command in the init
sid
.ora
file.
For example, change:
# rollback_segments = (r0, r1, r2, r3)
to:
rollback_segments = (r0, r1, r2, r3)
See Also: Oracle9i Administrator's Reference Release 2 (9.2.0.1.0) for UNIX Systems for more information oninit sid.ora parameters and other tuning and configuring initialization parameters.
|
Perform the following required post-installation steps as necessary for your installation. Not all products require post-installation steps.
Oracle servers configured with Shared Server require a higher setting for the SHARED_POOL_SIZE initialization parameter, or a custom configuration that uses the LARGE_POOL_SIZE initialization parameter. If you installed your server with Oracle Universal Installer, then the value of the SHARED_POOL_SIZE parameter is set automatically by Database Configuration Assistant. However, if you created a database manually, increase the SHARED_POOL_SIZE parameter in the init
sid
.ora
file. Typically, you should add 1 KB for each concurrent user.
Perform the following post-upgrade tasks for Oracle Internet Directory:
Set the Job Queue Process parameter in the init.ora
file of the database to the following values:
For single-node, set the parameter to at least 1.
For multi-node, set the parameter to (Number of nodes - 1
)
Perform the following tasks for single-node and multi-node upgrades.
The following information needs to be added to the root Oracle Context in the entry identified by the following DN "cn=Common, cn=Products, %RootOracleContextDN%"
. By default, the RootOracleContextDN
is "cn=OracleContext"
. Table 4-5 lists the attributes in the Root Oracle Context.
Table 4-5 Attributes in the Root Oracle Context
Attributes | Description |
---|---|
Subscriber Search Base (orclSubscriberSearchBase) | This attribute identifies the node in the DIT under which all subscribers are placed. |
Subscriber Nick Name Attribute (orclSubscriberNickNameAttribute) | This attribute identifies the nickname attribute to be used when searching for a subscriber under the subscriber search base. |
Default Subscriber (orclDefaultSubscriber) | This attribute identifies the root of your organization (same as the value specified in the Upgrading Subscriber screen of the OID Configuration Assistant. |
The following information needs to be added in the subscriber-specific Oracle Context in the entry identified by the following DN "cn=Common, cn=Products, cn=oracleContext, <subscriber DN>."
Table 4-6 lists the attributes in the Default Subscriber Oracle Context.
Table 4-6 Attributes in the Default Subscriber Oracle Context
Attributes | Description |
---|---|
User Search Base (orclCommonUserBase) | This attribute identifies the node in the DIT under which all users are placed. During the upgrade, this attribute value is set to the subscriber DN value.
Note: If this attribute is not set, then the password policy under the Root Oracle Context will be applied. |
User Nick Name Attribute (orclCommonNickNameAttribute) | This attribute identifies the nickname attribute to be used when searching for a user under the user search base. |
Group Search Base (orclCommonGroupSearchBase) | This attribute identifies the node in the DIT under which all the groups are placed. |
Note: You can update these attributes by using the Oracle Directory Manager. |
See Also: Oracle Internet Directory Administrator's Guide for more information on these attributes. |
If the password policy exists in the earlier version of Oracle Internet Directory (located under the DN
"cn=pwdpolicyentry, cn=Oracle Internet Directory"), then this policy will be applied to both the Root Oracle Context and the default Subscriber Oracle Context. The original DN
containing the policy "cn=pwdpolicyentry, cn=Oracle Internet Directory" will be removed from the earlier version. Otherwise, the default password policy is set up as part of the Subscriber Oracle Context creation. By default, the password policy for the default subscriber is set to the following values:
The user passwords expire in 60 days (pwdmaxage=5184000
)
The account is locked out after 10 successive failed login attempts (pwdlockout=1
and pwdmaxfailure=10
)
Password syntax checking is enabled and the minimum length of user passwords is five (pwdchecksyntax=1
and pwdminlength=5
)
User passwords must contain at least one numeric character (orclpwdalphanumeric=1
).
Note: You can find the above attribute values in the"cn=PwdPolicyEntry, cn=Common, cn=Products, cn=oracleContext, <subscriber DN>" .
The password policy under Root Oracle Context applies to all entries under the root DSE. However, it does not apply to entries under Root Oracle Context. |
See Also: Oracle Internet Directory Administrator's Guide for more information on how to change the default password policy.If the upgraded Oracle Internet Directory is integrating with other Oracle components, appropriate access control policies will need to be set up to grant necessary privileges to the Oracle components. See Oracle Internet Directory Administrator's Guide for more information. |
Basic configuration of Oracle Net Services is done by Oracle Net Configuration Assistant when it is started by Oracle Universal Installer during installation.
Verify and complete your initial configuration with the following steps:
Log in as root
and reserve a port for the Oracle Net listener by making the following entry in the /etc/services
file of each Oracle Net Services node on the network:
listener_name 1521/tcp #Oracle Net listener
In the preceding command, 1521 is the default port number. If you chose a different port when you configured the Oracle Net listener, specify that port in the /etc/services
file.
Check the status of the listener following the installation by using the following command:
$ lsnrctl status listener_name
The listener_name
field is required if the listener has a name other than the default listener
.
If the listener is not running, start it by using the following command:
$ lsnrctl start listener_name
Install and configure Oracle client software on a remote system, if necessary, then start SQL*Plus to test the connection to the server.
$ sqlplus username/password@net_service_name
If you can successfully connect to the server with SQL*Plus, you have established network connectivity over TCP/IP.
See Also: Oracle9i Net Services Administrator's Reference for more information on configuring a complete Oracle network."Oracle Net Configuration Assistant" for more information on how Oracle Net Configuration Assistant configures your installation or how to run it as a standalone tool. |
Perform the following post-installation tasks before running the Oracle Messaging Gateway.
Modify listener.ora file for External Procedure for Linux, Solaris 32-bit, and Tru64
Modify listener.ora file for External Procedure for AIX, HP, and Solaris 64-bit
Log in as SYSDBA
.
Use SQL*Plus to run the catmgw.sql
script located in the $ORACLE_HOME/mgw/admin
directory.
The catmgw.sql
script does the following:
Loads the necessary database objects for Oracle Messaging Gateway, such as roles, tables, views, object types, and the PL/SQL packages.
Creates public synonyms for Oracle Messaging Gateway PL/SQL packages and types.
Creates two roles, MGW_ADMINISTRATOR_ROLE
and MGW_AGENT_ROLE
.
Creates a library alias for the agent's external procedure.
This section describes the procedure to modify the listener.ora
file for external procedure. Create a backup copy of the listener.ora
file before you start.
The following example is specific to Solaris 32-bit.
Verify that the default IPC protocol address for external procedure is set. For example,
LISTENER = (ADDRESS_LIST=
(ADDRESS=
(PROTOCOL=IPC)
(KEY=EXTPROC))
Add static service information for the listener by setting a SID_DESC
in the listener.ora
file. For example,
# Add a SID_DESC
SID_LIST_LISTENER= (SID_LIST=
(SID_DESC =
(SID_NAME= mgwextproc)
(ENVS="LD_LIBRARY_PATH=/private/oracle/orcl9i/jdk/jre/lib/
sparc:/private/oracle/orcl9i/lib")
(ORACLE_HOME=/private/oracle/orcl9i)
(PROGRAM = extproc))
In the preceding example, SID_NAME is the net service name in tnsnames.ora
file, ORACLE_HOME is the name of the Oracle home directory, and PROGRAM is the name of the external procedure agent, extproc
. ENVS defines the LD_LIBRARY_PATH environment.
The LD_LIBRARY_PATH must contain the following paths for Linux and Tru64:
For Linux, LD_LIBRARY_PATH=$ORACLE_HOME/jdk/jre/lib/i386: $ORACLE_HOME/jdk/jre/lib/i386/server: $ORACLE_HOME/rdbms/lib:$ORACLE_HOME/lib: $ORACLE_HOME/mgw/lib
For Tru64, LD_LIBRARY_PATH=$ORACLE_HOME/jdk/jre/lib/alpha: $ORACLE_HOME/jdk/jre/lib/alpha/classic: $ORACLE_HOME/rdbms/lib:$ORACLE_HOME/lib: $ORACLE_HOME/mgw/lib
This section describes the procedure to modify the listener.ora
file for external procedure for AIX, HP, and Solaris 64-bit.
The following example is specific to Solaris 64-bit.
Verify that the default IPC protocol address for External Procedure is set.
LISTENER = (ADDRESS_LIST=
(ADDRESS=
(PROTOCOL=IPC)
(KEY=EXTPROC))
Add static service information for the listener by setting a SID_DESC
in the listener.ora
file. For example,
# Add a SID_DESC
SID_LIST_LISTENER= (SID_LIST=
(SID_DESC =
(SID_NAME= mgwextproc)
(ENVS="LD_LIBRARY_PATH_32=/private/oracle/orcl9i/jdk/jre/lib/sparc:
/private/oracle/orcl9i/lib32")
(ORACLE_HOME=/private/oracle/orcl9i)
(PROGRAM = extproc32))
(SID_DESC =
(SID_NAME= ep_agt1)
(GLOBAL_DBNAME=sales.us.acme.com)
(ENVS=LD_LIBRARY_PATH=/private/oracle/orcl9i/lib)
(ORACLE_HOME=/private/oracle/orcl9i)
(PROGRAM = extproc))
)
For HP, replace the LD_LIBRARY_PATH_32
with SHLIB_PATH
. The
will remain the same. For example,
LD_LIBRARY_PATH
SHLIB_PATH=$ORACLE_HOME/jdk/jre/lib/PA_RISC: $ORACLE_HOME/jdk/jre/lib/PA_RISC/classic: $ORACLE_HOME/rdbms/lib32:$ORACLE_HOME/lib32: $ORACLE_HOME/mgw/lib32
For AIX, use LIBPATH
for both LD_LIBRARY_PATH_32
and
. For example,
LD_LIBRARY_PATH
LIBPATH=$ORACLE_HOME/jdk/jre/bin: $ORACLE_HOME/jdk/jre/bin/classic:
$ORACLE_HOME/rdbms/lib32:$ORACLE_HOME/mgw/lib32
This section describes the procedure to modify tnsnames.ora
file for external procedure. Create a backup copy of tnsnames.ora
file before you start.
Add the net service name MGW_AGENT
to the tnsnames.ora
file. For example,
MGW_AGENT =
(DESCRIPTION=
(ADDRESS_LIST= (ADDRESS= (PROTOCOL=IPC)(KEY=EXTPROC)))
(CONNECT_DATA= (SID=mgwextproc) (PRESENTATION=RO)))
In the preceding example, the KEY
value is the IPC Protocol defined in the listener.ora
file, and the SID
value is the net service name defined in the SID_DESC
section of the listener.ora
file.
Add the gateway agent to the tnsnames.ora
file. For example,
AGENT_SERVICE =
(ADDRESS_LIST= (ADDRESS= (PROTOCOL=IPC)(KEY=EXTPROC))
(CONNECT_DATA= (SID=mgwsid)))
In the preceding example, the KEY value is the IPC Protocol defined in the listener.ora
file, and the SID
value is the net service name defined in the SID_DESC section of the listener.ora
file.
This section describes the procedure to modify mgw.ora
file for external procedure.
Set the library path environment variable in the mgw.ora
file. For example:
For AIX, LIBPATH=$ORACLE_HOME/jdk/jre/bin: $ORACLE_HOME/jdk/jre/bin/classic: $ORACLE_HOME/rdbms/lib32:$ORACLE_HOME/lib32: $ORACLE_HOME/mgw/lib32
For HP, SHLIB_PATH=$ORACLE_HOME/jdk/jre/lib/PA_RISC: $ORACLE_HOME/jdk/jre/lib/PA_RISC/classic: $ORACLE_HOME/rdbms/lib32:$ORACLE_HOME/lib32: $ORACLE_HOME/mgw/lib32
For Linux, LD_LIBRARY_PATH=$ORACLE_HOME/jdk/jre/lib/i386: $ORACLE_HOME/jdk/jre/lib/i386/server: $ORACLE_HOME/rdbms/lib:$ORACLE_HOME/lib: $ORACLE_HOME/mgw/lib
For Solaris 32-bit, LD_LIBRARY_PATH= $ORACLE_HOME/jdk/jre/lib/sparc:$ORACLE_HOMErdbms/lib: $ORACLE_HOME/lib:$ORACLE_HOME/mgw/lib
For Solaris 64-bit, LD_LIBRARY_PATH_32= $ORACLE_HOME/jdk/jre/lib/sparc: $ORACLE_HOME/rdbms/lib32:$ORACLE_HOME/lib32: $ORACLE_HOME/mgw/lib32
For Tru64, LD_LIBRARY_PATH=$ORACLE_HOME/jdk/jre/lib/alpha: $ORACLE_HOME/jdk/jre/lib/alpha/classic: $ORACLE_HOME/rdbms/lib:$ORACLE_HOME/lib: $ORACLE_HOME/mgw/lib
Any additional libraries needed for the Oracle Messaging Gateway agent to access non-Oracle messaging systems, for example, the MQSeries libraries, must be included in LD_LIBRARY_PATH
for Linux, Solaris, and Tru64, SHLIB_PATH
for HP, and LIBPATH
for AIX.
Set the CLASSPATH
environment variable to include the following:
Oracle Messaging Gateway classes:
[ORACLE_HOME]/mgw/classes/mgw.jar
JDK internationalization classes:
[ORACLE_HOME]/jdk/jre/lib/i18n.jar
JDK runtime classes: [ORACLE_HOME]/jdk/jre/lib/rt.jar
Oracle JDBC classes: [ORACLE_HOME]/jdbc/lib/classes12.zip
Oracle internationalization classes:
[ORACLE_HOME]/jdbc/lib/nls_charset12.zip
SQLJ classes
[ORACLE_HOME]/sqlj/lib/translator.zip
[ORACLE_HOME]/sqlj/lib/runtime12.zip
Any additional classes needed for Oracle Messaging Gateway to access non-Oracle messaging systems, for example, MQSeries classes
Set the log_directory
and log_level
parameters. (Optional)
Set the oracle_sid parameter in the mgw.ora
file to avoid providing the database connect string when configuring the Oracle Messaging Gateway connection information.
Perform the following steps to configure the Oracle Messaging Gateway.
Create a database user with MGW_ADMINISTRATOR_ROLE
privileges to perform Oracle Messaging Gateway administrative functions. For example,
CREATE USER <admin_user> IDENTIFED BY <admin_password>;GRANT CONNECT, RESOURCE to <admin_user>;
GRANT MGW_ADMINISTRATOR_ROLE to <admin_user>;
Create a database user with MGW_AGENT_ROLE
privileges to establish the gateway agent's connection with the database. For example,
CREATE USER <agent_user> IDENTIFED BY <agent_password>;
GRANT CONNECT, RESOURCE to <agent_user>;
GRANT MGW_AGENT_ROLE to <agent_user>;
After the agent user is created, the administration user uses
to configure Oracle Messaging Gateway with the user name, password, and database connect string used by the gateway agent to connect back to database. Use the agent user name and password that you just created. The database connect string parameter can be set to either a new service name in
DBMS_MGWADM.DB_CONNECT_INFOtnsnames.ora
file or null. If null, the oracle_sid
parameter must be set in mgw.ora
file. For example,
connect <admin_user>/<admin_password>
exec dbms_mgwadm.db_connect_info('<agent_user>','<agent_password>', '<agent_database>');
Use DBMS_MGWADM.DB_CONNECT_INFO
. For example,
connect <admin_user>/<admin_password>;
exec dbms_mgwadm.db_connect_info ('<agent_user>
', '<agent_password>', '<agent_database>';
Note: For Oracle9i 9.2.0.1.0, always specify a non-null value for the database connect string parameter when calling .
|
The following procedure verifies the installation and includes a startup and shutdown of the Oracle Messaging Gateway agent.
Start the database listener for the external procedure and other listeners for the regular database connection.
Test the database connect string for the gateway agent user using the following command:
sqlplus
agent_user/agent_password@agent_database
.
If successful, the gateway agent will connect to the database.
Connect as admin_user
and call DBMS_MGWADM.STARTUP
to start the gateway agent.
Use the MGW_GATEWAY
view to see AGENT_STATUS
change to RUNNING
, and AGENT_PING
change to REACHABLE
.
Connect as admin_user
and call DBMS_MGWADM.SHUTDOWN
.
Use the MGW_GATEWAY
view to see AGENT_STATUS
change to NOT_STARTED
.
This section provides further information on installing additional Oracle products to your initial installation and on using Oracle Configuration Assistants.
Configuration Assistants are usually run during an installation session, but can also be run in stand-alone mode. As with Oracle Universal Installer, each of these assistants can also be run non-interactively using a response file. The following Oracle configuration assistants are described in this section:
Using Oracle Enterprise Manager Configuration Assistant
See Also: "Non-Interactive Installation and Configuration" for more information on using response files with the product assistants. |
When Oracle Net Server or Oracle Net Client is installed, Oracle Universal Installer automatically launches Oracle Net Configuration Assistant.
If you choose to do a separate Oracle9i Client installation, then Oracle Net Configuration Assistant will automatically create a configuration that is consistent with selections made during the installation. The Installer will automatically run the Oracle Net Configuration Assistant to set up a net service name in the local naming file found in the $ORACLE_HOME/network/admin
directory of the client installation.
After installation is complete, a more detailed configuration can be accomplished using the Oracle Net Configuration Assistant by using the following command in the $ORACLE_HOME/bin
directory:
$ netca
Note: If you create a database using the Database Configuration Assistant during or after the installation, it will automatically update the network configuration information necessary for the new database. |
See Also: "Oracle Net Configuration Assistant" for more information on how Oracle Net Configuration Assistant configures your installation.Oracle9i Net Services Administrator's Reference for more information on the use and configuration of Oracle Net. |
If you installed Oracle9i software to use an existing database from a prior software version and chose not to upgrade the database during the installation, then you must upgrade the database before mounting it.
Start Database Upgrade Assistant by using the dbua
command located in the $ORACLE_HOME/bin
directory:
$ dbua
For help with the Database Upgrade Assistant, use the -help
or -h
command line parameters with dbua
.
$ dbua -help
See Also: Oracle9i Database Migration for more information on upgrade. |
Oracle Database Configuration Assistant can create a default or customized database, configure an existing database to use Oracle products, or generate a set of shell and SQL scripts that you can inspect, modify, and run at a later time.
See Also: "Database Configuration Assistant" for more information on the types of databases that you can install with Database Configuration Assistant. |
Start Database Configuration Assistant by using the dbca
command located in the $ORACLE_HOME/bin
directory:
$ dbca
For help with the Database Configuration Assistant, use the -help
or -h
command line parameters with dbca
.
$ dbca -help
Oracle Corporation recommends running the utlrp.sql
script after creating, upgrading, or migrating a database. This script recompiles all PL/SQL modules that may be in an INVALID
state, including packages, procedures, and types. This step is optional, but recommended so that the cost of recompilation is incurred during the installation rather than at a later time.
Start SQL*Plus by using the following command:
$ SQLPLUS /NOLOG
Connect to the database with the SYS
account by using the following command:
SQL> CONNECT SYS/
PASSWORDAS SYSDBA
In the preceding command, the initial default for PASSWORD
is
. This password must be changed before using the database.
CHANGE_ON_INSTALL
Start the database (if necessary) by using the following command:
SQL> STARTUP
Run the utlrp.sql
script by using the following command:
SQL> @$ORACLE_HOME/rdbms/admin/utlrp.sql
Oracle Enterprise Manager Configuration Assistant is used to configure the local Oracle Management Server. You can configure the local Oracle Management Server by creating, upgrading or deleting an Oracle Enterprise Manager repository.
If you installed the Oracle Management Server, Oracle Enterprise Manager Configuration Assistant automatically starts at the end of the installation to guide you through configuration.
See Also: Oracle Enterprise Manager Configuration Guide for more information on post-installation steps for Oracle Enterprise Manager. |
If you install additional Oracle products after the initial installation, use the Database Configuration Assistant to configure your database for the new products. The database must be running.
Start up the Database Configuration Assistant by using the dbca
command located in the $ORACLE_HOME/bin/
directory:
$ dbca
Select Configure Database option in a database.
Select the appropriate database SID from the list of those detected by the Database Configuration Assistant.
Choose the products you wish to enable from the list and click Finish.
Execute privileges will be granted to PUBLIC
for all of the products and packages.
If you intend to install Oracle Text after your initial installation, ensure that you have at least 10 MB of disk space for the data dictionary and include the $ORACLE_HOME/ctx/lib
directory in the LD_LIBRARY_PATH environment variable.
Your database must include tablespaces specific to Oracle Text data. Verify that tablespaces exist to serve as default and temporary tablespaces for Oracle Text. Oracle Text uses the DRSYS tablespace for its default and temporary tablespaces. If tablespaces for Oracle Text do not exist or you do not want to use the default DRSYS tablespace, then create additional tablespaces before installation. Verify that tablespaces exist to serve as default and temporary tablespaces for Oracle Text.
See Also: Oracle9i ConText to Oracle Text Migration for more information on migrating text.Oracle9i SQL Reference for more information on creating tablespaces. |
The following sections contain post-installation instructions for Oracle Real Application Clusters:
To start the Oracle Real Application Clusters Global Services Daemon automatically when the computer is restarted, log in as the root
user and add a line similar to the following in the /etc/init.d/dbora
system startup file:
su - oracle -c $ORACLE_HOME/bin/gsd
See Also: Oracle9i Real Application Clusters Setup and Configuration for more information on Oracle Real Application Clusters. |
If the installation fails before completion and you have to re-install, click Yes on all Installer windows that ask "Do you want to re-install name of a product?" The remote copy operation to the other nodes ignores the products for which you declined the re-install.
This section describes how to inspect the kernel configuration for Oracle Real Application Clusters. Configurations do not work if you fail to configure the Watchdog Timer device and the raw device.
For the Watchdog Timer device, the typical causes of failures are:
The Watchdog Timer device driver is not configured.
The Watchdog Timer device driver is not loaded to the kernel.
The margin time is incorrect.
The CONFIG_WATCHDOG_NOWAYOUT
parameter is not set.
If you configured the Watchdog Timer device as a module, load the Watchdog Timer device driver to the kernel. This is required after every boot. For example, enter:
# /sbin/insmod softdog soft_margin=10
Add the insmod
command lines in the Linux startup script (For example, /etc/rc.d/rc.local
) to prevent losing the module after restarting the system.
Run the wdttest1
command to check the first three possible configuration failures. If the configuration is correct, it reboots the system after the margin time has passed. For example, enter:
# wdttest1 passed: 1 sec passed: 2 sec . . . passed: 60 sec . . . Reboot occured
Run the wdttest2
command to check the CONFIG_WATCHDOG_NOWAYOUT
parameter. If the configuration is correct, it reboots the system after the margin time has passed. For example:
# wdttest2 passed: 1 sec passed: 2 sec . . . passed: 60 sec . . . Reboot occured
If Oracle9i software is already installed and a database is created, then verify that the COMPATIBLE initialization parameter is set to 9.2.0.1.0 or higher.
All precompiler configuration files are located in the $ORACLE_HOME/precomp/admin
directory. Table 4-7 describes the Oracle Precompilers.
Note: You cannot use Oracle Precompilers independently of Oracle9i to convert embedded PL/SQL. |
Table 4-7 Oracle Precompilers
Precompilers | Configuration Files | See Also |
---|---|---|
Pro*C/C++ |
pcscfg.cfgThis file installs without content and can be configured with any text editor according to the site-specific requirements. |
Programmer's Guide to the Pro*C/C++ Precompiler for more information on configuring the pcscfg.cfg file.
|
Pro*COBOL |
pcbcfg.cfgThis file installs without content and can be configured with any text editor according to the site-specific requirements. |
Pro*COBOL Programmer's Guide for more information on configuring the pcbcfg.cfg file.
|
Pro*COBOL18 |
pcccob.cfgThis file installs without content and can be configured with any text editor according to the site-specific requirements. |
Pro*COBOL Programmer's Guide for more information on configuring the pcccob.cfg file.
|
Pro*FORTRAN |
pccfor.cfgThis file installs without content and can be configured with any text editor according to the site-specific requirements. |
FORTRAN documentation for more information on configuring the pccfor.cfg file.
|
SQL*Modula Ada |
pmscfg.cfgThis file installs without content and can be configured with any text editor according to the site-specific requirements. |
SQL*Module for Ada Programmer's Guide for more information on configuring the pmscfg.cfg file.
|
You must perform a number of configuration procedures for Oracle Workflow. These include the following:
Edit the init.ora
parameter file
Install and configure a web server
Verify your base URL
Set up the Oracle Workflow Monitor and HTML help
See Also: Oracle Workflow Server Installation Notes, Oracle Workflow Client Installation Notes, and Oracle Workflow Guide for more information on these procedures. |
Recovery Manager is an automated recovery utility that is installed as part of Oracle9i database. It stores information in a recovery catalog in a separate Oracle9i database. This second Oracle9i database should be installed on a separate computer to provide maximum fault resistance.
Note: If the installation and maintenance of a second Oracle9i database is impractical, then you can use Recovery Manager in a restricted mode without a recovery catalog. If you do this, be aware that the size of your control file is limited by the size of the minimum data block size your operating system permits. This size varies from platform to platform. Most UNIX systems have a minimum data block size of 2048 bytes, which imposes a 20000 block size limit. |
To create a recovery catalog, perform the following steps:
Install Oracle9i database on a separate computer from any other Oracle9i system and create a database for the recovery catalog.
Create a typical, preconfigured database with Database Configuration Assistant. The default database is adequate for the recovery catalog.
Create a user in the recovery catalog database to be the RECOVERY_CATALOG_OWNER
.
As the RECOVERY_CATALOG_OWNER
user, run the createCatalog
command at the Oracle Recovery Manager prompt.
See Also: Oracle9i Database Backup and Recovery Guide for more information on Recovery Manager. |
The following sections provides database administrative information on the default starter database, as well as basic information on Oracle database usernames, passwords and file locations.
Passwords for all Oracle system administration roles and privileges except SYS, SYSTEM and SCOTT are expired upon installation. You are required to unlock user names and reset passwords for all other administrative user names before using them. You can do this through Database Configuration Assistant.
During installation, click the Password Management button from the Database Configuration Assistant window to change passwords immediately after installation.
There is an alternative method to reset your passwords. If you unlock the password but do not specify a new password, then the database user's account will be unlocked and the password will remain expired until the next time when you login as that user. SQL*Plus will then prompt you for a new password.
To change a password and unlock an account manually, review the list of default administrative user names, passwords and functions in Table 4-8, "Default User Names and Passwords ". Select a user, and unlock and reset the password by using the following commands:
Start SQL*Plus and log in as SYSDBA by using the following commands:
$ sqlplus /nolog SQL> connect / as sysdba
Change the password by using the following command:
SQL> ALTER USER
USERNAMEIDENTIFIED BY
PASSWORDACCOUNT UNLOCK
The alter statement will both reset the password and unlock the account.
Note: If you want unauthenticated access to your data via HTTP, unlock the ANONYMOUS user account. |
See Also: Oracle9i Database Administrators' Guide for more information on unlocking passwords after installation and for information on Oracle security procedures and best security practices.Oracle Enterprise Manager Administrator's Guide for more information on using Oracle Security Manager or Oracle DBA Studio to change passwords. |
All databases created by Database Configuration Assistant include the SYS, SYSTEM, and DBSNMP user names and passwords. In addition, Oracle Corporation provides several other administrative users. Unlock users and reset passwords before using these administrative accounts.
Note: To unlock administrative user passwords after installation, click the Password Management button in the Database Assistant window. |
Table 4-8 describes the default user names and passwords.
Table 4-8 Default User Names and Passwords
The Oracle9i software identifies a database by its global database name. A global database name consists of the database name and network domain. The global database name uniquely distinguishes a database from any other database in the same network domain. Enter a global database name when prompted in the Database Identification window during Oracle9i database installation.
Example 4-1 Example of a Global Database Name
sales.us.acme.com
In the preceding example, sales
is the name of the database. The database name portion is a string of no more than 8 characters that can contain alphanumeric, and additional characters. The database name is also assigned to the DB_NAME parameter in the init.ora
file.
us.acme.com
is the network domain in which the database is located. Together, the database name and the network domain make the global database name unique. The domain portion is a string of no more than 128 characters that can contain alpha, numeric, period (.), and additional characters. The domain name is also assigned to the DB_DOMAIN parameter in the init.ora
file.
The DB_NAME parameter and the DB_DOMAIN name parameter combine to create the global database name value assigned to the SERVICE_NAMES parameter in the init.ora
file.
The System Identifier (SID) identifies a specific Oracle9i database instance. The SID uniquely distinguishes a database from any other database on the same computer. Multiple Oracle home directories enable you to have multiple, active Oracle databases on a single computer. Each database requires a unique SID and database name.
The SID name comes from the value entered for the SID prefix in the Database Identification window. The SID can be up to 8 alphanumeric characters in length.
For example, if the SID and database name for an Oracle database are ORCL, each database file is in the $ORACLE_BASE/oradata/ORCL
directory and the initialization parameter file is in the $ORACLE_BASE/admin/ORCL/pfile
directory. The ORCL
directory is named after the DB_NAME parameter value.
An Oracle9i database is divided into smaller logical areas of space known as tablespaces. Each tablespace corresponds to one or more physical data files. Data files contain the contents of logical database structures such as tables and indexes. You can associate each data file with only one tablespace and database.
Note: Unless you specify different names with Database Configuration Assistant, the tablespaces and data files described in the following table are automatically included in the Custom database. |
Table 4-9 describes the tablespaces in the Oracle9i database located in the $ORACLE_BASE/oradata/
db_name
directory.
Table 4-9 Tablespaces and Data Files
See Also: Oracle9i Database Concepts and Oracle9i Database Administrator's Guide for more information on tablespaces and data files. |
The starter database contains the init.ora
database initialization parameter file. It is a text file that contains a list of preconfigured instance configuration parameters. The file is located in the $ORACLE_BASE/admin/
db_name/pfile
directory, and must exist for an instance to start. No edits are required to this file in order to use the starter database.
See Also: Oracle9i Database Administrator's Guide and Oracle9i Database Reference for more information on database-specific initialization parameters and their default values. |
The starter database and the custom database each contain three redo log files located in the $ORACLE_BASE/oradata/
db_name
directory. Table 4-10 describes the redo log files.
Table 4-10 Redo Log files
See Also: Oracle9i Database Backup and Recovery Guide for more information on redo log files. |
The starter database contains three control files. These files are located in the $ORACLE_BASE/oradata/
db_name
directory. The files control01.ctl
, control02.ctl
, and control03.ctl
are automatically included in the Custom database. Oracle Corporation recommends that you keep at least three control files (on separate physical drives) for each database and set the CONTROL_FILES initialization parameter to list each control file. Table 4-11 describes the database control files.
Table 4-11 Database Control Files
See Also: Oracle9i Database Administrator's Guide for more information on setting this initialization parameter value. |
Rollback segments record the old values of data changed by each transaction whether or not the transaction has been committed. Every database contains one or more rollback segments. Use rollback segments to provide read consistency, roll back transactions, and recover the database. Table 4-12 describes the rollback segments of the starter database.
Table 4-12 Rollback Segments
Rollback Segment | Contained in this Tablespace... | Used by |
---|---|---|
SYSTEM | SYSTEM | SYS |
RB_TEMP | SYSTEM (private) | SYS |
RB1 through RB16 are a pool of rollback segments that any instance, requiring a rollback segment, can use. | RBS | PUBLIC |
The data dictionary is a protected collection of tables and views containing reference information on the database, its structure, and its users. The data stored in the dictionary includes the following:
Names of the Oracle database users
Privileges and roles granted to each user
Names and definitions of schema objects including tables, views, snapshots, indexes, clusters, synonyms, sequences, procedures, functions, and packages
Integrity constraints
Space allocation for database objects
Auditing information, such as who accessed or updated various objects
See Also: Oracle9i Database Concepts and Oracle9i Database Reference for more information on data dictionary. |
A complete removal of Oracle software requires you to remove any installed databases with the Database Configuration Assistant and deconfigure Oracle Net with the Oracle Net Configuration Assistant. Removal requires that you:
Run Database Configuration Assistant and Oracle Net Configuration Assistant before you use the Installer to remove the Oracle software
Stop Oracle Internet Directory Control Utility and Oracle Internet Directory Monitor
Change APACHE account primary GID to the group that owns the oraInventory
directory
A partial removal of Oracle software does not necessarily require you to run either Database Configuration Assistant or Oracle Net Configuration Assistant.
Note: You cannot remove Oracle9i JVM separately from other products installed with Oracle9i. Removing Oracle9i JVM causes Oracle Universal Installer to remove Oracle9i and other products dependent on Oracle9i JVM from your system. |
Start the Database Configuration Assistant by using the dbca
command located in the $ORACLE_HOME/bin/
directory:
$ dbca
The Welcome window appears. Click Next.
Select Delete a Database from Operations window.
Select the instance for the database that you want to delete.
Click Finish. Verify that you want to delete the database in the window that appears.
Because you can only delete one database at a time, you must repeat these steps for each database that you want to delete.
After you have run the Database Configuration Assistant, run the Oracle Net Configuration Assistant in remove mode by starting the assistant from the command line with the /deinst
parameter:
$ netca /deinst
To remove Oracle Internet Directory Services:
Stop the Oracle Internet Directory Server by using the following command:
$
oidctl
connect=
net_service_name
server=oidldapd \instance=
server_instance_number
stop
In the preceding command, net_service_name
parameter is the network connection to the Oracle9i Database Server which stores the directory data and server_instance_number
is the instance number which appears in the Server List tab of Oracle Directory Manager.
Stop the Oracle Internet Directory Monitor by using the following command:
$ oidmon connect=
net_service_name
stop
Follow the procedures in "Removing an Oracle Database with Database Configuration Assistant" to remove the Oracle9i database configured with Oracle Internet Directory.
See Also: Oracle Internet Directory Administrator's Reference for more information on removing Oracle Internet Directory. |
Log in as root
user.
Change the APACHE account primary GID group to the group that has ownership of the oraInventory
directory. Typically, this is the ORAINVENTORY group.
Log out as root
user.
Perform the following steps to remove Oracle Label Security. Do not perform a DROP USER CASCADE on the LBACSYS account to remove Oracle Label Security.
Connect as SYSDBA.
Execute the $ORACLE_HOME/lbac/admin/droplbasys.sql
script to delete the LBACSYS account.
Use the Oracle Universal Installer to remove Oracle Label Security.
Perform the following steps to remove Oracle Messaging Gateway.
Shut down the Oracle Messaging Gateway.
Remove any user-created queues whose payload is a Oracle Messaging Gateway canonical type. (For example, MGW_BASIC_MSG_T
)
Log in to SQL*Plus as user SYS
as SYSDBA
.
Run the catnomgw.sql
script, located in the $ORACLE_HOME/mgw/admin
directory.
Run Oracle Universal Installer to uninstall Oracle Messaging Gateway.
Use the backup copies of listener.ora
and tnsnames.ora
to return the files to their previous state.
Start the Installer as described in "Oracle Universal Installer".
Click on the Deinstall Products button on the Welcome window or the Installed Products... button available on any Installer window. The Inventory window appears, listing the installed products.
In the Inventory window, select any product(s) to remove.
Click on the Remove button.
If an installation fails, you must remove files that the Installer created during the attempted installation. Perform the following steps to remove the files:
Start the Installer as described in "Oracle Universal Installer".
Click on the Deinstall Products button on the Welcome window or the Installed Products... button available on any Installer window. The Inventory window appears, listing installed products.
In the Inventory window, select any product(s) to remove.
Click on the Remove button.
To complete the cleanup, you must manually remove the Oracle home directory. This is necessary because the Oracle Universal Installer might copy files to your system but fail to register them during the unsuccessful installation. This step is not necessary if removal deletes all files from the Oracle home directory.
|
![]() Copyright © 1996, 2002 Oracle Corporation All rights reserved |
|