About jdbc connector
Hi guys:
I encounter a strange problem. I use netweaver's jdbc to manage DB Source.but the DB is null every morning,so i should click the "excute" button on the jabc connector'runtime through visual admin.If you come across the same problem with me or know why ,please inform me as soon as prossible.thanks a million!
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE data-sources SYSTEM 'data-sources.dtd'>
<data-sources>
<application-name>sap.com/ASE</application-name>
<data-source>
<data-source-name>ASE_DATA_SOURCE</data-source-name>
<driver-name>MysqlDriver</driver-name>
<init-connections>2</init-connections>
<max-connections>10</max-connections>
<max-time-to-wait-connection>60</max-time-to-wait-connection>
<sql-engine>vendor_sql</sql-engine>
<jdbc-1.x>
<driver-class-name>org.gjt.mm.mysql.Driver</driver-class-name>
<url>jdbc:mysql://localhost:3306/ase?characterEncoding=UTF-8</url>
<user-name>root</user-name>
<password>**********</password>
</jdbc-1.x>
</data-source>
</data-sources>
mysql version :mysql-5.1.19-beta driver version:mysql-connector-java-5.1.6-bin
Similar Messages
-
Hi experts,
I create a new datasource to connect to the database mysql,when I click the button"Execute" on the DB Initialization tab,everything is OK.But several hours later, an exception occurs"Error occured when ececuting init statement".So I click the button"Execute" again,the above exception disappears.Please tell me why.It's urgent.ThanksHai,
Check the user password are changed or not in the mysql side which mentioned in the jdbc connector configuration.
Thanks and Regards, -
About autostart jdbc connector service
Hi experts,now i want to auto initialize the db in jdbc connector
service not log on to visual admin.how can i get it?thankshi,
folow this link where u can find the JDBC Connection with an Example for enabling the connection to the SQL Server and using the methods .
[http://help.sap.com/saphelp_nw04/helpdata/en/14/0b743cdcf47b4ee10000000a11405a/frameset.htm]
thanks and regards
Fistae -
JDBC Connector in NetWeaver Dev Studio WebAS
Hello,
I am attempting to deploy a web module that utilizes a WebAS datasource for an external Oracle database. I expect to add a JDBC Connector leveraging the Oracle JDBC driver. I have been unable to deploy the Oracle datasource.
I receive the stack trace below whenever I attempt to Start the datasource. I find many posts asking about this error but never have I found an answer as to the cause or resolution. OSS Note 751175 describes this as a classloader problem with connectors but it does not offer any repair method that works with this problem (in my case).
I've had this problem with NetWeaver SP7 and it remains with SP10.
Does anyone have explanation? Can I expect to test such applications in NetWeaver's standalone WebAS?
Best regards,
Gary
ava.rmi.RemoteException: Error occurred while starting application in whole cluster and wait.; nested exception is:
com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Clusterwide exception: server ID 4114150:com.sap.engine.services.dbpool.exceptions.BaseDeploymentException: Cannot create DataSource "CMR".
at com.sap.engine.services.dbpool.deploy.ContainerImpl.startDataSources(ContainerImpl.java:1836)Hello Benny,
One of my co-workers resolved the problem which boiled down to driver configuration confusion. Here's what we learned:
No SDA component was required though this was a good exercise for us to go through.
The driver (JAR or ZIP) file can be added simply using the Visual Administrator JDBC Connector Runtime tab.
We were not able to activate more than one type of datasource at a time (feature, bug or something else?)
The following configurations start okay:
**Starts***
Driver: Oracle's classes12.zip
JDBC Version: 1.x
Driver class: oracle.jdbc.driver.OracleDriver
Database URL: jdbc:oracle:thin:@host:port:instance
User&Password specified.
**Starts***
Driver: Oracle's 1.4 ojdbc14.jar
JDBC Version: 2.0
Driver class: oracle.jdbc.pool.OracleDataSourceFactory
Datasource type: ConnectionPoolDataSource
CPDS Classname: oracle.jdbc.pool.OracleConnectionPoolDataSource
Additional properties:
URL = jdbc:oracle:thin:@host:port:instance
User = xxxx
Password = yyyyy
**Will not start but the failure is expected***
Driver: Oracle's classes12.zip
JDBC Version: 1.x
Driver class: oracle.jdbc.pool.OracleConnectionPoolDataSource
Database URL: jdbc:oracle:thin:@host:port:instance
User&Password specified.
We do need to run multiple datasources using Oracle and Sybase so I'm hoping the issue we encountered is simply configuration issues again.
I appreciate your time and feedback Benny!
Best regards,
Gary -
Hi, I am a fresher studying about JDBC. I wanted to know about the basics of JDBC. i wanted to know for what purpose JDBC is used..
hi
there r diffrent types of jdbc connection.hope u kmow jdbc is use to connect to database.if u need jdbc -mysql connection
1.download a mysql connector from apache site
2.edit .bash profile and add patf of connector to classpath
3.follow this link http://www.kitebird.com/articles/jdbc.html#TOC_1 -
From Steve Zeng: collector/jdbc connector won't start
Hi,
when i develop a database collector to collect bussiness database
logs about oracle for our customer , i use JDBC to connect to remote
oracle database, after i add database collector / jdbc connector /
database event source in SCC, i found i can not startup any of these
plugins, why? can database collector debug? the following codes is my
collector codes, additions, can anyone provide me a detail step by step
guide for database collector?
sqlquery.base
SELECT TOP %d * FROM ts_querybillsigned_log WHERE REQUEST_TM > %s
release.js
Collector.prototype.initialize = function() {
this.PARSER.getOffsetData = function(input) {
if (typeof input.RXMap != "undefined") {
return input.RXMap.REQUEST_TM;
conn.addParser(this.PARSER.getOffsetData);
return true;
Collector.prototype.cleanup = function() {
return true;
Connector.prototype.sendQuery = function() {
return true;
Record.prototype.preParse = function(e) {
if (this.CONNECTION_ERROR != null || typeof this.RXMap == "undefined")
{ return false; }
if (this.CONNECTION_METHOD == "DATABASE") {
for (var field in this.RXMap) {
this[field] = this.RXMap[field];
return true;
Record.prototype.parse = function(e) {
this.iuid = this.LOG_ID;
this.cv30 = this.METHODNAME;
this.cv31 = this.CLIENTNAME;
this.cv32 = this.CLIENTMAC;
this.cv33 = this.CLIENTIP;
this.cv34 = this.QUERYTYPE;
this.cv35 = this.SIGNEDTYPE;
var detstring =
this.RXMap.REQUEST_TM.replace(/(\d+)\/(\d+)\/(\d{4})\s(\S+)/, "$1/$2/$3
$4 GMT");
var dt = new Date(detstring);
e.setDeviceEventTime(dt);
return true;
Record.prototype.normalize = function(e) {
instance.SEND_EVENT =true;
return true;
Record.prototype.postParse = function(e) {
return true;
Record.prototype.reply = function(e) {
return true;
DCorlette
DCorlette's Profile: https://forums.netiq.com/member.php?userid=323
View this thread: https://forums.netiq.com/showthread.php?t=50302Hi Steve,
I believe you've gotten closer to tracking down your issue, but there
are a couple style issues here I thought I'd comment on for general
consumption.
1) Your Collector will issue a query against the database, then it will
return a Record object. Each column in the database is mapped to the
RXMap object within that Record, in the form 'rec.RXMap.METHODNAME',
'rec.RXMap.CLIENTIP', etc. Since 'parse()' is a member function of
Record, 'rec' in this case is simply 'this'.
2) You then proceed to copy all of those fields from
this.RXMap.something to this.something, and then you proceed to copy
several fields from this.something to
this.somethingelsethatlookslikeasentinelfield. All of this is completely
unnecessary.
3) As long as you don't have to do any further processing on the values
in the source data (as with REQUEST_TM), you can skip everything in
preParse() and all of the this.* = this.* stuff in parse(), and simply
put entries like this in Rec2Evt.map:
iuid,RXMap.LOG_ID
cv30,RXMap.METHODNAME
cv31,RXMAP.CLIENTNAME
The Collector will automatically copy the information from the fields on
the RHS of Rec2Evt.map into the Sentinel Event fields on the LHS of
Rec2Evt.map.
Thus your entire Collector can be boiled down to this:
Collector.prototype.initialize = function() {
this.PARSER.getOffsetData = function(input) {
if (typeof input.RXMap != "undefined") {
return input.RXMap.REQUEST_TM;
conn.addParser(this.PARSER.getOffsetData);
return true;
Record.prototype.parse = function(e) {
var dt = new Date(this.RXMap.REQUEST_TM.substr(0,
this.RXMap.REQUEST_TM.length-2));
e.setDeviceEventTime(dt);
return true;
DCorlette
DCorlette's Profile: https://forums.netiq.com/member.php?userid=323
View this thread: https://forums.netiq.com/showthread.php?t=50302 -
BI - JDBC connector for remote database.
Hi,
I am trying to use my portal oracle database in VC applications. I have successfully connected to the database using JDBC connector as well as BI-JDBC connector. However when I try to use this BI-JDBC system in SQL editor I cannot see any tables. I have created JDBC and BI-JDBC system objects in the portal and the connection test is successful for both the systems.
I am using BI-JDBC connector so that I can see the tables and write select queries which I can use in VC applications. Using JDBC connector I can see only the stored procedures. So tried using BI-JDBC connector.
Is there anyway I can see the tables and views in the oracle database in the VC applications.
Thanks in advance.
Aamod.Hi,
The DB user which I am using, can query the database from SQL PLUS. So he can see the tables and everything. But when the same user is used for mapping with portal user the tables cannot be seen.
When I select the system in VC and click on "Browse Table Catalog" I get the following structure.
BI-JDBC
|- 0
|- 1.
And below 1 theres nothing. When I select "Tables" and search *, it says "Search returned no result".
Please advice.
Regards,
Aamod. -
Can't connect to external Oracle DB with JDBC connector
Hello guys,
I had failed to connect to connect external Oracle via JDBC connector .
Could you please help me to resolve the problem ?
Backgroud:
We need to connect the external Oracle DB with JDBC connector, because BI need to connect to the target Oracle. If the JDBC connector suceed, BI will create a UD which use the datasource
we create in Visual admin to connect to the external Oracle DB.
Environment:
Our EP version is NW04S SP17 , OS is AIX .
The target Oracle DB version is 10g(10.1.0.2.0, 64bi).
Configuration procedure :
1. Import Oracle driver "ojdbc14.jar" and create new driver which named "Oracle " under
JDBC Connector ->Run time ->Driver in Visual Admin.
2. Create datasource "Mydatasource" under JDBC Connector ->Run time ->Data Source,
Name : Mydatasource
Driver Name : Oracle
JDBC version: 2.0(with XA support)
JDBC compliant:
Object Factory :oracle.jdbc.pool.OracleDataSourceFactory
DataSource Type: ConnectionPoolDataSource
*CPDS class name :oracle.jdbc.pool.OracleConnectionPoolDataSource
Additional:
Additional Properties:
DatabaseName:LPAR8TEST
DriverName:oracle.jdbc.OracleDriver
Password: *****
PortNumber:1521
ServerName: 10.1.16.208
URL :jdbc:oracel:[email protected]:1521:LPAR8TEST
User:IMPL
Connectoin Pool:
Initial Connectons: 1 Expiration: (check)
Maximum Connections: 25 Connection Lifetime :600
Maximum time wait of connection : 60 Cleanup Thread : 200
Default Connectoin Isolaton :Default
SQL Engine:
Open SQL
3.Create Connector :
Copy the standard connector :SDK_JDBC to SDK_JDBC_Oracle,
Resource Adopter:
Loader References:
Add "libray:Oracle" .
Managed Connection Factory:
Configuration Property:
DriverName:oracle.jdbc.OracleDriver
Password: ****
User:IMPL
URL: jdbc:oracle:[email protected]:1521:LPAR8TEST
All fo my configuration had been listed.
And I had created JCO RFC : JT-BIDEV_PORTAL_BD1 , and created RFC connection with SM59 in BI.
Please give me some suggesiton.
Thanks.
LouisWhen I try to start datasoure "Mydatasource" , it display error, error detail:
java.rmi.RemoteException: com.sap.engine.services.dbpool.exceptions.BaseRemoteException: Error during start of application "sap.com/Mydatasource". [id = StartupError]
at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.startApplication(DataSourceManagerImpl.java:608)
Caused by: java.rmi.RemoteException: Error occurred while starting application in whole cluster and wait.; nested exception is:
com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Clusterwide exception: server ID 3128050:com.sap.engine.services.dbpool.exceptions.BaseDeploymentException: Cannot start DataSource "CGNPC".
at com.sap.engine.services.dbpool.deploy.ContainerImpl.startDataSource(ContainerImpl.java:1549)
Caused by: com.sap.engine.services.dbpool.exceptions.BaseResourceException: SQLException thrown by the physical connection: java.sql.SQLException: Invalid Oracle URL specified: OracleDataSource.makeURL
at com.sap.engine.services.dbpool.spi.CPManagedConnectionFactoryImpl.createManagedConnection(CPManagedConnectionFactoryImpl.java:198)
Caused by: java.sql.SQLException: Invalid Oracle URL specified: OracleDataSource.makeURL
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
Caused by: com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Clusterwide exception: server ID 3128050:com.sap.engine.services.dbpool.exceptions.BaseDeploymentException: Cannot start DataSource "Mydatasource".
at com.sap.engine.services.dbpool.deploy.ContainerImpl.startDataSource(ContainerImpl.java:1549)
Caused by: com.sap.engine.services.dbpool.exceptions.BaseResourceException: SQLException thrown by the physical connection: java.sql.SQLException: Invalid Oracle URL specified: OracleDataSource.makeURL
at com.sap.engine.services.dbpool.spi.CPManagedConnectionFactoryImpl.createManagedConnection(CPManagedConnectionFactoryImpl.java:198)
Caused by: java.sql.SQLException: Invalid Oracle URL specified: OracleDataSource.makeURL
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
u2026.
When I try to test JDBC with URL : http://jt-pldev:50000/TestJDBC_Web/TestJDBCPage.jsp,
First I choose connection name "SDK_JDBC_Oracle" .
If I click "Check Connectons", it display :
500 Internal Server Error
SAP J2EE Engine/7.00
Application error occurred during request processing.
Details:
java.lang.NoClassDefFoundError: com.sap.ip.bi.sdk.dac.connector.odbo.impl.Connection (initialization failure)
Exception id: [001A64A86F2C006B000004C40010302A000469C74E86A096]
If I click "Slecton Connection", it display:
500 Internal Server Error
SAP J2EE Engine/7.00
Application error occurred during request processing.
Details:
com.sap.engine.frame.core.load.SAPNoClassDefFoundError: javax.resource.Referenceable
Exception id: [001A64A86F2C0063000004C00010302A000469C74FA2BB59] -
JDBC Connector error in Visual Admin
Hi
I am trying to create and DBlookup using the JDBC Connector service in visual admin
folowing this blog
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9aedca11-0d01-0010-3b90-9ea04182875f
when i try to create the data source name in the JDBC connectore service i am getting this following error
java.rmi.RemoteException: Cannot deploy application com.sap/Oracle..
Reason: Error while parsing file "E:usrsapCE6DVEBMGS00j2eeclusterserver0. empdbpoolOracleDBLookup.xml".; nested exception is:
com.sap.engine.services.dbpool.exceptions.BaseDeploymentException: Error while parsing file "E:usrsapCE6DVEBMGS00j2eeclusterserver0. empdbpoolOracleDBLookup.xml". at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:627) at com.sap.engine.services.dbpool.deploy.DataSourceManagerImpl.deploy(DataSourceManagerImpl.java:273) ... 30 moreCaused by: com.sap.engine.services.dbpool.exceptions.BaseDeploymentException: Error while parsing file "E:usrsapCE6DVEBMGS00j2eeclusterserver0. empdbpoolOracleDBLookup.xml". at com.sap.engine.services.dbpool.deploy.ContainerImpl.checkDataSources(ContainerImpl.java:1700) at com.sap.engine.services.dbpool.deploy.ContainerImpl.deploy(ContainerImpl.java:234) at com.sap.engine.services.deploy.server.application.DeploymentTransaction.makeComponents(DeploymentTransaction.java:606) at com.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:321) at com.sap.engine.services.deploy.server.application.DeploymentTransaction.begin(DeploymentTransaction.java:307) at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:292) at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:326) at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:3184) at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:612) ... 31 moreCaused by: com.sap.engine.services.dbpool.exceptions.BaseIllegalArgumentException: The value of tag <driver-class-name> is not specified
I have do do DB Lookup to Oracle in 7 different tables in various steps of my intrerface most of them point to functonal error if any lookup is reterving any value...kindly suggest some simple approach for this.sloved.....
-
Hi,
I have problem connecting to MS SQL Server using the JDBC Connector. I have 2 main questions, one is on the DQE and the other is on user mapping.
I have a created a JDBC System Landscape using the portal component com.sap.portal.systems.jdbc.
Following are the properties I have set and also I have listed where I am finding propblems.
- User Management
User MApping Type : Admin, User
- Connection Properties
Connection Timeout: 1000
Connection URL: jdbc:microsoft:sqlserver://10.7.1.5:1433;DatabaseName=SAPEP
Driver Class Name: com.sap.portals.jdbc.sqlserver.SQLServerDriver
(Here I do not know whihc driver to use. Do I have to use the above one or this one com.microsoft.jdbc.sqlserver.SQLServerDriver. Anyway, both of them Did not work)
- Distributed Query Engine (DQE) (What is this, and what Parameters I need to pass here)
Also, While doing the user mapping, we need to provide the username and password. What username and password is that? Is it the DB user name and Password?
Any help will be well appriciated.
Thanks and regards,
BabuHi Babu,
Here's what's needed in the system (examples are from my system):
CONNECTION PROPERTIES:
-- Connection URL: jdbc:sap:sqlserver://p031617:1433;DatabaseName=pubs
-- DRIVER CLASS NAME: com.sap.portals.jdbc.sqlserver.SQLServerDriver
-- VALIDATE CONNECTION: yes
USER MANAGEMENT:
-- USER MAPPING TYPE: admin, user
DQE: Put in admin user/password (DQE is for distributed queries between multiple, heterogeneous databases, but you still need to use it for simple queries)
Create an alias
Go to User Administration and set user mapping for the admin user
Test connection
Each user that access the system will need user mapping.
Hope this helps.
Daniel -
Portal Test Connection Failed for JDBC Connector
Hi,
We are trying to create a JDBC system in EP to connect SQL Server 2005 database. Our aim is to build a model in VC using data services from SQL Server 2005.
We deployed the Driver file sqljdbc.jar and connection was successful when tested by creating a data source in Visual Administrator-> JDBC Connector
We have created a system in EP with user mapping type (admin,user) and user mapping also done for system alias with the SQL Server administrator user id and password. UME is maintained in ABAP Stack. When we try for test connection with the system created in EP for JDBC connection, the system throws an error message like Connection failed. Make sure user mapping is set correctly and all connection properties are correct
Test Details:
The test consists of the following steps:
1. Retrieve the default alias of the system
2. Check the connection to the back end application using the connector defined in this system object
Results
Retrieval of default alias successful
Connection failed. Make sure user mapping is set correctly and all connection properties are correct.
The following are the URL and driver class name:
URL: jdbc:sqlserver://<host_name>:1433;DatabaseName=db_ name
Driver class name: com.microsoft.sqlserver.jdbc.SQLServerDriver
Is there any other setting to be maintained in the Visual Administrator or in the Portal?
Kindly let us know any clue to overcome this issue.
Quick response highly appreciated.
Regards
Saravanan.rHi Saravanan and Sathish,
not sure how far you got with this. I had the same problem or at least a very similar one with access to MS SQL Server 2005 and solved it. I followed essentially very similar steps with a couple of minor twists:
1) copied the sqljdbc.jar file to the storyboard server and set the classpath environment variable to point to it.
2) I did not create a data source, just created a new driver "SQLServer".
3) Under Connector Container I cloned SDK_JDBC as "SDK_SSQL".
4) The Visual Composer property vc.bi.sqlEditor Enabled should be set to true for you to be able the SQL Editor in the Data Service in VC.
In the portal I created a system of type BI_JDBC from a template.
The connection url and driver class were as in the thread:
URL: jdbc:sqlserver:ipaddress:1433;DatabaseName=name
Driver: com.microsoft.sqlserver.jdbc.SQLServerDriver
ConnectionFActoryClass as above under 3.
User rights: admin,user
The user mapping to the system alias should be as described.
This should allow you to use the data service in VC to access SQL Server tables. If access to stored procedures (sometimes quite useful) is required, this would need to utilise the p9sqlserver.jar file already on the server.
Best Regards
Felix Logemann -
JDBC Connector : pool gets depleted
Hi,
we are currently working with SAP EP 6.0 SP2 and trying out some development work with the connector framework.
We are writing a component which uses the CF to retrieve information from a Microsoft SQL Server 2000.
The portal component works, we are able to retrieve the information from the DB, but after some time the request times out.
We monitored the connections for a while both on the J2EE platform and on the backend database and came to this conclusion : apparently each request - even by the very same user looking at the very same component, just but pressing the refresh button in the browser window - creates a new connection in the pool managed by the connector framework.
- result : the number of successful views of the components is equal to the number of Maximum Connections defined for the JDBC connector on the J2EE platform.
In our code we are using the close() method on the IConnection interface as indicated in the documentation that comes with the PDK.
Is this a known problem OR are we doing something wrong here ?
We suspect that there is something wrong in the implementation of the JDBC connector, which isn't handling the close method correctly.In more general terms this issue raises the following questions :
- how does the Connector framework manage the pool of JDBC connections ?
- the fact that our component at each request (even after a refresh in the browser) causes the CF to create a new connection, does that mean we are writing our code incorrectly so that each request is indeed considered to be a unique and in need of its own database connection ?
We have tried to avoid as much reason as possible for the CF to generate a new connection : e.g. we have set up user mapping so that all users access the database with the same account. This should already eliminate the requirement to have a separate for each user. => in general : what are the different ways by which to control the generation of connections by the Connector Framework, for the JDBC Connector in particular ?
- So far we are writing the code accessing the SQL server straight into a JSPDynpage. Am I wrong in thinking that this is allowed. Although we intend to write a portal service as a wrapper for all database interaction in a later stage, for the simple exercises now we are directly using the CF service API in the portal components.
- by what algorithms does CF determine whether to take a connection from the pool or to create a new connection to the back-end system.
- Am I wrong in thinking that connection pool management is no longer the task of the developer when using CF ? -
Hi All,
I installed SAP BW 3.5 by following Installation Seqence in the mySAP ERP 2004 SR1 master guide,
there are two servers under Visual Administator -> Cluster -> sapsid: one is "Server 0 10_37758"(I think this is Central Instance), another is "Server 0 12_93726" (it maybe dialog instance). The first server is empty, and I can see JDBC Conncetor, Connector Container and etc.
In the runtime tab of JDBC Connector, the Drivers only inculdes System_Driver, is it correct?
and the status of the connector jdbc, odbo, smla and sapq in the Connector Container, Connector 1.0 display as sap.com/com.sap.ip.bi.sdk.dac.connector.sapq/null
sap.com/com.sap.ip.bi.sdk.dac.connector.xmla/null
sap.com/com.sap.ip.bi.sdk.dac.connector.odbo/null
sap.com/com.sap.ip.bi.sdk.dac.connector.jdbc/null
and they are not activity. what problem are these?
I tried to add JDBC Driver in JDBC Connector, the problem can't be fixed, please help me.
I install all ECC IDES 5.0 and java components and database on same host which is windows 2003 with Oracle9iHi there,
Do i have to to put mysql.connecto.jar to the
j2dk\lib\ext? I have not copy the files maybe this is
a problem with the connector. What do you think?Good God, no. Your code does not belong there.
You have to add the MySQL Connector JAR to your CLASSPATH when you run. If you're running on the command line, that means using the -classpath option on java.exe. If you're using an IDE, that means adding the JAR to your CLASSPATH using the mechanism provided by the IDE. If you're using an app server, that means packaging the JAR with your app.
% -
Where i will get the .jar files for JDBC connector for MSSQL Server
Hi,
i am trying to configure the JDBC connector for the MSSQL server. For this we need to add the .jar files for MSSQL Server. Can any body tell , where i will will get the jar files to finish this connection.
Database version is MS SQL Server 2000
Portal version is Portal7.0 sp9
Regards
vijayHi Vijay,
If you are looking for the exact steps as to how we can configure the JDBC Connector for accessing the MS SQL Server, have a look at this document:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/b00917dc-ead4-2910-3ebb-b0a63e49ef10
Follow the steps till page 12 of this doc.
Bye
Ankur
Do reward points for helpful as well as solved answers!! -
Please Help me on BI Java SDK using BI JDBC Connector
Hi, I'm new to sap BI Java SDK. I'm not getting how to get the primarykey columns, using BI JDBC Connector (for relational data sources). If anybody knows, please let me know. its very very urgent task to be done in my project. In the below following code.... I have written a code to connect to the database through resource bundle, reading table names, once user select table name, i need to show the primary key columns of that table to the user. here i'm not getting how to get the primary key columns . Please send me the code if there is any method to find out the primarykey columns or a logic to get them. I will be greatful to you.... if you can do this favour. Please check out the following code ........
ManagedConnectionFactory mcf;
IConnectionFactory cf;
IConnectionSpec cs;
mcf = new JdbcManagedConnectionFactory();
cf = (IConnectionFactory) mcf.createConnectionFactory();
cs = cf.getConnectionSpec();
ResourceBundle rbLocal = ResourceBundle.getBundle( "xxxx");
Enumeration propnames = rbLocal.getKeys();
while (propnames.hasMoreElements())
String key = (String) propnames.nextElement(); //out.print(key); //out.println("="rbLocal.getString(key)"");
cs.setPropertyValue(key, rbLocal.getString(key));
// Establishing the connection. // The IBIRelational interface provides an entrypoint to access // metadata and execute queries.
IBIConnection connection = (IBIConnection) cf.getConnectionEx(cs);
IBIRelational rel = connection.getRelational();
IBIQuery query = rel.createQuery();
String sqlStatement = "SELECT * FROM " + "BICQPERSON where type='pk'"; ResultSet rs = IBIDataSet dataset = query.execute();
Thanks SreeKanthWell, I added two lines in OC4J.cmd
set ORACLE_HOME=C:\OC4J\oc4j_extended_101350
set JAVA_HOME=C:\JAVA\JDK7u7
before
set J2EE_HOME=%ORACLE_HOME%\j2ee\home
and I restarted the windows. It looks try to run OC4J but failed, as I open services window, it shows OC4J is "stopping". When I try to run it manually, I got the same problem again. is there anything I missed? What is your OC4J, JDK and javaservice version?
Sam
Maybe you are looking for
-
When i try to upload a .mts file from my Sony camera to Premiere Pro CC it refuses to play the audio! Ofcourse i could convert every single clip but it takes tons of time. How can i make Pr play audio track properly?
-
TNS 12549 error on installing Oracle 10g on Windows XP Home?
Hi, I installed Oracle 10g on Windows XP Home by clicking on Disk1\install\setup (NOT Disk1\setup as instructed since that did not work). Everything seemed to go fine except towards the end of the install I got a whole bunch of errors saying that "op
-
Embedding multimedia such as videos makes PDFs too large to e-mail and store, and each PDF has to contain the video instead of the video residing in just a single location. I wanted to know whether one can embed links in the PDF to the Acrobat.com we
-
I'm using OS X 10.9.5 and my Canon MG6320 printer suddenly won't connect. It's constantly offline. I deleted the printer and am now trying to Add it, but it won't appear on the selection list.
-
Tagging files for reflow under vista
On my old computer (with windows 2000) I was able to move files from the laptop to my HP Ipaq 2790b and I could use the reflow feature on the Ipaq in Reader. When I moved to a new laptop and Vista I tried to get Adobe reader for pocket PC from the Ad