项目oracle出错之后的处理过程

C:/Documents and Settings/Administrator>sqlplus "/ as sysdba"

SQL*Plus: Release 9.2.0.1.0 - Production on 星期二 3月 8 14:44:11 2011

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.


连接到:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production

SQL> quit;
从Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production中断开

C:/Documents and Settings/Administrator>sqlplus /nolog

SQL*Plus: Release 9.2.0.1.0 - Production on 星期二 3月 8 14:44:42 2011

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.

SQL> conn sys/admin@lyxydb@172.30.78.2 as sysdba;
ERROR:
ORA-12154: TNS: 无法处理服务名


SQL> conn sys/admin@lyxydb_172.30.78.2 as sysdba;
ERROR:
ORA-12154: TNS: 无法处理服务名


SQL> conn sys/admin@lyxtdb_172.30.78.2 as sysdba;
已连接。
SQL> quit;
从Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production中断开

C:/Documents and Settings/Administrator>
C:/Documents and Settings/Administrator>
C:/Documents and Settings/Administrator>sqlplus "/ as sysdba"

SQL*Plus: Release 9.2.0.1.0 - Production on 星期二 3月 8 14:46:08 2011

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.


连接到:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production

SQL> shutdown immediate
ORA-01109: 数据库未打开


已经卸载数据库。
ORACLE 例程已经关闭。
SQL> startup
ORACLE 例程已经启动。

Total System Global Area  128523084 bytes
Fixed Size                   453452 bytes
Variable Size             109051904 bytes
Database Buffers           16777216 bytes
Redo Buffers                2240512 bytes
数据库装载完毕。
ORA-01589: 要打开数据库则必须使用 RESETLOGS 或 NORESETLOGS 选项


SQL> startup noresetlogs
SP2-0714: 无效的        STARTUP 选项组合
SQL> alert dabatase open noresetlogs
SP2-0734: 未知的命令开头 "alert daba..." - 忽略了剩余的行。
SQL> alter dabatase open noresetlogs
  2  ;
alter dabatase open noresetlogs
      *
ERROR 位于第 1 行:
ORA-00940: 无效的 ALTER 命令


SQL> alter database open noresetlogs;
alter database open noresetlogs
*
ERROR 位于第 1 行:
ORA-01588: 要打开数据库则必须使用 RESETLOGS 选项


SQL> alter database open resetlogs;
alter database open resetlogs
*
ERROR 位于第 1 行:
ORA-01194: 文件1需要更多的恢复来保持一致性
ORA-01110: 数据文件 1: 'D:/ORACLE/ORADATA/LYXTDB/SYSTEM01.DBF'


SQL> alter database datafile 'D:/oracle/oradata/lyxtdb/system01.DBF' offline dro
p;

数据库已更改。

SQL> shutdown immediate
ORA-01109: 数据库未打开


已经卸载数据库。
ORACLE 例程已经关闭。
SQL> alter database open resetlogs;
alter database open resetlogs
*
ERROR 位于第 1 行:
ORA-01034: ORACLE not available


SQL> startup
ORACLE 例程已经启动。

Total System Global Area  128523084 bytes
Fixed Size                   453452 bytes
Variable Size             109051904 bytes
Database Buffers           16777216 bytes
Redo Buffers                2240512 bytes
数据库装载完毕。
ORA-01589: 要打开数据库则必须使用 RESETLOGS 或 NORESETLOGS 选项


SQL> start open resetlogs;
SP2-0310: 无法打开文件"open.sql"
SQL>
SQL> start open noresetlogs;
SP2-0310: 无法打开文件"open.sql"
SQL> quit;
从Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production中断开

C:/Documents and Settings/Administrator>sqlplus /nolog

SQL*Plus: Release 9.2.0.1.0 - Production on 星期二 3月 8 14:55:57 2011

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.

SQL> quit;

C:/Documents and Settings/Administrator>d:

D:/>cd D:/oracle/ora92/rdbms/demo/lobs/plsql

D:/oracle/ora92/rdbms/demo/lobs/plsql>sqlplus "/ as sysdba"

SQL*Plus: Release 9.2.0.1.0 - Production on 星期二 3月 8 15:02:38 2011

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.


连接到:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production

SQL> shutdown immediate
ORA-01109: 数据库未打开


已经卸载数据库。
ORACLE 例程已经关闭。
SQL> startup
ORACLE 例程已经启动。

Total System Global Area  128523084 bytes
Fixed Size                   453452 bytes
Variable Size             109051904 bytes
Database Buffers           16777216 bytes
Redo Buffers                2240512 bytes
数据库装载完毕。
ORA-01589: 要打开数据库则必须使用 RESETLOGS 或 NORESETLOGS 选项


SQL> alter database open resetlogs;
alter database open resetlogs
*
ERROR 位于第 1 行:
ORA-01245: RESETLOGS 完成时脱机文件1将丢失
ORA-01110: 数据文件 1: 'D:/ORACLE/ORADATA/LYXTDB/SYSTEM01.DBF'


SQL> alter database datafile '/data1/oradata/ora9i/undotbs01.dbf' online
  2  ;
alter database datafile '/data1/oradata/ora9i/undotbs01.dbf' online
*
ERROR 位于第 1 行:
ORA-01516: 不存在的日志文件, 数据文件或临时文件
'/data1/oradata/ora9i/undotbs01.dbf'


SQL> alter database datafile 'D:/oracle/oradata/lyxtdb/system01.DBF' online;

数据库已更改。

SQL> alter database open resetlogs;
alter database open resetlogs
*
ERROR 位于第 1 行:
ORA-01194: 文件1需要更多的恢复来保持一致性
ORA-01110: 数据文件 1: 'D:/ORACLE/ORADATA/LYXTDB/SYSTEM01.DBF'


SQL> startup
ORA-01081: 无法启动已在运行的 ORACLE --- 请首先关闭
SQL> shutdown immediate
ORA-01109: 数据库未打开


已经卸载数据库。
ORACLE 例程已经关闭。
SQL>
SQL>
SQL>
SQL> startup
ORACLE 例程已经启动。

Total System Global Area  128523084 bytes
Fixed Size                   453452 bytes
Variable Size             109051904 bytes
Database Buffers           16777216 bytes
Redo Buffers                2240512 bytes
数据库装载完毕。
ORA-01589: 要打开数据库则必须使用 RESETLOGS 或 NORESETLOGS 选项


SQL> alter database open resetlogs;
alter database open resetlogs
*
ERROR 位于第 1 行:
ORA-01194: 文件1需要更多的恢复来保持一致性
ORA-01110: 数据文件 1: 'D:/ORACLE/ORADATA/LYXTDB/SYSTEM01.DBF'


SQL> alter system set _allow_resetlogs_corruption=TRUE;
alter system set _allow_resetlogs_corruption=TRUE
                 *
ERROR 位于第 1 行:
ORA-00911: 无效字符


SQL> shutdown immediate
ORA-01109: 数据库未打开


已经卸载数据库。
ORACLE 例程已经关闭。
SQL> create pfile='D:/ORACLE/ORADATA/ora_lyxtdb.ora' from spfile;

文件已创建。

SQL> startup   pfile='D:/ORACLE/ORADATA/ora_lyxtdb.ora';
ORACLE 例程已经启动。

Total System Global Area  128523084 bytes
Fixed Size                   453452 bytes
Variable Size             109051904 bytes
Database Buffers           16777216 bytes
Redo Buffers                2240512 bytes
数据库装载完毕。
ORA-01589: 要打开数据库则必须使用 RESETLOGS 或 NORESETLOGS 选项


SQL> alter database open resetlogs;

数据库已更改。

SQL> shutdown immediate
数据库已经关闭。
已经卸载数据库。
ORACLE 例程已经关闭。
SQL> startup
ORACLE 例程已经启动。

Total System Global Area  128523084 bytes
Fixed Size                   453452 bytes
Variable Size             109051904 bytes
Database Buffers           16777216 bytes
Redo Buffers                2240512 bytes
数据库装载完毕。
数据库已经打开。
SQL> quit;
从Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production中断开

D:/oracle/ora92/rdbms/demo/lobs/plsql>sqlplus /nolog

SQL*Plus: Release 9.2.0.1.0 - Production on 星期二 3月 8 15:26:28 2011

Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.

SQL> conn lyjj0830/

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值