Recover Datafile Using Old Control File in New Instance
How to Recover Datafile in condition :
Old Instance was dropped but old controlfile still exist to new instance.
SigCle wrote:
If there is RMAN .bkp backup, I won't post a thread in here, and just do :
RMAN> STARTUP FORCE MOUNT;
RMAN> RESTORE DATABASE;
RMAN> RECOVER DATABASE;
RMAN> ALTER DATABASE OPEN;
The fact is there is no RMAN backup at all. Old database just dropped and uninstalled careless by my friend.
Fortunately there is still oradata folder(contain of control files and all datafiles).
But, I don't know to restore it manually and by system. I don't know file id of each datafile.
Helps / clues very appreciated.Well.If you have all control/online log/data files then there is no problem(also if you do not have pfile then create it manually according sample file).If your system is windows then create instance using oradim as
set ORACLE_SID=<SID>
oradim -new -sid <sid name> -intpwd <syspass> -pfile <pfile location>
sqlplus "/as sysdba"
startupif linux/unix then
export ORACLE_SID=<SID>
sqlplus "/as sysdba"
startup
Similar Messages
-
Need a help: how to recover using backup control file?
Please a help:
First computer
1. I create a database
2. put it in archive mode,
3. shutdown and made a cold backup
4. Created backup control file (alter database backup control file to trace)
5. I started up and created some archived log files.
Second Computer
1. I copied all files created in the step 3 above except the control file
2. I create all the same map directory on the 2nd computer as in the 1st computer
3. I recreate the control file from the script got in the step 4 above
4. I Copy archived log files generated at the step 5 in the local directory in the second computer
5. I set the logsource and set the autorecovery to on
6. I recover the database: RECOVER DATABASE USING BACKUP CONTROL FILE UNTIL CANCEL
Error got:
the archived log file applied do not go beyond the first one?,How could I do to applied all archived log files copied from the first computer to the second computer to have the same data?
Thank you very mucharchived log sequeces in the first computerSQL> select sequence#,first_change#,next_change# from v$log_history;
SEQUENCE# FIRST_CHANGE# NEXT_CHANGE#
1 553723 555484
2 555484 557345
Actions I did in the second Computer(after copied the former two archived log files from the 1st computer)
SQL> CREATE CONTROLFILE REUSE DATABASE "ORCL" RESETLOGS ARCHIVELOG
2 MAXLOGFILES 16
3 MAXLOGMEMBERS 3
4 MAXDATAFILES 100
5 MAXINSTANCES 8
6 MAXLOGHISTORY 292
7 LOGFILE
8 GROUP 1 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO01.LOG' SIZE 50M,
9 GROUP 2 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO02.LOG' SIZE 50M,
10 GROUP 3 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO03.LOG' SIZE 50M
11 -- STANDBY LOGFILE
12 DATAFILE
13 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF',
14 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF',
15 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF',
16 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF'
17 CHARACTER SET WE8ISO8859P1
18 ;
Control file created.
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Disabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 0
Next log sequence to archive 0
Current log sequence 0
SQL> alter database archivelog;
Database altered.
SQL> set logsource C:\local_destination1_orcl
SQL> set autorecovery on;
SQL> recover database using backup controlfile until cancel;
ORA-00279: change 555611 generated at 01/18/2007 14:14:14 needed for thread 1
ORA-00289: suggestion :
C:\LOCAL_DESTINATION1_ORCL\ARCH.1_1_612194518_43F17CF5.ARC
ORA-00280: change 555611 for thread 1 is in sequence #1
ORA-00328: archived log ends at change 555483, need later change 555611
ORA-00334: archived log:
'C:\LOCAL_DESTINATION1_ORCL\ARCH.1_1_612194518_43F17CF5.ARC'
Idon't know where the change 555611 is coming from? -
Recover datafile using redolog file
Hi all,
please let me know if we can recover datafile using redolog file.
As my database has no archive log mode ON.
Thanks and RegardsHi,
For your information: NOARCHIVELOG mode protects a database only from instance failure, not from media failure.
http://www.utexas.edu/its/unix/reference/oracledocs/v92/B10501_01/server.920/a96519/intro.htm#1005025
Cheers -
Recovery using backup control file
Hello friends,
I have a scenario where i am unable to recover by database by using backup control file option can u pls give ur expert advice.
1) Database is working in ARCHIVE MODE.
2) One of my file was READ ONLY when i take my closed backup. At this time
v$log file output is :
group# thread# sequence# bytes member arc status first_change#
1 1 8 8192 2 yes inactive 4697463
2 1 9 8192 2 yes active 4717493
3 1 10 8192 2 no current 4717738
3) After 2-3 log switches i have made it READ WRITE.
4) After making it READ WRITE i have taken controlfile backup by using
ALTER SYSTEM BACKUP CONTROLFILE TO 'E:\ORACLE\CONTROL01.CTL';.
5) Again i have make some log switches.
6) Shutdown my database using SHUTDOWN option.
7) Copy my SYSTEM,UNDO,USER,INDEX datafiles from my backup (taken at
step 2) and CONTROL file (taken at step 4).
8) I have not copied my old redo log files so those are new.
9) I mount database & then use this command to recover database :
RECOVER DATABASE USING BACKUP CONTROLFILE AUTO;
10) My recovery process starts applying archived log files and applied upto
sequence no 9. When it starts applying last one 10 which is online redo log
and not yet archived my recovery process fails by giving this error:
ORA-00308: cannot open archived log 'd:\oracle\oradata\practice\archive\1_10.dbf'
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.
11) I try to open database using :
ALTER DATABASE OPEN RESETLOGS;
it gives following warning:
Error at line 1:
ORA-01113: file 1 needs media recovery
ORA-01110: datafile 1: 'D:\ORACLE\ORADATA\PRACTICE\SYSTEM01.DBF'
Please guide me why it is so ?
Whether in BACKUP CONTROL FILE CASES system didn't recognise ONLINE REDO LOG FILES or it is anything else.
Regards
SethiHi,
>>I am not using RMAN. I am taking user managed backups. Moreover i have tried what u said that make checkpoints also but again i came to the same result when it try to apply last archived log which was current redo log when database was started to shutdown it says unable to find the specified file & then when i open database using resetlogs it says system file needs media recovery.
it show error because you are using wrong approach of Recovery.
Alter database open Resetlog command is used only in incomplete recovery.
but your are giving
Recover database command,it means ur performing full recovery (means you have apply online redo logfile.) and after applying it you should open the database with Alter database Open command.
No need to give resetlog option.
Again Restore all backup;
Issue Recover database;
and open the database with
Alter database open;
Thanks
Kuljeet Pal Singh -
Regard ora-01207: How Oracle judge file is more recent than control file - old control file
ORA-00283: recovery session canceled due to errors
ORA-01122: database file 2 failed verification check
ORA-01110: data file 2: '/tmp/auxsys.dbf_rman'
ORA-01207: file is more recent than control file - old control file
How Oracle judge file is more recent than control file - old control file, then it thrown out error ora-01207.
It must compare data file with control file, but what compare?Begin from the beginning.
Did you do a RESTORE DATABASE ?
Or did you selectively restore datafiles ?
Strange datafile name --- looks like it could have been a DATAFILECOPY done using rman.
It is a very bad idea to have a datafile in /tmp On some OSs, /tmp may get cleared of files on a reboot.
Hemant K Chitale -
Tomcat Web-server uses old .class files
Hi Friends,
My Tomcat webserver uses old .class files. The problem persists even if I delete old class files. The new ones are formed but then if i again recompile, the new-old ones are used :)
Am I doing something wrong????
Please suggest!!I have experienced this problem before as well. Tomcat seems to cache compiled class files for better speed. To get Tomcat to reload class files that I've recently recompiled here is what I do:
1. Go into the Tomcat server administration area (http://localhost/admin)
2. Choose the context that is using the classes that you want to reload (from Service / Host)
3. Make sure reloadable is set to true
3. Click save, and then commit changes
Hope this helps, but if there is a better way to get Tomcat to use the most recent class files I would love to hear it! -
Issue in Printing, using Bursting control file
Hello All,
We are using bursting control file to print and email. Email option is working fine. But when it comes to printing, it is printing "PDF file not printed. 128MB of memory is required to enable direct PDF printing" in the printout.
We are using CUPS and below is the path we are using for printing,
ipp://localhost:631/printers/YG_MAIN
When we try to run the same program manually, by giving the printer name and number of copies to 1, then we are able to see the pdf output. Other normal bi publisher reports are also working fine, w.r.t that printer. We are facing this issue only when we are running xml bursting program, with print option.
Any suggestions please..
Here is the full bursting control file,
<?xml version="1.0" encoding="UTF-8"?>
<xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi">
<xapi:globalData location="stream">
</xapi:globalData >
<xapi:request select="/XX_IMB/LIST_G_PAT/G_PAT">
<xapi:delivery>
<xapi:email id="123" server="XXXXXX.com" port="25" from="[email protected]">
<xapi:message id="123" to="${DESTINATION}" attachment="true" content-type = "text/html" subject="Test email"> Please find the attachement</xapi:message>
</xapi:email>
<xapi:print id="print1" printer="ipp://localhost:631/printers/${DESTINATION}" copies="1"/>
</xapi:delivery>
<xapi:document output-type="pdf" delivery="123">
<xapi:template type="xsl-fo" location="xdo://XXCUS.XX_MAIN.en.US" filter=".//G_PAT[DESTINATION_TYPE='Email']">
</xapi:template>
</xapi:document>
<xapi:document output-type="pdf" delivery="print1">
<xapi:template type="xsl-fo" location="xdo://XXCUS.XX_MAIN.en.US" filter=".//G_PAT[DESTINATION_TYPE='Print']">
</xapi:template>
</xapi:document>
</xapi:request>
</xapi:requestset>BI Publisher bursting to CUPS printer doesn't use PASTA, so output doesn't get converted from PDF to Postscript which it does when you run it through concurrent manager.
You can put an entry in the $XDO_TOP/resource/xdodelivery.cfg as follows (replace for your printer):
<pre>
<server name="MYPRINTER" type="ipp_printer" default="true">
<uri>ipp://mycupsserver.mydomain:631/printers/MYPRINTER</uri>
<filter>/usr/local/bin/pdf2ps -paper A4 {infile} {outfile}</filter>
</server>
</pre>
Regards,
Gareth -
ORA-01207: file is more recent than control file - old control file
Hi,
Today while i am multiplexing control files, i am getting error
ORA-01207: file is more recent than control file - old control file
Action taken:
a) shutdown the db
b) make changes in the control file by replacing all control files with a single good one control file
c) startup nomount pfile
d) create spfile from pfile
e) startup the database
But getting the below errors:
ORA-01122: database file 1 failed verification check
ORA- 01110: data file 1:
ORA - 01207: file is more recent than control file - old control file
Can anyone help on same
Regards
Vikas KohliVikas Kohli wrote:
Hi,
Today while i am multiplexing control files, i am getting error
ORA-01207: file is more recent than control file - old control file
Action taken:
a) shutdown the db
b) make changes in the control file by replacing all control files with a single good one control file
c) startup nomount pfile
d) create spfile from pfile
e) startup the database
But getting the below errors:
ORA-01122: database file 1 failed verification check
ORA- 01110: data file 1:
ORA - 01207: file is more recent than control file - old control file
Can anyone help on same
Regards
Vikas Kohli
Please read the following MOS ID: Starting Database Returns ORA-01122, ORA-0110, and ORA-01207 (Doc ID 1011193.6) -
How to use old nano ipod on new computer
How to use old nano ipod with new computer
Your iPod is designed to sync with only one iTunes library at a time. It will recognize the iTunes library on the PC as a new library. If you sync the iPod with this new library, all content will be erased from the iPod and replaced with what is in the new library. So what you will want to do is copy everything from the iPod to your new iTunes library on your PC first.
See this older post from another forum member Zevoneer covering the different methods and software available to assist you with the task of copying content from your iPod back to your PC and into iTunes.
https://discussions.apple.com/thread/2452022?start=0&tstart=0
B-rock -
Trap The Duplicate Logging On FMS, LoggOff Old One And Accept New Instance.
Hi All,
I need help on the following topic of FMS 2.0.
On FMS Server I want to trap the duplicate logging, Logoff
Old One and accept New Instance.
The scenario is like this, if a user logged in with the name
wins” on FMS Application from his Office, after some
time he came to his home and want to logging again.
I want to disconnect or logoff the instance of application
which is logged in from his Office and allow him to logging from
his home.
Actually I want to implement the functionality like
Yahoo messenger.
Yahoo messenger gives the facility to login from another
system and logoff the previous instance.
So, tell me what I have to do to achieve this.
ThanksonAppStart intitialize an object to hold all connected
clients, maybe called userList:
application.onAppStart = function(){
this.userList = {};
Then when someone logs in, they of course pass in their
username. Simply put that client in userList by its username.
application.onConnect = function(newClient, username){
this.acceptConnection(newClient);
this.userList[username] = newClient;
Then you can easily modify that code to boot the old client
if that username is already in use:
application.onConnect = function(newClient, username){
if(this.userList[username]){
this.disconnect(this.userList[username]);
this.acceptConnection(newClient);
this.userList[username] = newClient;
See if that works for ya. -
How do I use old data files with a new installation in Oracle 9i
I am in an unenviable position, with an unsupported database.
We are running Oracle 9i on Windows XP. We are upgrading soon to Oracle 11g on a newer platform, but need to get our development environment working first.
We lost a system that was running our development database without having a database export. The C drive was placed into a new system as the D drive.
I have loaded Oracle 9i on the C drive, but I have been unable to determine how to point it to the existing data files on the D drive. My search skills may be the limiting factor here...
We cannot simply load the drive as C, since the hardware is different.
What are the steps to point the new database software at the data files on the D drive? Or, how do I copy the old data files into the new Oracle Home and have them recognized properly?
Thanks for any advice.user3930585 wrote:
I am in an unenviable position, with an unsupported database.
We are running Oracle 9i on Windows XP. We are upgrading soon to Oracle 11g on a newer platform, but need to get our development environment working first.
We lost a system that was running our development database without having a database export. The C drive was placed into a new system as the D drive.
I have loaded Oracle 9i on the C drive, but I have been unable to determine how to point it to the existing data files on the D drive. My search skills may be the limiting factor here...
We cannot simply load the drive as C, since the hardware is different.
What are the steps to point the new database software at the data files on the D drive? Or, how do I copy the old data files into the new Oracle Home and have them recognized properly?
Are you stating that you don't know how to use COPY command?
Can you recreate same directory structure on new C drive as exist on old C drive?
Can you then drag & drop copies of the files? -
Recover datafile using cold backup in archivelog mode
Hi,
I have lost one of my datafiles i.e New.dbf from the disk. I have full database cold backup of last sunday. Also I have the archives. Is it possible to restore and recover only the lost datafile? Please help.If you used RMAN to create the backup, then use RMAN again to restore that one datafile alone (RESTORE DATAFILE n) and then recover it (RECOVER DATAFILE n).
If you didn't use RMAN but you are sure that the backup was a COLD Backup, manually restore the datafile and then issue a RECOVER DATAFILE n from the SQLPlus command.
In either case you must ensure that the datafile is OFFLINE before you restore the file -- or take it OFFLINE with ALTER DATABASE DATAFILE n OFFLINE IMMEDIATE before doing the restore.
After the RECOVER is completed, you must bring it ONLINE with an ALTER DATABASE DATAFILE n ONLINE
Hemant K Chitale
http://hemantoracledba.blogspot.com -
Error while recovering datafile using rman
Hi Friends,
I was trying to recover the deleted datafile 5 , but getting the following error... ( oracle 10g , database archive log mode )
RMAN> startup
database is already started
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of startup command at 02/28/2012 10:54:30
ORA-01157: cannot identify/lock data file 5 - see DBWR trace file
ORA-01110: data file 5: 'F:\ORACLE\ORADATA\DEMO\DEM01.DBF'
RMAN> restore datafile 5;
Starting restore at 28-FEB-12
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=156 devtype=DISK
released channel: ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 02/28/2012 10:54:49
ORA-19554: error allocating device, device type: SBT_TAPE, device name:
ORA-27211: Failed to load Media Management Library
RMAN>
Whats the way out...RMAN> show all;
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO '%F'; # defa
ult
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DEVICE TYPE SBT_TAPE PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
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 DEVICE TYPE DISK MAXPIECESIZE 100 M;
CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' MAXPIECESIZE 100 M;
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 'G:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\S
NCFDEMO.ORA'; # default -
How to Restore Control file to New Server
I want to test my backup by restoring the full backup of my production database on a separate test server.
I have taken following action for restore to test server:
• Copy full backup to Test Server on same folder where it was in Production Server.
• Copy parameter file to Test Server. (Edit control file location on it)
• Connect Rman
• Set DB with new DBID
• Startup Nomount (from new parameter file)
RUN
ALLOCATE CHANNEL c1 TYPE DISK;
RESTORE CONTROLFILE FROM AUTOBACKUP;
ALTER DATABASE MOUNT;
Then we found following error:
RMAN> RESTORE CONTROLFILE FROM AUTOBACKUP;
Starting restore at 07-NOV-07
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=9 devtype=DISK
channel ORA_DISK_1: looking for autobackup on day: 20071107
channel ORA_DISK_1: looking for autobackup on day: 20071106
channel ORA_DISK_1: looking for autobackup on day: 20071105
channel ORA_DISK_1: looking for autobackup on day: 20071104
channel ORA_DISK_1: looking for autobackup on day: 20071103
channel ORA_DISK_1: looking for autobackup on day: 20071102
channel ORA_DISK_1: looking for autobackup on day: 20071101
channel ORA_DISK_1: no autobackup in 7 days found
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 11/07/2007 16:35:13
RMAN-06172: no autobackup found or specified handle is not a valid copy or piece
Can anyone guide me, how to restore control file?
IrfanRMAN> RESTORE CONTROLFILE FROM AUTOBACKUP;
Starting restore at 07-NOV-07
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=9 devtype=DISK
channel ORA_DISK_1: looking for autobackup on day:
20071107
channel ORA_DISK_1: looking for autobackup on day:
20071106
channel ORA_DISK_1: looking for autobackup on day:
20071105
channel ORA_DISK_1: looking for autobackup on day:
20071104
channel ORA_DISK_1: looking for autobackup on day:
20071103
channel ORA_DISK_1: looking for autobackup on day:
20071102
channel ORA_DISK_1: looking for autobackup on day:
20071101
channel ORA_DISK_1: no autobackup in 7 days found
RMAN-00571:It seems to me its not finding the contolfile from 7 days before sysdate ,increase the window size using
RMAN>restore controlfile from autobackup maxdays 15;Khurram -
Old outlook file and New one...Same Job, different computer.
Hey Everyone -
I got kind of a unique situation (I think?) that I couldn't find an answer for.
My old work laptop (just for work email) had a graphic card meltdown and so I had to purchase a new computer. I was able to pull the hard drive out of it and salvage everything, including the outlook file.
Now on my new pc, when I set up my email (POP3) that is linked to some webmail website, I have everything that was online (at that website) in my current outlook.
I was thinking I could just take my old outlook file (7gb worth), bring it into outlook and combine them but I had no such luck. The other issue is, its still referencing the old outlook file off the old hard drive I have and it happens to be the same
exact name as the new one because its my name @ company name.com
Is there anyway to combine them or maybe even just import the new one, and THEN link it to the website?
Here's some screen shots:
They won't let me post screen shots.... If I can get "verified" I'll post them up...
Thanks!
AJWhat happens when you try to combine them? How did you try to combine them?
Copy the pst file to your new pcs hard drive. It can go in any folder - backing it up is easier if its in My Documents - rename it if the new data file has the same name. Open it in Outlook using File, Open, Outlook Data file. You could set it as default
and move all of the mail that arrived in the new pst into the old one or you can use both pst files.
Diane Poremsky [MVP - Outlook]
Outlook & Exchange Solutions Center
Outlook Tips
Subscribe to Exchange Messaging Outlook weekly newsletter
Maybe you are looking for
-
I have a 60 gig colour display iPod. On my iBook laptop, iTunes>Preferences>iPod, "Photo" doesn't appear. Therefore I can't transfer Photos to my iPod. I have iPhoto 4.03 & iTunes 4.9. On another computer "Photo" DOES come up in iTunes>Preference>iPo
-
Is there a way to enlarge the print, maybe zoom in or out?
Sometimes when I read on line the print is so small I have trouble reading it. Also, I play different games on facebook and such and some of them are so small. I would like to enlarge them. I did it before on internet explorer but haven't figured out
-
Downloading completed materials to store on another server
Hi - I want to know if I can download completed materials from the Adobe cloud and post them on a server behind our business firewall to share with employees. I am specifically interested in an InDesign document that has embedded video converted to a
-
"Services for object" for SD document POSITION not header
Hi, Could you tell me if there is a possibility to create attchment for a postion of SD document not a header? I would like to see that ex. position number 20 has an attachment. It would be great aslo to see an icon for position or any other flag. Co
-
Files in cd start to disappear when copying them
Hello, was wondering if you could help me... Everytime I start to copy files from a cd/dvd, the disappear mid way, and I have to eject and re-insert the cd to keep copying them... Anyone know why and what I can do about this? Powerbook G4, 15 inch, 1