ORACLE initalization or shutdown in progress

Source: Internet
Author: User

C: \ Documents ents and Settings \ Administrator> sqlplus/nolog
SQL> connect system/password as sysdba
Connected.
SQL> shutdown normal
ORA-01109: the database is not open
 
 
The database has been detached.
The ORACLE routine has been disabled.
SQL> startup mount
The ORACLE routine has been started.
 
Total System Global Area 612368384 bytes
Fixed Size 1250428 bytes
Variable Size 348130180 bytes
Database Buffers 255852544 bytes
Redo Buffers 7135232 bytes
The database has been loaded.
SQL> alter database open
2;
Alter database open
*
Row 3 has an error:
ORA-01157: unable to identify/lock Data File 5-see DBWR trace file
ORA-01110: Data File 5:
 
'E: \ DATABASE \ ORACLE \ ORADATA \ ORCL \ mobile_base.dbf'
 
 
SQL> alter database create datafile 5;
 
The database has been changed.
 
SQL & gt; conn test/123456
ERROR:
ORA-01033: ORACLE initialization or shutdown in progress
 
 
Warning: you are no longer connected to ORACLE.
SQL> conn scott/tiger
ERROR:
ORA-01033: ORACLE initialization or shutdown in progress
 
 
SQL> alter database datafile 5 offline drop;
SP2-0640: not connected
SQL> conn sys/orcle
ERROR:
ORA-01033: ORACLE initialization or shutdown in progress
 
 
SQL> conn sys/oracle as sysdba;
Connected.
SQL> shutdown normal
ORA-01109: the database is not open
 
 
The database has been detached.
The ORACLE routine has been disabled.
SQL> startup mount
The ORACLE routine has been started.
 
Total System Global Area 612368384 bytes
Fixed Size 1250428 bytes
Variable Size 348130180 bytes
Database Buffers 255852544 bytes
Redo Buffers 7135232 bytes
The database has been loaded.
SQL> alter database open
2;
Alter database open
*
Row 3 has an error:
ORA-01113: File 5 requires media recovery
ORA-01110: Data File 5:
 
'E: \ DATABASE \ ORACLE \ ORADATA \ ORCL \ mobile_base.dbf'
 
 
SQL> alter database datafile
 
'E: \ DATABASE \ ORACLE \ ORADATA \ ORCL \ MOBILE_BASE.D
Ffline;
Alter database datafile
 
'E: \ DATABASE \ ORACLE \ ORADATA \ ORCL \ mobile_base.dbf'
 
O
E
*
Row 3 has an error:
ORA-01145: do not allow immediate offline unless media recovery is enabled
 
 
SQL> alter database datafile
 
'E: \ DATABASE \ ORACLE \ ORADATA \ ORCL \ MOBILE_BASE.D
Ffline drop;
 
The database has been changed.
 
SQL> alter database open
2;
 
The database has been changed.
 
SQL & gt; conn test/123456
Connected.
SQL>

Author: "the long-awaited sea"

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.