Can i recover a tablespace in diff database, is it possible ????
i am very frustated as i tried to bakup and recover a
tablespace in diffrent database where i have a tablespace
i would like to tell you (which i want to bkup nad recover)
i have two database one is db01 and the other
is oemrep and i am working on dedicated server i have done few
things on oemrep database i tried few commands which is are..
$ rman target hr@db01
after providing password it connected me to db01 database and
then i backup and recover tablespace test which is on db01 dataabse
i have successfull run backup and recovery command and found no error in that, now i jsut want to know can i see the tablespace
in oemrep database..plese tell me what to do if this in not a right
way to do this..please let me know i wolud be very thankfull of you..
very much thanks from my side....
Step 9: Apply this command to see all the options of the export utility
C:\>
C:\>EXP HELP=Y
Export: Release 10.1.0.2.0 - Production on Fri Apr 23 19:48:30 2004
Copyright (c) 1982, 2004, Oracle. All rights reserved.
You can let Export prompt you for parameters by entering the EXP
command followed by your username/password:
Example: EXP SCOTT/TIGER
Or, you can control how Export runs by entering the EXP command followed
by various arguments. To specify parameters, you use keywords:
Format: EXP KEYWORD=value or KEYWORD=(value1,value2,...,valueN)
Example: EXP SCOTT/TIGER GRANTS=Y TABLES=(EMP,DEPT,MGR)
or TABLES=(T1:P1,T1:P2), if T1 is partitioned table
USERID must be the first parameter on the command line.
Keyword Description (Default) Keyword Description (Default)
USERID username/password FULL export entire file (N)
BUFFER size of data buffer OWNER list of owner usernames
FILE output files (EXPDAT.DMP) TABLES list of table names
COMPRESS import into one extent (Y) RECORDLENGTH length of IO record
GRANTS export grants (Y) INCTYPE incremental export type
INDEXES export indexes (Y) RECORD track incr. export (Y)
DIRECT direct path (N) TRIGGERS export triggers (Y)
LOG log file of screen output STATISTICS analyze objects (ESTIMATE)
ROWS export data rows (Y) PARFILE parameter filename
CONSISTENT cross-table consistency(N) CONSTRAINTS export constraints (Y)
OBJECT_CONSISTENT transaction set to read only during object export (N)
FEEDBACK display progress every x rows (0)
FILESIZE maximum size of each dump file
FLASHBACK_SCN SCN used to set session snapshot back to
FLASHBACK_TIME time used to get the SCN closest to the specified time
QUERY select clause used to export a subset of a table
RESUMABLE suspend when a space related error is encountered(N)
RESUMABLE_NAME text string used to identify resumable statement
RESUMABLE_TIMEOUT wait time for RESUMABLE
TTS_FULL_CHECK perform full or partial dependency check for TTS
TABLESPACES list of tablespaces to export
TRANSPORT_TABLESPACE export transportable tablespace metadata (N)
TEMPLATE template name which invokes iAS mode export
Export terminated successfully without warnings.Joel Pérez
http://otn.oracle.com/experts
Similar Messages
-
Can I recover some tablespace(only current tbs) - RMAN
Hello, I have ang question about RMAN.
If I have full backup database, and next time database is failed.
Can I recover especially tablespace current data?
this below is my step recovery but it's not pass.
I'm not sure, this are correct or not.
bash-2.05$ rman target / catalog user/password@rcat
RMAN> set dbid=1707756540
RMAN> startup nomount
+RMAN> run{+
+2> ALLocate channel ch00 type 'SBT_TAPE';+
+3> Allocate channel ch01 type 'SBT_TAPE';+
+4> SEND 'NB_ORA_CLIENT=holtuv1';+
+5> SEND 'NB_ORA_SERV=holtbk11';+
+6> SEND 'NB_ORA_POLICY=test_orabk_holtuv1';+
+7> restore controlfile ;+
+8> }+
+RMAN> run{+
+2> ALLocate channel ch00 type 'SBT_TAPE';+
+3> Allocate channel ch01 type 'SBT_TAPE';+
+4> SEND 'NB_ORA_CLIENT=holtuv1';+
+5> SEND 'NB_ORA_SERV=holtbk11';+
+6> SEND 'NB_ORA_POLICY=test_orabk_holtuv1';+
+7> restore database skip tablespace 'PERFSTAT', 'YEAR2009';+
+8> }+
RMAN> alter database mount;
+RMAN> run{+
+2> ALLocate channel ch00 type 'SBT_TAPE';+
+3> Allocate channel ch01 type 'SBT_TAPE';+
+4> SEND 'NB_ORA_CLIENT=holtuv1';+
+5> SEND 'NB_ORA_SERV=holtbk11';+
+6> SEND 'NB_ORA_POLICY=test_orabk_holtuv1';+
+7> recover database skip tablespace 'PERFSTAT', 'YEAR2009';+
+8> }+
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 06/04/2010 15:30:41
ORA-00283: recovery session canceled due to errors
RMAN-11003: failure during parse/execution of SQL statement: alter database recover logfile '/data/db01/ORABK_ARCH/ORABK/archivelog/2010_06_03/o1_mf_1_5_60h9p9z0_.arc'
ORA-00283: recovery session canceled due to errors
ORA-16067: activation identifier mismatch in archive log /data/db01/ORABK_ARCH/ORABK/archivelog/2010_06_03/o1_mf_1_5_60h9p9z0_.arc
RMAN> alter database open resetlogs;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of alter db command at 06/04/2010 15:41:43
ORA-01157: cannot identify/lock data file 5 - see DBWR trace file
ORA-01110: data file 5: '/data/db01/ORABK/perfstat.dbf'
any sugess please.
thank you
SuradechM.Suradech wrote:
RMAN> alter database open resetlogs;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of alter db command at 06/04/2010 15:41:43
ORA-01157: cannot identify/lock data file 5 - see DBWR trace file
ORA-01110: data file 5: '/data/db01/ORABK/perfstat.dbf'
any sugess please.
thank you
SuradechHi Suradech.This error(ORA-01157,ORA-01110) because in controlfile remain information about of '/data/db01/ORABK/perfstat.dbf'.Due to you restored controlfile from backup.You have to re-create controlfile or you can open database without this datafile.(Also there is YEAR2009' tablespaces datafile).You can try following.
1.
sqlplus "/as sysdba"
alter database datafile '/data/db01/ORABK/perfstat.dbf' offline drop;
alter database open;or
2.
sqlplus "/as sysdba"
alter database backup controlfile to trace as '/data/ctrl'; --then edit this file and remove '/data/db01/ORABK/perfstat.dbf' line(also YEAR2009`s datafile)
shutdown immediate;
startup nomount;
@/data/ctrl;
alter database open resetlogs; also see following metalink note.
How To Recover Database Where Backup Has Tablespace Excluded [ID 732627.1]
Ora-01157 When Running Recover Database Skip Forever Tablespace Noredo [ID 561440.1] -
Can we create new tablespace in Oracle Database 10g Express Edition?
Hi,
Can we create new tablespace in Oracle Database 10g Express Edition instead of using the default "users" tablespace provided?
Please advise.
Thank you.Correct. The sum of all user tablespaces is not allowed to exceed 4 GIG.
You could try shrinking your tablespaces. Theres a script called maxshrink on http://asktom.oracle.com which is useful for this.
You could compress your tables.
If you are storing lobs, you could consider storing them as bfiles.
Or upgrade to Oracle Standard Edition 1. Its not that expensive. -
How to recover undo tablespace in 9i
How can i recover undo tablespace 9i.Can any provide step by step recovery process
Doc ID 94114.1 on Metalink might be of interest to you
-
Help me! ORA-01172 during database startup,and I can't recover it
Hi,
I use oracle 7.3.4.0.0 on Windows 2000 Adv server. My Cluster met some problem, the clustsvc quit unexpectedly,and cluster admin application hang, so I restarted the computer. But after I restart,I can't start my ORACLE_SID, I met ORA-01172, Instance recover stuck at block 49, file #1,can't aplly change SCN 0000000.0a435675,it isnot the next change,...ORA-00600 ....... My DB is NOARCHIVELOG, and file #1 is SYSTEM tablespace, and I have no recent copies of these datafiles. So I can't recover from the problem. I use dbverf73 checked all the datafiles, they all have no corrupt blocks. How can recover the database?
Please help me! A lot of thanks!Check Oracle support for the ORA-00600 error.
Recover a database without ARCHIVELOG and without a cold backup is impossible as far as i know...
Fred -
How can i recover my database after losing system data file.
hi everyone,
how can i recover my database in the following scenario.
1. offline complete backup taken 2 days ago. database was in archive mode.
2. today i lost my system data file, and also lost my all archived files.
3. i started up the database but, the following error was generated.
SQL> startup
ORACLE instance started.
Total System Global Area 135338868 bytes
Fixed Size 453492 bytes
Variable Size 109051904 bytes
Database Buffers 25165824 bytes
Redo Buffers 667648 bytes
Database mounted.
ORA-01113: file 1 needs media recovery
ORA-01110: data file 1: 'D:\ORACLE\ORADATA\ORCL\SYSTEM01.DBF'
4. i copied the system data file from backup and wrote the following statement, to recover the database.
SQL> recover datafile 1;
ORA-00279: change 2234434 generated at 07/15/2009 10:52:10 needed for thread 1
ORA-00289: suggestion : C:\B\ARC00051.001
ORA-00280: change 2234434 for thread 1 is in sequence #51
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
now i don't have any archive file. is there any chance to recover the database ?
R e g a r d s,
Asif Iqbal
Software Engineer,
Lucky Tex, Karachi,
Pakistan.now i don't have any archive file. is there any chance to recover the database ?If no archive log files are available you can't recover the datafile.You need to have all the archives from the time of offline backup was taken till the system datafile is lost.
Anand -
How can i get the SQL of a tablespace from the database
Hello All,
I am using Oracle 11g R2. I want to get the SQL of some tablespaces on my database. in the same way i get the DDL of the table using the GET_DDL function.
How can i get that ?
Regards,try this please
select dbms_metadata.get_ddl('TABLESPACE',tb.tablespace_name) from dba_tablespaces tb;or
select 'create tablespace ' || df.tablespace_name || chr(10)
|| ' datafile ''' || df.file_name || ''' size ' || df.bytes
|| decode(autoextensible,'N',null, chr(10) || ' autoextend on maxsize '
|| maxbytes)
|| chr(10)
|| 'default storage ( initial ' || initial_extent
|| decode (next_extent, null, null, ' next ' || next_extent )
|| ' minextents ' || min_extents
|| ' maxextents ' || decode(max_extents,'2147483645','unlimited',max_extents)
|| ') ;'
from dba_data_files df, dba_tablespaces t
where df.tablespace_name=t.tablespace_name Edited by: Mahir M. Quluzade on Mar 14, 2011 4:51 PM -
Can I recover the database to the current time using a backup control file?
Can I recover the database to the current time using a backup control file? How far can I recover this database?
I have an Oracle 10g(10.2.3) database on RHEL4.3 system.
I have lost all the current control files and all the online redo logs, archived redo logs and all other files are OK.
Now I have to recovery this database using a backup control file.
Can I recover the database without any data lost?If
a) it was a Shutdown Abort or an Instance Crash (i.e. backgrounds died on detecting loss of redo logs),
b) redo logs are lost
c) data files are intact
You'd have to
a) Restore datafiles
b) Do an Incomplete Recovery to the last available ArchiveLog
Hemant K Chitale
http://hemantoracledba.blogspot.com -
Library recovery: how can I recover a library after I get this message: "There was an error opening the database for the library “/Users/Jim/Pictures/Libraries/K2 Library.aplibrary”???
Thanks a lot, Frank. The lsregister did the trick! I am testing this on 10.8.2.
http://support.apple.com/kb/TA24770 : I deleted the "com.apple.LaunchServices.plist", and restarted the Finder, even logged off and on again; did not change anything. The file has not been recreated, so it may not be used anymore.
http://itpixie.com/2011/05/fix-duplicate-old-items-open-with-list/#.ULZqa6XAoqY
The direct "copy and paste" from the post did not work: I had to retype it :
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchSe rvices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user
but then it worked like a charm!
Cheers
Léonie
And btw: I turned on the "-v" option for the lsregister to see, what was going on, and saw plenty of error messages (error -10811); so I repeated the command with "sudo". After that I still saw five iPhotos. Repeating as regular user finally got rid of the redundant iPhoto entries. It looks like registering as super user may be causing this trouble. -
Up to what time can I recover my database?
I have lost all of my current controlfiles and I have to recover my database using a backup controlfile. Up to what time can I recover my database?---------No.204
In another thread you said you had your OCP. What test are these questions for?
Along the same line as your other asking what is next, have you tried recreating this problem? It is one thing to be able to give an answer, being able to actually perform the work is what your future employer is looking for. -
Can i recover my databse on linux with 10g from backup solaris 8 with oracle 9i
or
can i recover my database on linux with oracle10g copying datafiles from solaris8 with oracle 9iAdigozalov Gurban wrote:
Can i recover my databse on linux with 10g from backup solaris 8 with oracle 9i
or
can i recover my database on linux with oracle10g copying datafiles from solaris8 with oracle 9iYou can use expdp/impdp(exp/imp) utilities.Just copying datafiles that is not possible.However there is a way to convert database(datafile) to other platform using RMAN,but in your case that is not possible due to your ORACLE version is different. -
Can't recover database - ORA-0610
Oracle 11g
Win 2008
Can't recover database after db crashed last night.
Database dismounted.
ORACLE instance shut down.
SQL> connect sys/sys as sysdba
Connected to an idle instance.
SQL> startup;
ORACLE instance started.
Total System Global Area 6847938560 bytes
Fixed Size 2188768 bytes
Variable Size 4798286368 bytes
Database Buffers 2030043136 bytes
Redo Buffers 17420288 bytes
Database mounted.
ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
SQL> alter database open NORESETLOGS;
alter database open NORESETLOGS
ERROR at line 1:
ORA-01610: recovery using the BACKUP CONTROLFILE option must be done
When I try to create backup contriol file, I get os error:
SQL> alter database backup controlfile to '
2 F:\app\oradata\AHRPROD\control02.ctl';
alter database backup controlfile to '
ERROR at line 1:
ORA-01580: error creating control backup file
F:\app\oradata\AHRPROD\control02.ctl
ORA-27040: file create error, unable to create file
OSD-04002: unable to open file
O/S-Error: (OS 123) The filename, directory name, or volume label syntax is
incorrect.805758 wrote:
Here is the original error I got this morning:
Status Failed
Details ORA-01033: ORACLE initialization or shutdown in progress (DBD ERROR: OCISessionBeginsqlplus
/ as sysdba
shutdown abort
startup
exit
COPY commands (above) & results then PASTE all back here -
Can I recover one schema from Rman Backup
hi experts,
I have Raman backup of my database and database is in archivelog mod.
by mistake all data is deleted from one of schema. I dont want to change anything in other schemas.
Can I recover my data ?
O.S. = SunOS 5.10
oracle = 10.2.0.3.0As far as I know RMAN doesn't really function at the schema level. It's only really concerned with blocks, datafiles, tablespaces and entire databases.
You should be able to get the schema back by, recovering the database to another server or filesystem, and then migrating the schema from the restored database to the current database using datapump. -
RMAN-05556: not all datafiles have backups that can be recovered to SCN
Oracle 11.2.0.2 SE-One
Oracle Linux 5.6 x86-64
Weekly refresh of a test db from prod, using rman DUPLICATE DATABASE, failed with “RMAN-05556: not all datafiles have backups that can be recovered to SCN”
Background Summary:
Weekly inc 0 backup of production starts on Sunday at 0100, normally completes around 1050. Includes backups of archivelogs
Another backup of just archivelogs runs on Sunday at 1200, normally completes NLT 1201.
On the test server, the refresh job starts on Sunday at 1325. In the past this script used a set until time \"to_date('`date +%Y-%m-%d` 11:55:00','YYYY-MM-DD hh24:mi:ss')\"; -- hard-coded for ‘today at 11:55’.
For a variety of reasons I decided to replace this semi-hard coding of the UNTIL with a value determined by querying the rman catalog, getting the completion time of the inc 0 backup. This tested out just fine in my vbox lab, even when I deliberately drove some updates and log switches during the period the backup was running. But the first time to go live I got the above reported error.
Details:
The key part of the inc 0 backup is this (run from a shell script)
export BACKUP_LOC=/u01/backup/dbprod
$ORACLE_HOME/bin/rman target=/ catalog rman/***@rmcat<<EOF
configure backup optimization on;
configure default device type to disk;
configure retention policy to recovery window of 2 days;
crosscheck backup;
crosscheck archivelog all;
delete noprompt force obsolete;
delete noprompt force expired backup;
delete noprompt force expired archivelog all;
configure controlfile autobackup on;
configure controlfile autobackup format for device type disk to '$BACKUP_LOC/%d_%F_ctl.backup';
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '$BACKUP_LOC/%U.rman' MAXPIECESIZE 4096 M;
sql "alter system archive log current";
show all;
backup as compressed backupset archivelog all delete all input format "$BACKUP_LOC/%U.alog";
backup as compressed backupset incremental level 0 database tag tag_dbprod;
sql "alter system archive log current";
backup as compressed backupset archivelog all delete all input format "$BACKUP_LOC/%U.alog";
list recoverable backup;
EOF
The archivelog-only backup (runs at noon) looks like this:
export BACKUP_LOC=/u01/backup/dbprod
$ORACLE_HOME/bin/rman target=/ catalog rman/***@rmcat<<EOF
configure backup optimization on;
configure default device type to disk;
configure retention policy to recovery window of 2 days;
crosscheck backup;
crosscheck archivelog all;
delete noprompt force obsolete;
delete noprompt force expired backup;
delete noprompt force expired archivelog all;
configure controlfile autobackup on;
configure controlfile autobackup format for device type disk to '$BACKUP_LOC/%d_%F_ctl.backup';
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '$BACKUP_LOC/%U.rman' MAXPIECESIZE 4096 M;
sql "alter system archive log current";
show all;
backup as compressed backupset archivelog all delete all input format "$BACKUP_LOC/%U.alog";
list recoverable backup;
EOF
And the original refresh looked like this:
>> a step to ftp the backups from the prod server to the test server, and some other housekeeping <<, then
cd /backup/dbtest
echo "connect catalog rman/***@rmcat" > /backup/dbtest/dbtest_refresh.rman
echo "connect target sys/*******@dbprod" >> /backup/dbtest/dbtest_refresh.rman
echo "connect auxiliary /" >> /backup/dbtest/dbtest_refresh.rman
echo "run {" >> /backup/dbtest/dbtest_refresh.rman
echo "set until time \"to_date('`date +%Y-%m-%d` 11:55:00','YYYY-MM-DD hh24:mi:ss')\";" >> /backup/dbtest/dbtest_refresh.rman
echo "duplicate target database to DBTEST;" >> /backup/dbtest/dbtest_refresh.rman
echo "}" >> /backup/dbtest/dbtest_refresh.rman
So, my mod to the refresh was
bkup_point=`sqlplus -s rman/***@rmcat <<EOF1
set echo off verify off feedback off head off pages 0 trimsp on
select to_char(max(completion_time),'yyyy-mm-dd hh24:mi:ss')
from rc_backup_set_details
where db_name='DBPROD'
and backup_type='D'
and incremental_level=0
exit
EOF1`
cd /backup/dbtest
echo "connect catalog rman/***@rmcat" > /backup/dbtest/dbtest_refresh.rman
echo "connect target sys/*******@dbprod" >> /backup/dbtest/dbtest_refresh.rman
echo "connect auxiliary /" >> /backup/dbtest/dbtest_refresh.rman
echo "run {" >> /backup/dbtest/dbtest_refresh.rman
echo "set until time \"to_date('${bkup_point}','YYYY-MM-DD hh24:mi:ss')\";" >> /backup/dbtest/dbtest_refresh.rman
echo "duplicate target database to DBTEST;" >> /backup/dbtest/dbtest_refresh.rman
echo "}" >> /backup/dbtest/dbtest_refresh.rman
Now the fun begins.
First, an echo in the refresh script confirmed the ‘bkup_point’:
=======================================================
We will restore to 2013-08-25 10:41:38
=======================================================
Internally, rman reset the ‘until’ as follows:
executing command: SET until clause
Starting Duplicate Db at 25-Aug-2013 15:35:44
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=162 device type=DISK
contents of Memory Script:
set until scn 45633141350;
Examining the result of LIST BACKUP (the last step of all of my rman scripts) the full backup shows this:
BS Key Type LV Size Device Type Elapsed Time Completion Time
5506664 Full 61.89M DISK 00:00:03 25-Aug-2013 02:11:32
BP Key: 5506678 Status: AVAILABLE Compressed: NO Tag: TAG20130825T021129
Piece Name: /u01/backup/dbprod/DBPROD_c-3960114099-20130825-00_ctl.backup
SPFILE Included: Modification time: 24-Aug-2013 22:33:08
SPFILE db_unique_name: DBPROD
Control File Included: Ckp SCN: 45628880455 Ckp time: 25-Aug-2013 02:11:29
BS Key Type LV Size Device Type Elapsed Time Completion Time
5507388 Incr 0 206.03G DISK 08:30:00 25-Aug-2013 10:41:30
List of Datafiles in backup set 5507388
File LV Type Ckp SCN Ckp Time Name
1 0 Incr 45628880495 25-Aug-2013 02:11:38 +SMALL/dbprod/datafile/system.258.713574775
>>>>>>>>> snip lengthy list <<<<<<<<<
74 0 Incr 45628880495 25-Aug-2013 02:11:38 +SMALL/dbprod/event_i2.dbf
Backup Set Copy #1 of backup set 5507388
Device Type Elapsed Time Completion Time Compressed Tag
DISK 08:30:00 25-Aug-2013 10:41:36 YES TAG_DBPROD
List of Backup Pieces for backup set 5507388 Copy #1
BP Key Pc# Status Piece Name
5507391 1 AVAILABLE /u01/backup/dbprod/eeoi55iq_1_1.rman
>>>>>>>>>>>>> snip lengthy list <<<<<<<<<<<
5507442 52 AVAILABLE /u01/backup/dbprod/eeoi55iq_52_1.rman
Notice the slight difference in time between what is reported in the LIST BACKUP and what was reported by my query to the catalog.
Continuing with the backup list, the second archivelog backup in the script generated six backupsets. The fifth set showed:
BS Key Size Device Type Elapsed Time Completion Time
5507687 650.19M DISK 00:02:18 25-Aug-2013 10:54:53
BP Key: 5507694 Status: AVAILABLE Compressed: YES Tag: TAG20130825T104156
Piece Name: /u01/backup/dbprod/ekoi643j_1_1.alog
List of Archived Logs in backup set 5507687
Thrd Seq Low SCN Low Time Next SCN Next Time
1 1338518 45632944587 25-Aug-2013 05:58:18 45632947563 25-Aug-2013 05:58:20
>>>>>>>>>>>>> snip lengthy list <<<<<<<<<<<
1 1338572 45633135750 25-Aug-2013 10:08:21 45633140240 25-Aug-2013 10:08:24
1 1338573 45633140240 25-Aug-2013 10:08:24 45633141350 25-Aug-2013 10:30:06
1 1338574 45633141350 25-Aug-2013 10:30:06 45633141705 25-Aug-2013 10:41:51
1 1338575 45633141705 25-Aug-2013 10:41:51 45633141725 25-Aug-2013 10:41:55
Notice the availability of the archivelogs including the referenced scn.
Investigation of the ftp portion of the refresh script confirmed that all backup pieces were copied from the prod server.
So what am I overlooking? Having reverted back to the original script to get the refresh completed,HemantKChitale wrote:
So, technically, you only need the database and archivelogs backed up by the database script and not the noon run of the archivelog backup.
backup as compressed backupset archivelog all delete all input format "$BACKUP_LOC/%U.alog";
backup as compressed backupset incremental level 0 database tag tag_dbprod;
sql "alter system archive log current";
backup as compressed backupset archivelog all delete all input format "$BACKUP_LOC/%U.alog";
Yet, why does backupset 5 of the noon archivelog backup show archivelogs from 10:30 to 10:40 if they had been deleted by the database backup script which has a delete input ? It is as if the database backup script did NOT delete the archivelogs and the noon run was the one to backup the archivelogs (again ?)
No, that is from the morning full backup. Note the 'Completion Time" of 25-Aug-2013 10:54:53
However, the error message seems to point to a datafile. Why would reverting the recovery point to 11:55 make a difference, I wonder.
As do I.
Also puzzling to me are the times associated with the completion of the backups. I don't recall ever having to scrutinize a backup listing this closely so I'm sure it's just a matter of filling in some gaps in my understanding, but I noticed this. The backup report (list backup;) shows this for the inc 0 backup:
BS Key Type LV Size
Device Type Elapsed Time Completion Time
5507388 Incr 0 206.03G
DISK
08:30:00
25-Aug-2013 10:41:30 ------- NOTE THE COMPLETION TIME ----
List of Datafiles in backup set 5507388
File LV Type Ckp SCN
Ckp Time
Name
1
0 Incr 45628880495 25-Aug-2013 02:11:38 +SMALL/dbprod/datafile/system.258.713574775
------ SNIP ------
74 0 Incr 45628880495 25-Aug-2013 02:11:38 +SMALL/dbprod/event_i2.dbf
Backup Set Copy #1 of backup set 5507388
Device Type Elapsed Time Completion Time
Compressed Tag
DISK
08:30:00
25-Aug-2013 10:41:36 YES
TAG_DBPROD ------- NOTE THE COMPLETION TIME ----
List of Backup Pieces for backup set 5507388 Copy #1
BP Key Pc# Status
Piece Name
5507391 1 AVAILABLE /u01/backup/dbprod/eeoi55iq_1_1.rman
------ SNIP ------
5507442 52 AVAILABLE /u01/backup/dbprod/eeoi55iq_52_1.rman
Then the autobackup of the control file immediatly following:
BS Key Type LV Size
Device Type Elapsed Time Completion Time
5507523 Full
61.89M
DISK
00:00:03
25-Aug-2013 10:41:47 ------- NOTE THE COMPLETION TIME ----
BP Key: 5507587 Status: AVAILABLE Compressed: NO Tag: TAG20130825T104144
Piece Name: /u01/backup/dbprod/DBPROD_c-3960114099-20130825-01_ctl.backup
SPFILE Included: Modification time: 25-Aug-2013 05:57:15
SPFILE db_unique_name: DBPROD
Control File Included: Ckp SCN: 45633141671 Ckp time: 25-Aug-2013 10:41:44
Then the archivelog backup immediately following (remember, this created a total of 5 backupset, I'm showing number 4)
BS Key Size
Device Type Elapsed Time Completion Time
5507687 650.19M
DISK
00:02:18
25-Aug-2013 10:54:53 ------- NOTE THE COMPLETION TIME ----
BP Key: 5507694 Status: AVAILABLE Compressed: YES Tag: TAG20130825T104156
Piece Name: /u01/backup/dbprod/ekoi643j_1_1.alog
List of Archived Logs in backup set 5507687
Thrd Seq
Low SCN
Low Time
Next SCN Next Time
1
1338518 45632944587 25-Aug-2013 05:58:18 45632947563 25-Aug-2013 05:58:20
------ SNIP ------
1
1338572 45633135750 25-Aug-2013 10:08:21 45633140240 25-Aug-2013 10:08:24
1
1338573 45633140240 25-Aug-2013 10:08:24 45633141350 25-Aug-2013 10:30:06
1
1338574 45633141350 25-Aug-2013 10:30:06 45633141705 25-Aug-2013 10:41:51
1
1338575 45633141705 25-Aug-2013 10:41:51 45633141725 25-Aug-2013 10:41:55
and the controlfile autobackup immediately following:
BS Key Type LV Size
Device Type Elapsed Time Completion Time
5507984 Full
61.89M
DISK
00:00:03
25-Aug-2013 10:55:07 ------- NOTE THE COMPLETION TIME ----
BP Key: 5508043 Status: AVAILABLE Compressed: NO Tag: TAG20130825T105504
Piece Name: /u01/backup/dbprod/DBPROD_c-3960114099-20130825-02_ctl.backup
SPFILE Included: Modification time: 25-Aug-2013 05:57:15
SPFILE db_unique_name: DBPROD
Control File Included: Ckp SCN: 45633142131 Ckp time: 25-Aug-2013 10:55:04
and yet, querying the rman catalog
SQL> select to_char(max(completion_time),'yyyy-mm-dd hh24:mi:ss')
2 from rc_backup_set_details
3 where db_name='DBPROD'
4 and backup_type='D'
5 and incremental_level=0
6 ;
TO_CHAR(MAX(COMPLET
2013-08-25 10:41:38
SQL>
which doesn't match (to the second) the completion time of either the full backup or the associated controlfile autobackp.
Hemant K Chitale
I hope this posts in a readable, understandable manner. I really struggeled with the 'enhanced editor', which I normally use. When I pasted in blocks from the rman report, it kept trying to make some sort of table structure out of it .... guess I'll have to follow that up with a question in the Community forum .... -
Getting SQL to recreate tablespaces in new database
Hi,
This is probably a dumb question but is there a way I can generate the sql to recreate all the tablespaces in my database. I have one with 100+ tablespaces each with several datafiles?
I looked at backup controlfile to trace but this just gives me the datafiles
Many thanks
SandySee Jonathan Lewis's post at http://jonathanlewis.wordpress.com/2009/12/31/dbms_metadata/
Instead
from dba_ts_quotas where username = 'TEST_USER'you could specify
from dba_tablespaces
order by 1Remember to SET LONG to an appropriate large enough value as the output from dbms_metadata.get_ddl is a CLOB.
Hemant K Chitale
Edited by: Hemant K Chitale on Jan 15, 2010 4:36 PM
Maybe you are looking for
-
File attachment encoding problem
Guys, I spend to much time trying to get trough this. I use xsl mapping for preparing to send mail by mail adapter. File is encoded ANSI (not UTF-8) when i zip it to import it as archive for using this in maaping. It's realy simple XSL. It's adding I
-
OS authentication and enterprise manager
Hello, I have configured my oracle 8i server to use OS authentification (windows NT). How do I have to fill in the prefered credentials to make it work? The only user I've managed to work with is 'internal' but enterprise manager gives the error 'VNI
-
How do I get events that I set up on my calendar to appear on my calendar?
I can enter events on my calendar, but the event never shows up on my calendar. Therefore I cannot view it after setting it up. I do get reminders for these events, so they are set up on the calendar. I just can't view them or change them if I nee
-
QuickTime X not playing .mp4s
One computer plays the .mp4 fine in QuickTime X, the other only plays .mp4s in QuickTime 7.... Additionally, on the machine that cannot play .mp4s in QuickTime X the Finder's preview function (press the space-bar) doesn't work. Nothing useful in /var
-
Problem in calling an Unix script in Sunopsis!!!
Hi, I have written a script in UNIX and when i call in it Sunopsis using the OS command and run,in the operator it says " Wrong Process Code " The script runs fine when run in UNIX shell.But why it is throwing an error when called in Sunopsis.Am i mi