Solved

Listerner.ora configuration in Oracle 10g express

Posted on 2008-06-22
7
1,228 Views
Last Modified: 2013-12-18
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
Comment
Question by:JianJunShen
  • 4
  • 3
7 Comments
 
LVL 47

Accepted Solution

by:
schwertner earned 500 total points
ID: 21844554
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
 

Author Comment

by:JianJunShen
ID: 21844722
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
 
LVL 47

Assisted Solution

by:schwertner
schwertner earned 500 total points
ID: 21844779
as you can see there were no empty rows in the
statements in the LISTENER.ORA.

Be very cautios editing such configuration files.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:JianJunShen
ID: 21844831
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
 
LVL 47

Assisted Solution

by:schwertner
schwertner earned 500 total points
ID: 21845292
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
 

Author Comment

by:JianJunShen
ID: 21845415
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
 
LVL 47

Assisted Solution

by:schwertner
schwertner earned 500 total points
ID: 21845436
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now