Oracle8i Installation Guide
Release 3 (8.1.7) for Sun SPARC Solaris

Part Number A85471-01

Library

Product

Contents

Index

Go to previous page Go to next page

4
Post-Installation

After completing the Oracle Universal Installer session, you must perform certain post-installation steps and configure Oracle8i. This chapter describes the required steps, as well as some optional ones.

User Passwords

Oracle Corporation recommends that you change the password for user names immediately after installation.

To change a password:

  1. Start SQL*Plus:

    $ sqlplus
    
  2. Connect with the user name and password that you want to change:

    Enter user-name: username/password
    
  3. Change the password:

    SQL> ALTER USER USERNAME IDENTIFIED BY PASSWORD;
    

    See Also:

    Oracle Enterprise Manager Administrator's Guide for information on using Oracle Security Manager or Oracle DBA Studio to change the password 

Configuration Tasks to Perform as the root User

Log in as the root user and perform the following tasks:

Create Additional UNIX Accounts

Verify Database File Security

Automate Database Startup and Shutdown (Optional)

Change Group Membership of the Apache Account

Create Additional UNIX Accounts

If necessary, create additional UNIX accounts with a system administration utility such as admintool or useradd. Each DBA user on the system must be a member of the OSDBA group.

Verify Database File Security

If you configure Oracle8i in a way similar to a United States NCSC C2 or European ITSEC E3 security evaluation configuration, verify database file security to ensure the integrity of the Oracle software installation. This task is optional if security is not an issue.

Many files must be protected to prevent unauthorized access to secure data. The file privileges and recommended ownership are as follows:

Table 4-1, "Access Permissions on Oracle Directories and Files", 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
Directories/Files  Permissions  Comments 

All database, redo log, and control files (extensions for these files are typically.dbf,.log, and.ctl

640

rw-r---- 

To maintain discretionary access to data, all databases, redo logs, and control files must be readable only by the oracle account and oinstall group. 

$ORACLE_HOME/bin/ 

751

rwxr-x--x 

Must be writable by the oracle software owner, and executable by all users. 

The oracle executable, and the following network executables: $ORACLE_HOME/bin/oracle and
$ORACLE_HOME/bin/dbsnmp 

6751

rws-r-s--x

 

The 6 sets the setuid bit and the setgid bit so the executables run as the oracle user and DBA group, regardless of who executes them. 

All other executables. 

751

rwxr-x--x 

Must be writable by the oracle account and executable by all users. 

$ORACLE_HOME/lib/ 

755

rwxr-xr-x 

The directory is readable, writable, and executable by the owner, readable and executable by all other users. 

All files under $ORACLE_HOME/
lib/
 

644

rw-r--r-- 

The files are readable and writable by the owner, read-only for all other users. 

$ORACLE_HOME/rdbms/log  

751

rwxr-x--x 

Restricts access to files in the directory to the oracle account and oinstall group. 

Product subdirectories such as $ORACLE_HOME/sqlplus or $ORACLE_HOME/rdbms 

751

rwxr-x--x 

Restricts access to log files to the oracle account and oinstall group. 

Files in $ORACLE_HOME/
sqlplus
or $ORACLE_HOME/
rdbms
 

644

rw-r--r-- 

The files are readable and writable by the owner, read-only for all other users. 

$ORACLE_HOME/
network/trace
 

777

rwxrwxrwx

or

730

rwx-wx--- 

777 allows broad access to view and create trace files during development. Use 730 in a production environment to ensure that only the oracle account and members of the oinstall group have access to trace files. 

All files under product admin directories, like
$ORACLE_HOME/rdbms
/admin
and
$ORACLE_HOME/sqlplus/
admin
 

644

-rw-r--r-- 

SQL scripts should typically be run as the SYS user. 

Automate Database Startup and Shutdown (Optional)

You can configure your system to automatically start Oracle databases when your system starts up and to shut down Oracle databases when your system shuts down. Automating database startup is optional, but automatic shutdown is recommended because it guards 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 dbstart automatically start up databases sid1, sid2, and sid3, and dbshut shut down only databases sid1 and sid2. You can, however, specify that dbshut shut down a set of databases while dbstart is not used at all. To do this, include the dbshut entry in the shutdown file but omit the dbstart entry from the system startup files.

See Also:

For a description of system startup and shutdown procedures, check the init command in your Sun SPARC Solaris documentation. 

This process must be completed for every new database that you want to configure for automated startup and shutdown. Perform the following tasks to set up the dbstart and dbshut scripts so that they are called at system startup:

  1. Edit the /var/opt/oracle/oratab file.

    Database entries in the oratab file appear in the following format:

    ORACLE_SID:ORACLE_HOME:{Y|N}
    
    

    where Y or N specifies whether you want the dbstart and dbshut scripts to start up and shut down the database. Find the entries for all the databases that you want to start up. They are identified by the sid in the first field. Change the last field for each to Y.

  2. Create a file named dbora in the /etc/init.d directory (if it does not already exist).

  3. Create entries similar to the following at the end of the dbora file (if they do 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/8.1.7
    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
  4. Link dbora by entering:

    # ln -s /etc/init.d/dbora /etc/rc0.d/K10dbora
    # ln -s /etc/init.d/dbora /etc/rc2.d/S99dbora
    

Change Group Membership of the Apache Account

After installing Oracle8i, the Apache account access to oraInventory needs to be removed in order to protect database security. Perform the following tasks:

  1. Create a new group to which no other group or user has access.

  2. Assign ownership of this group to Apache.

  3. Change the Apache account primary GID group from the one that has ownership of oraInventory (typically oinstall) to the new group name.

Configuration Tasks to Perform as the oracle User

Perform the following tasks as the oracle user.

Update UNIX Account Startup Files

Configuration Environment Variables

Apply Any Required Oracle Patches

Set Initialization Parameters

Update UNIX Account Startup Files

Update the startup files of the oracle account and the UNIX accounts of Oracle users.

Configuration Environment Variables

Set the following environment variables in the .profile or .login file of the oracle account before using Oracle8i products. Table 4-2, "Environment Variable Settings" shows the recommended settings. The settings that you use here should correspond to the settings you 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 


Note:

You should not define environment variables with names that are identical to those used for Oracle processes, for example: CKPT, PMON, and DBWR. 


Table 4-2 Environment Variable Settings
Environment Variable  Recommended Setting 

LD_LIBRARY_PATH 

Set it to include $ORACLE_HOME/lib

ORACLE_BASE 

software_mount_point/app/oracle 

ORACLE_HOME 

$ORACLE_BASE/product/8.1.7 

ORACLE_SID 

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 Installer log file located in
oraInventory_location/logs/installActions.log

The oraInventory_location is defined in /var/opt/oracle/oraInst.loc 

PATH 

Make sure the new $ORACLE_HOME/bin directory is included in the PATH setting. See Chapter 2, "Pre-Installation" for other PATH requirements. 

CLASSPATH 

CLASSPATH must include the following:

JRE_Location/lib, $ORACLE_HOME/jlib, 
$ORACLE_HOME/product/jlib

Note: JRE_Location is defined as $ORACLE_HOME/JRE 

TNS_ADMIN 

Set it to the location of the Net8 configuration files. This variable only needs to be set if Net8 configuration files are not located in one of the default locations. 

TWO_TASK 

Set TWO_TASK to the Net8 connect string alias defined in tnsnames.ora which client software will use by default to connect to a server. 

LD_LIBRARY_PATH

Required when using Oracle products that use shared libraries. Set
LD_LIBRARY_PATH to include $ORACLE_HOME/lib.

ORACLE_BASE

Specifies the directory at the top of the Oracle software and administrative file structure. The OFA-recommended value is:

software_mount_point/app/oracle.

For example:

/u01/app/oracle
ORACLE_HOME

Specifies the directory containing the Oracle software for a given release. The Optimal Flexible Architecture recommended value is:

$ORACLE_BASE/product/release.

For example:

/u01/app/oracle/product/8.1.7.
ORACLE_SID

Specifies the Oracle System Identifier (SID) which is the name of the Oracle Server instance. Because the sid is incorporated into many file names, Oracle Corporation recommends restricting it to no more than four characters to avoid filename problems on different operating systems.

PATH

After installation of Oracle software, the search path should include all of the following:

CLASSPATH

The CLASSPATH variable is used for Java functionality. CLASSPATH is different for various products. Refer to your product documentation for more information. In addition to any pre-existing settings, CLASSPATH must include the following JRE location(s):

$ORACLE_HOME/JRE/lib/rt.jar:$ORACLE_HOME/jlib/<product jar file>:$ORACLE_HOME/product/jlib/<product jar file>

The variable product indicates any product directory in the ORACLE_HOME, such as rdbms or network, where a JRE or file required for Java functionality are located.

TNS_ADMIN

To place the Net8 configuration files in a location other than the default locations (/var/opt/oracle or $ORACLE_HOME/network/admin), set the
TNS_ADMIN environment variable to the directory where Net8 configuration files are located. For example, if tnsnames.ora resides in the /tns directory, set
TNS_ADMIN to /tns.

Oracle products will look for the tnsnames.ora file in the following order:

  1. .tnsnames.ora file in the current user's home directory (Note the dot before the file name).

  2. $TNS_ADMIN/tnsnames.ora

  3. /var/opt/oracle/

  4. $ORACLE_HOME/network/admin/

Check that a tnsnames.ora file exists in one of these locations; otherwise, you may be unable to connect to a database through Net8 using local naming.

TWO_TASK

If you have a Client/Server configuration, you can set TWO_TASK to the net service name of the database where client software will connect by default. When TWO_TASK is set, you do not have to specify the net service name of the database to connect to it with Oracle client software. See the Net8 Administrator's Guide and the Oracle8i Administrator's Reference for Sun SPARC Solaris for more information about net service names.

Initialize the oraenv Script

You have the option of using the oraenv script to set a common environment for oracle users. Follow the instructions below for a single-instance or multiple-instance configuration for the oraenv script.


Note:

The C shell uses the coraenv command instead of the oraenv command. 


Single-Instance Machine

On a single-instance machine, set the environment variable ORACLE_SID in the .profile or .login file of the oracle account followed by these 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
Multiple-Instance Machine

On a multiple-instance machine, include a list of instance names and the commands necessary to initialize the oraenv file at the end of the startup file of the oracle  account.

For the Bourne or Korn shell:

#!/usr/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

For the C shell:

#!/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
Update Other Oracle User Startup Files

To create the same environment for all oracle accounts, update each user startup file to include the following line at the end of the startup file:

Update the oratab File

If you have created a database manually instead of using Oracle Database Configuration Assistant, you must ensure the system configuration is reflected in the /var/opt/oracle/oratab file.

Add an entry for each Server instance on the system in the following format:

ORACLE_SID:ORACLE_HOME:{Y|N}

where Y or N indicates whether you want to activate the dbstart and dbshut scripts. Oracle Database Configuration Assistant automatically adds an entry for each database it creates.

Apply Any Required Oracle Patches

The Oracle8i release, which this manual accompanies, includes patches that must be applied to Oracle8i or other products. Patches can be found on the Oracle8i Release 3 (8.1.7) CD-ROM in the cd_rom_mount_point/patch directory. Review the README file included with each patch for installation instructions.

Set Initialization Parameters

You can change initialization parameters to configure and tune your system for optimal performance. The default initsid.ora file shipped with the distribution is located in the $ORACLE_BASE/admin/sid/pfile directory. A template init.ora file is also in $ORACLE_HOME/dbs. The file contains settings for small, medium, and large databases, with the settings for medium and large databases commented out. The size settings are relative to each other, but do not represent an empirical size of the database.

Modify initsid.ora Parameters

When you create a typical startup database using Oracle Database Configuration Assistant, your initsid.ora parameters are automatically set. You can manually modify the initialization parameters in the initsid.ora with a UNIX text editor. Activate the modified initsid.ora file by shutting down and restarting the database.

Do not use symbolic character representations such as question marks (?) for ORACLE_HOME in parameter files, as they may lead to startup errors.

To bring rollback segments online automatically with database startup, you must uncomment the rollback_segments in the initsid.ora file.

For example, change:

#rollback_segments = (r0, r1, r2, r3)

to:

rollback_segments = (r0, r1, r2, r3)

See Also:

Oracle8i Administer's Reference for Sun SPARC Solaris for information on initsid.ora parameters, and for further information on tuning and configuring initialization parameters. 

Post-Installation for Oracle Products

Perform the product-specific steps as necessary for your installation. Not all products require post-installation setup.

To review online documentation before you configure your Oracle products, see "De-installing Oracle Software". It is not necessary to read product documentation before completing the configuration tasks in this manual, but more sophisticated tuning requires information in the product documentation.

The following products have post-installation steps:

Multi-Threaded Server

Oracle servers configured with Multi-Threaded Server require a higher setting for the initialization parameter SHARED_POOL_SIZE or a custom configuration that uses LARGE_POOL_SIZE. If you installed your server with Oracle Universal Installer, the value of SHARED_POOL_SIZE is set for you automatically by Oracle Database Configuration Assistant. However, if you created a database manually you should raise SHARED_POOL_SIZE in the initsid.ora file. Typically, you should add 1 KB for each anticipated concurrent user.

See Also:

Oracle8i Designing and Tuning for Performance for further information on configuring Multi-Threaded Server. 

Net8

Basic configuration of Net8 is done by Net8 Configuration Assistant when it is invoked by Oracle Universal Installer during installation of Net8. For an explanation of how Net8 Configuration Assistant configures your installation, see "Understanding Net8 Configuration". For information on running Net8 Configuration Assistant as a stand-alone tool, see "Net8 Configuration Assistant".

Verify and complete your initial configuration with the following steps:

  1. Log in as root and reserve a port for the Net8 listener by making the following entry in the /etc/services file:

    listener_name 1521/tcp             #Net8 listener
    
    


    Note:

    1521 is the default port. If you chose a different port when you configured the Net8 listener, specify that port in the /etc/services file. 


  2. Check the status of the listener following installation by using the 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 with the following command:

    $ lsnrctl start listener_name
    
    
  3. 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:

Configuring a complete Oracle network is beyond the scope of this manual and is covered in detail in the Net8 Administrator's Guide


Oracle Configuration Assistants

The following Oracle configuration assistants are described in this section:

These configuration assistants are usually run during an installation session, but can also be run in a stand-alone mode. Like Oracle Universal Installer, each of these assistants can also be run non-interactively using a response file. See "Non-Interactive ("Silent") Installation and Configuration" for information on using response files with the product assistants.

Net8 Configuration Assistant

When the Net8 Server or Net8 Client is installed, the Net8 Configuration Assistant is automatically launched by Oracle Universal Installer.

If you create a database using the Oracle Database Configuration Assistant during or after installation, it will automatically update the Net8 configuration with any configuration information necessary for the new database. Oracle Database Configuration Assistant either registers the database in a supported directory service so that clients can use the directory to connect to the database, or it will create an entry in the local naming file (tnsnames.ora) that can then be distributed to client machines to connect to the database.

If you choose to do a separate Oracle8i Client installation, the Net8 Configuration Assistant will automatically create a profile that is consistent with any selections you made during the installation. The Installer will automatically run the Net8 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, more detailed configuration can be accomplished using the Net8 Configuration Assistant with the following command:

$ netasst

See Also:

See "Understanding Net8 Configuration" for a description of how Net8 Configuration Assistant configures your installation.

For information on the use and configuration of Net8, see the Net8 Administrator's Guide

Oracle Data Migration Assistant

If you have installed Oracle8i to use with an existing database from a prior software release, and you did not choose to upgrade the database during the installation, you need to upgrade or migrate the database before mounting it.

See Also:

The process of migrating a database exceeds the scope of this manual. See Oracle8i Migration for detailed instructions and information. 

Oracle Database Configuration Assistant

Oracle Database Configuration Assistant can create a default or customized database or it can be used to configure an existing database to use Oracle options. The assistant can create the database or present a collection of shell and SQL scripts which you can inspect, modify, and run at a later time. See "Identifying Your Database Environment" for information on the types of databases that you can install using Oracle Database Configuration Assistant.

Start Oracle Database Configuration Assistant with the following command:

$ dbassist

For help with the Oracle Database Configuration Assistant, use the -help or -h command line parameters with dbassist.

$ dbassist -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, types, and so on. This step is optional, but recommended so that the cost of recompilation is incurred during the installation rather than in the future.


Note:

There should be no other data definition language (DDL) statements running on the database while it is running, and packages STANDARD and DBMS_STANDARD must already be valid. 


  1. Start SQL*Plus:

    $ SQLPLUS
    
    
  2. Connect to the database with the SYS account:

    SQL> CONNECT SYS/PASSWORD AS SYSDBA
    
    

    where PASSWORD is CHANGE_ON_INSTALL by default, unless it was changed after installation.

  3. Start the database (if necessary):

    SQL> STARTUP
    
    

    Run the UTLRP.SQL script:

    SQL> @ORACLE_BASE/ORACLE_HOME/RDBMS/ADMIN/UTLRP.SQL
    

Oracle Enterprise Manager Configuration Assistant

Oracle Enterprise Manager Configuration Assistant is a tool that enables you to create, configure, drop, or upgrade the Oracle Enterprise Manager repository.

See Also:

For detailed information about the Oracle Enterprise Manager Configuration Assistant, see the Oracle Enterprise Manager Configuration Guide

Oracle Enterprise Manager

If you installed Oracle Enterprise Manager Server through the Oracle8i Management Infrastructure, Custom installation, or Custom Management Infrastructure types, Oracle Enterprise Manager Configuration Assistant will automatically start at the end of the installation to guide you through repository configuration. If you installed Oracle Enterprise Manager through any other installation type, Oracle Enterprise Manager Configuration Assistant will not start automatically at the end of the installation.

Manually start Oracle Enterprise Manager Configuration Assistant after installation if a repository needs to be created configured, upgraded, or dropped.For information on running Oracle Enterprise Manager Configuration Assistant as a stand-alone tool, see "Oracle Enterprise Manager Configuration Assistant".

See Also:

There are further post-installation steps for Oracle Enterprise Manager that exceed the scope of this manual and are discussed in detail in the Oracle Enterprise Manager Configuration Guide

Oracle Internet Directory

Carry out the following task after installation:

  1. Run cryptupgrd.sh immediately after installation. The script can be found in $ORACLE_HOME/ldap/bin.

    See Also:

    For more information, see the Oracle Internet Directory Administrator's Reference.  

Oracle Options

Configuring the Database for Oracle Options

If you install additional Oracle Options after the initial installation, use Oracle Database Configuration Assistant to configure your database for the options you install.

  1. Start up the Oracle Database Configuration Assistant by executing dbassist, which is located at:

    $ORACLE_HOME/bin/dbassist
    
    
  2. Select [Modify Database].

  3. Select the appropriate database SID from the list of those detected by the Oracle Database Configuration Assistant. The database that you want to modify must already be running.

  4. Choose the options you wish to enable from the list and click the [Finish] button.

Execute privileges will be granted to PUBLIC for all of the options and packages.

Oracle interMedia

If you intend to install Oracle interMedia Text after your initial installation, ensure you have at least 10 MB of disk space for the data dictionary.

For interMedia Text, include $ORACLE_HOME/ctx/lib in the LD_LIBRARY_PATH environment variable.

Your database must include tablespaces specific to interMedia Text data. Verify that tablespaces exist to serve as default and temporary tablespaces for Oracle interMedia Text. Oracle interMedia Text uses the DRSYS tablespace for its default and temporary tablespaces. If tablespaces for Oracle interMedia Text do not exist or you do not want to use the DRSYS tablespace, create additional tablespaces before proceeding.


Note:

There is no upgrade from previous releases of ConText Cartridge to Oracle interMedia Text 8.1. However, there is a migration that can be performed manually. See the Oracle8i ConText to interMedia Text Migration guide for documentation of this process. 


See Also:

Oracle8i SQL Reference for information on creating tablespaces. 

Oracle Parallel Server Management

  1. To start the Oracle Parallel Server Communication Daemon automatically when the machine is rebooted, 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 "opsd log=/tmp/opsd.log"
    
    

    The above entry is optional. The default entry is:

    /tmp/opsdlog
    
    


    Note:

    The following two steps are not necessary if Oracle Database Configuration Assistant was used to create the database 


  2. Determine the node numbers for all nodes of the cluster, by entering:

    $ORACLE_HOME/bin/lsnodes -n
    
    
  3. Create the Oracle Parallel Server configuration file,
    $ORACLE_HOME/ops/opsname.conf, and install a copy to each node.

    This file contains parameters describing the configuration of Oracle Parallel Server instances and related services.

See Also:

The Oracle Parallel Server Setup and Configuration Guide

Oracle Precompilers


Note:

You cannot use Oracle Precompilers independently of Oracle8i to convert embedded PL/SQL. 


Precompiler Configuration File Location

All precompiler configuration files are located in the following location:

$ORACLE_HOME/precomp/admin

Pro*C/C++

The configuration file pcscfg.cfg must be customized for your environment before using Pro*C/C++. This file is installed without content and may be configured with any text editor according to your site-specific requirements.

See Also:

The Programmer's Guide to the Pro*C/C++ Precompiler for information on configuring the pcscfg.cfg file. 

Pro*COBOL

The configuration file pcbcfg.cfg is installed without content and may be configured with any test editor according to your site-specific requirements.

See Also:

The Pro*COBOL Programmer's Guide for information on configuring the pcscfg.cfg file. 

Pro*FORTRAN

The configuration file is pccfor.cfg. This file is installed without content and may be configured with any text editor according to your site-specific requirements.

See Also:

See your FORTRAN77 documentation to determine how to configure this file. 

.

SQL*Module Ada

The configuration file is pmscfg.cfg. This file is installed without content and may be configured with any text editor according to your site-specific requirements.

See Also:

See the SQL*Module for Ada Programmer's Guide for information on how to configure this file. 

Oracle Supported Protocols

Perform the following steps after installing any protocol:


Note:

This procedure fails if the TNS_ADMIN environment variable is not set or if listener.ora is not in one of the default locations (/var/opt/oracle or $ORACLE_HOME/network/admin). 


  1. Verify that you have created and installed the necessary configuration files for the network.

  2. To start the listener automatically when the machine is rebooted, 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 "lsnrctl start"
    
    
  3. If you have a client/server configuration, set the TWO_TASK environment variable on the client machines to the service name for the server (available from the tnsnames.ora file). See "Configuration Environment Variables" for information on setting environment variables.

  4. Start the listener on the server:

    $ lsnrctl start
    
    
  5. Check the listener process:

    $ lsnrctl status
    
    
  6. As the oracle user, start SQL*Plus, to test the connection:

    $ sqlplus username/password@service_name
    

Recovery Manager

Recovery Manager is an automated recovery utility that is installed as part of Oracle8i. It stores information in a recovery catalog in a separate Oracle8i database. This second Oracle8i database should be installed on a separate machine to provide maximum fault resistance.


Note:

If the installation and maintenance of a second Oracle8i database is impractical, Recovery Manager can also be used in a restricted mode without a recovery catalog. 


To create a recovery catalog, perform the following steps:

  1. Install Oracle8i on a separate machine from any other Oracle8i system and create a database for the recovery catalog.

    If you do not to write a custom script to create the database, create a typical, preconfigured database with Oracle Database Configuration Assistant. The default database is adequate for the recovery catalog.

  2. Create a user in the recovery catalog database to be the
    RECOVERY_CATALOG_OWNER.

  3. As the RECOVERY_CATALOG_OWNER, run the createCatalog command at the Oracle Recovery Manager prompt.

    See Also:

    For more detail on Recovery Manager, see the Oracle8i Backup and Recovery Guide. 

Secure Socket Layer

Once the Secure Socket Layer is installed, you must run Net8 Configuration Assistant to properly configure it for your system.

See Also:

For more detail on Secure Socket Layer, refer to the installed documentation Configuring Secure Socket Layer Authentication in the Oracle Advanced Security Administrator's Guide in the generic documentation set. 

Reviewing Installed Starter Database Contents

User Names and Passwords

This section describes the user names and passwords included in the starter database. The SYS, SYSTEM, and DBSNMP user names and INTERNAL alias passwords in the following table are automatically included in all databases created by Oracle Database Configuration Assistant.

User Name  Password  Description  See Also 

CTXSYS  

CTXSYS 

CTXSYS is the Oracle interMedia Text user name with CONNECT, DBA, and RESOURCE database roles.  

Oracle8i interMedia Text Reference 

DBSNMP  

DBSNMP 

DBSNMP includes the CONNECT, RESOURCE, and SNMPAGENT database roles. Run catnsnmp.sql if you want to drop this role and user.  

Oracle Intelligent Agent User's Guide 

INTERNAL  

ORACLE

 

INTERNAL is used for performing database administration tasks, including starting up and shutting down a database.

Note: INTERNAL is not a true user name; it is an alias for the SYS user name (see below) and SYSDBA privilege.

The password is required only for users who did not install the Oracle8i database. The user who installed the Oracle8i database is not prompted to enter a password when connecting as INTERNAL. 

Oracle8i Administrator's Guide 

MDSYS  

MDSYS

 

MDSYS is the Oracle Spatial and interMedia Audio, Video, Locator, and Image administrator user name. 

Oracle Spatial User's Guide and Reference

Oracle8i interMedia Locator User's Guide and Reference  

MTSSYS  

MTSSYS 

MTSSYS is the user name under which the Oracle Service for MTS runs. 

Using Microsoft Transaction Server With Oracle8 

ORDPLUGINS

 

ORDPLUGINS 

ORDPLUGINS is the Oracle interMedia Audio and Video user name with the CONNECT and RESOURCE roles. ORDPLUGINS allows non-native plug-in formats for one session. 

Oracle8i interMedia Audio, Image, and Video User's Guide and Reference 

ORDSYS  

ORDSYS 

ORDSYS is the Oracle interMedia Audio, Video, Locator, and Image user name and the Oracle Time Series and Oracle Visual Information Retrieval administrator user name with CONNECT, JAVAUSERPRIV, and RESOURCE database roles.  

Oracle8i Time Series User's Guide

Oracle8i Visual Information Retrieval User's Guide and Reference

Oracle8i interMedia Audio, Image, and Video User's Guide and Reference 

OUTLN  

OUTLN 

OUTLN includes the CONNECT and RESOURCE database roles, and supports plan stability. Plan stability allows you to maintain the same execution plans for the same SQL statements. OUTLN acts as a place to centrally manage metadata associated with stored outlines. 

Oracle8i Concepts

Oracle8i Designing and Tuning for Performance 

SYS

 

CHANGE_ON_INSTALL 

SYS is used for performing database administration tasks. SYS includes the following database roles:

    AQ_ADMINISTRATOR_ROLE
    AQ_USER_ROLE
    CONNECT
    CTXAPP
    DBA
    DELETE_CATALOG_ROLE
    EXECUTE_CATALOG_ROLE
    EXP_FULL_DATABASE
    HS_ADMIN_ROLE
    IMP_FULL_DATABASE
    JAVA_ADMIN
    JAVADEBUGPRIV
    JAVAIDPRIV
    JAVAUSERPRIV
    OEM_MONITOR
    RECOVERY_CATALOG_OWNER
    RESOURCE
    SELECT_CATALOG_ROLE
    SNMPAGENT
    TIMESERIES_DBA
    TIMESERIES_DEVELOPER

 

Oracle8i Administrator's Guide 

SYSTEM  

MANAGER 

SYSTEM is used for performing database administration tasks. SYSTEM includes the AQ_ADMINISTRATOR_ROLE and DBA database roles. 

Oracle8i Administrator's Guide 

SCOTT  

TIGER 

SCOTT includes the CONNECT and RESOURCE database roles. 

Oracle8i Administrator's Guide 

Database Identification

The Oracle8i database is identified by its global database name, which consists of the database name and network domain in which the database is located. The global database name uniquely distinguishes a database from any other database in the same network domain. You create a global database name when prompted in the Database Identification window during Oracle8i database installation. The global database name takes the form:

database_name.database_domain

For example:

sales.us.acme.com 

Where...  Is... 

sales 

The name you give your database. The database name portion is a string of no more than 8 characters that can contain alpha, numeric, and additional characters. The database name is also assigned to the DB_NAME parameter in the init.ora file. 

us.acme.com 

The network domain in which the database is located, making 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 (value sales) and DB_DOMAIN name parameter (value us.acme.com) combine to create the global database name value assigned to the SERVICE_NAMES parameter (value sales.us.acme.com) in the init.ora file.

The System Identifier (SID) identifies a specific Oracle8i instance that references the database. The SID uniquely distinguishes a database from any other database on the same computer. Multiple Oracle homes enable you to have multiple, active Oracle databases on a single computer. Each database requires a unique SID and database name.

The SID name is taken from the value you entered for the database name in the Database Identification window, although you had the opportunity to change it. The SID can be up to 64 alphanumeric characters in length.

For example, if the SID and database name for an Oracle database are ORCL, each database file is located in the ORACLE_BASE/oradata/ORCL directory and the initialization parameter file is located in the $ORACLE_BASE/admin/ORCL/pfile directory. The directory ORCL is named after the DB_NAME parameter value.

Tablespaces and Datafiles

An Oracle8i database is divided into smaller logical areas of space known as tablespaces. Each tablespace corresponds to one or more physical datafiles. Datafiles contain the contents of logical database structures such as tables and indexes. A datafile can be associated with only one tablespace and database.


Note:

Unless you specified different names with Oracle Database Configuration Assistant, the tablespaces and datafiles described in the following table are also automatically included in the Custom database. 


The tablespaces in the Oracle8i database contain the following types of datafiles located in the $ORACLE_BASE/oradata/<db_name> directory:

Tablespace  Datafile  Contains... 

SYSTEM  

system01.dbf 

The data dictionary, including definitions of tables, views, and stored procedures needed by the Oracle database. Information in this area is maintained automatically. The SYSTEM tablespace is present in all Oracle databases. 

USERS  

users01.dbf 

Your application data. As you create and enter data into tables, you fill this space with your data. 

TEMP  

temp01.dbf 

Temporary tables and/or indexes created during the processing of your SQL statement. You may need to expand this tablespace if you are executing a SQL statement that involves a lot of sorting, such as ANALYZE COMPUTE STATISTICS on a very large table, or the constructs GROUP BY, ORDER BY, or DISTINCT. 

RBS  

rbs01.dbf 

Rolled back transactions that fail to complete normally. You may need to expand this tablespace if you have long-running or high-data-volume transactions. 

INDX  

indx01.dbf 

Indexes associated with the data in the USERS tablespace. 

DRSYS 

dr01.dbf 

Oracle interMedia text-related schema objects. 

TOOLS 

tools01.dbf 

Nothing. This datafile is created for use if the user wants to install any third-party or Oracle tools/products. 


Note:

If you choose to create a new repository and accept the default settings when running Oracle Enterprise Manager Configuration Assistant, a tablespace named OEM_REPOSITORY and a datafile named oem.repository.ora are also created. 


See Also:

  • The "Tablespaces and Datafiles" chapter of Oracle8i Concepts

  • The "Managing Tablespaces" and "Managing Datafiles" chapters of the Oracle8i Administrator's Guide

 

Initialization Parameter File

The starter database contains one database initialization parameter file located in the $ORACLE_BASE/admin/<db_name>/pfile directory:

Initialization Parameter File  Description 

init.ora 

The parameter file init.ora must exist for an instance to start. A parameter file is a text file that contains a list of instance configuration parameters. The starter database init.ora file has preconfigured parameters. No edits are required to this file in order to use the starter database. 

See Also: Oracle8i Administrator's Guide and Oracle8i Reference for Oracle8i database-specific initialization parameters and their default values:  

Redo Log Files

The starter database contains three redo log files located in the $ORACLE_BASE/oradata/<db_name> directory:


Note:

The redo logs redo01.log, redo02.log, and redo03.log are also automatically included in the Custom database. 


Database Files  Disk Size  Description 

redo01.log

redo02.log

redo03.log

 

1 MB

1 MB

1 MB 

Redo log files hold a record of all changes made to data in the database buffer cache. If an instance failure occurs, the redo log files are used to recover the modified data that was in memory.

Redo log files are used in a cyclical fashion. For example, if three files constitute the online redo log, the first file is filled, then the second file, and then the third file. The first file is then re-used and filled, the second file is re-used and filled, and so on.  

See Also:

Oracle8i Backup and Recovery Guide 

Control Files

The starter database contains three control files located in the $ORACLE_BASE/oradata/<db_name> directory:

Control Files  Description 

control01.ctl

control02.ctl

control03.ctl 

A control file is an administrative file required to start and run the database. The control file records the physical structure of the database. For example, a control file contains the database name, and the names and locations of the database's datafiles and redo log files. 


Note:

The files control01.ctl, control02.ctl, and control03.ctl are also 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.  


See Also:

Oracle8i Administrator's Guide for information on setting this initialization parameter value. 

Rollback Segments

Rollback segments record the old values of data changed by each transaction (whether or not committed). Every database contains one or more rollback segments, which are portions of the database that record the actions of transactions in the event that a transaction is rolled back. Rollback segments are used to provide read consistency, to roll back transactions, and to recover the database.

The starter database contains the following rollback segments:

Rollback Segment  Contained in this Tablespace...   Used by 

SYSTEM 

SYSTEM 

SYS 

RB_TEMP 

SYSTEM (private) 

SYS 

RB1 through RB16 

RBS 

PUBLIC (a pool of rollback segments that any instance requiring a rollback segment can use) 

Data Dictionary

The data dictionary is a protected collection of tables and views containing reference information about the database, its structures, and its users. The data stored in the dictionary includes the following:

De-installing Oracle Software

A complete de-installation of Oracle software requires you to remove any installed databases with the Oracle Database Configuration Assistant and de-configure Net8 with the Net8 Configuration Assistant. Both assistants must be run before you use the Installer to completely de-install Oracle software. The Oracle Internet Directory Control Utility and Oracle Internet Directory Monitor must be stopped before de-installation of Oracle Internet Directory. In addition, before beginning de-installation, the Apache account primary GID must be changed to the group that owns oraInventory. A partial de-installation of Oracle software does not necessarily require you to run either Oracle Database Configuration Assistant or Net8 Configuration Assistant.

Changing the Apache Account GID for De-Installation

  1. log on as root.

  2. Change the Apache account primary GID group from the Apache account group to the group that has ownership of oraInventory (typically oinstall).

  3. log off as root.

De-installation of an Oracle Database with Oracle Database Configuration Assistant

  1. Start the Oracle Database Configuration Assistant

    $ dbassist
    
    
  2. From the initial screen, select "Delete a Database."

  3. Click [Next].

  4. Select the instance for the database that you want to delete.

  5. Click [Finish]. Verify that you want to delete the database in the windows that appear.

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 Oracle Database Configuration Assistant, run the Net8 Configuration Assistant in de-install mode by invoking it at the command line with the /deinst parameter:

$ netca /deinst

De-installation of Oracle Internet Directory

To deinstall Oracle Internet Directory Services:

  1. Stop the Oracle Internet Directory Server:

    $ oidctl connect=<net_service_name> server=oidldapd instance=<server_instance_number> stop

    where <net_service_name> is the network connection to the Oracle Internet Directory Server and <server_instance_number> is the instance number; this number appears in the Server List tab of Oracle Directory Manager.

  2. Stop the Oracle Internet Directory Monitor

    $ oidmon stop

See Also:

For more information, see the Oracle Internet Directory Administrator's Reference.  

De-installation of Oracle Software with Oracle Universal Installer

  1. Start the Installer as described in "Oracle Universal Installer".

  2. Click the [De-install Products] button on the "Welcome" dialog box or the [Installed Products...] button available on any Installer screen. The "Inventory" dialog box appears, listing installed products.

  3. In the "Inventory" dialog box, select any product(s) to be de-installed, then click the [Remove] button.


Go to previous page Go to next page
Oracle
Copyright © 1996-2000, Oracle Corporation.

All Rights Reserved.

Library

Product

Contents

Index