Solved

Listerner.ora configuration in Oracle 10g express

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database

932 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

10 Experts available now in Live!

Get 1:1 Help Now