DATAFILE SYSAUX ---- STATUS RECOVER
Database Version : 10.1.0.2.0
OS System : Window 2003 Server
SQL> SELECT FILE#, STATUS FROM V$DATAFILE;
FILE# STATUS
1 SYSTEM
2 ONLINE
3 RECOVER
4 ONLINE
5 ONLINE
The following datafiles are offline immediate:
D:\ORACLE\PRODUCT\10.1.0\ORADATA\DB02\SYSAUX01.DBF (3)
What should i do.....for correction....
reply plz.
Is it running under archivelog mode????
check and post the output of.
SQL> select * from v$recovery_log;
SQL> select * from v$recover_file;
Similar Messages
-
How to fix a missing datafile with status recover
Dear all,
We have Oracle 10 database. And we create a datafile by mistake, and also by mistake we drop the datafile.
Now the condition is, the datafile is missing but still mentioned in control file, and produce an error every time we do a backup since there's a file missing.
If we select from $vdatafile, the datafile status is recover.
We tried to offline the datafile, but its no help.
How to fix this?
Thanks.Sorry to bump this thread again,
I tried to get the same error in a Oracle sandbox server.
I deleted a datafile, so i got a missing datafile, and then i offlined the datafile.
Then, i created a backup control file and deleted line that refer to the error datafile, and then run it as a sql script to create a new control file.
But when a new control file was created, the control file got a missing datafile and offlined it automatically.
This is the control file backuped to a trace file, please notice datafile DATA00001
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "XE" NORESETLOGS NOARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 8
MAXLOGHISTORY 292
LOGFILE
GROUP 1 'C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_1_58SZY41W_.LOG' SIZE 50M,
GROUP 2 'C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_2_58SZY59P_.LOG' SIZE 50M
-- STANDBY LOGFILE
DATAFILE
'C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF',
'C:\ORACLEXE\ORADATA\XE\UNDO.DBF',
'C:\ORACLEXE\ORADATA\XE\SYSAUX.DBF',
'C:\ORACLEXE\ORADATA\XE\USERS.DBF',
'C:\ORACLEXE\ORADATA\XE\DATA00001',
'C:\ORACLEXE\ORADATA\XE\DATA00002',
'C:\ORACLEXE\ORADATA\XE\DATA00003'
CHARACTER SET AL32UTF8
-- Take files offline to match current control file.
ALTER DATABASE DATAFILE 'C:\ORACLEXE\ORADATA\XE\DATA00001' OFFLINE DROP;
and so on...
This is the script to recreate
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "XE" NORESETLOGS NOARCHIVELOG
DATAFILE
'C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF',
'C:\ORACLEXE\ORADATA\XE\UNDO.DBF',
'C:\ORACLEXE\ORADATA\XE\SYSAUX.DBF',
'C:\ORACLEXE\ORADATA\XE\USERS.DBF',
'C:\ORACLEXE\ORADATA\XE\DATA00002',
'C:\ORACLEXE\ORADATA\XE\DATA00003'
CHARACTER SET AL32UTF8
This is the result
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "XE" NORESETLOGS NOARCHIVELOG
DATAFILE
'C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF',
'C:\ORACLEXE\APP\ORACLE\PRODUCT\10.2.0\SERVER\DATABASE\MISSING00005',
'C:\ORACLEXE\ORADATA\XE\DATA00002',
'C:\ORACLEXE\ORADATA\XE\DATA00003'
CHARACTER SET AL32UTF8
-- Take files offline to match current control file.
ALTER DATABASE DATAFILE 'C:\ORACLEXE\APP\ORACLE\PRODUCT\10.2.0\SERVER\DATABASE\MISSING00005' OFFLINE;
and so on..
Edited by: Fendhy Ongko on Sep 11, 2009 12:16 PM -
After offline drop datafile, v$datafile.status='RECOVER'
OS version:
[oracle@base ~]$ uname -a
Linux base.no.sohu.com 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux
DB version:
SQL> select version from v$instance;
VERSION
9.2.0.1.0Here is my steps,
SQL>alter database datafile '/usr/oradata/bill/soq05.dbf' offline;
Database altered.
SQL>alter database datafile '/usr/oradata/bill/soq05.dbf' offline drop;
Database altered.Cause there is nothing errors generated, I thought the commands executed sucessfully. But it's not.
SQL> SELECT NAME,STATUS FROM v$datafile WHERE NAME='/usr/oradata/bill/soq05.dbf';
NAME STATUS
/usr/oradata/bill/soq05.dbf RECOVER
SQL> SELECT FILE#, STATUS, ERROR, RECOVER, TABLESPACE_NAME, NAME
2 FROM V$DATAFILE_HEADER
3 WHERE RECOVER = 'YES' OR (RECOVER IS NULL AND ERROR IS NOT NULL);
FILE# STATUS ERROR RECOVER TABLESPACE_NAME NAME
18 OFFLINE YES SOQ /usr/oradata/bill/soq05.dbf
[oracle@base ~]$ ll /usr/oradata/bill/soq05.dbf
-rw-r----- 1 oracle oinstall 1073750016 Aug 28 17:39 /usr/oradata/bill/soq05.dbfThe datafile haven't been droped successfully and its status changed to 'RECOVER'. Also, I can't online it now.
What should I do to make this datafile droped or at least make it online/offline? What I am worry is the database will be failed to restart because of this 'RECOVER' datafile.
Thanks very much!
SatineHey Werner,
Thanks very much for your help.
The reason I tried to drop the datafile is after I add the datafile to tablespace, I found the datafile failed to be created on the standby side because the parameter "db_file_name_convert"'s value were incorrect. When I created the datafile on primary side, the value of "db_file_name_convert" was,
SQL> select name,value from v$parameter where name='db_file_name_convert';
NAME VALUE
db_file_name_convert /home/oracle/bill/oradata/bill, /U02/bill/oradata/billIt should be VALUE='/usr/oradata/bill','/U02/bill/oradata/bill'. For now the datafile's status on standby side is,
SQL> SELECT name,status FROM V$DATAFILE where file#=18;
NAME STATUS
/U02/bill/product/9.2.0.1/dbs/UNNAMED00018 RECOVERIf the datafile on primary side could been recovered successfully, is there a way to make the datafile on standby side also correct?
Thanks
Satine -
Hi All,
My currently configuration is as follows
DB: 11.1.0.6.0
OS: Enterprise Linux 5.2I was away most of last week and only came into the office to be greeted by the error below
ORA-00372: file 318 cannot be modified at this time
SQL> SELECT *
FROM v$recover_file;
2
FILE# ONLINE ONLINE_ ERROR CHANGE# TIME
318 OFFLINE OFFLINE CANNOT OPEN FILE 0
SQL>I dug a little dipper and discovered a datafile was deleted on the 12th.
Fri Mar 12 12:46:28 2010
ALTER DATABASE DATAFILE '/oradata13/zambia/cdrstorage131.dbf' RESIZE 10752M
ORA-3297 signalled during: ALTER DATABASE DATAFILE '/oradata13/zambia/cdrstorage131.dbf' RESIZE 10752M ...
Fri Mar 12 12:47:24 2010
ALTER DATABASE DATAFILE '/oradata13/zambia/cdrstorage147.dbf' RESIZE 10752M
ORA-3297 signalled during: ALTER DATABASE DATAFILE '/oradata13/zambia/cdrstorage147.dbf' RESIZE 10752M ...
Fri Mar 12 12:56:48 2010
ALTER TABLESPACE AGGREGATES ADD DATAFILE '/oradata04/zambia/cdrstorage148.dbf' SIZE 30720M REUSE
Fri Mar 12 13:00:35 2010
Completed: ALTER TABLESPACE AGGREGATES ADD DATAFILE '/oradata04/zambia/cdrstorage148.dbf' SIZE 30720M REUSE
Fri Mar 12 13:00:45 2010
Thread 1 advanced to log sequence 573213
Current log# 5 seq# 573213 mem# 0: /var/zambia/ZAMBIA/onlinelog/redo5_1.log
Current log# 5 seq# 573213 mem# 1: /oradata01/app/oracle/flash_recovery_area/ZAMBIA/onlinelog/redo5_2.log
Fri Mar 12 13:05:24 2010
ALTER TABLESPACE CDRSTORAGE ADD DATAFILE '/oradata04/zambia/cdrstorage148.dbf' SIZE 30720M REUSE
ORA-1537 signalled during: ALTER TABLESPACE CDRSTORAGE ADD DATAFILE '/oradata04/zambia/cdrstorage148.dbf' SIZE 30720M REUSE ...
Fri Mar 12 13:08:50 2010
ALTER DATABASE DATAFILE '/oradata04/zambia/cdrstorage148.dbf' OFFLINE DROP
Completed: ALTER DATABASE DATAFILE '/oradata04/zambia/cdrstorage148.dbf' OFFLINE DROP
Fri Mar 12 13:09:25 2010
ALTER TABLESPACE CDRSTORAGE ADD DATAFILE '/oradata04/zambia/cdrstorage148.dbf' SIZE 30720M REUSE
ORA-1537 signalled during: ALTER TABLESPACE CDRSTORAGE ADD DATAFILE '/oradata04/zambia/cdrstorage148.dbf' SIZE 30720M REUSE ...
Fri Mar 12 13:14:06 2010
ALTER TABLESPACE AGGREGATES DROP DATAFILE '/oradata04/zambia/cdrstorage148.dbf'
ORA-3264 signalled during: ALTER TABLESPACE AGGREGATES DROP DATAFILE '/oradata04/zambia/cdrstorage148.dbf' ...
Fri Mar 12 13:14:43 2010
ALTER DATABASE DATAFILE '/oradata04/zambia/cdrstorage148.dbf' ONLINE
ORA-1113 signalled during: ALTER DATABASE DATAFILE '/oradata04/zambia/cdrstorage148.dbf' ONLINE ...
Fri Mar 12 13:15:03 2010
ALTER TABLESPACE AGGREGATES DROP DATAFILE '/oradata04/zambia/cdrstorage148.dbf'
ORA-3264 signalled during: ALTER TABLESPACE AGGREGATES DROP DATAFILE '/oradata04/zambia/cdrstorage148.dbf' ...
Fri Mar 12 13:16:10 2010
Thread 1 advanced to log sequence 573214
Current log# 6 seq# 573214 mem# 0: /var/zambia/ZAMBIA/onlinelog/redo6_1.logUnfortunately, I do not have a valid backup (we only export base tables on a daily basis).
1. How do I check for objects affected by the missing datafile?
2. Most of the data that sits on the affected TABLESPACE can easily be re-computed, but how do I go
about sorting this issue out?
3. As far as the database is concerned, the datafile needs media recovery; how do I sort this issue out?
Regards,
PhiriUnfortunately, I do not have a valid backup (we only export base tables on a daily basis).
1. How do I check for objects affected by the missing datafile?
2. Most of the data that sits on the affected TABLESPACE can easily be re-computed, but how do I go
about sorting this issue out?
3. As far as the database is concerned, the datafile needs media recovery; how do I sort this issue out?
Regards,
PhiriHi,
Am not sure you want resolution of which error. Moreover am not sure why on earth anybody would like to resize, if resize is not possible then drop that datafile without migrating the data.
Anyways,
1) You can query dba_segments for tablespaces, dba_extents for datafiles to get the list of objects that are affected by missing datafile
2) What issue you meant.
3) Is your databases in archive mode. And do you have all the archives from the point when you issued the command may be we could recover but all depends
Regards
Anurag -
[help me] Oracle 10G + ASM "ORA-00376: file 5 cannot be read at this time"
We have used Oracle 10G R2 RAC + ASM on Redhat 4 (EMC cx700 Storage)
I found below errors on alert log and can't inserted, updated and deleted datas in database.
Sun May 27 01:12:34 2007
SUCCESS: diskgroup ARCH was mounted
SUCCESS: diskgroup ARCH was dismounted
SUCCESS: diskgroup ARCH was mounted
SUCCESS: diskgroup ARCH was dismounted
SUCCESS: diskgroup ARCH was mounted
SUCCESS: diskgroup ARCH was dismounted
Sun May 27 01:19:11 2007
Errors in file /oracle/product/admin/DB/udump/db3_ora_15854.trc:
ORA-00376: file 5 cannot read at this time
ORA-01110: data file 5: '+DATA/db/datafile/undotbs3.257.617849281'
ORA-00376: file 5 cannot be read at this time
ORA-01110: data file 5: '+DATA/db/datafile/undotbs3.257.617849281'
ORA-00376: file 5 cannot be read at this time
ORA-01110: data file 5: '+DATA/db/datafile/undotbs3.257.617849281'
ORA-00372: file 5 cannot be modified at this time
ORA-01110: data file 5: '+DATA/db/datafile/undotbs3.257.617849281'
So:
I checked and recovered data file
SQL> select name,status,file# from v$datafile where status ='RECOVER';
NAME
STATUS FILE#
+DATA/db/datafile/undotbs3.257.617849281
RECOVER 5
RMAN> run {
allocate channel t1 type 'SBT_TAPE';
allocate channel t2 type DISK;
recover datafile 5;
recover completed.
SQL> alter database datafile 5 online;
Butttttttttttttttttt:
What is going on?
I checked EMC storage, not found any disk error.
I checked alert log of ASM, no found anything.
I don't know What the problem ?
Because I had the same problem 2 days ago.
This day error on undo datafile node 3.
2 days aGo; error on undo node 4.
Please please anybody
What bug or anything wrong ?
Please introduce me
trace file:
/oracle/product/admin/DB/udump/db3_ora_15854.trc
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP and Data Mining options
ORACLE_HOME = /oracle/product/10.2.0/db
System name: Linux
Node name: db03.domain
Release: 2.6.9-42.ELsmp
Version: #1 SMP Wed Jul 12 23:32:02 EDT 2006
Machine: x86_64
Instance name: DB3
Redo thread mounted by this instance: 3
Oracle process number: 65
Unix process pid: 15854, image: [email protected]
*** SERVICE NAME:(DB) 2007-05-27 01:19:11.574
*** SESSION ID:(591.62658) 2007-05-27 01:19:11.574
*** 2007-05-27 01:19:11.574
ksedmp: internal or fatal error
ORA-00376: file 5 cannot be read at this time
ORA-01110: data file 5: '+DATA/db/datafile/undotbs3.257.617849281'
ORA-00376: file 5 cannot be read at this time
ORA-01110: data file 5: '+DATA/db/datafile/undotbs3.257.617849281'
ORA-00376: file 5 cannot be read at this time
ORA-01110: data file 5: '+DATA/db/datafile/undotbs3.257.617849281'
ORA-00372: file 5 cannot be modified at this time
ORA-01110: data file 5: '+DATA/db/datafile/undotbs3.257.617849281'
Current SQL statement for this session:
INSERT INTO DATA_ALL VALUES (:B1 ,:B2 ,:B3 ,:B4 ,:B5 ,:B6 ,:B7 ,:B8 ,:B9 ,:B10 ,:B11 ,:B12 ,:B13 ,:B14 ,:B15 ,:B16 ,:B17 ,:B18 ,:B19 ,:B20 ,:B21 ,:B22 ,:B23 ,:B24 ,:B25 ,:B26 ,:B27 ,:B28 ,:B29 ,:B30 ,:B31 ,:B32 ,:B33 ,:B34 ,:B35 ,:B36 ,:B37 ,:B38 ,:B39 ,:B40 ,:B41 ,:B42 ,:B43 ,:B44 ,:B45 ,:B46 ,:B47 ,:B48 ,:B49 ,:B50 )
----- PL/SQL Call Stack -----
object line object
handle number name
0x21dc2b4b8 780 package body MGR.AC
0x21e4815b0 3 anonymous block
----- Call Stack Trace -----
calling call entry argument values in hex
location type point (? means dubious value)
ksedst()+31 call ksedst1() 000000000 ? 000000001 ?
7FBFFF7290 ? 7FBFFF72F0 ?
7FBFFF7230 ? 000000000 ?
ksedmp()+610 call ksedst() 000000000 ? 000000001 ?
7FBFFF7290 ? 7FBFFF72F0 ?
7FBFFF7230 ? 000000000 ?
ksupop()+3581 call ksedmp() 000000003 ? 000000001 ?
7FBFFF7290 ? 7FBFFF72F0 ?
7FBFFF7230 ? 000000000 ?
opiodr()+3899 call ksupop() 000000002 ? 000000001 ?
7FBFFF7290 ? 7FBFFF72F0 ?
7FBFFF7230 ? 000000000 ?
rpidrus()+198 call opiodr() 000000066 ? 000000006 ?
.......etc.............................
Message was edited by:
HunterX (Surachart Opun)To me it looks like your undotbs on node3 is filled and not marking old undo as expired. Use this query to find out if it is labeling old undo as expired.
SELECT tablespace_name, status, COUNT(*) AS HOW_MANY
FROM dba_undo_extents
GROUP BY tablespace_name, status;
Another thing I noticed from your alertlog is it is only doing that on undotbs3, which I assumes is on node3.
1) try recreate undotbs on node3
2) take node3 out of service (stop nodeapps, ASM, instance and finally CRS on node3) and see if you can do DML on your database.
-Moid -
DISP+WORK STOPPED-----------ORA::376 ERROR
hi all,
1) in my ides system, disp+work got stopped
2) when i check the syslog in mmc i came across ORA :: 00376 error occuring several times. file cannot be read at this time .ora-1110 error.
3) i went through the sap note::328785.
4)DBIF_REPO_SQL_ERROR
5) i am pasting the dev_disp trace file below.....
also what more i need to check......
DEV_DISP file :::::::;
trc file: "dev_disp", trc level: 1, release: "700"
sysno 00
sid EC6
systemid 560 (PC with Windows NT)
relno 7000
patchlevel 0
patchno 102
intno 20050900
make: multithreaded, Unicode, optimized
pid 3948
Tue Aug 12 11:41:41 2008
kernel runs with dp version 224000(ext=109000) (@(#) DPLIB-INT-VERSION-224000-UC)
length of sys_adm_ext is 572 bytes
SWITCH TRC-HIDE on ***
***LOG Q00=> DpSapEnvInit, DPStart (00 3948) [dpxxdisp.c 1239]
shared lib "dw_xml.dll" version 102 successfully loaded
shared lib "dw_xtc.dll" version 102 successfully loaded
shared lib "dw_stl.dll" version 102 successfully loaded
shared lib "dw_gui.dll" version 102 successfully loaded
shared lib "dw_mdm.dll" version 102 successfully loaded
rdisp/softcancel_sequence : -> 0,5,-1
use internal message server connection to port 3900
Tue Aug 12 11:41:46 2008
WARNING => DpNetCheck: NiAddrToHost(1.0.0.0) took 5 seconds
***LOG GZZ=> 1 possible network problems detected - check tracefile and adjust the DNS settings [dpxxtool2.c 5355]
MtxInit: 30000 0 0
DpSysAdmExtInit: ABAP is active
DpSysAdmExtInit: VMC (JAVA VM in WP) is not active
DpIPCInit2: start server >ecc6server_EC6_00 <
DpShMCreate: sizeof(wp_adm) 21480 (1432)
DpShMCreate: sizeof(tm_adm) 4232256 (21056)
DpShMCreate: sizeof(wp_ca_adm) 24000 (80)
DpShMCreate: sizeof(appc_ca_adm) 8000 (80)
DpCommTableSize: max/headSize/ftSize/tableSize=500/8/528056/528064
DpShMCreate: sizeof(comm_adm) 528064 (1048)
DpSlockTableSize: max/headSize/ftSize/fiSize/tableSize=0/0/0/0/0
DpShMCreate: sizeof(slock_adm) 0 (96)
DpFileTableSize: max/headSize/ftSize/tableSize=0/0/0/0
DpShMCreate: sizeof(file_adm) 0 (72)
DpShMCreate: sizeof(vmc_adm) 0 (1520)
DpShMCreate: sizeof(wall_adm) (38456/34360/64/184)
DpShMCreate: sizeof(gw_adm) 48
DpShMCreate: SHM_DP_ADM_KEY (addr: 05EB0040, size: 4894592)
DpShMCreate: allocated sys_adm at 05EB0040
DpShMCreate: allocated wp_adm at 05EB1E80
DpShMCreate: allocated tm_adm_list at 05EB7268
DpShMCreate: allocated tm_adm at 05EB7298
DpShMCreate: allocated wp_ca_adm at 062C06D8
DpShMCreate: allocated appc_ca_adm at 062C6498
DpShMCreate: allocated comm_adm at 062C83D8
DpShMCreate: system runs without slock table
DpShMCreate: system runs without file table
DpShMCreate: allocated vmc_adm_list at 06349298
DpShMCreate: allocated gw_adm at 063492D8
DpShMCreate: system runs without vmc_adm
DpShMCreate: allocated ca_info at 06349308
DpShMCreate: allocated wall_adm at 06349310
MBUF state OFF
DpCommInitTable: init table for 500 entries
Tue Aug 12 11:41:47 2008
EmInit: MmSetImplementation( 2 ).
MM global diagnostic options set: 0
<ES> client 0 initializing ....
<ES> InitFreeList
<ES> block size is 1024 kByte.
Using implementation view
<EsNT> Memory Reset disabled as NT default
<ES> 511 blocks reserved for free list.
ES initialized.
Tue Aug 12 11:41:50 2008
rdisp/http_min_wait_dia_wp : 1 -> 1
***LOG CPS=> DpLoopInit, ICU ( 3.0 3.0 4.0.1) [dpxxdisp.c 1626]
***LOG Q0K=> DpMsAttach, mscon ( ecc6server) [dpxxdisp.c 11664]
DpStartStopMsg: send start message (myname is >ecc6server_EC6_00 <)
DpStartStopMsg: start msg sent
CCMS: AlInitGlobals : alert/use_sema_lock = TRUE.
CCMS: Initalizing shared memory of size 60000000 for monitoring segment.
Tue Aug 12 11:41:51 2008
CCMS: start to initalize 3.X shared alert area (first segment).
DpMsgAdmin: Set release to 7000, patchlevel 0
MBUF state PREPARED
MBUF component UP
DpMBufHwIdSet: set Hardware-ID
***LOG Q1C=> DpMBufHwIdSet [dpxxmbuf.c 1050]
DpMsgAdmin: Set patchno for this platform to 102
Release check o.K.
Tue Aug 12 11:42:30 2008
ERROR => W0 (pid 3496) died [dpxxdisp.c 14319]
ERROR => W1 (pid 3504) died [dpxxdisp.c 14319]
ERROR => W2 (pid 3512) died [dpxxdisp.c 14319]
ERROR => W3 (pid 3508) died [dpxxdisp.c 14319]
ERROR => W4 (pid 3516) died [dpxxdisp.c 14319]
ERROR => W5 (pid 3524) died [dpxxdisp.c 14319]
ERROR => W6 (pid 3532) died [dpxxdisp.c 14319]
ERROR => W7 (pid 3536) died [dpxxdisp.c 14319]
my types changed after wp death/restart 0xbf --> 0xbe
ERROR => W8 (pid 3540) died [dpxxdisp.c 14319]
my types changed after wp death/restart 0xbe --> 0xbc
ERROR => W9 (pid 3552) died [dpxxdisp.c 14319]
my types changed after wp death/restart 0xbc --> 0xb8
ERROR => W10 (pid 3560) died [dpxxdisp.c 14319]
ERROR => W11 (pid 3568) died [dpxxdisp.c 14319]
ERROR => W12 (pid 3452) died [dpxxdisp.c 14319]
my types changed after wp death/restart 0xb8 --> 0xb0
ERROR => W13 (pid 1664) died [dpxxdisp.c 14319]
my types changed after wp death/restart 0xb0 --> 0xa0
ERROR => W14 (pid 3604) died [dpxxdisp.c 14319]
my types changed after wp death/restart 0xa0 --> 0x80
DP_FATAL_ERROR => DpWPCheck: no more work processes
DISPATCHER EMERGENCY SHUTDOWN ***
increase tracelevel of WPs
NiWait: sleep (10000ms) ...
NiISelect: timeout 10000ms
NiISelect: maximum fd=1613
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Tue Aug 12 11:42:40 2008
NiISelect: TIMEOUT occured (10000ms)
dump system status
Workprocess Table (long) Tue Aug 12 06:12:40 2008
========================
No Ty. Pid Status Cause Start Err Sem CPU Time Program Cl User Action Table
0 DIA 3496 Ended no 1 0 0
1 DIA 3504 Ended no 1 0 0
2 DIA 3512 Ended no 1 0 0
3 DIA 3508 Ended no 1 0 0
4 DIA 3516 Ended no 1 0 0
5 DIA 3524 Ended no 1 0 0
6 DIA 3532 Ended no 1 0 0
7 DIA 3536 Ended no 1 0 0
8 UPD 3540 Ended no 1 0 0
9 ENQ 3552 Ended no 1 0 0
10 BTC 3560 Ended no 1 0 0
11 BTC 3568 Ended no 1 0 0
12 BTC 3452 Ended no 1 0 0
13 SPO 1664 Ended no 1 0 0
14 UP2 3604 Ended no 1 0 0
Dispatcher Queue Statistics Tue Aug 12 06:12:40 2008
===========================
--------++++--
+
Typ
now
high
max
writes
reads
--------++++--
+
NOWP
0
2
2000
5
5
--------++++--
+
DIA
5
5
2000
5
0
--------++++--
+
UPD
0
0
2000
0
0
--------++++--
+
ENQ
0
0
2000
0
0
--------++++--
+
BTC
0
0
2000
0
0
--------++++--
+
SPO
0
0
2000
0
0
--------++++--
+
UP2
0
0
2000
0
0
--------++++--
+
max_rq_id 12
wake_evt_udp_now 0
wake events total 8, udp 6 ( 75%), shm 2 ( 25%)
since last update total 8, udp 6 ( 75%), shm 2 ( 25%)
Dump of tm_adm structure: Tue Aug 12 06:12:40 2008
=========================
Term uid man user term lastop mod wp ta a/i (modes)
Workprocess Comm. Area Blocks Tue Aug 12 06:12:40 2008
=============================
Slots: 300, Used: 1, Max: 0
--------++--
+
id
owner
pid
eyecatcher
--------++--
+
0
DISPATCHER
-1
WPCAAD000
NiWait: sleep (5000ms) ...
NiISelect: timeout 5000ms
NiISelect: maximum fd=1613
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Tue Aug 12 11:42:45 2008
NiISelect: TIMEOUT occured (5000ms)
DpHalt: shutdown server >ecc6server_EC6_00 < (normal)
DpJ2eeDisableRestart
DpModState: buffer in state MBUF_PREPARED
NiBufSend starting
NiIWrite: hdl 2 sent data (wrt=110,pac=1,MESG_IO)
MsINiWrite: sent 110 bytes
MsIModState: change state to SHUTDOWN
DpModState: change server state from STARTING to SHUTDOWN
Switch off Shared memory profiling
ShmProtect( 57, 3 )
ShmProtect(SHM_PROFILE, SHM_PROT_RW
ShmProtect( 57, 1 )
ShmProtect(SHM_PROFILE, SHM_PROT_RD
DpWakeUpWps: wake up all wp's
Stop work processes
Stop gateway
killing process (3472) (SOFT_KILL)
Stop icman
killing process (3492) (SOFT_KILL)
Terminate gui connections
wait for end of work processes
wait for end of gateway
[DpProcDied] Process lives (PID:3472 HANDLE:1584)
waiting for termination of gateway ...
NiWait: sleep (1000ms) ...
NiISelect: timeout 1000ms
NiISelect: maximum fd=1613
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Tue Aug 12 11:42:46 2008
NiISelect: TIMEOUT occured (1000ms)
[DpProcDied] Process died (PID:3472 HANDLE:1584)
wait for end of icman
[DpProcDied] Process lives (PID:3492 HANDLE:1592)
waiting for termination of icman ...
NiWait: sleep (1000ms) ...
NiISelect: timeout 1000ms
NiISelect: maximum fd=1613
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Tue Aug 12 11:42:47 2008
NiISelect: TIMEOUT occured (1000ms)
[DpProcDied] Process lives (PID:3492 HANDLE:1592)
waiting for termination of icman ...
NiWait: sleep (1000ms) ...
NiISelect: timeout 1000ms
NiISelect: maximum fd=1613
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Tue Aug 12 11:42:48 2008
NiISelect: TIMEOUT occured (1000ms)
[DpProcDied] Process lives (PID:3492 HANDLE:1592)
waiting for termination of icman ...
NiWait: sleep (1000ms) ...
NiISelect: timeout 1000ms
NiISelect: maximum fd=1613
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Tue Aug 12 11:42:49 2008
NiISelect: TIMEOUT occured (1000ms)
[DpProcDied] Process lives (PID:3492 HANDLE:1592)
waiting for termination of icman ...
NiWait: sleep (1000ms) ...
NiISelect: timeout 1000ms
NiISelect: maximum fd=1613
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Tue Aug 12 11:42:50 2008
NiISelect: TIMEOUT occured (1000ms)
[DpProcDied] Process lives (PID:3492 HANDLE:1592)
waiting for termination of icman ...
NiWait: sleep (1000ms) ...
NiISelect: timeout 1000ms
NiISelect: maximum fd=1613
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Tue Aug 12 11:42:51 2008
NiISelect: TIMEOUT occured (1000ms)
[DpProcDied] Process lives (PID:3492 HANDLE:1592)
waiting for termination of icman ...
NiWait: sleep (1000ms) ...
NiISelect: timeout 1000ms
NiISelect: maximum fd=1613
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Tue Aug 12 11:42:52 2008
NiISelect: TIMEOUT occured (1000ms)
[DpProcDied] Process lives (PID:3492 HANDLE:1592)
waiting for termination of icman ...
NiWait: sleep (1000ms) ...
NiISelect: timeout 1000ms
NiISelect: maximum fd=1613
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Tue Aug 12 11:42:53 2008
NiISelect: TIMEOUT occured (1000ms)
[DpProcDied] Process lives (PID:3492 HANDLE:1592)
waiting for termination of icman ...
NiWait: sleep (1000ms) ...
NiISelect: timeout 1000ms
NiISelect: maximum fd=1613
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Tue Aug 12 11:42:54 2008
NiISelect: TIMEOUT occured (1000ms)
[DpProcDied] Process lives (PID:3492 HANDLE:1592)
waiting for termination of icman ...
NiWait: sleep (1000ms) ...
NiISelect: timeout 1000ms
NiISelect: maximum fd=1613
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Tue Aug 12 11:42:55 2008
NiISelect: TIMEOUT occured (1000ms)
[DpProcDied] Process lives (PID:3492 HANDLE:1592)
waiting for termination of icman ...
NiWait: sleep (1000ms) ...
NiISelect: timeout 1000ms
NiISelect: maximum fd=1613
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Tue Aug 12 11:42:56 2008
NiISelect: TIMEOUT occured (1000ms)
[DpProcDied] Process lives (PID:3492 HANDLE:1592)
waiting for termination of icman ...
NiWait: sleep (1000ms) ...
NiISelect: timeout 1000ms
NiISelect: maximum fd=1613
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Tue Aug 12 11:42:57 2008
NiISelect: TIMEOUT occured (1000ms)
[DpProcDied] Process died (PID:3492 HANDLE:1592)
DpStartStopMsg: send stop message (myname is >ecc6server_EC6_00 <)
NiIMyHostName: hostname = 'ecc6server'
AdGetSelfIdentRecord: > <
AdCvtRecToExt: opcode 60 (AD_SELFIDENT), ser 0, ex 0, errno 0
AdCvtRecToExt: opcode 4 (AD_STARTSTOP), ser 0, ex 0, errno 0
DpConvertRequest: net size = 189 bytes
NiBufSend starting
NiIWrite: hdl 2 sent data (wrt=562,pac=1,MESG_IO)
MsINiWrite: sent 562 bytes
send msg (len 110+452) to name -, type 4, key -
DpStartStopMsg: stop msg sent
NiIRead: hdl 2 received data (rcd=274,pac=1,MESG_IO)
NiBufIIn: NIBUF len=274
NiBufIIn: packet complete for hdl 2
NiBufReceive starting
MsINiRead: received 274 bytes
MSG received, len 110+164, flag 1, from MSG_SERVER , typ 0, key -
DpHalt: received 164 bytes from message server
NiIRead: hdl 2 received data (rcd=274,pac=1,MESG_IO)
NiBufIIn: NIBUF len=274
NiBufIIn: packet complete for hdl 2
NiBufReceive starting
MsINiRead: received 274 bytes
MSG received, len 110+164, flag 1, from MSG_SERVER , typ 0, key -
DpHalt: received 164 bytes from message server
NiIRead: hdl 2 received data (rcd=274,pac=1,MESG_IO)
NiBufIIn: NIBUF len=274
NiBufIIn: packet complete for hdl 2
NiBufReceive starting
MsINiRead: received 274 bytes
MSG received, len 110+164, flag 1, from MSG_SERVER , typ 0, key -
DpHalt: received 164 bytes from message server
NiIRead: hdl 2 received data (rcd=274,pac=1,MESG_IO)
NiBufIIn: NIBUF len=274
NiBufIIn: packet complete for hdl 2
NiBufReceive starting
MsINiRead: received 274 bytes
MSG received, len 110+164, flag 1, from MSG_SERVER , typ 0, key -
DpHalt: received 164 bytes from message server
NiIRead: hdl 2 received data (rcd=274,pac=1,MESG_IO)
NiBufIIn: NIBUF len=274
NiBufIIn: packet complete for hdl 2
NiBufReceive starting
MsINiRead: received 274 bytes
MSG received, len 110+164, flag 1, from MSG_SERVER , typ 0, key -
DpHalt: received 164 bytes from message server
NiIRead: hdl 2 received data (rcd=274,pac=1,MESG_IO)
NiBufIIn: NIBUF len=274
NiBufIIn: packet complete for hdl 2
NiBufReceive starting
MsINiRead: received 274 bytes
MSG received, len 110+164, flag 1, from MSG_SERVER , typ 0, key -
DpHalt: received 164 bytes from message server
NiIRead: hdl 2 received data (rcd=274,pac=1,MESG_IO)
NiBufIIn: NIBUF len=274
NiBufIIn: packet complete for hdl 2
NiBufReceive starting
MsINiRead: received 274 bytes
MSG received, len 110+164, flag 1, from MSG_SERVER , typ 0, key -
DpHalt: received 164 bytes from message server
NiIRead: hdl 2 recv would block (errno=EAGAIN)
NiIRead: read for hdl 2 timed out (0ms)
DpHalt: no more messages from the message server
DpHalt: send keepalive to synchronize with the message server
NiBufSend starting
NiIWrite: hdl 2 sent data (wrt=114,pac=1,MESG_IO)
MsINiWrite: sent 114 bytes
send msg (len 110+4) to name MSG_SERVER, type 0, key -
MsSndName: MS_NOOP ok
Send 4 bytes to MSG_SERVER
NiIRead: hdl 2 received data (rcd=114,pac=1,MESG_IO)
NiBufIIn: NIBUF len=114
NiBufIIn: packet complete for hdl 2
NiBufReceive starting
MsINiRead: received 114 bytes
MSG received, len 110+4, flag 3, from MSG_SERVER , typ 0, key -
Received 4 bytes from MSG_SERVER
Received opcode MS_NOOP from msg_server, reply MSOP_OK
MsOpReceive: ok
MsSendKeepalive : keepalive sent to message server
NiIRead: hdl 2 recv would block (errno=EAGAIN)
Tue Aug 12 11:42:58 2008
NiIPeek: peek for hdl 2 timed out (r; 1000ms)
NiIRead: read for hdl 2 timed out (1000ms)
DpHalt: no more messages from the message server
DpHalt: sync with message server o.k.
detach from message server
***LOG Q0M=> DpMsDetach, ms_detach () [dpxxdisp.c 11977]
NiBufSend starting
NiIWrite: hdl 2 sent data (wrt=110,pac=1,MESG_IO)
MsINiWrite: sent 110 bytes
MsIDetach: send logout to msg_server
MsIDetach: call exit function
DpMsShutdownHook called
NiBufISelUpdate: new MODE -- (r-) for hdl 2 in set0
SiSelNSet: set events of sock 1516 to: ---
NiBufISelRemove: remove hdl 2 from set0
SiSelNRemove: removed sock 1516 (pos=2)
SiSelNRemove: removed sock 1516
NiSelIRemove: removed hdl 2
MBUF state OFF
AdGetSelfIdentRecord: > <
AdCvtRecToExt: opcode 60 (AD_SELFIDENT), ser 0, ex 0, errno 0
AdCvtRecToExt: opcode 40 (AD_MSBUF), ser 0, ex 0, errno 0
AdCvtRecToExt: opcode 40 (AD_MSBUF), ser 0, ex 0, errno 0
blks_in_queue/wp_ca_blk_no/wp_max_no = 1/300/15
LOCK WP ca_blk 1
make DISP owner of wp_ca_blk 1
DpRqPutIntoQueue: put request into queue (reqtype 1, prio LOW, rq_id 15)
MBUF component DOWN
NiICloseHandle: shutdown and close hdl 2 / sock 1516
NiBufIClose: clear extension for hdl 2
MsIDetach: detach MS-system
cleanup EM
EsCleanup ....
EmCleanup() -> 0
Es2Cleanup: Cleanup ES2
***LOG Q05=> DpHalt, DPStop ( 3948) [dpxxdisp.c 10334]
Good Bye .....
regards,
bhupesh
Edited by: mudari bhupesh on Aug 13, 2008 11:06 AMhi saini,
the following are the steps what i did after reading the note 328785.
first i checked which datafiles are in recover status.
SELECT NAME FROM V$DATAFILE WHERE STATUS='RECOVER';
then i got some 11 datafiles which are in recover state.
when i tried to recover them i am getting sql error as invalid file name (even though everything is correct including the file name)
second i tried to check datafiles which are in offline state.
SELECT NAME FROM V$DATAFILE WHERE STATUS='OFFLINE';
the reply from sql screen was no rows selected.
but in sap note 328785 it has been given that if no rows are selected your problem is solved.(but the problem still persists).
this is what i did in the sql screen and got the following results:::
SQL> SELECT TABLESPACE_NAME FROM DBA_TABLESPACES WHERE STATUS='OFFLINE';
no rows selected
SQL> SELECT NAME FROM V$DATAFILE WHERE STATUS='RECOVER';
NAME
D:\ORACLE\EC6\SAPDATA1\SR3700_2\SR3700.DATA2
D:\ORACLE\EC6\SAPDATA1\SR3700_3\SR3700.DATA3
D:\ORACLE\EC6\SAPDATA1\SR3700_4\SR3700.DATA4
D:\ORACLE\EC6\SAPDATA1\SR3700_5\SR3700.DATA5
D:\ORACLE\EC6\SAPDATA1\SR3700_6\SR3700.DATA6
D:\ORACLE\EC6\SAPDATA1\SR3700_7\SR3700.DATA7
D:\ORACLE\EC6\SAPDATA1\SR3700_8\SR3700.DATA8
D:\ORACLE\EC6\SAPDATA1\SR3700_9\SR3700.DATA9
D:\ORACLE\EC6\SAPDATA1\SR3700_10\SR3700.DATA10
D:\ORACLE\EC6\SAPDATA1\SR3700_11\SR3700.DATA11
D:\ORACLE\EC6\SAPDATA1\SR3700_12\SR3700.DATA12
NAME
D:\ORACLE\EC6\SAPDATA1\SR3700_13\SR3700.DATA13
D:\ORACLE\EC6\SAPDATA1\SR3700_14\SR3700.DATA14
D:\ORACLE\EC6\SAPDATA1\SR3700_15\SR3700.DATA15
D:\ORACLE\EC6\SAPDATA1\SR3700_16\SR3700.DATA16
D:\ORACLE\EC6\SAPDATA1\SR3700_17\SR3700.DATA17
D:\ORACLE\EC6\SAPDATA1\SR3700_18\SR3700.DATA18
17 rows selected.
SQL> RECOVER DATAFILE D:\ORACLE\EC6\SAPDATA1\SR3700_2\SR3700.DATA2;
ORA-02236: invalid file name
SQL> RECOVER DATAFILE D:\ORACLE\EC6\SAPDATA1\SR3700_3\SR3700.DATA3;
ORA-02236: invalid file name
SQL> SELECT NAME FROM V$DATAFILE WHERE STATUS='OFFLINE';
no rows selected
regards,
bhupesh -
Hi All,
DB: 10g No Archive mode
OS: windows
I am unable to recover my datafile after renaming the same. Following are the steps that I have taken:
I have a old controlfile trace and the latest controlfile is lost. The old controlfile doesnt have the new datafile entry.So i am mounting the database with the old trace with resetlog option and then i will be renaming the unamed datafiles.
STARTUP MOUNTThen i create controlfile
ALTER DATABASE OPEN RESETLOGS;Now the newly added datafile is as below:
SQL> select name from v$datafile;
NAME
D:\ORAHOME_XPRESS10G\ORADATA\XE\SYSTEM.DBF
D:\ORAHOME_XPRESS10G\ORADATA\XE\UNDO.DBF
D:\ORAHOME_XPRESS10G\ORADATA\XE\SYSAUX.DBF
D:\ORAHOME_XPRESS10G\ORADATA\XE\USERS.DBF
D:\ORAHOME_XPRESS10G\ORADATA\XE\TEST01.DBF
D:\ORAHOME_XPRESS10G\APP\ORACLE\PRODUCT\10.2.0\SERVER\DATABASE\MISSING00006Then i rename the datafile as
SQL> alter database rename file 'D:\ORAHOME_XPRESS10G\APP\ORACLE\PRODUCT\10.2.0\SERVER\DATABASE\MISSING00006' to 'D:\ORAHOME_XPRESS10G\ORADATA\XE\TEST02.DBF';
Database altered.
SQL> select FILE#,STATUS,NAME from v$datafile;FILE# STATUS NAME
1 SYSTEM D:\ORAHOME_XPRESS10G\ORADATA\XE\SYSTEM.DBF
2 ONLINE D:\ORAHOME_XPRESS10G\ORADATA\XE\UNDO.DBF
3 ONLINE D:\ORAHOME_XPRESS10G\ORADATA\XE\SYSAUX.DBF
4 ONLINE D:\ORAHOME_XPRESS10G\ORADATA\XE\USERS.DBF
5 ONLINE D:\ORAHOME_XPRESS10G\ORADATA\XE\TEST01.DBF
6 RECOVER D:\ORAHOME_XPRESS10G\ORADATA\XE\TEST02.DBF
After this when i am trying to recover the concern datafiel i am getting the following errors:
SQL> recover datafile 6;
ORA-00283: recovery session canceled due to errors
ORA-00600: internal error code, arguments: [krhpfh_03-1202], [fno =], [6], [fhcrt =], [794948267], [cptim =], [0], []
ORA-01110: data file 6: 'D:\ORAHOME_XPRESS10G\ORADATA\XE\TEST02.DBF'
and also,
SQL> RECOVER AUTOMATIC DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL
ORA-00283: recovery session canceled due to errors
ORA-01124: cannot recover data file 1 - file is in use or recovery
ORA-01110: data file 1: 'D:\ORAHOME_XPRESS10G\ORADATA\XE\SYSTEM.DBF'
BR
Sphinx
Edited by: $phinx19 on Sep 25, 2012 7:47 AMHi Vreddy,
I have tried the same by but it aint working. I am getting the following error:
SQL> recover datafile 6;
ORA-00283: recovery session canceled due to errors
ORA-00600: internal error code, arguments: [krhpfh_03-1202], [fno =], [6], [fhcrt =], [794948267], [cptim =], [0], []
ORA-01110: data file 6: 'D:\ORAHOME_XPRESS10G\ORADATA\XE\TEST02.DBF'
Br
Sphinx -
RAC instance, trying to recover UNDO datafile, RMAN gives RMAN-06054
Hello all,
This has been a troublesome instance..a quick bit of background. This was created awhile back by someone else, I inherited this 3 mode RAC clusterof instance1.
I'm exporting out of one database (10G) into this instance1 (11G). When I was about to start the import..I found this instance wouldn't start. Turned out no backup had been going on of this empty instance. I backed up the archive logs to tape to free up the FRA..and things fired up.
I began the import, and found a bunch of errors...basically tellling me that I couldn't access one of the undo tablespaces...datafile problems.
I went to look and saw:
SQL> select a.file_name, a.file_id, b.status, a.tablespace_name
2 from dba_data_files a, v$datafile b
3 where a.file_id = b.file#
4 order by a.file_name;
FILE_NAME FILE_ID STATUS TABLESPACE_NAME
+DATADG/instance1/datafile/sysaux.270.696702269 2 ONLINE SYSAUX
+DATADG/instance1/datafile/system.263.696702253 1 SYSTEM SYSTEM
+DATADG/instance1/datafile/undotbs1.257.696702279 3 ONLINE UNDOTBS1
+DATADG/instance1/datafile/undotbs2.266.696702305 4 ONLINE UNDOTBS2
+DATADG/instance1/datafile/undotbs3.269.696702313 5 RECOVER UNDOTBS3
+DATADG/instance1/datafile/users.268.696702321 6 ONLINE USERS
+DATADG/instance1/l_data_01_01 11 ONLINE L_DATA_01
+DATADG/instance1/s_data_01_01 7 ONLINE S_DATA_01
+DATADG/instance1/s_data_01_02 8 ONLINE S_DATA_01
+INDEXDG/instance1/l_index_01_01 12 ONLINE L_INDEX_01
+INDEXDG/instance1/s_index_01_01 9 ONLINE S_INDEX_01
FILE_NAME FILE_ID STATUS TABLESPACE_NAME
+INDEXDG/instance1/s_index_01_02 10 ONLINE S_INDEX_01
There is is, file #5.
So, I went into RMAN to try to restore/recover:
RMAN> restore datafile 5;
Starting restore at 06-APR-10
allocated channel: ORA_SBT_TAPE_1
channel ORA_SBT_TAPE_1: SID=222 instance=instance1 device type=SBT_TAPE
channel ORA_SBT_TAPE_1: NMO v4.5.0.0
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=222 instance=instance1 device type=DISK
creating datafile file number=5 name=+DATADG/instance1/datafile/undotbs3.269.696702313
restore not done; all files read only, offline, or already restored
Finished restore at 06-APR-10
RMAN> recover datafile 5;
Starting recover at 06-APR-10
using channel ORA_SBT_TAPE_1
using channel ORA_DISK_1
starting media recovery
RMAN-06560: WARNING: backup set with key 343546 will be read 2 times
available space of 8315779 kb needed to avoid reading the backup set multiple times
unable to find archived log
archived log thread=1 sequence=1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 04/06/2010 14:33:07
RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 1 and starting SCN of 16016
This is all on ASM, and am a bit of a newb with that. I bascially have no data I'm worried about losing, I just need to get everything 'on the air' so I can import successfully, and let users on this instance. I've set up the backups in GRID now....so, it will be backed up on the future, but what is the quickest, most efficient way to get this UNDO tablespace datafile recovered?
Thank you,
cayenneHemant K Chitale wrote:
SET UNTIL SEQUENCE 27wouldn't work if the Recovery requires Sequence 1 and it is missing.
Hemant K ChitaleOops...meant to have start and set until both to "1"
However, I see what you mean. It seems I cannot find the file on tape.
Since the RAC instance hasn't yet had any data put into it, I'm thinking it might be best to just blow it away, and recreate everything.
Trouble is, I'm a bit new at RAC and ASM. I was thinking the best route might be to use DBCA to remove the database...? Would this not take care of removing all the datafiles from all the ASM instances on the RAC..as well as all the other directories, etc on all 3x nodes?
I've already used the dbca to create templates of this instance, so recreation shouldn't be too difficult (although it will be my first RAC creation)...
Thank you in advance for the advice so far,
cayenne -
Hi All,
OS:windows
DB:XE
I have a situation, due to some unknown reasons one of my datafile has gone into recover status, following is the output:
select name, status from v$datafile;
NAME STATUS
D:\ORAHOME_XPRESS10G\ORADATA\XE\SYSTEM.DBF SYSTEM
D:\ORAHOME_XPRESS10G\ORADATA\XE\UNDO.DBF ONLINE
D:\ORAHOME_XPRESS10G\ORADATA\XE\SYSAUX.DBF ONLINE
D:\ORAHOME_XPRESS10G\ORADATA\XE\USERS.DBF ONLINE
D:\ORAHOME_XPRESS10G\ORADATA\XE\TEST01.DBF ONLINE
D:\ORAHOME_XPRESS10G\APP\ORACLE\PRODUCT\10.2.0\SERVER\DATABASE\MISSING00006 RECOVERwhen i am trying to recover the same file by issuing:
recover datafile 6;
ORA-00283: recovery session canceled due to errors
ORA-01111: name for data file 6 is unknown - rename to correct file
ORA-01110: data file 6: 'D:\ORAHOME_XPRESS10G\APP\ORACLE\PRODUCT\10.2.0\SERVER\DATABASE\MISSING00006'
ORA-01157: cannot identify/lock data file 6 - see DBWR trace file
ORA-01111: name for data file 6 is unknown - rename to correct file
ORA-01110: data file 6: 'D:\ORAHOME_XPRESS10G\APP\ORACLE\PRODUCT\10.2.0\SERVER\DATABASE\MISSING00006'Kindly help.
BR
Sphinx$phinx19 wrote:
Hi ,
I am not sure how did this happen files do not spontaneously go missing.
but the file is present the OS level.error message would indicate that Oracle disagrees with your assessment.
do you have a recent RMAN backup of this DB? -
How to diagnose and recover corrupted datafile?
DBMS: Oracle v.9.2.0.1.0
OS: MS Server 2003 R2 SP2 x86
Problem: Database begin to stop every few minutes. I start to check and found that one and the largest of two datafiles is probably corrupted. Now I have no idea how to repair that datafile.
Firstly, I look into the alert.log and see that^
Mon Jul 29 11:02:03 2013
SMON: enabling tx recovery
Mon Jul 29 11:02:03 2013
Database Characterset is CL8MSWIN1251
replication_dependency_tracking turned off (no async multimaster replication found)
Completed: alter database open
Mon Jul 29 11:02:42 2013
KCF: write/open error block=0x3c009f online=1
file=4 F:\ORACLE\ORADATA\ORCL\USERS_1.ORA
error=27069 txt: 'OSD-04026: Invalid parameter passed. (OS 3932319)'
Mon Jul 29 11:02:42 2013
Errors in file c:\oracle\admin\orcl\bdump\orcl_dbw0_3604.trc:
ORA-01242: data file suffered media failure: database in NOARCHIVELOG mode
ORA-01114: IO error writing block to file 4 (block # 3932319)
ORA-01110: data file 4: 'F:\ORACLE\ORADATA\ORCL\USERS_1.ORA'
ORA-27069: skgfdisp: attempt to do I/O beyond the range of the file
OSD-04026: Invalid parameter passed. (OS 3932319)
DBW0: terminating instance due to error 1242
Instance terminated by DBW0, pid = 3604
Dump file c:\oracle\admin\orcl\bdump\alert_orcl.log
So, I turned archivelog on and open database but it continue to stop when somebody calls to some DB objects.
Then, I check v$headers:
SQL> select file#, status, recover, fuzzy, tablespace_name, to_char(CHECKPOINT_CHANGE#), name from v$datafile_header;
FILE# STATUS REC FUZ TABLESPACE_NAME TO_CHAR(CHECKPOINT_CHANGE#) NAME
1 ONLINE NO YES SYSTEM 9679059694215 F:\ORACLE\ORADATA\ORCL\SYSTEM.ORA
2 ONLINE NO YES UNDO 9679059694215 F:\ORACLE\ORADATA\ORCL\UNDO.ORA
3 ONLINE NO YES USERS 9679059694215 F:\ORACLE\ORADATA\ORCL\USERS.ORA
4 OFFLINE YES YES USERS 9679059697551 F:\ORACLE\ORADATA\ORCL\USERS_1.ORA
For some reason, USERS in USERS_1.ORA is offline and marked as requiring recovery.
I tried to recover datafile, but get some errors:
SQL> recover datafile 'F:\ORACLE\ORADATA\ORCL\USERS_1.ORA';
ORA-00283: recovery session canceled due to errors
ORA-01115: IO error reading block from file 4 (block # 3932319)
ORA-01110: data file 4: 'F:\ORACLE\ORADATA\ORCL\USERS_1.ORA'
ORA-27069: skgfdisp: attempt to do I/O beyond the range of the file
OSD-04026: Invalid parameter passed. (OS 3932319)
That have looking creepy for me.
I tries to verify datafile:
dbv file=F:\oracle\oradata\orcl\users_1.ora blocksize=16384 logfile=F:\oracle\oradata\orcl\dbvlog.txt
The result of verification was unexpectedly clean:
DBVERIFY: Release 9.2.0.1.0 - Production on Tue Jul 30 05:03:26 2013
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
DBVERIFY - Verification starting : FILE = F:\oracle\oradata\orcl\users_1.ora
DBVERIFY - Verification complete
Total Pages Examined : 3932320
Total Pages Processed (Data) : 94051
Total Pages Failing (Data) : 0
Total Pages Processed (Index): 19378
Total Pages Failing (Index): 0
Total Pages Processed (Other): 3753059
Total Pages Processed (Seg) : 0
Total Pages Failing (Seg) : 0
Total Pages Empty : 65832
Total Pages Marked Corrupt : 0
Total Pages Influx : 0
Now I have that offlined tablespace in the probably not corrupted datafile and no idea how to get DB into the normal state.
Upd: I did database validation by RMAN:
RMAN> BACKUP VALIDATE DATABASE;
Starting backup at 30-JUL-13
using target database controlfile instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=11 devtype=DISK
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
including current controlfile in backupset
input datafile fno=00004 name=F:\ORACLE\ORADATA\ORCL\USERS_1.ORA
input datafile fno=00002 name=F:\ORACLE\ORADATA\ORCL\UNDO.ORA
input datafile fno=00003 name=F:\ORACLE\ORADATA\ORCL\USERS.ORA
input datafile fno=00001 name=F:\ORACLE\ORADATA\ORCL\SYSTEM.ORA
channel ORA_DISK_1: backup set complete, elapsed time: 00:33:06
Finished backup at 30-JUL-13
That would been check my DB and put information of corrupted blocks to a V$DATABASE_BLOCK_CORRUPTION, but no! There's nothing:
SQL> select * from V$DATABASE_BLOCK_CORRUPTION;
no rows selected
Nevertheless, database doesn't open, until I switch bad datafile to offline^
SQL> alter database datafile 'F:\ORACLE\ORADATA\ORCL\USERS_1.ORA' online;
Database altered.
SQL> alter database open;
alter database open
ERROR at line 1:
ORA-01113: file 4 needs media recovery
ORA-01110: data file 4: 'F:\ORACLE\ORADATA\ORCL\USERS_1.ORA'
Message was edited by: Llywelyn.yvDoes it diferents from below?
RMAN> BACKUP VALIDATE DATABASE;
Starting backup at 30-JUL-13
using target database controlfile instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=11 devtype=DISK
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
including current controlfile in backupset
input datafile fno=00004 name=F:\ORACLE\ORADATA\ORCL\USERS_1.ORA
input datafile fno=00002 name=F:\ORACLE\ORADATA\ORCL\UNDO.ORA
input datafile fno=00003 name=F:\ORACLE\ORADATA\ORCL\USERS.ORA
input datafile fno=00001 name=F:\ORACLE\ORADATA\ORCL\SYSTEM.ORA
channel ORA_DISK_1: backup set complete, elapsed time: 00:33:06
Finished backup at 30-JUL-13 -
Expdp or exp fails since sysaux datafile is corrupted.
Hi,
I need to migrate data from 10g solaris to 11g Linux. Expdp would work for my case, however sysaux tablespace is corrupted, expdp fails with all options. This is test database and we don't have archivelog files, I cannot recover sysaux datafile. Any idea is appreciated.
oracle@xnq1db01:~$ expdp system dumpfile=xnq1db01_full_%U.dmp directory=dumpdir full=y logfile=xnq1db01_full.log version=10.2 parallel=8 compression=NONE
Export: Release 10.2.0.3.0 - Production on Sunday, 06 March, 2011 18:59:12
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Password:
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
ORA-31626: job does not exist
ORA-31638: cannot attach to job SYS_EXPORT_FULL_01 for user SYSTEM
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
ORA-06512: at "SYS.KUPV$FT_INT", line 389
ORA-39077: unable to subscribe agent KUPC$A_1_20110306185925 to queue "KUPC$C_1_20110306185924"
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
ORA-06512: at "SYS.KUPC$QUE_INT", line 248
ORA-25448: rule SYS.KUPC$C_1_20110306185924$81 has errors
ORA-00376: file 3 cannot be read at this time
ORA-01110: data file 3: '+XN_DATA/xnq1db01/datafile/sysaux.266.672960607'I had the same type of occurence. The following worked for me:
1. Shutdown immediate
2. Startup mount
3. RECOVER DATAFILE 'sysaux tablespace file location/name'
after recovery,
4. Alter database open
5. Alter tablespace sysaux online
(I'd noted when I tried the old exp that one of the first messages displayed was that sysaux was offline)
Disconnected and ran the expdp successfully.
If you're not able to recover the datafile, exp/imp is probably your only other option. -
After did a switchover(DataGuard), on my current primary database I did a level 0 backup RMAN and it did not end due to an error with an datafile that needs recover, specifically the datafile 2 (sysaux tablespace). The last level 0 backup I have is 9 days ago. The first thing I do was restore the datafile and try to recover it.
RMAN> run{sql 'alter database datafile 2 offline'; restore datafile 2; recover datafile 2;}
The second step (recover) show me the following error:
unable to find archived log
archived log thread=1 sequence=1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 08/17/2010 12:19:01
RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 1 and starting SCN of 1757
I appreciate any help, thank you.Dear user12100209,
Please see the error message;
RMAN-06054: media recovery requesting unknown archived log for thread string with sequence string and starting SCN of string
Cause: Media recovery is requesting a log whose existence is not recorded in the recovery catalog or target database control file.
Action: If a copy of the log is available, then add it to the recovery catalog and/or control file via a CATALOG command and then retry the RECOVER command.
If not, then a point-in-time recovery up to the missing log is the only alternative and database can be opened using ALTER DATABASE OPEN RESETLOGS command.So what i am thinking is that is happening because of a missing archivelog metadata(information) in the standby controlfile.
Below link may give you a general information;
http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/rcmadvre.htm#BRADV89834
Hope That Helps.
Ogan -
Hi,
on 10g , I have my users in recover
SQL> select name, status from v$datafile;
NAME
STATUS
C:\ORACLE\ORADATA\ORCL\USERS01.DBF
RECOVER
What is the solution to put it online ?
Thank you.As sysdba, issue the
RECOVER DATAFILE 'datafile path/name';
command. If recovery information contained at the redo log files is enough, it will be recovered, and you'll have to put it online by issuing the
ALTER TABLESPACE tablespacename ONLINE;
command.
If you are prompted for previous generated sequences, then information is no longer available at redo logs, so you'll have to get it from the archive log files (archive log mode is assumed).
~ -
Hi all,
I am just trying some recovery scenarios. I have RMAN online backup from this morning and I dropped SYSAUX datafile. I realized that I do not use RC. I tried to search but could not get much help for recovering (if I can recover) the db in this case. Could you please advise. Your help is much appreciated. ThanksHi,
Use following command to know the backups needed to recover the datafile
RMAN>restore preview datafile <file_id>;
- recover datafile
RMAN> restore datafile <file_id>;
RMAN> recover datafile <file_id>;
Regards,
Vaibhav -
[b]drop datafile which is in recover state[/b]
One of the datafile got into Recover state.
Our database is not running in Archive mode, so we can't recover it.
We tried to drop it / change it into offline / online mode, but all failed. It remains in Recover state.
It gives ORA-01110 error.
Is there anyway to change the mode of this datafile or drop it.SQL> archive log list
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 6150
Current log sequence 6153
SQL>
this is the output
Edited by: 850520 on Apr 7, 2011 2:46 AM
Maybe you are looking for
-
I am a musician and am trying to mix down some tracks off of a hard disk. I have a hard disc recorder and a mixing board that i am running into an M-audio Firewire solo. I have the signal flow going into the firewire solo and then into my mac. when i
-
DV signal from Mac not showing up in camcorder
After a few months with FCP X (now 10.0.7), 4 yrs with a Mac Pro (OS 10.6.8 on a 2008 machine), 1 1/2 years with a Canon Camcorder to relay the feed from the Mac's firewire port to a TV monitor, and 12 years experience in non-linear editing (most of
-
What I did to my K410 after i bought it (random pics)
I bought a K410 back in August, and like the PC tinkerer I am, i have been adding on to it for awhile now System befor: Link to image 1 System now: Link to image 2 Pics of my specs/benchmarks/setup: Link to image 3 Link to image 4 Still need to add a
-
Error message keeps popping up
This just started this week, all was working well before. I keep getting this message but I do not know what it means or what I should do to resolve the issue can someone help please /Users/mireille/Desktop/Image 1.png
-
Hello everyone, I downloaded an audio book to my iPhone ($9.99) and I synced my iPhone with my brother's MacBook and it deleted the audio book from my iPhone and it uploaded it to my brother's MacBook. How do I get the audio book back into my MacBook