Setting Environment Variables; Connecting To The Database - Novell ZENWORKS LINUX MANAGEMENT 7.3 IR2 - ADMINISTRATION GUIDE 02-12-2010 Administration Manual

Table of Contents

Advertisement

RMAN automates backup and recovery, but the User-managed method requires keeping track of all
database files and backups. Therefore, because of its robustness and simplified database
administration abilities, RMAN is a highly recommended tool for backup operations. The
subsequent sections of this document explain the steps for using RMAN to perform a complete
database backup and recovery.

9.3.2 Setting Environment Variables

1 Set the following environment variables to the appropriate values before using RMAN:
ORACLE_HOME: The directory where the Oracle software is installed.
For Oracle 9i R2: Set the variable as
For Oracle 10g R2: Set the variable as
db_1
CLASSPATH: The paths to the libraries installed by Oracle.
For Oracle 9i R2: Set the variable as
product/9ir2/JRE:/oracle/opt/oracle/product/9ir2/jlib:/oracle/opt/
oracle/product/9ir2/rdbms/jlib:/oracle/opt/oracle/product/9ir2/
network/jlib
For Oracle 10g R2: Set the variable as
product/10.2/db_1/JRE:/opt/oracle/product/10.2/db_1/jlib:/opt/oracle/
product/10.2/db_1/rdbms/jlib:/opt/oracle/product/10.2/db_1/network/
jlib
PATH: The Oracle installation's bin directory.
For Oracle 9i R2: Set the variable as
For Oracle 10g R2: Set the variable as
db_1/bin
You can set the environment variables similarly for Oracle 11g database.

9.3.3 Connecting to the Database

You can use either of the following methods to connect to the Oracle database being used for the
Data Store:
Start RMAN at the operating system command line without connecting to a database, by
issuing the RMAN command without any connection options:
$ rman
RMAN> CONNECT TARGET /
Start the RMAN executable at the operating system command line while connecting to the
database:
$ rman TARGET /
IMPORTANT: If you have installed Oracle 10g or Oracle 11g database on a SLES 10 device,
make sure to run the rman executable from the
If the database is already mounted or open, RMAN displays output similar to the following:
ORACLE_HOME=/opt/oracle/product/9ir2
ORACLE_HOME=/opt/oracle/product/10.2/
CLASSPATH=$CLASSPATH:/opt/oracle/
CLASSPATH=$CLASSPATH:/opt/oracle/
PATH=$PATH:/opt/oracle/product/9ir2/bin
PATH=$PATH:/opt/oracle/product/10.2/
$ORACLE_HOME/bin/rman
ZENworks Object Store and Data Store Maintenance
directory.
93

Advertisement

Table of Contents
loading

This manual is also suitable for:

Zenworks linux management 7.3 ir2

Table of Contents