JDBC Connection to MSSQL-Database in Netweaver Portal
We are running into problems when trying to create a Query- or JDBC iView to retrieve data from a MS SQL server table.
Here is what we have tried on 2 different EP portals.
Portal versions:
6.0.12.0.0 (NW04 SPS12)
6.0.14.0.0 (NW04 SPS14)
Step 1: Created a JDBC system.
Connection URL - jdbc:microsoft:sqlserver://<servername>:1433;DatabaseName=name
Driver Class Name - com.microsoft.jdbc.sqlserver.SQLServerDriver
Connection Factory Class JDBCFactory
Admin User ID (DQE) database admin name
Admin Password (DQE) database admin password
User Mapping Type admin;user
Step 2: Created an alias for this JDBC system, for example, test_JDBC_system.
Step 3: Added user mapping.
Search for my user ID in the User Mapping in User Admin section, click on Edit, and select the JDBC alias name test_JDBC_system in the system dropdown list, and then put database admin user name and database admin password in the fields User and Password, and click on Save.
Step 4: Tested the connection.
Connection Test Through DQE was successful, but Connection Test for Connectors failed. Error message was:
Results
Retrieval of default alias successful
Connection failed. Make sure user mapping is set correctly and all connection properties are correct.
Step 5: Created a JDBC stored procedure iView.
Got an error message like this Error connecting to backend application. Check your system and user mapping settings. Contact your system administrator if problem persists.
Step 6: Because we couldnt successfully create JDBC iView, so we tried to created a Query iView instead.
It showed me the system alias, and I could drill down all the way to the table level and put in my query, for example, SELECT cdb_admin.Land.Land FROM cdb_admin.Land (table name is land and the column name is also land, cdb_admin is the admin user). But it gave me an error when previewing it Query execution failed. Exception message:
Here are our issues/thoughts:
We dont know how to do the user mapping, not sure what to put into User and Password fields.
The documents saying these versions have the SQL Server Driver installed already, but we couldnt see the com.microsoft.jdbc.sqlserver.SQLServerDriver under System Drivers in JDBC connector in SAP Visual Admin.
In some document, it used com.sap.jdbc.sqlserver.SQLServerDriver, and we dont see that in the system driver list either.
We tried to deploy MS SQL driver 3 jar files msbase.jar, mssqlserver.jar, msutil.jar by adding a new driver under JDBC connector in SAP VA. We gave it a name MSSQL. But we dont know if we referred to the SQLServerDriver class correctly by entering Driver Class Name - com.microsoft.jdbc.sqlserver.SQLServerDriver when creating the JDBC system in the portal.
It seems like we connected to the database server and tables when using Query iView, but why did we get this Query execution failed. Exception message: ? We tried to modify the query to select land from land too, but it didnt work either, same error message. So is it really the SQL statement wrong? There is not much documentation on Query iView and can you give me some hints?
Thanks very much..
Hi,
in "User" and "Password" field you need to give database administrator User-ID and Password.
You just need to give proper Database url and Driver class name to access MS SQL thro JDBC system.
Have you set the security settings for the database, check the <b>prerequsites</b> in the following link:
<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/f5/eb516b0e6a11d7b84900047582c9f7/frameset.htm">Creating iViews for Databases</a>
Hope it helps
Regards,
Vivekanandan
Similar Messages
-
Problem JDBC Connection using OCI Driver on Weblogic Portal on Linux
Hi Team,
I want a JDBC connection using OCI Driver in Weblogic Portal 8.1 sp4 on Linux. When I had tested using JDBC connection using Plain Java Code it is working. Also when I create the OCI Connection Weblogic Connection Pool it is working.
But My Requirement is to create the connection using Java Code in Portal Application
But When I create OCI connection in the code it is throwing NO SUITABLE DRIVER Found.
---------- Code in Plain Java Code ------------ Same code is used in Weblogic Portal Application --------------------------------
public static void main(String[] args) throws Exception{
Class.forName("oracle.jdbc.driver.OracleDriver");
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
String url="jdbc:oracle:oci8:@TESTDB";
Properties props = new Properties();
props.put("user","scott");
props.put("password","tiger");
conn=DriverManager.getConnection(url,props);
When I am using the same code in Weblogic Portal and Deployed on Weblogic Portal Server 8.1 SP4 it is throwing following error.
-------------- Exception on Server Log --------------------
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(Ljava.lang.String;Ljava.util.Properties;Ljava.lang.ClassLoader;)Ljava.sql.Connection;(Unknown Source)
at java.sql.DriverManager.getConnection(Ljava.lang.String;Ljava.util.Properties;)Ljava.sql.Connection;(Unknown Source)
My Environment is
LINUX
Weblogic 8.1 SP4
Oracle 9i Client on Same Machine
Oracle 10g Server on Different Machine
My Environment Variables on the Linux Server also set properly as following
PATH=/apps/pmaaum/ant/apache-ant-1.6.5/bin:.:/apps/beahomedev/jdk142_05/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/apps/oracle/ora9i/product/9.2.0/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/apps/oracle/ora9i/bin
LD_LIBRARY_PATH=/usr/lib:/apps/oracle/ora9i/product/9.2.0/lib:/apps/oracle/ora9i/product/9.2.0/lib32:/apps/oracle/ora9i/product/9.2.0/rdbms/lib:/usr/openwin/lib:/apps/oracle/ora9i/product/9.2.0/jdbc/lib
JAVA_HOME=/apps/beahomedev/jdk142_05
JDBC_LIB=/apps/oracle/ora9i/product/9.2.0/jdbc/lib
CLASSPATH=:.:/apps/beahomedev/jdk142_05/lib/rt.jar:/apps/oracle/ora9i/product/9.2.0/jdbc/lib/classes12.jar
Please help me, Let me know if you required anything.
Thanks in Advance
Vishnu
Edited by: vishnuk on Oct 23, 2009 4:07 AM
Edited by: vishnuk on Oct 23, 2009 4:10 AMHi Vishnu
Looks like a classloader issue. BEA class loader is very tricky. Any jar added manually in classpath, will end up loading only those classes. Any imports that we have in any of those classes do not get loaded. Anyhow, coming to your point, add classes12.jar inside your portal web project Web-Inf/lib folder and see if that helps. Usually thats where we put all the JARs for 8.1 SPxx applications. If this still breaks, then remove the jar from web-inf/lib folder and add under your portal app App-Inf/lib folder. First try with app-inf/lib folder having this jar. If not then with web-inf/lib. Basically web-inf is specific to that web app only. If you have a different app having this jdbc code, then put under app-inf/lib folder. Make sure that you remove the classes12.jar that you added in classpath either in env variable or in setdomainenv.cmd file.
When weblogic uses native OCI Drivers, it refers to jars at this location: ....\beawlp814\weblogic81\server\ext\jdbc\oracle\10g or 9g. Try using one of these jars and see if that works. Most of the times I used these jars only for oracle specific native drivers.
Word of caution. Try to use Connection Pool and a DataSource created in weblogic console for your jdbc code. This Datasource can still use the Oracle drivers that you want (instead of BEA Weblogic wrapper oci drivers) located in above location. Use JNDI Lookup and get Datasource and then connection. This is more recommended approach with many advantages then using DriverManager approach..
Goud -
BI JDBC Connection For MSSQL 2005
Hi All,
I am trying to establish an BI JDBC Connection with MSSQL 2005 Server. I follow the steps exactly mentioned in the guide but i was not successfull. I doubt the problem could be with the adapters and again downloaded a JAR file for MSSQL 2005 from microsoft website and proceeded with steps. But no luck this time also.
How do i make a successfull connection. Below is the result of a test page
==================================================
Details:
com.sap.ip.bi.sdk.exception.BIConnectionFailedException: Cannot open the connection at com.sap.ip.bi.sdk.dac.connector.jdbc.JdbcConnectionFactory.getConnectionEx(JdbcConnectionFactory.java:238) at com.sap.ip.bi.sdk.trialarea.connector.servlet.model.JDBCModel.getConnection(JDBCModel.java:797) at com.sap.ip.bi.sdk.trialarea.connector.servlet.model.JDBCModel.getTables(JDBCModel.java:132) at com.sap.ip.bi.sdk.trialarea.connector.servlet.controller.Control2.doPost(Control2.java:23) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365) at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944) at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266) at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95) at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160) 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.sap.ip.bi.sdk.exception.BIResourceException: Cannot open the connection at com.sap.ip.bi.sdk.dac.connector.jdbc.JdbcManagedConnection.(JdbcManagedConnection.java:123) at com.sap.ip.bi.sdk.dac.connector.jdbc.JdbcManagedConnectionFactory.createManagedConnection(JdbcManagedConnectionFactory.java:119) at com.sap.engine.services.connector.jca.ConnectionHashSet.match(ConnectionHashSet.java:320) at com.sap.engine.services.connector.jca.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:189) at com.sap.ip.bi.sdk.dac.connector.jdbc.JdbcConnectionFactory.getConnectionEx(JdbcConnectionFactory.java:233) ... 19 more Caused by: com.sap.ip.bi.sdk.exception.BIResourceException: Cannot connect to JDBC data source at com.sap.ip.bi.sdk.dac.connector.jdbc.impl.Connection.connectDB(Connection.java:394) at com.sap.ip.bi.sdk.dac.connector.jdbc.impl.Connection.connect(Connection.java:106) at com.sap.ip.bi.sdk.dac.connector.jdbc.JdbcManagedConnection.(JdbcManagedConnection.java:118) ... 23 more Caused by: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]End of stream was detected on a read. at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source) at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source) at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source) at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source) at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source) at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source) at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:140) at com.sap.ip.bi.sdk.dac.connector.jdbc.impl.Connection.connectDB(Connection.java:376) ... 25 more
====================================================
regards,
AnandHi Anand,
did you check the WIKI:
<a href="https://wiki.sdn.sap.com/wiki/display/VC/JDBCConnectionSetup">https://wiki.sdn.sap.com/wiki/display/VC/JDBCConnectionSetup</a>
Best Regards,
Marcel -
Connecting to external database in weblogic portal 9.2
hi
i have installed a portal 9.2 and i have my portal framework data in pointbase database,
i want to connect to oracle database to fetch some report data, but the entire server and workshop crashed with the error that the anonymouse user and table is not defined,
what did i did mistake in connecting to that oracle database,?
i had just created a datasource in jdbc services nothing else and the driver was XA compliant,
please help me outHi,
If you can post the exact error or exception you are getting will be able to understand the exact problem.
But you can use the oracle thin driver(<driver-name>oracle.jdbc.OracleDriver</driver-name>, <url>jdbc:oracle:thin:localhost:1521:DBName</url>).With this driver it works absolutely fine.
Bishnu -
Can't connect to MSSQL database
Hi,
I'm very new to J2EE. I've been trying to get my JSPs to access my MSSQL database. I'm using JBoss as the application server.
Here's what I've done:
1. Downloaded and installed the MSSQL 2000 JDBC driver.
2. Edited the \server\default\deploy\mssql-ds.xml file:
<datasources>
<local-tx-datasource>
<jndi-name>MSSQLDS</jndi-name>
<connection-url>jdbc:microsoft:sqlserver://server1:1433;DatabaseName=Test;User=sa;Password=passwd;SelectMethod=Cursor</connection-url>
<driver-class>com.microsoft.jdbc.sqlserver.SQLServerDriver</driver-class>
<DatabaseName>Test</DatabaseName>
<user-name>sa</user-name>
<password>passwd</password>
<min-pool-size>100</min-pool-size>
<max-pool-size>1000</max-pool-size>
<blocking-timeout-millis>5000</blocking-timeout-millis>
</local-tx-datasource>
</datasources>
3. I edited the "C:\jboss\bin\run.bat" file and inserted into the second line:
"set CLASSPATH=c:\mssql_jdbc_driver\lib\mbase.jar;c:\mssql_jdbc_driver\lib\msutil.jar;c:\mssql_jdbc_driver\lib\mssqlserver.jar;"
where C:\mssql_jdbc_driver is the folder where my *.jar files are located.
4. I created a .jsp page like this:
-----Start test.jsp -----------
<%
try {
String sDBDriver = "com.microsoft.jdbc.sqlserver.SQLServerDriver";
String sConnStr = "jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=multiplex;User=sa;Password=secret;";
Class.forName(sDBDriver);
java.sql.Connection conn = java.sql.DriverManager.getConnection(sConnStr);
java.sql.Statement stmt = conn.createStatement();
java.sql.ResultSet rs = stmt.executeQuery("select 'Multiplex' As Name");
while (rs.next()) { %>
<%= rs.getString("Name") %><br>
<%}
catch (ClassNotFoundException cnfe)
System.err.println("Unable to load MSSQL database driver!");
System.err.println("ClassNotFoundException: " + cnfe.getMessage());
%>
------End test.jsp -----------------------
5. But then when I run test.jsp, I get a ClassNotFoundException saying its not able to load the MSSQL driver.
Have I missed out some configuration step? I've been searching all avenues of support for 3 days but still can't get it working. Can someone help, please?
Thanks!Thanks for your replies.
The database should be "Test", sorry.
I find the JBoss documentation isn't very beginner-friendly. And I can't get a reply from the JBoss forums. Does anyone who has worked with JBoss know where I should define the CLASSPATH for the MSSQL jar files?
Actually if someone could point me to step-by-step instructions on how to set up a database connection to MSSQL from JBoss in a Windows environment, I would be very very grateful... -
Secure JDBC connection to mssql on 8.1
i need to talk JDBC to mssql database. i know that weblogic 8.1
provides a type4 driver that is capable of talking to mssql, however
there is no mention of security. any alternatives or possible
solutions?
thank you.
-anton"anton" <[email protected]> wrote in message
news:[email protected]..
ah, here's another possibility that would work well with sql server
clustering (ipsec breaks it): jdbc-odbc bridge and then setting up
secure connection to the sql server (since all machines involved are
windows boxes). it seems to be a viable solution in theory, now it is
just a matter of testing it.No, it's not. JDBC-ODBC bridge is not thread-safe, it's not supported
buy Sun nor by WebLogic, and can not be used in J2EE
environment.
Regards,
Slava Imeshev -
Hi SDN.
A long time ago some had developed a jspdynpage application on a MSSQL database using a jdbcconnector. Sometimes we get a connection error, and we have to restart the portal. We think that it might be that there are to many open connections.
Is there anywhere that I can see these open connections?
Where do I set up how many connections are allowed?
Our portal is 6.0.2.41
Thanks
PeterHi Peter,
check the SAP Library section <a href="http://help.sap.com/saphelp_nw70/helpdata/en/2d/292391fa6745488f3e0e0d4b03c64e/frameset.htm">Managing Connection Pooling</a>. There you will find detailed instructions how to set maximum number of connections.
Best regards,
Martin -
Hello,
Currently we are migrating out existing application from Weblogic to OAS 10g 10.1.3. In the current code we are connecting to the MSSQL Database as below:
DriverManager.registerDriver (new weblogic.jdbc.mssqlserver4.Driver());
In the above code we are using the weblogic specific jar to register the driver to connect to the Database. Is there an equivalent class available in OAS? (I am using JDeveloper IDE for development work)
Kindly let me know. Thanks in advance.
Thanks,
Lakshmisri GopalanHello,
Currently we are migrating out existing application from Weblogic to OAS 10g 10.1.3. In the current code we are connecting to the MSSQL Database as below:
DriverManager.registerDriver (new weblogic.jdbc.mssqlserver4.Driver());
In the above code we are using the weblogic specific jar to register the driver to connect to the Database. Is there an equivalent class available in OAS? (I am using JDeveloper IDE for development work)
Kindly let me know. Thanks in advance.
Thanks,
Lakshmisri Gopalan -
Jdbc connectivity with mysql database
I created a database in mysql, but I have problems communicating with the DB in java
here is the error
java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/books
at java.sql.DriverManager.getConnection(DriverManager.java:604)
at java.sql.DriverManager.getConnection(DriverManager.java:221)
at displayauthors.DisplayAuthors.main(DisplayAuthors.java:30)
java.lang.NullPointerException
at displayauthors.DisplayAuthors.main(DisplayAuthors.java:66)
BUILD SUCCESSFUL (total time: 1 second)
I edited the system variables in windowds
CLASSPATH
.;C:\Program Files (x86)\Java\jre7\lib\ext\QTJava.zip
CLASSPATH1 (notice the 1 at the end, I don't want to override the previous one
.,C:\Program Files (x86)\MySQL\Connector J 5.1.30\mysql-connector-java-5.1.30-bin.jar
The Hostname: localhost Port: 3306
Username: root
password: Tpswsd77? (changed for thios post)
Stored Connection: Local instance MySQL56
connection Method: Standard(TCP/IP)
HERE IS THE CODE
public class DisplayAuthors {
// database URL
static final String DATABASE_URL = "jdbc:mysql://localhost:3306/books";
// launch the application
public static void main( String args[] )
Connection connection = null; // manages connection
Statement statement = null; // query statement
ResultSet resultSet = null; // manages results
// connect to database books and query database
try
// establish connection to database
connection = DriverManager.getConnection(
// DATABASE_URL, "deitel", "deitel" );
//<editor-fold defaultstate="collapsed" desc="comment">
DATABASE_URL, "root", "Tpswsd77?" );
//</editor-fold>
// create Statement for querying database
statement = connection.createStatement();
// query database
resultSet = statement.executeQuery(
"SELECT authorID, firstName, lastName FROM authors" );
// process query results
ResultSetMetaData metaData = resultSet.getMetaData();
int numberOfColumns = metaData.getColumnCount();
System.out.println( "Authors Table of Books Database:\n" );
for ( int i = 1; i <= numberOfColumns; i++ )
System.out.printf( "%-8s\t", metaData.getColumnName( i ) );
System.out.println();
while ( resultSet.next() )
for ( int i = 1; i <= numberOfColumns; i++ )
System.out.printf( "%-8s\t", resultSet.getObject( i ) );
System.out.println();
} // end while
} // end try
catch ( SQLException sqlException )
sqlException.printStackTrace();
} // end catch
finally // ensure resultSet, statement and connection are closed
try
resultSet.close();
statement.close();
connection.close();
} // end try
catch ( Exception exception )
exception.printStackTrace();
} // end catch
} // end finally
} // end main
} // end class DisplayAuthorsI edited the system variables in windowds
CLASSPATH
.;C:\Program Files (x86)\Java\jre7\lib\ext\QTJava.zip
CLASSPATH1 (notice the 1 at the end, I don't want to override the previous one
.,C:\Program Files (x86)\MySQL\Connector J 5.1.30\mysql-connector-java-5.1.30-bin.jar
A few facts:
1. You NEED to have the JDBC driver jar on the Java classpath
2. You don't NEED to have the jar on the Windows classpath
3. You don't NEED to 'override' the Windows classpath - you can just append the JDBC jar to it
Just use #3 above - edit the Windows CLASSPATH environment variable and add the JDBC jar to it. At it at the start and follow it with a semicolon. Or at it at the end AFTER adding a semicolon.
Or specify the CLASSPATH on the command line when you launch Java. Use the '-cp' or '-classpath <class . . >' options. Just type 'java' at the command line to see the list of parameters that can be used. -
Jdbc connectivity for mssql 2008 in ipv6
trying to connect to mssql server 2008 in a machine enabled for ipv6 using the following code :
Connection c = null; String url = "jdbc:sqlserver://;servername=fe80::21a:4bff:fecf:dfe5%4;port=1433;DatabaseName=mssql;selectMethod=cursor;"; String userid = "xxx"; String password = "xxx"; Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); try { c = DriverManager.getConnection(url, userid, password); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); }
but getting the error:
com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host has failed. java.net.NoRouteToHostException: No route to host: connect at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(Unknown Source) at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(Unknown Source) at com.microsoft.sqlserver.jdbc.SQLServerConnection.loginWithoutFailover(Unknown Source) at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(Unknown Source) at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(Unknown Source) at java.sql.DriverManager.getConnection(DriverManager.java:582) at java.sql.DriverManager.getConnection(DriverManager.java:185) at ConnectDB.main(ConnectDB.java:84)
what is the problem.can any one please suggest me how to connect to mssql using ipv6..
Thanks in advance...
Edited by: 789764353 on Sep 7, 2009 4:20 AMI guess you must have seen this. But, just in case.
[Creating a Valid Connection String Using TCP/IP|http://msdn.microsoft.com/en-us/library/ms191260.aspx]
Also,
SQL Server and SQL Server Native Client fully support both Internet Protocol version 4 (IPv4) and Internet Protocol version 6 (IPv6). When Windows is configured with IPv6 SQL Server, components automatically recognize the existence of IPv6. No special SQL Server configuration is necessary.[Connecting Using IPv6|http://msdn.microsoft.com/en-us/library/ms345359.aspx] -
JDBC connectivity with Progress database from Linux OS
Can somebody help with the configurations to be done for connecting to Progress database through JDBC in Linux OS.Below is the environment details and the other files added.
OS : Linux
Java version "1.6.0_45"
Driver jars used : progress.jar,progress_jdbc.jar,progress_messages.jar
libJdbcProgress.so, libprosqljava.so, libprocli92.so file in LINUX environment
Database : Progress 9.1D
I couldn't get a successful connection to database by doing this and getting exception
Exception: No suitable driver found for jdbc:jdbcProgress:T:sun3899:28409:DISP at java.sql.DriverManager.getConnection(DriverManager.java:602) at java.sql.DriverManager.getConnection(DriverManager.java:185) at SQLService.main(SQLService.java:21)
Note: I could connect successfuly to this database from Windows and Solaris OS.1. WHAT you are doing
2. HOW you are doing it
3. WHAT results you get
4. WHAT results you expect to get
WHAT &HOW : I am trying to run a Java code in Linux OS that connects to the Progress database and do a DML statement while it works perfectly when run in Windows and Solaris OS.
Class.forName("com.progress.sql.jdbc.JdbcProgressDriver");
conn = DriverManager.getConnection("jdbc:jdbcProgress:T:sun3899:28409:DISP","USER","PASS");
THE RESULT I GET: is what I have specified before:
No suitable driver found for jdbc:jdbcProgress:T:sun3899:28409:DISP
at java.sql.DriverManager.getConnection(DriverManager.java:602)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at SQLService.main(SQLService.java:21)
EXPECTED RESULT: is it should connect to the database successfully -
NW04s JDBC Connection for MSSQL not working
In portal JDBC settings are:
Connection properties
URL = jdbc:microsoft:sqlserver://192.168.0.101:1433;DatabaseName=Northwind
Driver = com.microsoft.jdbc.sqlserver.SqlServerDriver
User Management
User mapping type = admin,user
I assigned a user to Administrator under User Administration
Visual Administrator settings are:
DriverName = com.microsoft.jdbc.sqlserver.SqlServerDriver
URL = jdbc:microsoft:sqlserver://192.168.0.101:1433;DatabaseName=Northwind
UserName = empty
Password = empty
Result
Connection test fails in portal. The settings appear ok.
The only thing I can think of is that user specified in portal user mapping is not setup properly on SQLServer.
Also:
When I run link:
http://localhost:53000/TestJDBC_Web/TestJDBCPage.jsp
my jdbc service MSSQL_JDBC does not appear. MSSQL_JDBC was cloned from SDK_JDBC and the libray for drivers was added
I am running MSSQL 2000 SP4 but using JDBC drivers for SP3 as I didn't find any for SP4 and assumed they would work for SP4
What am I missing?Raynald,
I think I am having a similar problem.
I also cloned the connection names in Vis. Administrator to the SDK_name.
Indeed it now appears in the test servlet, and I can succesfully execute SQL statements from there.
So the connector seems ok.
But I have still problems with the Connection Test in the Portal.
I am trying to make BI JDBC system to be able to use my database from the Visual Composer.
I am using these properties:
CodeLink = com.sap.portal.systems.bi.SAP_BI_JDBC
ConnectionFactoryClass = SDK_TESTDB
ConnectionUrl = jdbc:jtds:sqlserver://sapserver:1433;databaseName=TestDb
(this url is the same as in Vis. Administrator)
Driver Class Name = net.sourceforge.jtds.jdbc.Driver
Fixed Catalog = empty
Fixed Schema = empty
System Type = SAP_BI_JDBC
User Mapping = admin, user
I am logged in as Administrator, so I added the login credentials at the User Mapping page of the Administrator user.
When I use Connection Test function from the portal I get the following messages:
Retrieval of default alias successful
Connection failed. Make sure user mapping is set correctly and all connection properties are correct.
What can I do to solve this problem? -
JDBC connection to external database not working from EP 6 SP2.
We have Enetrprise Portal 6 Service Pack 2 installed. We are planning to install business content which gets the data from external database using JDBC driver.
We are using standard JDBC driver, which comes with the Portal EP 6 SP2. Name of the class is com.sap.portals.jdbc.oracle.OracleDriver.
We defined the system as JDBC system. Alias is defined. When we try to run, we are getting following error on the server.
<u>
java.sql.SQLException: ID004110: Error occurred while trying to connect to DB: java.sql.SQLException: [SAP_Portals][SQLServer JDBC Driver]Error establishing socket. Operation timed out: connect
at com.inqmy.services.dbpool.ConnectionPoolDataSourceImpl.getPooledConnection(ConnectionPoolDataSourceImpl.java:151)
at com.inqmy.services.dbpool.ConnectionStorage.getPhysicalConnection(ConnectionStorage.java:342)
at com.inqmy.services.dbpool.ConnectionStorage.getWriteLockConnection(ConnectionStorage.java:405)
at com.inqmy.services.dbpool.QConnection.beforeOperation(QConnection.java:44)
at com.inqmy.services.dbpool.XAQConnection.beforeOperation(XAQConnection.java:112)
at com.inqmy.services.dbpool.XAQConnection.getAutoCommit(XAQConnection.java:139)
at com.sap.security.core.persistence.datasource.imp.J2EEConnectionPool.getConnection(J2EEConnectionPool.java:194)
at com.sap.security.core.persistence.datasource.imp.DataBasePersistence.doSearch(DataBasePersistence.java:3318)
at com.sap.security.core.persistence.datasource.imp.DataBasePersistence.searchPrincipalDatabags(DataBasePersistence.java:2298)
at com.sap.security.core.persistence.imp.PrincipalDatabagFactory.searchPrincipalDatabagsInternal(PrincipalDatabagFactory.java:3742)
at com.sap.security.core.persistence.imp.PrincipalDatabagFactory.searchPrincipalDatabags(PrincipalDatabagFactory.java:3275)
at com.sap.security.core.imp.PrincipalFactory.searchPrincipals(PrincipalFactory.java:1323)
at com.sapportals.portal.license.LiKeyPersistence.getPersistenceObject(LiKeyPersistence.java:59)
at com.sapportals.portal.license.LiKeyPersistence.getKey(LiKeyPersistence.java:119)
at com.sap.security.core.server.likey.LicenseChecker.getValidityDate(LicenseChecker.java:666)
at java.lang.reflect.Method.invoke(Native Method)
at com.sapportals.portal.prt.service.license.WAS620.LicenseChecker620.getValidityDate(LicenseChecker620.java:65)
at com.sapportals.portal.prt.service.license.LicenseService.doTheCheck(LicenseService.java:483)
at com.sapportals.portal.prt.service.license.LT.run(LT.java:43)
</u>
I appreciate any help.Please ignore the error mentioned in the original message. Actual error is as follows.
<u>
Component class : com.pacificorp.sap.portal.vantive.view.VantiveMetrics
User : P04233
at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:858)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:310)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:190)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:209)
at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:576)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:300)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:190)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:669)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:208)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:532)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.inqmy.services.servlets_jsp.server.InvokerServlet.service(InvokerServlet.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:149)
at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:832)
at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:666)
at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:313)
at com.inqmy.services.httpserver.server.Response.handle(Response.java:173)
at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:1288)
at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)
at com.inqmy.core.cluster.impl5.ParserRunner.run(ParserRunner.java:55)
at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)
at java.security.AccessController.doPrivileged(Native Method)
at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:148)
Caused by: java.lang.NoSuchMethodError
at com.pacificorp.sap.portal.vantive.model.JDBCVantiveModel.getDatabaseConnection(JDBCVantiveModel.java:601)
at com.pacificorp.sap.portal.vantive.model.JDBCVantiveModel.loadMetricsSummary(JDBCVantiveModel.java:59)
at com.pacificorp.sap.portal.vantive.helper.VantiveMetricsHelper.loadMetricsSummary(VantiveMetricsHelper.java:30)
at com.pacificorp.sap.portal.vantive.view.VantiveMetrics$ContentDynPage.doProcessBeforeOutput(VantiveMetrics.java:129)
at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:106)
at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:135)
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:300)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:190)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:209)
at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:576)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:300)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:138)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:190)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:669)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:208)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:532)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.inqmy.services.servlets_jsp.server.InvokerServlet.service(InvokerServlet.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:149)
at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:832)
at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:666)
at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:313)
at com.inqmy.services.httpserver.server.Response.handle(Response.java:173)
at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:1288)
at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)
at com.inqmy.core.cluster.impl5.ParserRunner.run(ParserRunner.java:55)
at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)
at java.security.AccessController.doPrivileged(Native Method)
at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:148)
</u> -
Refreshing JDBC Connection Pools after database restart
Hi Patricia,
Did you try to turn on testOnReserve for your connection pool?
Regards,
Slava Imeshev
"Patricia Albano" <[email protected]> wrote in message
news:3c0e3bff$[email protected]..
Hello,
I have a similar problem.
I have a WLS 6.0 SP2 running on SunOS 5.6 Generic_105181-23 sun4u sparcSUNW, Ultra-60.
I have a JDBC pool created in my weblogic server, withcom.informix.jdbc.IfxDriver driver. However, and in spite of the indication
regarding the refresh period, the connections are not refreshed. Whenever
the DB is down or, for some other reason the connections failed, they just
don%u2019t recover on their own.
We tried to use weblogic jdriver for Informix, but it doesn%u2019t solveour problem for we have some requirements that only work with the
com.informix.jdbc.IfxDriver.
>
Is there some patch that we can use to solve our problem, like in Oracledatabase?
>
Thanks
mail to: [email protected] -
How to connect to a MSSQL database thru EP
I need to know how to connect a mssql database to EP.
Hi Garry,
In order to connect to an external database you have to create JDBC or BI JDBC systems:
http://help.sap.com/saphelp_nw04s/helpdata/en/1f/bddf3d48b05d5ae10000000a11405a/content.htm
Then, you can show the information into the database using simple "query iviews"
http://help.sap.com/saphelp_nw04s/helpdata/en/f5/eb516b0e6a11d7b84900047582c9f7/content.htm
or with developer tools like Visual Composer
http://help.sap.com/saphelp_nw2004s/helpdata/en/42/efeca129e31bc7e10000000a11466f/content.htm
Regards,
Nacho
Maybe you are looking for
-
Installation on Enterprise Portal in an existing NW04s JAVA Stack
Hello experts, we are having a NW04s Java Stack SP17 without EP Packages. But now we want to install a Enterprise Portal on this stack also. How can I do this?? Are there some docu's / install guides or something like this! Thanks a lot Christian
-
For two weeks I have tried to use your automatic download of the latest version 4.0.1. It would sit there telling me it is trying to connect to the download computer for hours, several times overnight. Then, it became non-responsive and error message
-
Code insight is not available when eding jsp by using 10.1.3.36.73
I use 10.1.3.36.73 jdeveloper on windows to develop web application, but code insight is easy not available when editing jsp 2.0. I must restart jdeveloper and it still isn't often available. ex. in jsp ArrayList al = new ArrayList(); for (Iterator i
-
What are the major differences between Java programming language and HTML or XML and why is it better?
-
How to connect to BO from Excel 2007
Hi everyone, as I am new to BO I need help how to establish connection to a BO Universe from Excel 2007 - what components I need to install to be able to make the connection, and steps for creating the connection Thanks in advance, Maria