ITPub博客

首页 > 数据库 > Oracle > SPFILE出错问题解决

SPFILE出错问题解决

原创 Oracle 作者:oracletown 时间:2009-06-02 12:03:25 0 删除 编辑

在eygle的网站上看了篇文章,叫SPILE参数修改错误的解决方法。http://www.eygle.com/archives/2008/07/spfile_fault_correct.html

eygle的解决是在linux下的,但在windows下还是存在了几个问题。

1、shutdown 后,windows里的服务如果未手动关闭,则将出现如下错误:

SQL> startup pfile='D:oracleora92dbsinitming.ora';
ORA-27100: shared memory realm already exists

根据网上资料,ora-27100错误的解释如下:

ORA-27100 shared memory realm already exists

Cause: An attempt was made to start duplicate instances, or tried to restart an instance that had not been properly shut down.

Action: Use a different instance name, or cleanup the failed instance's SGA.

解决方法 是手动将服务里的ORACLE的服务关闭即可。但手工关闭时,不小心将OracleOraHome92TNSListener也关闭了。登陆时出现了TNS错误。

SQL> startup pfile='D:oracleora92dbsinitming.ora';
ORA-12571: TNS: 包写入程序失败

在cmd下输入lsnrctl start 启动Listener服务。

2、对ORA-27100 错误,有人用oradim来做,自己通过实践,发现可以解决问题。

关闭实例:

C:Documents and Settingshuangqingxin>oradim -shutdown -sid ming
DIM-00018: 未能停止 Oracle 服务

删除实例:

C:Documents and Settingshuangqingxin>oradim -delete -sid ming

重建实例:

C:Documents and Settingshuangqingxin>oradim -new -sid ming

C:Documents and Settingshuangqingxin>oradim -startup -sid ming
ORA-01017: invalid username/password; logon denied

接下来用sqlplus "/as sysdba"登陆,再用startup pfile="$oracle_home/dbs/initming.ora"就可正常启动。

[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/21558121/viewspace-1022701/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 没有了~
下一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2009-05-19

  • 博文量
    1
  • 访问量
    670