Chinaunix首页 | 论坛 | 博客
  • 博客访问: 825358
  • 博文数量: 101
  • 博客积分: 1311
  • 博客等级: 中尉
  • 技术积分: 1191
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-25 12:15
文章分类

全部博文(101)

文章存档

2012年(101)

分类: Oracle

2012-06-12 14:18:58

[oracle@health ~]$ sqlplus '/as sysdba'

[uniread] Loaded history (802 lines)

 

SQL*Plus: Release 11.2.0.1.0 Production on Tue Oct 18 13:33:03 2011

 

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

 

 

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

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

 

SQL> shutdown immediate;

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL> startup mount

ORACLE instance started.

 

Total System Global Area 1653518336 bytes

Fixed Size                  2213896 bytes

Variable Size            1291847672 bytes

Database Buffers          352321536 bytes

Redo Buffers                7135232 bytes

Database mounted.

SQL> alter database open resetlogs;

alter database open resetlogs

*

ERROR at line 1:

ORA-01139: RESETLOGS option only valid after an incomplete database recovery

解决办法:

 

SQL> recover database until cancel;

Media recovery complete.

Elapsed: 00:00:00.00

SQL> alter database open resetlogs; 

 

Database altered.

 

Elapsed: 00:00:32.95

阅读(15262) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~