Professional Documents
Culture Documents
com
Contents
1) Check DB is NOArchive mode and Clean Shutdown DB ..................................................................... 2
2) Corrupt the UNDO datafile Simulate the scenario .......................................................................... 2
3) Now Start the DB, and initiate recover database command as below............................................... 3
4) Try to Offline the corrupted undo Datafile and open Database......................................................... 4
5) Change the undo_management to Manual parameters and Restart DB ........................................... 5
6) Drop undo tablespace......................................................................................................................... 6
7) Create undo TBS, Reset undo_management to AUTO and restart the DB. ....................................... 6
8) Re-check if the Parameters were unset.............................................................................................. 7
9) Verify the user data and database...................................................................................................... 8
Page 1 of 8
Gummula_malesh@yahoo.com
No Archive Mode
Disabled
C:\Oracle\oradata\d041\arch
24
26
OR
If you Edit using the Edit plus , and delete some content from middle of file.
C:\Oracle\oradata\d041>dbv FILE=UNDOTBS01.DBF
DBVERIFY: Release 11.2.0.1.0 - Production on Sun Dec 29 10:35:22 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
DBV-00102: File I/O error on FILE (C:\ORACLE\ORADATA\D041\UNDOTBS01.DBF) during end read operation (7680)
Page 2 of 8
Gummula_malesh@yahoo.com
Whenever DB shuts cleanly, CHECKPOINT_CHANGE# and LAST_CHANGE# must always be sync else they
need to do crash/media recovery, as below
Page 3 of 8
Gummula_malesh@yahoo.com
STATUS
------SYSTEM
ONLINE
OFFLINE
ONLINE
ONLINE
Page 4 of 8
Gummula_malesh@yahoo.com
undo_tablespace
string
UNDOTBS1
368263168
1374668
209716788
150994944
6176768
bytes
bytes
bytes
bytes
bytes
STATUS
------SYSTEM
ONLINE
OFFLINE
ONLINE
ONLINE
Page 5 of 8
Gummula_malesh@yahoo.com
NAME
--------------------------------------------SYSTEM
SYSAUX
USERS
TEMP
EXAMPLE
Page 6 of 8
TYPE
---------string
integer
string
VALUE
------------MANUAL
900
UNDOTBS1
INC
--YES
YES
YES
NO
YES
BIG
--NO
NO
NO
NO
NO
FLA ENC
--- --YES
YES
YES
YES
YES
Gummula_malesh@yahoo.com
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area
Fixed Size
Variable Size
Database Buffers
Redo Buffers
Database mounted.
Database opened.
368263168
1374668
209716788
150994944
6176768
bytes
bytes
bytes
bytes
bytes
TYPE
-------------------------------string
integer
string
Page 7 of 8
VALUE
-----------AUTO
900
UNDOTBS1
from dba_rollback_segs ;
TABLESPACE_NAME
-----------------------SYSTEM
UNDOTBS1
UNDOTBS1
UNDOTBS1
UNDOTBS1
UNDOTBS1
UNDOTBS1
UNDOTBS1
UNDOTBS1
UNDOTBS1
UNDOTBS1
Gummula_malesh@yahoo.com
_SYSSMU16_4130629382$
_SYSSMU17_4050930344$
_SYSSMU18_3208537726$
_SYSSMU19_3758938093$
_SYSSMU20_2357329706$
0
0
0
0
0
ONLINE
ONLINE
ONLINE
ONLINE
ONLINE
10 rows selected.
ENAME
---------SMITH
ALLEN
WARD
JONES
MARTIN
BLAKE
CLARK
SCOTT
KING
TURNER
ADAMS
JAMES
FORD
MILLER
JOB
MGR HIREDATE
SAL
COMM
DEPTNO
--------- ---------- --------- ---------- ---------- ---------CLERK
7902 17-DEC-80
800
20
SALESMAN
7698 20-FEB-81
1600
300
30
SALESMAN
7698 22-FEB-81
1250
500
30
MANAGER
7839 02-APR-81
2975
20
SALESMAN
7698 28-SEP-81
1250
1400
30
MANAGER
7839 01-MAY-81
2850
30
MANAGER
7839 09-JUN-81
2450
10
ANALYST
7566 19-APR-87
3000
20
PRESIDENT
17-NOV-81
5000
10
SALESMAN
7698 08-SEP-81
1500
0
30
CLERK
7788 23-MAY-87
1100
20
CLERK
7698 03-DEC-81
950
30
ANALYST
7566 03-DEC-81
3000
20
CLERK
7782 23-JAN-82
1300
10
14 rows selected.
Page 8 of 8
STATUS
------SYSTEM
ONLINE
ONLINE
ONLINE
ONLINE