ORA-01503: CREATE CONTROLFILE failed
Hello.
I'm trying to install an ORACLE EBS 11i on an Oracle Linux Release 5 Update 5 Media Pack v1 for x86 (32 bit) from stage.
The process is going great until the "Creating the database controlfile..." step. It crashes there.
I've looked in the log file and this is what I can find:
ORACLE_HOME : /u01/oracle/visdb/9.2.0
ORACLE_SID : VIS
TWO_TASK :
PATH : /u01/oracle/visdb/9.2.0/Apache/perl/bin:/u01/oracle/visdb/9.2.0/bin:/usr/bin:/usr/sbin:/u01/oracle/visdb/9.2.0/jre/1.4.2/bin:/usr/ccs/bin:/bin:/usr/bin/X11:/usr/local/bin:/usr/bin:/usr/bin:/u01/Stage11i/startCD/Disk1
/rapidwiz/unzip/Linux:/usr/bin:/usr/local/bin:/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
LD_LIBRARY_PATH : /u01/oracle/visdb/9.2.0/lib:/usr/X11R6/lib:/usr/openwin/lib:/u01/oracle/visdb/9.2.0/ctx/lib
Executable : /u01/oracle/visdb/9.2.0/bin/sqlplus
The log information will be written to
/u01/oracle/visdb/9.2.0/appsutil/log/VIS_ebs/adcrdb_VIS.txt
Creating the control file for VIS_ebs database ...
SQL*Plus: Release 9.2.0.5.0 - Production on Wed Feb 23 17:28:54 2011
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Connected to an idle instance.
ORACLE instance shut down.
Connected to an idle instance.
ORACLE instance started.
Total System Global Area 581506616 bytes
Fixed Size 452152 bytes
Variable Size 402653184 bytes
Database Buffers 167772160 bytes
Redo Buffers 10629120 bytes
CREATE CONTROLFILE REUSE SET DATABASE "VIS"
ERROR at line 1:
ORA-01503: CREATE CONTROLFILE failed
ORA-01565: error in identifying file '/u01/oracle/visdata/tx_data11.dbf'
ORA-27046: file size is not a multiple of logical block size
Additional information: 1
alter database open resetlogs
ERROR at line 1:
ORA-01507: database not mounted
alter tablespace TEMP add tempfile '/u01/oracle/visdata/tmp1.dbf' REUSE
ERROR at line 1:
ORA-01109: database not open
ALTER DATABASE RENAME GLOBAL_NAME TO "VIS.gdmelectronics.com"
ERROR at line 1:
ORA-01109: database not open
ORA-01507: database not mounted
ORACLE instance shut down.
Connected to an idle instance.
ORACLE instance started.
Total System Global Area 581506616 bytes
Fixed Size 452152 bytes
Variable Size 402653184 bytes
Database Buffers 167772160 bytes
Redo Buffers 10629120 bytes
ORA-00205: error in identifying controlfile, check alert log for more info
BEGIN dbms_backup_restore.zeroDbid(0); END;
ERROR at line 1:
ORA-00210: cannot open the specified controlfile
ORA-06512: at "SYS.X$DBMS_BACKUP_RESTORE", line 3284
ORA-06512: at line 1
ORACLE instance shut down.
Connected to an idle instance.
ORACLE instance started.
Total System Global Area 581506616 bytes
Fixed Size 452152 bytes
Variable Size 402653184 bytes
Database Buffers 167772160 bytes
Redo Buffers 10629120 bytes
CREATE CONTROLFILE REUSE SET DATABASE "VIS"
ERROR at line 1:
ORA-01503: CREATE CONTROLFILE failed
ORA-01565: error in identifying file '/u01/oracle/visdata/tx_data11.dbf'
ORA-27046: file size is not a multiple of logical block size
Additional information: 1
alter database open resetlogs
ERROR at line 1:
ORA-01507: database not mounted
alter tablespace TEMP add tempfile '/u01/oracle/visdata/tmp1.dbf' REUSE
ERROR at line 1:
ORA-01109: database not open
Is there something I'm doing wrong ?
How do I create a new control file and use it ?
I don't know if I gave needed information. If you need more details, please ask and I will try to provide them.
Thank you and regards,
Sorin Miroiu
Hi schavali.
Thanks for the quick reply.
I've checked and that file doesn't exists.
[root@ebs ~]# ls /u01/oracle/visdata/
apps_ts_tx_interface.dbf media1.dbf owa1.dbf summary2.dbf sys4.dbf tx_data1.dbf tx_data8.dbf tx_idx4.dbf undo02.dbf
archive1.dbf media2.dbf portal.dbf summary3.dbf sys5.dbf tx_data2.dbf tx_data9.dbf tx_idx5.dbf undo03.dbf
archive2.dbf media3.dbf queues1.dbf summary4.dbf sys6.dbf tx_data3.dbf tx_idx10.dbf tx_idx6.dbf undo04.dbf
ctx1.dbf mobile01.dbf queues2.dbf summary5.dbf sys7.dbf tx_data4.dbf tx_idx11.dbf tx_idx7.dbf
log1.dbf nologging1.dbf reference1.dbf sys1.dbf tmp1.dbf tx_data5.dbf tx_idx1.dbf tx_idx8.dbf
log2.dbf odm.dbf reference2.dbf sys2.dbf tx_data10.dbf tx_data6.dbf tx_idx2.dbf tx_idx9.dbf
log3.dbf olap.dbf summary1.dbf sys3.dbf tx_data11.dbf tx_data7.dbf tx_idx3.dbf undo01.dbf
For some reason it stops at tx_data9.dbf.
I will try to start the install all over again and comeback with feedback.
I think I will redo the DB stage as well.
Regards,
Sorin Miroiu
Similar Messages
-
OCS V2 on linux "CREATE CONTROLFILE failed"
Hello,
i'd like some help regarding OCS instalation on linux.
at first i tried to install OCS V2 on redhat 9.
added redhat-9 to "certified OSes", installer started, fixed issue with "-z defs", then hung on relinkink webcache ins_calypso.mk. (ignored) later running DBCA get message "ORA-01503: CREATE CONTROLFILE failed" (abort) "ORA-01990: error opening password file ..." (abort) "ORA-27037: unable to obtain file status" (abort) same error (ok) other tasks continues...
even tried OCS V1 singlebox version. the same problem.
later downloaded and instaled UnitedLinux 1.0.
some more issues about fully qualified hostname.
needed to set /proc/sys/kernel/hostname not only to hostname, but to hostname.domainname.
and the get the same error.
i cant find answers to my problems in OTN and Metalink.
please help.
Thanks.
Saulius Speicysalso followed suse recomendations for Oracle 9i R2 install on SLES8 (920_sles8_install.pdf).
updated kernel, downgraded gcc .
and got the same troubles.
at first with hostname, later with ins_sqlplus.mk, and then at dbca "CREATE CONTROLFILE failed".
can it be because of fqhostname "ocs.as.local" ?
or any naming of oracle home "/opt/oracle/product/iasdb" , instance name, or instance name "infra" / "ocs_infra" ?
i think i'm lost %(
thanks for any help.
Saulius -
ORA01503 CREATE CONTROLFILE failed
Hello All,
I am trying to refresh the Quality server with production.after i have copied the datafile and edited the control file.
while running the control.sql script i am getting the following error.
ORA01503 CREATE CONTROLFILE failed
ORA0116 database name TEST in file header does not match given name of PROD
ORA01110 data file
can Some advise me on this
Thanks and regards
Kiran DeverlaKiran,
Check below links. It may help you.
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_5003.htm#SQLRF01203
ORA-1503 & ORA-01565
Thanks
Sushil -
ORA-01501: CREATE DATABASE failed in asm
i am trying to create manual database using asm
and i am using oracle SID
and when i create manual database i am getting the below error
ERROR at line 1:
ORA-01501: CREATE DATABASE failed
ORA-00200: control file could not be created
ORA-00202: control file: '+ASMDG/manual/control1.ctl'
ORA-17502: ksfdcre:4 Failed to create file +ASMDG/manual/control1.ctl
ORA-15001: diskgroup "ASMDG" does not exist or is not mounted
and when i use asm SID +asm and if i create a manual database i am getting the below error
ERROR at line 1:
ORA-15000: command disallowed by current instance type
please help me to resolve thisHi Friend,
Please check the following permissions for all the below :
Grid Infrastructure Home Owner : grid
Primary Group : oinstall
Secondary Groups : asmadmin, asmdba, asmoper
RDBMS Home Owner : oracle
Primary Group : oinstall
Secondary Groups : dba, oper, asmdba
In case of stand alone set up, if the 11.2 Database be managed by Oracle Restart ( srvctl stop/start ), then 'grid' user should also be a part of 'dba' group.
The ASM Disks would be owned by grid:asmadmin
Please check once again...Before starts
Hope it helps...
Thanks
LaserSoft -
Dear Hussein,
I refereshed my production database with UAT database and when I am executing create contirolfile command I am getting the below erros:
SQL> @ctrl01.sql
ORA-01081: cannot start already-running ORACLE - shut it down first
SP2-0042: unknown command "DATAFILE" - rest of line ignored.
SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
======
vi ctrl01.sql
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "PROD" RESETLOGS ARCHIVELOG
MAXLOGFILES 32
MAXLOGMEMBERS 5
MAXDATAFILES 512
MAXINSTANCES 8
MAXLOGHISTORY 20157
LOGFILE
GROUP 1 (
'/oracle/oraprod/PROD/db/apps_st/data/log01a.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/log01b.dbf'
) SIZE 1024M,
GROUP 2 (
'/oracle/oraprod/PROD/db/apps_st/data/log02a.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/log02b.dbf'
) SIZE 1024M
DATAFILE
'/oracle/oraprod/PROD/db/apps_st/data/a_archive01.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/a_int01.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/a_media01.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/a_nolog01.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/a_queue01.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/a_queue02.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/a_ref01.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/a_ref02.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/a_summ01.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/a_txn_data01.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/a_txn_data02.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/a_txn_data03.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/a_txn_data4.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/a_txn_ind01.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/a_txn_ind02.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/a_txn_ind03.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/a_txn_ind04.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/a_txn_ind05.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/apps_ts_tools01.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/cntrl01.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/cntrl02.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/cntrl03.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/ctxd01.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/interim.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/log01a.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/log01b.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/log02a.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/log02b.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/odm.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/olap.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/owad01.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/portal01.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/sysaux01.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/system01.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/system02.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/system03.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/system04.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/system05.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/system07.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/system08.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/system09.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/system10.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/system11.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/temp01.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/temp02.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/temp03.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/undo01.dbf'
CHARACTER SET AR8ISO8859P6;
can u plz suggestSP2-0042: unknown command "DATAFILE" - rest of line ignored.
SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELP
and to leave enter EXIT.
SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
SP2-0734: unknown command beginning "'/oracle/o..." - rest of line ignored.
SP2-0044: For a list of known commands enter HELPIt seems to be there is space (one line space is there, as per your script) before DATAFILE clause, remove that space and re run the script, it should be fixed
try with the below script
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "PROD" RESETLOGS ARCHIVELOG
MAXLOGFILES 32
MAXLOGMEMBERS 5
MAXDATAFILES 512
MAXINSTANCES 8
MAXLOGHISTORY 20157
LOGFILE
GROUP 1 (
'/oracle/oraprod/PROD/db/apps_st/data/log01a.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/log01b.dbf'
) SIZE 1024M,
GROUP 2 (
'/oracle/oraprod/PROD/db/apps_st/data/log02a.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/log02b.dbf'
) SIZE 1024M
DATAFILE
'/oracle/oraprod/PROD/db/apps_st/data/a_archive01.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/a_int01.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/a_media01.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/a_nolog01.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/a_queue01.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/a_queue02.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/a_ref01.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/a_ref02.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/a_summ01.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/a_txn_data01.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/a_txn_data02.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/a_txn_data03.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/a_txn_data4.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/a_txn_ind01.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/a_txn_ind02.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/a_txn_ind03.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/a_txn_ind04.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/a_txn_ind05.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/apps_ts_tools01.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/cntrl01.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/cntrl02.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/cntrl03.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/ctxd01.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/interim.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/log01a.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/log01b.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/log02a.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/log02b.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/odm.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/olap.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/owad01.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/portal01.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/sysaux01.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/system01.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/system02.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/system03.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/system04.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/system05.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/system07.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/system08.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/system09.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/system10.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/system11.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/temp01.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/temp02.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/temp03.dbf',
'/oracle/oraprod/PROD/db/apps_st/data/undo01.dbf'
CHARACTER SET AR8ISO8859P6;Edited by: oraDBA2 on Aug 3, 2009 2:15 PM -
ORA-01503 and ORA-01110 Errors while running adcfgclone.pl dbTier
Hi,
I am working on R12 on IBM AIX as I am cloning from one system to another I am facing some errors while running adcfgclone.pl for database tier.
Following is the log from the adcfgclone.pl as it fails;
Creating the control file for CLONE_test database ...
SQL*Plus: Release 11.1.0.7.0 - Production on Mon Sep 6 10:32:43 2010
Copyright (c) 1982, 2008, Oracle. All rights reserved.
Connected to an idle instance.
ORACLE instance shut down.
Connected to an idle instance.
ORA-32006: USER_DUMP_DEST initialization parameter has been deprecated
ORA-32006: BACKGROUND_DUMP_DEST initialization parameter has been deprecated
ORACLE instance started.
Total System Global Area 1068937216 bytes
Fixed Size 2160600 bytes
Variable Size 427821096 bytes
Database Buffers 624951296 bytes
Redo Buffers 14004224 bytes
CREATE CONTROLFILE REUSE SET DATABASE "CLONE"
*+
ERROR at line 1:
ORA-01503: CREATE CONTROLFILE failed
ORA-01159: file is not from same database as previous files - wrong database id
ORA-01110: data file 22: '/u04/oracle/proddata/applsysx01.dbf'
alter database open resetlogs
*+
ERROR at line 1:
ORA-01507: database not mounted
alter tablespace TEMP add tempfile '/u03/oracle/proddata/temp01.dbf' REUSE
*+
ERROR at line 1:
ORA-01109: database not open
ALTER DATABASE RENAME GLOBAL_NAME TO "CLONE.testcom.com"
*+
ERROR at line 1:
ORA-01109: database not open
ORA-01507: database not mounted
ORACLE instance shut down.
Connected to an idle instance.
ORA-32006: USER_DUMP_DEST initialization parameter has been deprecated
ORA-32006: BACKGROUND_DUMP_DEST initialization parameter has been deprecated
ORACLE instance started.
Total System Global Area 1068937216 bytes
Fixed Size 2160600 bytes
Variable Size 427821096 bytes
Database Buffers 624951296 bytes
Redo Buffers 14004224 bytes
ORA-03113: end-of-file on communication channel
Process ID: 1278120
Session ID: 1105 Serial number: 3
ERROR:
ORA-03114: not connected to ORACLE
ORA-24324: service handle not initialized
ORA-01041: internal error. hostdef extension doesn't exist
Connected.
ORA-01031: insufficient privileges
ERROR:
ORA-01012: not logged on
ERROR:
ORA-01012: not logged on
ERROR:
ORA-01012: not logged on
ERROR:
ORA-01012: not logged on
ERROR:
ORA-01012: not logged on
ERROR:
ORA-01012: not logged on
Disconnected
exit_code=1
Checking for errors ...
The database has not been successfully created. Shutting down the instance ...
SQL*Plus: Release 11.1.0.7.0 - Production on Mon Sep 6 10:33:12 2010
Copyright (c) 1982, 2008, Oracle. All rights reserved.
Connected to an idle instance.
ORACLE instance shut down.
Disconnected
+.end std out.+
+.end err out.+
I have checked the log for preclone from the source machine but there are no errors. Below are the last lines of preclone log file
Zip2 - Completed native zipping sh -c "cd /u02/oracle/proddb/10.2.0/appsutil/out/PROD_testcom/; zip -q -y /u02/oracle/proddb/10.2.0/appsutil/clone/data/stage/adcrdb.zip -@ ; echo ERRORCODE = $? ERRORCODE_END"
Done...
+#############################################################+
StageDBTier Finished at Tue Aug 31 16:50:19 GMT03:00 2010+
Status: Completed Successfully
+#############################################################+
Please advice.
RegardsHi user:
1. Yes the database and lsnr were closed as the tar files were created. So, i assume thate there are no any oracle session avalibale when you copy files from source to target
2. Yes I would also like to mention that it already had an old instance. So this is just a new clone. So, i mention you have valid entery on /etc/hosts file
3. Please can you describe what permissions as from root user it was done as
chown -R oratest:dba <db tier folders> If your target user is oratest than syntax seems correct, did you copy oracle_home too from source to target and this home owner is oratest again right?
Regard
Helios -
Problem in Creating controlfile
Hi All,
am planning to system copy, databse restored succesfuly on target system, created control file on source system.
copied the control file on target system in /oracle/MDQ/saptrace/usertrace and renamed it as control.sql.
when am trying to generate conrol file on target system as : @/oracle/MDQ/saptrace/usertrace/control.sql
getting error as :
ORACLE instance started.
Total System Global Area 2365587456 bytes
Fixed Size 2144144 bytes
Variable Size 1203685488 bytes
Database Buffers 1157627904 bytes
Redo Buffers 2129920 bytes
CREATE CONTROLFILE REUSE SET DATABASE "MDQ" RESETLOGS ARCHIVELOG
ERROR at line 1:
ORA-01503: CREATE CONTROLFILE failed
ORA-01200: actual file size of 27520 is smaller than correct size of 110080
blocks
ORA-01110: data file 1: '/oracle/MDQ/sapdata1/system_1/system.data1'
ORA-01507: database not mounted
ALTER SYSTEM ARCHIVE LOG ALL
ERROR at line 1:
ORA-01507: database not mounted
ALTER DATABASE OPEN
ERROR at line 1:
ORA-01507: database not mounted
ALTER TABLESPACE PSAPTEMP ADD TEMPFILE '/oracle/MDQ/sapdata2/temp_1/temp.data1'
ERROR at line 1:
ORA-01109: database not open
ORA-01081: cannot start already-running ORACLE - shut it down first
CREATE CONTROLFILE REUSE SET DATABASE "MDQ" RESETLOGS ARCHIVELOG
ERROR at line 1:
ORA-01503: CREATE CONTROLFILE failed
ORA-01200: actual file size of 27520 is smaller than correct size of 110080
blocks
ORA-01110: data file 1: '/oracle/MDQ/sapdata1/system_1/system.data1'
Kindly suggest.Hi,
i have chaecked the size of file system on source and target system, there is a huge differnce.
Please refer this useful document to perform complete [Oracle DB Restore using Offline/Online Backup|http://www.basisconsultant.com/component/remository/Sytem-Copy-Guides/Homogeneous-System-Copy-using-OnlineandOffline-Backup/] in systematic way .
BRARCHIVE - Return code: 0001 Success with warnings ( some offline redolog files not found).
Perform manual Log switching and ensure the availability of Offline Redo log files at Log Archive location (log_archive_dest). Then run Archive Log Backup Job.
Also please refer this useful SAP Note 490976 - BR013W No offline redo log files found for processing, to get info about the other possible causes.
Regards
Bhavik G. Shroff -
Hi all,
I am getting this error from adclone.pl when trying to clone a database.
Total System Global Area 444149652 bytes
Fixed Size 73620 bytes
Variable Size 361099264 bytes
Database Buffers 81920000 bytes
Redo Buffers 1056768 bytes
CREATE CONTROLFILE REUSE SET DATABASE "NAME"
ERROR at line 1:
ORA-01503: CREATE CONTROLFILE failed
ORA-01565: error in identifying file '/path/name.DBF'
ORA-27037: unable to obtain file status
IBM AIX RISC System/6000 Error: 2: No such file or directoryit is true the actual file does not exist and is not essential for the running of the database.
Is the information to create the controlfile held in a context file and if so is it possible to edit the file and remove the offending line?
regards
Alan
Edited by: alanm on Sep 14, 2011 3:56 PMit is true the actual file does not exist and is not essential for the running of the database.
Is the information to create the controlfile held in a context file and if so is it possible to edit the file and remove the offending line?It is possible (as mentioned above) but this may not guarantee that the script would work for the other database files which may not exist.
Troubleshooting RapidClone issues with Oracle Applications R12 [ID 603104.1]
Troubleshooting RapidClone issues with Oracle Applications 11i [ID 364565.1]
The best approach to fix this issue is by running preclone again on the source nodes, copy the files and run postclone then.
Thanks,
Hussein -
When I try create controlfile reuse resetlogs database 'cms';
ORA-01503: CREATE CONTROLFILE failed
ORA-01565: error in identifying file
'%ORACLE_HOME%\DATABASE\DBS1%ORACLE_SID%.ORA'
ORA-27048: skgfifi: file header information is invalid
OSD-04001: invalid logical block size (OS 1919900730)
What could be the problem? And why is it looking for DBS1%ORACLE_SID%.ORA' should there be such file?
ora11, Win2003 serveranilreddy wrote:
Go to the Trace file location and edit the trace file, recreate the control file at nomount stateI don't get this advice... why should you go to the tracefile location.
In this stadium there might not even be a tracefile.
Have a look at the statement you use. Usually it looks something like this:
CREATE CONTROLFILE REUSE DATABASE "REPT01" NORESETLOGS FORCE LOGGING NOARCHIVELOG
MAXLOGFILES 29
MAXLOGMEMBERS 4
MAXDATAFILES 254
MAXINSTANCES 2
MAXLOGHISTORY 11685
LOGFILE
GROUP 1 '/opt/rept01/re01/repprd_redo1.log' SIZE 50M,
GROUP 2 '/opt/rept01/re01/repprd_redo2.log' SIZE 50M,
GROUP 3 '/opt/rept01/re01/repprd_redo3.log' SIZE 50M,
DATAFILE
'/opt/rept01/db01/repprd_system01.dbf',
'/opt/rept01/db01/undotbs1.dbf',
'/opt/rept01/db01/repprd_sysaux.dbf',
'/opt/rept01/db01/data01.dbf',
'/opt/rept01/db01/data06.dbf'
CHARACTER SET UTF8
;In your case you should check the files mentioned in the DATAFILE section
Maybe post the complete command you're using.
Thanks
FJFranken -
Creating Controlfile Consfusion
According to Oracle Documents [http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_5003.htm|http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_5003.htm]
When you issue a CREATE CONTROLFILE statement, Oracle Database creates a new control file based on the information you specify in the statement. The control file resides in the location specified in the CONTROL_FILES initialization parameter. If that parameter does not have a value, then the database creates an Oracle-managed control file in the default control file destination, which is one of the following (in order of precedence):
•One or more control files as specified in the DB_CREATE_ONLINE_LOG_DEST_n initialization parameter. The file in the first directory is the primary control file. When DB_CREATE_ONLINE_LOG_DEST_n is specified, the database does not create a control file in DB_CREATE_FILE_DEST or in DB_RECOVERY_FILE_DEST (the flash recovery area).
•If no value is specified for DB_CREATE_ONLINE_LOG_DEST_n, but values are set for both the DB_CREATE_FILE_DEST and DB_RECOVERY_FILE_DEST, then the database creates one control file in each location. The location specified in DB_CREATE_FILE_DEST is the primary control file.
•If a value is specified only for DB_CREATE_FILE_DEST, then the database creates one control file in that location.
•If a value is specified only for DB_RECOVERY_FILE_DEST, then the database creates one control file in that location.
If no values are set for any of these parameters, then the database creates a control file in the default location for the operating system on which the database is running. This control file is not an Oracle-managed file.
SQL> alter database backup controlfile to trace as 'D:\oracle\stuff\control.txt'
2 /
Database altered.
SQL> show parameter control_files
NAME TYPE VALUE
control_files string D:\ORACLE\PRODUCT\10.2.0\ORADA
TA\ORCL\CONTROL01.CTL, D:\ORAC
LE\PRODUCT\10.2.0\ORADATA\ORCL
\CONTROL02.CTL, D:\ORACLE\PROD
UCT\10.2.0\ORADATA\ORCL\CONTRO
L03.CTL
SQL> create pfile='D:\oracle\stuff\pfile.txt' from spfile
2 /
File created.take out control_files parameter from pfile.txt and define the parameter only
db_recovery_file_dest='D:\oracle\product\10.2.0\db_1
db_recovery_file_dest_size=2147483648
SQL> shutdown immediate
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL> startup pfile='D:\oracle\stuff\pfile.txt' nomount
ORACLE instance started.
Total System Global Area 293601280 bytes
Fixed Size 1290208 bytes
Variable Size 218103840 bytes
Database Buffers 67108864 bytes
Redo Buffers 7098368 bytes
SQL> CREATE CONTROLFILE REUSE DATABASE "ORCL" NORESETLOGS ARCHIVELOG
2 MAXLOGFILES 16
3 MAXLOGMEMBERS 3
4 MAXDATAFILES 100
5 MAXINSTANCES 8
6 MAXLOGHISTORY 292
7 LOGFILE
8 GROUP 1 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO01.LOG' SIZE 50M,
9 GROUP 2 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO02.LOG' SIZE 50M,
10 GROUP 3 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO03.LOG' SIZE 50M,
11 GROUP 4 'D:\ORACLE\ORCL\ONLINELOG\O1_MF_4_8MTJ10B8_.LOG' SIZE 100M
12 DATAFILE
13 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF',
14 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF',
15 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF',
16 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF',
17 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\EXAMPLE01.DBF'
18 CHARACTER SET WE8MSWIN1252
19 /
Control file created.
SQL> select name from v$controlfile
2 /
NAME
D:\ORACLE\PRODUCT\10.2.0\DB_1\FLASH_RECOVERY_AREA\ORCL\CONTROLFILE\O1_MF_8MTSRCWH_.CTLAs you can see the location of OMF controlfile which is defined in parameter db_Recovery_file_dest,db_recovery_file_dest='D:\oracle\product\10.2.0\db_1\flash_recovery_area'
But why its failing when i try to assert the Oracle doc statment
If no values are set for any of these parameters DB_CREATE_ONLINE_LOG_DEST_n,DB_CREATE_FILE_DEST,DB_RECOVERY_FILE_DEST.The database creates a control file in the default location for the operating system on which the database is running. This control file is not an Oracle-managed file.
SQL> CREATE CONTROLFILE REUSE DATABASE "ORCL" NORESETLOGS ARCHIVELOG
2 MAXLOGFILES 16
3 MAXLOGMEMBERS 3
4 MAXDATAFILES 100
5 MAXINSTANCES 8
6 MAXLOGHISTORY 292
7 LOGFILE
8 GROUP 1 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO01.LOG' SIZE 50M,
9 GROUP 2 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO02.LOG' SIZE 50M,
10 GROUP 3 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO03.LOG' SIZE 50M,
11 GROUP 4 'D:\ORACLE\ORCL\ONLINELOG\O1_MF_4_8MTJ10B8_.LOG' SIZE 100M
12 DATAFILE
13 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF',
14 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF',
15 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF',
16 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF',
17 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\EXAMPLE01.DBF'
18 CHARACTER SET WE8MSWIN1252
19 ;
CREATE CONTROLFILE REUSE DATABASE "ORCL" NORESETLOGS ARCHIVELOG
ERROR at line 1:
ORA-01503: CREATE CONTROLFILE failed
ORA-00600: internal error code, arguments: [kccbcf_omf_reuse], [], [], [], [],
SQL> disconnect
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL>Oh really , here you go , i hope you can help me to sort the issue.
SQL> alter database backup controlfile to trace as 'D:\oracle\stuff\control.txt'
2 /
Database altered.
SQL> show parameter control_files
NAME TYPE VALUE
control_files string D:\ORACLE\PRODUCT\10.2.0\ORADA
TA\ORCL\CONTROL01.CTL, D:\ORAC
LE\PRODUCT\10.2.0\ORADATA\ORCL
\CONTROL02.CTL, D:\ORACLE\PROD
UCT\10.2.0\ORADATA\ORCL\CONTRO
L03.CTL
SQL> create pfile='D:\oracle\stuff\pfile.txt' from spfile
2 /
File created.take out control_files parameter from pfile.txt
Pfile Parameters
orcl.__db_cache_size=71303168
orcl.__java_pool_size=8388608
orcl.__large_pool_size=4194304
orcl.__shared_pool_size=201326592
orcl.__streams_pool_size=0
*.audit_file_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\adump'
*.background_dump_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\bdump'
*.compatible='10.2.0.3.0'
#*.control_files='D:\ORACLE\PRODUCT\10.2.0\DB_1\FLASH_RECOVERY_AREA\ORCL\CONTROLFILE\O1_MF_8MV1O4PY_.CTL'
*.db_recovery_file_dest_size=2147483648
*.db_recovery_file_dest='D:\oracle\product\10.2.0\db_1\flash_recovery_area'
*.core_dump_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\cdump'
*.db_block_size=8192
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_name='orcl'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
*.job_queue_processes=10
*.open_cursors=300
*.pga_aggregate_target=96468992
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_target=290455552
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\udump'
SQL> shutdown immediate
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL> startup pfile='D:\oracle\stuff\pfile.txt' nomount
ORACLE instance started.
Total System Global Area 293601280 bytes
Fixed Size 1290208 bytes
Variable Size 218103840 bytes
Database Buffers 67108864 bytes
Redo Buffers 7098368 bytes
SQL> CREATE CONTROLFILE REUSE DATABASE "ORCL" NORESETLOGS ARCHIVELOG
2 MAXLOGFILES 16
3 MAXLOGMEMBERS 3
4 MAXDATAFILES 100
5 MAXINSTANCES 8
6 MAXLOGHISTORY 292
7 LOGFILE
8 GROUP 1 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO01.LOG' SIZE 50M,
9 GROUP 2 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO02.LOG' SIZE 50M,
10 GROUP 3 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO03.LOG' SIZE 50M,
11 GROUP 4 'D:\ORACLE\ORCL\ONLINELOG\O1_MF_4_8MTJ10B8_.LOG' SIZE 100M
12 DATAFILE
13 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF',
14 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF',
15 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF',
16 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF',
17 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\EXAMPLE01.DBF'
18 CHARACTER SET WE8MSWIN1252
19 /
Control file created.
SQL> select name from v$controlfile
2 /
NAME
D:\ORACLE\PRODUCT\10.2.0\DB_1\FLASH_RECOVERY_AREA\ORCL\CONTROLFILE\O1_MF_8MTSRCWH_.CTLAs you can see the location of OMF controlfile which is defined in parameter db_Recovery_file_dest,db_recovery_file_dest='D:\oracle\product\10.2.0\db_1\flash_recovery_area'
But why its failing when i try to assert the Oracle doc statment
If no values are set for any of these parameters DB_CREATE_ONLINE_LOG_DEST_n,DB_CREATE_FILE_DEST,DB_RECOVERY_FILE_DEST.The database creates a control file in the default location for the operating system on which the database is running. This control file is not an Oracle-managed file.
Pfile Parameters
orcl.__db_cache_size=71303168
orcl.__java_pool_size=8388608
orcl.__large_pool_size=4194304
orcl.__shared_pool_size=201326592
orcl.__streams_pool_size=0
*.audit_file_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\adump'
*.background_dump_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\bdump'
*.compatible='10.2.0.3.0'
*.control_files='D:\ORACLE\PRODUCT\10.2.0\DB_1\FLASH_RECOVERY_AREA\ORCL\CONTROLFILE\O1_MF_8MV1O4PY_.CTL'
*.core_dump_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\cdump'
*.db_block_size=8192
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_name='orcl'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
*.job_queue_processes=10
*.open_cursors=300
*.pga_aggregate_target=96468992
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_target=290455552
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\udump'
SQL> CREATE CONTROLFILE REUSE DATABASE "ORCL" NORESETLOGS ARCHIVELOG
2 MAXLOGFILES 16
3 MAXLOGMEMBERS 3
4 MAXDATAFILES 100
5 MAXINSTANCES 8
6 MAXLOGHISTORY 292
7 LOGFILE
8 GROUP 1 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO01.LOG' SIZE 50M,
9 GROUP 2 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO02.LOG' SIZE 50M,
10 GROUP 3 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO03.LOG' SIZE 50M,
11 GROUP 4 'D:\ORACLE\ORCL\ONLINELOG\O1_MF_4_8MTJ10B8_.LOG' SIZE 100M
12 DATAFILE
13 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF',
14 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF',
15 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF',
16 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF',
17 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\EXAMPLE01.DBF'
18 CHARACTER SET WE8MSWIN1252
19 ;
CREATE CONTROLFILE REUSE DATABASE "ORCL" NORESETLOGS ARCHIVELOG
ERROR at line 1:
ORA-01503: CREATE CONTROLFILE failed
ORA-00600: internal error code, arguments: [kccbcf_omf_reuse], [], [], [], [],
[], [], []when i do not define the contro_files parameter within pfile , it works a trait. It creates the control file using OS default location in the absence of control_files, whats the point?
Pfile Parameters
orcl.__db_cache_size=71303168
orcl.__java_pool_size=8388608
orcl.__large_pool_size=4194304
orcl.__shared_pool_size=201326592
orcl.__streams_pool_size=0
*.audit_file_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\adump'
*.background_dump_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\bdump'
*.compatible='10.2.0.3.0'
#*.control_files='D:\ORACLE\PRODUCT\10.2.0\DB_1\FLASH_RECOVERY_AREA\ORCL\CONTROLFILE\O1_MF_8MV1O4PY_.CTL'
*.db_recovery_file_dest_size=2147483648
*.db_recovery_file_dest='D:\oracle\product\10.2.0\db_1\flash_recovery_area'
*.core_dump_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\cdump'
*.db_block_size=8192
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_name='orcl'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
*.job_queue_processes=10
*.open_cursors=300
*.pga_aggregate_target=96468992
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_target=290455552
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='D:\oracle\product\10.2.0\db_1\admin\orcl\udump'
SQL> startup pfile='D:\oracle\stuff\pfile.txt' nomount
ORACLE instance started.
Total System Global Area 293601280 bytes
Fixed Size 1290208 bytes
Variable Size 218103840 bytes
Database Buffers 67108864 bytes
Redo Buffers 7098368 bytes
SQL> CREATE CONTROLFILE REUSE DATABASE "ORCL" NORESETLOGS ARCHIVELOG
2 MAXLOGFILES 16
3 MAXLOGMEMBERS 3
4 MAXDATAFILES 100
5 MAXINSTANCES 8
6 MAXLOGHISTORY 292
7 LOGFILE
8 GROUP 1 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO01.LOG' SIZE 50M,
9 GROUP 2 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO02.LOG' SIZE 50M,
10 GROUP 3 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO03.LOG' SIZE 50M,
11 GROUP 4 'D:\ORACLE\ORCL\ONLINELOG\O1_MF_4_8MTJ10B8_.LOG' SIZE 100M
12 DATAFILE
13 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF',
14 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF',
15 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF',
16 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF',
17 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\EXAMPLE01.DBF'
18 CHARACTER SET WE8MSWIN1252
19 ;
Control file created.
SQL> select name from v$controlfile
2 /
NAME
D:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\CTL1ORCL.ORA -
I have a big problem.Can anyoane help me?
I had accidentaly delete all my database, i had recover the files with a recover tool but not the control files.
Now i whant to recreate the controlfiles with the script:
CREATE CONTROLFILE SET DATABASE "TEST" RESETLOGS NOARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 8
MAXLOGHISTORY 2336
LOGFILE
GROUP 1 'D:\...' SIZE 100M,
GROUP 2 'D:\...' SIZE 100M,
GROUP 3 'D:\...' SIZE 100M,
DATAFILE
'D:\....',
'D:\....',
'D:\....',
CHARACTER SET UTF8
AND I RECEIVE :
ERROR AT LINE 1:
ORA-01503: CREATE CONTROLFILE failed
ORA-01200: actual file size of 2621140 is smaller than corect size of 262144 blocks
ORA-01110: data file 7 : 'D:\....'
I dont have any bkp. :(
Can anyone help me?
Thanks and excuze my englishHi..
From metalink:--
>
Error: ORA 1200
Text: actual file size of <num> is smaller than correct size of <num> blocks
Cause: The size of the file, as returned by the operating system, is smaller
than the size of the file as indicated in the file header and the
control file.
Somehow the file has been truncated.
Action: Restore a good copy of the datafile from a backup and perform recovery
as needed.
>
Anand -
I am trying to recreate the control file from the text trace file I created.
When I run the script in the trace file I get errors, so I'm breaking it down into little steps.
After running this:
STARTUP NOMOUNT;
CREATE CONTROLFILE REUSE DATABASE "D3P" RESETLOGS ARCHIVELOG;
I get this error:
SQL> CREATE CONTROLFILE REUSE DATABASE "D3P" RESETLOGS ARCHIVELOG;
CREATE CONTROLFILE REUSE DATABASE "D3P" RESETLOGS ARCHIVELOG
ERROR at line 1:
ORA-01503: CREATE CONTROLFILE failed
ORA-01565: error in identifying file '?/dbs/[email protected]'
ORA-27037: unable to obtain file status
HP-UX Error: 2: No such file or directory
Additional information: 3
I have no ideas where this file is coming from:
?/dbs/[email protected]'
Any advice?I am using Oracle 9.2.0.6
Here are the home & sid:
ORACLE_SID=D3P
ORACLE_HOME=/oracle/D3P/920_64
Here is the complete statement:
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE SET DATABASE "D3P" RESETLOGS ARCHIVELOG
-- SET STANDBY TO MAXIMIZE PERFORMANCE
MAXLOGFILES 255
MAXLOGMEMBERS 3
MAXDATAFILES 254
MAXINSTANCES 50
MAXLOGHISTORY 2949
LOGFILE
GROUP 1 (
'/oracle/D3P/origlogA/log_g11m1.dbf',
'/oracle/D3P/mirrlogA/log_g11m2.dbf'
) SIZE 50M,
GROUP 2 (
'/oracle/D3P/origlogB/log_g12m1.dbf',
'/oracle/D3P/mirrlogB/log_g12m2.dbf'
) SIZE 50M,
GROUP 3 (
'/oracle/D3P/origlogA/log_g13m1.dbf',
'/oracle/D3P/mirrlogA/log_g13m2.dbf'
) SIZE 50M,
GROUP 4 (
'/oracle/D3P/origlogB/log_g14m1.dbf',
'/oracle/D3P/mirrlogB/log_g14m2.dbf'
) SIZE 50M
-- STANDBY LOGFILE
DATAFILE
'/oracle/D3P/sapdata3/system_1/system.data1',
'/oracle/D3P/sapdata1/r3_1/r3.data1',
'/oracle/D3P/sapdata2/r3_2/r3.data2',
'/oracle/D3P/sapdata1/r3_3/r3.data3',
'/oracle/D3P/sapdata2/r3_4/r3.data4',
'/oracle/D3P/sapdata1/r3_5/r3.data5',
'/oracle/D3P/sapdata2/r3_6/r3.data6',
'/oracle/D3P/sapdata1/r3_7/r3.data7',
'/oracle/D3P/sapdata2/r3_8/r3.data8',
'/oracle/D3P/sapdata1/r3_9/r3.data9',
'/oracle/D3P/sapdata2/r3620_1/r3620.data1',
'/oracle/D3P/sapdata3/r3usr_1/r3usr.data1',
'/oracle/D3P/sapdata3/r3_13/r3.data13',
'/oracle/D3P/sapdata3/r3_10/r3.data10',
'/oracle/D3P/sapdata2/r3620_2/r3620.data2',
'/oracle/D3P/sapdata3/r3620_3/r3620.data3',
'/oracle/D3P/sapdata3/r3_11/r3.data11',
'/oracle/D3P/sapdata3/r3_12/r3.data12',
'/oracle/D3P/sapdata4/undo_1/undo.data1',
'/oracle/D3P/sapdata3/r3620_4/r3620.data4',
'/oracle/D3P/sapdata4/r3_14/r3.data14',
'/oracle/D3P/sapdata4/r3_15/r3.data15',
'/oracle/D3P/sapdata4/r3_16/r3.data16',
'/oracle/D3P/sapdata4/r3_17/r3.data17',
'/oracle/D3P/sapdata2/r3_18/r3.data18',
'/oracle/D3P/sapdata2/r3_19/r3.data19',
'/oracle/D3P/sapdata2/r3_20/r3.data20'
CHARACTER SET UTF8
Here is the results
SQL> CREATE CONTROLFILE REUSE SET DATABASE "D3P" RESETLOGS ARCHIVELOG
-- SET STANDBY TO MAXIMIZE PERFORMANCE
MAXLOGFILES 255
MAXLOGMEMBERS 3
MAXDATAFILES 254
MAXINSTANCES 50
MAXLOGHISTORY 2949
LOGFILE
GROUP 1 (
'/oracle/D3P/origlogA/log_g11m1.dbf',
'/oracle/D3P/mirrlogA/log_g11m2.dbf'
) SIZE 50M,
GROUP 2 (
'/oracle/D3P/origlogB/log_g12m1.dbf',
'/oracle/D3P/mirrlogB/log_g12m2.dbf'
) SIZE 50M,
GROUP 3 (
'/oracle/D3P/origlogA/ 2 3 4 5 6 7 8 '/oracle/D3P/sapd
ata4/r3_16/r3.data16',
ERROR at line 2:
ORA-01967: invalid option for CREATE CONTROLFILE -
Error creating controlfile in linux
hi my crt statement is
CREATE CONTROLFILE
SET DATABASE smsdev
LOGFILE GROUP 1 ('/u01/app/oracle/oradata/smsdev/redo01_01.log',
'/u01/app/oracle/oradata/smsdev/redo01_02.log'),
GROUP 2 ('/u01/app/oracle/oradata/smsdev/redo02_01.log',
'/u01/app/oracle/oradata/smsdev/redo02_02.log'),
GROUP 3 ('/u01/app/oracle/oradata/smsdev/redo03_01.log',
'/u01/app/oracle/oradata/smsdev/redo03_02.log')
RESETLOGS
DATAFILE '/u01/app/oracle/oradata/smsdev/system01.dbf' SIZE 3M,
'/u01/app/oracle/oradata/smsdev/rbs01.dbs' SIZE 5M,
'/u01/app/oracle/oradata/smsdev/users01.dbs' SIZE 5M,
'/u01/app/oracle/oradata/smsdev/temp01.dbs' SIZE 5M
MAXLOGFILES 50
MAXLOGMEMBERS 3
MAXLOGHISTORY 400
MAXDATAFILES 200
MAXINSTANCES 6
ARCHIVELOG;
am geting this error ERROR at line 1:
ORA-01503: CREATE CONTROLFILE failed
ORA-01565: error in identifying file
'/u01/app/oracle/oradata/smsdev/system01.dbf'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
what could be the problem , dir u01/app/oracle/oradata/smsdev is empty at the moment
Edited by: Tshifhiwa on 2012/03/17 3:47 PMam starting database i already created database,how can i create this file DATAFILE '/u01/app/oracle/oradata/smsdev/system01.dbf' size 5m,
'/u01/app/oracle/oradata/smsdev/undo01.dbf' size 5m,
'/u01/app/oracle/oradata/smsdev/users01.dbf' size 5m,
'/u01/app/oracle/oradata/smsdev/temp01.dbf' size 5m
my create script is CREATE CONTROLFILE
REUSE DATABASE smsdev
LOGFILE GROUP 1 ('/u01/app/oracle/oradata/smsdev/redo01_01.log',
'/u01/app/oracle/oradata/smsdev/redo01_02.log'),
GROUP 2 ('/u01/app/oracle/oradata/smsdev/redo02_01.log',
'/u01/app/oracle/oradata/smsdev/redo02_02.log'),
GROUP 3 ('/u01/app/oracle/oradata/smsdev/redo03_01.log',
'/u01/app/oracle/oradata/smsdev/redo03_02.log')
RESETLOGS
DATAFILE '/u01/app/oracle/oradata/smsdev/system01.dbf' size 5m,
'/u01/app/oracle/oradata/smsdev/undo01.dbf' size 5m,
'/u01/app/oracle/oradata/smsdev/users01.dbf' size 5m,
'/u01/app/oracle/oradata/smsdev/temp01.dbf' size 5m
MAXLOGFILES 50
MAXLOGMEMBERS 3
MAXLOGHISTORY 400
MAXDATAFILES 200
MAXINSTANCES 6
ARCHIVELOG;
Edited by: Tshifhiwa on 2012/03/17 4:08 PM
Edited by: Tshifhiwa on 2012/03/17 4:28 PM
Edited by: Tshifhiwa on 2012/03/17 4:29 PM -
Issue with create controlfile script that was generated from trace file
Hi All,
I am racking my brans here as cannot seem to fatham this one out. Having backed up control file to trace, then deleted all datafiles, control files, and redo log files, I then ran the following and received the below error:
SQL> STATUP NOMOUNT
ORACLE instance started.
Total System Global Area 289406976 bytes
Fixed Size 1248576 bytes
Variable Size 88081088 bytes
Database Buffers 192937984 bytes
Redo Buffers 7139328 bytes
SQL> CREATE CONTROLFILE SET DATABASE "TEST" 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\TEST\REDO01.LOG' SIZE 50M,
9 GROUP 2 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\REDO02.LOG' SIZE 50M,
10 GROUP 3 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\REDO03.LOG' SIZE 50M
11 DATAFILE
12 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\SYSTEM01.DBF',
13 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\UNDOTBS01.DBF',
14 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\SYSAUX01.DBF',
15 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\USERS01.DBF'
16 CHARACTER SET WE8MSWIN1252;
CREATE CONTROLFILE SET DATABASE "TEST" RESETLOGS ARCHIVELOG
ERROR at line 1:
ORA-01503: CREATE CONTROLFILE failed
ORA-01565: error in identifying file
'C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST\SYSTEM01.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.
I am able to restore a control file using [RMAN> restore controlfile to '....' ] and then mount the database without problems one the CF restore has taken place, it is just when I attempt to create control file using the able commands that I get the preceding error.
As this control file statement that is attepting to create a control file has never had any information about datafiles is this why I am seeing the error?
Have checked metalink & web but yet to find a reason why this is occuring. Please advise.
Thanks,
AndrewHi,
You deletd all the data files that is the issue. So it is complaining that it can not find system tablespace datafile. If you just wanted to recreate the controlfile then just delete control file. Why did you delete data files.
Regards
Generetaed control trace flle is used to re-create the control file. This not not a way to create/restore data files. They should exist for control file to be created.
Edited by: skvaish1 on Nov 5, 2009 4:36 PM -
Recreation of controlfile fail
Hi all,
I am attempting to recreate the controlfile for a 2 node RAC (10g) on EL4.I am using ASM for the shared storage. I copied the relevant section from the ASCII backup controlfile, when I run the script I am getting the following errors:
ERROR at line 1:
ORA-01503: CREATE CONTROLFILE failed
ORA-12720: operation requires database is in EXCLUSIVE mode
.Thanks for the reply.
Yes I lost a diskgroup that contained the controlfile.
I must also share that the shared file system was NFS before I migrated it to ASM. I took a backup after I migrated to ASM.
When I restored the DB it restored the datafiles to the previous NFS location ( Could this be because DB_CREATE_FILE_DEST is set to '/share1/oradata' in the spfile?), I therefore had to change the path to the datafiles from '+DG1/devdb/datafile/' to the NFS location as seen in the ascii file.
The ASCII is as follows
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "DEVDB" RESETLOGS ARCHIVELOG
MAXLOGFILES 192
MAXLOGMEMBERS 3
MAXDATAFILES 1024
MAXINSTANCES 32
MAXLOGHISTORY 292
LOGFILE
GROUP 1 (
'+DG1/devdb/log1/log_1_1a.log',
'+DG1/devdb/log1/log_1_1b.log'
) SIZE 50M,
GROUP 2 (
'+DG1/devdb/log1/log_1_2a.log',
'+DG1/devdb/log1/log_1_2b.log'
) SIZE 50M
-- STANDBY LOGFILE
DATAFILE
'/share1/oradata/DEVDB/system.258.694992723',
'/share1/oradata/DEVDB/undotbs1.261.694993001',
'/share1/oradata/DEVDB/sysaux.259.694992839',
'/share1/oradata/DEVDB/users.268.694993021',
'/share1/oradata/DEVDB/example.260.694992977',
'/share1/oradata/DEVDB/undotbs2.262.694993009',
'/share1/oradata/DEVDB/test.264.694993017'
CHARACTER SET WE8ISO8859P1
-- Configure RMAN configuration record 1
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('CONTROLFILE AUTOBACKUP','ON');
-- Configure RMAN configuration record 2
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE','DISK TO ''ControlFileAutoBackup_%F''');
-- Commands to re-create incarnation table
-- Below log names MUST be changed to existing filenames on
-- disk. Any one log file from each branch can be used to
-- re-create incarnation records.
-- ALTER DATABASE REGISTER LOGFILE '+RECOVERYDEST';
-- ALTER DATABASE REGISTER LOGFILE '+RECOVERYDEST';
-- Recovery is required if any of the datafiles are restored backups,
-- or if the last shutdown was not normal or immediate.
RECOVER DATABASE USING BACKUP CONTROLFILE
-- Create log files for threads other than thread one.
ALTER DATABASE ADD LOGFILE THREAD 2
GROUP 3 (
'+DG1/devdb/log2/log_2_3a.log',
'+DG1/devdb/log2/log_2_3b.log'
) SIZE 50M REUSE,
GROUP 4 (
'+DG1/devdb/log2/log_2_4a.log',
'+DG1/devdb/log2/log_2_4b.log'
) SIZE 50M REUSE;
-- Database can now be opened zeroing the online logs.
ALTER DATABASE OPEN RESETLOGS;
-- Commands to add tempfiles to temporary tablespaces.
-- Online tempfiles have complete space information.
-- Other tempfiles may require adjustment.
ALTER TABLESPACE TEMPTBS ADD TEMPFILE '+DG1/devdb/tempfile/temptbs.266.694656657' REUSE;
-- End of tempfile additions.
--
Maybe you are looking for
-
Publishing a regular html file without using iweb or mobileme?
i'm in a web design class where everyone uses windows based systems and i'm learning html/css codes. i'm using komodo to write my code and now i'm at the point where we are talking about publishing the sites we've made for our projects. iweb will n
-
Object to upload the file in SAP
Hi All I have a problem while uploading the .txt file, when i am trying to upload it just says upload failed, I added the objects S_GUI and S_DATASET objects,but still no effect. Can any body provide any information or hint. I ran Su53 and this is s
-
hi friends , need help in uploading the file on the server and storing the path of the file while inserting to the database . I have the code with me but that is limited to the one content type i.e text or doc format . I am noit getting as to how sho
-
Price Variation Cost Configuration in COPA
Hi, COPA has been configured at one of the clients but there are certain difficulties Sales are made to party against Sales Order and against Price Variation Order ( Price variation is nothing but the price increase or decrease which is to be recover
-
Skip unwanted segment - but required?
Hi, if I dont want an Idoc segment to be created in my mapping, that is required (1..9999), what should I do?