listener configuration

I have two instances running on the same server. One instance is 10gR2 and one instance is 11G. I cannot get the listener.ora file to work properly to allow the listener to work for both.

Host: mcmichaelb-d630
Instances:
- WM10GR2
- WM11G

See code snippet.

Questions:
Can one listener work for two instances?
What is the format for the listener.ora file?
TNSNAMES
------------------------
TNSNAMES.ORA
WM11G.MCMICHAELB-D630 = 
  (DESCRIPTION = 
    (ADDRESS_LIST = 
      (ADDRESS = 
        (PROTOCOL = TCP)
        (HOST = mcmichaelb-d630)
        (PORT = 1521)
      )
    )
    (CONNECT_DATA = 
      (SERVICE_NAME = WM11G)
      (SRVR = dedicated)
    )
  )
  
WM10GR2.MCMICHAELB-D630 = 
  (DESCRIPTION = 
    (ADDRESS_LIST = 
      (ADDRESS = 
        (PROTOCOL = TCP)
        (HOST = mcmichaelb-d630)
        (PORT = 1521)
      )
    )
    (CONNECT_DATA = 
      (SERVICE_NAME = WM10GR2)
      (SRVR = dedicated)
    )
  )
 
 
------------------------
LISTENER.ORA
------------------------
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = mcmichaelb-d630.AME.ad.sag)(PORT = 1521)(QUEUESIZE=8))
)
 
LISTENER_11G =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = mcmichaelb-d630.AME.ad.sag)(PORT = 1522)(QUEUESIZE=8))
)
 
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = mcmichaelb-d630.AME.ad.sag)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
(SID_NAME = WM10GR2)
)
)
SID_LIST_LISTENER_11G =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = mcmichaelb-d630.AME.ad.sag)
(ORACLE_HOME = C:\oracle\product\11.1.0\db_1)
(SID_NAME = WM11G)
)
)
------------------------

Open in new window

mbevilacquaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ritesh_GargCommented:
I don't think you can have a common listener file.  The listener service executable LSNRCTL are different versions for these database, and when you would try to start the service, LSNRCTL would try to start both for 10g and 11g.
Any specific reason why you are trying to keep a common listener.ora file?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mark GeerlingsDatabase AdministratorCommented:
Your listener.ora file should have only one of each of the following sections:
LISTENER =
SID_LIST_LISTENER =
(SID_LIST =

with multiple
(SID_DESC =
sections in the one (SID_LIST = ...) section

Here is an example (from an Oracle9 server where one of the "databases" was a non-Oracle ODBC-based data source, but the same syntax rules apply):

# LISTENER.ORA Network Configuration File: H:\ora_920\network\admin\listener.ora
# Generated by Oracle configuration tools.
 
LOG_DIRECTORY_LISTENER = G:\Trace\system
 
LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
      )
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = TCP)(HOST = zs51-oradb1)(PORT = 1521))
      )
    )
  )
 
SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = H:\ora_920)
      (PROGRAM = extproc)
    )
    (SID_DESC =
      (SID_NAME = CONX)
      (ORACLE_HOME = H:\Ora_920)
      (PROGRAM = hsodbc)
    )
    (SID_DESC =
      (GLOBAL_DBNAME = PROD.GENTEX.COM)
      (ORACLE_HOME = H:\ora_920)
      (SID_NAME = PROD)
    )
  )

Open in new window

0
Mark GeerlingsDatabase AdministratorCommented:
Sure, the listener executables are different in each Oracle version, but the higher version listener can support an Oracle database of at least one version earlier.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.