今天在启动数据库人时候报下面的错误。

 
   
  1. SQL> startup  
  2. ORA-00119: invalid specification for system parameter LOCAL_LISTENER  
  3. ORA-00132: syntax error or unresolved network name 'LISTENER_ORCL' 

在另一个终端进入

 
   
  1. [root@huang14 ~]# su - oracle  
  2. [oracle@huang14 ~]$ cd /opt/oracle/10g/dbs/  
  3. [oracle@huang14 dbs]$ strings spfileorcl.ora >initorcl.ora 

把下面这行改成下面这样就可以了,注意大小写哦。

 
   
  1. [oracle@huang14 dbs]$ grep local_liste initorcl.ora   
  2. *.local_listener='(ADDRESS_LIST=(Address=(Protocol=TCP)(Host=192.168.19.11)(Port=1521)))' 
  3. SQL> startup nomount pfile='/opt/oracle/10g/dbs/initorcl.ora' 
  4. ORACLE instance started.  
  5. Total System Global Area  167772160 bytes  
  6. Fixed Size                  1218316 bytes  
  7. Variable Size              62916852 bytes  
  8. Database Buffers          100663296 bytes  
  9. Redo Buffers                2973696 bytes  
  10. SQL> create spfile from pfile;  
  11. File created. 

因为在nomount阶段所以我们可以force

 
 
  
  1. SQL> startup force 
  2. ORACLE instance started.  
  3. Total System Global Area  167772160 bytes  
  4. Fixed Size                  1218316 bytes  
  5. Variable Size              62916852 bytes  
  6. Database Buffers          100663296 bytes  
  7. Redo Buffers                2973696 bytes  
  8. Database mounted.  
  9. Database opened.  
  10. SQL>  

数据库正常启动。