When operating Oracle, if Oracle cannot be started or stopped normally, or Oracle import/export command execution is incorrect,
It is usually caused by table space problems in Oracle instances.
The following solution is taken from the network and is applicable to problems with various tablespace files:
Ora-01033: oracle initialization or shutdown in progress, after analysis and research finally solved
I. First, the cause of the problem is that I deleted a file in oracle \ oradata \ oradb by mistake.
2. symptom: SQL * Plus cannot be connected, the following error is displayed: ORA-01033: ORACLE initialization or shutdown in progress, the same error is also in the Enterprise Manager Console.
Iii. Analysis: After Oracle is started, the user needs to load the original configuration information in the solution during login. During the loading process, the location specified by the original file is not found, therefore, an error is reported.
Iv. Solution Process:
1. Run cmd in windows to enter the DOS environment.
2. Log On As a dba user. The specific command is
Sqlplus/NOLOG
SQL> connect sys/change_on_install as sysdba
Tip: Successful
SQL> shutdown normal
Tip: the database is closed.
Database uninstalled
ORACLE routine disabled
SQL> startup mount
Tip: The ORACLE routine has been started.
Total System Global Area 118255568 bytes
Fixed Size 282576 bytes
Variable Size 82886080 bytes
Database Buffers 33554432 bytes
Redo Buffers 532480 bytes
Database loaded
SQL> alter database open;
Tip:
Row 3 has an error:
ORA-01157: unable to identify/lock data file 19-see DBWR trace file
ORA-01110: Data File 19: ''' C: \ oracle \ oradata \ oradb \ FYGL. ORA''
The file part of this prompt varies depending on different situations.
Continue Input
SQL> alter database datafile 19 offline drop;
Tip: the database has been changed.
Loop through the last two steps until alter database open; then no error is prompted, "the database has been changed ".
Then enter
SQL> shutdown normal
Tip: the database is closed.
Database uninstalled
ORACLE routine disabled
SQL> startup
Tip: The ORACLE routine has been started.
Total System Global Area 118255568 bytes
Fixed Size 282576 bytes
Variable Size 82886080 bytes
Database Buffers 33554432 bytes
Redo Buffers 532480 bytes
Database loaded
You can solve the problem.
5. Finally, let's talk about the hidden danger mentioned in the first article, because the new database is created, ORACLE_SID also changes, there will be a ORA-12560 error when the user logs on, to solve this problem, set HKEY_LOCAL_MACHINE \ SOFTWARE \ ORACLE \ HOME0 \ ORACLE_SID in the system registry.
You can change the key value to the previous SID, and the user can log on normally.