SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jun 12 09:15:16 2014
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance. SQL> startup --启库,报错如下,提示找不到pfile文件ORA-01078: failure in processing system parameters LRM-00109: could not open parameter file "/u01/app/oracle/product/10.2.0/db_1/dbs/initMETRO.ora" [oracle@org54 ~]$ cd /u01/app/oracle/product/10.2.0/db_1/dbs --到参数文件目录下查看 [oracle@org54 dbs]$ ls --发现有spfile文件,但数据库提示未找到,此时要注意,对于SID的设置,在环境变量配置下是区分大小写的,由于手工建库时是小写的,所以配置环境变量时也必须是小写的 hc_metro.dat initdw.ora init.ora lkMETRO orapwmetro spfilemetro.ora [oracle@org54 dbs]$ export ORACLE_SID=metro --重新设置环境变量,注入SID小写的 [oracle@org54 dbs]$ sqlplus "/as sysdba"
SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jun 12 09:18:33 2014
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance. SQL> startup --启库 ORACLE instance started.
Total System Global Area 343932928 bytes Fixed Size 1219328 bytes Variable Size 109053184 bytes Database Buffers 230686720 bytes Redo Buffers 2973696 bytes Database mounted. Database opened. 启库完成 总结:在dbca建库时填写的SID,要与配置系统环境变量时的SID,包括大小写,要完全一样。更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12本文永久更新链接地址