The Listener
Hi
I am calling functions from .so files from the Developer PL/SQL. These .so files are on the database server. How do I set the LD_LIBRARY_PATH for the extproc listener? Or Is there anotherway to tell the listener to tell the place of the library files.
PS. The first library path and file name is specified with absolute path in the create command.
Help Please
Regards
Santosh
That is normal, because the instance will register itself with the listener when an actual connection request is made. That is the automatic-registration feature of oracle.
Alternatively, you can add a SID_LIST_LISTENER (or was that SID_LISTENER_LIST?) entry to your listener.ora, so that you will get "the listener supports the following services" automatically after you startup the listener.
null
Similar Messages
-
PRTMessageListenerException: The listener does not exist
Hi All,
We are running EP 7.0 NWO4s on Windows 2003. When the user log on to the portal with the valid qualified URL geting an " 500 Internal Server error with java.lang.null pointer exception message" Before the restart of the server every user able to access the portal properly. But after the restart of the server we are facing this problem. Few months back also we faced the same problem but it is fixed automitically in our next restart of our server. But this time even though how many times we are restarting of the server still the problem exists.
1. The Server is up and running
2. All the J2EE process are running properly
3. Oracle database is up and running
On the Defaulttrace file we noticed few exceptions
com.sap.portal.prt.sapj2ee.api.clustercommunication.exceptions.PRTMessageListenerException: The listener does not exist !
com.sap.engine.services.servlets_jsp.server.exceptions.WebUnavailableException: Servlet prt is currently unavailable.
Timeout Service Synchronous Internal Thread: javax.management.InstanceNotFoundException
Processing HTTP request to servlet gateway finished with error.The error is: java.lang.NullPointerException: null
Caused by: javax.servlet.UnavailableException: Initialization of Dispatcher failed
Defaulttrace file Information:
#1.5#00188B874AFD002100000505000023E80004474C5F840A13#1204293252562#
com.sap.engine.services.monitor.common.Template##com.sap.engine.services.monitor.common.Template######
a68a3f70e4d411dcc2e100188b874afd#Timeout Service Synchronous Internal Thread##0#0#Warning##Plain###
javax.management.InstanceNotFoundException: com.sap.default:name=ComponentRuntimeMBean,
SAP_J2EEApplicationPerNode=sap.com/com.sap.netweaver.bc.rf.moni,j2eeType=SAP_ApplicationResourcePerNode,
SAP_J2EEClusterNode=18025994,SAP_J2EECluster=ANV not in repository
at com.sap.pj.jmx.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:1291)
at com.sap.pj.jmx.server.interceptor.MBeanServerWrapperInterceptor.getAttribute(MBeanServerWrapperInterceptor.java:181)
at com.sap.engine.services.jmx.CompletionInterceptor.getAttribute(CompletionInterceptor.java:309)
at com.sap.pj.jmx.server.interceptor.BasicMBeanServerInterceptor.getAttribute(BasicMBeanServerInterceptor.java:169)
at com.sap.jmx.provider.ProviderInterceptor.getAttribute(ProviderInterceptor.java:195)
at com.sap.engine.services.jmx.RedirectInterceptor.getAttribute(RedirectInterceptor.java:232)
at com.sap.pj.jmx.server.interceptor.MBeanServerInterceptorChain.getAttribute(MBeanServerInterceptorChain.java:124)
at com.sap.engine.services.jmx.MBeanServerSecurityWrapper.getAttribute(MBeanServerSecurityWrapper.java:234)
at com.sap.engine.services.jmx.ClusterInterceptor.getAttribute(ClusterInterceptor.java:522)
at com.sap.pj.jmx.server.interceptor.MBeanServerInterceptorChain.getAttribute(MBeanServerInterceptorChain.java:124)
at com.sap.engine.services.monitor.mbeans.Template.pollDynamicData(Template.java:891)
at com.sap.engine.services.monitor.mbeans.Template.handleNotification(Template.java:847)
at com.sap.engine.services.jmx.server.AscynchronousProxyListener.handleNotification(AscynchronousProxyListener.java:51)
at javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:94)
at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:61)
at com.sap.engine.services.jmx.timer.j2ee.Timer.sendTimerNotification(Timer.java:432)
at com.sap.engine.services.jmx.timer.j2ee.TimerNotificationEntry.timeout(TimerNotificationEntry.java:69)
at com.sap.engine.services.timeout.TimeoutNode.synchronousRun(TimeoutNode.java:72)
at com.sap.engine.services.timeout.TimeoutManagerImpl.singleThreadRun(TimeoutManagerImpl.java:632)
at com.sap.engine.services.timeout.TimeoutManagerRunner.run(TimeoutManagerRunner.java:18)
at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:79)
at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:150)
#1.5#00188B874AFD00610000000A000023E80004474C946ED4C0#1204294140410#com.sap.engine.services.prtbridge##
com.sap.engine.services.prtbridge######b8f36600e65511dc9d3000188b874afd#SAPEngine_System_Threadimpl:5
_105##0#0#Error#1#/System/Server#Java###An Error has been occured during PRTBridge operation
EXCEPTION
#1#
com.sap.portal.prt.sapj2ee.api.clustercommunication.exceptions.PRTMessageListenerException: The listener does not exist !
(NotificationSAPJ2EE630)
at com.sap.portal.prt.sapj2ee.core.clustercommunication.MessageContextWrapper.distributeMessage(MessageContextWrapper.java:373)
at com.sap.portal.prt.sapj2ee.bridge.PRTBridgeAccessor.distributeMessage(PRTBridgeAccessor.java:228)
at com.sap.portal.prt.bridge.service.managers.PRTBridgeCommunicationManager.receive(PRTBridgeCommunicationManager.java:568)
at com.sap.engine.core.service630.context.cluster.message.MessageListenerWrapper.process(MessageListenerWrapper.java:126)
at com.sap.engine.core.cluster.impl6.ms.MSMessageQueue.process(MSMessageQueue.java:77)
at com.sap.engine.core.cluster.impl6.ms.MSMessageThread.run(MSMessageThread.java:37)
at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:79)
at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:150)
#1.5#00188B874AFD003500000030000023E8000447700BC25D6F#1204446466108#
com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#
sap.com/irj#com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl#
Guest#2####8920f6c0e83211dc960400188b874afd#SAPEngine_Application_Threadimpl:3_4
##0#0#Error#1#/System/Server/WebRequests#Plain###
Processing HTTP request to servlet gateway finished with error.
The error is: java.lang.NullPointerException: null
Exception id: 00188B874AFD00350000002E000023E8000447700BC25C4C#
#1.5#00188B874AFD00560000003E000023E8000447700C764EBA#1204446477889#System.err#sap.com/irj#System.err#Guest#2####90290b10e83211dccc4800188b874afd#SAPEngine_Application_Threadimpl:3_11##0#0#Error##Plain###com.sapportals.portal.prt.dispatcher.DispatcherException: Previous dispatcher initialization failed. Check logs for details.#
#1.5#00188B874AFD00560000003F000023E8000447700C76505A#1204446477889#System.err#sap.com/irj#System.err#Guest#2####90290b10e83211dccc4800188b874afd#SAPEngine_Application_Threadimpl:3_11##0#0#Error##Plain### at com.sapportals.portal.prt.dispatcher.Dispatcher.initDispatcher(Dispatcher.java:257)#
#1.5#00188B874AFD005600000040000023E8000447700C76509D#1204446477889#System.err#sap.com/irj#System.err#Guest#2####90290b10e83211dccc4800188b874afd#SAPEngine_Application_Threadimpl:3_11##0#0#Error##Plain### at com.sapportals.portal.prt.dispatcher.Dispatcher.initDispatcher(Dispatcher.java:213)#
#1.5#00188B874AFD005600000041000023E8000447700C7650DA#1204446477889#System.err#sap.com/irj#System.err#Guest#2####90290b10e83211dccc4800188b874afd#SAPEngine_Application_Threadimpl:3_11##0#0#Error##Plain### at com.sapportals.portal.prt.dispatcher.Dispatcher.access$300(Dispatcher.java:42)#
#1.5#00188B874AFD005600000042000023E8000447700C765116#1204446477889#System.err#sap.com/irj#System.err#Guest#2####90290b10e83211dccc4800188b874afd#SAPEngine_Application_Threadimpl:3_11##0#0#Error##Plain### at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:437)#
#1.5#00188B874AFD005600000043000023E8000447700C765151#1204446477889#System.err#sap.com/irj#System.err#Guest#2####90290b10e83211dccc4800188b874afd#SAPEngine_Application_Threadimpl:3_11##0#0#Error##Plain### at java.security.AccessController.doPrivileged(Native Method)#
#1.5#00188B874AFD005600000044000023E8000447700C765192#1204446477889#System.err#sap.com/irj#System.err#Guest#2####90290b10e83211dccc4800188b874afd#SAPEngine_Application_Threadimpl:3_11##0#0#Error##Plain### at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)#
#1.5#00188B874AFD005600000045000023E8000447700C7651CE#1204446477889#System.err#sap.com/irj#System.err#Guest#2####90290b10e83211dccc4800188b874afd#SAPEngine_Application_Threadimpl:3_11##0#0#Error##Plain### at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)#
#1.5#00188B874AFD005600000046000023E8000447700C765209#1204446477889#System.err#sap.com/irj#System.err#Guest#2####90290b10e83211dccc4800188b874afd#SAPEngine_Application_Threadimpl:3_11##0#0#Error##Plain### at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)#
#1.5#00188B874AFD005600000047000023E8000447700C765247#1204446477889#System.err#sap.com/irj#System.err#Guest#2####90290b10e83211dccc4800188b874afd#SAPEngine_Application_Threadimpl:3_11##0#0#Error##Plain### at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)#
#1.5#00188B874AFD005600000048000023E8000447700C765282#1204446477889#System.err#sap.com/irj#System.err#Guest#2####90290b10e83211dccc4800188b874afd#SAPEngine_Application_Threadimpl:3_11##0#0#Error##Plain### at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)#
#1.5#00188B874AFD005600000049000023E8000447700C7652BF#1204446477889#System.err#sap.com/irj#System.err#Guest#2####90290b10e83211dccc4800188b874afd#SAPEngine_Application_Threadimpl:3_11##0#0#Error##Plain### at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)#
#1.5#00188B874AFD00560000004A000023E8000447700C7652FB#1204446477889#System.err#sap.com/irj#System.err#Guest#2####90290b10e83211dccc4800188b874afd#SAPEngine_Application_Threadimpl:3_11##0#0#Error##Plain### at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)#
#1.5#00188B874AFD00560000004B000023E8000447700C765338#1204446477889#System.err#sap.com/irj#System.err#Guest#2####90290b10e83211dccc4800188b874afd#SAPEngine_Application_Threadimpl:3_11##0#0#Error##Plain### at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)#
#1.5#00188B874AFD00560000004C000023E8000447700C765374#1204446477889#System.err#sap.com/irj#System.err#Guest#2####90290b10e83211dccc4800188b874afd#SAPEngine_Application_Threadimpl:3_11##0#0#Error##Plain### at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)#
#1.5#00188B874AFD00560000004D000023E8000447700C7653B6#1204446477889#System.err#sap.com/irj#System.err#Guest#2####90290b10e83211dccc4800188b874afd#SAPEngine_Application_Threadimpl:3_11##0#0#Error##Plain### at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)#
#1.5#00188B874AFD00560000004E000023E8000447700C7653F3#1204446477889#System.err#sap.com/irj#System.err#Guest#2####90290b10e83211dccc4800188b874afd#SAPEngine_Application_Threadimpl:3_11##0#0#Error##Plain### at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)#
#1.5#00188B874AFD00560000004F000023E8000447700C76542E#1204446477889#System.err#sap.com/irj#System.err#Guest#2####90290b10e83211dccc4800188b874afd#SAPEngine_Application_Threadimpl:3_11##0#0#Error##Plain### at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)#
#1.5#00188B874AFD005600000050000023E8000447700C76546A#1204446477889#System.err#sap.com/irj#System.err#Guest#2####90290b10e83211dccc4800188b874afd#SAPEngine_Application_Threadimpl:3_11##0#0#Error##Plain### at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)#
#1.5#00188B874AFD005600000051000023E8000447700C7654AA#1204446477889#System.err#sap.com/irj#System.err#Guest#2####90290b10e83211dccc4800188b874afd#SAPEngine_Application_Threadimpl:3_11##0#0#Error##Plain### at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)#
#1.5#00188B874AFD005600000052000023E8000447700C7654E8#1204446477889#System.err#sap.com/irj#System.err#Guest#2####90290b10e83211dccc4800188b874afd#SAPEngine_Application_Threadimpl:3_11##0#0#Error##Plain### at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)#
#1.5#00188B874AFD005600000053000023E8000447700C765522#1204446477889#System.err#sap.com/irj#System.err#Guest#2####90290b10e83211dccc4800188b874afd#SAPEngine_Application_Threadimpl:3_11##0#0#Error##Plain### at java.security.AccessController.doPrivileged(Native Method)#
#1.5#00188B874AFD005600000054000023E8000447700C76555C#1204446477889#System.err#sap.com/irj#System.err#Guest#2####90290b10e83211dccc4800188b874afd#SAPEngine_Application_Threadimpl:3_11##0#0#Error##Plain### at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)#
#1.5#00188B874AFD005600000055000023E8000447700C765598#1204446477889#System.err#sap.com/irj#System.err#Guest#2####90290b10e83211dccc4800188b874afd#SAPEngine_Application_Threadimpl:3_11##0#0#Error##Plain### at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)#
#1.5#00188B874AFD005600000056000023E8000447700C765C20#1204446477905#com.sap.engine.services.servlets_jsp.client.RequestInfoServer#sap.com/irj#com.sap.engine.services.servlets_jsp.client.RequestInfoServer#Guest#2####90290b10e83211dccc4800188b874afd#
SAPEngine_Application_Threadimpl:3_11##0#0#Error##Plain###
Processing HTTP request to servlet invoker finished with error.
The error is:
com.sap.engine.services.servlets_jsp.server.exceptions.WebUnavailableException: Servlet prt is currently unavailable.
at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:174)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Caused by: javax.servlet.UnavailableException: Initialization of Dispatcher failed
at com.sapportals.portal.prt.dispatcher.Dispatcher.initDispatcher(Dispatcher.java:371)
at com.sapportals.portal.prt.dispatcher.Dispatcher.initDispatcher(Dispatcher.java:213)
at com.sapportals.portal.prt.dispatcher.Dispatcher.access$300(Dispatcher.java:42)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:437)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
Please help us to resolve this issue. Its a bit urgent for us. Your suggestions and views would be highly appreciable.
Thanks
RaviHi Ravi,
can you check if you see any more relevnt information in the std_serverx.out files? or in the dev_server/dev_dispatcher files.?
cheers,
Shantanu -
Windows bactch job to trim the Listener log
Hi All ,
Can you help me to write a Windows batch job to trim the listener.log on periodically.
I have the below steps, which i do manually but i won't which needs to be put in batch.
copy listener.log listener_<today>.log
lsnrctl set log_file listener_new.log
del listener.log
lsnrctl set log_file listener.log
lsnrctl reload
del listener_new.log
Appriciate the Help.
Thanks in Advance.Have a look here:
http://www.wikihow.com/Write-a-Batch-File
You have the commands, so you only need the batch file around it
HTH
FJFranken -
How can I know that the listener is starting up?
Hi,
I follow the instruction in ACS Oracle Installation guide. I believe that many of you use the document to install oracle. I have a question when I try to start the listener. when I execute ./listener8i stop or ./listener8i start I got the same message, which is different from the message in the ACS document.
Here is the message:
Oracle 8i listener start/stop
Startting the Listener for 8i:
LSNRCTL for Linux: Version 8.1.6.0.0 - Production on 31-AUG-2000 14:00:00
(c) Copyright 1998, 1999, Oracle Corporation. All rights reserved.
TNS-01106: Listener using listener name LISTNENER has already been startd.
Is the message above correct? How can I know the listener is started up?
TIA,
Tonytry "lsnrctl status" on the linux command line.
for further info use "lsnrctl help" -
Anyone been able to resolve the 'listener down' status in EM when it is act
Hi,
I can't make the EM show the listener as running, it always shows it as stopped. I checked it with lsnrctl and it is running, but in EM appears as stopped. I refreshed the screen and nothing; I tried to start it from the EM, and it displays a message like "The listener has been correctly started", but when I check the status in EM it is still stopped.
I have read through about 50 threads but they are nearly all questions not answers. Even the text above is cut straight from someone else's question that did not get a response. Can anyone help here please? Regards Peter. (with nearly all his hair pulled out)
10g R1 10.1.0.3, Win Server 2000 with SP4Finding 1
My 10gR2 installation was for HP-UX ITANIUM - there have been no updates to this installation since it's first release. The release contained OEM Agent Version 10.1.0.4.1, not version 10.2.0.0.0... I will prolly not get to the 10.2 installation until next week - those experiencing problems of this discussion should execute ems status agent and check AGENT VERSION - if you are sitting at a lesser version level than your rdbms you shoud get the latest installation : http://www.oracle.com/technology/software/products/oem/index.html -
Not able to start the listener in oracle 10g after the domain name changed
Hi
I had installed the oracle 10g on zLinux. It was working fine( was able to mount the database and start the listener). Now my server's domain name got changed. So i have added the new domain name in the tnsnames.ora and listeners.ora file . now i could able to mount the databases but am not able to start the listener . whille starting the listener , am getting the following error
oracle@ptcr4d00:~> lsnrctl start
LSNRCTL for Linux: Version 10.2.0.2.0 - Production on 05-AUG-2009 10:31:05
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Starting /opt/oracle/10g/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 10.2.0.2.0 - Production
System parameter file is /opt/oracle/10g/network/admin/listener.ora
Log messages written to /opt/oracle/10g/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PTCR4D00)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
TNS-12547: TNS:lost contact
TNS-12560: TNS:protocol adapter error
TNS-00517: Lost contact
Linux Error: 104: Connection reset by peer
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=PTCR4D00)(PORT=1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
I have posted the contents of the tnsnames.ora and listeners.ora
TNSNAMES.ORA
TC =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = PTCR4D00)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = TC)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
LISTENERS.ORA
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /opt/oracle/10g)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = PTCR4D00)(PORT = 1521))
Could you please help me to resolve this issue ?
Regards
ManiHi
Please find the content of the /etc/hosts below
# IP-Address Full-Qualified-Hostname Short-Hostname
#127.0.0.1 localhost
9.124.114.49 PTCR4D00
# special IPv6 addresses
::1 localhost ipv6-localhost ipv6-loopback
fe00::0 ipv6-localnet
ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts
9.124.114.49 PTCR4D00 PTCR4D00
Regards
Mani -
Very slow queries when connecting through the listener in Oracle 10.2.0.4
Hi,
I have a 10g database with a little table (2 columns, 9 rows).
When i connect to the db through the listener (sqlplus system/manager@SID) and run this query : select * from table, the execution time is about 500ms
When i connect to the db by setting the ORACLE_SID to SID (export ORACLE_SID=SID; sqlplus system/manager) and run the same query, it's 10x faster ...
The listener is : TNSLSNR for Solaris: Version 10.2.0.4.0 - Production
The database is : Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
Any ideas ?
Thanks ... (i'm a newbie in oracle and in english ... so excuse me in advance)
Edited by: user1248176 on 12 avr. 2010 22:50steve80lyon wrote:
i didn't activate wait tracing ... that's done : now i get this when running through TCP/IP connection
PARSING IN CURSOR #5 len=70 dep=0 uid=5 oct=3 lid=5 tim=1038452661888 hv=3805331552 ad='8fa8e228'
SELECT ID, DESCRIPTION FROM AGARIC.PROFILS ORDER BY LOWER(DESCRIPTION)
END OF STMT
PARSE #5:c=260000,e=300749,p=10,cr=1047,cu=0,mis=1,r=0,dep=0,og=4,tim=1038452661879
EXEC #5:c=0,e=84,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=4,tim=1038452662120
WAIT #5: nam='SQL*Net message to client' ela= 5 driver id=1952673792 #bytes=1 p3=0 obj#=-1 tim=1038452662202
WAIT #5: nam='SQL*Net message from client' ela= 50324 driver id=1952673792 #bytes=1 p3=0 obj#=-1 tim=1038452712705
WAIT #5: nam='SQL*Net message to client' ela= 2 driver id=1952673792 #bytes=1 p3=0 obj#=-1 tim=1038452713043
FETCH #5:c=0,e=359,p=0,cr=7,cu=0,mis=0,r=9,dep=0,og=4,tim=1038452713153
WAIT #5: nam='SQL*Net message from client' ela= 1750 driver id=1952673792 #bytes=1 p3=0 obj#=-1 tim=1038452715077
PARSE #3:c=0,e=23,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=0,tim=1038452715199And there we see the difference. Notice the WAIT lines, above? They aren't in your previous post, with the bequeath connection.
I'm re-reading some docs on exactly how to "walk the clock" in reading the above. If you are interested, see if you can find a copy of "Optimizing Oracle Performance" by Cary Milsap. It goes into great detail about how to interpret these traces.
The "ela" value is the elapsed time of the wait, in micro-seconds (1 ms = 0.000 001 second). Unless I've slipped a decimal position, you have 0.52081 sec (a whisker more than one-half second) in network wait time, that doesn't exist on the bequeath connection. That is your "about 500 milliseconds".
Edited by: EdStevens on Apr 13, 2010 9:56 AM
Edited by: EdStevens on Apr 13, 2010 10:00 AM -
Error: The listener returned the following Message: 500 Internal Server Err
Hi all,
I am using Oracle AS Portal and am getting the following error in home page (i.e page that has login button)
Error: The listener returned the following Message: 500 Internal Server Error
AND
I have allready customized the portal page that comes after loggin in but not gettin interface to customize home page (i.e page that has login button)
Any suggestions please.....
Thanks in AdvanceHi there,
Please give it a check into the application.log of the Portal (as may point to to the right direction) and it would be useful to know the Portal version (5-digit).
Cheers,
Pedro. -
Error: The listener returned the following Message: 500 Internal Server Error
Hi,
I'm currently having trouble building a JSP Portlet and registering it in Portal 902. I've followed all of the documentation and created the appropriate web.xml, provider.xml and _default.properties files as required. When I deploy the page to my local OC4J server using http://localhost:port/myapplication/providers I receive the following message:
Congratulations! You have successfully reached your Provider's Test Page.
Checking for components:
Portlets are: MyPortlet
When I then try and deploy the portlet in our development portal environment using the Enterprise Manager interface, and then test using the same URL as above, I receive the same message as above.
However, when I then try and register the provider through the Portal environment and try and "show" the portlet through a page within the portal, I receive the following error message:
Error: The listener returned the following Message: 500 Internal Server Error
I'm not sure why it would work with my local OC4J instance, and on the Portal server itself, but not as a portlet within a portal page in the main environment. I will add the application log, the provider.xml and the _default.properties files to extra postings after this first message.
Any help would be much, much appreciated.
Best RegardsHere is the application log file after running the portlet:
12/11/02 3:53 PM Started
12/11/02 3:53 PM Started
12/11/02 3:53 PM Started
12/11/02 3:55 PM FavouritesPortlet: oracle.jsp.runtimev2.JspServlet: init
12/11/02 3:55 PM FavouritesPortlet: 9.0.2.0.0 Started
12/11/02 3:55 PM FavouritesPortlet: oracle.webdb.provider.v2.adapter.SOAPServlet: init
12/11/02 3:55 PM FavouritesPortlet: NumberFormatException while initializing Logger. Defaulting LogLevel to 4
12/11/02 3:55 PM FavouritesPortlet: ServletLogger - Logging level: 4
12/11/02 3:55 PM FavouritesPortlet: [id=(null), instance=6872125_3_PREVIEW] CONFIGURATION: Invalid or null value for property - executionWarningTimeout = null - setting to default value of 20 seconds
12/11/02 3:55 PM FavouritesPortlet: [id=(null), instance=6872125_3_PREVIEW] CONFIGURATION: Invalid or null value for property - executionKillTimeout = null - setting to default value of 80 seconds
12/11/02 3:55 PM FavouritesPortlet: [id=(null), instance=6872125_3_PREVIEW] CONFIGURATION: Default container renderer not specified
12/11/02 3:55 PM FavouritesPortlet: [id=(null), instance=6872125_3_PREVIEW] CONFIGURATION: defaulting container renderer to DefaultContainerRenderer
12/11/02 3:55 PM FavouritesPortlet: Servlet error
java.lang.NullPointerException
at jsp.FavouritesPortlet._jspService(_FavouritesPortlet.java:86)
at com.orionserver[Oracle9iAS (9.0.2.0.0) Containers for J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:508)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:255)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:219)
at oracle.portal.provider.v2.render.http.ResourceRenderer.renderBody(Unknown Source)
at oracle.portal.provider.v2.render.RenderManager.render(Unknown Source)
at oracle.portal.provider.v2.DefaultPortletInstance.render(Unknown Source)
at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.showPortlet(Unknown Source)
at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.handleHttp(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at oracle.webdb.provider.v2.adapter.SOAPServlet.doHTTPCall(Unknown Source)
at oracle.webdb.provider.v2.adapter.SOAPServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64) -
How to change the listener port number on a standby database
i want to change the listener port number from 1525 to 1545, which is running on a standby database.
i did the following steps and got some error.
1. i stop listener and modfy listener.ora
2. i login in standby DB and issue 'alter system set local_listener='(address=(pro=tcp)(host=10.10.10.10)(port=1545))';'
3. i login in dg broker and issue 'edit database 's1' set property 'LocalListenerAddress'='(address=(pro=tcp)(host=10.10.10.10)(port=1545))';' and a error coming out ORA-16703: cannot set the property while the database is enabled
4. then i disable database
DGMGRL> disable database 'ssmscs';
5. DGMGRL> edit database 's1' set property 'LocalListenerAddress'='(address=(pro=tcp)(host=10.10.10.10)(port=1545))';
Error: ORA-16541: site is not enabled
Configuration details cannot be determined by DGMGRL
what can i do ? can anybody help me out? thanks in advance.
Edited by: user1835127 on Nov 19, 2008 2:09 AMHi
You have to edit the following files in $ORACLE_HOME/network/admin or $TNS_ADMIN/ :
In your listener.ora on your standby
MQ_LIST =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = superman.dk)*(PORT = 1524))*
TNSNAMES.ORA (on your primary and standby)
MQ_LIST =
(DESCRIPTION =
(ADDRESS = (COMMUNITY = tcp.world)(PROTOCOL = TCP)(Host = superman.dk)*(PORT = 1524))*
(CONNECT_DATA = (SID = MQ_LIST))
after that do
lsnrctl reload -
Changing the listener port number in a cluster environment
Hello,
I have an Oracle 10g database on a Windows cluster environment with Oracle Fail safe. I am trying to change the default listener port number - these are the steps I have done to change the port number:
1) Take the listener offline via Oracle Fail safe
2) stop the original listener from the command line
3) change the port number in the listener.ora file & save
4) start the original listener
5) bring the listener online in Fail safe
6) register the listener in the database with ALTER SYSTEM SET LOCAL_LISTENER....
After all this, when i check the status of the listener via lsnrctl, i see that the new port number is used, however in the Fail safe administrator, I still see the default port 1521. How do I go about changing the port number so that Fail safe also registers the change?I did troubleshooting to verify the group, but this just changed the port number back to the default in the listener.ora & tnsnames.ora.
So I did all the steps again to change the port number from the default to another - via lsnrctl status, i see that the new port number is being used, I can also log in to the database via Toad using the new port number, in v$parameter i see that the local_listener is registered on the new port number....only under the Fail Safe manager, the port number (under listener parameter) has not changed....it still shows the default port number. Anyone know how to change this??? -
Changing the Listener Port Number
Hi RACers,
I need to change the TNS listener port number from the default of 1521 (don't ask!).
I'm on Solaris10/Oracle10g 10.2.0.3 using a 2 node cluster.
I've tried editing the relevant files, bouncing everything and re-starting CRS, but that doesn't work. I tried using Netca to delete the listener and re-create it with a different port number and that didn't work either. The instances did not re-register despite having their local_listener parameter changes.
Obviously I'm doing something wrong, but don't know what. Any ideas or do you know where a procedure to do this is documented?
Thanks in advance.My posting was not aimed at the OP at all.. not his fault that Oracle insists on using a TCP port that's NOT registered for Oracle use.
It is all Oracle's fault that port 1521 is used instead of 1527.
As for what Oracle books say.. bahumbug. Means nothing ito playing by the same networking rules as everyone else.
Port 1527 is what is registered for and by Oracle as use for Oracle tcp traffic. Not fricken port 1521!
And why is this a problem?
If you're in the network business and deal with everything and anything from network analysis and management to rewriting ToS bytes for proper DiffServ application.. then it is very frustrating to find a major company like Oracle ignoring the networking rules.
I read that as Oracle telling us "screw you". -
Changing the name of the PC, I cannot configure the listener
Hello,
I use
Windows 7 64 bit
Apex 4.1
Glass Fish server
Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
PL/SQL Release 11.2.0.2.0 - Production
CORE 11.2.0.2.0 Production
TNS for 32-bit Windows: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
I have changed the name of my PC ( for it contained "-" and "_") Then I did the following changes:
I changed the name of my PC in tnsnames.ora and listener.ora and "Hosts" file (in windows\system32\drivers\etc).
When I try to configure the listener, I get webpage saying Internal Error.
How can I reconfigure it again ????
Regards,
FatehHello Fateh,
I think there are two options on how to reconfigure. In both cases, you'll have to locate your apex-config.xml .
h3. Option 1: Edit the apex-config.xml
h4. Steps
<ol>
<li>stop APEX Listener
<li>edit apex-config.xml (change hostname for the database connection)
<li>start APEX Listener
</ol>
h3. Option 2: Delete the apex-config.xml
h4. Steps
<ol>
<li>stop APEX Listener
<li>delete apex-config.xml
<li>start APEX Listener
<li>re-run the configuration process by calling http://<yourAPEXListenerHost>:<port>/apex/listenerConfigure
</ol>
-Udo -
Was not able to stop the listener
Hi All,
As a part of shut down I stopped the application tier and Database and Then when I was trying to stop Listener I was getting the below error.
LSNRCTL> show log_file
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
I couldn't find where I was going wrong.. Can anyone help me out in this.Hi Helios,
Here is the output of the listener status
[oracle@oracleerp PROD_oracleerp]$ ps -ef|grep inherit
oracle 4831 4080 0 11:19 pts/1 00:00:00 grep inherit
And these are the entries in /etc/hosts file
[oracle@oracleerp PROD_oracleerp]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.0.113 oracleerp.localdomain.com oracleerp
127.0.0.1 localhost.localdomain localhost
And Service Network Restart -- I already tried
[oracle@oracleerp PROD_oracleerp]$ service network restart
Shutting down loopback interface: Users cannot control this device.
[FAILED]
rm: cannot remove `/var/lock/subsys/network': Permission denied
Setting network parameters: error: permission denied on key 'net.ipv4.ip_forward'
error: permission denied on key 'net.ipv4.conf.default.rp_filter'
error: permission denied on key 'net.ipv4.conf.default.accept_source_route'
error: permission denied on key 'kernel.sysrq'
error: permission denied on key 'kernel.core_uses_pid'
error: permission denied on key 'kernel.shmall'
error: permission denied on key 'kernel.shmmax'
error: permission denied on key 'kernel.shmmni'
error: permission denied on key 'kernel.sem'
error: permission denied on key 'fs.file-max'
error: permission denied on key 'net.ipv4.ip_local_port_range'
error: permission denied on key 'net.core.rmem_default'
error: permission denied on key 'net.core.wmem_default'
error: permission denied on key 'net.core.rmem_max'
error: permission denied on key 'net.core.wmem_max'
[FAILED]
Bringing up loopback interface: Users cannot control this device.
[FAILED]
Bringing up interface eth0: Users cannot control this device.
[FAILED]
touch: cannot touch `/var/lock/subsys/network': Permission denied
But Didnt yet
I had gone through the document you suggesed already.
Please suggest me how i can get this issue fixed. -
I have installed Oracle and am able to access it locally. Unfortunately, I can't access it remotely. lsnrctl status does not list the XE instance. The following are the contents of the relevant files/command outputs:
listener.ora
# listener.ora Network Configuration File:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/xe)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP)(HOST = Neon)(PORT = 1521))
DEFAULT_SERVICE_LISTENER = (XE)
/etc/hosts
127.0.0.1 localhost.localdomain localhost Neon
::1 localhost.localdomain localhost6 localhost
lsnrctl status
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 04-SEP-2012 12:27:21
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date 31-AUG-2012 16:49:12
Uptime 3 days 19 hr. 38 min. 9 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/11.2.0/xe/log/diag/tnslsnr/Neon/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
I am able to log into the database using sqlplus mkhan/password and run the following query, select * from all_users and get the following output:
SQL> select * from all_users;
USERNAME USER_ID CREATED
XS$NULL 2147483638 28-AUG-11
MKHAN 49 30-AUG-12
LKEDONGA 48 23-JUL-12
APEX_040000 47 28-AUG-11
APEX_PUBLIC_USER 45 28-AUG-11
FLOWS_FILES 44 28-AUG-11
HR 43 28-AUG-11
MDSYS 42 28-AUG-11
ANONYMOUS 35 28-AUG-11
XDB 34 28-AUG-11
CTXSYS 32 28-AUG-11
USERNAME USER_ID CREATED
OUTLN 9 28-AUG-11
SYSTEM 5 28-AUG-11
SYS 0 28-AUG-11
14 rows selected.
SQL>
but attempting sqlplus mkhan/password@XE or mkhan/password@Neon/XE or mkhan/password@localhost/XE results in the following:
SQL*Plus: Release 11.2.0.2.0 Production on Tue Sep 4 13:42:36 2012
Copyright (c) 1982, 2011, Oracle. All rights reserved.
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor
Enter user-name:
Needless to say that Apex isn't working either but I'll tackle that later. I can log into the database using user oracle in group dba using "sqlplus / as sysdba". I can shutdown the database and start it back up. So I know I installed correctly.user11414072 wrote:
Thanks Ed.
On my PC, I installed the instant client 11.2. As I understand it, when I run sqlplus in a dos box as follows, I the DB server should respond and allow a connection
sqlplus mkhan/password@XE
In this case it should use the local tnsnames.ora to determine where the XE instance is, and initiate a connection.
I've also tried
sqlplus mkhan/password@Neon/XE and
sqlplus mkhan/[email protected]/XE and
sqlplus mkhan/[email protected]/XE
sqlplus mkhan/[email protected]:1521/XE
all of them give me
ORA-12170: TNS:Connect timeout occurred
AdThanksVance,the most common cause from ORA-12170 is a FireWall on or between client & DB server
what is OS name & version for both client & DB server? -
Where is the listener on this server?
I read that the listener is the main server side networking component that allows connections to be established between clients and the Oracle database.
I am looking at the listener file on my machine to follow along.
However, when I try to find the listener.ora file on a different server here in the company I work in, I cannot locate it. (Not in the Network folder, not anywhere).
Why is this? Is the information needed to listen for client requests simply held in the tnsname.ora folder (which I can find on the server side).
Any bright ideas, thanks a million.
DA
(I have tried the lsnrctl in the command line, but just get the message that its not recognised as an internal or external command.)
Message was edited by:
Dan Alistener.ora is the file used to configure listener it is located at the ORACLE_HOME/network/admin at the database side. If ever it is changed, it is located according to the value of the TNS_ADMIN environment variable.
listener.ora can only be found on db server installations, not on client installations, just in case you are looking on the wrong oracle home.
When you type:
lsnrctl statusyou can see where the listener is located by this line:
Listener Parameter File G:\Oracle\product\11.1.0\db_1\network\admin\listener.ora
Listener Log File G:\Oracle\product\11.1.0\db_1\network\log\listener.log~ Madrid
Maybe you are looking for
-
Hi, I am facing a few hicups in my code, I needed to make certain FIelds as updateable and some as non updateable but the problem is that this is not happening. Can you tell me where i am going wrong. I have written this code in my PBO at the end. Th
-
Claims report, rpclmsu0, doesn't work correctly in ECC 6.
Claims report is used to view the details of the components of the claims but all it is showing is the values /561 and /5py wage types. Since it isn't known what wage type generated the claim and what tax class it is under, claims can't be cleared. O
-
How to allow pop-ups in Safari for all users
How do you allow Safari pop-ups for all users? After rolling out 50 Mac OSX with Safari comes default with Safari pop-ups disabled, now I must allow pop-ups for all users logging in. Good day!
-
Missing file name while receiving AS2 MDN acknowledgement
We are using BizTalk 2010. We send one AS2 package to our TP and our TP send us back 4 Acknowledgement files. Most of the acknowledgement files that we receive from the TP contains the ReceivedFileName property which contains the file name, except fo
-
I cannot open files in "My pictures" folder
For the last couple of weeks I have been unable to open files in "My Pictures" folder. For example, if I save a photo in my pictures, it will not open if I double click on it. Anyone any ideas ?? Thanks in advance.