【问题标题】:Configuring Oracle Listener in OpenSuse Leap 15.0在 OpenSuse Leap 15.0 中配置 Oracle 监听器
【发布时间】:2019-09-22 16:20:54
【问题描述】:

在 OpenSuse Leap 15.0 上安装 Oracle XE 18c 时遇到问题...运行配置脚本时:

joshua@linux-t1zu:~> sudo /etc/init.d/oracle-xe-18c configure
[sudo] password for root: 
/bin/df: unrecognized option '--direct'
Try '/bin/df --help' for more information.
Specify a password to be used for database accounts. Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9]. Note that the same password will be used for SYS, SYSTEM and PDBADMIN accounts:
Confirm the password:
Configuring Oracle Listener.
Listener configuration failed. Check log '/opt/oracle/cfgtoollogs/netca/netca_configure_out.log' for more details.

这里是内容

/opt/oracle/cfgtoollogs/netca/netca_configure_out.log

joshua@linux-t1zu:~> cat /opt/oracle/cfgtoollogs/netca/netca_configure_out.log 

Parsing command line arguments:
    Parameter "orahome" = /opt/oracle/product/18c/dbhomeXE
    Parameter "instype" = typical
    Parameter "inscomp" = client,oraclenet,javavm,server,ano
    Parameter "insprtcl" = tcp
    Parameter "cfg" = local
    Parameter "authadp" = NO_VALUE
    Parameter "responsefile" = /opt/oracle/product/18c/dbhomeXE/network/install/netca_typ.rsp
    Parameter "silent" = true
    Parameter "orahnam" = OraHomeXE
    Parameter "listenerparameters" = DEFAULT_SERVICE=XE
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Host name or host name resolution is misconfigured.
linux-t1zu: linux-t1zu: Name or service not known
Check the trace file for details: /opt/oracle/cfgtoollogs/netca/trace_OraHomeXE-1909219PM0220.log
Oracle Net Services configuration failed.  The exit code is 1

Parsing command line arguments:
    Parameter "orahome" = /opt/oracle/product/18c/dbhomeXE
    Parameter "instype" = typical
    Parameter "inscomp" = client,oraclenet,javavm,server,ano
    Parameter "insprtcl" = tcp
    Parameter "cfg" = local
    Parameter "authadp" = NO_VALUE
    Parameter "responsefile" = /opt/oracle/product/18c/dbhomeXE/network/install/netca_typ.rsp
    Parameter "silent" = true
    Parameter "orahnam" = OraHomeXE
    Parameter "listenerparameters" = DEFAULT_SERVICE=XE
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Host name or host name resolution is misconfigured.
linux-t1zu: linux-t1zu: Name or service not known
Check the trace file for details: /opt/oracle/cfgtoollogs/netca/trace_OraHomeXE-1909219PM1730.log
Oracle Net Services configuration failed.  The exit code is 1

Parsing command line arguments:
    Parameter "orahome" = /opt/oracle/product/18c/dbhomeXE
    Parameter "instype" = typical
    Parameter "inscomp" = client,oraclenet,javavm,server,ano
    Parameter "insprtcl" = tcp
    Parameter "cfg" = local
    Parameter "authadp" = NO_VALUE
    Parameter "responsefile" = /opt/oracle/product/18c/dbhomeXE/network/install/netca_typ.rsp
    Parameter "silent" = true
    Parameter "orahnam" = OraHomeXE
    Parameter "listenerparameters" = DEFAULT_SERVICE=XE
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Host name or host name resolution is misconfigured.
linux-t1zu: linux-t1zu: Name or service not known
Check the trace file for details: /opt/oracle/cfgtoollogs/netca/trace_OraHomeXE-1909219PM1809.log
Oracle Net Services configuration failed.  The exit code is 1

Parsing command line arguments:
    Parameter "orahome" = /opt/oracle/product/18c/dbhomeXE
    Parameter "instype" = typical
    Parameter "inscomp" = client,oraclenet,javavm,server,ano
    Parameter "insprtcl" = tcp
    Parameter "cfg" = local
    Parameter "authadp" = NO_VALUE
    Parameter "responsefile" = /opt/oracle/product/18c/dbhomeXE/network/install/netca_typ.rsp
    Parameter "silent" = true
    Parameter "orahnam" = OraHomeXE
    Parameter "listenerparameters" = DEFAULT_SERVICE=XE
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Oracle Net Listener Startup:
No valid IP Address returned for the host linux-t1zu.
Check the trace file for details: /opt/oracle/cfgtoollogs/netca/trace_OraHomeXE-1909219PM2132.log
Oracle Net Services configuration failed.  The exit code is 1

Parsing command line arguments:
    Parameter "orahome" = /opt/oracle/product/18c/dbhomeXE
    Parameter "instype" = typical
    Parameter "inscomp" = client,oraclenet,javavm,server,ano
    Parameter "insprtcl" = tcp
    Parameter "cfg" = local
    Parameter "authadp" = NO_VALUE
    Parameter "responsefile" = /opt/oracle/product/18c/dbhomeXE/network/install/netca_typ.rsp
    Parameter "silent" = true
    Parameter "orahnam" = OraHomeXE
    Parameter "listenerparameters" = DEFAULT_SERVICE=XE
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Host name or host name resolution is misconfigured.
linux-t1zu: linux-t1zu: Name or service not known
Check the trace file for details: /opt/oracle/cfgtoollogs/netca/trace_OraHomeXE-1909219PM2548.log
Oracle Net Services configuration failed.  The exit code is 1

Parsing command line arguments:
    Parameter "orahome" = /opt/oracle/product/18c/dbhomeXE
    Parameter "instype" = typical
    Parameter "inscomp" = client,oraclenet,javavm,server,ano
    Parameter "insprtcl" = tcp
    Parameter "cfg" = local
    Parameter "authadp" = NO_VALUE
    Parameter "responsefile" = /opt/oracle/product/18c/dbhomeXE/network/install/netca_typ.rsp
    Parameter "silent" = true
    Parameter "orahnam" = OraHomeXE
    Parameter "listenerparameters" = DEFAULT_SERVICE=XE
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Host name or host name resolution is misconfigured.
linux-t1zu: linux-t1zu: Name or service not known
Check the trace file for details: /opt/oracle/cfgtoollogs/netca/trace_OraHomeXE-1909226AM3717.log
Oracle Net Services configuration failed.  The exit code is 1

Parsing command line arguments:
    Parameter "orahome" = /opt/oracle/product/18c/dbhomeXE
    Parameter "instype" = typical
    Parameter "inscomp" = client,oraclenet,javavm,server,ano
    Parameter "insprtcl" = tcp
    Parameter "cfg" = local
    Parameter "authadp" = NO_VALUE
    Parameter "responsefile" = /opt/oracle/product/18c/dbhomeXE/network/install/netca_typ.rsp
    Parameter "silent" = true
    Parameter "orahnam" = OraHomeXE
    Parameter "listenerparameters" = DEFAULT_SERVICE=XE
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Host name or host name resolution is misconfigured.
linux-t1zu: linux-t1zu: Name or service not known
Check the trace file for details: /opt/oracle/cfgtoollogs/netca/trace_OraHomeXE-19092210AM0711.log
Oracle Net Services configuration failed.  The exit code is 1

Parsing command line arguments:
    Parameter "orahome" = /opt/oracle/product/18c/dbhomeXE
    Parameter "instype" = typical
    Parameter "inscomp" = client,oraclenet,javavm,server,ano
    Parameter "insprtcl" = tcp
    Parameter "cfg" = local
    Parameter "authadp" = NO_VALUE
    Parameter "responsefile" = /opt/oracle/product/18c/dbhomeXE/network/install/netca_typ.rsp
    Parameter "silent" = true
    Parameter "orahnam" = OraHomeXE
    Parameter "listenerparameters" = DEFAULT_SERVICE=XE
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Host name or host name resolution is misconfigured.
linux-t1zu: linux-t1zu: Name or service not known
Check the trace file for details: /opt/oracle/cfgtoollogs/netca/trace_OraHomeXE-19092210AM1138.log
Oracle Net Services configuration failed.  The exit code is 1

Parsing command line arguments:
    Parameter "orahome" = /opt/oracle/product/18c/dbhomeXE
    Parameter "instype" = typical
    Parameter "inscomp" = client,oraclenet,javavm,server,ano
    Parameter "insprtcl" = tcp
    Parameter "cfg" = local
    Parameter "authadp" = NO_VALUE
    Parameter "responsefile" = /opt/oracle/product/18c/dbhomeXE/network/install/netca_typ.rsp
    Parameter "silent" = true
    Parameter "orahnam" = OraHomeXE
    Parameter "listenerparameters" = DEFAULT_SERVICE=XE
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Host name or host name resolution is misconfigured.
linux-t1zu: linux-t1zu: Name or service not known
Check the trace file for details: /opt/oracle/cfgtoollogs/netca/trace_OraHomeXE-19092210AM2244.log
Oracle Net Services configuration failed.  The exit code is 1

Parsing command line arguments:
    Parameter "orahome" = /opt/oracle/product/18c/dbhomeXE
    Parameter "instype" = typical
    Parameter "inscomp" = client,oraclenet,javavm,server,ano
    Parameter "insprtcl" = tcp
    Parameter "cfg" = local
    Parameter "authadp" = NO_VALUE
    Parameter "responsefile" = /opt/oracle/product/18c/dbhomeXE/network/install/netca_typ.rsp
    Parameter "silent" = true
    Parameter "orahnam" = OraHomeXE
    Parameter "listenerparameters" = DEFAULT_SERVICE=XE
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Host name or host name resolution is misconfigured.
linux-t1zu: linux-t1zu: Name or service not known
Check the trace file for details: /opt/oracle/cfgtoollogs/netca/trace_OraHomeXE-19092210AM2635.log
Oracle Net Services configuration failed.  The exit code is 1

Parsing command line arguments:
    Parameter "orahome" = /opt/oracle/product/18c/dbhomeXE
    Parameter "instype" = typical
    Parameter "inscomp" = client,oraclenet,javavm,server,ano
    Parameter "insprtcl" = tcp
    Parameter "cfg" = local
    Parameter "authadp" = NO_VALUE
    Parameter "responsefile" = /opt/oracle/product/18c/dbhomeXE/network/install/netca_typ.rsp
    Parameter "silent" = true
    Parameter "orahnam" = OraHomeXE
    Parameter "listenerparameters" = DEFAULT_SERVICE=XE
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Host name or host name resolution is misconfigured.
linux-t1zu: linux-t1zu: Name or service not known
Check the trace file for details: /opt/oracle/cfgtoollogs/netca/trace_OraHomeXE-19092210AM4045.log
Oracle Net Services configuration failed.  The exit code is 1

Parsing command line arguments:
    Parameter "orahome" = /opt/oracle/product/18c/dbhomeXE
    Parameter "instype" = typical
    Parameter "inscomp" = client,oraclenet,javavm,server,ano
    Parameter "insprtcl" = tcp
    Parameter "cfg" = local
    Parameter "authadp" = NO_VALUE
    Parameter "responsefile" = /opt/oracle/product/18c/dbhomeXE/network/install/netca_typ.rsp
    Parameter "silent" = true
    Parameter "orahnam" = OraHomeXE
    Parameter "listenerparameters" = DEFAULT_SERVICE=XE
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Host name or host name resolution is misconfigured.
linux-t1zu: linux-t1zu: Name or service not known
Check the trace file for details: /opt/oracle/cfgtoollogs/netca/trace_OraHomeXE-19092210AM4142.log
Oracle Net Services configuration failed.  The exit code is 1

Parsing command line arguments:
    Parameter "orahome" = /opt/oracle/product/18c/dbhomeXE
    Parameter "instype" = typical
    Parameter "inscomp" = client,oraclenet,javavm,server,ano
    Parameter "insprtcl" = tcp
    Parameter "cfg" = local
    Parameter "authadp" = NO_VALUE
    Parameter "responsefile" = /opt/oracle/product/18c/dbhomeXE/network/install/netca_typ.rsp
    Parameter "silent" = true
    Parameter "orahnam" = OraHomeXE
    Parameter "listenerparameters" = DEFAULT_SERVICE=XE
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Host name or host name resolution is misconfigured.
linux-t1zu: linux-t1zu: Name or service not known
Check the trace file for details: /opt/oracle/cfgtoollogs/netca/trace_OraHomeXE-19092210AM4810.log
Oracle Net Services configuration failed.  The exit code is 1

我看到它首先说的是

主机名或主机名解析配置错误。 linux-t1zu: linux-t1zu: 名称或服务未知

这是否意味着我需要配置本地主机?如果它已经不是? 老实说,我在这里迷路了。非常感谢任何建议。

【问题讨论】:

    标签: opensuse oracle18c


    【解决方案1】:

    我能够回答我自己的问题。 阅读this page from the Oracle Docs in the Networking section,我按照建议编辑了我的 /etc/hosts 文件,添加了我的主机名。起初,我没有将它添加到Short-Hostname 列中,这不起作用。但是,返回并添加它是有效的。

    像这样:

    在终端,如果输出

    hostname
    

    tomtom

    然后我的/etc/host 文件在特定的适用部分看起来像这样:

        # IP-Address  Full-Qualified-Hostname  Short-Hostname
        #
        127.0.0.1         tomtom                   tomtom
    

    希望这个答案能帮助其他面临这个问题的人。

    【讨论】:

    • 这正好解决了我的问题。您会认为 Oracle 能够给出诸如“必须设置主机名”之类的错误消息,而不是崩溃。也可能不是。
    猜你喜欢
    • 2020-02-02
    • 2019-01-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-12-04
    • 2019-07-23
    • 2017-03-02
    • 2019-03-26
    相关资源
    最近更新 更多