This article introduces the oracleora-01172, 01151 Fault Handling detailed tutorial, there is a need for students can refer to the 01151 Fault Handling methods.
This article introduces the oracle ora-01172, 01151 troubleshooting detailed tutorial, students in need can refer to about 01151 troubleshooting methods.
This article introduces the oracle ora-01172, 01151 troubleshooting detailed tutorial, students in need can refer to about 01151 troubleshooting methods.
The windows blue screen is displayed on the client, and the client deletes the screen randomly on the computer.
Oracle cannot start, reports ora-01172, 01151 error.
Processing Process:
| The Code is as follows: |
|
|
Microsoft Windows [version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.
C: Documents and SettingsAdministrator> tnsping dbtest
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0-Production on 14-12-
16:34:10 2011
Copyright (c) 1997,200 5, Oracle. All rights reserved.
|
Used parameter files:
| The Code is as follows: |
|
| E: oracleproduct10.2.0db _ 1networkadminsqlnet. ora |
Alias resolved using TNSNAMES Adapter
| The Code is as follows: |
|
|
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = mqdyj) (P
ORT = 1521) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = dbtest )))
OK (10 ms)
C: Documents and SettingsAdministrator> sqlplus/as sysdba
SQL * Plus: Release 10.2.0.1.0-Production on Wednesday December 14 16:34:34 2011
Copyright (c) 1982,200 5, Oracle. All rights reserved.
ERROR:
ORA-12560: TNS: protocol adapter error. |
-- This is because the service in service. msc is not started. It is OK to start.
| The Code is as follows: |
|
|
C: Documents and SettingsAdministrator>
C: Documents and SettingsAdministrator> sqlplus/@ dbtest as sysdba
SQL * Plus: Release 10.2.0.1.0-Production on Wednesday December 14 16:34:46 2011
Copyright (c) 1982,200 5, Oracle. All rights reserved.
ERROR:
ORA-12514: TNS: The Listener currently cannot identify the Service requested in the connection Descriptor
|
Enter the User name: exit
Enter the password:
| The Code is as follows: |
|
ERROR:
ORA-12560: TNS: protocol adapter error. |
-- The error cause is the same as the preceding one. This is because the service in service. msc is not started. It is OK to start.
-- Here I modified listener. ora and registered it as a static listener.
That is, add the sid_desc. After the SID_DESC is added, there will be two sid_desc.
| The Code is as follows: |
|
|
C: Documents and SettingsAdministrator>
C: Documents and SettingsAdministrator> lsnrctl stop
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0-Production on-2011
6: 59
Copyright (c) 1991,200 5, Oracle. All rights reserved.
|
Connecting
| The Code is as follows: |
|
(DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1 )))
|
Command executed successfully
| The Code is as follows: |
|
|
C: Documents and SettingsAdministrator> lsnrctl start
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0-Production on-2011
7: 06
Copyright (c) 1991,200 5, Oracle. All rights reserved.
Start tnslsnr: Please wait...
TNSLSNR for 32-bit Windows: Version 10.2.0.1.0-Production
The system parameter file is E: oracleproduct10.2.0db _ 1networkadminlistener. ora.
Log information written to E: oracleproduct10.2.0db _ 1networkloglistener. log
Listener: (DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (PIPENAME = \. pipeEXTPROC1ipc )))
Listener: (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = mqdyj) (PORT = 1521 )))
Connecting to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1 )))
LISTENER STATUS
------------------------
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0-Produ
Ction
Start Date: 14-12-2011 16:37:11
Normal operation time 0 days 0 hours 0 minutes 5 seconds
Tracking level off
Security ON: Local OS Authentication
SNMP OFF
Listener parameter file E: oracleproduct10.2.0db _ 1networkadminlistener. o
Ra
Listener log File E: oracleproduct10.2.0db _ 1networkloglistener. log
Listener endpoint overview...
(DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (PIPENAME = \. pipeEXTPROC1ipc )))
(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = mqdyj) (PORT = 1521 )))
Service summary ..
The Service "dbtest" contains one routine.
Routine "dbtest", status UNKNOWN, contains 1 handler of this service...
The Service "PLSExtProc" contains one routine.
Routine "PLSExtProc", status UNKNOWN, contains one handler of this service...
Command executed successfully
C: Documents and SettingsAdministrator> tnsping dbtest
TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0-Production on 14-12-
16:37:17 2011
Copyright (c) 1997,200 5, Oracle. All rights reserved.
Used parameter files:
E: oracleproduct10.2.0db _ 1networkadminsqlnet. ora
SQL> conn oracle/iamdba
ERROR:
ORA-01033: ORACLE initialization or shutdown in progress
-- This error is reported when I connect.
SQL> shutdown immediate
ORA-01109: the database is not open
The database has been detached.
The ORACLE routine has been disabled.
SQL> startup
ERROR is located in row 1st:
ORA-01172: Recovery of thread 1 stops in block 253011 (in file 2)
ORA-01151: Use Media recovery to recover blocks and recover backups if needed
-- Database startup times: ora-01172, 01151, UNDO file error.
The cause of this error is windows blue screen.
Solution (it is best to back up various oracle files before the operation ):
SQL> startup mount
The ORACLE routine has been started.
Total System Global Area 612368384 bytes
Fixed Size 1250428 bytes
Variable Size 159386500 bytes
Database Buffers 444596224 bytes
Redo Buffers 7135232 bytes
The database has been loaded.
SQL> recover datafile 2;
Media recovery is completed.
SQL> alter database open;
|
The database has been changed.
SQL>