Recovery with RMAN in case of complete lost of all files
Hi,
I am using RMAN in nocatalog mode to backup my databases to tape using the RMAN-Module for Legato.
I4ve read that in case of loosing all my controlfiles i cannot easily restore the controlfiles.
Lets assume the following scenario:
I am performing a daily full backup with RMAN in nocatalog mode. Approx. 2 hours after the completed backup my machine crashes and all files (i.e. OS-Files, Database, Controlfiles) are lost.
Now I have to reinstall the OS, reinstall Oracle and restore the backup.
Due to backups made with RMAN in nocatalog mode i have the restore the controlfies prior to restore the database. Metalink says restoring the controlfile from RMAN in nocatalog mode is not that easy.
Is there any way to restore the controlfile from RMAN in nocatalog mode in case of complete crash ??
Thanks.
Ronny.
RESTORE CONTROLFILE FROM 'filename...' doesn't appear to be supported in 8i.
What are the options for 8i?.
I have the backup sets with me from my previous installation before crash which also contains Control files.
However I am unclear as to how to proceed wit RMAN recovery with those files. There seems to be no way to point RMAN to those backupsets since RMAN apparently reads its information from catalog or the control file in case of nocatalog.
I think if there is a way to atleast restore the control file from the backup set, RMAN can proceed since it will find all the other backup details there.
Any help is greatly appreciated.
thanks
RP
Similar Messages
-
i am upgrading my 2008 macbook to an ssd drive and want to save my settings. how do i save then? I have my files backed up with time machine ,but dont want to restore all files ,as there might be some junk backed up too. Help will be appretiated
When you restore from a Time Machine back up you can pick and chose what is restored. It is not an all or nothing process. Nor do you have to do the partial restores all at the same time. If days after the first partial restore you find something else you want you can restore just that.
-
Completely lost - Crash ALL the time
Hi
I am completely lost and really need Dreamweaver to run
without crashing all
the time...
I have websites, some newer some made with Dreamweaver MX.
Some pages can be
opened and some cannot without crashes???
I run on Windows Vista Ultimate, and also have Office 2007
installed. Have
now uninstalled Groove, tried to run Dreamweaver in XP mode,
but the crashes
are stille there.
Has it to do with some pages are made in older version of
Dreamweaver? I
never "imported" the sites on the new Vista PC, I simply
copied all
directories to the new PC...
What do I do???
Help REALLY needed urgently
HelleHej helle,
It sounds like it could be an extension problem since it's
/page
related/ issue. try to disable all extension to see if that
helps.
You could also try to close DW, delete the configurations
folder and
restart DW to see if that helps. (on my XP system the folder
is located
here C:\Documents and Settings\user\Application
Data\Adobe\Dreamweaver 9 )
HTH
Kim
Helle skrev:
> Hi
>
> I am completely lost and really need Dreamweaver to run
without crashing
> all the time...
>
> I have websites, some newer some made with Dreamweaver
MX. Some pages
> can be opened and some cannot without crashes???
> I run on Windows Vista Ultimate, and also have Office
2007 installed.
> Have now uninstalled Groove, tried to run Dreamweaver in
XP mode, but
> the crashes are stille there.
> Has it to do with some pages are made in older version
of Dreamweaver? I
> never "imported" the sites on the new Vista PC, I simply
copied all
> directories to the new PC...
>
> What do I do???
>
> Help REALLY needed urgently
>
> Helle
>
Kim
http://www.geekministry.com -
Can you help me? I meet some errors when I do incomplete recovery with RMAN
In recover step, There are following errors:
RMAN-11001: Oracle Error: ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: '/d/db/oradata/db01/system01.dbf'
question:
1. Should I restore archive log files generated on July 16th back to orignal archive directory in order to avoid to recover failure?
2. Or Should I add the command "sql 'alter system archive log current'" in the backup script in order to avoid to recover failure?
The following is the detail information:
The database is ok when I try to do incomplete recovery database that was fully backed up on July,16th,2004. The database is oracle 8.1.7 and is in the archive mode:
The following is the backup script:
run {
allocate channel 'dev_0' type 'sbt_tape'
parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=db01,OB2BARLIST=ora8i_online)';
backup incremental level 0 filesperset 1
format 'ora8i_online<db01_%s:%t:%p>.dbf'
database
include current controlfile
archivelog all delete input;
I use it to do a full backup on July 16th,17th successfully.
And I use the following scripts to do incomplete recovery:
run {
allocate channel 'dev_0' type 'sbt_tape'
parms 'ENV=(OB2BARTYPE=ORACLE8,OB2APPNAME=db01)';
sql "alter database mount";
set until time ='17.07.2004';
restore database;
recover database;
sql "alter database open resetlogs";
sql "alter database open";
There script is successful in restore step. But there are some errors in recover step. The detail information is showing in following log:
RMAN-03022: compiling command: allocate
RMAN-03023: executing command: allocate
RMAN-08030: allocated channel: dev_0
RMAN-08500: channel dev_0: sid=13 devtype=SBT_TAPE
RMAN-08526: channel dev_0: HP OpenView OmniBack II A.04.10/176
RMAN-03022: compiling command: sql
RMAN-06162: sql statement: alter database mount
RMAN-03023: executing command: sql
RMAN-03022: compiling command: set
RMAN-03022: compiling command: restore
RMAN-03022: compiling command: IRESTORE
RMAN-03023: executing command: IRESTORE
RMAN-08016: channel dev_0: starting datafile backupset restore
RMAN-08502: set_count=2056 set_stamp=531622798 creation_time=16.07.2004
RMAN-08089: channel dev_0: specifying datafile(s) to restore from backup set
RMAN-08016: channel dev_0: starting datafile backupset restore
RMAN-08502: set_count=2180 set_stamp=531623409 creation_time=16.07.2004
RMAN-08089: channel dev_0: specifying datafile(s) to restore from backup set
RMAN-08523: restoring datafile 00001 to /d/db/oradata/db01/system01.dbf
RMAN-08023: channel dev_0: restored backup piece 1
RMAN-08511: piece handle=netace_ora8i_online<db01_2180:531623409:1>.dbf tag=null params=NULL
RMAN-08024: channel dev_0: restore complete
RMAN-08023: channel dev_0: restored backup piece 1
RMAN-08511: piece handle=netace_ora8i_online<db01_2212:531623994:1>.dbf tag=null params=NULL
RMAN-08024: channel dev_0: restore complete
RMAN-03022: compiling command: recover
RMAN-03022: compiling command: recover(1)
RMAN-03022: compiling command: recover(2)
RMAN-03022: compiling command: recover(3)
RMAN-03023: executing command: recover(3)
RMAN-08054: starting media recovery
RMAN-03022: compiling command: recover(4)
RMAN-03026: error recovery releasing channel resources
RMAN-11001: Oracle Error: ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: '/d/db/oradata/db01/system01.dbf'
RMAN-08031: released channel: dev_1
RMAN-08031: released channel: dev_2
RMAN-08031: released channel: dev_0
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure during compilation of command
RMAN-03013: command type: recover
RMAN-03002: failure during compilation of command
RMAN-03013: command type: recover(4)
RMAN-06003: ORACLE error from target database: ORA-01220: file based sort illegal before database is open
ORA-06512: at "SYS.X$DBMS_RCVMAN", line 7220
ORA-06512: at "SYS.X$DBMS_RCVMAN", line 5053
ORA-06512: at line 1
I repeat my questions:
1. Should I restore archive log files generated on July 16th back to original archive directory in order to avoid to recover failure?
2. Or Should I add the command "sql 'alter system archive log current'" in the backup script in order to avoid to recover failure?
Can you help me ? Thank you.You are correct. In RMAN8i, you should add the "alter system archive log current; command before you backup the archive logs.
You are running into the case where Oracle needs additional redo to make the database consistent that was located in the current online log at the time of the backup.
If you set UNTIL TIME to an earlier time does the recover work?
In Oracle9i, if you issue the command, "backup database plus archive logs", RMAN will automatically archive the current online log before performing the archive log backups.
Thanks, Tammy -
Can you help me? I meet errors when I do incomplete recovery with RMAN
In recover step, There are following errors:
RMAN-11001: Oracle Error: ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: '/d/db/oradata/db01/system01.dbf'
question:
1. Should I restore archive log files generated on July 16th back to orignal archive directory in order to avoid to recover failure?
2. Or Should I add the command "sql 'alter system archive log current'" in the backup script in order to avoid to recover failure?
The following is the detail information:
The database is ok when I try to do incomplete recovery database that was fully backed up on July,16th,2004. The database is oracle 8.1.7 and is in the archive mode:
The following is the backup script:
run {
allocate channel 'dev_0' type 'sbt_tape'
parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=db01,OB2BARLIST=ora8i_online)';
backup incremental level 0 filesperset 1
format 'ora8i_online<db01_%s:%t:%p>.dbf'
database
include current controlfile
archivelog all delete input;
I use it to do a full backup on July 16th,17th successfully.
And I use the following scripts to do incomplete recovery:
run {
allocate channel 'dev_0' type 'sbt_tape'
parms 'ENV=(OB2BARTYPE=ORACLE8,OB2APPNAME=db01)';
sql "alter database mount";
set until time ='17.07.2004';
restore database;
recover database;
sql "alter database open resetlogs";
sql "alter database open";
There script is successful in restore step. But there are some errors in recover step. The detail information is showing in following log:
RMAN-03022: compiling command: allocate
RMAN-03023: executing command: allocate
RMAN-08030: allocated channel: dev_0
RMAN-08500: channel dev_0: sid=13 devtype=SBT_TAPE
RMAN-08526: channel dev_0: HP OpenView OmniBack II A.04.10/176
RMAN-03022: compiling command: sql
RMAN-06162: sql statement: alter database mount
RMAN-03023: executing command: sql
RMAN-03022: compiling command: set
RMAN-03022: compiling command: restore
RMAN-03022: compiling command: IRESTORE
RMAN-03023: executing command: IRESTORE
RMAN-08016: channel dev_0: starting datafile backupset restore
RMAN-08502: set_count=2056 set_stamp=531622798 creation_time=16.07.2004
RMAN-08089: channel dev_0: specifying datafile(s) to restore from backup set
RMAN-08016: channel dev_0: starting datafile backupset restore
RMAN-08502: set_count=2180 set_stamp=531623409 creation_time=16.07.2004
RMAN-08089: channel dev_0: specifying datafile(s) to restore from backup set
RMAN-08523: restoring datafile 00001 to /d/db/oradata/db01/system01.dbf
RMAN-08023: channel dev_0: restored backup piece 1
RMAN-08511: piece handle=netace_ora8i_online<db01_2180:531623409:1>.dbf tag=null params=NULL
RMAN-08024: channel dev_0: restore complete
RMAN-08023: channel dev_0: restored backup piece 1
RMAN-08511: piece handle=netace_ora8i_online<db01_2212:531623994:1>.dbf tag=null params=NULL
RMAN-08024: channel dev_0: restore complete
RMAN-03022: compiling command: recover
RMAN-03022: compiling command: recover(1)
RMAN-03022: compiling command: recover(2)
RMAN-03022: compiling command: recover(3)
RMAN-03023: executing command: recover(3)
RMAN-08054: starting media recovery
RMAN-03022: compiling command: recover(4)
RMAN-03026: error recovery releasing channel resources
RMAN-11001: Oracle Error: ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: '/d/db/oradata/db01/system01.dbf'
RMAN-08031: released channel: dev_1
RMAN-08031: released channel: dev_2
RMAN-08031: released channel: dev_0
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure during compilation of command
RMAN-03013: command type: recover
RMAN-03002: failure during compilation of command
RMAN-03013: command type: recover(4)
RMAN-06003: ORACLE error from target database: ORA-01220: file based sort illegal before database is open
ORA-06512: at "SYS.X$DBMS_RCVMAN", line 7220
ORA-06512: at "SYS.X$DBMS_RCVMAN", line 5053
ORA-06512: at line 1
I repeat my questions:
1. Should I restore archive log files generated on July 16th back to original archive directory in order to avoid to recover failure?
2. Or Should I add the command "sql 'alter system archive log current'" in the backup script in order to avoid to recover failure?
Can you help me ? Thank you.which o.s u are using i can't help you as i never worked on ver 8i,i can tell you incomplete recovery on oracle 9i on win 2000 server.
thanks : alok kumar -
Problem with text frame dropshadow not completely printing to pdf file.
Hi and thanks for your speedy replies!
I am editing a file that had altered corner text frames with a .25 inset and a drop shadow added, .05 stroke and paper swatch. When I deleted text everything shifted so I had to recreate the special frames on select pages. These new text frames are not showing the top and left sides of the frames when saved to pdf file. The right and bottom drop shadow are showing. What am I missing?
Cheers!I am using the latest version in CC. I tried several exports directly from ID, PDF/X-3:2002, PDF/X-1a:2001 and the low res setting, all with no changes. None showed the left or top border on the frames in question.
So I was getting the first screen shot instead of the second which other similarly formatted frames showed. I checked every setting I could find and they were all the same. The problem just occurred after the point in the doc that I had made changes resulting in some pages being deleted and the page formatting being thrown off which I corrected with the appropriate saved page formats. But when I went to set up the frame dropshadow and accompanying stroke and swatches, the outline just would not show in the pdf although it appeared to be showing in ID.
I've since discovered a work around for the editing so no pages were deleted, but I need to figure out why this happened and what I am not seeing. Perhaps a setting to show the border? Or maybe it is some overall setting that I need to be looking for? Just weird, weird, weird... -
Novice with GarageBand: Can I export completed podcast as m4a file?
Hello
Can you help me?
I thought I could create a .m4A file from GarageBand, but I can't find a way to do that.
Is it possible? How do I do that? I'm on a MacBook, OS X 10.7.5 and GarageBand 6.0.5
Many thanks for looking and hopefully being able to answer this question.
JennieFirst of all, GarageBand is an amzing tool to record/prepare your enhanced podcast with all the artwork, chapters, etc.
You export your finished podcast the same way you would export a song.
You do that in from the Share Menu. Be careful, because the menu items are dynamic,whihc mean they change depending what is currently selected in your Project. Make sure you have the Podcast Track visible. This changes the "Send Song to iTunes..." to "Send Podcast to iTunes..."
On the next page, select Compress using AAC. That creates an .m4a file during the export.
Hope that helps
Edgar Rothermich
http://DingDingMusic.com/Manuals
'I may receive some form of compensation, financial or otherwise, from my recommendation or link.' -
Error: The instance completed without consuming all of its messages.
Hi,
I have following scenario.
I am processing messages in Sequential way. I have two Orchestration, Orch1 has transformation logic and Orch2 has Sequential processing logic. Orch2 is directly binded with MsgBox and receives the messages persisted by the Orch1 based on correlating property.
I need to sort the message based on ReceivedFileName(which is date time stamp). So In the Orch2, I am receiving all the messages within certain delay say 1min, adding to a List, sorting all the messages based on Filename and then sending to destination location one by one.
Now I am getting one error in Orch2 when the frequency is high. The error says "The instance completed without consuming all of its messages. The instance and its unconsumed messages have been suspended. " I believe the cause could be, when the Orch2 sending one batch of sorted messages then it might have received new messages meanwhile. And so, as the sorted messages are sent the Orch2 instance completes but there are new messages still attached to this Orch instance and thus its suspending.
I am totally not able to figure out how can I avoid this error. Also I don't want to terminate the suspended message(loss of message :().
Thanks in advanceAjeet KumarThanks for Reply.
I tried with this also, but the problem is even if I decide any end point for Convoy, then also I can't stop the Orchestration to not to subscribe new messages during its life time. I will explain this in detail
We can separately divide the Orch2(Order Delivery Orch) functionality into 3 parts and considering time lags.
1) Orch2 receives all the convoy msg from MsgBox say it took time t1(equal to the delay)
2) Not it will sort the messages based on FileName...say this operation took time t2
3) Now I am sending the sorted messages one by one to destination location. Say it took time t3 to send all the messages.
Now, if during the time delays (T2+T3) if any new message comes into Convoy orch, then the instance will suspend with the error "The instance completed without consuming all of its messages. The instance and its unconsumed messages have been suspended. ".
So is there any way to make sure that Convoy Orch does not receive any new msg during time T2+T3.Ajeet Kumar -
All Files Try to open with Photo Viewer
I was downloading some pictures and when finished ,now all files try to open with photo viewer. (ie Word,Excel,Paint,just all files lised on the menu. If someone knows how to fix this pleas reply.
Hi ObiWanKanobe,
I recommend you check the Default Programs. Follow these steps:
1. Click Start – input “default programs”(without quotation)
2. Click Set your default programs.
3. Choose Windows Photo Viewer in the left panel, then Choose defaults for this program.
4. Make sure you don’t check other types of files, like doc and so on.
Then check if the issue persists.
Regards,
Miya
This posting is provided "AS IS" with no warranties, and confers no rights. | Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer
your question. This can be beneficial to other community members reading the thread. -
After RMAN duplicate adcfgclone dbconfig completing with error
we have R12.1.1 on redhat 5.3 ( 64 bit ).
i am clonning my TEST server with RMAN hot full backup.
i am using command
rman target sys/prod_sys@PROD catalog rman/rman@PROD auxiliary /
run {
set until scn 5967654364306;
allocate auxiliary channel ch1 type disk;
allocate auxiliary channel ch2 type disk;
duplicate target database to TEST8002;}
when this command has restored database then i have to perform a
CANCEL based recovery
alter database open resetlogs;
after that when i run
perl adcfgclone dbconfig it is ending with error at 50%
Controlfile creation failed.
How to proceed ?
Edited by: user13376823 on Nov 13, 2012 7:03 PM'/opt/R12.1.3/oracle/db/apps_st/data/a_ref01.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/a_int01.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/a_summ01.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/a_nolog01.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/a_archive01.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/a_queue01.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/a_media01.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/a_ref02.dbf'
RESETLOGS MAXDATAFILES 512
MAXINSTANCES 8
MAXLOGFILES 32
MAXLOGHISTORY 14607
MAXLOGMEMBERS 5
WARNING: Default Temporary Tablespace not specified in CREATE DATABASE command
Default Temporary Tablespace will be necessary for a locally managed database in future release
Setting recovery target incarnation to 1
Successful mount of redo thread 1, with mount id 3760580547
Completed: CREATE CONTROLFILE REUSE SET DATABASE "TEST8002"
LOGFILE
GROUP 1 ('/opt/R12.1.3/oracle/db/apps_st/data/log01a.dbf', '/opt/R12.1.3/oracle/db/apps_st/data/log01b.dbf') SIZE 1048576000,
GROUP 2 ('/opt/R12.1.3/oracle/db/apps_st/data/log02a.dbf', '/opt/R12.1.3/oracle/db/apps_st/data/log02b.dbf') SIZE 1048576000
DATAFILE
'/opt/R12.1.3/oracle/db/apps_st/data/system12.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/system11.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/system10.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/system01.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/system02.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/system03.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/system04.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/system05.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/system06.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/system07.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/system08.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/system09.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/system13.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/sysaux01.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/sysaux02.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/ctxd01.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/a_txn_data04.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/a_txn_ind06.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/a_txn_data05.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/a_txn_data06.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/a_txn_ind07.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/a_txn_data07.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/a_txn_data01.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/a_txn_ind01.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/a_txn_data02.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/a_txn_data03.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/a_txn_ind02.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/a_txn_ind03.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/a_txn_ind04.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/a_txn_ind05.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/owad01.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/a_queue02.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/odm.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/olap.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/apps_ts_tools01.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/a_ref03.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/a_int02.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/a_media02.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/undo02.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/sscards_01.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/rman_01.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/a_summ02.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/a_summ03.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/portal01.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/undo01.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/a_ref01.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/a_int01.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/a_summ01.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/a_nolog01.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/a_archive01.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/a_queue01.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/a_media01.dbf',
'/opt/R12.1.3/oracle/db/apps_st/data/a_ref02.dbf'
RESETLOGS MAXDATAFILES 512
MAXINSTANCES 8
MAXLOGFILES 32
MAXLOGHISTORY 14607
MAXLOGMEMBERS 5
alter database open resetlogs
ORA-1194 signalled during: alter database open resetlogs...
alter tablespace TEMP1 add tempfile '/opt/R12.1.3/oracle/db/apps_st/data/temp01.dbf' REUSE
ORA-1109 signalled during: alter tablespace TEMP1 add tempfile '/opt/R12.1.3/oracle/db/apps_st/data/temp01.dbf' REUSE...
alter tablespace TEMP2 add tempfile '/opt/R12.1.3/oracle/db/apps_st/data/temp02.dbf' REUSE
ORA-1109 signalled during: alter tablespace TEMP2 add tempfile '/opt/R12.1.3/oracle/db/apps_st/data/temp02.dbf' REUSE...
alter tablespace TEMP1 add tempfile '/opt/R12.1.3/oracle/db/apps_st/data/temp01A.dbf' REUSE
ORA-1109 signalled during: alter tablespace TEMP1 add tempfile '/opt/R12.1.3/oracle/db/apps_st/data/temp01A.dbf' REUSE...
alter tablespace TEMP2 add tempfile '/opt/R12.1.3/oracle/db/apps_st/data/temp02A.dbf' REUSE
ORA-1109 signalled during: alter tablespace TEMP2 add tempfile '/opt/R12.1.3/oracle/db/apps_st/data/temp02A.dbf' REUSE...
alter tablespace TEMP1 add tempfile '/opt/R12.1.3/oracle/db/apps_st/data/temp03.dbf' REUSE
ORA-1109 signalled during: alter tablespace TEMP1 add tempfile '/opt/R12.1.3/oracle/db/apps_st/data/temp03.dbf' REUSE...
Wed Nov 14 20:44:52 2012
Shutting down instance (abort)
License high water mark = 1
USER (ospid: 4918): terminating the instance
Instance terminated by USER, pid = 4918
Wed Nov 14 20:44:53 2012
Instance shutdown complete
Wed Nov 14 20:45:58 2012
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Picked latch-free SCN scheme 3
Using LOG_ARCHIVE_DEST_1 parameter default value as /opt/R12.1.3/oracle/db/tech_st/11.1.0/dbs/arch
Autotune of undo retention is turned on.
IMODE=BR
ILAT =44
LICENSE_MAX_USERS = 0
SYS auditing is disabled
Starting up ORACLE RDBMS Version: 11.1.0.7.0.
Using parameter settings in client-side pfile /opt/R12.1.3/oracle/db/tech_st/11.1.0/dbs/initTEST8002.ora on machine testing.fgho.com
System parameters with non-default values:
processes = 200
sessions = 400
timed_statistics = TRUE
shared_pool_size = 400M
shared_pool_reserved_size= 40M
nls_language = "american"
nls_territory = "america"
nls_sort = "binary"
nls_date_format = "DD-MON-RR"
nls_numeric_characters = ".,"
nls_comp = "binary"
nls_length_semantics = "BYTE"
sga_target = 1G
control_files = "/opt/R12.1.3/oracle/db/apps_st/data/cntrl01.dbf"
control_files = "/opt/R12.1.3/oracle/db/apps_st/data/cntrl02.dbf"
control_files = "/opt/R12.1.3/oracle/db/apps_st/data/cntrl03.dbf"
db_block_checksum = "TRUE"
db_block_size = 8192
compatible = "11.1.0"
log_buffer = 10485760
log_checkpoint_interval = 100000
log_checkpoint_timeout = 1200
db_files = 512
log_checkpoints_to_alert = TRUE
dml_locks = 10000
undo_management = "AUTO"
undo_tablespace = "APPS_UNDOTS1"
db_block_checking = "FALSE"
sec_case_sensitive_logon = FALSE
session_cached_cursors = 500
utl_file_dir = "/usr/tmp"
utl_file_dir = "/usr/tmp"
utl_file_dir = "/opt/R12.1.3/oracle/db/tech_st/11.1.0/appsutil/outbound/TEST8002_testing"
utl_file_dir = "/usr/tmp"
plsql_native_library_dir = "/opt/R12.1.3/oracle/db/tech_st/11.1.0/plsql/nativelib"
plsql_native_library_subdir_count= 149
plsql_code_type = "INTERPRETED"
plsql_optimize_level = 2
job_queue_processes = 2
systemtrig_enabled = TRUE
cursor_sharing = "EXACT"
parallel_min_servers = 0
parallel_max_servers = 8
db_name = "TEST8002"
open_cursors = 600
ifile = "/opt/R12.1.3/oracle/db/tech_st/11.1.0/dbs/TEST8002_testing_ifile.ora"
sortelimination_cost_ratio= 5
btree_bitmap_plans = FALSE
fastfull_scan_enabled = FALSE
query_rewrite_enabled = "true"
indexjoin_enabled = FALSE
sqlexecprogression_cost= 2147483647
likewith_bind_as_equality= TRUE
pga_aggregate_target = 1G
workarea_size_policy = "AUTO"
optimizerautostats_job = FALSE
optimizer_secure_view_merging= FALSE
aq_tm_processes = 1
olap_page_pool_size = 4M
diagnostic_dest = "/opt/R12.1.3/oracle/db/tech_st/11.1.0/admin/TEST8002_testing"
tracefiles_public = TRUE
max_dump_file_size = "20480"
Wed Nov 14 20:45:58 2012
PMON started with pid=2, OS id=5067
Wed Nov 14 20:45:58 2012
VKTM started with pid=3, OS id=5069
VKTM running at (100ms) precision
Wed Nov 14 20:45:58 2012
DIAG started with pid=4, OS id=5073
Wed Nov 14 20:45:58 2012
DBRM started with pid=5, OS id=5075
Wed Nov 14 20:45:58 2012
PSP0 started with pid=6, OS id=5077
Wed Nov 14 20:45:58 2012
DIA0 started with pid=7, OS id=5079
Wed Nov 14 20:45:58 2012
MMAN started with pid=8, OS id=5081
Wed Nov 14 20:45:58 2012
DBW0 started with pid=9, OS id=5083
Wed Nov 14 20:45:58 2012
DBW1 started with pid=10, OS id=5085
Wed Nov 14 20:45:58 2012
LGWR started with pid=11, OS id=5087
Wed Nov 14 20:45:58 2012
CKPT started with pid=12, OS id=5089
Wed Nov 14 20:45:58 2012
SMON started with pid=13, OS id=5091
Wed Nov 14 20:45:58 2012
RECO started with pid=14, OS id=5093
Wed Nov 14 20:45:58 2012
MMON started with pid=15, OS id=5095
Wed Nov 14 20:45:58 2012
MMNL started with pid=16, OS id=5097
ORACLE_BASE not set in environment. It is recommended
that ORACLE_BASE be set in the environment
Wed Nov 14 20:45:58 2012
ALTER DATABASE MOUNT
Set as converted control file due to db_unique_name mismatch
Changing di2dbun from to TEST8002
Setting recovery target incarnation to 1
Successful mount of redo thread 1, with mount id 3760563974
Database mounted in Exclusive Mode
Lost write protection disabled
Completed: ALTER DATABASE MOUNT
Wed Nov 14 20:46:02 2012
ALTER DATABASE OPEN
ORA-1589 signalled during: ALTER DATABASE OPEN...
Wed Nov 14 20:46:47 2012
alter database open resetlogs
ORA-1194 signalled during: alter database open resetlogs...
Wed Nov 14 20:47:11 2012
ALTER DATABASE RECOVER database until cancel using backup controlfile
Media Recovery Start
Fast Parallel Media Recovery enabled
Errors in file /opt/R12.1.3/oracle/db/tech_st/11.1.0/admin/TEST8002_testing/diag/rdbms/test8002/TEST8002/trace/TEST8002_ora_5127.trc (incident=6537):
ORA-00600: internal error code, arguments: [kcvhvdf_1], [], [], [], [], [], [], [], [], [], [], []
Incident details in: /opt/R12.1.3/oracle/db/tech_st/11.1.0/admin/TEST8002_testing/diag/rdbms/test8002/TEST8002/incident/incdir_6537/TEST8002_ora_5127_i65 37.trc
Media Recovery failed with error 600
ORA-283 signalled during: ALTER DATABASE RECOVER database until cancel using backup controlfile ...
Wed Nov 14 20:47:13 2012
Trace dumping is performing id=[cdmp_20121114204713]
Wed Nov 14 20:47:13 2012
Sweep Incident[6537]: completed -
Control file lost and datafile addeed restore/recovery with no data loss
Here i have tried to the following
created new table called t2 and made sure data went to a specific tablespace...
took a level 0 backup
removed the control file
added couple of datafile to above tablespace and then inserted more data
then went out to restore control file and the database...but datafile still could not be opened ?? what did i do wrong here....
SQL> @datafile
-- list of datafile
Tablespace File Typ Tablespac File Stat Used MB Free MB FILE_MB MAXMB Datafile_name FILE_ID AUT
UNDOTBS1 Datafile ONLINE AVAILABLE 16 84 100 1,024 /data/trgt/undotbs01.dbf 3 YES
USERS Datafile ONLINE AVAILABLE 1153 895 2048 3,072 /data3/trgt/user02.dbf 5 YES
CNT_TST Datafile ONLINE AVAILABLE 1 9 10 0 /data3/trgt/cnt_tst01.dbf 7 NO
SYSAUX Datafile ONLINE AVAILABLE 626 35 660 32,768 /data/trgt/sysaux01.dbf 2 YES
USERS Datafile ONLINE AVAILABLE 2031 17 2048 2,048 /data3/trgt/move/users01.dbf 4 YES
SYSTEM Datafile ONLINE AVAILABLE 712 58 770 32,768 /data/trgt/system01.dbf 1 YES
USERS Datafile ONLINE AVAILABLE 65 35 100 32,768 /data3/trgt/users03.dbf 6 YES
7 rows selected.
-- new table is created called t2 and its going into TS called cnt_tst
SQL> CREATE TABLE TEST.T2
C1 DATE,
C2 NUMBER,
C3 NUMBER,
C4 VARCHAR2(300 BYTE)
TABLESPACE cnt_tst; 2 3 4 5 6 7 8
Table created.
-- data inserted
SQL> INSERT INTO
test.T2
SELECT
FROM
(SELECT
SYSDATE,
ROWNUM C2,
DECODE(MOD(ROWNUM,100),99,99,1) C3,
RPAD('A',300,'A') C4
FROM
DUAL
CONNECT BY
LEVEL <= 10000)
; 2 3 4 5 6 7 8 9 10 11 12 13 14 15
10000 rows created.
SQL> commit;
Commit complete.
-- to check of cnt_tst has any free space or not, as we can see its full
SQL> @datafile
Tablespace File Typ Tablespac File Stat Used MB Free MB FILE_MB MAXMB Datafile_name FILE_ID AUT
UNDOTBS1 Datafile ONLINE AVAILABLE 16 84 100 1,024 /data/trgt/undotbs01.dbf 3 YES
USERS Datafile ONLINE AVAILABLE 1153 895 2048 3,072 /data3/trgt/user02.dbf 5 YES
SYSAUX Datafile ONLINE AVAILABLE 626 35 660 32,768 /data/trgt/sysaux01.dbf 2 YES
USERS Datafile ONLINE AVAILABLE 2031 17 2048 2,048 /data3/trgt/move/users01.dbf 4 YES
SYSTEM Datafile ONLINE AVAILABLE 712 58 770 32,768 /data/trgt/system01.dbf 1 YES
USERS Datafile ONLINE AVAILABLE 65 35 100 32,768 /data3/trgt/users03.dbf 6 YES
CNT_TST Datafile ONLINE AVAILABLE 10 0 10 0 /data3/trgt/cnt_tst01.dbf 7 NO
7 rows selected.
SQL> select count(*) from test.t2;
COUNT(*)
10000
1 row selected.
-- to get a count and max on date
SQL> select max(c1) from test.t2;
MAX(C1)
29-feb-12 13:47:52
1 row selected.
SQL> -- AT THIS POINT A LEVEL 0 BACKUP IS TAKEN (using backup database plus archivelog)
SQL> -- now control files are removed
SQL> select name from v$controlfile;
NAME
/ctrl/trgt/control01.ctl
/ctrl/trgt/control02.ctl
2 rows selected.
SQL>
SQL> ! rm /ctrl/trgt/control01.ctl
SQL> ! rm /ctrl/trgt/control02.ctl
SQL> ! ls -ltr /ctrl/trgt/
ls: /ctrl/trgt/: No such file or directory
SQL>
-- new datafile is added to CNT_TST TABLESPACE and new data is added as well
SQL> ALTER TABLESPACE CNT_TST ADD DATAFILE '/data3/trgt/CNT_TST02.dbf' SIZE 100M AUTOEXTEND OFF;
Tablespace altered.
SQL> ALTER SYSTEM CHECKPOINT;
System altered.
SQL> alter system switch logfile;
System altered.
SQL> /
System altered.
SQL> /
System altered.
SQL> ALTER TABLESPACE CNT_TST ADD DATAFILE '/data3/trgt/CNT_TST03.dbf' SIZE 100M AUTOEXTEND OFF;
Tablespace altered.
SQL> INSERT INTO
test.T2
SELECT
FROM
(SELECT
SYSDATE,
ROWNUM C2,
DECODE(MOD(ROWNUM,100),99,99,1) C3,
RPAD('A',300,'A') C4
FROM
DUAL
CONNECT BY
LEVEL <= 10000)
; 2 3 4 5 6 7 8 9 10 11 12 13 14 15
10000 rows created.
SQL> /
10000 rows created.
SQL> commit;
Commit complete.
SQL> INSERT INTO
test.T2
SELECT
FROM
(SELECT
SYSDATE,
ROWNUM C2,
DECODE(MOD(ROWNUM,100),99,99,1) C3,
RPAD('A',300,'A') C4
FROM
DUAL
CONNECT BY
LEVEL <= 40000)
; 2 3 4 5 6 7 8 9 10 11 12 13 14 15
40000 rows created.
SQL> commit;
Commit complete.
SQL> @datafile
-- to make sure new datafile has been registered with the DB
Tablespace File Typ Tablespac File Stat Used MB Free MB FILE_MB MAXMB Datafile_name FILE_ID AUT
CNT_TST Datafile ONLINE AVAILABLE 9 91 100 0 /data3/trgt/CNT_TST03.dbf 9 NO
UNDOTBS1 Datafile ONLINE AVAILABLE 16 84 100 1,024 /data/trgt/undotbs01.dbf 3 YES
USERS Datafile ONLINE AVAILABLE 1153 895 2048 3,072 /data3/trgt/user02.dbf 5 YES
CNT_TST Datafile ONLINE AVAILABLE 9 91 100 0 /data3/trgt/CNT_TST02.dbf 8 NO
SYSAUX Datafile ONLINE AVAILABLE 626 35 660 32,768 /data/trgt/sysaux01.dbf 2 YES
USERS Datafile ONLINE AVAILABLE 2031 17 2048 2,048 /data3/trgt/move/users01.dbf 4 YES
SYSTEM Datafile ONLINE AVAILABLE 712 58 770 32,768 /data/trgt/system01.dbf 1 YES
USERS Datafile ONLINE AVAILABLE 65 35 100 32,768 /data3/trgt/users03.dbf 6 YES
CNT_TST Datafile ONLINE AVAILABLE 10 0 10 0 /data3/trgt/cnt_tst01.dbf 7 NO
9 rows selected.
-- now the count and max ... note count before backup was 10000 and max(c1) was diff
SQL> select count(*) from test.t2;
COUNT(*)
70000
1 row selected.
SQL> select max(c1) from test.t2;
MAX(C1)
29-feb-12 13:58:25
1 row selected.
SQL> -- now restore starts
SQL> shutdown abort;
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@berry trgt]$ rman
Recovery Manager: Release 11.2.0.1.0 - Production on Wed Feb 29 14:01:48 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
RMAN> connect catalog rman/pass@rcat
connected to recovery catalog database
RMAN> connect target /
connected to target database (not started)
RMAN> startup nomount;
Oracle instance started
Total System Global Area 188313600 bytes
Fixed Size 1335388 bytes
Variable Size 125833124 bytes
Database Buffers 58720256 bytes
Redo Buffers 2424832 bytes
RMAN> restore controlfile from autobackup;
Starting restore at 29-FEB-12 14:02:37
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=20 device type=DISK
recovery area destination: /backup/trgt/flash_recovery_area
database name (or database unique name) used for search: TRGT
channel ORA_DISK_1: no AUTOBACKUPS found in the recovery area
channel ORA_DISK_1: looking for AUTOBACKUP on day: 20120229
channel ORA_DISK_1: AUTOBACKUP found: /backup/trgt/backup/cont_c-3405317011-20120229-09
channel ORA_DISK_1: restoring control file from AUTOBACKUP /backup/trgt/backup/cont_c-3405317011-20120229-09
channel ORA_DISK_1: control file restore from AUTOBACKUP complete
output file name=/ctrl/trgt/control01.ctl
output file name=/ctrl/trgt/control02.ctl
Finished restore at 29-FEB-12 14:02:39
RMAN> alter database mount;
database mounted
released channel: ORA_DISK_1
RMAN> recover database;
Starting recover at 29-FEB-12 14:02:55
Starting implicit crosscheck backup at 29-FEB-12 14:02:55
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=20 device type=DISK
Crosschecked 96 objects
Finished implicit crosscheck backup at 29-FEB-12 14:02:57
Starting implicit crosscheck copy at 29-FEB-12 14:02:57
using channel ORA_DISK_1
Finished implicit crosscheck copy at 29-FEB-12 14:02:57
searching for all files in the recovery area
cataloging files...
no files cataloged
using channel ORA_DISK_1
starting media recovery
archived log for thread 1 with sequence 13 is already on disk as file /redo_archive/trgt/online/redo01.log
archived log for thread 1 with sequence 14 is already on disk as file /redo_archive/trgt/online/redo02.log
archived log for thread 1 with sequence 15 is already on disk as file /redo_archive/trgt/online/redo03.log
archived log file name=/redo_archive/trgt/archive/1_10_776523284.dbf thread=1 sequence=10
archived log file name=/redo_archive/trgt/archive/1_10_776523284.dbf thread=1 sequence=10
archived log file name=/redo_archive/trgt/archive/1_11_776523284.dbf thread=1 sequence=11
archived log file name=/redo_archive/trgt/archive/1_12_776523284.dbf thread=1 sequence=12
archived log file name=/redo_archive/trgt/online/redo01.log thread=1 sequence=13
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 02/29/2012 14:02:59
ORA-01422: exact fetch returns more than requested number of rows
RMAN-20505: create datafile during recovery
RMAN-11003: failure during parse/execution of SQL statement: alter database recover logfile '/redo_archive/trgt/online/redo01.log'
ORA-00283: recovery session canceled due to errors
ORA-01244: unnamed datafile(s) added to control file by media recovery
ORA-01110: data file 9: '/data3/trgt/CNT_TST03.dbf'
RMAN> -- wnet to session 2 and renamed datafile from unammed-- wnet to session 2 and renamed datafile for unammed file
SQL> select name from v$datafile;
NAME
/data/trgt/system01.dbf
/data/trgt/sysaux01.dbf
/data/trgt/undotbs01.dbf
/data3/trgt/move/users01.dbf
/data3/trgt/user02.dbf
/data3/trgt/users03.dbf
/data3/trgt/cnt_tst01.dbf
/oracle/app/product/11.2.0/dbhome_1/dbs/UNNAMED00008
/oracle/app/product/11.2.0/dbhome_1/dbs/UNNAMED00009
9 rows selected.
SQL> alter database create datafile '/oracle/app/product/11.2.0/dbhome_1/dbs/UNNAMED00008' as '/data3/trgt/CNT_TST02.dbf';
Database altered.
SQL> alter database create datafile '/oracle/app/product/11.2.0/dbhome_1/dbs/UNNAMED00009' as '/data3/trgt/CNT_TST03.dbf';
Database altered.
SQL> select name from v$datafile;
NAME
/data/trgt/system01.dbf
/data/trgt/sysaux01.dbf
/data/trgt/undotbs01.dbf
/data3/trgt/move/users01.dbf
/data3/trgt/user02.dbf
/data3/trgt/users03.dbf
/data3/trgt/cnt_tst01.dbf
/data3/trgt/CNT_TST02.dbf
/data3/trgt/CNT_TST03.dbf
9 rows selected.after above was done, went back to session 1 and tried recovered the DB
RMAN> recover database;
Starting recover at 29-FEB-12 14:06:16
using channel ORA_DISK_1
starting media recovery
archived log for thread 1 with sequence 13 is already on disk as file /redo_archive/trgt/online/redo01.log
archived log for thread 1 with sequence 14 is already on disk as file /redo_archive/trgt/online/redo02.log
archived log for thread 1 with sequence 15 is already on disk as file /redo_archive/trgt/online/redo03.log
archived log file name=/redo_archive/trgt/online/redo01.log thread=1 sequence=13
archived log file name=/redo_archive/trgt/online/redo02.log thread=1 sequence=14
archived log file name=/redo_archive/trgt/online/redo03.log thread=1 sequence=15
media recovery complete, elapsed time: 00:00:00
Finished recover at 29-FEB-12 14:06:17
RMAN> alter database open resetlogs;
database opened
new incarnation of database registered in recovery catalog
starting full resync of recovery catalog
full resync complete
starting full resync of recovery catalog
full resync complete
RMAN> exit
Recovery Manager complete.
[oracle@berry trgt]$
[oracle@berry trgt]$
[oracle@berry trgt]$ sq
SQL*Plus: Release 11.2.0.1.0 Production on Wed Feb 29 14:07:18 2012
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> alter session set NLS_DATE_FORMAT="dd-mon-yy hh24:mi:ss:
2
SQL>
SQL> alter session set NLS_DATE_FORMAT="dd-mon-yy hh24:mi:ss";
Session altered.
SQL> select count(*) from test.t2;
select count(*) from test.t2
ERROR at line 1:
ORA-00376: file 8 cannot be read at this time
ORA-01110: data file 8: '/data3/trgt/CNT_TST02.dbf'
SQL> select max(c1) from test.t2;
select max(c1) from test.t2
ERROR at line 1:
ORA-00376: file 8 cannot be read at this time
ORA-01110: data file 8: '/data3/trgt/CNT_TST02.dbf'
SQL> alter database datafile 8 online;
alter database datafile 8 online
ERROR at line 1:
ORA-01190: control file or data file 8 is from before the last RESETLOGS
ORA-01110: data file 8: '/data3/trgt/CNT_TST02.dbf'
{code}
so what did i do wrong in my recovery that i could not get my data?? how can i avoid this?? and restore my DB?
Edited by: user8363520 on Feb 29, 2012 12:24 PMuser8363520 wrote:
Here i have tried to the following
created new table called t2 and made sure data went to a specific tablespace...
took a level 0 backup
removed the control file
added couple of datafile to above tablespace and then inserted more data
then went out to restore control file and the database...but datafile still could not be opened ?? what did i do wrong here....
SQL> @datafile
-- list of datafile
Tablespace File Typ Tablespac File Stat Used MB Free MB FILE_MB MAXMB Datafile_name FILE_ID AUT
UNDOTBS1 Datafile ONLINE AVAILABLE 16 84 100 1,024 /data/trgt/undotbs01.dbf ; 3 YES
USERS Datafile ONLINE AVAILABLE 1153 895 2048 3,072 /data3/trgt/user02.dbf ; 5 YES
CNT_TST Datafile ONLINE AVAILABLE 1 9 10 0 /data3/trgt/cnt_tst01.dbf ; 7 NO
SYSAUX Datafile ONLINE AVAILABLE 626 35 660 32,768 /data/trgt/sysaux01.dbf ; 2 YES
USERS Datafile ONLINE AVAILABLE 2031 17 2048 2,048 /data3/trgt/move/users01.dbf ; 4 YES
SYSTEM Datafile ONLINE AVAILABLE 712 58 770 32,768 /data/trgt/system01.dbf ; 1 YES
USERS Datafile ONLINE AVAILABLE 65 35 100 32,768 /data3/trgt/users03.dbf ; 6 YES
7 rows selected.
-- new table is created called t2 and its going into TS called cnt_tst
SQL> CREATE TABLE TEST.T2
C1 DATE,
C2 NUMBER,
C3 NUMBER,
C4 VARCHAR2(300 BYTE)
TABLESPACE cnt_tst; 2 3 4 5 6 7 8
Table created.
-- data inserted
SQL> INSERT INTO
test.T2
SELECT
FROM
(SELECT
SYSDATE,
ROWNUM C2,
DECODE(MOD(ROWNUM,100),99,99,1) C3,
RPAD('A',300,'A') C4
FROM
DUAL
CONNECT BY
LEVEL <= 10000)
; 2 3 4 5 6 7 8 9 10 11 12 13 14 15
10000 rows created.
SQL> commit;
Commit complete.
-- to check of cnt_tst has any free space or not, as we can see its full
SQL> @datafile
Tablespace File Typ Tablespac File Stat Used MB Free MB FILE_MB MAXMB Datafile_name FILE_ID AUT
UNDOTBS1 Datafile ONLINE AVAILABLE 16 84 100 1,024 /data/trgt/undotbs01.dbf ; 3 YES
USERS Datafile ONLINE AVAILABLE 1153 895 2048 3,072 /data3/trgt/user02.dbf ; 5 YES
SYSAUX Datafile ONLINE AVAILABLE 626 35 660 32,768 /data/trgt/sysaux01.dbf ; 2 YES
USERS Datafile ONLINE AVAILABLE 2031 17 2048 2,048 /data3/trgt/move/users01.dbf ; 4 YES
SYSTEM Datafile ONLINE AVAILABLE 712 58 770 32,768 /data/trgt/system01.dbf ; 1 YES
USERS Datafile ONLINE AVAILABLE 65 35 100 32,768 /data3/trgt/users03.dbf ; 6 YES
CNT_TST Datafile ONLINE AVAILABLE 10 0 10 0 /data3/trgt/cnt_tst01.dbf ; 7 NO
7 rows selected.
SQL> select count(*) from test.t2;
COUNT(*)
10000
1 row selected.
-- to get a count and max on date
SQL> select max(c1) from test.t2;
MAX(C1)
29-feb-12 13:47:52
1 row selected.
SQL> -- AT THIS POINT A LEVEL 0 BACKUP IS TAKEN (using backup database plus archivelog)
SQL> -- now control files are removed
SQL> select name from v$controlfile;
NAME
/ctrl/trgt/control01.ctl
/ctrl/trgt/control02.ctl
2 rows selected.
SQL>
SQL> ! rm /ctrl/trgt/control01.ctl
SQL> ! rm /ctrl/trgt/control02.ctl
SQL> ! ls -ltr /ctrl/trgt/
ls: /ctrl/trgt/: No such file or directory
SQL>
-- new datafile is added to CNT_TST TABLESPACE and new data is added as well
SQL> ALTER TABLESPACE CNT_TST ADD DATAFILE '/data3/trgt/CNT_TST02.dbf' SIZE 100M AUTOEXTEND OFF;
Tablespace altered.
SQL> ALTER SYSTEM CHECKPOINT;
System altered. Upto this i was clear, but now i cann't understand when you actually dropped the control file from you database(in running stat) how can you perform "alter system checkpoint" and other "alter tablespace.." command? Once controlfile is inaccessible, oracle database is not suppose to function. -
Tablespace Point in Time Recovery fails with RMAN-06026:
I have cataloged with RMAN the datafiles from Snapshot backup. Still it fails with the following error.
RMAN> RECOVER TABLESPACE TSPC UNTIL TIME "to_date('03-apr-2013 02:18:00','dd-mon-yyyy hh24:mi:ss')" AUXILIARY DESTINATION '/tmp/auxpran';
Starting recover at 03-APR-13
using channel ORA_DISK_1
RMAN-05026: WARNING: presuming following set of tablespaces applies to specified point-in-time
List of tablespaces expected to have UNDO segments
Tablespace SYSTEM
Tablespace UNDOTBS1
Creating automatic instance, with SID='Ebgt'
initialization parameters used for automatic instance:
db_name=ORCL
db_unique_name=Ebgt_tspitr_ORCL
compatible=11.2.0.0.0
db_block_size=8192
db_files=200
sga_target=280M
processes=50
db_create_file_dest=/tmp/auxpran
log_archive_dest_1='location=/tmp/auxpran'
#No auxiliary parameter file used
starting up automatic instance ORCL
Oracle instance started
Total System Global Area 292933632 bytes
Fixed Size 1336092 bytes
Variable Size 100666596 bytes
Database Buffers 184549376 bytes
Redo Buffers 6381568 bytes
Automatic instance created
Running TRANSPORT_SET_CHECK on recovery set tablespaces
TRANSPORT_SET_CHECK completed successfully
contents of Memory Script:
# set requested point in time
set until time "to_date('03-apr-2013 02:18:00','dd-mon-yyyy hh24:mi:ss')";
# restore the controlfile
restore clone controlfile;
# mount the controlfile
sql clone 'alter database mount clone database';
# archive current online log
sql 'alter system archive log current';
# avoid unnecessary autobackups for structural changes during TSPITR
sql 'begin dbms_backup_restore.AutoBackupFlag(FALSE); end;';
executing Memory Script
executing command: SET until clause
Starting restore at 03-APR-13
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=19 device type=DISK
channel ORA_AUX_DISK_1: restoring control file
channel ORA_AUX_DISK_1: copied control file copy
input file name=/tmp/auxpran/controlbc.ctl
output file name=/tmp/auxpran/ORCL/controlfile/o1_mf_8opkv8v4_.ctl
Finished restore at 03-APR-13
sql statement: alter database mount clone database
sql statement: alter system archive log current
sql statement: begin dbms_backup_restore.AutoBackupFlag(FALSE); end;
contents of Memory Script:
# set requested point in time
set until time "to_date('03-apr-2013 02:18:00','dd-mon-yyyy hh24:mi:ss')";
# set destinations for recovery set and auxiliary set datafiles
set newname for clone datafile 1 to new;
set newname for clone datafile 3 to new;
set newname for clone datafile 2 to new;
set newname for clone tempfile 1 to new;
set newname for datafile 5 to
"+DG_DATA/orcl/datafile/tspc.268.811733685";
# switch all tempfiles
switch clone tempfile all;
# restore the tablespaces in the recovery set and the auxiliary set
restore clone datafile 1, 3, 2, 5;
switch clone datafile all;
executing Memory Script
executing command: SET until clause
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
renamed tempfile 1 to /tmp/auxpran/ORCL/datafile/o1_mf_temp_%u_.tmp in control file
Starting restore at 03-APR-13
using channel ORA_AUX_DISK_1
One or more auxiliary set datafiles could not be removed
Removing automatic instance
shutting down automatic instance
database dismounted
Oracle instance shut down
Automatic instance removed
auxiliary instance file /tmp/auxpran/ORCL/controlfile/o1_mf_8opkv8v4_.ctl deleted
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 04/03/2013 02:32:55
RMAN-03015: error occurred in stored script Memory Script
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 2 found to restore
RMAN-06023: no backup or copy of datafile 3 found to restore
RMAN-06023: no backup or copy of datafile 1 found to restore
Could anyone please reply ASAP?
Regards,
PranamI had created a snapshot of the database(datafiles and archivelogs) and cataloged them.
CATALOG START WITH "+TBL_DG_DATA/ORCL/DATAFILE/" NOPROMPT;
catalog start with "+DG_ARCH/ORCL/ARCHIVELOG/" NOPROMPT;
The time i gave was after the snapshot was created.
When it failed the first time I created another controlfile using
sql "alter database backup controlfile to ''/tmp/auxpran/controlbc.ctl''";
And ran the recover command after the time after i generated this controlfile. Changed nothing else. TSPITR completed successfully. But it had failed first time. Cannot figure how it ran the second time but failed the first time.
Removing automatic instance
Automatic instance removed
auxiliary instance file /tmp/auxpran/ORCL/datafile/o1_mf_temp_8opndd87_.tmp deleted
auxiliary instance file /tmp/auxpran/ORCL/onlinelog/o1_mf_3_8opnd1o6_.log deleted
auxiliary instance file /tmp/auxpran/ORCL/onlinelog/o1_mf_2_8opncy32_.log deleted
auxiliary instance file /tmp/auxpran/ORCL/onlinelog/o1_mf_1_8opncv7d_.log deleted
auxiliary instance file /tmp/auxpran/ORCL/datafile/o1_mf_sysaux_8opn516p_.dbf deleted
auxiliary instance file /tmp/auxpran/ORCL/datafile/o1_mf_undotbs1_8opn4j14_.dbf deleted
auxiliary instance file /tmp/auxpran/ORCL/datafile/o1_mf_system_8opmyvly_.dbf deleted
auxiliary instance file /tmp/auxpran/ORCL/controlfile/o1_mf_8opmy14q_.ctl deleted
Finished recover at 03-APR-13 -
I misplace my iPad mini white with a pink case in eagle Rock mall on Friday may 16,2014 on one of the couches second level. Glendale Cali.please help me find it I got it for my graduation :(
If you had "Find My iPad" enabled in Settings > iCloud then you may be able to locate it. If not, you cannot locate it.
If it was enabled then you can try locating it via http://icloud.com on a computer or the App "Find My iPhone" on another iDevice. Note: this will only work if your device is connected to a network and the device hasn't already been restored as new and/or "Find My iPad" has not been disabled on it. Note: Disabling "Find My iPad" is much more difficult in iOS 7.
If you think that your device was stolen rather than lost then you should report it to the police. In either case you should contact your carrier, change your iTunes account password, your email account passwords, and any passwords that you'd stored on websites/emails/notes etc.
See also here for additional information: http://support.apple.com/kb/HT5668 -
Problem with RMAN incomplete recovery
Oracle Version: 9i
Operating System: Windows 2000
I have a problem with RMAN incomplete recovery until sequence.
According to my database structure ............
SQL> SELECT GROUP#,SEQUENCE#,THREAD# FROM V$LOG;
GROUP# SEQUENCE# THREAD#
1 14 1
2 13 1
3 12 1
I took the backup of backup of full database using RMAN and i am trying to recover like this:
RUN
ALLOCATE CHANNEL C1 TYPE DISK;
SET UNTIL SEQUENCE 7 THREAD 1;
RESTORE DATABASE;
RECOVER DATABASE;
ALTER DATABASE OPEN RESETLOGS;
BUT i am getting a message saying there is no backup of DATAFILE 1,2,......10 to restore although my database is in archivelog mode and i took a backup.
YachendraPlease consult v$backup_datafile.
It will tell you when the file was backed up.
RMAN will always search for a datafile backup prior to the logsequence or whatever is limiting the incomplete recovery.
Likely when you made your backup Oracle was already past sequence 7.
Sybrand Bakker
Senior Oracle DBA -
My phone lately has been searching for service constantly, I would say that 80%of my day my phone is searching for service. There was a software update for I think 8.1.2, my phone didn't have enough storage, so I tried to do it through iTunes, when I did that, I got the connect to iTunes screen and couldn't get past it. So now I have put my phone into recovery mode and have run into nothing but issues. One iTunes will not let me update the software, secondly I can't restore it, I get a pop up saying something that my device isn't recognized. I'm completely lost and frustrated Need some suggestions...
Hello sarmath,
Thanks for using Apple Support Communities.
From your post I understand that your iPhone is in recovery mode, and while trying to restore it in iTunes you are receiving an error message. While certainly a frustrating experience, there is troubleshooting you can do to get your iPhone back up in running order. Without a specific error message, the article below is where you can start. If possible, please provide the exact error message you receive when trying to restore your iPhone so I can give you some more in depth help.
Resolve iOS update and restore errors in iTunes - Apple Support
If you can't update or restore your iPhone, iPad, or iPod touch - Apple Support
Take care,
Alex H.
Maybe you are looking for
-
I'm very annoyed with this. I have tried countless times to recover my security question answers, but they were made years ago. I do not understand want to do because when I do go to reset them, I can't remember my email address I used to set up my w
-
Create a new folder in mail?????
Hi there I was wondering if anyone can tell me if on the iPhone 5 in mail can you create a new folder to store emails you dont want deleted or removed after new emails are downloaded on to the phone - I know there is VIP and Flagged plus inbox and tr
-
Can I instal SAP Netweaver 2004s trial on windows vista home premium
Hi , Can I install SAP Netweaver 2004s trial on WIndows vista home premium. Please advise. One more thing is I am not able to download the Trial version from the SAP's FTP site. Because ftp is blocked in our company. Is there any other site from whic
-
Converting the results of a blend tool back to strokes.
When you blend two stokes to give multiple lines is it possible to make each of those lines into individual strokes that can be edited independently of the points used to blend? I know you can flatten each line to give shapes, however I'd like to be
-
Connecting a third party router to accompany actiontec router?
So I'm thinking about ordering a second router but I don't want to replace the actiontec router that Verizon supplied me, only because I don't have any clue what to do with my STB's so I'm going to leave the Actiontec specifically for that reason. I