oracle数据库未怎么解决,oracle数据库未打开解决办法-Oracle

Microsoft Windows [版本 6.1.7601]

版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

C:\Users\Administrator>

C:\Users\Administrator>sqlplus / as sysdba;

SQL*Plus: Release 11.2.0.1.0 Production on 星期三 10月 29 09:50:55 2014

Copyright (c) 1982, 2010, Oracle. All rights reserved.

连接到:

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 – 64bit Producti

With the Partitioning, OLAP, Data Mining and Real Application Testing opti

SQL> show user;

USER 为 “SYS”

SQL> conn scott/tiger;

ERROR:

ORA-01033: ORACLE initialization or shutdown in progress

进程 ID: 0

会话 ID: 0 序列号: 0

警告: 您不再连接到 ORACLE。

SQL> alter user scott account unlock identified by tiger;

SP2-0640: 未连接

SQL> conn / as sysdba;

已连接。

SQL> show user;

USER 为 “SYS”

SQL> alter user scott account unlock identified by tiger;

alter user scott account unlock identified by tiger

*

第 1 行出现错误:

ORA-01109: 数据库未打开

SQL> show user;

USER 为 “SYS”

SQL> startup

ORA-01081: 无法启动已在运行的 ORACLE – 请首先关闭它

SQL> exit;

从 Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 – 64bit Produ

With the Partitioning, OLAP, Data Mining and Real Application Testing opti

C:\Users\Administrator>sqlplus /nolog

SQL*Plus: Release 11.2.0.1.0 Production on 星期三 10月 29 09:52:45 2014

Copyright (c) 1982, 2010, Oracle. All rights reserved.

SQL> startup

ORA-01031: insufficient privileges

SQL> show user;

USER 为 “”

SQL> exit

C:\Users\Administrator>sqlplus / as sysdba;

SQL*Plus: Release 11.2.0.1.0 Production on 星期三 10月 29 09:53:34 2014

Copyright (c) 1982, 2010, Oracle. All rights reserved.

连接到:

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 – 64bit Producti

With the Partitioning, OLAP, Data Mining and Real Application Testing opti

SQL> show user;

USER 为 “SYS”

SQL> conn scott/tiger;

ERROR:

ORA-01033: ORACLE initialization or shutdown in progress

进程 ID: 0

会话 ID: 0 序列号: 0

警告: 您不再连接到 ORACLE。

SQL> conn / as sysdba;

已连接。

SQL> select 4+5 form dual;

select 4+5 form dual

*

第 1 行出现错误:

ORA-00923: 未找到要求的 FROM 关键字

SQL> select 4+5 from dual;

4+5

———-

9

SQL> select * from tab;

select * from tab

*

第 1 行出现错误:

ORA-01219: 数据库未打开: 仅允许在固定表/视图中查询

SQL> startup mount

ORA-01081: 无法启动已在运行的 ORACLE – 请首先关闭它

SQL> shoutdown immediate

SP2-0734: 未知的命令开头 “shoutdown …” – 忽略了剩余的行。

SQL> shutdown immediate;

ORA-01109: 数据库未打开

已经卸载数据库。

ORACLE 例程已经关闭。

SQL> startup mount;

ORACLE 例程已经启动。

Total System Global Area 1670221824 bytes

Fixed Size 2176328 bytes

Variable Size 1174407864 bytes

Database Buffers 486539264 bytes

Redo Buffers 7098368 bytes

数据库装载完毕。

SQL> alter database open;

alter database open

*

第 1 行出现错误:

ORA-01157: 无法标识/锁定数据文件 7 – 请参阅 DBWR 跟踪文件

ORA-01110: 数据文件 7: ‘E:\MYTBS1.DBF’

SQL> alter database datafile ‘E:\MYTBS1.DBF’ offline drop

2 ;

数据库已更改。

SQL> alter database open;

alter database open

*

第 1 行出现错误:

ORA-01157: 无法标识/锁定数据文件 8 – 请参阅 DBWR 跟踪文件

ORA-01110: 数据文件 8: ‘F:\MYTBS2.DBF’

SQL> shutdown immediate;

ORA-01109: 数据库未打开

已经卸载数据库。

ORACLE 例程已经关闭。

SQL> startup mount;

ORACLE 例程已经启动。

Total System Global Area 1670221824 bytes

Fixed Size 2176328 bytes

Variable Size 1174407864 bytes

Database Buffers 486539264 bytes

Redo Buffers 7098368 bytes

数据库装载完毕。

SQL> alter database open;

alter database open

*

第 1 行出现错误:

ORA-01157: 无法标识/锁定数据文件 8 – 请参阅 DBWR 跟踪文件

ORA-01110: 数据文件 8: ‘F:\MYTBS2.DBF’

SQL> alter database datafile ‘F:\MYTBS2.DBF’ offline drop

2 ;

数据库已更改。

SQL> shutdown immediate;

ORA-01109: 数据库未打开

已经卸载数据库。

ORACLE 例程已经关闭。

SQL> startup mount;

ORACLE 例程已经启动。

Total System Global Area 1670221824 bytes

Fixed Size 2176328 bytes

Variable Size 1174407864 bytes

Database Buffers 486539264 bytes

Redo Buffers 7098368 bytes

数据库装载完毕。

SQL> alter database open;

数据库已更改。

SQL> conn scott/tiger;

ERROR:

ORA-28002: the password will expire within 7 days

已连接。

SQL> alter user scott account unlock identified by tiger;

用户已更改。

SQL> conn scott/tiger;

已连接。

SQL> show user;

USER 为 “SCOTT”

SQL> select ename from enp;

select ename from enp

*

第 1 行出现错误:

ORA-00942: 表或视图不存在

SQL> select ename from emp;

ENAME

———-

SMITH

ALLEN

WARD

JONES

MARTIN

BLAKE

CLARK

KING

TURNER

JAMES

FORD

ENAME

———-

MILLER

已选择12行。

SQL>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值