zoukankan      html  css  js  c++  java
  • ORA-00119: invalid specification for system parameter LOCAL_LISTENER

    错误分析:

    listener 可以正常启动:

    [oracle@o_target admin]$ cat listener.ora
    # listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.

    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
        )
      )

    ADR_BASE_LISTENER = /u01/app/oracle

    [oracle@o_target admin]$ 

    *********************************

    数据库无法启动:

    [oracle@o_target ~]$ sqlplus / as sysdba

    SQL*Plus: Release 11.2.0.1.0 Production on Fri Apr 4 09:18:56 2014

    Copyright (c) 1982, 2009, Oracle.  All rights reserved.

    Connected to an idle instance.

    SQL> startup
    ORA-00119: invalid specification for system parameter LOCAL_LISTENER
    ORA-00130: invalid listener address '(ADDRESS=(PROTOCOL=TCP)(HOST=o_target.loc)(PORT=1521))'
    SQL> show parameter local_listener;
    ORA-01034: ORACLE not available
    Process ID: 0
    Session ID: 0 Serial number: 0

    SQL> startup nomount;
    ORA-00119: invalid specification for system parameter LOCAL_LISTENER
    ORA-00130: invalid listener address '(ADDRESS=(PROTOCOL=TCP)(HOST=o_target.loc)(PORT=1521))'
    SQL> 
    SQL> startup force;
    ORA-00119: invalid specification for system parameter LOCAL_LISTENER
    ORA-00130: invalid listener address '(ADDRESS=(PROTOCOL=TCP)(HOST=o_target.loc)(PORT=1521))'
    SQL> 

    *********************************

    [oracle@o_target dbs]$ pwd
    /u01/app/oracle/product/11.2.0/dbhome_1/dbs
    [oracle@o_target dbs]$ tail initorcl.ora
    *.db_recovery_file_dest=''
    *.diagnostic_dest='/u01/app/oracle'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
    *.log_archive_dest='/u01/app/oracle/arch'
    *.memory_target=1024458752
    *.open_cursors=300
    *.processes=150
    *.remote_login_passwordfile='EXCLUSIVE'
    *.undo_tablespace='UNDOTBS1'
    *.local_listener='(ADDRESS_LIST= (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)))'
    [oracle@o_target dbs]$ 

    再次启动试验:

    SQL> startup pfile='/home/oracle/admin/orcl2/pfile/init.ora.25201512422';
    ORACLE instance started.
    Total System Global Area 1023004672 bytes
    Fixed Size                  2219752 bytes
    Variable Size             633340184 bytes
    Database Buffers          381681664 bytes
    Redo Buffers                5763072 bytes
    Database mounted.
    Database opened.
    SQL> 

    SQL> create spfile from pfile; --从spfile创建新的pfile文件
    File created.
    SQL> 

    *********************************

    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup;     
    ORACLE instance started.
    Total System Global Area 1023004672 bytes
    Fixed Size                  2219752 bytes
    Variable Size             633340184 bytes
    Database Buffers          381681664 bytes
    Redo Buffers                5763072 bytes
    Database mounted.
    Database opened.
    SQL> 

    ==============

    还有另外一个报错如下:

    ORA-00371: not enough shared pool memory, should be atleast xxxxx bytes

    也可以用同样的方法来处理。从init.ora初始化参数,或是pfile来startup。启动之后create spfile from pfile.

    参考资料:http://www.cnblogs.com/czjie/archive/2011/11/05/2237060.html

  • 相关阅读:
    python实现简单的百度翻译
    有趣的if循环
    用python代码模拟登录网站
    解决kali中的中文乱码问题
    基于linux下的NIST数字测试(下)——测试过程
    基于linux下的NIST数字测试(上)——安装过程
    2019-2020-20199135 《网络攻防实践》第3周作业
    2019-2020-20199135 《网络攻防实践》第2周作业
    2019-2020-20199135《网络攻防实践》第1周作业
    20199135网络攻防与实践作业
  • 原文地址:https://www.cnblogs.com/rusking/p/4325814.html
Copyright © 2011-2022 走看看