从安装开始点点弄弄,今天第一次把数据库搞坏,唉!除了重装想不出别的办法。
其实也没做什么,只是想配一个非缺省的LISTENER,然后就不知怎地用VI打开了spfilemytestdb.ora,看到除了一些文本以外的奇怪字符,才想起来以前看到过,该文件貌似为非文本,不能手动修改,于是就退出VI。
哪成想,后来在EMDC中数据库就启动不了,开始还没想到这点,以为是配的LISTENER不对,后来查看EMDC的详细错误信息才发现是初始化参数文件的问题:
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Jul 25 10:15:33 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> Connected to an idle instance.
SQL> ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/u01/app/oracle/product/10.2.0/db_1/dbs/initmytestdb.ora'
SQL>
再翻找042教材,4-15中明确说明,初始化参数文件的查找使用顺序为先spfile.ora,然后才是init.ora。而我的系统缺省并没有这个init.ora文件,而那个spfile.ora还在,而系统却不使用后者,说明该文件被我因用VI打开而误改动了?可是我明明记得是用q退出的,根本没有保存,怎么就修改了呢?ls -l查看,发现修改时间确实是刚才,唉,咋就改了呢??
真的不想重装,再试:
[oracle@rainseason bin]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Jul 25 10:36:11 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/u01/app/oracle/product/10.2.0/db_1/dbs/initmytestdb.ora'
[oracle@rainseason dbs]$ cp init.ora initmytestdb.ora
[oracle@rainseason dbs]$
SQL> startup
ORA-00371: not enough shared pool memory, should be atleast 62198988 bytes
SQL>
算了算了,放弃,还是重装吧。
更新
原想删了再创建一个,可是dbca无法删除实例,原因还是参数文件,囧!
找到了一篇文章http://www.admin99.net/read.php/259.htm
这位前辈的直觉真是让人敬佩不已,如法炮制,一切恢复平静。
其实也没做什么,只是想配一个非缺省的LISTENER,然后就不知怎地用VI打开了spfilemytestdb.ora,看到除了一些文本以外的奇怪字符,才想起来以前看到过,该文件貌似为非文本,不能手动修改,于是就退出VI。
哪成想,后来在EMDC中数据库就启动不了,开始还没想到这点,以为是配的LISTENER不对,后来查看EMDC的详细错误信息才发现是初始化参数文件的问题:
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Jul 25 10:15:33 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> Connected to an idle instance.
SQL> ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/u01/app/oracle/product/10.2.0/db_1/dbs/initmytestdb.ora'
SQL>
再翻找042教材,4-15中明确说明,初始化参数文件的查找使用顺序为先spfile.ora,然后才是init.ora。而我的系统缺省并没有这个init.ora文件,而那个spfile.ora还在,而系统却不使用后者,说明该文件被我因用VI打开而误改动了?可是我明明记得是用q退出的,根本没有保存,怎么就修改了呢?ls -l查看,发现修改时间确实是刚才,唉,咋就改了呢??
真的不想重装,再试:
[oracle@rainseason bin]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Jul 25 10:36:11 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/u01/app/oracle/product/10.2.0/db_1/dbs/initmytestdb.ora'
[oracle@rainseason dbs]$ cp init.ora initmytestdb.ora
[oracle@rainseason dbs]$
SQL> startup
ORA-00371: not enough shared pool memory, should be atleast 62198988 bytes
SQL>
算了算了,放弃,还是重装吧。
更新
原想删了再创建一个,可是dbca无法删除实例,原因还是参数文件,囧!
找到了一篇文章http://www.admin99.net/read.php/259.htm
这位前辈的直觉真是让人敬佩不已,如法炮制,一切恢复平静。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24131851/viewspace-669373/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/24131851/viewspace-669373/