Recreating control file in RAC with noresetlogs
Hi all,
I need to recreate the controlfile in a 2-node RAC environment (9i)
for altering the MAXLOGHISTORY value. I will be using noresetlogs as I
have all the online logs available with me.
I referred to metalink note (Note:118931.1) for the same, and to
clarify the same, it refers to set cluster_database to false and then
to true after creating the new controlfile.
Here I have Log Groups 1,2,5,6,7 belongs to instance1 and the rest belongs to
instance2
Below is the trace of controlfile...
create controlfile reuse database "prod" noresetlogs force logging
archivelog
maxlogfiles 64
maxlogmembers 3
maxdatafiles 800
maxinstances 32
maxloghistory 15000
logfile
group 1 '/dev/rprod_redo11' size 100m,
group 2 '/dev/rprod_redo12' size 100m,
group 3 '/dev/rprod_redo21' size 100m,
group 4 '/dev/rprod_redo22' size 100m,
group 5 '/dev/rprod_redo13' size 100m,
group 6 '/dev/rprod_redo14' size 100m,
group 7 '/dev/rprod_redo15' size 100m,
group 8 '/dev/rprod_redo23' size 100m,
group 9 '/dev/rprod_redo24' size 100m,
group 10 '/dev/rprod_redo25' size 100m
-- standby logfile
datafile
Please clarify on the same, do the traced controlfile need to have some thread info for redo logs & do I need to make the cluster_database parameter to fale/true.
Thanks!
Prat
1. Create the trace file (with Create control file statements..)
2. Edit the trace file, to remove the log groups which doesn't belong to Instance 1 (in you case you would be removing groups 3,4,8,9,10).
3. Shutdown all the instances.
4. edit the init.ora file to make CLUSTER_DATABASE=FALSE:
5. startup nomount instance 1.
6. Run the edited trace file to create the control file.
7. shutdown instance 1.
8. edit the init.ora file to make CLUSTER_DATABASE=TRUE;
9. Startup instance 1;
10. Add the log groups for the instance 2 (groups 3,4,8,9,10)
11. Add tempfiles as indicated in the trace file.
12. Enable thread 2;
13. Startup instance 2.
As always, take backups.
HTH
Thanks
Chandra
Similar Messages
-
Hi
Can anybody explain when to use "RESETLOGS" and "NORESETLOGS" option while making backup of Control File to TRACE and whats the purpose of using it?
ALTER DATABASE BACKUP CONTROL FILE TO TRACE RESETLOGS/NORESETLOGS;
TIA
Aqueel.read the following discussion from asktom site. Very informative and helpful.
http://asktom.oracle.com/pls/ask/f?p=4950:8:2270402190261165858::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:311016722068
Jaffar -
Best script for recreating control file
Hi
Yesterday I had a lot of fun trying to refresh a Dev db with an inconsistent backup (just learned that the offline backup from that night finished late and not before the db was started up again, thus making datafile inconsistent).
Today I will try again. I am waiting for the tape backup to finish restoring to the Dev datafile directory.
I would love to know if there is a template out there, or if we can agree here, for the best standard for recreating a control file through a @script.
I will include the one I intend to use here, minus the datafiles.
I am using the RESETLOGS, since we are using :"SET" database.
STARTUP NOMOUNT
CREATE CONTROLFILE SET DATABASE "DEV" RESETLOGS ARCHIVELOG
-- SET STANDBY TO MAXIMIZE PERFORMANCE
MAXLOGFILES 16
MAXLOGMEMBERS 2
MAXDATAFILES 500
MAXINSTANCES 1
MAXLOGHISTORY 19285
LOGFILE
GROUP 1 (
'/oradbi1/oracle/proddata/log01a.dbf',
'/oradbi1/oracle/proddata/log01b.dbf'
) SIZE 10M,
GROUP 2 (
'/oradbi1/oracle/proddata/log02a.dbf',
'/oradbi1/oracle/proddata/log02b.dbf'
) SIZE 10M,
GROUP 3 (
'/oradbi1/oracle/proddata/log03a.dbf',
'/oradbi1/oracle/proddata/log03b.dbf'
) SIZE 10M
-- STANDBY LOGFILE
DATAFILE
'/oradbi1/oracle/proddata/system01.dbf',
'/oradbi1/oracle/proddata/applsysd09.dbf',
'/oradbi1/oracle/proddata/bend06.dbf'
CHARACTER SET US7ASCII
RECOVER DATABASE USING BACKUP CONTROLFILE
ALTER DATABASE OPEN RESETLOGS;
ALTER TABLESPACE TEMP ADD TEMPFILE '/oradbi1/oracle/proddata/tmp04.dbf'
SIZE 2040M REUSE AUTOEXTEND OFF;
ALTER TABLESPACE TEMP ADD TEMPFILE '/oradbi1/oracle/proddata/tmp03.dbf'
SIZE 2040M REUSE AUTOEXTEND OFF;
ALTER TABLESPACE TEMP ADD TEMPFILE '/oradbi1/oracle/proddata/tmp02.dbf'
SIZE 2040M REUSE AUTOEXTEND ON NEXT 10485760 MAXSIZE 32767M;
ALTER TABLESPACE TEMP ADD TEMPFILE '/oradbi1/oracle/proddata/tmp01.dbf'
SIZE 2000M REUSE AUTOEXTEND OFF;
If anyone can see room for improvement on this, please let us know.
Thanks.
AIX 5.2
Oracle 9.2I normally break it up into seperate scripts (even though the "trace" file generates a single script file).
1. The first is the CREATE CONTROLFILE itself. If successful , it also mounts the database.
The most important portion is to validate that we do have ALL the datafiles included.
(eg if you are generating from an old controlfile backup and some new datafile(s) have been added since that backup you had better ensure that you add them to the script , else the RECOVER DATABASE will ignore them and they will be unrecoverable after the OPEN RESETLOGS !)
2. The next portion is the RECOVER DATABASE USING BACKUP CONTROLFILE which I never run non-interactively.
Always ensure that it is NOT an interactive run. If you really have more than a dozen archivelogs to apply, then you could just enter AUTO after supplying the first 3 or 4 archivelogs and wait for the RECOVER DATABASE to "error" out after it applies the last archivelog.
3. The next portion is a manual RECOVER to apply any Archivelogs that couldn't be applied by the AUTO -- eg Archives that weren't on disk but which I've restored OR the actual last Active/Current Online Redo Logs that hadn't been applied.
between step 3 and step 4,
to be safe : I could SHUTDOWN (it is MOUNTED but not OPEN) and take a Cold Backup of the database files and controlfiles. -- This can help me retry a RESETLOGS or restore a datafile that I might have mistakenly excluded from the CREATE CCF script
and re-"recover" database -- meaning that Oracle will recover that datafile alone.
4. Finally I review the alert.log, satisfy myself that I have applied all archivelogs and then manually issue the ALTER DATABASE OPEN RESETLOGS.
5. Now I add TEMPFILEs (if 10g hasn't done it "automagically")
6. If I have time, take a Cold Backup OR initiate a Hot Backup asap.
I know that 10g now provides supported methods of recovering through a RESETLOGS, based on Incarnation ID, ... but still , old habits and old commands die hard.
Have I answered your question about how to format the CREATE CCF ? No. But I've just added some inputs on how I prefer the next few steps be done.
Hemant K Chitale
http://hemantoracledba.blogspot.com
Edited by: Hemant K Chitale on Oct 22, 2008 10:05 PM
Added the addition of TEMPFILEs
Edited by: Hemant K Chitale on Oct 22, 2008 10:20 PM
Corrected step 2 to be "Always ensure that it is NOT an interactive run" -
ERROR IN RECREATING CONTROL FILES
hello,
I am trying to learn the concepts of database administration.
I am facing a problem while creating a new control file:
O.S=Windows 7 ORacle 10g
What i want to do:
1. The database has been created, now i have deleted the control file of my database to learn creating a new one.
2. I have issued the command :
create controlfile reuse database ipl noresetlogs;
3. I am getting an error
Error at line 1:
ora-01503: create control file failed
ora-01565: error in identifying file
'%oracle_home%\database\dbs1%oracle_sid%.ora'
ora-27041:unable to open file
osd-04002: unable to open file
o/s-error: (os2) The system cannot find specified file
Please help me to solve the issue.
Also studying from oracle administartion guide ebook:
I came across
CREATE CONTROLFILE
SET DATABASE prod
LOGFILE GROUP 1 ('/u01/oracle/prod/redo01_01.log',
'/u01/oracle/prod/redo01_02.log'),
GROUP 2 ('/u01/oracle/prod/redo02_01.log',
'/u01/oracle/prod/redo02_02.log'),
GROUP 3 ('/u01/oracle/prod/redo03_01.log',
'/u01/oracle/prod/redo03_02.log')
RESETLOGS
DATAFILE '/u01/oracle/prod/system01.dbf' SIZE 3M,
'/u01/oracle/prod/rbs01.dbs' SIZE 5M,
'/u01/oracle/prod/users01.dbs' SIZE 5M,
'/u01/oracle/prod/temp01.dbs' SIZE 5M
MAXLOGFILES 50
MAXLOGMEMBERS 3
MAXLOGHISTORY 400
MAXDATAFILES 200
MAXINSTANCES 6
ARCHIVELOG;
I would like to know the following:
1.If only the control file is deleted, should we include the datafile clause as well as the log file clause or only create controlfile reuse database ipl noresetlogs command is enough.
_______________________________________________________________________________________________________________________________________________Read the full doc: It will help. Yes You must list datafiles and log files etc. To know the reason, you will have to read the doc. If you are new and trying to learn new concepts, oracle documentation is your best buddy.
http://docs.oracle.com/cd/B12037_01/server.101/b10759/statements_5003.htm
Example
Creating a Controlfile: Example
This statement re-creates a control file. In this statement, database demo was created with the WE8DEC character set. The example uses the word path where you would normally insert the path on your system to the appropriate Oracle Database directories.
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "demo" NORESETLOGS NOARCHIVELOG
MAXLOGFILES 32
MAXLOGMEMBERS 2
MAXDATAFILES 32
MAXINSTANCES 1
MAXLOGHISTORY 449
LOGFILE
GROUP 1 '/path/oracle/dbs/t_log1.f' SIZE 500K,
GROUP 2 '/path/oracle/dbs/t_log2.f' SIZE 500K
# STANDBY LOGFILE
DATAFILE
'/path/oracle/dbs/t_db1.f',
'/path/oracle/dbs/dbu19i.dbf',
'/path/oracle/dbs/tbs_11.f',
'/path/oracle/dbs/smundo.dbf',
'/path/oracle/dbs/demo.dbf'
CHARACTER SET WE8DEC
; -
Unable to recreate control file.
Hello experts.
I'm trying to recreate controlfile in oracle database 10.2 using trace file. by during running script it shows ERROR at line 8: ORA-01967: invalid option for CREATE CONTROLFILE
my script create control file script below. please help
============================================================
CREATE CONTROLFILE REUSE DATABASE "TSH1" NORESETLOGS ARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 8
MAXLOGHISTORY 292
LOGFILE
GROUP 1 '/u01/app/oracle/oradata/TSH1/redo01.log' SIZE 50M BLOCKSIZE 512,
GROUP 2 '/u01/app/oracle/oradata/TSH1/redo02.log' SIZE 50M BLOCKSIZE 512,
GROUP 3 '/u01/app/oracle/oradata/TSH1/redo03.log' SIZE 50M BLOCKSIZE 512
DATAFILE
'/u01/app/oracle/oradata/TSH1/system01.dbf',
'/u01/app/oracle/oradata/TSH1/undotbs01.dbf',
'/u01/app/oracle/oradata/TSH1/sysaux01.dbf',
'/u01/app/oracle/oradata/TSH1/users01.dbf',
'/u01/app/oracle/oradata/TSH1/oradaxmldb_ts.dbf'
CHARACTER SET WE8ISO8859P1
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('CHANNEL','DEVICE TYPE DISK FORMAT ''/backup/%U''');
RECOVER DATABASE
ALTER SYSTEM ARCHIVE LOG ALL;
ALTER DATABASE OPEN;
ALTER TABLESPACE TEMP ADD TEMPFILE '/u01/app/oracle/oradata/TSH1/temp01.dbf' REUSE;Hi
Just remove below lines from scripts and run again and please use set instead of reuse in the create control file staetment .
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('CHANNEL','DEVICE TYPE DISK FORMAT ''/backup/%U''');
RECOVER DATABASE
ALTER SYSTEM ARCHIVE LOG ALL;
ALTER DATABASE OPEN;
ALTER TABLESPACE TEMP ADD TEMPFILE '/u01/app/oracle/oradata/TSH1/temp01.dbf' REUSE;
Regards
Shivendra Narain Nirala -
Problem while recreating control file : Oracle 10g
Hi,
I am using oracle 10g version of database. i have multiple databases. I was not able to start one database which led to control file error. Then I found that the file got corrupted. I used the following syntax to restore my control file.
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "mydb" NORESETLOGS NOARCHIVELOG
MAXLOGFILES 32
MAXLOGMEMBERS 2
MAXDATAFILES 30
MAXINSTANCES 8
MAXLOGHISTORY 800
LOGFILE
GROUP 1 'redolog location' SIZE 500K
DATAFILE
'datafilelocation.dbf'
but it failed with the following error.
ERROR at line 1:
ORA-01503: CREATE CONTROLFILE failed
ORA-01115: IO error reading block from file (block # 1)
ORA-01110: data file : 'datafilelocation.dbf'
ORA-27091: unable to queue I/O
ORA-27070: async read/write failed
OSD-04006: ReadFile() failure, unable to read from file
O/S-Error: (OS 23) Data error (cyclic redundancy check).
Does this mean the datafiles are also corrupted? if yes, please do let me know how i can restore my datafiles. my system is of windows XP 2002.
thanks,
HaripriyaHi,
thanks for all your replies. But I am using the full path for the log and for the datafiles. Just didnt want to reveal that before. Anyway below is the complete path that i was using.
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "ACMDB" NORESETLOGS NOARCHIVELOG
MAXLOGFILES 32
MAXLOGMEMBERS 2
MAXDATAFILES 30
MAXINSTANCES 8
MAXLOGHISTORY 800
LOGFILE
GROUP 1 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\ACMDB\REDO01.LOG' SIZE 500K,
GROUP 2 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\ACMDB\REDO02.LOG' SIZE 500K,
GROUP 2 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\ACMDB\REDO03.LOG' SIZE 500K
DATAFILE
'D:/oracle/product/10.1.0/oradata/acmdb/SYSAUX01.dbf',
'D:/oracle/product/10.1.0/oradata/acmdb/SYSTEM01.dbf',
'D:/oracle/product/10.1.0/oradata/acmdb/TEMP01.dbf',
'D:/oracle/product/10.1.0/oradata/acmdb/UNDOTBS01.dbf',
'D:/oracle/product/10.1.0/oradata/acmdb/USERS01.dbf'
It is stull failing. I was not able to open the datafiles also. Looks like those are also very much corrupted. Does this mean my DB is crashed? Is there any way that I can correct the below error or only reinstallation would solve the issue. I do have all the database dump though. Please suggest me with the solution. I would like to make the reinstall as the last option.
ERROR at line 1:
ORA-01503: CREATE CONTROLFILE failed
ORA-01115: IO error reading block from file (block # 1)
ORA-01110: data file : 'D:/oracle/product/10.1.0/oradata/acmdb/SYSTEM01.dbf'
ORA-27091: unable to queue I/O
ORA-27070: async read/write failed
OSD-04006: ReadFile() failure, unable to read from file
O/S-Error: (OS 23) Data error (cyclic redundancy check).
Thanks,
Haripriya -
Problem in recreating control file
Hi,
When i recreate controlfile ... It creates a set of datafile...
FILE# NAME STATUS
84 /u01/app/oracle/product/10.2.0/dbs/MISSING00084 RECOVER
85 /u01/app/oracle/product/10.2.0/dbs/MISSING00085 RECOVER
86 /u01/app/oracle/product/10.2.0/dbs/MISSING00086 RECOVER
Only these datafiles give problem... but these or no way related to my db. And i dint create.Hi,
I have took the trace of the control file , from that i recreated the control file.
after creating the control file when i query,
select name from v$datafile;
i dint find the files.. but when i gave
alter database open resetlogs;
alter this only the file appears...
oracle version is 10.2.0 -
Hi gurus! Need help
I've lost all my control files + i want to rename my database from testrman to ntstrman. But I am getting an error
ORA 01503 create control file failed
ORA 01160 file is not a daatafile
dataf file is '/oradata/ntstrman/temp01.dbf'
Can't you please look throw and tell me what am i doing wrong? Thanks.
create_control.sql:
create controlfile set database ntstrman
resetlogs
maxlogfiles 50
maxlogmembers 3
maxloghistory 400
maxdatafiles 200
maxinstances 6
archivelog
logfile
group 1 ('/oradata/ntstrman/redo01.log'),
group 2 ('/oradata/ntstrman/redo02.log'),
group 3 ('/oradata/ntstrman/redo03.log')
datafile
'/oradata/ntstrman/sysaux01.dbf',
'/oradata/ntstrman/system01.dbf',
'/oradata/ntstrman/temp01.dbf',
'/oradata/ntstrman/undotbs01.dbf',
'/oradata/ntstrman/users01.dbf'
initntstrman.ora:
testrman.__db_cache_size=92274688
ntstrman.__db_cache_size=100663296
testrman.__java_pool_size=4194304
testrman.__large_pool_size=4194304
ntstrman.__large_pool_size=4194304
testrman.__shared_pool_size=62914560
ntstrman.__shared_pool_size=54525952
testrman.__streams_pool_size=0
*.audit_file_dest='/oradata/admin/ntstrman/adump'
*.background_dump_dest='/oradata/admin/ntstrman/bdump'
*.compatible='10.2.0.3.0'
*.control_files='/oradata/ntstrman/control01.ctl','/oradata/ntstrman/control02.ctl','/oradata/ntstrman/control03.ctl'
*.core_dump_dest='/oradata/admin/ntstrman/cdump'
*.db_block_size=8192
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_name='ntstrman'
*.db_recovery_file_dest='/oradata/flash_recovery_area'
*.db_recovery_file_dest_size=2147483648
*.dispatchers='(PROTOCOL=TCP) (SERVICE=ntstramnXDB)'
*.job_queue_processes=10
*.open_cursors=300
*.pga_aggregate_target=16777216
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_target=167772160
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='/oradata/admin/ntstrman/udump'
Edited by: Junior Oracle DBA on Oct 20, 2008 3:37 PMHi...
Please mention the size of the redolog files..which you haven't and secondly, tempfile is not be added in the control file script, create the temporary tablespace later after opening the database
1. Change the control_files parameter in the pfile, which you have done.
2. startup nomount pfile='pfile/location/name/';
3.
create controlfile set database ntstrman resetlogs archivelog
maxlogfiles 50
maxlogmembers 3
maxloghistory 400
maxdatafiles 200
maxinstances 6
logfile
group 1 '/oradata/ntstrman/redo01.log' SIZE xxxM,
group 2 '/oradata/ntstrman/redo02.log' SIZE xxxM,
group 3 '/oradata/ntstrman/redo03.log' SIZE xxxM
datafile
'/oradata/ntstrman/sysaux01.dbf',
'/oradata/ntstrman/system01.dbf',
'/oradata/ntstrman/undotbs01.dbf',
'/oradata/ntstrman/users01.dbf'
;4. alter database open resetlogs
5. create temporary tablespace tempfile 'temp/file/location/name' size xxxM ;
Link: [http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_5003.htm#SQLRF01203]
HTH
Anand -
HI, My database was operating on noarchivelog mode, I do have a backup from last night but all three control files seemed to be corrupted. Is there anyway, i can create new control file and syncronise with rest of the files?. If yes, can you please tell me the steps involved in creating new controlfile as I don't have any idea how to do that. Thanks alot.
Hi,
Set oracle_sid="your sid name"
connect to sqlplus
SQL>conn/as sysdba
start your database in nomount stage
SQL>Startup nomount
Then type the following commands
SQL> CREATE CONTROLFILE REUSE DATABASE "your database name"
MAXLOGFILES 5 --optional
MAXLOGMEMBERS 3 --optional
MAXDATAFILES 14 --optional
MAXINSTANCES 1 --optional
MAXLOGHISTORY 226 --optional
LOGFILE
GROUP 1 'your logfile path' SIZE your logfile size,
GROUP 2 'your logfile path' SIZE your logfile size
DATAFILE
'your datafile path',
'your datafile path'
After that open the database with RESETLOGS
then shutdown the database
SQL>shu
Now multiflex the control file and mention the path in init file
And take the complete closed backup( backup your datafile, control file, logfile)
Then startup the database
SQL> Startup
Now your database is ready to USE.
This is the Example to:
SQL> CREATE CONTROLFILE REUSE DATABASE "ORCL"
MAXLOGFILES 5
MAXLOGMEMBERS 3
MAXDATAFILES 14
MAXINSTANCES 1
MAXLOGHISTORY 226
LOGFILE
GROUP 1 'E:\ORACLE\ORADATA\ORCL\REDO01.LOG' SIZE 100M,
GROUP 2 'E:\ORACLE\ORADATA\ORCL\REDO02.LOG' SIZE 100M,
GROUP 3 'E:\ORACLE\ORADATA\ORCL\REDO03.LOG' SIZE 100M
DATAFILE
'E:\ORACLE\ORADATA\ORCL\UNDOTBS01.DBF',
'E:\ORACLE\ORADATA\ORCL\EXAMPLE01.DBF',
'E:\ORACLE\ORADATA\ORCL\INDX01.DBF',
'E:\ORACLE\ORADATA\ORCL\TOOLS01.DBF',
'E:\ORACLE\ORADATA\ORCL\USERS01.DBF',
'E:\ORACLE\ORADATA\ORCL\OEM_REPOSITORY.DBF',
'E:\ORACLE\ORADATA\ORCL\CWMLITE01.DBF',
'E:\ORACLE\ORADATA\ORCL\DRSYS01.DBF',
'E:\ORACLE\ORADATA\ORCL\ODM01.DBF',
'E:\ORACLE\ORADATA\ORCL\XDB01.DBF',
'E:\ORACLE\ORADATA\ORCL\USERS02.DBF',
'E:\ORACLE\ORADATA\ORCL\USERS03.DBF',
'E:\ORACLE\ORADATA\ORCL\USERS04.DBF'
SQL>ALTER DATABASE OPEN RESETLOGS;
And one more thing:
To rename the database change reuse to set in the create control file script as shown below
Regards
S.Senthil Kumar -
PDF Encryption using CONTROL File in EBIZ R12 & Decrypting the PDF
Hi All,
We are using BI Publisher BURSTING with R12 ebiz.
We have a requirement to encrypt the file while generating to the filesystem.Then when viewing the File from OAF they went to decrypt before showing to the user.
As per the Documentation , there are some attributes like pdf-security and encryption level .
a) Can we set these attributes in control file while using with R12 ? Is there any documentation available for the same ?
b) Once we encrypt the file , Can we decrypt the file also , any documentation available for the same ??
Regards,
Vamsee.I can't recommend a solution for that. Tell your management team that this is unnecessary. The file system should be secure, if it's not someone on your unix admin team is in big trouble......
I mean based on that logic all output files should be secured. By the way OAF is secure too so this really unnecessary as well. If the files need to be secured by a particular user, encryption is still a bad idea. You should just generate a relevant report for the user. Thats how we do security in the apps my friend. -
i have data file in .CSV format.
i need to upload this data into control file.
for this i wrote one control file.
my consern with date format in table.
in .csv file column B and C having date and time.
i want to merge this to columns as single column in oracle.onemore thing before date i have one extra character i need to remove that character also
example data in .csv file.
120060422 122544
220060422 122645
320060422 122744
please help me to write control file.Open your CSV and insert a Column next to your date column enter formula
MID(Cell Number, Starting Position, Number of Characters to return)
Drag this formula till last cell select the column and Copy-> Paste Special Values
Then delete the original column
Also you can merge the two date columns in excel itself by using the formula
Concatenate(Cell A, Cell B)
Then you can upload this data.
Hope this helps.
Rajnish -
RAC control file has correpted, unable to mount database
hi guru's,
Im trying to startup my rac db, but it giving following error.
SQL> startup
ORACLE instance started.
Total System Global Area 233861120 bytes
Fixed Size 2212088 bytes
Variable Size 176164616 bytes
Database Buffers 50331648 bytes
Redo Buffers 5152768 bytes
ORA-00221: error on write to control file
ORA-00206: error in writing (block 1, # blocks 1) of control file
ORA-00202: control file: '+CTRL/finance/controlfile/current.256.812371485'
ORA-15081: failed to submit an I/O operation to a disk
ORA-15081: failed to submit an I/O operation to a disk
alert log:
Errors in file /oradump/oradata/finance/dump/diag/rdbms/finance/finance1/trace/finance1_ora_11821.trc:
ORA-15080: synchronous I/O operation to a disk failed
WARNING: failed to write mirror side 1 of virtual extent 0 logical extent 0 of file 256 in group 2 on disk 1 allocation unit 78
Errors in file /oradump/oradata/finance/dump/diag/rdbms/finance/finance1/trace/finance1_ora_11821.trc:
ORA-15080: synchronous I/O operation to a disk failed
WARNING: failed to write mirror side 2 of virtual extent 0 logical extent 1 of file 256 in group 2 on disk 2 allocation unit 76
Errors in file /oradump/oradata/finance/dump/diag/rdbms/finance/finance1/trace/finance1_ora_11821.trc:
ORA-15080: synchronous I/O operation to a disk failed
WARNING: failed to write mirror side 3 of virtual extent 0 logical extent 2 of file 256 in group 2 on disk 3 allocation unit 78
Errors in file /oradump/oradata/finance/dump/diag/rdbms/finance/finance1/trace/finance1_ora_11821.trc:
ORA-00206: error in writing (block 1, # blocks 1) of control file
ORA-00202: control file: '+CTRL/finance/controlfile/current.256.812371485'
ORA-15081: failed to submit an I/O operation to a disk
ORA-15081: failed to submit an I/O operation to a disk
ORA-221 signalled during: ALTER DATABASE MOUNT...
trace file:
Trace file /oradump/oradata/finance/dump/diag/rdbms/finance/finance1/trace/finance1_ora_11821.trc
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
ORACLE_HOME = /rdbms1/app/oracle/product/11.2.0/db_home/
System name: Linux
Node name: RAC-NODE1.vod.com
Release: 2.6.18-128.el5
Version: #1 SMP Wed Dec 17 11:41:38 EST 2008
Machine: x86_64
Instance name: finance1
Redo thread mounted by this instance: 0 <none>
Oracle process number: 28
Unix process pid: 11821, image: [email protected] (TNS V1-V3)
*** 2013-04-27 00:02:39.859
*** SESSION ID:(1.3) 2013-04-27 00:02:39.859
*** CLIENT ID:() 2013-04-27 00:02:39.859
*** SERVICE NAME:() 2013-04-27 00:02:39.859
*** MODULE NAME:([email protected] (TNS V1-V3)) 2013-04-27 00:02:39.859
*** ACTION NAME:() 2013-04-27 00:02:39.859
ORA-27041: unable to open file
WARNING: IO Failed. group:2 disk(number.incarnation):1.0xe96d8019 disk_path:/dev/sdd2
AU:78 disk_offset(bytes):81805312 io_size:16384 operation:Write type:asynchronous
result:I/O error process_id:11821
subsys:System iop:0x2b1c84e57250 bufp:0x2b1c84d6ce00 osderr:0x0 osderr1:0x0
ORA-27041: unable to open file
WARNING: IO Failed. group:2 disk(number.incarnation):2.0xe96d801a disk_path:/dev/sdd3
AU:76 disk_offset(bytes):79708160 io_size:16384 operation:Write type:asynchronous
result:I/O error process_id:11821
subsys:System iop:0x2b1c84e57128 bufp:0x2b1c84d6ce00 osderr:0x0 osderr1:0x0
ORA-27041: unable to open file
WARNING: IO Failed. group:2 disk(number.incarnation):3.0xe96d8018 disk_path:/dev/sdd4
AU:78 disk_offset(bytes):81805312 io_size:16384 operation:Write type:asynchronous
result:I/O error process_id:11821
subsys:System iop:0x2b1c84e57000 bufp:0x2b1c84d6ce00 osderr:0x0 osderr1:0x0
ORA-15080: synchronous I/O operation to a disk failed
WARNING: failed to write mirror side 1 of virtual extent 0 logical extent 0 of file 256 in group 2 on disk 1 allocation unit 78
ORA-15080: synchronous I/O operation to a disk failed
WARNING: failed to write mirror side 2 of virtual extent 0 logical extent 1 of file 256 in group 2 on disk 2 allocation unit 76
ORA-15080: synchronous I/O operation to a disk failed
WARNING: failed to write mirror side 3 of virtual extent 0 logical extent 2 of file 256 in group 2 on disk 3 allocation unit 78
DDE rules only execution for: ORA 202
----- START Event Driven Actions Dump ----
---- END Event Driven Actions Dump ----
----- START DDE Actions Dump -----
Executing SYNC actions
----- START DDE Action: 'DB_STRUCTURE_INTEGRITY_CHECK' (Async) -----
Successfully dispatched
----- END DDE Action: 'DB_STRUCTURE_INTEGRITY_CHECK' (SUCCESS, 0 csec) -----
Executing ASYNC actions
----- END DDE Actions Dump (total 0 csec) -----
ORA-00206: error in writing (block 1, # blocks 1) of control file
ORA-00202: control file: '+CTRL/finance/controlfile/current.256.812371485'
ORA-15081: failed to submit an I/O operation to a disk
ORA-15081: failed to submit an I/O operation to a disk
all the diskgroups are in mount state only
SQL> select name,state from v$asm_diskgroup;
NAME STATE
ARCLOG MOUNTED
CTRL MOUNTED
DBFILE MOUNTED
FRA MOUNTED
REDO1 MOUNTED
REDO2 MOUNTED
VOTE MOUNTED
since i did not have mirror copy or backup of current control file to replace the correpted one.
Is there any way to create new control file and transfered to ASM diskgroup and open database. or i need to drop the existing database.
if i need to drop the db, without open the db how to drop database.
kindly help on this.
Thanks in advance.Hi,
Thanks for the replay. im able to open the db.
But can you tel me how to make my rac db to open with spfile which is on asmdiskgroup.
SQL> select name,state from v$asm_diskgroup;
NAME STATE
ARCLOG MOUNTED
CTRL MOUNTED
DBFILE MOUNTED
FRA MOUNTED
REDO1 MOUNTED
REDO2 MOUNTED
VOTE MOUNTED
Spfile:
ASMCMD [+DBFILE/FINANCE/PARAMETERFILE] > pwd
+DBFILE/FINANCE/PARAMETERFILE
ASMCMD [+DBFILE/FINANCE/PARAMETERFILE] > ls
spfile.262.813843989
i shutdown the db and up the same but it can't take the spfile.
SQL> show parameter spfile
NAME TYPE VALUE
spfile string
Thanks in advance. -
Regarding RESETLOG and NORESETLOG option while creating a control file
Hi,
I dont understand the need for resetlogs option while creating a controlfile for a db in NOARCHIVELOGMODE. I assume that reset logs clears all the redo log contents.
While taking a cold backup what I did was:
1. Shutdown instance
2. Copy all the files
3. Startup
Now I tried recovering the same database on a new machine (with different path btw.) coz of which i had to create a new control file. My question is: while restoring the database, do I need to create the control file with NORESETLOG or RESETLOG option?
When I tried using the NORESETLOG (NOARCHIVELOG) option I was able to recover the instance without any hassles.
ie
1. STARTUP NOMOUNT
2. CREATE NEW CONTROL FILE USING NORESETLOG (NOARCHIVELOG)
3. RECOVER DATABASE
4. ALTER DATABASE OPEN;
While the same thing with NORESETLOG (NOARCHIVELOG) option:
1. STARTUP NOMOUNT
2. CREATE NEW CONTROL FILE USING RESETLOG (NOARCHIVELOG)
3. RECOVER DATABASE USING BACKUP CONTROLFILE
This step asked me for some archivelogs which were not generated since the db is in NOARCHIVELOG mode.
I wonder why we require the RESETLOG OPTION SINCE A NORMAL SHUTDOWN PERFORMED BEFORE COLD BACKUP would have ensured that there is no redo information left in the redo logs.
Please let me know if I am thinking the incorrect way.
Regards and Thanx in Advance,
RajIf you had a db running in noarchivelog mode and had to clone the db and rename it, the create controlfile stmt:
create controlfile reuse <db_name> needs to be changed to: create controlfile SET <db_name>, in which case the db can only be opened with resetlogs. Hope this answers your question -
How to create redlog and control file at ASM in linux RAC
Hi Experts,
I will to maintance a oracle 10g database at ASM as RAC iin linux red hat.
i am a new person with some question.
nornally speaking, oracle recommadition for oracle 10g database as
create 3 copy fills for control file
create at least 2 redo log with mirror files in system.
However, I checked find
redlog file is at FRA place +FLSdisk1 and no mirror
control file is at FRA place--+FLSDISK1/
datebase file at ‘+DATA1/
There are no mirror for relog.
Go to EM, I also could not find place to enter file name.
We use ASM to hold database to support RAC.
Do i need to create redlog file as
ALTER DATABASE ADD LOGFILE GROUP 1 ('+FLSdisk1/sale/onlinelog/REDO01.LOG','+FLSdisk1/sale/onlinelog/REDO01_mirror.LOG') SIZE 1000M reuse;
my boss told me that ASM is reliable.
Do you need to creat more directory to arrange redlog and control files in ASM for RAC system?
FRA is a good place to store control file and redlog file ?
Thanks
JIM
Edited by: user589812 on Jul 3, 2009 3:03 PMASM is reliable but a smart DBA is very careful. If ASM is doing mirroring this is like RAID doing mirroring. What happens if you accidentally delete one copy ... the other one disappears instantly. Not a good idea.
With respect to redo logs you need a minimum of three groups, two members, and one thread per instance. So a 2 node cluster should, at a minimum have 12 physical files.
Not mirroring the redo logs, assuming multiple members, is not as critical. -
How to use old archieve logs with a new control file
Environment:
ORACLE_BASE="/export/home/oracle"
ORACLE_HOME="/export/home/oracle/product/8.1.6"
NLS_LANG=".UTF8"
2 partitions:
i) /data1 -- contains important datafiles (OS striping on 3 hard
disks)
ii) /export/home -- contains the oracle program, and SYS/SYSTEM
datafiles
Problem:
-/data1 cannot be read/mount (damaged)
-oracle failed
Action Performed:
-reinstalled OS
-mount /export/home successfully (all oracle system files,
instance init files exist)
-/data1 is an empty partition
-created the oracle user, and its groups
-chown recusively for the $ORACLE_BASE directory
-set all the oracle environment variables
-attempted to start the instance, but failed due to a control
file was
missing
-since control files were set to be mirrored, i copied a control
file somewhere
from /export/home/oracle/oradata/<SID>/control1.ctl to
/data1/oracle/oradata/<SID>/control2.ctl (i.e. have them back to
their original locations)
-the instance failed to start as well, since the datafile set in
the control files couldn't be found
-this forced me to re-create the control file... b4 i re-create
a new control file, i backed up the old one
-once the control file was created, the database can be started,
but, to oracle, all achieve log information are lost (although
the achieve log's physical files r still there)
-i imported the important data from a dump file that was
exported a week ago b4 the system failure
-since we r using the new control file, the redo logs switch
contains no achieve log information that the old control file
has, so running "recover database" doesn't do anything
Purpose:
since the dump file is a week old, i'd like to get the data
after my last export and b4 the system failure. the database was
run in arhieve log mode, how can i recover those data with the
new control file
Question:
-how can we create a new control file that can drive the old
achieve logs?
-can we convert the achieve log data (.dbf format) into text
format?
-can we still use the old control files to start the database?
-what's a suggested solution if we'd like to re-construct the
database up to the moment b4 the system failure in another
server?
thxuser3930585 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?
Maybe you are looking for
-
Ipod Classic 120gb TV out problem
Hi all, I've been searching the web for quite some time now and the problem I have has gotten me fairly fustrated. I have searched the apple site, forums and support as well as other ipod-related sites, to no avail. This is my problem. After a fair a
-
How to add -ve sign or +ve sign before an interger value
I have 18000 but i want to get -18000 or +18000 in output according to some condition. how would i get it. points will awarded help me out
-
Schedule VI report using EvDRE function
Dear Friends, I want to create a Schedule VI report using the EvDRE function. I can update the Account dimension in hierarchy format of FSV updated in ECC. Kindly guide me how to generate the report in the format of schedule VI. Thanks in advance. MD
-
Cannot put in read-only the vendor screen - Authorization
Hi all, I would like a role to display in read-only mode the vendor (business partner) screen (BBPMAININT). I assigned the BBP_PD_VL and BBP_VEND authorization objects with the 'display' attributes but the user still has 'edit' rights on the vendor p
-
Flv. not displaying in browser
I uploaded an .flv file and it won't display when viewed in a borwser. I just get my blank white background. What have I done wrong?