0

在过去的 2 天里,我一直在尝试在 Oracle Linux 6 中配置 Oracle DB 11g。它已成功安装,但我无法创建数据库。我已经创建了监听器和 tnsnames 并尝试使用以下命令启动数据库:

    sqlplus /nolog   
    connect / as sysdba   
    startup

我收到以下错误:

    ORA-00119: invalid specification for system parameter LOCAL_LISTENER
    ORA-00130: invalid listener address '(ADDRESS=(PROTOCOL=TCP)(HOST=beta)(PORT=1521))' 

这是我的监听器和 tnsnames 配置:

监听器.ora:

    SID_LIST_LISTENER =
     (SID_LIST =
       (SID_DESC =
         (SID_NAME = orcl)
         (ORACLE_HOME = /home/oracle/app/oracle/product/11.2.0/oracle)
       )
     )
    SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER=OFF

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

    ADR_BASE_ORCL = /home/oracle/app/oracle

tnsnames.ora:

    ORCL =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        )
        (CONNECT_DATA =
          (SERVICE_NAME = orcl)
        )
      )

有任何想法吗?

4

3 回答 3

0

Did you set your environment variables up per the installation instructions? In particular, you'll need ORACLE_SID, ORACLE_BASE, ORACLE_UNQNAME, ORACLE_HOME (remember that case is significant on Linux). Also, if you didn't create a database as part of the installation, you'll need to run the database creation assistant (dbca).

于 2013-03-10T19:25:04.723 回答
0

我只需要一个用于开发目的的环境,所以我从 Oracle 站点下载了一个模板 VM,并使用 Virtual Box 进行了实例化。模板已配置,它的数据库运行正常。

于 2013-03-15T13:42:57.510 回答
0

Oracle 查找“beta”主机名,并且您的所有设置都指向 localhost。尝试添加一个条目

/etc/hosts

使用以下行:

127.0.0.1 beta

并尝试再次启动它

于 2016-09-22T10:19:35.840 回答