JspDynpage through JDBC connectivity
hi sdn
now i am trying jdbc connection in my Jspdynpage application.part of that
i create jdbc system from jdbc template.when going to test the connection
i got message like that.plz give suggestions to solve my problem
i include my error message below.
Test Details:
The test consists of the following steps:
1. Retrieve the default alias of the system
2. Check the connection to the backend 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.
Hi
Test the connection using system object to JDBC System properly,Ensure that all connection properties(Technical properties) are correct .
regards
kalyan
Similar Messages
-
Connection through jdbc thin client taking more time than from sqlplus!!!
Hello All
Machines A and B
Applicaion in A is connecting to B(9.2.0.6),db server.
The schema is so small with few tables and data in each table less than 500 rows
We are in the process of migrating the Application Schema in B to C[9.2.0.8].
But the response time is more when the application fetches from C.
Even while selecting the sysdate from dual.
The application is using the jdbc thin client for fetching the data.
When the same sql is executed by (from A to C)
sqlplus -s user/pass @execute.sql, its gets done in a fraction of a second.
But when the same is done through the application which uses jdbc thin client, it takes few seconds
to complete.
When tried with a small java program that uses classes12.jar (from A to C)
conn = DriverManager.getConnection(URL,UID,PASS);
stop = System.currentTimeMillis();
System.out.println("Connection time in milli sec: " + (stop - start));
System.out.println();
..It was found that creating the connection was taking time.
But the same is not happening when tired through the sqlplus
Could someone throw some light into this?
What could be the reason for jdbc to get slower while establishing connections?
TIA,
JJare you using latest drivers - http://www.oracle.com/technology/tech/java/sqlj_jdbc/index.html
you may want to check some options reducing jdbc connection cost from the otn samples - http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/index.html -
How to connect informix database from informatica through JDBC instead of ODBC
How to connect informix database from informatica through JDBC instead of ODBC.
Hi mate,
You may get fast reply for this in informatica forums.
Thanks
http://mkashu.blogspot.com -
Obtaining an oracle.sql.STRUCT through a pooled JDBC connection
Hello,
I am using WebLogic Server 10 and and Oracle 10 and I am trying to obtain a vendor-specific oracle.sql.STRUCT from a ResultSet using a pooled connection defined in Weblogic. I need the vendor-specific object, rather than simply the java.sql.Struct implementation, because a third party library requires it.
What gets returned in the ResultSet is a non-exposed WebLogic wrapper object which implements java.sql.Struct, but which cannot be cast to an oracle.sql.STRUCT. I can use reflection on this object to find and call the getVendorObj() method to obtain the oracle.sql.STRUCT, but this solution is not acceptable because this is not a published API and is not guaranteed not to change in future versions.
How can I reliably obtain a vendor-specific implementation of java.sql.Struct through a WebLogic connection pool in WebLogic Server 10?
Thanks for any advice,
-Dan Schwemleindan schwemlein wrote:
Joe,
Thanks again. With your guidance, I have arrived at the following approach, which I'll post for the benefit of others, and which I'd be thankful if you would validate:
1) Import the jar com.bea.core.datasource-1.0.0.0.jar from %BEA_HOME%\modules, which is the only location of the class WLConnection, which is the only class with the getVendorConnection() method you refer to.
2) Get the logical connection from the pooled data source, cast it to a WLConnection, call getVendorConnection() to obtain an OracleConnection (from the ojdbc jar), and use this connection to obtain the required oracle.sql.STRUCT from an OracleResultSet.
3) Be aware of the limitations and follow the guidelines in the document http://e-docs.bea.com/wls/docs81/jdbc/thirdparty.html#1043646 regarding security, error handling, releasing resources (close only the logical connection), etc.
Does this sound like the approach you had in mind?
Thanks again,
-Danyes.
Joe
>
Re: Obtaining an oracle.sql.STRUCT through a pooled JDBC connection
Posted: Jul 16, 2007 3:21 PM
dan schwemlein wrote:
Thanks for the quick response!I was working today...
Thank you for the information about the connection being closed.
I will look into using this configuration setting.
You say that you can describe a way to get a handle on an unwrapped
pool object using some documented WLS-specific code. Are you referring
here to the getVendorConnection() method?yes.
This method does not help me
get the oracle.sql.STRUCT object, because even the connection returned
by getVendorConnection() returns a wrapped WL java.sql.Struct object
from a call to getObject().I don't believe it. If you are running in WLS, with a local pool,
the getVendorConnection() will give you the Oracle connection,
which will give you an Oracle statement, etc, down to an oracle
STRUCT object. Once you have a direct reference to the oracle connection,
we're not in the picture when it returns something to you.
It would be great if getVendorObj() were
documented and could be counted on in future versions. To use this
method, one would still have to access it via Java reflection, because
the wrapper class and its getVendorObj() method would be exposed in an
API, correct? Could this method be exposed in the API, so that reflection
doesn't need to be used, or it is exposed somewhere that isn't documented?getVendorObj() is not yet exposed or therefore supported for the general
wrapped object, so you would have to start from the connection and
derive all subobjects from it.
Thanks again,
-Dan Schwemlein
Hello,
I am using WebLogic Server 10 and and Oracle 10 and I am trying to obtain a
vendor-specific oracle.sql.STRUCT from a ResultSet using a pooled connection
defined in Weblogic. I need the vendor-specific object, rather than simply
the java.sql.Struct implementation, because a third party library requires it.
What gets returned in the ResultSet is a non-exposed WebLogic wrapper object
which implements java.sql.Struct, but which cannot be cast to an oracle.sql.STRUCT.
I can use reflection on this object to find and call the getVendorObj() method to
obtain the oracle.sql.STRUCT, but this solution is not acceptable because this is
not a published API and is not guaranteed not to change in future versions.Understood. We all benefit from sticking to the J2EE standards,
but we could also wish Oracle had done so with it's driver objects.
I will assume your code is running in the WebLogic server, because
an external JVM can never access the real driver object, which will
always really be in the WLS JVM. No active JDBC object is serializable.
How can I reliably obtain a vendor-specific implementation of java.sql.Struct
through a WebLogic connection pool in WebLogic Server 10?There is no way to get a handle on an unwrapped pool object without using some
WLS-specific code, though I can describe a way with documented methods,
and/or I can get our documentation altered to say we'll support the
getVendorObj() method. We introspect every vendor object, and for those
implementations that have done the wise thing, projecting any non-standard
methods as an Interface, we are able to also project that Interface so
the vndor example code should work. However, in some poorly-done
cases, such as for some Oracle stuff, there is either no Interface,
or the Oracle code has extensions that take java.sql objects as input,
(at least that's the signature of the method) but two lines into the
method, the Oracle code assumes and casts the java.sql object to a concrete
Oracle object. In these use cases you need the direct unwrapped object.
We provide and document Connection.getVendorConnection(), and intend
getVendorObj() to serve the same for subobjects, but note the dangers
and responsibilities: We rely on our wrappers to implement the security
and thread-safety of our pooling system. Because user code can get
unrestricted access to the actual connection from most JDBC objects,
we can never trust that we have complete control once a vendor object
is exposed. Therefore, by default we will close and replace every JDBC
connection so exposed, as soon as the current thread is finished with
the pool connection. This hurts performance. We also document a pool
config setting that will tell us that you take responsibility for any such
problems, and not to close connections just because they've been exposed.
HTH,
Joe
Thanks for any advice,
-Dan Schwemlein -
JDBC connection error in Crystal Reporting through ESRI Dekho product
Wow, I am so far out of my depth here I am not even sure I am in the correct forum. I have recently started using the GIS software ESRI product Dekho (a web based browser basically) and the reporting tool is Crystal Reports. The JDBC connection required for me to connect to data held in a corporate oracle db is failing with a driver error and I don't know how to troubleshoot it. ESRI support seem to think it's a Crystal Reports issue. If anyone has any idea what I am talking about please respond, including pointing me to a forum which might assist, if this one is not where I should be asking such a question. Thanks in advance.
Simon here from Esri Australia, I work in the support team for the Dekho product, that this client was having problems with.
We established that our Dekho product was passing the relevant information over to Crystal and that Crystal was having issues connecting to a database due to an issue with Crystal not having the correct JBDC drivers installed.
= Therefore we concluded that the client should get in touch with you to resolve these JDBC driver issues.
The error in the report is:
['Failed to open the connection, Details:JDBC driver not found"|http://i7.photobucket.com/albums/y254/jak-c/Outlook1.jpg]
We believe that the issue is specifically a Crystal Reports issue on connecting to an Oracle database.
If we take Dekho out of the equation, the issue is still apparent.
We did some testing on Oracle XE and were able to get it to communicate with Crystal Reports ok.
We had to make the following change:
1. copied the database drivers from:
C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib
to
C:\Program Files (x86)\Business Objects\Common\4.0\java\lib\external\
2. Edit "C:\Program Files (x86)\Business Objects\Common\4.0\java\lib" to include the above JAR file into the classpath tag.
We touch on this in [our own web-help|http://www.dekho.com.au/help/31/default.htm?turl=Documents%2Fconfigurecrystalreports.htm], although this is more specific to SQL Server.
The client had problems setting up this Crystal Reports to Oracle link, due to drivers missing.
Can you generate a support ticket for this client and assist her with getting CR drivers working with her version of Oracle?
As a sidenote - Esri Australia is a distributor for Esri, and not sure if the OEM extends to us?
We would like to get a better relationship with you on how to deal with Crystal related issues with our own product.
For issues like the above, we would like to come up with a more efficient means for our clients to get resolutions to their issues, and if the issue stems to outside our product - a good process for our support team to log a ticket on behalf of our client and pass all the relevant info across, so that a solution can be resolved quickly.
- Do you have a contact in Australia that we could talk to about this?
Let me know if you need the clients contact details - I believe this is still an issue for her. -
Problem in jdbc connecting as sysdba
Dear ORACians,
i am using database 8.1.5 and jdbc 8.1.5 and jdk 1.5.
my problem: i want to connect to the database as sysdba through jdbc.
oracle is telling that to connect to the db as sysdba we have to use properties file. i did the same. It is connecting to the db as normal mode not as sysdba mode why???
Actual code is:
Properties conProp = new Properties();
conProp.put("user", tf[2].getText());
conProp.put("password", String.valueOf(cpwd.getPassword()));
conProp.put("internal_logon", "SYSDBA");
try{
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
String conUrl ="jdbc:oracle:thin:@"+tf[0].getText()+":"+tf[1].getText()+":"+tf[3].getText();
conn=DriverManager.getConnection(conUrl,conProp);
stat=conn.createStatement();
JOptionPane.showMessageDialog(f,"Connection Estblished...");
jdcn.dispose();
}catch(Exception w){
JOptionPane.showMessageDialog(f,String.valueOf(w));
i hope ORACians will guide me to develop my apps in proper direction.
urs
selvanThanks for ur reply but when i add "as sydba" with password property it gives error:
Properties conProp = new Properties();
conProp.put("user", tf[2].getText());
conProp.put("password", String.valueOf(cpwd.getPassword())+"AS SYSDBA");
the error is :
java.sql.SQLException: ORA-01017 invalid username/password; logon denied
selvan -
APEX fails with Java stored procedure that creates a JDBC connection
Hello!
We are facing a strange problem since we have upgraded from Oracle 10g and Apache to Oracle 11g with Embedded Gateway.
Here is what we do:
** APEXX calls a PL/SQL package function "OPEN_CONNECTION" that wraps a Java stored procedure called "openConnection".*
FILE_READER_REMOTE_API.openConnection(user, password, host, port, service);
** The Java stored procedures "openConnection" opens a JDBC connection to an other database:*
public class FileReaderRemote {
private static Connection conn = null;
private static DefaultContext remoteContext = null;
public static void openConnection(String user, String password, String host, String port, String service) throws SQLException {
// Load the Oracle JDBC driver
DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
java.util.Properties props = new java.util.Properties();
props.put ("user", user);
props.put ("password", password);
//props.put ("database", "//" + host + ":" + port + "/" + service);
props.put ("database", host + ":" + port + ":" + service);
props.put("v$session.program", "FileReaderRemote2");
// Connect to the database
remoteContext = Oracle.getConnection("jdbc:oracle:thin:", props);
This procedure used to work fine before the upgrade, but now we see the following:
* It still works when called directly from TOAD or SQL*Plus, even under the user ANONYMOUS.
* When called from APEX and the target database is Oracle 11g, it still works.
* When called from APEX and the target database is Oracle 10g, it takes several minutes and we receive this error:
*"Socket read timed out"*
We have tested the following workaround:
We have created a database link to our own database and called the stored procedure through that database link.
FILE_READER_REMOTE_API.openConnection*@loopback*(user, password, host, port, service);
This works, but is not really an option.
I hope some one of you can explain this strange behaviour to me.
Best regards,
MatthiasYou wrote
"Java stored procedures -- by definition - are stored in the 8i rdbms. !!"
From the Oracle8i Java Stored Procedures Developer's Guide
Release 8.1.5
A64686-01
"If you create Java class files on the client side, you can use loadjava to upload them into the RDBMS. Alternatively, you can upload Java source files and let the Aurora JVM compile them. In most cases, it is best to compile and debug programs on the client side, then upload the class files for final testing within the RDBMS"
This means that you can create shared classes that are used on both the client and server side. The source does not need to reside within the server (according to their documentation). Please also note the following from the Oracle8i JDBC Developer's Guide and Reference Release 8.1.5 A64685-01 for using the getConnection() method on the server:
"If you connect to the database with the DriverManager.getConnection() method, then use the connect string jdbc:oracle:kprb:. For example:
DriverManager.getConnection("jdbc:oracle:kprb:");
Note that you could include a user name and password in the string, but because you are connecting from the server, they would be ignored."
So if you're coding a shared class that is to run on both the client and server side, you might do something like this:
Connection conn =
DriverManager.getConnection(
System.getProperty("oracle.server.version") == null
? "jdbc:oracle:thin:@hostname:1521:ORCL"
: "jdbc:oracle:kprb:"),
"youruserid","yourpassword");
As stated earlier, the userid and password are supposedly ignored for server connections retrieved in this manner. I haven't tried this yet, but it is documented by Oracle.
Regards,
Steve
null -
Total JDBC connections rising steadily
Our J2EE application has been crashing recently. The app stops responding to requests and is eventually restarted by OPMN. I have been monitoring it through the enterprise manager web page since the the crashes seem to be related to waiting for database resources. The number of open JDBC connections stays low, always less than 10. However, the total number of JDBC connections rises steadily through the day getting well past 1000. Is this normal?
Does it represent leakage of connections from the pool?
We are using OC4J 9.0.4.0 with a patch to fix the connection pool bug.
The data-source is defined as follows:
<data-source
class="com.evermind.sql.DriverManagerDataSource"
name="OracleDS"
location="jdbc/OracleCoreDS"
xa-location="jdbc/xa/OracleXADS"
ejb-location="jdbc/OracleDS"
connection-driver="oracle.jdbc.driver.OracleDriver"
username="asuser"
password="unguessable"
url="jdbc:oracle:thin:@dbserver:1526:dbinstance"
inactivity-timeout="30"
/>The Total number of connections figure indicates the total number of connections that have been opened since OC4J was started.
The Open number of connections figure indicates the total number of connections currently open.
Since you say that the open connections figure stays below 10, this suggests that you do not have a connection leak, but your inactivity time out is too low, and therefore your connections are being closed before they can be reused - hence the large total number of connections.
Good luck. -
Inserting files in to Oracle 8i database through JDBC - Only 4k data file
Hi,
I need to insert a files(images or excel files, doc files etc..) in to oracle 8i database through JDBC program. But i am not able to store more than 4k data files in to files. can any body give me solutions regarding this.
My code is like this...
String fileName ="Sample.jpg";
String dataSource = "jdbc/oracle";
File file=null;
FileInputStream fis = null;
Context initCtx=null;
DataSource ds = null;
Connection con = null;
try
initCtx = new InitialContext();
ds = (DataSource)initCtx.lookup(dataSource);
con = ds.getConnection();
try
file = new File(fileName);
fis = new FileInputStream(file);
catch(FileNotFoundException fe)
out.println("File Not Found");
PreparedStatement pstmt = con.prepareStatement("insert into bfiles values(?,?)");
pstmt.setString(1, fileName);
pstmt.setBinaryStream(2, fis, (int)file.length());
pstmt.executeUpdate();
out.println("Inserted");
fis.close();
pstmt.close();
con.close();
out.println("closed");
catch(Exception e)
out.println(e);
} in Oracle bi i have created a table like this :
CREATE TABLE BFILES
FILENAME VARCHAR2(100) DEFAULT NULL,
FILECONTENT BLOB DEFAULT EMPTY_BLOB()
)Please help me ourt to solve this problem.
i got struck in this problem.
its urgent
thanks in advance
djshivuHi Shanu.
Thanks for your help...
By Using THIN driver also we can insert any files more than 4k and and retrive same. Fallowing codes worked fine for me using thin Driver .
Following are the 2 programs to write and read.
we can insert and retrieve any format of files ( jpg, gif, doc, xsl, exe, etc...)
=======================================================
// Program to insert files in to table
import oracle.jdbc.driver.*;
import oracle.sql.*;
import java.sql.*;
import java.io.*;
import java.awt.image.*;
import java.awt.*;
* @author Shivakumar D.J
* @version
public class WriteBlob{
public static void main(String[] args){
String filename = "018-Annexure-A.xls";
Connection conn = null;
try{
Class.forName("oracle.jdbc.driver.OracleDriver");
conn=DriverManager.getConnection("jdbc:oracle:thin:@test:1521:orcl","modelytics","modelytics");
conn.setAutoCommit(false);
Statement st = conn.createStatement();
int b= st.executeUpdate("insert into bfiles values('"+filename+"', empty_blob())");
ResultSet rs= st.executeQuery("select * from bfiles for update");
rs.next();
BLOB blob=((oracle.jdbc.driver.OracleResultSet)rs).getBLOB(2);
FileInputStream instream = new FileInputStream(filename);
OutputStream outstream = blob.getBinaryOutputStream();
int chunk = blob.getChunkSize();
byte[] buff = new byte[chunk];
int le;
while( (le=instream.read(buff)) !=-1)
outstream.write(buff,0,le);
instream.close();
outstream.close();
conn.commit();
conn.close();
conn = null;
System.out.println("Inserted.....");
catch(Exception e){
System.out.println("exception"+e.getMessage());
e.printStackTrace();
}//catch
}=======================
// Program to retrieve files from database
[import java.sql.*;
import java.io.*;
import java.awt.*;
public class ReadImage
public static void main(String a[])
String fileName ="018-Annexure-A.xls";
try
Driver driver = new oracle.jdbc.driver.OracleDriver();
DriverManager.registerDriver(driver);
Connection con = DriverManager.getConnection("jdbc:oracle:thin:@test:1521:orcl", "modelytics", "modelytics");
File file = new File("C:/Documents and Settings/USERID/Desktop/dump.xls");
FileOutputStream targetFile= new FileOutputStream(file); // define the output stream
PreparedStatement pstmt = con.prepareStatement("select filecontent from bfiles where filename= ?");
pstmt.setString(1, fileName);
ResultSet rs = pstmt.executeQuery();
rs.next();
InputStream is = rs.getBinaryStream(1);
byte[] buff = new byte[1024];
int i = 0;
while ((i = is.read(buff)) != -1) {
targetFile.write(buff, 0, i);
System.out.println("Completed...");
is.close();
targetFile.close();
pstmt.close();
con.close();
catch(Exception e)
System.out.println(e);
}====================
Table Structure is like this
CREATE TABLE BFILES
FILENAME VARCHAR2(100) DEFAULT NULL,
FILECONTENT BLOB DEFAULT EMPTY_BLOB()
)========================================================
i hope above codes will helpful for our future programmers
thanks shanu...
regards
djshivu...(javashivu) -
Oracle Express JDBC connection issues
Hi,
I installed the OE10g, however I cannot connect through JDBC, the admin tool runs at:
http://127.0.0.1:9080/apex
note that I changed the http port and works properly, however, when trying to reach this DB through JDeveloper's 'Create Database Connection' wizard, I set:
Username: SYSTEM
Password: root
Role: (empty)
Driver: thin
Host name: localhost
JDBC Port: 1521
SID: ORCL (service name not selected)
The above settings don't work, please assist.
///RGEno, the error message says:
Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
The Connection descriptor used by the client was:
localhost:1521:EX -
hi I am configuring jdbc sender adapter for fetching the data from the MS -Access remotely.
With available connection parameter , when I am running java program then its running fine but when I am using the same driver connection information then its giving error.
I have already tried all the blogs available on sdn but not able to sort out this issue.
Now I am getting this error at jdbc communication channel lavel.
Error during database connection to the database URL 'jdbc:odbc:Driver = {Microsoft Access Driver (.mdb)};DBQ= //<server IP>/test/Test1.mdb' using the JDBC driver 'jdbc.odbc.JdbcOdbcDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:odbc:Driver = {Microsoft Access Driver (.mdb)};DBQ= //<server IP>/test/Test1.mdb': SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified'
At sender adapter configuration Level--> I give
Transport Protocol: JDBC 2.0
Message Protocol : JDBC
JDBC DRIVER: jdbc.odbc.JdbcOdbcDriver
Connection : jdbc:odbc:Driver = {Microsoft Access Driver (*.mdb)};DBQ= //<IP Address>/test/Test1.mdb
--> One more thing Can I use the same connection string at udf level in Message Mapping . for ex . Can I create udf -> putting same java code , where at run time it will fatch some data based on the query written in java"
Please share me ur input for the same.
regards
RamHello Shiva,
Install JDBC driver's
Go through this links,
/people/varadharajan.krishnasamy/blog/2007/02/27/configuring-jdbc-connector-service-to-perform-database-lookups
http://searchsap.techtarget.com/tip/0,289483,sid21_gci1246926,00.html
To install JDBC driver follow the how to guide.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-how-to-guides/how%20to%20install%20and%20configure%20external%20drivers%20for%20jdbc%20and%20jms%20adapters.pdf
Configuration of JDBC Adapter for SQL Server
JDBC Driver = com.microsoft.jdbc.sqlserver.SQLServerDriver
Connection = jdbc:microsoft:sqlserver://hostname:<port>;DatabaseName=<DBName>
UserID and Password.
If the connection is not working find the correct port number.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40b92770-db81-2a10-8e91-f747188d8033
JDBC- X I - R/3 Scenario
/people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
Please check the driver path as mentioned below.
JDBC Driver : sun.jdbc.odbc.JdbcOdbcDriver
Connection:jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=//location of DB table.mdb;
No JDBC driver required.
Receiver JDBC scenario MS access - /people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn
follow this thread
Re: Problem when connecting to MS Access through JDBC Adapter.
SAP Note 850116 has details
Thanks,
Satya Kumar
Edited by: SATYA KUMAR AKKARABOYANA on May 29, 2008 2:36 PM -
JDBC Connectivity Slows to a Halt
Not sure if this is the correct forum but this is the issue. We are running an in-house java application that runs in Tomcat on an HP-UX server. Also on the same server is the Oracle 10g DB that the app connects to. After a period of heavy user activity, 3-5 hours, the connection between the app and the DB seems to grind to a halt. I see no errors in the Listener log nor the alert log. The server is not having any memory or CPU usage issues. I can access the DB through SqlPlus without any problems, just connecting from Tomcat to the DB slows. After killing and restarting Tomcat, everything seems to run OK again. Any ideas or insights would be greatly appreciated.
A kind of stupid question, but are you sure you're really closing the JDBC connections correctly in your application?
Else, I'm sure that this isn't the correct user forum for this question. You might want to try a database forum, but you'll most probably get best responses in a Tomcat forum.
Regards,
Martin -
In EJBs, we can always spawn a JDBC connection using the internal server side driver through defaultConnection() or kprb. My question is, can we spawn any other kind of connection from an EJB to another database on some remote machine, this would involve using the thin or oci drivers, i try but get security exceptions and access privilege exception though the account i use is privilegded for database operations. Can someone answer my question please.
see reply in one of the four other forums you posted the same question to !!
-
JDBC connection in EJB (Sorry i know this is a JSP forum but someone might have the a
In EJBs, we can always spawn a JDBC connection using the internal server side driver through defaultConnection() or kprb. My question is, can we spawn any other kind of connection from an EJB to another database on some remote machine, this would involve using the thin or oci drivers, i try but get security exceptions and access privilege exception though the account i use is privilegded for database operations. Can someone answer my question please.
see reply in one of the four other forums you posted the same question to !!
-
DB Insert failed through JDBC Adapter
Hi all,
My system is on the latest patches of XI3.0 SP9. I am trying to insert some records into a database through JDBC adapter. The XML arriving at JDBC adapter is:
<?xml version="1.0" encoding="UTF-8" ?>
<ns:MaterialDataUpdate_Msg xmlns:ns="http://acsis.com/ManufacturingManagement">
<MaterialData>
<TMP_MAT_SERIAL action="INSERT">
<table>TMP_MAT_SERIAL</table>
<access>
<MATNO>0000000012</MATNO>
<BATCH>32151</BATCH>
<ITM_SERIAL>453176587769</ITM_SERIAL>
<WEIGHT>12.34</WEIGHT>
<T_TIME>2005-01-21 13:21:34.432</T_TIME>
</access>
</TMP_MAT_SERIAL>
</MaterialData>
</ns:MaterialDataUpdate_Msg>
The connection to the database looks ok. My JDBC adapter config is pointing to "jdbc:microsoft:sqlserver://sapsrv03:1433;databaseName=JDE".
In rwb, I got the following error:
Unable to execute statement for table or stored procedure. "TMP_MAT_SERIAL" due to java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid object name 'TMP_MAT_SERIAL'.
I have checked the database "JDE", and the table 'TMP_MAT_SERIAL' does exist.
Does anyone have any idea about this error?
Thanks a lot for helping!
HartHi Hart Liu,
My system is on the latest patches of XI3.0 SP9. I am trying to insert some records into a database through JDBC adapter.
We have been facing with problem XSD structure in the jdbc side. We r manually created XSD structure. In the adapter engine we dont have any action item. In u r mail
U r structure contains action attribute.
Can u plz help me out to generate the right XSD structure?
We have one more doubt, is there any automatically structure-generated option? plz let us know.......
We r waiting for u r reply....
Plz help me!!!!!!!!
Regards,
Anil
Maybe you are looking for
-
i am going to buy a bigger hard drive. i am operating on Lion. how do i install my os on the new disk? i can't use time machine.
-
Hi does anyone know the best possible sound settings in iTunes under "import" section in MP3 format *That an iPod G5 can play?* in terms of kbps and sample rate. 12' Powerbook G4 1.5Ghz 768MB RAM Mac OS X (10.4.4) iPod G5 and iPod G2
-
Dear frd,s, can you help me there is any Report to show only Open GR,s Thanks, sam
-
I'm running the latest version of iTunes (7.6) with an iPod Classic (160gb). Ever since upgrading to iTunes 7.6, however, I have encountered a stubborn problem with my collection of Audible audiobooks. I have 36 of these, from a couple of different a
-
Cisco AnyConnect can't be installed on my machine (installation package error)
Hi, for quite some time I've had problems installing AnyConnect on my machine. It has worked fine on my colleagues' hardware-wise identical machines. During installation I get two error popups: I have tried installing several versions, and the latest