A new Flexera Community experience is coming on November 25th. Click here for more information.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Summary

The Oracle listener.ora file, used when setting up Oracle discovery, has two possible syntax issues

Synopsis

Existence of any of the following issues in a listener.ora file may result in the Oracle discovery failing to work as expected.


Discussion

Comments

Comments need to be placed on their own line, not appended to the end of a configuration.

Good

# Comment 1
LISTENER_NAME1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN3))))
# Comment 2
LISTENER_NAME2=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN2))))


Bad

LISTENER_NAME1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN3))))   # comment 1

LISTENER_NAME2=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN2))))   # comment 2


Incorrect Bracketing Syntax

The number of brackets needs to be correct for the file to be handled correctly.

One too many brackets

LISTENER_NAME1=
   (DESCRIPTION=
      (ADDRESS_LIST=
         (ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN3))
      )
   ))

Two too many brackets

LISTENER_NAME2=
   (DESCRIPTION=
      (ADDRESS_LIST=
         (ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN3))
      )
   )))

One too few brackets

LISTENER_NAME3=
   (DESCRIPTION=
      (ADDRESS_LIST=
         (ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN3))
      )
   )

or

LISTENER_NAME1=
   (DESCRIPTION=
      (ADDRESS_LIST=
         (ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN3))
      )
LISTENER_NAME2=
   (DESCRIPTION=
      (ADDRESS_LIST=
         (ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN3))
      )
   )


Was this article helpful? Yes No
No ratings
Version history
Last update:
‎Jan 31, 2019 11:24 PM
Updated by: