Error Connecting to Database using Weblogic Datasource
Hi,
I am trying to connect to oracle database from my program using weblogic DataSource. I am using JDK1.3.1.08 , weblogic 7.
I am using the following code to get Connection object.
contextFactory ="weblogic.jndi.WLInitialContextFactory";
providerURL="t3://192.168.0.29:7001";
dataSource ="temp_ds";
if(contextFactory!=null)
properties.put(Context.INITIAL_CONTEXT_FACTORY,contextFactory);
if(providerURL !=null)
properties.put(Context.PROVIDER_URL, providerURL);
initCtx = new InitialContext(properties);
DataSource ds= (javax.sql.DataSource) initCtx.lookup(dataSource);
Connection con = ds.getConnection();
con.setAutoCommit(false);
I am getting the following error while running the program. Can any body help?
javax.naming.CommunicationException. Root exception is weblogic.socket.Unrecove
rableConnectException: [JDK 1.3 or higher required]
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.io.IOException.<init>(IOException.java:47)
at java.net.SocketException.<init>(SocketException.java:36)
at java.net.ConnectException.<init>(ConnectException.java:34)
at weblogic.socket.UnrecoverableConnectException.<init>(UnrecoverableCon
nectException.java:19)
at weblogic.rjvm.RJVMManager.checkVersion(RJVMManager.java:451)
at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java
:201)
at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:191)
at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:203)
at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:169)
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:262)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(Compi
led Code)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLIni
tialContextFactoryDelegate.java:221)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialCont
extFactory.java:149)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:671)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242)
at javax.naming.InitialContext.init(InitialContext.java:218)
at javax.naming.InitialContext.<init>(InitialContext.java:194)
at WeblogicTest.getConnection(WeblogicTest.java:40)
at WeblogicTest.<init>(WeblogicTest.java:23)
at WeblogicTest.main(WeblogicTest.java:18)
at WeblogicTest.printTableData(Compiled Code)
at WeblogicTest.<init>(WeblogicTest.java:24)
at WeblogicTest.main(WeblogicTest.java:18)
Regards
Kumar
I am not sure if this is the reason, but going thru the stack trace ...
javax.naming.CommunicationException. Root exception is weblogic.socket.Unrecove
rableConnectException: [JDK 1.3 or higher required]Make sure you have JDK 1.3 or higher installed.
Cheers
Sekar
Similar Messages
-
Error in connecting to database using a datasource in a jsp file
Dear SDN's,
I have a program which retreives Data from the Employee table and displays on portal page.
What i have done is,
I have created a pageprocessor component, with 2 jsp files one is for data insert and other is for retriving the data from the database table.
For inserting the records, i have written the code in the Even handling method of Page Proceessor component.
For retriving the data i have written the following jsp code in the jsp file and this i am calling in PBO of pageprocessor component based on the condition.
When i try to insert the records it is working fine.But i am getting an error when try to execute the retreving the records in other jsp.
Please go through the following code and correct me if anything is wrong here.
<b><%@ page language="java" %>
<%@ page import ="java.lang.*,java.sql.Connection,javax.sql.DataSource,java.sql.Statement,java.sql.ResultSet,javax.naming.InitialContext" %>
<body>
<center>
<table border="1">
<tr cellpadding="1">
<th>Empid</th>
<th>Name</th>
<th>City</th>
</tr>
<%
InitialContext initialContext = new InitialContext();
DataSource ds = (DataSource) initialContext.lookup("jdbc/MyDS");
Connection conn = ds.getConnection();
stmt = conn.createStatement();
ResultSet rs=stmt.executeQuery("select * from EMP_DETAILS");
while(rs.next())
out.println(rs.getString("EMPID"));
out.println(rs.getString("NAME"));
out.println(rs.getString("CITY"));
%>
<tr cellpadding="1">
<td><%=rs.getString("EMPID")%></TD>
<TD><%=rs.getString("NAME")%></td>
<td><%=rs.getString("CITY")%></td>
<br>
</table>
catch (Exception e) {
e.printStackTrace();
out.println("Exception" + e);
}</b>
The error what i am getting is.
Portal Runtime Error
An exception occurred while processing a request for :
iView : JSPdbProject.Empjava
Component Name : JSPdbProject.Empjava
Error occurs during the rendering of jsp component.
Exception id: 04:29_16/11/06_0005_507480350
See the details for the exception ID in the log fileHi Sumathi,
here is the error log.
#1.5#0017087C79D800760000004700001C000004225B24927786#1163674757780#com.sap.portal.portal#sap.com/irj#com.sap.portal.portal#J2EE_ADMIN#10231##OBTDEV15_O50_507480350#J2EE_ADMIN#6afb6760756111dbaf3c0017087c79d8#SAPEngine_Application_Thread[impl:3]_24##0#0#Error#1#/System/Server#Java###Exception ID:04:29_16/11/06_0005_507480350
[EXCEPTION]
#1#com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Resource
Component : JSPdbProject.Empjava
Component class : Empjava
User : J2EE_ADMIN
at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:969)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:444)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:527)
at com.sapportals.portal.prt.component.AbstractComponentResponse.include(AbstractComponentResponse.java:89)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:232)
at com.sapportals.portal.htmlb.page.JSPDynPage.doOutput(JSPDynPage.java:76)
at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:129)
at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
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: com.sapportals.portal.prt.component.PortalComponentException: Error occurs during the compilation of java generated from the jsp
at com.sapportals.portal.prt.core.broker.JSPComponentItem.getComponentInstance(JSPComponentItem.java:116)
at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.service(PortalComponentItemFacade.java:355)
at com.sapportals.portal.prt.core.broker.PortalComponentItem.service(PortalComponentItem.java:934)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:435)
... 38 more
Caused by: com.sapportals.portal.prt.servlets_jsp.server.compiler.CompilingException: Error occurs during the rendering of jsp component
at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:2189)
at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.compile(JSPCompiler.java:81)
at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.run(JSPCompiler.java:140)
at com.sapportals.portal.prt.core.broker.JSPComponentItem.compileJSP(JSPComponentItem.java:291)
at com.sapportals.portal.prt.core.broker.JSPComponentItem.getComponentInstance(JSPComponentItem.java:141)
... 41 more
Thanks,
sireesha.B -
Trying to Install RMS application 13.2.2 and I get past the pre-installation checks and when I get to the Data Source details and enter the data source details with the check box checked to validate the schema/Test Data Source I get the following error:
Error Connecting to database URL jdbc:oracle:oci:@rmsdbtst as user rms13 java.lang.Exception:UnsatisfiedLinkError encountered when using the Oracle driver. Please check that the library path is set up properly or switch to the JDBC thin client oracle/jdbc/driver/T2CConnection.getLibraryVersioNumber()
Checks performed:
RMS Application code location and directory contents:
[oracle@test-rms-app application]$ pwd
/binary_files/STAGING_DIR/rms/application
[oracle@test-rms-app application]$ ls -ltr
total 144
-rw-r--r-- 1 oracle oinstall 272 Dec 7 2010 version.properties
-rw-r--r-- 1 oracle oinstall 405 Jan 16 2011 expected-object-counts.properties
-rw-r--r-- 1 oracle oinstall 892 May 13 2011 ant.install.properties.sample
-rw-r--r-- 1 oracle oinstall 64004 Jun 6 2011 build.xml
drwxr-xr-x 9 oracle oinstall 4096 Jun 16 2011 rms13
drwxr-xr-x 3 oracle oinstall 4096 Jun 16 2011 installer-resources
drwxr-xr-x 3 oracle oinstall 4096 Jun 16 2011 antinstall
drwxr-xr-x 2 oracle oinstall 4096 Jun 16 2011 ant-ext
drwxr-xr-x 5 oracle oinstall 4096 Jun 16 2011 ant
-rw-r--r-- 1 oracle oinstall 11324 Dec 18 09:18 antinstall-config.xml.ORIG
-rwxr-xr-x 1 oracle oinstall 4249 Dec 18 10:01 install.sh
drwxr-xr-x 4 oracle oinstall 4096 Dec 18 10:06 common
-rw-r--r-- 1 oracle oinstall 16244 Dec 19 10:37 antinstall-config.xml
-rw-r--r-- 1 oracle oinstall 689 Dec 19 10:37 ant.install.log
[oracle@test-rms-app application]$
Application installation:
[oracle@test-rms-app application]$ ./install.sh
THIS IS the driver directory
Verified $ORACLE_SID.
Verified SQL*Plus exists.
Verified write permissions.
Verified formsweb.cfg read permissions.
Verified Registry.dat read permissions.
Verified Java version 1.4.2.x or greater. Java version - 1.6.0
Verified Tk2Motif.rgb settings.
Verified frmcmp_batch.sh status.
WARNING: Oracle Enterprise Linux not detected. Some components may not install properly.
Verified $DISPLAY - 172.16.129.82:0.0.
This installer will ask for your "My Oracle Support" credentials.
Preparing installer. This may take a few moments.
Your internet connection type is: NONE
Integrating My Oracle Support into the product installer workflow...
[move] Moving 1 file to /binary_files/STAGING_DIR/rms/application
Installer preparation complete.
MW_HOME=/u01/app/oracle/Middleware/NewMiddleware1034
ORACLE_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/as_1
ORACLE_INSTANCE=/u01/app/oracle/Middleware/NewMiddleware1034/asinst_1
DOMAIN_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/user_projects/domains/rmsClassDomain
WLS_INSTANCE=WLS_FORMS
ORACLE_SID=rmsdbtst
JAVA_HOME=/u01/app/oracle/jrockit-jdk1.6.0_45-R28.2.7-4.1.0
Launching installer...
To make sure I have connectivity from the app server to the database (on a database server) here are the steps followed:
[oracle@test-rms-app application]$ tnsping rmsdbtst
TNS Ping Utility for Linux: Version 11.1.0.7.0 - Production on 19-DEC-2013 10:41:40
Copyright (c) 1997, 2008, Oracle. All rights reserved.
Used parameter files:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = test-rms-db.vonmaur.vmc)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = rmsdbtst)))
OK (0 msec)
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ sqlplus rms13@rmsdbtst
SQL*Plus: Release 11.1.0.7.0 - Production on Thu Dec 19 10:46:18 2013
Copyright (c) 1982, 2008, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ ping test-rms-db
PING test-rms-db.vonmaur.vmc (192.168.1.140) 56(84) bytes of data.
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=1 ttl=64 time=0.599 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=2 ttl=64 time=0.168 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=3 ttl=64 time=0.132 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=4 ttl=64 time=0.158 ms
64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=5 ttl=64 time=0.135 ms
--- test-rms-db.vonmaur.vmc ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4001ms
rtt min/avg/max/mdev = 0.132/0.238/0.599/0.181 ms
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ uname -a
Linux test-rms-app.vonmaur.vmc 2.6.18-128.el5 #1 SMP Wed Jan 21 08:45:05 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
[oracle@test-rms-app application]$
[oracle@test-rms-app application]$ cat /etc/*-release
Enterprise Linux Enterprise Linux Server release 5.3 (Carthage)
Red Hat Enterprise Linux Server release 5.3 (Tikanga)
[oracle@test-rms-app application]$
The database is created and all the batch file scripts have been successfully deployed. Now working on the application server. The Weblogic server is installed and 11g forms and reports are installed successfully.
Any help would be helpful.
Thanks,
Ram.Please check MOS Notes:
FAQ: RWMS 13.2 Installation and Configuration (Doc ID 1307639.1) -
How to connect Oracle 7.x database using weblogic 11g
Hi,
For one of my requirement, I need to connect to a Oracle 7.x database using weblogic 11g Application server.
Any idea?Tried as per the suggestion from the link :
http://jvzoggel.wordpress.com/2011/07/26/weblogic-ojdbc-driver/
It worked. -
Error: unable to connect to database using user system. please check privil
Hi All,
i have 2 oracle databases in my system (ORCL,RR). i am able to connect both databases i sql prompt. but in ggsci prompt not able to connect rr database due to below error
dblogin userid system, password tiger.
Error: unable to connect to database using user system. please check privil
Can you please help me to connect RR database also in GGSCI promt.
Thanks
RajaDid you try with RR database tns name or sid while connecting ?
If No then try this ,
GGSCI (ATP) 6> DBLOGIN USERID SYSTEM@<tns alias name>
Password:
Successfully logged into database.
HTP
Annamalai. -
Error: Unable to connect to database using connection_pool
Hi experts
I have created repository and reports on my windows machine using ODBC , Now i have tranfered this to on unix with OCI, But when i am connecting to my dtabase it is showng the error:
Error: Unable to connect to database using connection_pool
Please suggest how to resolve this..Have you install the Oracle client in your Unix server?
-
Hello friends,
I know this question has been asked in a lot of other threads; but my problem is quite unique and that's why I'm starting a new thread...
When I try to access an Oracle 10g database through a Servlet code using a JDBC thin driver (both Tomcat and the database are running on Solaris 9), I get the following error:
"Error connecting to database - java.sql.SQLException: Io exception: The Network Adapter could not establish the connection"
However, there is another application running on the same server using the same database server (only the actual databases being used differ) and it is able to access the database without any issues. Both of these are absolutely similar applications and I couldn't think of any reasons why one would work and the other wouldn't. I thought they might be conflicting each other and tried running only the problematic application. But even then, I get the same error.
I know this might not be too relevant but to provide you some more information on the environment, the applications are running on separate Tomcat instances on the same server and they are connected to an Apache web server through Mod jk.
Any help in solving this problem is greatly appreciated!
Thanks!
Regards,
YogaeshYogaesh wrote:
The 'application' that works is also a Tomcat application... It's exactly same as the problematic application in terms of the configuration and stuff... As for the typo errors, I copied the config info and pasted it... So pretty much it should be the same. And to add an additional note, I'm able to connect to the database from my localhost... I mean if I run the problematic application from localhost (without Apache and directly hitting Tomcat) I'm able to access the screens...
The second part of that (localhost) usually isn't all that useful. You know it is a connection failure so that means the code is running and technically successfully (since connection failure is a legitimate runtime error.)
You know it isn't a firewall issue because it connects from another app in tomcat. So it must be a configuration issue.
So something like one of the following.
1. It isn't the same (we already know this but this particular item means that it is not in fact exactly the same because you deliberately or accidently modified it.)
2. It isn't pulling the right config. Maybe you aren't packaging it, maybe it is buffered on the server and it is using that rather than what you think it is.
3. Java code is referring to the wrong name.
Do this, change the configuration so it points to a server that does not exist. Repack, redeploy. If the error is the same (no diff) then you know that it is not running the code that you think it is. If it does change then you know that it can only be 1. -
Cant connect my database using net service_name
Good Morning to all;
I trying to connect my database using net service_name , but i am getting error.
I have tnsnames.ora entry and listener.ora entry.
Please help me to crack this error.
SQL> select name from v$database;
NAME
ORCLTEST
SQL> grant connect ,resource to u1 identified by u1;
Grant succeeded.
SQL> grant sysdba to u1;
Grant succeeded.
SQL> show parameter pass;
NAME TYPE VALUE
remote_login_passwordfile string EXCLUSIVE
SQL> shut immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
From DBS Directory :
[oracle@linuxserver dbs]$ orapwd file=orapworcltest password=asdf1234 entries=3
export ORACLE_SID=orcltest
[oracle@linuxserver ~]$ sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Sat Mar 9 19:24:22 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
ERROR when trying to connect
SQL> conn u1/u1@ORCLMYTEST
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory
SQL> conn u1/asdf1234@ORCLMYTEST
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory
Thanks in advance ..Can i connect my database using username/password@netservice_name ?
Yes, you should. Please post the result of "lsnrctl stat LISTENER_ORCL".
*[oracle@linuxserver admin]$ lsnrctl stat LISTENER_ORCL*
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 09-MAR-2013 19:58:18
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=linuxserver)(PORT=1521)))
STATUS of the LISTENER
Alias LISTener_ORcl
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 09-MAR-2013 11:10:14
Uptime 0 days 8 hr. 48 min. 3 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/10.2.0/db_1/network/log/listener_orcl.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=linuxserver)(PORT=1521)))
Services Summary...
Service "MYDB.PROD.ORCLPROD.COM" has 1 instance(s).
Instance "orclprod", status UNKNOWN, has 1 handler(s) for this service...
Service "MYDB.TEST.ORCLTEST.COM" has 1 instance(s).
Instance "orcltest", status UNKNOWN, has 1 handler(s) for this service...
Service "asdf" has 1 instance(s).
Instance "asdf", status READY, has 1 handler(s) for this service...
Service "asdfXDB" has 1 instance(s).
Instance "asdf", status READY, has 1 handler(s) for this service...
Service "asdf_XPT" has 1 instance(s).
Instance "asdf", status READY, has 1 handler(s) for this service...
Service "orclprod" has 1 instance(s).
Instance "orclprod", status READY, has 1 handler(s) for this service...
Service "orclprodXDB" has 1 instance(s).
Instance "orclprod", status READY, has 1 handler(s) for this service...
Service "orclprod_XPT" has 1 instance(s).
Instance "orclprod", status READY, has 1 handler(s) for this service...
Service "orcltest" has 1 instance(s).
Instance "orcltest", status READY, has 1 handler(s) for this service...
Service "orcltestXDB" has 1 instance(s).
Instance "orcltest", status READY, has 1 handler(s) for this service...
Service "orcltest_XPT" has 1 instance(s).
Instance "orcltest", status READY, has 1 handler(s) for this service...
The command completed successfully -
Hi There,
I have Essbase 11.1.1.3, and I just have Reporting Studio installed , then I try to create new Report, insert Grid, then Database Connection property, I put essbase server name (same box), then admin user name and password, Application and database, I got the follwoing error:
Error connecting to database connection ApplicationName: CubeName
How can I fix this?
I did install Reporting Studio first, then found out WoekSpace is not installed, then I installed work space. Does this have anything to do with the connection error?
Thanks
Edited by: user8091395 on Jul 15, 2010 3:09 PMThank you for all for the reply.
This is my test box, which I have all essbase 11.1.1.3 components installed at this box (essbase server, eas, essbase studio), and yes, I can connect fine using Excel Add in from my laptop.
Essbase has been running for a while, then we need to have reporting tool, so I decide to install Reporting studio now, I download Financial Reporting studio zip file, install successfully at current essbase box. and got error at login, then realize I am missing workspace, then I install workspace, now I can login to reporting studio.
Only thing now is that I get the error I mention when connecting to essbase app and db.
Another thing I would like to mention is that I am using native essbase security on my test box, not share service.
Thanks again
Edited by: user8091395 on Jul 16, 2010 2:10 PM -
Error connecting to database thru tnsnames.ora in linux
Hi,
I can connect to database using service and port. Now i want to connect using the tnsnames. The following code returns error.
import java.sql.;*
import oracle.jdbc.OracleDriver;
import oracle.jdbc.pool.OracleDataSource;
public class Test
public Test()
System.setProperty("oracle.net.tns_admin","\oracle\product\TNS");
public static Connection getConnection() throws SQLException
OracleDataSource ds = new OracleDataSource();
ds.setTNSEntryName("CMAD");
ds.setDriverType("thin");
ds.setUser("scott");
ds.setPassword("tiger");
Connection conn = ds.getConnection();
return conn;
public void run () throws SQLException
Connection conn = getConnection();
System.out.println("Check Auto Commit = " + conn.isClosed());
conn.close();
public static void main(String[] args)
Test test = new Test();
try
test.run();
System.out.println("all done..");
catch (SQLException e)
e.printStackTrace();
\oracle\product\TNS is the place where my tnsnames.ora is stored and is set as TNS_ADMIN path in linux
I encounter the follwing error while running the class file of above code
java.sql.SQLException: Io exception: SO Exception was generated
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:124)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:161)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:273)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:327)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:365)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:150)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:31)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:563)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:195)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:145)
at Test.getConnection(Test.java:41)
at Test.run(Test.java:47)
at Test.main(Test.java:57)
Could someone help me? What is a SO exception?
Thanks in advance.
AllenHi,
Socket exception?
What does your CMAD TNS entry look like?
Regards
Peter -
Am trying to connect to database using thin driver am getting an erro
Hi,
Am trying to connect to database using thin driver am getting an error.may i know the exact problem. If any one provide the solution in steps wise better.The following is the error.
Exception in thread "main" java.lang.ClassNotFoundException: oracle.jdbc.oracledriver
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at JdbcEx.main(JdbcEx.java:15)
Thanks
sreekanthAm trying to connect to database using thin driver am getting an error.may i know the exact problem. If any one provide the solution in steps wise better.The following is the error.
Exception in thread "main" java.lang.ClassNotFoundException: oracle.jdbc.oracledriverThe JAR file is not in your classpath. Depends on what JAR you are using (ojdbc14.jar, ojdbc5.jar, etc). Bottom line, it can't find the class for the driver due to the JAR not being in the classpath. -
How to connect to database using sqlplusW (windows based sqlPlus)
Hi
Thank you for reading my post
I did some search and i find that i should use some kind of SYSTEM/SYSTEM@ORCLE
to connect to database using windows based sqlplus.
in the above SYSTEM is username and password and ORCLE is SID.
but sqlplusw says that
could not resolve the connect identifier specified.
where i can find complete information about HOST string ?
thanksYou can look inside yours tnsnames.ora file it can be found in %ORACLE_HOME%\network\admin
MOB92 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = xxx)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = MOB92.world)
Here my network service name in MOB92 so in sqlplus I would use:
system
password
mob92
and it should work. If you have no such entry in tnsnames.ora file you can use for example Network Configuration Assistant to configure your network service name.
Best Regards
Krystian Zieja / mob -
How to connect oracle database using jsf
how to connect oracle database using javaserver faces with connection pooling
Here is one way...
http://jakarta.apache.org/commons/dbcp/ -
How to connect mysql database using xml
welcome to all,
here my doubt is how to connect mysql database using xml file, how to integrate xml file and jsp file and how to access data from dabase using jsp file. can any one help me
regardsShort answer: you wouldn't do any of those things. The first two are meaningless and the third is a bad practice. I have no idea what those ideas were supposed to achieve so I have no idea what tutorials I should suggest to you.
-
Hello
I have just finished a dbcopy of Maxdb 7.6 to a new system with initilization.i can bring the db online. I have ran the xuser command to fix the db users as below command as per note 39439
i changed them in home dir of sidadm,sqdsid
xuser -U DEFAULT -u SAP<SID>,<password> -d <database_name> -n <database_server> -S SAPR3 -t 0 -I 0 set
c) DBM user: for example, CONTROL.
xuser -U c -u CONTROL,<password> -d <database_name> -n <database_server> -S INTERNAL set
d) SYSDBA user: for example, SUPERDBA.
xuser -U w -u SUPERDBA,<password> -d <database_name> -n <database_server> -S INTERNAL set
But iam having the below error now when trying to bring the SAP system up in dev_w0
C Try to connect (DEFAULT) onconnection 0 ...
C
C Mon Dec 19 21:46:11 2011
C *** ERROR => Connect to database failed, rc = -4008 (POS(1) Unknown user name/password combinati
on)
[dbsdbsql.cpp 137]
B ***LOG BY2=> sql error -4008 performing CON [dbsh#3 @ 1208] [dbsh 1208 ]
B ***LOG BY0=> POS(1) Unknown user name/password combination [dbsh#3 @ 1208] [dbsh 1208 ]
B ***LOG BY2=> sql error -4008 performing CON [dblink#8 @ 433] [dblink 0433 ]
B ***LOG BY0=> POS(1) Unknown user name/password combination [dblink#8 @ 433] [dblink 0433 ]
M ***LOG R19=> ThInit, db_connect ( DB-Connect 000256) [thxxhead.c 1537]
M in_ThErrHandle: 1
M *** ERROR => ThInit: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c 10837]
M
is there something that i missed somewhere?
Any ideas welcomeerpsyscs1:cs1adm 46> xuser list
XUSER Entry 1
Key :DEFAULT
Username :SAPCS1
UsernameUCS2:S.A.P.C.S.1. . . . . . . . . . . . . . . . . . . . . . . . . . .
Password :?????????
PasswordUCS2:?????????
Dbname :CS1
Nodename :erpsyscs1
Sqlmode :SAPR3
Cachelimit :-1
Timeout
Isolation
Charset :<unspecified>
XUSER Entry 2
Key :c
Username :CONTROL
UsernameUCS2:C.O.N.T.R.O.L. . . . . . . . . . . . . . . . . . . . . . . . . .
Password :?????????
PasswordUCS2:?????????
Dbname :CS1
Nodename :erpsyscs1
Sqlmode :INTERNAL
Cachelimit :-1
Timeout :-1
Isolation :-1
Charset :<unspecified>
XUSER Entry 3
Key :c_J2EE
Username :CONTROL
UsernameUCS2:C.O.N.T.R.O.L. . . . . . . . . . . . . . . . . . . . . . . . . .
Password :?????????
PasswordUCS2:?????????
Dbname :CS1
Nodename :erpsyscs1
Sqlmode :SAPR3
Cachelimit :-1
Timeout
Isolation
Charset :<unspecified>
XUSER Entry 4
Key :w
Username :SUPERDBA
UsernameUCS2:S.U.P.E.R.D.B.A. . . . . . . . . . . . . . . . . . . . . . . . .
Password :?????????
PasswordUCS2:?????????
Dbname :CS1
Nodename :erpsyscs1
Sqlmode :INTERNAL
Cachelimit :-1
Timeout :-1
Isolation :-1
Charset :<unspecified>
Maybe you are looking for
-
Next version Wish List (6i-??)
Is there one? My $0.02: a. Give me a way to change the subject line in mail (globally with individual report override would be nicest) b. (And I'm sorry for mentioning this) Native excel X.0 export c. Better Queue Manager, although it is pretty good
-
KM Content:- unable to upload and Download KM Content
Hi, we have three systems dev,quality,and production. i have some files in KM Quality which have to be transported to production. i can able the download file "fullupdate.zip" from quality. but when i am uploading into production nothing is happening
-
Ever since I downloaded iOS7 my 5 constantly freezes and I have to restart my phone (literally 6-7 times an hour). It randomly turns off. The battery doens't last more than 2 hours. It restarts itself randomly, during phone calls and when its plug
-
Photoshop Layer Effects not recognized
Since it's so easy in photoshop to apply a layer effect, shadow, lighting, etc, i thought we could get it while creating a button, but i had no success. Do we really have to flatten the effects of the photoshop file ?
-
Why won't my facetime on my mac let me sign in?
My facetime on macbook air won't let me sign in. I keep trying, and I even tried to create a new user id. I have no idea why it won't work. It keeps telling me to check my network connection and try again later. Everything else on my computer is work