误删系统表(drop dual)后数据库再次启动报错的解决办法
2014-11-27 10:17
375 查看
SYS@orcl> drop table dual;
SYS@orcl> select * from dual;
select * from dual
*
ERROR at line 1:
ORA-00980: synonym translation is no longer valid
SYS@orcl> shutdow immediate
SYS@orcl> startup
ORACLE instance started.
Total System Global Area 171966464 bytes
Fixed Size 787988 bytes
Variable Size 145488364 bytes
Database Buffers 25165824 bytes
Redo Buffers 524288 bytes
Database mounted.
ORA-01092: ORACLE instance terminated. Disconnection forced
分析:报错原因可能是打开数据库时 检查系统完整性时报错,解决办法:修改初始化参数使得打开数据库时不检查系统完整性,
此时需要新建一个pfile初始化参数文件 设置初始化参数
replication_dependency_tracking = FALSE(具体含义有待研究)
创建该文件有两种方式
1、通过spfile创建
SYS@orcl> create pfile='d:\pfile.bak' from spfile;
ERROR:
ORA-03114: not connected to ORACLE
SYS@orcl> conn / as sysdba
SYS@orcl> create pfile='d:\pfile.bak' from spfile;
File created.
手动打开该文件 在最后一行添加如下内容:
replication_dependency_tracking = FALSE
保存。
2、手动创建
手动创建文件'd:\pfile.bak' ,打开文件 在文件中添加以下内容:
SPFILE= 'F:\oracle\product\10.1.0\Db_1\database\SPFILEORCL.ORA'
replication_dependency_tracking = FALSE
保存。
此种引用方式需要了解一下 pfile 与spfile 文件的联系与区别(有待研究)
重新启动数据库:
SYS@orcl> startup pfile='d:\pfile.bak';
ORA-24324: service handle not initialized
ORA-01041: internal error. hostdef extension doesn't exist
SYS@orcl> shutdown immediate
ORA-24324: service handle not initialized
ORA-01041: internal error. hostdef extension doesn't exist
SYS@orcl> conn / as sysdba
Connected to an idle instance.
SYS@orcl> shutdown immediate
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
SYS@orcl> shutdown abort
ORACLE instance shut down.
SYS@orcl> startup pfile='d:\pfile.bak';
ORACLE instance started.
Total System Global Area 171966464 bytes
Fixed Size 787988 bytes
Variable Size 145488364 bytes
Database Buffers 25165824 bytes
Redo Buffers 524288 bytes
Database mounted.
Database opened.
SYS@orcl> select * from dual;
select * from dual
*
ERROR at line 1:
ORA-00980: synonym translation is no longer valid
SYS@orcl> create table SYS.DUAL
2 (
3 DUMMY VARCHAR2(1)
4 )
5 tablespace SYSTEM
6 pctfree 10
7 pctused 40
8 initrans 1
9 maxtrans 255
10
4000
storage
11 (
12 initial 16K
13 minextents 1
14 maxextents unlimited
15 );
SYS@orcl> grant select on SYS.DUAL to PUBLIC with grant option;
SYS@orcl> insert into dual (DUMMY)
2 values ('X');
SYS@orcl> commit;
SYS@orcl> select * from dual;
D
-
X
SYS@orcl> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SYS@orcl> startup
ORACLE instance started.
Total System Global Area 171966464 bytes
Fixed Size 787988 bytes
Variable Size 145488364 bytes
Database Buffers 25165824 bytes
Redo Buffers 524288 bytes
Database mounted.
Database opened.
SYS@orcl> select * from dual;
D
-
X
转载:http://www.cnblogs.com/jsnewland/archive/2011/11/25/2262707.html
SYS@orcl> select * from dual;
select * from dual
*
ERROR at line 1:
ORA-00980: synonym translation is no longer valid
SYS@orcl> shutdow immediate
SYS@orcl> startup
ORACLE instance started.
Total System Global Area 171966464 bytes
Fixed Size 787988 bytes
Variable Size 145488364 bytes
Database Buffers 25165824 bytes
Redo Buffers 524288 bytes
Database mounted.
ORA-01092: ORACLE instance terminated. Disconnection forced
分析:报错原因可能是打开数据库时 检查系统完整性时报错,解决办法:修改初始化参数使得打开数据库时不检查系统完整性,
此时需要新建一个pfile初始化参数文件 设置初始化参数
replication_dependency_tracking = FALSE(具体含义有待研究)
创建该文件有两种方式
1、通过spfile创建
SYS@orcl> create pfile='d:\pfile.bak' from spfile;
ERROR:
ORA-03114: not connected to ORACLE
SYS@orcl> conn / as sysdba
SYS@orcl> create pfile='d:\pfile.bak' from spfile;
File created.
手动打开该文件 在最后一行添加如下内容:
replication_dependency_tracking = FALSE
保存。
2、手动创建
手动创建文件'd:\pfile.bak' ,打开文件 在文件中添加以下内容:
SPFILE= 'F:\oracle\product\10.1.0\Db_1\database\SPFILEORCL.ORA'
replication_dependency_tracking = FALSE
保存。
此种引用方式需要了解一下 pfile 与spfile 文件的联系与区别(有待研究)
重新启动数据库:
SYS@orcl> startup pfile='d:\pfile.bak';
ORA-24324: service handle not initialized
ORA-01041: internal error. hostdef extension doesn't exist
SYS@orcl> shutdown immediate
ORA-24324: service handle not initialized
ORA-01041: internal error. hostdef extension doesn't exist
SYS@orcl> conn / as sysdba
Connected to an idle instance.
SYS@orcl> shutdown immediate
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
SYS@orcl> shutdown abort
ORACLE instance shut down.
SYS@orcl> startup pfile='d:\pfile.bak';
ORACLE instance started.
Total System Global Area 171966464 bytes
Fixed Size 787988 bytes
Variable Size 145488364 bytes
Database Buffers 25165824 bytes
Redo Buffers 524288 bytes
Database mounted.
Database opened.
SYS@orcl> select * from dual;
select * from dual
*
ERROR at line 1:
ORA-00980: synonym translation is no longer valid
SYS@orcl> create table SYS.DUAL
2 (
3 DUMMY VARCHAR2(1)
4 )
5 tablespace SYSTEM
6 pctfree 10
7 pctused 40
8 initrans 1
9 maxtrans 255
10
4000
storage
11 (
12 initial 16K
13 minextents 1
14 maxextents unlimited
15 );
SYS@orcl> grant select on SYS.DUAL to PUBLIC with grant option;
SYS@orcl> insert into dual (DUMMY)
2 values ('X');
SYS@orcl> commit;
SYS@orcl> select * from dual;
D
-
X
SYS@orcl> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SYS@orcl> startup
ORACLE instance started.
Total System Global Area 171966464 bytes
Fixed Size 787988 bytes
Variable Size 145488364 bytes
Database Buffers 25165824 bytes
Redo Buffers 524288 bytes
Database mounted.
Database opened.
SYS@orcl> select * from dual;
D
-
X
转载:http://www.cnblogs.com/jsnewland/archive/2011/11/25/2262707.html
相关文章推荐
- 误删系统表(drop dual)后数据库再次启动报错的解决办法
- oracle 误删表空间文件启动不了数据库的解决办法
- “无法启动调试,系统找不到指定文件”的解决办法
- 系统启动故障及解决办法
- ubuntu9.04更新之后无法启动系统的解决办法
- oracle非法关机数据库无法启动ORA-00600: [kcratr1_lostwrt],解决办法
- ubuntu10.04升到10.10系统无法启动的解决办法
- 系统启动时报错SHDOCVW.DLL找不到的解决办法
- 系统无法启动光驱“由于其配置信息(注册表中的)不完整或已损坏,"的解决办法
- ORACLE 数据库 OracleDBConsole 无法启动的解决办法
- 在本地数据库目录或系统数据库目录中已经存在数据库别名""的解决办法
- 32位系统上开发的Access为数据库的程序在64位机器上运行出错的解决办法
- Linux64位系统下WTK无法启动的问题解决办法
- 在windowsxp系统内删除linux系统分区后出现grub error 22系统无法启动的解决办法
- 针对没有光驱,NTLDR is missing系统无法启动的解决办法
- 在本地数据库目录或系统数据库目录中已经存在数据库别名""的解决办法
- Visual Studio 2008不能创建数据库连接出现:未能加载文件或程序集“Microsoft.SqlServer.Management.Sdk.Sfc, Version=10.0.0.0, Culture=neutral,PublicKeyToken=89845dcd8080cc91”或它的一个依赖项。系统找不到指定的文件的解决办法
- WIN7 激活失败 报 A20 debug C806 done... 错误,系统无法启动的解决办法。
- 卸载oracle9i后,再次安装时出现"加载数据库错误areasQueries"错误的解决办法(简单版)
- SharePoint2010 安装时报“未能启动数据库服务 MSSQL$Sharepoint"解决办法