Solved

Listerner.ora configuration in Oracle 10g express

Posted on 2008-06-22
7
1,234 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 48

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 48

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 48

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 48

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

820 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