Oracle8i Installation Guide Release 8.1.5 for Intel Linux A74958-01 |
|
You must perform certain post-installation steps and configure Oracle8i after completing the OUI session. This chapter describes the required steps, as well as some optional ones.
root
User
Log in as the root
user and perform the following tasks:
root.sh
Script
The OUI creates the root.sh
script in the ORACLE_HOME directory and prompts you to run the root.sh
script. Log in as the root
user and run the script to set the necessary file permissions for Oracle products, and perform other root
-related configuration activities:
# cd $ORACLE_HOME # ./root.sh
The root.sh
script prompts you to confirm the environment before it performs any actions. If you need to reset the environment for any reason, terminate the root.sh
script. If you terminate the script, you must re-run it. You do not need to run the OUI again. Select the [OK] button after root.sh
runs successfully to continue the installation. Select the [OK] button on the OUI screen after the root.sh
script runs successfully to continue the installation.
Depending on the products you installed, messages are displayed to inform you of the progress of root.sh
. You might also be prompted for user names and be given additional instructions.
You will be asked by the root.sh
script to specify the local bin
directory. If this directory does not already exist, root.sh
creates it for you.
If necessary, create additional Linux accounts with your system administration utility (useradd
). Each DBA on the system must have an account in the OSDBA group.
Sites using Oracle8i configured in a way similar to a United States NCSC C2 or European ITSEC E3 security evaluation configuration must perform this task to ensure the integrity of the Oracle software installation. This task is optional if security is not an issue.
Query the data dictionary view using SQL*Plus to list the accounts in the default database. Accounts in the database are based upon the products chosen in the OUI.
sql> SELECT username from dba_users;
You should delete accounts that you do not need.
Many files must be protected to prevent unauthorized access to secure data. The recommended file modes and ownership are as follows:
oracle
account should own all common system files and installation files.
Table 4-1 summarizes the directory and file permissions for different types of files. Note that these permissions are the default values and should not be changed.
Automating database startup is optional, but automatic shutdown is recommended, because it guards against improper shutdown of the database.
The dbshut
and dbstart
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:
Check the documentation for the |
This process must be completed for every new database that you want to have automated startup and shutdown. To set up the dbstart
and dbshut
scripts so that they are called at system startup, use the following procedure:
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.
sid
in the first field. Change the last field for each to Y.
dbora
in the /etc/init.d
directory (if it does not already exist).
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.5
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
dbora
by entering:
# ln -s /etc/init.d/dbora /etc/rc0.d/K10dbora # ln -s /etc/init.d/dbora /etc/rc2.d/S99dbora
oracle
User
Perform the following tasks as the oracle
user.
Update the startup files of the oracle
account and the Linux accounts of Oracle users.
Set the following environment variables in the .profile
or .login
file of the oracle
account before using Oracle8i products. Table 4-2 shows the OUI default values (which you might have modified). 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
The classpath is used for Java functionality. CLASSPATH is different for various products. Refer to your product documentation for more information.
Required when using Oracle products that use shared libraries. Set LD_LIBRARY_PATH to include $ORACLE_HOME/lib
.
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
.
Specifies the directory containing the Oracle software for a given release. The OFA-recommended value is $ORACLE_BASE/product/
release. For example: /u01/app/oracle/product/8.1.5.
Specifies the Oracle system identifier, or sid
, which is the name of the Oracle Server instance. Because the sid
is incorporated into many filenames, Oracle Corporation recommends restricting it to no more than four characters to avoid filename problems on heterogeneous systems.
Verify that the search path includes all of the following:
$ORACLE_HOME/bin
, /bin
and /usr/bin
bin
directory, /usr/local/bin
, created automatically by the OUI
Environment Variable | Default Setting |
---|---|
CLASSPATH |
There is no default setting, and CLASSPATH must include the following:
Note: |
LD_LIBRARY_PATH |
There is no default setting for LD_LIBRARY_PATH. Set it to include |
ORACLE_BASE |
|
ORACLE_HOME |
|
ORACLE_SID |
There is no default setting for ORACLE_SID. If you do not remember the value you entered, you can find it listed in the OUI log file. |
PATH |
There is no default setting for PATH. Make sure the new |
oraenv
(coraenv
) Script
You have option of using the oraenv
or coraenv
scripts to set a common environment for Oracle users. Follow the instructions below for a single-instance or multiple-instance configuration for the oraenv
script, or the coraenv
script if you are running the C shell.
On a single-instance machine, include the following commands to initialize the oraenv
(coraenv
) file at the end of the .profile
or .login
file of the oracle
account.
For the Bourne or Korn shell:
ORAENV_ASK=NO
. /usr/bin/oraenv
For the C shell:
set ORAENV_ASK = NO
source /usr/bin/coraenv
unset ORAENV_ASK
On a multiple-instance machine, include a list of instance names and the commands necessary to initialize the oraenv
(coraenv
) file at the end of the startup file of the oracle
account. The value of ORACLE_SID you defined before the OUI session is the default instance name.
For the Bourne or Korn shell:
#!/bin/sh SIDLIST=\Qawk -F: '/^[^#]/{printf "%s",$1} '/etc/oratab\Q
echo "SIDs on this machine are $SIDLIST"
ORAENV_ASK=
. /usr/bin/oraenv
For the C shell:
set sidlist=\Qawk -F: '/^[^#]/{printf"%s",$1} '/etc/oratab\Q
echo "SIDs on this machine are $sidlist"
unset ORAENV_ASK sidlist
source /usr/bin/coraenv
To create the same environment for all Oracle users, update each user startup file to include the following:
ORACLE_HOME/bin
in the PATH statement
. /usr/bin/oraenv
oratab
File
If you have created a database manually instead of using the Database Configuration Assistant (DBCA), you must ensure the system configuration is reflected in the /etc/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. The DBCA automatically adds an entry for each database it creates.
The Oracle8i release which this manual accompanies includes patches that must be applied to Oracle8i or other products. Patches can be found on the Product CD-ROM in the /
cd_rom_mount_point
/patch
directory. Review the README file included with each patch for installation instructions.
The default init
sid.ora
file shipped with the distribution is located in the $ORACLE_BASE/admin/
sid/pfile
directory. A template init
sid
.ora
file is also included 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. The size settings are relative to each other, but do not represent an empirical size of the database.
init
sid
.ora
Parameters
When you create a database using DBCA your init
sid.ora
parameters are automatically set. You can manually modify the initialization parameters in the init
sid.ora
file with a Linux text editor. Activate the modified init
sid.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.
To bring rollback segments online automatically with database startup, you must uncomment the rollback_segments
lines in the init
sid
.ora
file.
For example, change:
#rollback_segments = (r0, r1, r2, r3)
to:
rollback_segments = (r0, r1, r2, r3)
Perform the product-specific steps listed in this section as necessary for your installation. Not all products require post-installation setup.
To access online documentation before you configure your Oracle installation, see the instructions for accessing that documentation. 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 require post-installation steps:
If you intend to install Oracle interMedia Text, ensure you have at least 10 MB of disk space for the data dictionary.
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.
dbassist
, which is located in the following directory:
$ORACLE_HOME/bin/dbassist
Execute privileges will be granted to PUBLIC for all of the options and packages.
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: Recovery Manager can also be used in a restricted mode without a recovery catalog, if the installation and maintenance of a second Oracle8i database is impractical. |
Perform the following steps if you want to create a recovery catalog:
If you choose not to write a custom script to create the database, create the default database with the OUI. The default database is adequate for the recovery catalog.
createCatalog
command at the Recovery Manger prompt.
The configuration files ottcfg.cfg
and pcscfg.cfg
in $ORACLE_HOME/precomp/admin
must be customized for your environment before using Pro*C/C++. See your C compiler documentation to determine how to configure this file.
See Also:
The Programmer's Guide to the ProC/C++ Precompiler for further information on configuring the |
Configuring a complete Oracle network is beyond the scope of this manual, and is covered in detail in the Net8 Administrator's Guide. When the Net8 Server or Net8 Client is installed, the Net8 Configuration Assistant is automatically launched to complete initial configuration of Net8 as follows:
sqlnet.ora
and a listener called listener
with a listening end point that is consistent with any protocol support selections you made. In most cases, this results in listening on protocol TCP/IP using port number 1521. In all but the most complicated environments this will be the only listener you will ever need to configure. The listener will be started automatically by the Net8 Configuration Assistant. If you wish to check the status of the listener following installation you can do so by using the command:
$ lsnrctl status
If the listener is running, the output of the lsnrctl status
command will be similar to the following:
Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=PNPKEY)) STATUS of the LISTENER ------------------------ Alias listener Version TNSLSNR for SVR4: Version 8.1.5.0.0 - Production ...
If the listener is not running, start it up:
$ lsnrctl start listener
root
and reserve a port for the Net8 listener by making the following entry in the /etc/services
file:
listener 1521/tcp #Net8 listener
If you create a database using the Database Configuration Assistant during or after installation, it will automatically update the listener configuration with any necessary configuration information for this new database. This file can then be distributed to any client machines to connect to the Oracle8i database.
If you choose to complete a separate Oracle8i client install, the Net8 Configuration Assistant will automatically create a profile that is consistent with any selections you made during installation. The OUI will automatically run the Net8 Easy Configuration wizard which assists you in configuring a net service name in the Local Naming file located in the $ORACLE_HOME/network/admin
directory of your client installation.
After installation is complete more detailed configuration can be accomplished using the Net8 Assistant by executing:
$ netasst
Net8 Easy Configuration is also available by executing:
$ netec
tnsnames.ora
file, append its contents to existing tnsnames.ora
files in the $ORACLE_HOME/network/admin
directories of client machines.
$ sqlplus username/password@service_name
At this point you have established network connectivity over TCP/IP. For more advanced network configuration, refer to the Net8 Administrator's Guide.
Oracle Names Server is installed automatically with Net8. If you want to configure your network to use Oracle Names Server, complete the following:
/etc/hosts
file of all network nodes.
Perform the following steps after installing any protocol:
root
user and add a line similar to the following in the system startup file:
su - oracle -c "lsnrctl start"
tnsnames.ora
file).
$ lsnrctl start
$ lsnrctl status
oracle
user, start SQL*Plus, then test the connection with a loopback:
$ sqlplus username/password@service_name
Documentation is can be installed in HTML, or PDF (Adobe Portable Document Format, which requires Acrobat Reader), or both formats. Intel-Linux-specific documentation files are installed from the Oracle8i CD-ROM. Generic documentation files are installed from the Online Generic Documentation CD-ROM. The location of the documentation files is determined according to the following rules:
$ORACLE_BASE/doc
directory.
$ORACLE_HOME/doc
directory.
To access the documentation, open either the index.htm
or products.htm
file. The index.htm
file requires a frames-enabled browser. The products.htm
file does not a require a frames-enabled browser.
You can also access documentation directly from the CD-ROM.
See Also:
Information on accessing documentation directly from CD-ROM is contained in the CD-ROM insert. |