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
Similar Messages
-
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 -
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!
Prat1. 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 -
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 reading Control file
Dear All,
I have moved OriglogA and B from F-Drive to C-Drive, then i made settings in init<SID>.ora file as per change done, now i am trying starting database, it is giving error message ORA-00205:error oin identifying congrol file, check alert log for more info,
alertlog file having following entries.
ORA-00202:control file : 'C:\ORACLE\<SID>\ORIGLOGB\CNTRL\CNTRL<SID>.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.
Please help me, to up the database
Regards
ChandraHere i am pasting init<SID>.ora file
This init.ora profile is a transparent copy of Oracle spfile. #
It was created by BRSPACE at 2009-03-28 09.46.04. #
Please do not change this file! Maintain only the spfile. #
You can use BRSPACE for the altering of database parameters: #
brspace -f dbparam #
*._OPTIM_PEEK_USER_BINDS=FALSE
*.background_dump_dest='E:\oracle\NWS\saptrace\background'
*.compatible='10.2.0'
*.control_file_record_keep_time=30
*.control_files='C:\oracle\NWS\origlogA\cntrl\cntlrNWS.dbf','C:\oracle\NWS\origlogB\cntrl\cntrlNWS.dbf','E:\oracle\NWS\sapdata1\cntrl\cntrlNWS.dbf'
*.core_dump_dest='E:\oracle\NWS\saptrace\background'
*.db_block_size=8192
*.db_cache_size=644245094
*.db_files=254
*.db_name='NWS'
*.dml_locks=4000
*.event='10191 trace name context forever, level 1'
*.FILESYSTEMIO_OPTIONS='setall'
*.job_queue_processes=1
*.log_archive_dest='E:\oracle\NWS\oraarch\NWSarch'
*.log_buffer=1048576
*.log_checkpoint_interval=0
*.log_checkpoints_to_alert=true
*.open_cursors=800
*.optimizer_features_enable='10.2.0.1'
*.pga_aggregate_target=629145600
*.processes=80
*.recyclebin='off'
*.remote_login_passwordfile='exclusive'
*.remote_os_authent=true
*.sessions=96
*.sga_max_size=1288490188
*.shared_pool_reserved_size=64424509
*.shared_pool_size=544245094
*.sort_area_retained_size=0
*.sort_area_size=2097152
*.statistics_level='typical'
*.undo_management='AUTO'
*.undo_retention=43200
*.undo_tablespace='PSAPUNDO'
*.user_dump_dest='E:\oracle\NWS\saptrace\usertrace'
*.workarea_size_policy='AUTO' -
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 -
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
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 -
Unable to locate control file jcx
Our portal application is deployed as EXPLODED EAR in development.
When we declare and call a DB control in a JPF page, which is already
declared in the pageflow as a control using the
* @common:control
annotation.
The application works fine in workshop however when the application is deployed using an ear file generated in workshop the error below is given:-
com.bea.wlw.runtime.core.dispatcher.ServiceHandleException: Service at /dataLoad/com/bt/Transform/Portal/PortAllocation/NGOSDataLoad.jcx not found
caused by: : com.bea.wlw.runtime.core.dispatcher.ServiceHandleException: Service at /dataLoad/com/bt/Transform/Portal/PortAllocation/NGOSDataLoad.jcx not found
The NGOSDataLoad.jcx does not exist however NGOSDataLoad.jcs does exist
Any ideas how to fix this problem.
ThanksIf you are running on a Linux box (and it looks like you are from the command), first check your $PATH variable and make sure that the Oracle stuff is at the front, here is my path:
/as/oracle/infra/bin:/as/oracle/infra/opmn/bin:/usr/bin:/usr/kerberos/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/home/oracle/bin
So just make sure your path is correct first then post your results. -
VDBench failed to delete the control file
Seems like there were several file in the directory which did not belong to VDbench, but usually it fails when it tries to delete the directory it self, and not the control-file
Any ideas why this happened?
Thanks !
06:38:13.003 Starting RD=format_for_rd1
06:38:13.045 06:38:13.045 task_run_all(): 369 tasks
06:38:13.087 06:38:13.087 readDirsAndDelete(): Invalid file name found and not deleted: /mnt/sys--6/rickfs002 kuku
06:38:13.088 06:38:13.088 readDirsAndDelete(): Invalid file name found and not deleted: /mnt/sys--6/rickfs002 kuku
06:38:13.106 06:38:13.106 Message to master: anchor=/mnt/sys--2/clone001_snap001_rickfs003 deleted 12 directories; 631/sec
06:38:13.110 06:38:13.109 readDirsAndDelete(): Invalid file name found and not deleted: /mnt/sys--4/rickfs002 kuku
06:38:13.110 06:38:13.109 readDirsAndDelete(): Invalid file name found and not deleted: /mnt/sys--2/rickfs002 kuku
06:38:13.110 06:38:13.110 readDirsAndDelete(): Invalid file name found and not deleted: /mnt/sys--4/rickfs002 kuku
06:38:13.126 06:38:13.126 readDirsAndDelete(): Invalid file name found and not deleted: /mnt/sys--5/rickfs002 kuku
06:38:13.126 06:38:13.126
06:38:13.126 06:38:13.126 Unable to delete control file: /mnt/sys--4/clone001_snap001_rickfs004/vdb_control.file
06:38:13.127 06:38:13.126
06:38:13.127 java.lang.RuntimeException: Unable to delete control file: /mnt/sys--4/clone001_snap001_rickfs004/vdb_control.file
06:38:13.127 at Vdb.common.failure(common.java:308)
06:38:13.127 at Vdb.FileAnchor.deleteOldStuff(FileAnchor.java:805)
06:38:13.127 at Vdb.FileAnchor.cleanupOldFiles(FileAnchor.java:754)
06:38:13.128 at Vdb.FwgThread.run(FwgThread.java:137)A few thoughts:
- you have an other Vdbench test running against the same FSD anchor, though if I am not mistaken, Unix allows you to delete a busy file.
- you created the control file with different user/authorization.
Henk. -
Unable to load Site Control File
Hello,
The background :
I am in the process of learning how to create a Management Pack for a distributed application in SCOM 2012 R2.</p><p>For this, I picked our SCCM Site server to use as an example. So, in short, am writing a management pack for SCCM 2007 Discovery.
I know a management pack might already exist. I am trying to learn by using an architecture I'm familiar with so I need to create this from scratch.
In order to discover SCCM Site installed on a server, I decided to use the SMS WMI namespace. By reading the
SMS_ProviderLocation Instance, I am able to detect if the server has SCCM Site installed on it.
My next step was to find out where the SMS database is hosted. I found
ROOT\SMS\site_ABC\ namespace contains an instance of SMS_SCI_SiteDefinition where I can find the database name and server name which I can use to discover the other components of a distributed application.
The problem :
When I run the query Select * from SMS_SCI_SiteDefinition I get a generic error 0x80041001.
More Information reveals the following:
error description : " Unable to load site control file "
error code : " 2160198400 (0x80c20300) "
file name : " c:\qfe\nts_sms_fre\sms\siteserver\sdk_provider\smsprov\sspsitecontrolextractor.cpp "
Now, I cannot find the QFE folder anywhere. The SCCM Site is working fine and the site_control_manager component has no errors. I can launch the SCCM console on that server without any errors and the site status messages do not contain any errors.
Can someone please help me out with "detecting" an installed instance of SCCM site server using WMI? Is the above error cause for worry for the SCCM part of my brain?
Thanks in advance for your guidance!Thanks for your response Don!
The SMS_Site instance does not provide information of the database server and database name.
The funny thing is when I browse use wbemtest to connect to root\SMS\site_XXX and enumerate classes, i do not find
the SMS_SCI_SiteDefinition.
I find it when i enumerate recursively and can browse into the values. I'm not sure how could build a query against this now.
Can anybody with a test instance of SCCM 2007 check this and let me know please?
Everything you are looking for exist within WMI. You can use the documentation script as an example to get what you are looking for.
http://www.enhansoft.com/pages/downloads.aspx
Garth Jones | My blogs: Enhansoft and
Old Blog site | Twitter:
@GarthMJ -
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. -
Unable to recreate replica as I cannot delete the xml files for the old VM on Hyper-v Cluster
My setup
There are 2 sites each running a Hyper-v 2012-R2 cluster comprising of 5 nodes each.
All the machines are in a HA state and stored on the shared clustered resource.
Initially we had replication working and it was replicating all the servers from Site A to Site B
There were some replication issues which needed me to stop the replication and redo it again, in doing so I firstly removed replication on Fail-over cluster manager on Site A and did the same on Site B.
On one of the servers I had to remove the VM, although the VM config and Disks still remain on the Site B Cluster.
I was trying to recreate the replica but it always fails with the following error :
Hyper-v failed to enable replication for virtual machine xxxxxxxx operation aborted (0x80004004).....
I followed an article to stop the Hyper-V Virtual Machine Management Service and try delete the file,
When i tried to stop the service it would restart automatically and I was unable to delete the file. I put the service in disabled which kept it stopped however I was still unable to delete the files. I also tried to get File assassin which can help delete
and clear locked files but it too was unable to delete it while the service was running or stopped as well as its additional mode whereby it will delete it on next reboot.
The Article Https://social.technet.microsoft.com/Forums/windowsserver/en-US/4c4f2535-81ee-4a21-a920-b5632de2be37/hyperv-old-vm-folders-cannot-be-deleted?forum=winserverhyperv
makes mention of stopping another service Hyper-V
Image Management Service but I am unable to find it on 2012-R2 server.
I have also tried to put the additional nodes in a paused drained roles state leaving only one node as the active one but it still will not let me delete the VM config
files, without removing those files I cannot re-initiate the Replication.
Any assistance would be greatly appreciated.Can you storage migrate any other vms or resources off of the CSV that contains the XML file in question? If so you may be able to then take that CSV offline, remove it from available storage, re-add as available storage, and add to CSV Volumes. Maybe
that will clear your lock. -
NW 7 EHP1 Installation problem - unable to find control.xml file
Hi,
I'm trying to install NW 7 with EHP1 on AIX/Oracle environment. My installation got to the stage where SAPinst paused to allow the installation of the Oracle database software. After installing the Oracle database software, I closed down the SAP installation GUI in the hope of picking up the installation at a later date. However, when reattempting to pick up where the installation left off, I recieve the following error when starting sapinst after selecting "continue with old installation" option.
guiengine: 2010-03-29 11:23:24 Login in progress
guiengine: 2010-03-29 11:23:24 Login successful
Mar 29, 2010 10:23:25 AM [Info]: GUI started.
init: retrieving account information for group sapinst...
init: retrieving account information done.
ERROR 2010-03-29 11:24:17.681 [sixxcpars.cpp:50]
FKD-00048 Unable to open URL file:///tmp/sapinst_instdir/NW701/AS-ABAP/ORA/CENTRAL//control.xml.
Unable to start a service execution.
Can anybody please advise me how to resolve this issue if possible?
Thanks.Hi Naveed,
I can't see any sap inst processes running under the root account, however I can see the following two processes running under oraSID user from the date of my original installation attempt:
/bin/sh /oracle/DB1/102_64/jdk/bin/java -Djava.awt.headless=true -Doracle.oc4j.localhome=/oracle/DB1/10...
/oracle/DB1/102_64/jdk/bin/java.bin -Dibm.stream.nio=true -Djava.awt.headless=true -Doracle.oc4j.localh...
Could this be related to the cause of my issue?
Thanks.
Maybe you are looking for
-
Remote Web Workplace and Internet Explorer 11
After updating my IE to version 11on my home computer (WIN7), I cannot access the RWW on my business server. I reach the login screen and log in. The RWW home screens displays briefly, then disappears behind an error screen: 404- File or directory
-
I'm currently developing a game using AIR. I'm using Flash Builder 4.5. I tried loading swf and static images using the Loader class but when exported and put on an iPod none of these images showed. I changed it to something like this: Code: [Embed(s
-
SAP xRPM/PPM5.0 and Duet Enterprise
Hi Experts, Is it possible to integrate Duet Enterprise into this landscape whereby SAP xRPM is our backend as we are upgrading to PPM 5.0 soon and Sharepoint 2010. Most of the examples that I've seen are using ECC 6.0 as backend however in this case
-
Group chats are completely broken
Since yesterday I am not recieving any messages from group chats and also can't send any messages to group chats. I also can not send messages to offline contacts. The messages stay in a pending state forever. I have re-installed Skype without succes
-
I have had my mini for about a year now. I do like it but here recently it has been causing issues. I installed the leopard operating system when it came out. I do like it but i really dont need it. I cant download bigger files anymore. On startup an