Solved

Listerner.ora configuration in Oracle 10g express

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Clone Oracle 12c Database 5 52
Determine Who is Runnig my Bash Shell Script 4 80
Can i Import Access Table Into Oracle Using Toad 36 170
SQL query question 8 73
Article by: Swadhin
From the Oracle SQL Reference (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries006.htm) we are told that a join is a query that combines rows from two or more tables, views, or materialized views. This article provides a glimps…
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
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 explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

776 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