Oracle listener not running and won't start

后端 未结 14 1182
野趣味
野趣味 2021-02-01 05:31

I am getting the following errors while from the lsnrctl status command:

C:\\Users\\pna105>lsnrctl stat

 LSNRCTL for 64-bit Windows: Version 11.         


        
14条回答
  •  一向
    一向 (楼主)
    2021-02-01 06:27

    I managed to resolve the issue that caused the configuration to fail on a docker container running the Hortonworks HDP 2.6 Sandbox.

    If the initial configuration fails the listener will be running and will have to be killed first:

    ps -aux | grep tnslsnr
    kill {process id identified above}
    

    Then next step is then to fix the shared memory issue which makes the configuration process fail.

    Oracle XE requires 1 Gb of shared memory and fails otherwise (I didn't try 512 mb) according to https://blogs.oracle.com/oraclewebcentersuite/implement-oracle-database-xe-as-docker-containers.

    vi /etc/fstab
    

    change/add the line to:

    tmpfs    /dev/shm     tmpfs   defaults,size=1024m 0 0
    

    Then reload the configuration by:

    mount -a
    

    Keep in mind that the next time you restart the docker container you might have to do 'mount -a'.

提交回复
热议问题