Rman WIth Large_pool
Hi ALL,
I read, Oracle suggest to use Large_pool for Rman BAckups, so we configured the Database with Large Pool and its working Fine.
BUt My question is, if we are not configure the large Pool, then with memory oracle will use for RMAN.
If its shared_pool, then kindly tell me which memory part in shared Pool will use by RMAN.
Regards
S.Senthil Kumar
where are you backup going ?? disk or tape ??
here is some more info...if going to tape
Allocation of Tape Buffers
If you backup to or restore from an sbt device, then by default the database allocates four buffers for each channel for the tape writers (or reads if doing a restore). The size of these buffers is platform dependent, but is typically 256K. This value can be changed using the ALLOCATE or SEND command using the PARMS and the BLKSIZE option.
RMAN allocates the tape buffers in the SGA if I/O slaves are being used, or the PGA otherwise.
If you use I/O slaves, then set the LARGE_POOL_SIZE initialization parameter to set aside SGA memory dedicated to holding these large memory allocations. This prevents RMAN I/O buffers from competing with the library cache for SGA memory. If I/O slaves for tape I/O were requested but there is not enough space in the SGA for them, slaves are not used, and a message appears in the alert log.
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmtunin.htm#BRADV170
Similar Messages
-
How to restore a table using RMAN with previous backup ?
Hi everyone,
we have to restore a table from 1 week previous backup using RMAN.
Could you show me how to restore a table using RMAN with previous full backup.
please Help me out.
Thanks
Info > oracle 10g, OS: AIX5LHi,
first of all you must have all the archivelogs since you want to recover your table from the previous backups.
anyways if you want to recover your table then you need to perform incomplete recovery to the point where you loss the table for that you need to restore and recover your database.you likely to loose all the transcation which occurs to the point where you you loose your table.
thanks.. -
Hello All,
The disk failure caused our production data on the disk to be resotred with the backup data available and recovered through RMAN with cotrolfile , and no catalog DB is configured.
I had the restored the spfile and control file then recovered the database,
startup nomount;
RESTORE SPFILE FROM ' path ' ;
Shutdown immediate;
startup nomount
Restore controfile from autobackup;
restore database;
[AT POINT , A MESSAGE PROMPTED LIKE " failur of restored command - some targets not found" (thinking may be few archives are not found, i proceeded to incomeplete recovery of DB) ]
recover database;
Finished reocvery .
Now in the Grid control i see that 60 blocks of a particular datafile are corrupted and needs recovery. Do i need to get the data file resotred again and recover it or any simple way to recover this data file
When i perform the block recovery , it says recovery failed and when i run the data file recovery it succeeds. Please provide you inputs to recover the database as it is production BI database and pretty critical to our client.
Thanks for your valuable time in advance.
Regards,
Ran G.These is a common problem if the object are created due to NOLOGGIN option. If you check most of the object which are facing block corruption is indexes .
Use the below query to check the objects :
It will map each block from v$database_block_corruption to either a segment or if the block is free.
$ sqlplus / as sysdba
set pagesize 2000
set linesize 250
SELECT e.owner, e.segment_type, e.segment_name, e.partition_name, c.file#
, greatest(e.block_id, c.block#) corr_start_block#
, least(e.block_id+e.blocks-1, c.block#+c.blocks-1) corr_end_block#
, least(e.block_id+e.blocks-1, c.block#+c.blocks-1)
- greatest(e.block_id, c.block#) + 1 blocks_corrupted
, null description
FROM dba_extents e, v$database_block_corruption c
WHERE e.file_id = c.file#
AND e.block_id <= c.block# + c.blocks - 1
AND e.block_id + e.blocks - 1 >= c.block#
UNION
SELECT s.owner, s.segment_type, s.segment_name, s.partition_name, c.file#
, header_block corr_start_block#
, header_block corr_end_block#
, 1 blocks_corrupted
, 'Segment Header' description
FROM dba_segments s, v$database_block_corruption c
WHERE s.header_file = c.file#
AND s.header_block between c.block# and c.block# + c.blocks - 1
UNION
SELECT null owner, null segment_type, null segment_name, null partition_name, c.file#
, greatest(f.block_id, c.block#) corr_start_block#
, least(f.block_id+f.blocks-1, c.block#+c.blocks-1) corr_end_block#
, least(f.block_id+f.blocks-1, c.block#+c.blocks-1)
- greatest(f.block_id, c.block#) + 1 blocks_corrupted
, 'Free Block' description
FROM dba_free_space f, v$database_block_corruption c
WHERE f.file_id = c.file#
AND f.block_id <= c.block# + c.blocks - 1
AND f.block_id + f.blocks - 1 >= c.block#
order by file#, corr_start_block#;
Below oracle support note will help you :
ORA-1578 / ORA-26040 Corrupt blocks by NOLOGGING - Error explanation and solution (Doc ID 794505.1)
The Gains and Pains of Nologging Operations (Doc ID 290161.1)
SQL> select d.NAME as DBF_NAME, t.NAME as TS_NAME, d.UNRECOVERABLE_CHANGE# as NOLOG_CHNG#, to_char(d.UNRECOVERABLE_TIME, 'Dy DD-Mon-YYYY HH24:MI:SS') as NOLOG_TIME from V$DATAFILE d join V$TABLESPACE t on d.TS# = t.TS# order by t.NAME;
Thanks,
gssdba.wordpress.com -
Running rman with virtual tape speed too low(500KB/s approx)
Hey guys, I run rman with mhvtl. but the backup speed is too low(500kB/s).
the mhvtl debugging prints indicate that the block size is 64kB and the scsi command is running synchronous.
does any one know how to speed up this backup operation?<smiley image='anim_crazy.gif'/>
Thanks.
<b>my system:</b>
linux kernel 2.6.18
mhvtl 0.18.17
oracle10
obtool 10.2
<b>rman configure:</b>
RMAN> show all;
using target database control file instead of recovery catalog
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/backup1/ctl_%F';
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 2 BACKUP TYPE TO BACKUPSET;
CONFIGURE DEVICE TYPE 'SBT_TAPE' BACKUP TYPE TO BACKUPSET PARALLELISM 1;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT '/backup1/backup_%U';
CONFIGURE CHANNEL 2 DEVICE TYPE DISK FORMAT '/backup2/backup_%U';
CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' MAXOPENFILES 1 PARMS '';
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/home/oracle/oracle/product/10.2.0/db_1/dbs/snapcf_orcl.f'; # defaultskoczo wrote:What services could i disable?
anything you don't need at startup.
If you disable systemd service from startup, you will lose some kind of functionality, and you should try to figure out yourself whether you need that functionality of not.
If you use pulseaudio (I assume you do, since it looks like you're using gnome), you can safely disable alsa-restore.service and alsa-store.service, as pulseaudio will restore audio levels by itself.
I've masked systemd-vconsole-setup.service myself (disabling isn't enought), since I rarely use virtual console on ttys. I don't have correct keymap on ttys but that's not a big deal for me.
I don't think you need all those @backlight services either. I've personally masked all but one on my system.
e4rat will most likely reduce your start up time greatly, although it's a bit of a hassle to set up.
systemd-readahead might also help, but you should test it for yourself.
I'm also thinking you could probably optimize your initramfs a bit, as 11s is quite long for loading kernel. At least make sure you have 'autodetect' hook enabled in mkinitcpio.conf.
Also you can use lz4hc for compressing initramfs (COMPRESSION="lz4" and COMPRESSION_OPTIONS="-9" in mkinitcpio.conf), which should be faster on decompression than other algorithms.
There are some more tips in arch wiki, if you didn't check it out already -
Deleting old backup's of rman with nocatalog
I am using oracle 8.1.6 on windows 2000 server. I am using rman with nocatalog to backup the database on disk. Now i want to delete the old backup's. Can anyone help me to know on how to perform the above task.
I am very much thankful for ur reply but its not working. Its displaying the below errors
RMAN> report obsolete redundancy=2;
RMAN-03022: compiling command: report
Report of obsolete backups and copies
Type Key Completion Time Filename/Handle
Backup Set 1 19-JUL-08
Backup Piece 1 19-JUL-08 C:\ORACLE\ORA81CM\DATABASE\01JLSK
O3_1_1
Backup Set 2 20-JUL-08
Backup Piece 2 20-JUL-08 C:\ORACLE\ORA81CM\DATABASE\08JLUM
IO_1_1
Backup Set 4 20-JUL-08
Backup Piece 4 20-JUL-08 C:\ORACLE\ORA81CM\DATABASE\0AJLUS
K9_1_1
Backup Set 5 20-JUL-08
Backup Piece 5 20-JUL-08 C:\ORACLE\ORA81CM\DATABASE\0BJLUS
LE_1_1
Datafile Copy 1 16-JUL-08 C:\ORACLE\CONTROL.DBF
RMAN> delete obsolete redundancy = 2;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01005: syntax error: found "obsolete": expecting one of: "expired, script"
RMAN-01007: at line 1 column 8 file: standard input -
Different between normal rman and rman with catalog
Hi all ,
my question is what is the advantage of using rman with catalog server , and how i can making rman backup to protect my database till last transaction
thanksmy question is what is the advantage of using rman with catalog server , and how i can making rman backup to protect my database till last transaction Catalog database/server can register number of target database backup information.
Lets suppose you have 10 databases in your environment, If you want to check each database backup details you have to check in each and every database, where in case of catalog, you just need to connect catalog and you can see all the information from RC_ views.
Its a centralized repository database.
Of course the backup information will hold both the catalog database & target database, When your Retention is high the backup information will stores in controlfile, then there is chance to huge growth in controlfile size which is not good. Also you lost whole Target database then with the help of catalog you can easily find out which is latest backup and easy to restore with that information.
Hope this clears. -
Interface RMAN with BACKUP EXEC
Hi,
I want to backup my database on tape with backup exec but i don't know the parameters to put on init.ora.
ThanksPossibly 2 parameters (depends on the environment, refer to your MML documentation):
RMAN utilizes the LARGE_POOL area of the SGA for allocating
memory for input/output buffers.
The LARGE_POOL is only used if I/O Slaves are specified by one or
both of the initialization parameters DBWR_IO_SLAVES or BACKUP_TAPE_IO_SLAVES.
If DBWR_IO_SLAVES has a non-zero value and/or BACKUP_TAPE_IO_SLAVES is set to TRUE,
then RMAN uses the LARGE_POOL because the I/O Slave Processes must coordinate their
buffer read/writes in a common area. If no value for LARGE_POOL_SIZE is set in the init.ora file,
and if I/O slaves are configured to be used, then RMAN uses the SHARED_POOL for
input and output buffers. This can put severe strain on the Shared Pool,
and should be avoided. This is often indicated by RMAN receiving an ora-4031
error from the target database.
Werner -
How do I move databases using RMAN with minimal downtime ?
How can I do the following using RMAN ?
DB version 10.2.0.4
Redhat 5.2
I am not using an rman catalogIn the past I have moved large databases from 1 server to another with 5 minutes downtime using backups done the old way by putting tablespaces in backup mode and making copies of the datafiles.
I used the following method :
========> Part 1
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE set DATABASE "VPMY" RESETLOGS ARCHIVELOG
MAXLOGFILES 32
MAXLOGMEMBERS 3
....etc
LOGFILE
......... log file names
DATAFILE
... list of datafiles
CHARACTER SET US7ASCII;
========> Part 2
Up until the scheduled downtime, I would copy the archive logs from the production server to the new and run the following to apply the latest archive logs:
RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL;
->AUTO<-
========> Part 3
After applying the last archive log while in restrict mode -
ALTER DATABASE OPEN resetlogs;
My question is, how do I do Part 2 in RMAN. I have managed to duplicate databases and restore databases using rman to a different server, but this obviously only covers the data upto the backup point. How can I do the above parts 1 -3 with downtime of about 5 minutes like I have done using old methods ?
Any help is much appreciated/you should be able to recover as you go with rman as well..
copy the archived logs from A to B and apply them as they come in.
run
set until sequence x thread 1;
recover database;
if you're not opening the database after recovery you can just increment the set until sequence as the logs come in and do a new recovery. -
Integration of RMAN with virtual tape library
OS: Oracle Linux 5.5 UEK (Virtualbox)
Oracle: 11gR2 11.2.0.1 Enterprise + ASM (Virtualbox)
Hello,
I would like to test something about RMAN and writing directly to tape. For this I installed mhvtl, a virtual tape library. The installation was pretty easy. http://sites.google.com/site/linuxvtl2/
RMAN does not recognize any tape in the system.
ORA-19554: error allocating device, device type: SBT_TAPE, device name:
ORA-27211: Failed to load Media Management Library
What I found out is that in order to make backups to a media manager, RMAN must communicate with a media management library, which is a 3rd party library that is not supplied by Oracle. So I guess unless there is a Oracle MML library available for mtx I' out of luck here.
Any ideas? Thanks!
rpm -ivh mhvtl-0.18-13.x86_64.rpm
rpm -ivh mhvtl-0.18-13.src.rpm
cd /usr/src/redhat/SOURCES/
tar zxvf ../SOURCES/mhvtl-2011-01-11.tgz
cd mhvtl-0.18/kernel
make
make install
/etc/init.d/mhvtl start
yum install mtx
The tape library and using it for backup from system seems to work fine:
# mtx status
Storage Changer /dev/changer:4 Drives, 43 Slots ( 4 Import/Export )
Data Transfer Element 0:Full (Storage Element 1 Loaded):VolumeTag = E03001L4
etc.
# mtx load 1
Drive 0 Full (Storage Element 1 loaded)
# tar cf /dev/ntape ./
# tar tvf /dev/ntape
Edited by: Dude on Jan 20, 2011 5:22 PMThanks for the tip!
I installed Oracle Secure Backup Express and spend all afternoon with this strange product, mainly to troubleshoot the installation and setup. I'm not really sure everything works - it's quite a piece of software, as usual.
I ran into a couple of issues that were not mentioned in the installation documentation:
- install sg3_utils
- use obtool to register the server as mediaserver
# sg_map -i -x
/dev/sg9 3 0 1 0 1 /dev/nst0 IBM ULT3580-TD5 550V
/dev/sg10 3 0 2 0 1 /dev/nst1 IBM ULT3580-TD5 550V
/dev/sg11 3 0 3 0 1 /dev/nst2 IBM ULT3580-TD4 550V
/dev/sg12 3 0 4 0 1 /dev/nst3 IBM ULT3580-TD4 550V
/dev/sg13 3 0 9 0 1 /dev/nst4 IBM ULT3580-TD4 550V
/dev/sg14 3 0 10 0 1 /dev/nst5 IBM ULT3580-TD4 550V
/dev/sg15 3 0 11 0 1 /dev/nst6 IBM ULT3580-TD4 550V
/dev/sg16 3 0 12 0 1 /dev/nst7 IBM ULT3580-TD4 550V
/dev/sg17 3 0 0 0 8 STK L700 550V
/dev/sg18 3 0 8 0 8 SPECTRA PYTHON 550V
# obtool
ob> chhost --addrole mediaserver ol55
ob> mkdev -t library -o -a ol55:/dev/sg18 library1
ob> mkdev -t tape -o -a ol55:/dev/sg9 -l library1 -d 1 tape1
RMAN was not happy with it:
ORA-19554: error allocating device, device type: SBT_TAPE, device name:
ORA-27023: skgfqsbi: media manager protocol error
ORA-19511: Error received from media manager layer, error text:
sbt__rpc_connect: Internal error - could not connect to obproxyd (Oracle Secure Backup error: 'bad port name specified (OB SBT proxy manager)').
# cat /usr/tmp/obproxyd.log
2011/01/23.02:11:10 [5431] can't set root privileges; continuing anyway - program isn't stamped setuid-root (OB utilities)
2011/01/23.02:11:10 [5431] can't listen for connections - Operation not permitted
Document ID 396046.1 solution outlines to correct the hostname or mediaserver name. However, this was not the problem. I finally figured that /etc/obproxyd is a symlink to a .wrapper script which points to the actual proxy application. The fix was:
#chmod +s /usr/local/oracle/backup/.etc.linux86_64obproxyd
After this the error changed:
RMAN-03009: failure of backup command on ORA_SBT_TAPE_1 channel at 01/23/2011 02:43:36
ORA-19506: failed to create sequential file, name="3cm2q2an_1_1", parms=""
ORA-27028: skgfqcre: sbtbackup returned error
ORA-19511: Error received from media manager layer, error text:
sbt__rpc_cat_query: Query for piece 3cm2q2an_1_1 failed.
(Oracle Secure Backup error: 'no preauth config found for OS user (OB tools) oracle').
The fix for this error:
https://10.0.0.6, login as 'admin'
Configure->Users->Select Admin->Edit->Preauthorized Access->Add user 'Oracle' (select host and rman)
RMAN> backup database;
Starting backup at 23-JAN-11
using channel ORA_SBT_TAPE_1
channel ORA_SBT_TAPE_1: starting full datafile backup set
channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
input datafile file number=00001 name=/scratch/oradata/test/system01.dbf
input datafile file number=00002 name=/scratch/oradata/test/sysaux01.dbf
input datafile file number=00003 name=/scratch/oradata/test/undotbs01.dbf
input datafile file number=00005 name=/scratch/oradata/test/users02.dbf
input datafile file number=00004 name=/scratch/oradata/test/users01.dbf
channel ORA_SBT_TAPE_1: starting piece 1 at 23-JAN-11
Now it just sits there forever and the log just keeps adding the following lines:
# cat obproxyd.log
2011/01/23.03:00:31 [5662] handle_qsp_msg: received get job state request
2011/01/23.03:00:31 [5662] job id 'admin/5.1'
Strange, backup to tape with 'mtx' and 'tar' works, so the problem might be OSB.
Edited by: Dude on Jan 22, 2011 8:32 PM
I finally got it running. I deleted the current library and drive configuration and used the webtool to configure the other library at /dev/sg17. it was also necessary to use the webtool to load a volume into the drive. Unfortunately I did not note down the steps in details. Maybe next time.
channel ORA_SBT_TAPE_1: starting piece 1 at 23-JAN-11
channel ORA_SBT_TAPE_1: finished piece 1 at 23-JAN-11
piece handle=3im2qc42_1_1 tag=TAG20110123T053042 comment=API Version 2.0,MMS Version 10.2.0.3
channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:03:26
Finished backup at 23-JAN-11
Starting Control File and SPFILE Autobackup at 23-JAN-11
piece handle=c-2036659790-20110123-00 comment=API Version 2.0,MMS Version 10.2.0.3
Finished Control File and SPFILE Autobackup at 23-JAN-11 -
Clone of auxillary database using rman with the source database unavailable
Hi,
Is it possible to clone a database with just the source database's backup pieces. The source database is currently unavailable. The source database backup was taken through rman - nocatalog mode. We have been provided the backup pieces. Any clues on how to go about it?NAME TYPE VALUE
db_file_name_convert string /u34/oracle/data/FRD9, +DG_OAP
PST1/OAPPST1/DATAFILE, /u34a/o
racle/data/FRD9, +DG_OAPPST1/O
APPST1/DATAFILE, /u35/oracle/d
ata/FRD9, +DG_OAPPST1/OAPPST1/
DATAFILE, /u36/oracle/data/FRD
9, +DG_OAPPST1/OAPPST1/DATAFIL
E, /u37/oracle/data/FRD9, +DG_
OAPPST1/OAPPST1/DATAFILE, /u38
/oracle/data/FRD9, +DG_OAPPST1
/OAPPST1/DATAFILE, /u39/oracle
NAME TYPE VALUE
/data/FRD9, +DG_OAPPST1/OAPPST
1/DATAFILE, /u40/oracle/data/F
RD9, +DG_OAPPST1/OAPPST1/DATAF
ILE
log_file_name_convert string /u32/oracle/data/FRD9, +DG_
OAPPST1_AUX1/OAPPST1/ONLINELOG
SQL> -
RMAN with XE10/11 on Linux
Hello,
This site describes the "Oracle Database 11g Editions":
"http://www.oracle.com/us/products/database/product-editions-066501.html"
Express Edition 10g ?
Should it be Express Edition 11g ?
The point
"Server Managed Backup and Recovery
Simplify, automate, and improve backup and recovery performance with Oracle Recovery Manager (RMAN)."
is not marked.
Is RMAN not possible/working on XE?
In the Document "2 Day DBA" the point
"http://docs.oracle.com/cd/E17781_01/server.112/e18804/backrest.htm#CHDFAEJF"
says:
"On Linux: Log in to the Oracle Database XE host computer as a user who is a member of the dba user group. This is typically the oracle user."
This describes the oracle-side backup.sh an restore.sh scripts.
Is it necessary to run all RMAN-Commands as user oracle?
(su - oracle rman....)
Is it necessary to run all SQLPLUS-Commands as user oracle?
(su - oracle sqlplus....)
I'm running with ARCHIVLOG-Mode and backing up my database with archivlog,
controlfile and spfile per cron-job in the root-environment:
$ORACLE_HOME/bin/rman nocatalog <<EOF
spool log to /var/log/rman.log append;
HOST 'date>>/var/log/rman.log';
connect target sys/<password>
run {
backup database plus archivelog;
backup current controlfile;
backup spfile;
delete noprompt obsolete;
HOST 'date>>/var/log/rman.log';
spool log off;
QUIT
EOF
Should this run per cron-job in the oracle-environment?
config of RMAN is:
$ORACLE_HOME/bin/rman nocatalog <<EOF
spool log to /var/log/rman.log append;
connect target sys/<password>
configure retention policy to recovery window of 2 days;
configure default device type to disk;
configure controlfile autobackup on;
spool log off;
QUIT
EOF
If RMAN reported a value with "default" in "show all" then it is not set ?
I'm never had a successful restore/recover on a new machine,
because of restoring the controlefile breaks.
I'm using openSUSE, CentOS and Oracle Linux.
Does anyone had a successful backup on machine1, restore and recover on machine2 with XE?
Best regardsHello,
so let's start again:
ARCHIVLOG is ON
Backup is configured as:
configure retention policy to recovery window of 2 days;
configure default device type to disk;
configure controlfile autobackup on;
Backup is done by:
run {
backup database plus archivelog;
backup current controlfile;
backup spfile;
delete noprompt obsolete;
Backup is reported in rman_list, so i have the DBID.
For restore i tied a script like restore.sh:
(the RMAN-backup of machine 1 is copied in /srv/samba/Archiv)
#!/bin/bash
rm /root/restore.log
touch /root/restore.log
$ORACLE_HOME/bin/rman target sys/******** nocatalog <<EOF
SPOOL LOG TO /root/restore.log APPEND;
SHOW ALL;
CONFIGURE CONTROLFILE AUTOBACKUP OFF;
RUN {
DELETE NOPROMPT BACKUPSET;
DELETE NOPROMPT ARCHIVELOG ALL;
SQL 'ALTER TABLESPACE TABELSPACE1 OFFLINE IMMEDIATE';
SQL 'ALTER TABLESPACE TABELSPACE2 OFFLINE IMMEDIATE';
SHUTDOWN ABORT;
SPOOL LOG OFF;
EOF
tree -phug $ORACLE_FLASH >> /root/restore.log
echo \######################## >> /root/restore.log
echo "delete all directories" >> /root/restore.log
echo \######################## >> /root/restore.log
rm -rf /usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/archivelog/*
rm -rf /usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/autobackup/*
rm -rf /usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/backupset/*
tree -phug $ORACLE_FLASH >> /root/restore.log
mv /usr/lib/oracle/xe/oradata/XE/* /tmp/
echo \####################################### >> /root/restore.log
echo "copy backup to \$ORACLE_FLASH" >> /root/restore.log
echo \####################################### >> /root/restore.log
cp -R /srv/samba/Archiv/* /usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/
tree -phug $ORACLE_FLASH >> /root/restore.log
echo \###################################### >> /root/restore.log
echo "set owner \$ORACLE_FLASH" >> /root/restore.log
echo \###################################### >> /root/restore.log
chown -R oracle:dba /usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/archivelog/*
chown -R oracle:dba /usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/autobackup/*
chown -R oracle:dba /usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/backupset/*
chown -R oracle:dba /usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/onlinelog/*
echo \##################################### >> /root/restore.log
echo "set rights in \$ORACLE_FLASH" >> /root/restore.log
echo \##################################### >> /root/restore.log
cd /usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE
find . -type d -exec chmod 740 '{}' \;
find . -type f -exec chmod 640 '{}' \;
find . -type d -exec chmod 0750 '{}' \;
tree -phug $ORACLE_FLASH >> /root/restore.log
$ORACLE_HOME/bin/rman target sys/******** nocatalog <<EOF
SPOOL LOG TO /root/restore.log APPEND;
STARTUP NOMOUNT;
SET DBID 2664670378
RESTORE CONTROLFILE TO '/usr/lib/oracle/xe/oradata/XE/control.dbf' FROM '/usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/backupset/2012_05_17/o1_mf_ncnnf_TAG20120517T211223_7vbmdqb1_.bkp';
STARTUP MOUNT;
RESTORE DATABASE;
RECOVER DATABASE;
ALTER DATABASE OPEN RESETLOGS;
SQL 'ALTER TABLESPACE TABELSPACE1 ONLINE';
SQL 'ALTER TABLESPACE TABELSPACE2 ONLINE';
CONFIGURE CONTROLFILE AUTOBACKUP ON;
SPOOL LOG OFF;
QUIT
EOF
The logfile restore.log:
Spooling startet in Log-File: /root/restore.log
Recovery Manager10.2.0.1.0
RMAN>
RMAN-Konfigurationsparameter sind:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 2 DAYS;
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK;
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/dbs/snapcf_XE.f'; # default
RMAN>
RMAN>
Alte RMAN-Konfigurationsparameter:
CONFIGURE CONTROLFILE AUTOBACKUP ON;
Neue RMAN-Konfigurationsparameter:
CONFIGURE CONTROLFILE AUTOBACKUP OFF;
Neue RMAN-Konfigurationsparameter wurden erfolgreich gespeichert
RMAN>
RMAN> 2> 3> 4>
Zugewiesener Kanal: ORA_DISK_1
Kanal ORA_DISK_1: SID=109 Gerätetyp=DISK
Liste mit Backup Pieces
BP Schl BS Schl Pc# Cp# Status Gerätetyp Stückname
1 1 1 1 AVAILABLE DISK /usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/backupset/2012_05_22/o1_mf_annnn_TAG20120522T222259_7vqxf4kj_.bkp
2 2 1 1 AVAILABLE DISK /usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/backupset/2012_05_22/o1_mf_nnndf_TAG20120522T222301_7vqxf61n_.bkp
3 3 1 1 AVAILABLE DISK /usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/backupset/2012_05_22/o1_mf_annnn_TAG20120522T222327_7vqxg02x_.bkp
4 4 1 1 AVAILABLE DISK /usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/backupset/2012_05_22/o1_mf_ncnnf_TAG20120522T222329_7vqxg18s_.bkp
5 5 1 1 AVAILABLE DISK /usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/backupset/2012_05_22/o1_mf_nnsnf_TAG20120522T222330_7vqxg3d5_.bkp
6 6 1 1 AVAILABLE DISK /usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/autobackup/2012_05_22/o1_mf_s_783987812_7vqxg4l2_.bkp
Backup Piece gelöscht
Backup Piece-Handle=/usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/backupset/2012_05_22/o1_mf_annnn_TAG20120522T222259_7vqxf4kj_.bkp Recid=1 Stempel=783987780
Backup Piece gelöscht
Backup Piece-Handle=/usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/backupset/2012_05_22/o1_mf_nnndf_TAG20120522T222301_7vqxf61n_.bkp Recid=2 Stempel=783987782
Backup Piece gelöscht
Backup Piece-Handle=/usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/backupset/2012_05_22/o1_mf_annnn_TAG20120522T222327_7vqxg02x_.bkp Recid=3 Stempel=783987808
Backup Piece gelöscht
Backup Piece-Handle=/usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/backupset/2012_05_22/o1_mf_ncnnf_TAG20120522T222329_7vqxg18s_.bkp Recid=4 Stempel=783987809
Backup Piece gelöscht
Backup Piece-Handle=/usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/backupset/2012_05_22/o1_mf_nnsnf_TAG20120522T222330_7vqxg3d5_.bkp Recid=5 Stempel=783987811
Backup Piece gelöscht
Backup Piece-Handle=/usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/autobackup/2012_05_22/o1_mf_s_783987812_7vqxg4l2_.bkp Recid=6 Stempel=783987812
6 Objekte gelöscht
Freigegebener Kanal: ORA_DISK_1
Zugewiesener Kanal: ORA_DISK_1
Kanal ORA_DISK_1: SID=109 Gerätetyp=DISK
Liste mit archivierten Log-Kopien
Schlüssel Thrd Seq S Niedrige Zeit Name
1 1 4 A 22.05.12 /usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/archivelog/2012_05_22/o1_mf_1_4_7vqxf35l_.arc
2 1 5 A 22.05.12 /usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/archivelog/2012_05_22/o1_mf_1_5_7vqxfyxs_.arc
Archive Log gelöscht
Archive Log-Dateiname=/usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/archivelog/2012_05_22/o1_mf_1_4_7vqxf35l_.arc Recid=1 Stempel=783987779
Archive Log gelöscht
Archive Log-Dateiname=/usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/archivelog/2012_05_22/o1_mf_1_5_7vqxfyxs_.arc Recid=2 Stempel=783987806
2 Objekte gelöscht
RMAN>
SQL-Anweisung: ALTER TABLESPACE TABELSPACE1 OFFLINE IMMEDIATE
RMAN>
SQL-Anweisung: ALTER TABLESPACE TABELSPACE2 OFFLINE IMMEDIATE
RMAN>
Oracle-Instance heruntergefahren
RMAN>
/usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE
├── [drwxr-s--- oracle dba 4.0K] archivelog
│ └── [drwxr-s--- oracle dba 4.0K] 2012_05_22
├── [drwxr-s--- oracle dba 4.0K] autobackup
│ └── [drwxr-s--- oracle dba 4.0K] 2012_05_22
├── [drwxr-s--- oracle dba 4.0K] backupset
│ └── [drwxr-s--- oracle dba 4.0K] 2012_05_22
├── [drwxrwx--- oracle dba 4.0K] onlinelog
│ ├── [-rwxrwx--- oracle dba 50M] o1_mf_1_7vqx7gxn_.log
│ └── [-rwxrwx--- oracle dba 50M] o1_mf_2_7vqx7hdd_.log
└── [-rw-r--r-- root dba 7.7K] rman_list.txt
7 directories, 3 files
delete all directories
/usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE
├── [drwxr-s--- oracle dba 4.0K] archivelog
├── [drwxr-s--- oracle dba 4.0K] autobackup
├── [drwxr-s--- oracle dba 4.0K] backupset
├── [drwxrwx--- oracle dba 4.0K] onlinelog
│ ├── [-rwxrwx--- oracle dba 50M] o1_mf_1_7vqx7gxn_.log
│ └── [-rwxrwx--- oracle dba 50M] o1_mf_2_7vqx7hdd_.log
└── [-rw-r--r-- root dba 7.7K] rman_list.txt
4 directories, 3 files
copy backup to $ORACLE_FLASH
/usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE
├── [drwxr-s--- oracle dba 4.0K] archivelog
│ └── [drwxr-s--- root dba 4.0K] 2012_05_17
│ ├── [-rw-r----- root dba 47K] o1_mf_1_38_7vbmb5x5_.arc
│ └── [-rw-r----- root dba 5.0K] o1_mf_1_39_7vbmdnrj_.arc
├── [drwxr-s--- oracle dba 4.0K] autobackup
│ └── [drwxr-s--- root dba 4.0K] 2012_05_17
│ └── [-rw-r----- root dba 7.1M] o1_mf_s_783551546_7vbmdtjf_.bkp
├── [drwxr-s--- oracle dba 4.0K] backupset
│ └── [drwxr-s--- root dba 4.0K] 2012_05_17
│ ├── [-rw-r----- root dba 48K] o1_mf_annnn_TAG20120517T211101_7vbmb724_.bkp
│ ├── [-rw-r----- root dba 6.5K] o1_mf_annnn_TAG20120517T211220_7vbmdp1d_.bkp
│ ├── [-rw-r----- root dba 7.1M] o1_mf_ncnnf_TAG20120517T211223_7vbmdqb1_.bkp
│ ├── [-rw-r----- root dba 1.8G] o1_mf_nnndf_TAG20120517T211104_7vbmb8ct_.bkp
│ └── [-rw-r----- root dba 96K] o1_mf_nnsnf_TAG20120517T211224_7vbmdsdo_.bkp
├── [drwxrwx--- oracle dba 4.0K] onlinelog
│ ├── [-rw-r----- root root 50M] o1_mf_1_7vbklf5n_.log
│ ├── [-rwxrwx--- oracle dba 50M] o1_mf_1_7vqx7gxn_.log
│ ├── [-rw-r----- root root 50M] o1_mf_2_7vbklft2_.log
│ └── [-rwxrwx--- oracle dba 50M] o1_mf_2_7vqx7hdd_.log
└── [-rw-r--r-- root dba 7.9K] rman_list.txt
7 directories, 13 files
set owner $ORACLE_FLASH
set rights in $ORACLE_FLASH
/usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE
├── [drwxr-s--- oracle dba 4.0K] archivelog
│ └── [drwxr-s--- oracle dba 4.0K] 2012_05_17
│ ├── [-rw-r----- oracle dba 47K] o1_mf_1_38_7vbmb5x5_.arc
│ └── [-rw-r----- oracle dba 5.0K] o1_mf_1_39_7vbmdnrj_.arc
├── [drwxr-s--- oracle dba 4.0K] autobackup
│ └── [drwxr-s--- oracle dba 4.0K] 2012_05_17
│ └── [-rw-r----- oracle dba 7.1M] o1_mf_s_783551546_7vbmdtjf_.bkp
├── [drwxr-s--- oracle dba 4.0K] backupset
│ └── [drwxr-s--- oracle dba 4.0K] 2012_05_17
│ ├── [-rw-r----- oracle dba 48K] o1_mf_annnn_TAG20120517T211101_7vbmb724_.bkp
│ ├── [-rw-r----- oracle dba 6.5K] o1_mf_annnn_TAG20120517T211220_7vbmdp1d_.bkp
│ ├── [-rw-r----- oracle dba 7.1M] o1_mf_ncnnf_TAG20120517T211223_7vbmdqb1_.bkp
│ ├── [-rw-r----- oracle dba 1.8G] o1_mf_nnndf_TAG20120517T211104_7vbmb8ct_.bkp
│ └── [-rw-r----- oracle dba 96K] o1_mf_nnsnf_TAG20120517T211224_7vbmdsdo_.bkp
├── [drwxr-x--- oracle dba 4.0K] onlinelog
│ ├── [-rw-r----- oracle dba 50M] o1_mf_1_7vbklf5n_.log
│ ├── [-rw-r----- oracle dba 50M] o1_mf_1_7vqx7gxn_.log
│ ├── [-rw-r----- oracle dba 50M] o1_mf_2_7vbklft2_.log
│ └── [-rw-r----- oracle dba 50M] o1_mf_2_7vqx7hdd_.log
└── [-rw-r----- root dba 7.9K] rman_list.txt
7 directories, 13 files
Spooling gestartet in Log-Datei: /root/restore.log
Recovery Manager10.2.0.1.0
RMAN>
Oracle-Instance gestartet
Gesamte System Global Area 805306368 Byte
Fixed Size 1261444 Byte
Variable Size 209715324 Byte
Database Buffers 591396864 Byte
Redo Buffers 2932736 Byte
RMAN>
Befehl wird ausgeführt: SET DBID
RMAN>
Starten restore um 22.05.12
Zugewiesener Kanal: ORA_DISK_1
Kanal ORA_DISK_1: SID=124 Gerätetyp=DISK
Kanal ORA_DISK_1: Kontrolldatei wird zurückgeschrieben
Kanal ORA_DISK_1: Restore abgeschlossen, abgelaufene Zeit: 00:00:03
Beendet restore um 22.05.12
RMAN>
Datenbank wurde bereits gestartet
Datenbank angeschlossen
Freigegebener Kanal: ORA_DISK_1
RMAN>
Starten restore um 22.05.12
Starten implicit crosscheck backup um 22.05.12
Zugewiesener Kanal: ORA_DISK_1
Kanal ORA_DISK_1: SID=124 Gerätetyp=DISK
3 Objekte auf Übereinstimmung geprüft
Beendet implicit crosscheck backup um 22.05.12
Starten implicit crosscheck copy um 22.05.12
Kanal ORA_DISK_1 wird benutzt
Beendet implicit crosscheck copy um 22.05.12
Suche nach allen Dateien im Recovery-Bereich
Dateien werden katalogisiert...
Keine Dateien katalogisiert
Kanal ORA_DISK_1 wird benutzt
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: Fehler bei restore Befehl auf 05/22/2012 22:25:21
RMAN-06026: Einige Ziele nicht gefunden - Recovery wird abgebrochen
RMAN-06023: Kein Backup bzw. keine Kopie der Datendatei 4 zum Wiederherstellen gefunden
RMAN-06023: Kein Backup bzw. keine Kopie der Datendatei 3 zum Wiederherstellen gefunden
RMAN-06023: Kein Backup bzw. keine Kopie der Datendatei 2 zum Wiederherstellen gefunden
RMAN-06023: Kein Backup bzw. keine Kopie der Datendatei 1 zum Wiederherstellen gefunden
RMAN>
Starten recover um 22.05.12
Kanal ORA_DISK_1 wird benutzt
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: Fehler bei recover Befehl auf 05/22/2012 22:25:21
RMAN-06094: Wiederherstellung der Datendatei 1 erforderlich.
RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: Fehler bei alter db Befehl auf 05/22/2012 22:25:22
ORA-01157: Datendatei 1 kann nicht identifiziert/gesperrt werden - siehe DBWR-Trace-Datei
ORA-01110: Datendatei 1: '/usr/lib/oracle/xe/oradata/XE/system.dbf'
RMAN>
SQL-Anweisung: ALTER TABLESPACE TABELSPACE1 ONLINE
RMAN>
Starten recover um 22.05.12
Kanal ORA_DISK_1 wird benutzt
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: Fehler bei recover Befehl auf 05/22/2012 22:25:21
RMAN-06094: Wiederherstellung der Datendatei 1 erforderlich.
RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: Fehler bei alter db Befehl auf 05/22/2012 22:25:22
ORA-01157: Datendatei 1 kann nicht identifiziert/gesperrt werden - siehe DBWR-Trace-Datei
ORA-01110: Datendatei 1: '/usr/lib/oracle/xe/oradata/XE/system.dbf'
RMAN>
SQL-Anweisung: ALTER TABLESPACE TABELSPACE1 ONLINE
RMAN>
Starten recover um 22.05.12
Kanal ORA_DISK_1 wird benutzt
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: Fehler bei recover Befehl auf 05/22/2012 22:25:21
RMAN-06094: Wiederherstellung der Datendatei 1 erforderlich.
RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: Fehler bei alter db Befehl auf 05/22/2012 22:25:22
ORA-01157: Datendatei 1 kann nicht identifiziert/gesperrt werden - siehe DBWR-Trace-Datei
ORA-01110: Datendatei 1: '/usr/lib/oracle/xe/oradata/XE/system.dbf'
RMAN>
SQL-Anweisung: ALTER TABLESPACE TABELSPACE1 ONLINE
As you can see the controlfile is restore, but it seems that the information
about the other files and where they are stored is lost.
The instance can't restore/recover the other files.
Best regards -
RMAN with tape without mediation from MML (target 9i)
hi, guys
i'm wondering if RMAN is able to do the following job :
target DB (9.2.0.8)
i wanna backup the whole database to tape (hot or cold whatsoever)
is it possible to backing up db to tape without 3-rd party SW installed on DB?
if i wanna exclude the temp tablespace from whole backup what's the fastest way to do it ?
thanks~
or the possible way is only to write to disk first then move to tape manually ?
thanks
br/rickyis it possible to backing up db to tape without 3-rd party SW installed on DB?NO, not directly with RMAN. Unless of course you don't consider Oracle Secure Backup 3rd party software.
if i wanna exclude the temp tablespace from whole backup what's the fastest way to do it ?You are in luck, RMAN doesn't backup temporary tablespaces.
or the possible way is only to write to disk first then move to tape manually ?Yes, RMAN can write to disk and then you can move to tape without using RMAN. -
RMAN with Netbackup - ALL Tape backups expired
Hello,
I am currently experiencing some issues between Netbackup and RMAN.
A bounce of the Netbackup server seems to have marked all our tape backups managed by RMAN as 'Expired'. This means RMAN can no longer locate any of the tape backups.
We have checked the rentention periods and the physical backups on the tapes and they seem to be ok. Therefore it would suggest a link problem between Netbackup and RMAN. We have tried bouncing the Netbackup servers again but this has not resolved the situation.
However sometimes the tape backups become available and but then become expired again.
I have also tried backing up to Tape since the bounce and the backup is successful, however 24 hours later it becomes expired despite Retention policy set to 4 weeks on both RMAN and Netbackup.
Please help!
Thank youHey;
I tried the delete obsolete; command initially. Admittedly, I didn't report that - so here's the output:
RMAN> delete obsolete;
using target database control file instead of recovery catalog
RMAN retention policy will be applied to the command
RMAN retention policy is set to recovery window of 3 days
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=137 devtype=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: sid=132 devtype=DISK
Deleting the following obsolete backups and copies:
Type Key Completion Time Filename/Handle
Backup Set 6 10-SEP-09
Backup Piece 6 10-SEP-09 c-1369681761-20090910-00
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of delete command at 07/24/2010 21:36:58
RMAN-06091: no channel allocated for maintenance (of an appropriate type)
As for the changing default device type: someone had mentioned that the default device type was disk so I changed it to tape, tried the command, failed, then switched it back.
Just to reiterate: I don't have a tape drive on this box; never did. I'm not sure how two tape backups could have gotten there in the first place.
The oracle version is:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
and the OS version is:
$ uname -r; cat /etc/redhat-release
2.6.18-128.el5xen
Red Hat Enterprise Linux Server release 5.3 (Tikanga)
If push comes to shove, I can leave those two backups. There were a rather large number of them that I did successfully make go away. It just seems odd that I can't make these guys go away.
Thanks for the help; I appreciate it.
Doug -
Hi,
I need to define a mechanism with RMAN to backuptwo databases where information is copied from one to another by using Oracle Data Integrator CDC.
How can I backup and recover both databases and it still sync?
Thanks
HomeroYes.
And that is why I said "If you create distributed transactions between two Oracle databases, a Global SCN is synchronised".
YOU CREATE distributed transactions.
Test it out.
Put two dummy tables in each database.
Have a database link configured.
Run some distributed transactions.
Check the SCNs.
Hemant K Chitale -
HI ,
Iam using oracle 10.2.0.4 and want to take an rman backup with file conversion option. This is what i used:
convert database
transport script '/home/oracle/transport_FCCEGM.sql'
new database 'FCCEGM'
to platform 'HP-UX (64-bit)'
parallelism 4
format '/home/oracle/fccegm.ora'
db_file_name_convert '/usr/oradata/FCCEGM1/datafile','/usr/oradata/FCCEGM1/rman/';
It complains about my oracle managed file:
RMAN-03009: failure of backup command on ORA_DISK_2 channel at 08/06/2009 13:05:08
ORA-01276: Cannot add file /usr/oradata/FCCEGM1/rman//o1_mf_fcc_data_572ohgtg_.dbf. File has an Oracle Managed Files file name.
My work around is this(remove this part :db_file_name_convert '/usr/oradata/FCCEGM1/datafile','/usr/oradata/FCCEGM1/rman/'; )
so i run this:
convert database
transport script '/home/oracle/transport_FCCEGM.sql'
new database 'FCCEGM'
to platform 'HP-UX (64-bit)'
parallelism 4
format '/home/oracle/fccegm.ora'
It is working but of course the converted file destination is the same as the source. Their is a lot of file.
How can i used Rman backup with oracle managed file and specified the destination?
regards,
F.KABOREThe Oracle docs are a marvelous resource. You will find them at http://tahiti.oracle.com.
It took me less than 15 seconds to find this:
http://download.oracle.com/docs/cd/B28359_01/backup.111/b28273/rcmsubcl007.htm#RCMRF196
if the source files for these operations are Oracle-managed files, then you cannot use
fileNameConversionSpec to convert the source filenames into new output filenames.
For Oracle-managed files, either in Automated Storage Management (ASM) or in
ordinary file system storage, the database must be allowed to generate the filenames
for the output files.
Maybe you are looking for
-
BTE 00001030 - Dunning form - OPEN_FI_PERFORM_00001030_P not triggering
Hi, I am using BTE 1030 for replacing the assigned form in customizing settings with a 'Z' or customer specific one at runtime. (determine dunning form) Although, I placed a Break-point (hardcoded) in my 'Z' function module, properly registered as a
-
Installing JDK 5.0 in Oracle 10.2.0.4
The JVM/JDK version within Oracle 10.2.0.4 is at 1.4.2 and we have Java code that will require JDK 5.0 to be installed in the database, Oracle 11g has JDK 5.0 but I am not sure how I can upgrade the JVM/JDK within a 10g database to JDK 5.0. Is this p
-
RH11 "messes up" hyperlinks set in a linked word document
Hello Adobe Community, I am having some troubles with RH11, importing Word-Docs and generating html code. The problem is the following: There is a word document "text1.docx" with some hyperlinks in it, which navigate to a certain html file in the RH
-
Error message after Recovery with discs
I have a Pavilion dv6911om. I had to replace the hard drive and then did a system recovery with the discs sent by HP but it failed to recover the computer. It gives me a CTOERROR.flg notepad with a bunch of information on it and from what I can tell
-
Shared services registration failing during configuration of EPMA 11.1.1.3
Hi All, I am currently woking on essbase and no knowledge of planning so trying to upgrade my knowledge. I installed epma 11.1.1.3 on windows 2003 VMware work station as I have windows 7 laptop. installed oracle 10g created a database (epma) created