SEP sesam Extension for Oracle 8i/9i/10g/11g on Linux, Unix and Windows
(C)SEP AG
Copyright 1999-2011 by SEP AG. All Rights reserved.
Any form of reproduction of the contents or parts of this manual is allowed only with the express written permission from SEP AG. When compiling and designing user documentation SEP AG uses great diligence and attempts to deliver accurate and correct information. However, SEP AG cannot issue a guarantee for the contents of this manual.
Contents |
The SEP sesam online module for Oracle/RMAN provides a Media Management Library (MML) for saving data from Oracle databases to a SEP sesam Server. The API of MML is specified by Oracle to give the Recovery Manager (RMAN) access to a backup application. SEP sesam will manage the whole backup media handling like loading the correct tapes, whereas RMAN decides which data has to be saved or recovered. This document provides information about the Sesam specific parts of Oracle backups. It’s not an Oracle/RMAN administration guide. Please read the documentation of RMAN to get familiar with Oracle’s backup and recovery concepts and tools.
Please consult the Oracle administration guide. For installation we assume the following environment. Please adjust the paths and variables according to your needs.
http://download.sep.de/extensions/databases/oracle/
If the database log mode show ARCHIVELOG then a Oracle RMAN online backup is possible. If not the archivelog mode has to be switched on. For that the database has to be shutdown, first:
Again, you can check the archivelog mode using the appropriate SQL command above.
Starting with Oracle 9i the Oracle kernel commonly must not be re-linked any more.
The database has to be restarted to activate the new DLL.
By using the Oracle program sbttest you can test complete functionality of libobk.so, without interfering with running databases. libobk.so is only available since Oracle version 10g under Windows. For this following environment variables have to be set:
If the test fails, you will find the SEP sesam specific trace messages in sbttest.log.
This chapter only explains the SEP sesam specific parts of Oracle RMAN. It’s not a RMAN administration guide. It’s absolutely necessary to consult the Oracle RMAN documentation for setting up a correct backup strategy. The following example script performs a full database backup:
The script is doing the following:
1. Login to target database (database to be saved)
2. Open a backup channel (For parallel backups more channels can be allocated)
| SESAM SERVER | Name of the SEP sesam Server (*) |
| SESAM JOB | Task name for the Oracle backup (*). The task has to be created on SEP sesam Server before, with task type Oracle. |
| SESAM POOL | Poolname (*) |
| SESAM DRIVE | Drive number |
| SESAM TAPE SERVER | Name of SEP sesam Tape Server |
| SOB TRACE | Tracelevel (max. 3) |
| SOB LOGFILE | name of logfile. If no logfile is specified trace messages
are written to sbtio.log |
| SBT_LIBRARY=<path> | Path to the SBT Library File (libobk.so) on the System. Use on AIX Systems if the Library cannot be found automatically. |
3. include 100 files in one saveset
4. Release the backup channel
When this script is executed with rman cmdfile ora full.rman, the following appears:
The archive <OS> sob 3.0.x.x.tgz file contains the SEP module sbc Oracle client. This module is a shell script, which may be called from SEP sesam as a SEP sesam Command Event. Please take a look into SEP sesam Administration documentation for further information about SEP sesam command events. This wrapper script creates a RMAN script with the given arguments and executes RMAN with the generated script.
Examples:
1. At first shutdown the database with the oracle management tools
2. Mount the database
3. Restore the database
4. Open the new incarnation of the database
1. At first shutdown the database by oracle management tools
2. Mount the database
3. Restore the database
4. Open the new incarnation of the database
In case of an Oracle backup the SEP sesam Server works as media manager. Oracle RMAN starts the backup and sends the data to the destination referenced to the given parameter of the SEP sesam environment.
Example with following values:
It's useful to start the command sbc_oracle_rman.sh on the Oracle server remote by a Sesam schedule. To configure this, you have to create a schedule first:
After <OK>, right mouse click and select New command event.
In the dialog click the button <List> and the next window will be opened. To create e new command choose the button <New> and fill all fields with the appropriate values.
Then commit the command definition with the button <Save>. Then assign this command to the command event by button <UseIt>. The dialog below shows the complete definition. Commit the configuration with <OK>.
As default the SEP sesam server has no rights to execute commands remote on a backup client (here the Oracle server). To give the appopriate permissions for needed command it is neccessary to copy the file sesam_cmdusers_allow from the template directory of the Sesam Client to the /etc driectory of the client (Oracle server). After that adapt the file with appropriate values. You have to set the user who has to execute the command and behind it separated by a blank the full qualified command.
Example:
Edit the file and enter the following line (referencing to the example above):
For further reading on the topic we recommend the following books:
Our sales team would be happy to assist you!
Browse and discover videos by SEP.