Simulate Tape Library With Rman

The proposal of this post is show how to test tape channels. I’ll simulate the tape using disk. Rman include the SBT_LIBRARY param that you need set to “oracle.disksbt” for probes. I recommend you not use it for production enviroments. The first of all you need configure a filesystem or directory where write the backup, let me create a simple directory;

cd /tmp 
mkdir SimulateTapeLibrary

Of course, it is a not good idea use /tmp but let me use it for this example. Now we can backup the database like using tape library. Look at the next code;

Rman> connect target /
RUN {
  ALLOCATE CHANNEL TAPE_CHANNEL TYPE 'SBT_TABPE'
  PARMS="SBT_LIBRARY=oracle.disksbt, ENV=(BACKUP_DIR=/tmp/SimulateTapeLibrary)";
  BACKUP DATAFILE 1 FORMAT ='%U';
}

Alternatively, you can use a permanent configuration command to set the Oracle library;

CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' PARMS 'SBT_LIBRARY=oracle.disksbt, ENV= (BACKUP_DIR=/tmp/SimulateTapeLibrary)';

HTH – Antonio NAVARRO

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s