Connect to the database of auto Hosted App on Office 365
Hi All,
I developed a custom Application for SharePoint on top Office 365 in Auto-hosted mode. The application has SQL database which will be deployed to SQL Azure.
I would like to read some info from the database but using another tools not from inside the developed application (e.g. SharePoint designer, PowerPivot) to generate some reports.
When I try to connect to the database after the application installation using SharePoint Designer I get the following error message:
Cannot open server 'xxxxxxxxxxx' requested by the login. Client with IP address '41.239.166.230' is not allowed to access the server. To enable access, use the Windows Azure Management Portal or run sp_set_firewall_rule on the master database to create
a firewall rule for this IP address or address range. It may take up to five minutes for this change to take effect.
Login failed for user 'db_c6ab7aa1_4572_4d36_b99d_741dee28a139_dbo'.
This session has been assigned a tracing ID of 'c13ecefa-6aa2-4154-86f8-18d272c73b86'. Provide this tracing ID to customer support when you need assistance. (Microsoft SQL Server, Error: 40615)
And since I am using the Autohosted mode, I don;t have he Windows Azure Management Portal. is there a workaround for this issue?
Kind Regards,
Thanks in advance for you help. Mahmoud
Hi m_3ryan,
The error message shows you need to add your IP Address to the firewall rules of the SQL Azure to get yourself connected. As you deploy the database to SQL Azure, you mean you cannot open window azure management portal?
Follow the steps in below article, check whether it works:
How to: Set Firewall rule to connect to SQL Azure – sp_set_firewall_rule:
http://azure-howto.blogspot.com/2011/05/how-to-set-firewall-rule-to-connect-to.html
Thanks,
Qiao
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Qiao Wei
TechNet Community Support
Similar Messages
-
Can't add images to announcements in SharePoint-hosted app in Office 365
I tried something very simple:
Create a new SharePoint-hosted app
Add a new list to the app, based on the Announcements template
Deploy the app to my Dev site on Office 365
When I now add a new item (aka a new announcement) and try to add an image to the Body field, I encounter two errors (depending on whether I try to add an image from my Computer or from SharePoint)
Adding from my computer gives me an unexpected error:
Adding from SharePoint shows me a structure of all the apps in my hostweb, but no way to upload an image either to the hostweb or the appweb:
Is it not possible to add images to a Rich Text field in a list in an app?Hi Rene,
For inserting any image from you computer to you App web, you need to create a separate picture library in your app web manually i.e. in your SharePoint hosted app add a new list item, under list settings window choose "create a list instance
base on existing list template" and in the drop down select
picture library. Now deploy the app and try again.
Generally when we insert any image from our computer to a SharePoint rich text field, the image gets upload in one of the document libraries, but this option is not available in the newly created app web, as it doesn't contains any separate library..
For you next error, make sure that in the app manifest you are providing
read access on the web, this will resolve you second problem.
Hope it helps you..... -
Problem with EM (Enterprise Manager is not able to connect to the database)
Hi all,
I've Oracle DB 11g Rel.1 installed on Windows XP SP3. The database is up and running i.e. everyone can connect to the DB by using any App tool e.g. SQL*Plus, Forms, or Reports. It means that the listener and the service is running. But the problem is that when I try to start the EM I see some error messages on the webpage.
It says:
Enterprise Manager is not able to connect to the database instance. The state of the components are listed below.Database Instance (Green arrow)
Status Open Details The instance is open.
Host shiman
Port *1521*
SID orcl
Oracle Home d:\Oracle\product\11.1.0\db_1
Agent Connection to Instance (Green arrow)
Status Succeeded
Details
Listener (Green arrow)
Status Up
Host shiman
Port *1521*
Name LISTENER
Oracle Home d:\Oracle\product\11.1.0\db_1
Location d:\Oracle\product\11.1.0\db_1\network\admin
Details
please see the attached file:
http://rapidshare.com/files/404840300/em.JPGI've already checked all the services, they are running. And when I execute emctl command I got the following message.
emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.1.0.6.0
Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
http://shiman:1158/em/console/aboutApplication
Oracle Enterprise Manager 11g is running.I have checked some documents around config files in sysman and test_orcl\sysman directories. Moreover, I have checked dbsnmp and sysman account for unlockness and password accuracy. But they did not help me to solve the problem.
My question is if every thing is working fine then what is the problem with the EM? Why it is not connecting to the DB?
Thanks.
Imanemdctl.trc2010-07-13 18:42:21 Thread-2196 WARN http: snmehl_connect: connect failed to (shiman:1158): No connection could be made because the target machine actively refused it.
(error = 10061)
2010-07-13 18:42:26 Thread-4856 WARN http: snmehl_connect: connect failed to (shiman:1158): No connection could be made because the target machine actively refused it.
(error = 10061)
2010-07-13 18:42:28 Thread-5684 ERROR ssl: nzos_Handshake failed, ret=28864
2010-07-13 18:42:28 Thread-5684 ERROR http: 1704: Unable to initialize ssl connection with server, aborting connection attempt
2010-07-13 18:42:28 Thread-5684 ERROR main: nmectla_agentctl: Error connecting to https://shiman:3938/emd/main. Returning status code 1
emoms.trc2010-07-13 18:45:44,562 [ApplicationServerThread-1] ERROR conn.ConnectionService verifyRepositoryEx.818 - Invalid Connection Pool. ERROR = Locale not recognized
2010-07-13 18:45:46,875 [ApplicationServerThread-2] ERROR conn.ConnectionService verifyRepositoryEx.818 - Invalid Connection Pool. ERROR = Locale not recognized
2010-07-13 18:45:46,921 [ApplicationServerThread-0] ERROR conn.ConnectionService verifyRepositoryEx.818 - Invalid Connection Pool. ERROR = Locale not recognized
2010-07-13 18:45:47,078 [ApplicationServerThread-2] ERROR conn.ConnectionService verifyRepositoryEx.818 - Invalid Connection Pool. ERROR = Locale not recognized
2010-07-13 18:45:47,125 [ApplicationServerThread-1] ERROR conn.ConnectionService verifyRepositoryEx.818 - Invalid Connection Pool. ERROR = Locale not recognized
2010-07-13 18:45:47,140 [ApplicationServerThread-3] ERROR conn.ConnectionService verifyRepositoryEx.818 - Invalid Connection Pool. ERROR = Locale not recognized
2010-07-13 18:45:47,187 [ApplicationServerThread-0] ERROR conn.ConnectionService verifyRepositoryEx.818 - Invalid Connection Pool. ERROR = Locale not recognized
2010-07-13 18:45:47,234 [ApplicationServerThread-5] ERROR conn.ConnectionService verifyRepositoryEx.818 - Invalid Connection Pool. ERROR = Locale not recognized
2010-07-13 18:45:47,281 [ApplicationServerThread-4] ERROR conn.ConnectionService verifyRepositoryEx.818 - Invalid Connection Pool. ERROR = Locale not recognized
2010-07-13 18:45:47,328 [ApplicationServerThread-6] ERROR conn.ConnectionService verifyRepositoryEx.818 - Invalid Connection Pool. ERROR = Locale not recognized
2010-07-13 18:45:48,984 [ApplicationServerThread-2] ERROR conn.ConnectionService verifyRepositoryEx.818 - Invalid Connection Pool. ERROR = Locale not recognized
2010-07-13 18:45:49,000 [EMUI_18_45_48_/console/aboutApplication] ERROR svlt.PageHandler handleRequest.639 - java.lang.IllegalStateException: Response has already been committed
java.lang.IllegalStateException: Response has already been committed
at com.evermind.server.http.EvermindHttpServletResponse.resetBuffer(EvermindHttpServletResponse.java:1853)
at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:260)
at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:42)
at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:204)
at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
at oracle.sysman.emSDK.svlt.PageHandler.render(PageHandler.java:1113)
at oracle.sysman.emSDK.svlt.PageHandler.myRender(PageHandler.java:1173)
at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(PageHandler.java:597)
at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:781)
at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:337)
at oracle.sysman.eml.app.Console.doGet(Console.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at oracle.sysman.eml.app.EMRepLoginFilter.doFilter(EMRepLoginFilter.java:87)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.sysman.db.adm.inst.HandleRepDownFilter.doFilter(HandleRepDownFilter.java:134)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
at oracle.sysman.eml.app.BrowserVersionFilter.doFilter(BrowserVersionFilter.java:122)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
at oracle.sysman.emSDK.svlt.EMRedirectFilter.doFilter(EMRedirectFilter.java:102)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:306)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
2010-07-13 18:45:49,000 [EMUI_18_45_48_/console/aboutApplication] ERROR em.console doGet.357 - java.lang.IllegalStateException: Response has already been committed, be sure not to write to the OutputStream or to trigger a commit due to any other action before calling this method.
java.lang.IllegalStateException: Response has already been committed, be sure not to write to the OutputStream or to trigger a commit due to any other action before calling this method.
at com.evermind.server.http.EvermindHttpServletResponse.sendRedirect(EvermindHttpServletResponse.java:1339)
at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:806)
at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:337)
at oracle.sysman.eml.app.Console.doGet(Console.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at oracle.sysman.eml.app.EMRepLoginFilter.doFilter(EMRepLoginFilter.java:87)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.sysman.db.adm.inst.HandleRepDownFilter.doFilter(HandleRepDownFilter.java:134)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
at oracle.sysman.eml.app.BrowserVersionFilter.doFilter(BrowserVersionFilter.java:122)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
at oracle.sysman.emSDK.svlt.EMRedirectFilter.doFilter(EMRedirectFilter.java:102)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:306)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595) -
Enterprice manager is not able to connect to the database instance
hello,
I have problem with EM. I have some databases, and I worked with Enterprice Manager on this databases. First DB when I have repository is ok and EM always connect with this, but I worked on another DB some time and was ok, but three days ago when I start EM I get message 'Enterprice Manager is not able to connect to the database instance'. When I couldn't resolve this problem, I make new DB and this worked two days ok, and today I get this same message. I don't make any changes in listener and tns files.
any idea?
# listener.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ORACLE)(PORT = 1521))
# tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
SZDTEST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oracle)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = szdtest.localhost)
SZD =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oracle)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = szd)
TEST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oracle)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = test)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oracle)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
This is strange because when I working on EM get in some event errors
500 Internal Server Error
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:393)
at oracle.sysman.emSDK.svc.conn.FGAConnectionCache.getFGAConnection(FGAConnectionCache.java:182)
at oracle.sysman.emSDK.svc.conn.ConnectionService.getConnection(ConnectionService.java:289)
at oracle.sysman.emSDK.svc.conn.ConnectionService.getConnection(ConnectionService.java:261)
at oracle.sysman.db.util.DBJobController.getRepositoryConnection(DBJobController.java:458)
at oracle.sysman.db.util.DBJobController.initializeBean(DBJobController.java:326)
at oracle.sysman.db.util.rec.RecoveryController.getBean(RecoveryController.java:262)
at oracle.sysman.db.util.DBJobController.setPageSequence(DBJobController.java:384)
at oracle.sysman.db.util.DBJobController.resetPageSequence(DBJobController.java:404)
at oracle.sysman.db.util.DBJobController.handleStart(DBJobController.java:645)
....................yes DBConsole services are started:
OracleDBConsoleorcl running
OracleDBConsoleszd running
results emctl status and start
C:\oracle\product\10.2.0\db_1\BIN>emctl status dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
http://ORACLE:5502/em/console/aboutApplication
Oracle Enterprise Manager 10g is running.
Logs are generated in directory C:\oracle\product\10.2.0\db_1/ORACLE_szd/sysman/log
C:\oracle\product\10.2.0\db_1\BIN>emctl start dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
http://ORACLE:5502/em/console/aboutApplication
Agent Version : 10.1.0.4.1
OMS Version : Unknown
Protocol Version : 10.1.0.2.0
Agent Home : C:\oracle\product\10.2.0\db_1\ORACLE_szd
Agent binaries : C:\oracle\product\10.2.0\db_1
Agent Process ID : 2960
Agent Process ID : 2960
Agent URL : http://ORACLE:1832/emd/main
Started at : 2010-06-25 09:58:05
Started by user : SYSTEM
Last Reload : 2010-06-25 09:59:53
Last successful upload : (none)
Last attempted upload : (none)
Total Megabytes of XML files uploaded so far : 0.00
Number of XML files pending upload : 244
Size of XML files pending upload(MB) : 1.56
Available disk space on upload filesystem : 55.04%
Agent is already started. Will restart the agent
This will stop the Oracle Enterprise Manager 10g Database Control process. Continue [y/n] :
but still I get this message
EM was started and I see this message and that database is open and listener is up and agent connection to instance is succed
Edited by: user515960 on 2010-06-25 01:08
view logs in emoms.log after emctl status dbconsole
2010-06-25 11:38:45,796 [HttpRequestHandler-23814595] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-06550: linia 1, kolumna 7:
PLS-00201: identyfikator 'SETEMUSERCONTEXT' powinien być zadeklarowany
ORA-06550: linia 1, kolumna 7:
PL/SQL: Statement ignored
2010-06-25 11:38:45,875 [HttpRequestHandler-23814595] ERROR eml.OMSHandshake getParameterFromDB.402 - ORA-06550: linia 1, kolumna 7:
PLS-00201: identyfikator 'SETEMUSERCONTEXT' powinien być zadeklarowany
ORA-06550: linia 1, kolumna 7:
PL/SQL: Statement ignored
2010-06-25 11:38:45,875 [HttpRequestHandler-23814595] ERROR eml.OMSHandshake processFailure.619 - OMSHandshake failed.(AGENT URL = http://ORACLE:1832/emd/main)(ERROR = INTERNAL_ERROR)
2010-06-25 11:38:58,437 [OmsServiceDriver thread] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-06550: linia 1, kolumna 7:
PLS-00201: identyfikator 'SETEMUSERCONTEXT' powinien być zadeklarowany
ORA-06550: linia 1, kolumna 7:
PL/SQL: Statement ignored
2010-06-25 11:39:00,968 [HttpRequestHandler-23814595] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-06550: linia 1, kolumna 7:
PLS-00201: identyfikator 'SETEMUSERCONTEXT' powinien być zadeklarowany
ORA-06550: linia 1, kolumna 7:
PL/SQL: Statement ignored
2010-06-25 11:39:00,984 [EMUI_11_39_00_/console/aboutApplication] ERROR em.console doGet.311 - java.lang.IllegalStateException: Response has already been committed
java.lang.IllegalStateException: Response has already been committed
at com.evermind.server.http.EvermindHttpServletResponse.resetBuffer(EvermindHttpServletResponse.java:1901)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:211)
at oracle.sysman.emSDK.svlt.PageHandler.render(PageHandler.java:773)
at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(PageHandler.java:396)
at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:688)
at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:291)
at oracle.sysman.eml.app.Console.doGet(Console.java:135)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.sysman.emSDK.svlt.EMRedirectFilter.doFilter(EMRedirectFilter.java:101)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
at oracle.sysman.db.adm.inst.HandleRepDownFilter.doFilter(HandleRepDownFilter.java:123)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:239)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:793)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
2010-06-25 11:39:01,078 [HttpRequestHandler-23814595] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-06550: linia 1, kolumna 7:
PLS-00201: identyfikator 'SETEMUSERCONTEXT' powinien być zadeklarowany
ORA-06550: linia 1, kolumna 7:
PL/SQL: Statement ignored
2010-06-25 11:39:01,093 [EMUI_11_39_01_/console/aboutApplication] ERROR em.console doGet.311 - java.lang.IllegalStateException: Response has already been committed
java.lang.IllegalStateException: Response has already been committed
at com.evermind.server.http.EvermindHttpServletResponse.resetBuffer(EvermindHttpServletResponse.java:1901)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:211)
at oracle.sysman.emSDK.svlt.PageHandler.render(PageHandler.java:773)
at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(PageHandler.java:396)
at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:688)
at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:291)
at oracle.sysman.eml.app.Console.doGet(Console.java:135)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.sysman.emSDK.svlt.EMRedirectFilter.doFilter(EMRedirectFilter.java:101)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
at oracle.sysman.db.adm.inst.HandleRepDownFilter.doFilter(HandleRepDownFilter.java:123)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:239)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:793)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
2010-06-25 11:39:02,015 [HttpRequestHandler-23814595] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-06550: linia 1, kolumna 7:
PLS-00201: identyfikator 'SETEMUSERCONTEXT' powinien być zadeklarowany
ORA-06550: linia 1, kolumna 7:
PL/SQL: Statement ignored
2010-06-25 11:39:02,093 [HttpRequestHandler-23814595] ERROR eml.OMSHandshake getParameterFromDB.402 - ORA-06550: linia 1, kolumna 7:
PLS-00201: identyfikator 'SETEMUSERCONTEXT' powinien być zadeklarowany
ORA-06550: linia 1, kolumna 7:
PL/SQL: Statement ignored
2010-06-25 11:39:02,093 [HttpRequestHandler-23814595] ERROR eml.OMSHandshake processFailure.619 - OMSHandshake failed.(AGENT URL = http://ORACLE:1832/emd/main)(ERROR = INTERNAL_ERROR)
2010-06-25 11:39:05,687 [HttpRequestHandler-23814595] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-06550: linia 1, kolumna 7:
PLS-00201: identyfikator 'SETEMUSERCONTEXT' powinien być zadeklarowany
ORA-06550: linia 1, kolumna 7:
PL/SQL: Statement ignored
2010-06-25 11:39:05,750 [HttpRequestHandler-23814595] ERROR eml.OMSHandshake getParameterFromDB.402 - ORA-06550: linia 1, kolumna 7:
PLS-00201: identyfikator 'SETEMUSERCONTEXT' powinien być zadeklarowany
ORA-06550: linia 1, kolumna 7:
PL/SQL: Statement ignored
2010-06-25 11:39:05,765 [HttpRequestHandler-23814595] ERROR eml.OMSHandshake processFailure.619 - OMSHandshake failed.(AGENT URL = http://ORACLE:1832/emd/main)(ERROR = INTERNAL_ERROR)
2010-06-25 11:39:05,812 [HttpRequestHandler-23814595] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-06550: linia 1, kolumna 7:
PLS-00201: identyfikator 'SETEMUSERCONTEXT' powinien być zadeklarowany
ORA-06550: linia 1, kolumna 7:
PL/SQL: Statement ignored
2010-06-25 11:39:05,843 [HttpRequestHandler-23814595] ERROR eml.OMSHandshake getParameterFromDB.402 - ORA-06550: linia 1, kolumna 7:
PLS-00201: identyfikator 'SETEMUSERCONTEXT' powinien być zadeklarowany
ORA-06550: linia 1, kolumna 7:
PL/SQL: Statement ignored
2010-06-25 11:39:05,843 [HttpRequestHandler-23814595] ERROR eml.OMSHandshake processFailure.619 - OMSHandshake failed.(AGENT URL = http://ORACLE:1832/emd/main)(ERROR = INTERNAL_ERROR)
2010-06-25 11:39:16,187 [HttpRequestHandler-23814595] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-06550: linia 1, kolumna 7:
PLS-00201: identyfikator 'SETEMUSERCONTEXT' powinien być zadeklarowany
ORA-06550: linia 1, kolumna 7:
PL/SQL: Statement ignored
2010-06-25 11:39:16,187 [EMUI_11_39_16_/console/aboutApplication] ERROR em.console doGet.311 - java.lang.IllegalStateException: Response has already been committed
java.lang.IllegalStateException: Response has already been committed
at com.evermind.server.http.EvermindHttpServletResponse.resetBuffer(EvermindHttpServletResponse.java:1901)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:211)
at oracle.sysman.emSDK.svlt.PageHandler.render(PageHandler.java:773)
at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(PageHandler.java:396)
at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:688)
at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:291)
at oracle.sysman.eml.app.Console.doGet(Console.java:135)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.sysman.emSDK.svlt.EMRedirectFilter.doFilter(EMRedirectFilter.java:101)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
at oracle.sysman.db.adm.inst.HandleRepDownFilter.doFilter(HandleRepDownFilter.java:123)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:239)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:793)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
2010-06-25 11:39:16,281 [HttpRequestHandler-23814595] ERROR conn.ConnectionService verifyRepositoryEx.433 - Invalid Connection Pool. ERROR = ORA-06550: linia 1, kolumna 7:
PLS-00201: identyfikator 'SETEMUSERCONTEXT' powinien być zadeklarowany
ORA-06550: linia 1, kolumna 7:
PL/SQL: Statement ignored
2010-06-25 11:39:16,281 [EMUI_11_39_16_/console/aboutApplication] ERROR em.console doGet.311 - java.lang.IllegalStateException: Response has already been committed
java.lang.IllegalStateException: Response has already been committed
at com.evermind.server.http.EvermindHttpServletResponse.resetBuffer(EvermindHttpServletResponse.java:1901)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:211)
at oracle.sysman.emSDK.svlt.PageHandler.render(PageHandler.java:773)
at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(PageHandler.java:396)
at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:688)
at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:291)
at oracle.sysman.eml.app.Console.doGet(Console.java:135)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.sysman.emSDK.svlt.EMRedirectFilter.doFilter(EMRedirectFilter.java:101)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
at oracle.sysman.db.adm.inst.HandleRepDownFilter.doFilter(HandleRepDownFilter.java:123)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:239)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:793)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
Edited by: user515960 on 2010-06-25 02:41 -
Problem: Enterprise Manager is not able to connect to the database instance
Hello,
I've got problem with EM. When I try to connect to it I get the following error:
Enterprise Manager is not able to connect to the database instance. The state of the components are listed below.
Database Instance, Listener and Agent are all green.
Few more information:
OS: Win7 64 bit
-installed loopback adapter. I can ping my computer name (J-PC) without problem and it pings back 10.10.10.10 address.
-I have set the ORACLE_HOME and ORACLE_SID env variables
-I can login to sqlplus with sysman account
-emctl status dbconsole shows that the EM 11g is running
I've been struggling for some time trying to get EM running as it should, but no luck so far.
If you need any more info, do ask. Tnx.Hi,
Regarding causes:
1. This is inside listener.ora file:
SID_LIST_LISTENER =
+(SID_LIST =+
+(SID_DESC =+
+(SID_NAME = CLRExtProc)+
+(ORACLE_HOME = C:\app\J\product\11.2.0\dbhome_1)+
+(PROGRAM = extproc)+
+(ENVS = "EXTPROC_DLLS=ONLY:C:\app\J\product\11.2.0\dbhome_1\bin\oraclr11.dll")+
+)+
+)+
LISTENER =
+(DESCRIPTION_LIST =+
+(DESCRIPTION =+
+(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))+
+(ADDRESS = (PROTOCOL = TCP)(HOST = J-PC)(PORT = 1521))+
+)+
+)+
ADR_BASE_LISTENER = C:\app\J
...and this is examples of errors in emoms.trc:
+2012-05-25 00:29:28,782 [HTTPThreadGroup-49] ERROR conn.ConnectionService verifyRepositoryEx.891 - Invalid Connection Pool. ERROR = Locale not recognized+
+2012-05-25 00:29:28,798 [HTTPThreadGroup-49] ERROR eml.OMSHandshake processFailure.806 - OMSHandshake failed.(AGENT URL = http://J-PC:3938/emd/main)(ERROR = INTERNAL_ERROR)(CAUSE =java.sql.SQLException: Locale not recognized)+
+2012-05-25 00:29:28,860 [HTTPThreadGroup-49] ERROR conn.ConnectionService verifyRepositoryEx.891 - Invalid Connection Pool. ERROR = Locale not recognized+
+2012-05-25 00:29:28,872 [HTTPThreadGroup-49] ERROR eml.OMSHandshake processFailure.806 - OMSHandshake failed.(AGENT URL = http://J-PC:3938/emd/main)(ERROR = INTERNAL_ERROR)(CAUSE =java.sql.SQLException: Locale not recognized)+
+2012-05-25 00:29:40,908 [HTTPThreadGroup-49] ERROR conn.ConnectionService verifyRepositoryEx.891 - Invalid Connection Pool. ERROR = Locale not recognized+
+2012-05-25 00:29:40,924 [HTTPThreadGroup-49] ERROR eml.OMSHandshake processFailure.806 - OMSHandshake failed.(AGENT URL = http://J-PC:3938/emd/main)(ERROR = INTERNAL_ERROR)(CAUSE =java.sql.SQLException: Locale not recognized)+
+2012-05-25 00:29:52,811 [SystemThreadGroup-8] ERROR app.SessionObjectManager sessionDestroyed.128 - java.sql.SQLException: Locale not recognized+
java.sql.SQLException: Locale not recognized
2.
Running lsnrctl status:
Alias LISTENER
Version TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Produ
ction
Start Date 25-MAY-2012 07:54:17
Uptime 0 days 0 hr. 21 min. 25 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\app\J\product\11.2.0\dbhome_1\network\admin\listene
r.ora
Listener Log File c:\app\j\diag\tnslsnr\J-PC\listener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=J-PC)(PORT=1521)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "orcl" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfully
Tnx for the help. -
Unable to Connect to the database in RCU, Oracle11g XE on Laptop/Windows
Software downloaded unzipped and installed from OTN
OBIEE foundation 11.1.1.5
Repository Creation Utility 11.1.1.5
Oracle Database Express Edition 11.2
Issues
1. I installed Oracle 11g express edition. I am able to start/stop and run sql against the database however the homepage ("get started " accessed from Start > Programs > Oracle Database 11g XE > Get Started) does not work. This i will post in a separate thread but I am writing this anyway just in case it has some relevance.
2, This is the one I need help with. Can you confirm that these are the parameters when I hit the "create" option in RCU because I get the error message saying I cannot connect.
Hostname:This is the same as the hostname, when I go to cmd prompt like below
C:>hostname<enter> That is what I am using.
Port and Service :Can you confirm, Port = "1521" and Service = "XE". 1521 is the Database listener port when I installed Oracle 11g Database Express Edition. I am not putting the quotes in the boxes in the RCU.
Should the service be OracleServiceXE - i have tried it but does not work.
Anyway I get this message:
Unable to connect to the database using the provided details.
Please enter a valid hostname and port or check if the listener is up and running.
Any ideas appreciated.
By the way My lsnrctl status returns the following: (meaning the listeners are up!0
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\dir>lsnrctl status
LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 13-MAR-2012 13:44
:03
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Produ
ction
Start Date 13-MAR-2012 10:55:11
Uptime 0 days 2 hr. 48 min. 51 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File C:\oraclexe\app\oracle\product\11.2.0\server\network\a
dmin\listener.ora
Listener Log File C:\oraclexe\app\oracle\diag\tnslsnr\myspecifichostname\listene
r\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=myspecifichostname)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=myspecifichostname)(PORT=8080)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Edited by: ideakat on Mar 13, 2012 1:57 PMHi,
Like Abhi said, check your tnsnames.ora file to check the port number and service name is correct or not for the Express Edition database you have installed.
and when you are running RCU installer, Please give system adminstrator account of OracleXE like 'sys' or 'system' account with confirmed port number and service name.
Hope this helps.
Regards,
Bose
Edited by: Bose on Mar 16, 2012 11:42 AM
Edited by: Bose on Mar 16, 2012 5:35 PM -
SAP Server has lost connection to the database!
Hi Gurus,
Can some please guide me on this " SAP Server has lost connection to the database! " what need to be check.
OS : AIX
DB : DB2
thanks
vamsiHello,
1)Check if the DB is running.Issue the following command @ the DB-level
db2 connect to <SID>.
2)Also check R3trans -d from the app. server and check for trans.log file for the error.
Hope it helps.
Regards,
Prasanna
Edited by: Kulkarni Prasanna on Jul 24, 2008 3:53 PM -
Connecting to the database taking long time to connect database server
Hi
When I execute procedure i am getting the below message at bottom of the Oracle SQL Developer
"Connecting to the database"
it is taking more than 10 min plz guideHi
have you installed a normal Oracle Client also on your Host? normal Oracle Client
Did you connect with host:port:sid or with a Oracle Naming Service? through TNS Service
Can you test tnsping <alias> yes, It is working fine
Did other user have the same problem? yes
Did you connect through WAN or LAN connection? LAN (Intranet)
Can you tell more about you client/database setup?
Database setup:
OS: Window 2008 server
version: 11.1.0
Client: 11.1.0
OS: Window 2008 server
Now I am not able to execute single select query which table contains 6 records and 15 columns it is taking long time I have waited 30 min still no resutls
only one table is behaving like this remaining is working fine
Edited by: user9235224 on Oct 6, 2012 7:06 PM -
Enterprise Manager is not able to connect to the database instance. The sta
Enterprise Manager is not able to connect to the database instance. The state of the components are listed below.
Listener is shown as unavailable.
lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 27-NOV-2012 11:52:40
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=freds-server.i-surname.co.uk)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 27-NOV-2012 11:50:02
Uptime 0 days 0 hr. 2 min. 37 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /opt/oracle/11g/network/admin/listener.ora
Listener Log File /opt/oracle/diag/tnslsnr/freds-server/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=freds-server)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=freds-server)(PORT=8080))(Presentation=HTTP)(Session=RAW))
Services Summary...
Service "GWORCL.i-surname.co.uk" has 2 instance(s).
Instance "GWORCL", status UNKNOWN, has 1 handler(s) for this service...
Instance "GWORCL", status READY, has 1 handler(s) for this service...
Service "GWORCLXDB.i-status.co.uk" has 1 instance(s).
Instance "GWORCL", status READY, has 1 handler(s) for this service...
The command completed successfully
I suspect that this is not just an OEM issue.
see
Listener working but not working for Enterprise manager oracle 11gr2 Linux.
for configuration files
Edited by: Neill_R on Nov 27, 2012 11:51 AMThis was solved by : Osama_mustafa
in the general questions forum
emca -deconfig dbcontrol db -repos drop
emca -config dbcontrol db -repos create -
E.M is not able to connect to the database instance
This is details from my network connection
DHCP Enabled: No
IPv4 Address: 192.168.1.100
IPv4 Subnet Mask: 255.255.255.0
IPv4 Default Gateway: 192.168.1.1
IPv4 DNS Server:
IPv4 WINS Server:
NetBIOS over Tcpip Enabled: Yes
My hosts file is this like:
127.0.0.1 localhost
192.168.1.100 PC1.home.com
tnsnames.ora
ORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = PC1.home.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl.home.com)
listener.ora
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = PC1.home.com)(PORT = 1521))
Now when I try to open Enterprise Manager I am getting following message:
Enterprise Manager is not able to connect to the database instance. The state of the components are listed below.
So when I look to log in emagent.trc i see this:
ERROR pingManager: nmepm_pingReposURL: Did not receive a response header from repository
What I need to do, to resolve this problem?Thanks for answering. This my logs files:
emagent.trc
Thread-1924 ERROR pingManager: nmepm_pingReposURL: Did not receive a response header from repository
2011-09-08 16:48:34,477 Thread-1924 ERROR pingManager: nmepm_pingReposURL: Did not receive a response header from repository
2011-09-08 16:49:04,585 Thread-464 ERROR pingManager: nmepm_pingReposURL: Did not receive a response header from repository
2011-09-08 16:49:04,679 Thread-464 ERROR pingManager: nmepm_pingReposURL: Did not receive a response header from repository
2011-09-08 16:49:34,787 Thread-2180 ERROR pingManager: nmepm_pingReposURL: Did not receive a response header from repository
2011-09-08 16:49:34,880 Thread-2180 ERROR pingManager: nmepm_pingReposURL: Did not receive a response header from repository
emdctl.trc
2011-09-08 16:30:39,990 Thread-3032 ERROR main: nmectla_agentctl: Error connecting to http://PC1.home.com:3938/emd/main. Returning status code 1
emos.trc
16:53:06,215 [HTTPThreadGroup-2] ERROR conn.ConnectionService verifyRepositoryEx.891 - Invalid Connection Pool. ERROR = Locale not recognized
2011-09-08 16:53:06,262 [HTTPThreadGroup-2] ERROR eml.OMSHandshake processFailure.806 - OMSHandshake failed.(AGENT URL = https://PC1.home.com:3938/emd/main)(ERROR = INTERNAL_ERROR)(CAUSE =java.sql.SQLException: Locale not recognized)
2011-09-08 16:53:06,324 [HTTPThreadGroup-2] ERROR conn.ConnectionService verifyRepositoryEx.891 - Invalid Connection Pool. ERROR = Locale not recognized
2011-09-08 16:53:06,371 [HTTPThreadGroup-2] ERROR eml.OMSHandshake processFailure.806 - OMSHandshake failed.(AGENT URL = https://PC1.home.com:3938/emd/main)(ERROR = INTERNAL_ERROR)(CAUSE =java.sql.SQLException: Locale not recognized) -
How is the best way to connect to the Database ?
I just have a question regarding to the connection to the Oracle DB.
Every time I create a new JSP I am writing java code such as:
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
conn = DriverManager.getConnection("jdbc:oracle:thin:@host:1521:DB",
"user",
"pwd");
Is there a way I can reuse the connection that we create on JDeveloper on the tab Connections, under the Database node ?
Because I would like to centralized more the way how I connect to DB.
Thanks!
GiovaniThat is a nice solution, but only works if you use embedded OC4J, if not you must define datasources, maybe in standalone OC4J, OAS, JBoss, etc
this is because the embedded OC4J automatically create datasources if it sees database connectiones created through Connections Tab -
Best Practice for closing a blocking connection to the database.
Background:
Using toplink/eclipselink to manage the the connection to the database.
We support 3 databases, Oracle, Mysql, and MSSQL.
We host the an application locally (SAAS) and we also distribute it to our clients so they can run it on premise.
Problem:
From time to time the application will execute a route that query the DB and will take 10+ minutes. When we find these queries we generally fix them, but it takes time to fix the problem and roll new code to production. We have also found that if an end user executes the query to many times they can potentially bring the service down - maxing out the database connection, or putting a huge load on the DB effectively rendering the system to a crawl.
During this time period the IT team need a way to abort a transaction. The current approach, for our SAAS solution, to scan the database find to the long running query and kill it. The application is smart enough to recover and everything seems to work fine. This doesn't always work for our on premise customers - often they don't have a DBA or adequate resources to monitor the system. Therefore, I'm looking for a way to have the application kill/close any query that is lasting longer then X minutes. We currently track the duration of every thread so I can get the time the thread has been actively running.
Stack Trace
Currently we keep track of how long each thread is running waiting for a response from the database such as the stacktrace below, I would like to grab the connection and physically close it. Since we are using a java socket and it's in a blocking state there is no way for us to interrupt the thread. The only option is to wait for it to receive a response from the db - kill the sql process - or to close the java socket.
java.net.SocketInputStream.socketRead0(Native Method)
java.net.SocketInputStream.read(SocketInputStream.java:129)
com.mysql.jdbc.util.ReadAheadInputStream.fill(ReadAheadInputStream.java:113)
com.mysql.jdbc.util.ReadAheadInputStream.readFromUnderlyingStreamIfNecessary(ReadAheadInputStream.java:160)
com.mysql.jdbc.util.ReadAheadInputStream.read(ReadAheadInputStream.java:188)
com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1931)
com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2380)
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2909)
com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1600)
com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1695)
com.mysql.jdbc.Connection.execSQL(Connection.java:2998)
com.mysql.jdbc.Connection.execSQL(Connection.java:2927)
com.mysql.jdbc.Statement.executeQuery(Statement.java:956)
org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeSelect(DatabaseAccessor.java:854)
org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:573)
org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:501)
org.eclipse.persistence.sessions.server.ServerSession.executeCall(ServerSession.java:536)
org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:205)
org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:191)
org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeSelectCall(DatasourceCallQueryMechanism.java:262)
org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeSelect(DatasourceCallQueryMechanism.java:244)
org.eclipse.persistence.queries.DataReadQuery.executeNonCursor(DataReadQuery.java:188)
org.eclipse.persistence.queries.DataReadQuery.executeDatabaseQuery(DataReadQuery.java:144)
org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.java:664)
org.eclipse.persistence.queries.DataReadQuery.execute(DataReadQuery.java:130)
org.eclipse.persistence.internal.sessions.AbstractSession.internalExecuteQuery(AbstractSession.java:2243)
org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1181)
org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1165)
org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1125)
Question
What is the best way to grab the connection and close it - from another thread?The reason for changing the namespace is to guarantee that they appear as different versions. The namespace is part of the strong name of the DLL when deployed. Yes they will be deployed to separate servers because a server can only belong
to one farm. But when you are doing a migration it won't be clear that you need to install the 2013 version since the .DLL will report that it exists in the 2010 farm already. It will work without changing the namespace, but it would be best to differentiate
versions at that level to avoid confusion.
Paul Stork SharePoint Server MVP
Principal Architect: Blue Chip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem. -
Connecting to a database on a hosted site
I have a mysql database on the site where my web page is hosted.
I would like to write an application that sits on a users computer and allows them to send data to this database. Ther server has a firewall and its linux.
How would anyone suggest I do this.
How would I connect to the database ?
Would I need JDBC?
if so what would the connection look like ie
connection con = DriverManager.getConnection( url, "mylogin", "thepassword");
what would url =?
look forward to hearing from you
Gina1234I would like to write an application that sits on a
users computer and allows them to send data to this
database. Ther server has a firewall and its linux.
How would anyone suggest I do this.
How would I connect to the database ?I s'pose the JDBC code could be called from a server-side component (like servlet). This will prevent the users from requiring the driver JAR on their computers.
Would I need JDBC?Yes.
if so what would the connection look like ie
connection con = DriverManager.getConnection( url,
"mylogin", "thepassword");
what would url =?Check the MySql driver documentation. A quick Google search would also give the connection URL. -
New tools in /usr./sap/put/exe do not connect to the database.
As per CHECKS LOG, In the Initialization phase.
the new tools in /usr/sap/put/exe do not connect, Check environment settings or adapt language files.
currently on a distributed env, with 4.6D kernel, oracle 10.2.02 client on CI
Oracle 10.2.0.2 server on the database.
Initialization phase fails with the above error. please help.. urgent....
I believe the new set of R3trans, tp, R3load tools in /usr/sap/put/exe are unable to connect to the database, while the current set of tools in /usr/sap/<SID>exe/run are working fine.
DBCONNCHECK.LOG for further details.
4 ETW000 R3trans version 6.14 (release 700 - 18.09.06 - 09:35:00).
4 ETW000 ===============================================
4 ETW000
4 ETW000 date&time : 08.02.2008 - 23:54:36
4 ETW000 control file: <no ctrlfile>
4 ETW000 R3trans was called as follows: R3trans -d -w C:\oracle\log
4 ETW000 trace at level 2 opened for a given file pointer
4 ETW000 [dev trc ,00000] Fri Feb 08 23:54:38 2008 0.000000
4 ETW000 [dev trc ,00000] db_con_init called 0.000000
4 ETW000 [dev trc ,00000] create_con (con_name=R/3) 0.000000
4 ETW000 [dev trc ,00000] Loading DB library 'dboraslib.dll' ... 0.000000
4 ETW000 [dev trc ,00000] load shared library (dboraslib.dll), hdl 0 10389 0.010389
4 ETW000 [dev trc ,00000] using "D:\usr\sap\put\exe\dboraslib.dll" 4689 0.015078
4 ETW000 [dev trc ,00000] Library 'dboraslib.dll' loaded 5920 0.020998
4 ETW000 [dev trc ,00000] function DbSlExpFuns loaded from library dboraslib.dll
4 ETW000 102 0.021100
4 ETW000 [dev trc ,00000] Version of 'dboraslib.dll' is "700.08", patchlevel (0.73)
4 ETW000 81 0.021181
4 ETW000 [dev trc ,00000] function dsql_db_init loaded from library dboraslib.dll
4 ETW000 11 0.021192
4 ETW000 [dev trc ,00000] function dbdd_exp_funs loaded from library dboraslib.dll
4 ETW000 21 0.021213
4 ETW000 [dev trc ,00000] New connection 0 created 15 0.021228
4 ETW000 [dev trc ,00000] 0: name = R/3, con_id = -000000001 state = DISCONNECTED, perm = YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
4 ETW000 29 0.021257
4 ETW000 [dev trc ,00000] db_con_connect (con_name=R/3) 14 0.021271
4 ETW000 [dev trc ,00000] find_con_by_name found the following connection for reuse:
4 ETW000 12 0.021283
4 ETW000 [dev trc ,00000] 0: name = R/3, con_id = 000000000 state = DISCONNECTED, perm = YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
4 ETW000 15 0.021298
4 ETW000 [dev trc ,00000] Prepending C:\oracle\ora10_32 to Path. 178 0.021476Yes i am on x86_64 bit Windows 2003 SP1, 4.6D kernel is running in 32-bit mode.Database sits on a diffrent host and is upgraded to Oracle 10.2.0.2.
In that case , do i need install PREPARE in 32 bit mode so that all executables in put\exe will be working in 32 bit mode.
Could you please also look into note,
906205 - Upgrading SAP system <= 4.6 on x86_64 Windows
Actions after PREPARE (before you start the upgrade)
1. -
2. Unpack ORACLE Client 10.2 into directories \usr\sap\put\exe and \usr\sap\<SID>\sys\exe\run.
a) Mount the CD which contains the ORACLE 10.2 client software and change to subdirectory OCL_WINDOWS_X86_64.
b) Start a command prompt and change into directory \usr\sap\put\exe.
c) Type 'sapcar.exe -xvf <DIR>\OCL10264.SAR'.
d) Start a command prompt and change into directory \usr\sap\<SAPSID>\sys\exe\run.
e) Type 'sapcar.exe -xvf <DIR>\OCL10264.SAR'
As per the note, 64 bit client has to uncarred "After Prepare before Upgrade", since the tools in /usr/sap/put/exe are not able to connect to the database since they are in 64 bit mode, and my Initialization phase fails, i uncarred the client into put/exe during PREPARE.
Please guide. What problems should i anticipate in the PREPARE phase when it builds shadow instance.
Govind. -
How can I speed up the connection to the database?
I am running a JSP application with regular JavaBeans not EJB and connecting to the database through these beans. The connection is set to stay in memory as long as the bean is in session. However when I am running more than 7 sql statements seperatly the execution of the page slows down.
I have tried using connection pooling but doesn't help much.
I am not using the JDBC setting in JRUN, I am connecting through the jdbc.odbc drivers provided by the JDK. Basically coded the connection and the connection pool.
Is there something else that can be done to speed up the execution of the page?
Thanks in advanceThank you all for your input I was trying to work this project to learn JSP so I am not looking at purchasing any drivers right now. That is the reason why I stuck to the JDBC-ODBC Bridge. Are there any other drivers available for MS SQL Servers that are free.
Jschell,
That suggests you are taxing the system. It could be >connections. It could also be network, cpu, bus, etc. It >could also be memory, if your app starts swapping to >the hard drive it will get substantially slower.How can i figure out which of the above (i.e. memory, cpu, connections, network) are causing the problem.
(Presumably you explicitly close your >ResultSets/Statements/Connections when you are >done with them.)You are right about that yes I am closing them at the end of the session, which I think should be after all of the SQL's get executed but I could be wrong it might be openeing a new connection for each SQL which inturn might be the reason for this whole problem. I will take a look into that.
Thank you all once again.
Maybe you are looking for
-
Screen sharing mobile account (open directory) not working
Can anybody else verify that screen sharing, through Remote Management, does not work when trying to connect to mobile accounts on 10.7 Lion? Please note, when I say through Remote Management, I mean that under System Prefs->Sharing->Screen Sharing i
-
Recover Database complains of version
This is not technicaly a RMAN question but it seemed the most appropriate forum. I am testing some database recovery scenarios so I know what I'm doing if I have a real problem. I have a database that I have replicated to another machine and have cur
-
Pascal code to asscess database
Hi programmers, Can we use Pascal code to access an Oracle database and if it is please point me to where I can find sample PASCAL code. We are on Linux server running Redhat2.5 with Oracle 9i. I am developing an application in Pascal, could use exte
-
I have many input forms that have edit button. When the user wants to modify the data displayed he has to press edit button otherwise it will always be in no-edit mode. The problem is how to accomplish this. I am doing this currently is by use changi
-
Changew with consolidate in iTunes 11.1.5.5
Before I upgraded iTunes some days ago, all the songs where consolidated in W:\iTunes\Music\<Artist>\<Album> Now it goes in W:\iTunes\<Artist>\<Album> which makes it a lot more inconvenient to look for files in windows explorer. Any idea how I could