Настройка слушателя Oracle в OpenSuse Leap 15.0 - PullRequest
0 голосов
/ 22 сентября 2019

Возникли проблемы с установкой Oracle XE 18c в OpenSuse Leap 15.0 ... При запуске сценария конфигурации:

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: имя или служба не известны

Так значит ли это, что мне нужно настроить localhost?Если это уже нет?Я, честно говоря, в значительной степени потерян здесь.Любой совет с благодарностью.

1 Ответ

0 голосов
/ 23 сентября 2019

Я смог ответить на свой вопрос.Читая эту страницу из Документов Oracle в разделе Сеть , я отредактировал мой файл / etc / hosts, как было предложено, добавив свое имя хоста.Сначала я не добавил его в столбец Short-Hostname, и это не сработало.Однако, вернувшись назад и добавив его туда, сработало.

Так вот так:

В терминале, если вывод

hostname

был tomtom

тогда мой /etc/host файл выглядел следующим образом в конкретной применимой части:

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

Надеюсь, этот ответ поможет всем, кто сталкивается с этой проблемой.

...