• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1270
  • Last Modified:

Listerner.ora configuration in Oracle 10g express

Hi, I have installed oracle 10g express. In control->Administation tools->services, I could see OracleXETNSListener is started. Besides OracleServiceXE is also started.

I could use sqlplus, but it does not work when I force it to use TCP. Toad does not work either. So listen.ora configuration must be wrong.

Can you point me why I am wrong?

My listener.ora configuration are as follows:

Listen.ora:

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = D:\oraclexe\app\oracle\product\10.2.0\server)
      (PROGRAM = extproc)
    )
    (SID_DESC =
      (SID_NAME = CLRExtProc)
      (ORACLE_HOME = D:\oraclexe\app\oracle\product\10.2.0\server)
      (PROGRAM = extproc)
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
      (ADDRESS = (PROTOCOL = TCP)(HOST = CZC7351HQK.accenture.com)(PORT = 1522))
    )
  )

DEFAULT_SERVICE_LISTENER = (XE)

And my tnsnames.ora are as follows:
XE =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = CZC7351HQK.accenture.com)(PORT = 1522))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = XE)
    )
  )

EXTPROC_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    )
    (CONNECT_DATA =
      (SID = PLSExtProc)
      (PRESENTATION = RO)
    )
  )

ORACLR_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    )
    (CONNECT_DATA =
      (SID = CLRExtProc)
      (PRESENTATION = RO)
    )
  )

0
JianJunShen
Asked:
JianJunShen
  • 4
  • 3
4 Solutions
 
schwertnerCommented:
Backup LISTENER.ORA file!!!!!!!

In ...\network\admin open listener.ora

see

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = D:\Ora10g)
      (PROGRAM = extproc)
    )
    (SID_DESC =
      (SID_NAME = test)
      (ORACLE_HOME = D:\Ora10g)
    )
  )

Add the entry
    (SID_DESC =
      (SID_NAME = test)
      (ORACLE_HOME = D:\Ora10g)
    )
with regard to the particular Oracle Home and SID Name.

Restart the listener:
c:>lsnrctl stop
c:>lsnctl start

Thats all.
0
 
JianJunShenAuthor Commented:
TNS-01150: The address of the specified listener name is incorrect

My listener.ora file is as follows:

SID_LIST_LISTENER =

(SID_LIST =

     (SID_DESC =
           (SID_NAME = PLSExtProc)
           (ORACLE_HOME = D:\oraclexe\app\oracle\product\10.2.0\server)
           (PROGRAM = extproc)
         )
     (SID_DESC =
          (SID_NAME = XE)
         (ORACLE_HOME = D:\oraclexe\app\oracle\product\10.2.0\server)
     )

)

LISTENER =

(DESCRIPTION_LIST =

(DESCRIPTION =

(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1522))

)

)

DEFAULT_SERVICE_LISTENER = (XE)
0
 
schwertnerCommented:
as you can see there were no empty rows in the
statements in the LISTENER.ORA.

Be very cautios editing such configuration files.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
JianJunShenAuthor Commented:
It still gives same error: TNS-01150: The address of the specified listener name is incorrect

Listener.ora:

SID_LIST_LISTENER =

(SID_LIST =

     (SID_DESC =
     
           (SID_NAME = PLSExtProc)
     
                   (ORACLE_HOME = D:\oraclexe\app\oracle\product\10.2.0\server)
     
                   (PROGRAM = extproc)
                   
         )
         
     (SID_DESC =
     
          (SID_NAME = XE)
     
          (ORACLE_HOME = D:\oraclexe\app\oracle\product\10.2.0\server)
         
     )

)

LISTENER =

(DESCRIPTION_LIST =

(DESCRIPTION =

(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1522))

)

)

DEFAULT_SERVICE_LISTENER = (XE)

tnsnames.ora

XE =
  (DESCRIPTION =
 
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1522))
 
     (CONNECT_DATA =
 
      (SERVER = DEDICATED)
 
      (SERVICE_NAME = XE)
 
     )
 
  )

EXTPROC_CONNECTION_DATA =
 
  (DESCRIPTION =
 
     (ADDRESS_LIST =
 
        (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
 
     )
 
     (CONNECT_DATA =
 
        (SID = PLSExtProc)
 
        (PRESENTATION = RO)

    )

  )



0
 
schwertnerCommented:
I have said something!

TNSNAMES. doesn't take place in this issue.

Comp[are your posting from 06.23.2008 at 08:21AM EEST
and 06.23.2008 at 01:34PM EEST!!!
What are doing these empty rows between the lines?
Restore LISTENER.ORA, see if it works and
begin to edit it again,
0
 
JianJunShenAuthor Commented:
Sorry. What do you mean empty rows in the statements? Would you please copy and paste my configuration into file and send me email to JianJunShen@hotmail.com. Or Would you please list it in this cupboard. Thanks a lot!
0
 
schwertnerCommented:
All rows (and many others) marked with ????????????
are empty lines. Empty lines are not allowed
in the statements of the listener.ora.

XE =
  (DESCRIPTION =
????????????????  
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1522))
??????????????????????????/
     (CONNECT_DATA =
??????????????????????  
      (SERVER = DEDICATED)
???????????????????????
      (SERVICE_NAME = XE)
?????????????????????
     )
??????????????????????????
  )

EXTPROC_CONNECTION_DATA =
 
  (DESCRIPTION =
 
     (ADDRESS_LIST =
 
        (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
 
     )
 
     (CONNECT_DATA =
 
        (SID = PLSExtProc)
 
        (PRESENTATION = RO)

    )

  )
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now