Database information in control file
hi, i want to know what is database information in control file(reset logs scn and timestamp)
what this information is .as the control file contains checkpoint information .i.e it also contain scn.how does this database information related to archivelog which is applied to datafile and does redo log contain scn information.
thanks in advance.
control file contains all the infromation about the database like scn, database name, database created date, datafile and location, logfile and location, max log group, and so many infromation.
But this is the common question, before post your question kindly check in the internet, if you dont get any answer then post your question here.
Cheers
Similar Messages
-
Please also see attachment (same info as below).
Background
This code works in windows XP (32 bit), using/complied VS2005 with no problems.
Please contact:
Hamid Deljoo at work 416-867-8977 (8am to 4pm EST)
Problem is:
We are migrating this code from XP to windows 7 (using win7 64bit for development to be deployed on win7 PCs 64bit).
When trying to display a crystal report (.rpt) an exception is raised.
Exception info is:
CrystalDecisions.CrystalReports.Engine.DataSourceException was unhandled by user code
Message=Failed to load database information.
Error in File wbstats {CC56070D-0873-4815-BAD5-0DA0FBAEDCB6}.rpt:
Failed to load database information.
Source=CrystalDecisions.ReportAppServer.DataSetConversion
StackTrace:
at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Export(ExportOptions options)
at net.bmogc.cas.ui.ReportViewer.LoadStatsReport(String warmBodyCode) in c:\Projects\Juniper\CAS_.NET2.0_Win7_64bit\CASApplication\CASNet\ReportViewer.cs:line 739
at net.bmogc.cas.ui.WarmBodyManage.Stats() in c:\Projects\Juniper\CAS_.NET2.0_Win7_64bit\CASApplication\CASNet\WarmBodyManage.cs:line 873
at net.bmogc.cas.ui.WarmBodyManage.CASAuthgation_ToolStripItem_Click(Object sender, EventArgs e) in c:\Projects\Juniper\CAS_.NET2.0_Win7_64bit\CASApplication\CASNet\WarmBodyManage.cs:line 593
at net.bmogc.cas.ui.CASAuthgation.<>c__DisplayClass15.<CreateToolStripItem>b__14(Object sender, EventArgs e) in c:\Projects\Juniper\CAS_.NET2.0_Win7_64bit\CASApplication\CASNet\Common\CASAuthgation.cs:line 1242
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
InnerException: System.Runtime.InteropServices.COMException
Message=Failed to load database information.
Error in File wbstats {CC56070D-0873-4815-BAD5-0DA0FBAEDCB6}.rpt:
Failed to load database information.
Source=""
ErrorCode=-2147482931
StackTrace:
at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
InnerException:
Background info is:
Vs2013 (update 3, latest version) is used.
Installed: Crystal Reports, Support Pack 10 (v. 13.0.10.1385), using 64 bit
VS2013 build settings.What database are you using?
What database client?
How are you connecting to the database (ODBC, OLE DB, etc.)?
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter -
Hi Team I am having problm with Crystal Report for Visual Studio 2013.
I have developed windows application with Crystal Report and Visual Studio 2010.
Now when i try to run same code in VS 2013 with Crystal report for VS 2013. i am getting following error.
Failed to load database information.
Error in File BillReport {A677B982-B8FC-4349-8BE6-9D1DA6B33521}.rpt:
Failed to load database information.
Source : "CrystalDecisions.ReportAppServer.DataSetConversion"
I have used oledb connection to fill XML dataset.
That dataset is binded to Crystal report at run time..
Here is my code.
string sqlstr = "";
sqlstr = "select * from billMaster where billid = " + billId + " and merchantName = '"+merchantName+"' ";
cmd = new OleDbCommand(sqlstr, m1.ccon);
if (m1.ccon.State == ConnectionState.Closed)
m1.ccon.Open();
OleDbDataAdapter da = new OleDbDataAdapter(sqlstr, m1.ccon);
BillPrint bp = new BillPrint();<startup useLegacyV2RuntimeActivationPolicy="true">
</startup>
is the solution man.
Thanks a lot...
I tried this one also..
Try saving the DS ( bp ) to xml format and have a look at the data, it may be a data field type has changed with the new OLEDB driver in VS 2013. This may be what Dell is referring to...
Try this:
bp.WriteXml("c:\\sc.xml", XmlWriteMode.WriteSchema);
Then set the report to the xml data source:
System.Data.DataSet ds = new System.Data.DataSet();
ds.ReadXml(@"C:\App_Data\sc.xml", XmlReadMode.ReadSchema);
rpt.SetDataSource(ds);
but it didn't help..
anyway
<startup useLegacyV2RuntimeActivationPolicy="true">
</startup>
this one is solution.. -
Bringing up database without updated control files
You have just had to restore from backup and do not have any control files. How would you go about bringing up this database?
Do u have the Control files Backup in trace File(text of File of control file)..
other wise write a creat control File command.. Make the proper changes in the command...
1 startup nomount
2 CREATE CONTROLFILE REUSE DATABASE "ABCD9IR2" RESETLOGS NOARCHIVELOG
-- SET STANDBY TO MAXIMIZE PERFORMANCE
MAXLOGFILES 16
MAXLOGMEMBERS 2
MAXDATAFILES 256
MAXINSTANCES 1
MAXLOGHISTORY 226
LOGFILE
GROUP 1 (
'D:\ORACLE\ORADATA\ABCD9IR2\G1L1ABCD9IR2.RDO',
'D:\ORACLE\ORADATA\ABCD9IR2\G1L2ABCD9IR2.RDO'
) SIZE 50M,
GROUP 2 (
'D:\ORACLE\ORADATA\ABCD9IR2\G2L1ABCD9IR2.RDO',
'D:\ORACLE\ORADATA\ABCD9IR2\G2L2ABCD9IR2.RDO'
) SIZE 50M,
GROUP 3 (
'D:\ORACLE\ORADATA\ABCD9IR2\G3L1ABCD9IR2.RDO',
'D:\ORACLE\ORADATA\ABCD9IR2\G3L2ABCD9IR2.RDO'
) SIZE 50M
-- STANDBY LOGFILE
DATAFILE
'D:\ORACLE\ORADATA\ABCD9IR2\SYS01ABCD9IR2.DBF',
'D:\ORACLE\ORADATA\ABCD9IR2\UNDOTBS01ABCD9IR2.DBF',
'D:\ORACLE\ORADATA\ABCD9IR2\TOOLS01ABCD9IR2.DBF',
'D:\ORACLE\ORADATA\ABCD9IR2\SCPODATA01ABCD9IR2.DBF',
'D:\ORACLE\ORADATA\ABCD9IR2\CSMDATA01ABCD9IR2.DBF',
'D:\ORACLE\ORADATA\ABCD9IR2\SCPOTEMP01ABCD9IR2.DBF',
'D:\ORACLE\ORADATA\ABCD9IR2\DPDATA01ABCD9IR2.DBF',
'D:\ORACLE\ORADATA\ABCD9IR2\DPINDEX01ABCD9IR2.DBF',
'D:\ORACLE\ORADATA\ABCD9IR2\NTWKSDATA01ABCD9IR2.DBF',
'D:\ORACLE\ORADATA\ABCD9IR2\NTWKSINDEX01ABCD9IR2.DBF',
'D:\ORACLE\ORADATA\ABCD9IR2\WWFDATA01ABCD9IR2.DBF'
CHARACTER SET WE8ISO8859P1
3 alter database open resetlogs;
i think it will help u
rgds
Ashish -
Oracle control file header information
Hi,
I want information about control file header.
My requirement is,
1. Start database in backup mode so that header of the datafiles got freezed.
2. So i want to know header_information/freezed SCN no in the header of the control file. From which oracle view i can get this information?
ThanksThe informationi in controlfiles is the centralized information of whole database like db_name,dbid,logfiles & datafiles paths,SCNs,etc..So if you want the controlfile structure or its internals the following link may help you out :
http://www.ixora.com.au/notes/controlfile_structure.htm
GoodLuck! -
Control File error while duplicating Database through Rman
Hi,
Oracle Ver: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
Os:Win Xp
I am trying to create a Standby through Rman....
I am using this Run Block to take backup of Primary Database.......
run {
allocate channel d1 type disk;
allocate channel d2 type disk;
setlimit channel d1 kbytes 2097150;
setlimit channel d2 kbytes 2097150;
backup incremental level 0 format 'e:\Oracle\standby\rman\df_%U' database
include current controlfile for standby;
sql "alter system archive log current";
backup
archivelog all format 'e:\Oracle\standby\rman\al_%U' delete input;
}After taking the Backup when I am trying to create the standby with Duplicate command it s giving me Error...
The Run Block I am using is ......
RMAN> run {
2> allocate auxiliary channel dup1 type disk;
3> allocate auxiliary channel dup2 type disk;
4> set newname for datafile 1 to 'E:\Oracle\standby\system01.dbf';
5> set newname for datafile 2 to 'E:\Oracle\standby\UNDOTBS01.DBF';
6> set newname for datafile 3 to 'E:\Oracle\standby\SYSAUX01.DBF';
7> set newname for datafile 4 to 'E:\Oracle\standby\USERS01.DBF';
8> duplicate target database for standby
9> dorecover;
10> }
allocated channel: dup1
channel dup1: sid=37 devtype=DISK
allocated channel: dup2
channel dup2: sid=36 devtype=DISK
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting Duplicate Db at 02-OCT-08
contents of Memory Script:
set until scn 1105194;
restore clone standby controlfile;
sql clone 'alter database mount standby database';
executing Memory Script
executing command: SET until clause
Starting restore at 02-OCT-08
channel dup1: starting datafile backupset restore
channel dup1: restoring control file
channel dup1: reading from backup piece E:\ORACLE\STANDBY\RMAN\DF_0VJS4RS7_1_1
channel dup1: restored backup piece 1
piece handle=E:\ORACLE\STANDBY\RMAN\DF_0VJS4RS7_1_1 tag=TAG20081002T124502
channel dup1: restore complete, elapsed time: 00:00:01
output filename=D:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\CTL1STANDBY.ORA
Finished restore at 02-OCT-08
sql statement: alter database mount standby database
released channel: dup1
released channel: dup2
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 10/02/2008 13:01:43
RMAN-03015: error occurred in stored script Memory Script
RMAN-03009: failure of sql command on clone_default channel at 10/02/2008 13:01:43
RMAN-11003: failure during parse/execution of SQL statement: alter database mount standby database
*ORA-00201: control file version 10.2.0.1.0 incompatible with ORACLE version 10.2.0.0.0*
ORA-00202: control file: 'D:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\CTL1STANDBY.ORA'Why i am getting this Incomaptable Control File error inspite of Backing up the control File.....
Regards,
Prosenjit MukherjeeCheck the value for the parameter "COMPATIBLE" in the source and standby database instance parameter files.
"COMPATIBLE" should be the same.
See http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/create_ps.htm#i70517
"... ensure the COMPATIBLE initialization parameter is set to the same value on both the primary and standby databases"
Edited by: Hemant K Chitale on Oct 2, 2008 4:09 PM
Added link and quote from 10g doc -
RECREATE DATABASE Using CONTROL File After SUSPEND Database
Hello All,
Does someone can tell me if he does achieve recreating a database using "Backup Control File" after putting database in "suspend" mode?
The procedure looks like this :
1 - Alter DATABASE Suspend
2 - A Snapshot of the filesystem where the oracle datafile are located
3 - Copy of those files to another file systeme
4 - Startup setting a new database name
Does someone as do it successfully ?
Thanks for your answerCarlos,
I tried to do it without putting the tablespaces in backup mode and it didn't work for me. At that time adding the backup mode wasn't a big deal for me, so I didn't investigate the problem thoroughly.
Logically thinking you sould be able to do:
1. suspend database
the SCNs recored in datafiles headers could be incosistent at this point
2. make a snapshot
3. mount the backup database
4. run recover until cancel using backup controlfile - I don't think you can avoid this step in case if you have inconsistent SCNs in the datafiles headers - you'll need to synchronize them
5. open resetlogs.
the suspend database should eliminate the possibility of inconsistent data within a block during the backup.
Just out of curiosity - why don't you want to put the tablespace in the backup mode?
Mike -
Problems creating control file in RMAN duplicate database
There is so much detail involved in this operation that I don't know what might be useful, so I'll start simple. I'm attempting to clone a database on the same host using RMAN "duplicate database". I finally got all the setup done, the OS authentication hurdles hurdled, etc. and entered the command:
duplicate target database to COPYCH2M until time "to_date('March 15 2012 12:00:00', 'Mon DD YYYY HH24:MI:SS')";
The first time I got:
ORA-19504: failed to create file "/u01/app/oracle/oradata/COPYCH2M/control01.ctl"
ORA-27040: file create error, unable to create file
Linux-x86_64 Error: 2: No such file or directory
There was nothing in the Oracle instructions about manually creating the directory, but I did so, thinking that might be the problem. And it created the control files! But then I got the following:
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 05/21/2012 15:59:25
RMAN-03015: error occurred in stored script Memory Script
RMAN-06136: ORACLE error from auxiliary database: ORA-00201: control file version 11.2.0.0.0 incompatible with ORACLE version 11.1.0.1.0
ORA-00202: control file: '/u01/app/oracle/oradata/COPYCH2M/control01.ctl'
Sounds straightforward, if frustrating, right? Apparently you can't duplicate a database that's not in the exact same version. But:
1) The backuppiece we got the control file from was from last November.
2) The version of Oracle has not been updated since that time.
How can a file created by this version be incompatible with this version? Where is it even getting 11.1?
Thanks, I'm hoping this is easy but I can post more info if needed.>
There was nothing in the Oracle instructions about manually creating the directory, but I did so, thinking that might be the problem. And it created the control files! But then I got the following:
>
The database is limited as to what it can create. Since you defined where you wanted the controlfiles to go (pfile/spfile), it's up to you to make sure the directory is valid and exists. :)
>
How can a file created by this version be incompatible with this version? Where is it even getting 11.1?
>
As for your controlfiles, make sure the compatible parameter is set the same on both the source and the target unless you are using the default (11.1.0.1 for you, and you aren't)
Keep going, you'll get there. RMAN duplicate is a great feature.
Good luck. -
What is the difference between data file & control file
what is the difference between data file & control file
Dear Deba s
Control file
Every Oracle Database has a control file, which is a small binary file that records the physical structure of the database. The control file includes:
The database name
Names and locations of associated datafiles and redo log files
The timestamp of the database creation
The current log sequence number
Checkpoint information
For more info look into these
[Control File Basic|http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14231/control.htm#i1006143]
Data File
You manage Data File in your Oracle database as part of Space Management. You can extend, create, drop, and alter tablespaces.
You especially need to avoid tablespace overflow, which is when a tablespace runs out of freespace in the allocated file or files. This happens when an object requires a new extent but there is either no freespace or insufficient freespace in the tablespace
For more info look into these links
[Data files |http://help.sap.com/saphelp_nw04/helpdata/en/98/5dd5890f32274aa884e45e736752a2/frameset.htm]
http://help.sap.com/saphelp_nw04/helpdata/en/98/5dd5890f32274aa884e45e736752a2/frameset.htm
Hope it helps you,Revert me back if you have any queries
Assign points if helpful
Regards
Bala -
Hi Gurus,
Please explain me that what is Control file and what was the purpose of it in SAP Oracle DataBase.
Thanks.Hi Kalyan
<b>What Is a Control File?</b>
Every Oracle Database has a control file, which is a small binary file that records the physical structure of the database. The control file includes:
The database name
Names and locations of associated datafiles and redo log files
The timestamp of the database creation
The current log sequence number
Checkpoint information
The control file must be available for writing by the Oracle Database server whenever the database is open. Without the control file, the database cannot be mounted and recovery is difficult.
The control file of an Oracle Database is created at the same time as the database. By default, at least one copy of the control file is created during database creation. On some operating systems the default is to create multiple copies. You should create two or more copies of the control file during database creation. You can also create control files later, if you lose control files or want to change particular settings in the control files.
<b>Guidelines for Control Files</b>
This describes guidelines you can use to manage the control files for a database, and contains the following topics:
Provide Filenames for the Control Files
Multiplex Control Files on Different Disks
Back Up Control Files
Manage the Size of Control Files
Role of Control File will remain the same even when you use Oracle with SAP. Just there will be some more entries in the file.
Refer the link below as well:
http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14231/control.htm#i1006143
Hope this should clear you doubt.
Regards
Sumit Jain
[Reward with points if useful]
Message was edited by:
Sumit Jain -
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? -
Crystal report "Failed to load database information" error after publish
I have seen similar questions, but none of the answers seem to apply to my situation.
I am upgrading an older web application to Visual Studio 2013, using the SAP Visual Studio Crystal Reports tools. Everything works great until I publish.
I have two sorts of reports: Some that export to Excel, and some that export to PDF. All work fine within Visual Studio. However, when I publish, the reports that should go to PDF give me the following error.
Failed to load database information.Error in File [Report Name] {GUID}.rpt
I have seen several posts that indicate that this could be a 32/64 bit issue. I am using a newer 64 bit SQL database, and this is an old application. I have it set to Any CPU. However, since the reports work fine in Visual Studio, I don't see how this could be the issue.
Any other ideas?
Thanks,
Geoff CallaghanHi Geoff
This is definitely not due to the export type. Rather it will be due to a db issue of some sort. My suspicion is that reports that work use a different type of connection that reports that fail. E.g.; the reports that work use OLE DB, those that fail use ODBC and the ODBC datasource is 32 bit, not 64 bit(?). E.g.; check the database connections between reports that work and those that do not. And remember to also check the connections in subreports (if any).
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter -
Creating a control file copy with ASM
Configuration is Oracle 10.2, RAC, and ASM (Automatic Storage Management). I would like to create a second copy of the control file.
If this wasn't ASM, I could just bring down the database, copy the control file using an operating system command, modify the pfile to reference both the original and new copy, and then restart the database.
Since this is ASM, I cannot use an operating system command to copy the control file, and RMAN "BACKUP" (which is the only way I know to make a copy of the control file) will only work if the database is up. When I "restore" the control file using RMAN and change the pfile to reference both control files I get a message like the following when attempting to start the database:
ORA-00214: control file '+ASMGROUP1/db1/controlfile/current.271.566646845'
version 2241 inconsistent with file
'+ASMGROUP1/db1/controlfile/current.268.566661765' version 2236
Soooooo, how do I make and implement a second copy of a control file using ASM.
ThanksHi.
This is not testet so presede with caution as it is meant as a discussion ;-)
As I see it there is no logical way to extend the instance by adding a controlfile.
The following procedure might work (has not been tested)
I think you have to make a controlfilebackup with the database closed in normal mode using RMAN.
Further you might be able to edit the pfile with create pfile from spfile and further create spfile from pfile. Extending the controlfile parameter to represent number and names of controlfile needed.
With this done, the database is closed normal with a controlfile copy presented somewhere on the filesystem.
startup mount;
restore controlfile from '<backup controlfile location>'
alter database mount;
alter database open;
Any thoughts about this procedure guys?
Rgds
Kjell Ove -
Database Recovery using Archive files
Dears,
Due to some issue our database get crashed.
We have saturday night offline backup and archive backup till yesterday night.
We have restored offline backup and system is Up but it is on saturday night state.
We want to apply these archive files to make the system state to current.
In restore our control file also get replace with our saturday night control file status.
We have copied our archive files in oraarch directory.
Now when using brtools I am applying archive files:
Command executing in brtools:
recover from '/oracle/<SID>/oraarch' database
it shows
unknow command beginning
No recovery required
On sqlplus also when I execute
sql>recover database;
It shows no recovery required.
When I give command:
sql>recover database using backup control file;
it ask for some {file name| AUTO | CANCEL}
I give first file name of oraarch it shows "Can not access the file".
File permissions are ok.
I give AUTO, It also then do not do anything.
Please suggest the correct method to make my system in latest current date.
ShivamHi Shivam,
This is absolutely normal that during the restore your control files will be replaced by the old one which were backed up during database backup.
Logic is that you can not apply the redolgs which are having the timestamps older than your restored datafile's / controlfile's timestamp.
If your DB is not yet opened, you can check the status of your database using below command which will tell you, till what timestamp your data is restored or currently available.
select to_char(CHECKPOINT_TIME,'yyyy-mm-dd:hh24:mi:ss') from v$datafile where file#=1;
>
> From command I want to know "from backup control file"....Do SAP take backup of control file as in system only old is
>
> available.
> Shivam
>
recover database using backup controlfile..... this command does not backup the controlfile . this will make use of old controlfile only which came along with the restore and start the recovery using this controlfile only.
Its just make use of available controlfile ..No backup will be triggered.
Please make a note that after DB restore; ..recovery is possible only in case database is not yet opened in OPEN state.
Cheers !!!
Ashish -
Only a cold datafile backup. No control files, redo files, archived redo
Hi everyone,
I made a stupid mistake and am in a bad condition with only a cold database backup without control files, redo files and archived redo files. My oracle database is oracle 9i. Is there any way to get my data back?
Thanks,
YanpingHi,
Have you a backup trace of a Control File ??
You can try perform this:
eg:
oracle@linux:/u01> cp -a /backup/*.dbf /u01/oradata/DB01
oracle@linux:~> sqlplus
SQL*Plus: Release 9.2.0.4.0 - Production on Mon Sep 18 21:35:04 2006
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Enter user-name: / as sysdba
Connected to an idle instance.
SQL> startup nomount
ORACLE instance started.
Total System Global Area 93394180 bytes
Fixed Size 451844 bytes
Variable Size 67108864 bytes
Database Buffers 25165824 bytes
Redo Buffers 667648 bytes
SQL>CREATE CONTROLFILE REUSE DATABASE "DB01" RESETLOGS ARCHIVELOG
MAXLOGFILES 3
MAXLOGMEMBERS 2
MAXDATAFILES 10
MAXINSTANCES 1
MAXLOGHISTORY 226
LOGFILE
GROUP 1 '/u01/oradata/DB01/redo01.log' SIZE 500K,
GROUP 2 '/u01/oradata/DB01/redo02.log' SIZE 500K,
GROUP 3 '/u01/oradata/DB01/redo03.log' SIZE 500K
DATAFILE
'/u01/oradata/DB01/system01.dbf',
'/u01/oradata/DB01/undotbs01.dbf',
'/u01/oradata/DB01/indx01.dbf',
'/u01/oradata/DB01/tools01.dbf',
'/u01/oradata/DB01/users01.dbf'
CHARACTER SET WE8ISO8859P1;
Control file created.
SQL> alter database open resetlogs;
Database altered.
SQL> ALTER TABLESPACE TEMP ADD TEMPFILE '/u01/oradata/BDRPS/temp01.dbf' SIZE 5242880 REUSE AUTOEXTEND OFF;
Tablespace altered.
SQL> select * from v$controlfile;
STATUS NAME
/u01/oradata/DB01/control01.ctl
/u01/oradata/DB01/control02.ctl
/u01/oradata/DB01/control03.ctl
SQL> select * from v$logfile;
GROUP# STATUS TYPE MEMBER
3 ONLINE /u01/oradata/DB01/redo03.log
2 ONLINE /u01/oradata/DB01/redo02.log
1 ONLINE /u01/oradata/DB01/redo01.logCheers
Message was edited by:
Legatti
Maybe you are looking for
-
Few keys in Keyboard is not working.
Few days back my laptop( HP Pavilion G6) screen got froze(Laptop starting but no display, caps key blinking 3 times) so i checked on internet and come to know its may be because of error in memory module. So i put my RAM in other slot. Now my laptop
-
Excel from PC to iPad3 Numbers via iTunes not working
I'm trying to add a couple excel spreadsheets to Numbers on an iPad3 from an XP machine via iTunes. The iTunes interface shows the files to be added to Numbers, but after I sync the device the files are not shown in iOS Numbers. I synced a pdf to Goo
-
How to make the main payload be sent as mail body
Hi, Currently, I want to send out a mail with several attachments by Mail adapter. And <b>the main payload</b> should be sent out as <b>mail body</b> instead of attachment. I know by default, the main payload is also sent as a attachment. So I used t
-
Servlet start (cool!) - stop (bad) ... :(
Hi, i create a class where a invoke a Thread ... if(actionevent.getSource() == jbutton1) (new ssthread()).start(); jtextfield7.setText("ON"); the name of the Thread ssthread ... and this start the servlet (and the server ...) all is pretty cool, but
-
Hi guys, I need to extract the GL account description ( GL account long text ) for a large number of accounts. Is there any table where i can input the GL accounts and get the GL descriptions for all the accounts. Thanks, Srikanth.