Change the Hostname the Listener has been Configured with from Fully Qualified Domain Name to Localhost



Changing  the Hostname the Listener has been Configured 
During the installation of E1Local instance on a Development Client, the listener is configured to listen on the hostname or Fully Qualified Domain Name (FQDN). Everything works fine on Development Client, but it is required to secure the inbound communication on Development Client and allow inbound connections only for localhost and exclude the communication using hostname or Fully Qualified Domain Name.

In order to change the hostname the Listener was configured with during the E1Local installation on a Development Client, please follow the below action plan:
  1. Open a command prompt and change directory to E1Local\Bin folder
  2. Open a second command prompt and change directory to E1Local\Bin
  3. Connect to E1Local with the below command. Before this make sure that in sqlnet.ora, SQLNET.AUTHENTICATION_SERVICES=(NTS) is set.
    sqlplus / as sysdba

  4. Stop the listener with:
    lsnrctl stop
     
  5. In listener.ora, change the hostname from Hostname or FQDN to localhost
  6. Start the listener with below command and check the status.
    lsnrctl start

    It should show no instances yet.
  7. In tnsnames.ora change the listener name from E1LOCAL to LISTENER (as appears in listener.ora)
  8. In SQL prompt window run
    ALTER SYSTEM SET LOCAL_LISTENER='LISTENER';

  9. Check if the parameter has been changed with
    SHOW PARAMETER LOCAL_LISTENER;

  10. In the SQL command prompt window run:
    shutdown immediate

    This will stop the E1Local instance
  11. Restart the listener by running the below commands:
    lsnrctl stop

    and then
    lsnrctl start

  12. Start the E1Local instance
  13. Check the status of the instance with:
    lsnrctl status
source: Oracle KM Doc.

Comments

Popular posts from this blog

Oracle Cloud Infrastructure(OCI) - Part2

Script to display the SQL text for a specific SQL_ID

How to Change Your EnterpriseOne Environment Color