RMAN : Como emular una libreria de SBT a Disco

RMAN : Como emular una libreria de SBT a Disco

El otro día me tope con una situación en donde migre una base de datos, pero al migrarla todavía apuntaba a respaldos obsoletos que se encontraban en SBT, pero como ya estaba en el nuevo servidor, no podía borrar esta información, así que una manera de hacerlo es emular que tienes una librería de SBT, esto funciona para borrar o para hacer un respaldo, cualquiera de los dos, espero y te sirva este tip y lo uses para sacarle algún provecho.

oracle@servidor1.oracleenespanol.blogspot.com [TESTDB1] /home/oracle
oracle $ rman target /
Recovery Manager: Release 11.2.0.3.0 - Production on Wed Aug 1 06:10:02 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: TESTDB (DBID=1229390655)
RMAN> @backup_tape.rmn
RMAN>
RMAN> run {
2> allocate channel t1 device type 'sbt'
3> parms='SBT_LIBRARY=oracle.disksbt, ENV=(BACKUP_DIR=/backup)';
4> backup database;
5> }

using target database control file instead of recovery catalog
allocated channel: t1
channel t1: SID=31 device type=SBT_TAPE
channel t1: WARNING: Oracle Test Disk API

Starting backup at 01-AUG-12
channel t1: starting full datafile backup set
channel t1: specifying datafile(s) in backup set
input datafile file number=00002 name=+DATA/testdb/datafile/sysaux01.dbf
input datafile file number=00001 name=+DATA/testdb/datafile/system01.dbf
input datafile file number=00004 name=+DATA/testdb/datafile/users01.dbf
input datafile file number=00003 name=+DATA/testdb/datafile/undotbs01.dbf
input datafile file number=00005 name=+DATA/testdb/datafile/example01.dbf
input datafile file number=00006 name=+DATA/testdb/datafile/APEX_1930613455248703.dbf
channel t1: starting piece 1 at 01-AUG-12
channel t1: finished piece 1 at 01-AUG-12
piece handle=03nhhf26_1_1 tag=TAG20120801T061014 comment=API Version 2.0,MMS Version 8.1.3.0
channel t1: backup set complete, elapsed time: 00:02:37
channel t1: starting full datafile backup set
channel t1: specifying datafile(s) in backup set
including current control file in backup set
including current SPFILE in backup set
channel t1: starting piece 1 at 01-AUG-12
channel t1: finished piece 1 at 01-AUG-12
piece handle=04nhhf73_1_1 tag=TAG20120801T061014 comment=API Version 2.0,MMS Version 8.1.3.0
channel t1: backup set complete, elapsed time: 00:00:01
Finished backup at 01-AUG-12
released channel: t1

RMAN> **end-of-file**
Rene Antunez
[email protected]
No Comments

Sorry, the comment form is closed at this time.