JDBC Driver to Support nvarchar/nchar/ntext

I downloaded the jdbcKona driver for MS SQL Server 7/2000 from
the "Download Center". This page claims that this driver
supports the international data types (nvarchar, nchar, and
ntext) on SQL Server 7/2000.
http://www.weblogic.com/docs51/techstart/install_jmsq4.html
The examples provided in this download were very old (12/19/2001)
and none of them showed anything dealing with these international
types so I wonder if this driver truly does support these data
types or if I somehow downloaded the wrong driver?
I'd be interested in seeing some examples of how to use these
international types to store various languages in the database.
Something along the lines of performing this query (but doing
so via JDBC where the text within the single quotation marks
is a parameter that could be English, French, etc.) would be
great:
select address from names where name = N'буйно'
Thanks.

Grace wrote:
Okay, that kind of makes sense, but are you saying that if I
have this table:
NAMES
name nvarchar(50)
address nvarchar(100)
and I have a prepared statement like this:
dbstatement = dbconnection.prepareStatement(
"insert into address values ( ?, ? )" );
that this set of JDBC:
dbstatement.setString( 1, "буйно" );
dbstatement.setString( 2, "123 позволяет"
ResultSet rs = dbStatement.executeQuery();
would work the same way as this set of JDBC:
dbstatement.setString( 1, "Alfred" );
dbstatement.setString( 2, "123 West Main Street" );
ResultSet rs = dbStatement.executeQuery();
This does not appear to be the case. When I try this, I get a
SQLException: string or binary data would be truncated. If I
modify the query so that it doesn't throw any errors I see
garbage text inserted into the database.
Are you aware of any examples of this?No JDBC driver will change or interpret the content of any string parameter values. Is
that syntax supposed to be understood by your DBMS? I think you need to create
whatever string you want to send, as a Java String with the unicode characters you want,
then set the parameter(s) with the value. Eg:
String myFirst = "\u1073\u1091\u1081\u1085\u1086"; // note Java syntax for unicode characters...
dbStatement.setString(1, myFirst );
Also, the SQL you are doing is an insert, not a query, so use executeUpdate(). ExecuteQuery()
will throw an exception.
Joe
>
>
Joseph Weinstein <[email protected]> wrote:
Grace wrote:
I downloaded the jdbcKona driver for MS SQL Server 7/2000 from
the "Download Center". This page claims that this driver
supports the international data types (nvarchar, nchar, and
ntext) on SQL Server 7/2000.
http://www.weblogic.com/docs51/techstart/install_jmsq4.html
The examples provided in this download were very old (12/19/2001)
and none of them showed anything dealing with these international
types so I wonder if this driver truly does support these data
types or if I somehow downloaded the wrong driver?
I'd be interested in seeing some examples of how to use these
international types to store various languages in the database.
Something along the lines of performing this query (but doing
so via JDBC where the text within the single quotation marks
is a parameter that could be English, French, etc.) would be
great:
select address from names where name = N'&#1073;&#1091;&#1081;&#1085;&#1086;'The driver support of nvarchar etc. means that it will transmit string
values,
such as PreparedStatement parameters, with the "N'" prefix, and all java
(16-bit) characters as unicode. This way, the DBMS will not strip the
characters
with a varchar map. The driver doe not alter the static contents of SQL
that
the application sends. It would be the DBMS that would interpret (or
not)
the SQL such as you posed above.
Joe

Similar Messages

  • OpenSQLException: JDBC driver not supported?

    Hi @ all,
    I need to connect to a DataSource with the WebAS 7 via SQLJ. As I try to connect to it with the SQL Engine set to "Vendor SQL" I get:
    "The given connection "com.sap.engine.services.dbpool.cci.ConnectionHandle" is not an Open SQL connection"
    As I try to get a connection to the dataSource via SQLJ with SQL Engine set to "Open SQL" or "Native SQL", I get the following Exception:
    ResourceException in method ConnectionFactoryImpl.getConnection(): com.sap.engine.services.dbpool.exceptions.BaseResourceException: SQLException thrown by the physical connection: com.sap.sql.log.OpenSQLException: JDBC driver not supported for MS_SQL_SERVER database.
    How can I get the SQLJ- Support?
    Kind regards,
    Uwe
    Message was edited by:
            Uwe Kunath

    Hi Uwe, all,
    for using Native SQL/JDBC or Open SQL/JDBC, the database itself and the JDBC driver must be recognized as being in the supported set. The answer to that depends on what you mean in detail by "Web AS 7". Roughly speaking, it should be the JDBC driver released by Microsoft.
    Open SQL/SQLJ is only available with a Open SQL/JDBC data source. Hence, there is no way around using Open SQL/JDBC.
    Now, Open SQL/JDBC and Open SQL/SQLJ both requires tables (and other database objects) to be deployed via the Open SQL for Java Dictionary. Up to and including WebAS Java 7.1, the Open SQL/Dictionary supports deployment to the system database, i.e. the database (and schema) used by the installed server itself.
    Given the above, the JDBC driver for a Open SQL/JDBC data source must already be present, because it must be the driver used by the server itself. When defining data sources, it is referred to as "system driver".
    This leaves us with a Open SQL/JDBC data source to the system schema. You can then also consider to establish a data source alias to the server's system datasource.
    Hope this helps. Best Regards, Dietamr

  • Does Microsoft SQL Server 2k JDBC Driver SP3 support "trusted connections"?

    I get the following error when attempting to connect to a SQL Server instance via JDBC :-
    [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Login failed for user '<username>'. Reason: Not associated with a trusted SQL Server connection.
    Does Microsoft SQL Server 2000 JDBC SP3 Driver support "trusted connections"?

    No, the MSDE instance I'm trying to connect to from my J2 application is configured as "Integrated Windows Authentication" ONLY (i.e not "mixed mode" and deliberately so) hence my search for a JDBC driver that supports o/s-based authentication.
    I appear to have found one now however at it appears that DataDirect's JDBC driver supports NTLM and Kerberos authenicaiton on Windows (although I haven't got it working yet).
    Thanks for your reply tho'

  • Looking for oracle JDBC driver that support Rowset

    I am using oracle driver "oracle.jdbc.OracleDriver" downloaded from oracle.com and i am using cached rowset in my program but my program gave me runtime error :
    Exception in thread "main" java.lang.AbstractMethodError: oracle.jdbc.driver.OracleDatabaseMetaData.locatorsUpdateCopy()Z
    at com.sun.rowset.CachedRowSetImpl.execute(CachedRowSetImpl.java:757)
    at com.sun.rowset.CachedRowSetImpl.execute(CachedRowSetImpl.java:1385)
    at WebRowSetSample.main(WebRowSetSample.java:73)
    but if i used data driver provided by Data Direct "com.ddtek.jdbc.oracle.OracleDriver" then it is working fine but the problem is data direct driver is not free and cant be used in production server, so if anyone know any free driver that support oracle and rowset implementation or able to correct problem then plz help me out.
    thanks...

    Hi I am using latest driver from oracle site, but the problem is when i fire execute method of cahed rowset i throws error that i mentioned above, if you have any other driver than mail me on [email protected]

  • Multibyte character support in Jdbc Driver

    Hi,
    I want to use multibyte characters in my Application and to store it in my database.
    If my database provider does not support a Multibyte data type, Can my
    Jdbc Driver provide support for the same ?
    For a column of type ISO88591 which is of single byte by nature , Can we insert Multibyte characters by providing some support for the same in my Jdbc Driver ?
    If yes , How could this support be provided in the Jdbc Driver.
    Please provide some clarification on the same.
    Thanks in Advance,
    Jay

    Hi,
    I want to use multibyte characters in my Application
    and to store it in my database.
    If my database provider does not support a Multibyte
    data type, Can my
    Jdbc Driver provide support for the same ?
    For a column of type ISO88591 which is of single byte
    by nature , Can we insert Multibyte characters by
    providing some support for the same in my Jdbc Driver
    This is a very very bad idea in general. If your database is Oracle, it's a horrificly stupendously bad idea.
    First, collation ("ORDER BY" and other things) will be badly broken.
    Second, it will very likely prevent the database from being upgraded to a multi-byte version.
    Third, it commonly will cause various database utilities to not work.
    There are plenty of databases, many of them free, that support UTF8.

  • Sql Exception on Testing Configuration with SQL Server JDBC driver for XA

    I have a requirement of analyzing the behavior of SQL Server JDBC data sources for XA transactions in our application.We have been using Non-XA drivers for both Oracle and SQL Server as we had no requirement for transactions spanning across multiple databases in past.I have setup and tested the XA driver for Oracle (Oracle Driver (Thin XA) for Instance Connections 9.0.1,9.2.0,10,11) in Weblogic 11g and its working perfectly for transactions spanning across two databases.No when I am trying to configure weblogic 11g R1 for Sql server JDBC driver to support XA transactions with driver details as follows,
    Server:Weblogic 11g R1
    Driver Type: MS Sql Server
    Database Driver :Oracle's MS SQL Server Driver(Type 4 XA) Version:7.0,2000,2005)
    Database:SQL Server 2005(Single Instance)
    and try to create a new data source and select "Test Configuration" and following error is thrown ,
    <Mar 17, 2011 4:49:49 PM GMT+05:30> <Error> <Console> <BEA-240003> <Console encountered the following error java.sql.SQLException: [OWLS][SQLServer JDBC Driver][SQLServer]xa_open (0) returns -3
    at weblogic.jdbc.sqlserverbase.BaseExceptions40.createAppropriateSQLExceptionInstance(Unknown Source)
    at weblogic.jdbc.sqlserverbase.BaseExceptions40.createSQLException(Unknown Source)
    at weblogic.jdbc.sqlserverbase.BaseExceptions.createException(Unknown Source)
    at weblogic.jdbc.sqlserverbase.BaseExceptions.getException(Unknown Source)
    at weblogic.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown Source)
    at weblogic.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source)
    at weblogic.jdbc.sqlserver.tds.TDSRPCRequest.processReplyToken(Unknown Source)
    at weblogic.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source)
    at weblogic.jdbc.sqlserver.SQLServerImplStatement.getNextResultType(Unknown Source)
    at weblogic.jdbc.sqlserverbase.BaseStatement.commonTransitionToState(Unknown Source)
    at weblogic.jdbc.sqlserverbase.BaseStatement.postImplExecute(Unknown Source)
    at weblogic.jdbc.sqlserverbase.BasePreparedStatement.postImplExecute(Unknown Source)
    at weblogic.jdbc.sqlserverbase.BaseStatement.commonExecute(Unknown Source)
    at weblogic.jdbc.sqlserverbase.BaseStatement.executeUpdateInternal(Unknown Source)
    at weblogic.jdbc.sqlserverbase.BasePreparedStatement.executeUpdate(Unknown Source)
    at weblogic.jdbcx.sqlserver.SQLServerImplXAResource.executeXaRpc(Unknown Source)
    at weblogic.jdbcx.sqlserver.SQLServerImplXAResource.executeXaRpc(Unknown Source)
    at weblogic.jdbcx.sqlserver.SQLServerImplXAResource.open(Unknown Source)
    at weblogic.jdbcx.sqlserverbase.BaseXAConnection.init(Unknown Source)
    at weblogic.jdbcx.sqlserverbase.BaseXAConnection40.init(Unknown Source)
    at weblogic.jdbc.sqlserverbase.BaseClassCreatorForJDBC40.createXaConnection(Unknown Source)
    at weblogic.jdbcx.sqlserverbase.BaseXADataSource.getXAConnection(Unknown Source)
    at com.bea.console.utils.jdbc.JDBCUtils.testConnection(JDBCUtils.java:550)
    at com.bea.console.actions.jdbc.datasources.createjdbcdatasource.CreateJDBCDataSource.testConnectionConfiguration(CreateJDBCDataSource.java:450)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.beehive.netui.pageflow.FlowController.invokeActionMethod(FlowController.java:870)
    at org.apache.beehive.netui.pageflow.FlowController.getActionMethodForward(FlowController.java:809)
    at org.apache.beehive.netui.pageflow.FlowController.internalExecute(FlowController.java:478)
    at org.apache.beehive.netui.pageflow.PageFlowController.internalExecute(PageFlowController.java:306)
    at org.apache.beehive.netui.pageflow.FlowController.execute(FlowController.java:336)
    at org.apache.beehive.netui.pageflow.internal.FlowControllerAction.execute(FlowControllerAction.java:52)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
    at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.access$201(PageFlowRequestProcessor.java:97)
    at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor$ActionRunner.execute(PageFlowRequestProcessor.java:2044)
    at org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionInterceptors$WrapActionInterceptorChain.continueChain(ActionInterceptors.java:64)
    at org.apache.beehive.netui.pageflow.interceptor.action.ActionInterceptor.wrapAction(ActionInterceptor.java:184)
    at org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionInterceptors$WrapActionInterceptorChain.invoke(ActionInterceptors.java:50)
    at org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionInterceptors$WrapActionInterceptorChain.continueChain(ActionInterceptors.java:58)
    at org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionInterceptors.wrapAction(ActionInterceptors.java:87)
    at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processActionPerform(PageFlowRequestProcessor.java:2116)
    at com.bea.console.internal.ConsolePageFlowRequestProcessor.processActionPerform(ConsolePageFlowRequestProcessor.java:261)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
    at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processInternal(PageFlowRequestProcessor.java:556)
    at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(PageFlowRequestProcessor.java:853)
    at org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(AutoRegisterActionServlet.java:631)
    at org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageFlowActionServlet.java:158)
    at com.bea.console.internal.ConsoleActionServlet.process(ConsoleActionServlet.java:256)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
    at com.bea.console.internal.ConsoleActionServlet.doGet(ConsoleActionServlet.java:133)
    at org.apache.beehive.netui.pageflow.PageFlowUtils.strutsLookup(PageFlowUtils.java:1199)
    at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.executeAction(ScopedContentCommonSupport.java:686)
    at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.processActionInternal(ScopedContentCommonSupport.java:142)
    at com.bea.portlet.adapter.scopedcontent.PageFlowStubImpl.processAction(PageFlowStubImpl.java:106)
    at com.bea.portlet.adapter.NetuiActionHandler.raiseScopedAction(NetuiActionHandler.java:111)
    at com.bea.netuix.servlets.controls.content.NetuiContent.raiseScopedAction(NetuiContent.java:181)
    at com.bea.netuix.servlets.controls.content.NetuiContent.raiseScopedAction(NetuiContent.java:167)
    at com.bea.netuix.servlets.controls.content.NetuiContent.handlePostbackData(NetuiContent.java:225)
    at com.bea.netuix.nf.ControlLifecycle$2.visit(ControlLifecycle.java:180)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:324)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:334)
    at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:130)
    at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:395)
    at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
    at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:352)
    at com.bea.netuix.nf.Lifecycle.runInbound(Lifecycle.java:184)
    at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:159)
    at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:388)
    at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:258)
    at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:199)
    at com.bea.netuix.servlets.manager.SingleFileServlet.service(SingleFileServlet.java:251)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at com.bea.console.utils.MBeanUtilsInitSingleFileServlet.service(MBeanUtilsInitSingleFileServlet.java:47)
    at weblogic.servlet.AsyncInitServlet.service(AsyncInitServlet.java:130)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    I followed the instruction in weblogic jdbc drivers guide to configure the JTA Transactions to support XA on SQL Server machine and weblogic server which included,
    1.Copying sqljdbc.dll copied to SQL_Server_Root/bin directory from WL_HOME\server\lib.
    2.Copied instjdbc.sql to sql server machine and executed the script with following output,
    Changed database context to 'master'.
    Msg 3701, Level 11, State 5, Server SQLDB, Procedure sp_dropextendedproc, Line 16
    Cannot drop the procedure 'xp_jdbc_open', because it does not exist or you do not have permission.
    Msg 3701, Level 11, State 5, Server SQLDB, Procedure sp_dropextendedproc, Line 16
    Cannot drop the procedure 'xp_jdbc_open2', because it does not exist or you do not have permission.
    Msg 3701, Level 11, State 5, Server SQLDB, Procedure sp_dropextendedproc, Line 16
    Cannot drop the procedure 'xp_jdbc_close', because it does not exist or you do not have permission.
    Msg 3701, Level 11, State 5, Server SQLDB, Procedure sp_dropextendedproc, Line 16
    Cannot drop the procedure 'xp_jdbc_close2', because it does not exist or you do not have permission.
    Msg 3701, Level 11, State 5, Server SQLDB, Procedure sp_dropextendedproc, Line 16
    Cannot drop the procedure 'xp_jdbc_start', because it does not exist or you do not have permission.
    Msg 3701, Level 11, State 5, Server SQLDB, Procedure sp_dropextendedproc, Line 16
    Cannot drop the procedure 'xp_jdbc_start2', because it does not exist or you do not have permission.
    Msg 3701, Level 11, State 5, Server SQLDB, Procedure sp_dropextendedproc, Line 16
    Cannot drop the procedure 'xp_jdbc_end', because it does not exist or you do not have permission.
    Msg 3701, Level 11, State 5, Server SQLDB, Procedure sp_dropextendedproc, Line 16
    Cannot drop the procedure 'xp_jdbc_end2', because it does not exist or you do not have permission.
    Msg 3701, Level 11, State 5, Server SQLDB, Procedure sp_dropextendedproc, Line 16
    Cannot drop the procedure 'xp_jdbc_prepare', because it does not exist or you do not have permission.
    Msg 3701, Level 11, State 5, Server SQLDB, Procedure sp_dropextendedproc, Line 16
    Cannot drop the procedure 'xp_jdbc_prepare2', because it does not exist or you do not have permission.
    Msg 3701, Level 11, State 5, Server SQLDB, Procedure sp_dropextendedproc, Line 16
    Cannot drop the procedure 'xp_jdbc_commit', because it does not exist or you do not have permission.
    Msg 3701, Level 11, State 5, Server SQLDB, Procedure sp_dropextendedproc, Line 16
    Cannot drop the procedure 'xp_jdbc_commit2', because it does not exist or you do not have permission.
    Msg 3701, Level 11, State 5, Server SQLDB, Procedure sp_dropextendedproc, Line 16
    Cannot drop the procedure 'xp_jdbc_rollback', because it does not exist or you do not have permission.
    Msg 3701, Level 11, State 5, Server SQLDB, Procedure sp_dropextendedproc, Line 16
    Cannot drop the procedure 'xp_jdbc_rollback2', because it does not exist or you do not have permission.
    Msg 3701, Level 11, State 5, Server SQLDB, Procedure sp_dropextendedproc, Line 16
    Cannot drop the procedure 'xp_jdbc_forget', because it does not exist or you do not have permission.
    Msg 3701, Level 11, State 5, Server SQLDB, Procedure sp_dropextendedproc, Line 16
    Cannot drop the procedure 'xp_jdbc_forget2', because it does not exist or you do not have permission.
    Msg 3701, Level 11, State 5, Server SQLDB, Procedure sp_dropextendedproc, Line 16
    Cannot drop the procedure 'xp_jdbc_recover', because it does not exist or you do not have permission.
    Msg 3701, Level 11, State 5, Server SQLDB, Procedure sp_dropextendedproc, Line 16
    Cannot drop the procedure 'xp_jdbc_recover2', because it does not exist or you do not have permission.
    creating JDBC XA procedures
    instxa.sql completed successfully.
    3.Verified that MSDTC service is running on both SQL Server and weblogic machines with XA Transaction enabled and DTC option enabled for both inbound and outbound connections.
    4.Copied sqljdbc.jar (version 3.0 downloaded from msdn portal) to "C:\Oracle\Middleware\wlserver_10.3\server\ext\jdbc\sqlserver" directory and updated weblogic_classpth variable in commEnv.cmd file.
    set WEBLOGIC_CLASSPATH=%JAVA_HOME%\lib\tools.jar;%BEA_HOME%\utils\config\10.3\config-launch.jar;%WL_HOME%\server\lib\weblogic_sp.jar;%WL_HOME%\server\lib\weblogic.jar;%FEATURES_DIR%\weblogic.server.modules_10.3.2.0.jar;%WL_HOME%\server\lib\webservices.jar;%ANT_HOME%/lib/ant-all.jar;%ANT_CONTRIB%/lib/ant-contrib.jar;C:\Oracle\Middleware\wlserver_10.3\server\ext\jdbc\sqlserver\server\ext\jdbc\sqlserver\sqljdbc.jar
    Can some one please provide some input on whats causing this and any other steps needs to be followed to implement XA support using SQL Server JDBC driver.

    You seem to have done everything correctly and diligently. I would ask that you open
    an official support case.

  • Oracle 9.2.0.6 , JDK 5 and JDBC driver

    Hi Friends,
    At my work place they have Oracle 9.2.0.6 and now they want to user JDK 5. I find that JDBC driver only supports JDK 1.4. Can some one suggest what I need to do so that later I should not face unknown issues
    Thx
    V

    Oracle database 10.2 drivers ojdbc14.jar may also be used with JDK 5.0.
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm#02_03

  • Oracle JDBC Driver Problem

    Hi,
    When I write code as
    Resultset rs = .....
    rs.last();
    there is no problem for MySQL JDBC Driver, but when I use this code for Oracle, I am getting error with line 2. Why ? Do you know any Oracle JDBC Driver that supports "rs.last()" ? Or is there another way to handle it?
    Thanks.

    Most of the JDBC Drivers can handle "rs.last()".
    The question here is, how do you create a Scrollable ResultSet using DatabaseMetaData, or if this is even possible.
    A thorough read of the API docs, for the Classes and methods being used here will answer this question (now that you know what the actual question is).

  • 9i: JDBC-driver for SQL ANSI 92 Standard

    Does anyone know when the Oracle JDBC driver will support the SQL ANSI 92 Standard for joins?
    If not, are there any workarounds?

    Oracle 9i supports this syntax, so anything that connects to a 9i database will be able to use it. Unless the driver is reqriting the query, which I doubt, you should be able to use any client API with a 9i server.
    Justin

  • JDBC Driver for MySQL database which should support JDBC2.0 function

    Hi, Guys,
    I'm using JDK1.3 and mm.mysql-2.0.4-bin.jar in Windows NT. When I run following program, I got the error: java.sql.SQLException: ResultSet not updatable. (the function rs.last() is working).
    Based on the documentation, mm.mysql-2.0.4-bin.jar driver should support JDBC2.0 function, but in fact, it's not. So, what's wrong or where is the correct driver?
    Thank you in advance anyway!
    import java.sql.*;
    import java.sql.ResultSet.*;
    import java.util.*;
    public class BridgeMysql{
    public static void main (String[] args) throws Exception {
    String sTable = "test";
    try {
    Class.forName("org.gjt.mm.mysql.Driver").newInstance();
    Connection conMysql = DriverManager.getConnection("jdbc:mysql://localhost/myDatabase?user=user&password=password");
    Statement st = conMysql.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);
    ResultSet rs = st.executeQuery("Select * from "+sTable);
    //rs.last();
    rs.moveToCurrentRow();
    System.out.println("Table "+sTable+" contains "+String.valueOf(rs.getRow())+" rows");
    rs.close();
    st.close();
    conMysql.close();
    catch (Exception e)
    System.out.println(e);

    Thought I might add something interesting I found.
    You need to include the field in your primary key. I only have one field in the key so I dont know how it works if you have more than one key.
    Makes sense considering Mark stated that you need the primary index defined. Looks like you need the fields as well from the select statement.
    Can anyone comment on why this is?

  • JDBC driver does not support XA - Exception

    JDBC driver does not support XA
    cannot participate in a two-phase commit
    To Force participation set EnableTwoPhaseCommit property on the corresponding JDBCTxDataSource property to true
    1) What is a JDBCTxDataSource - what does the TX mean?
    2) I have two data sources and according to BEA Weblogic docs, setting the property on both won't solve the problem. I tried.
    3) When I try to change the data pools to use XA drivers, I get the following error on server startup:
    java.sql.SQLException: Pool connect failed: java.lang.Exception: WebLogic Pool Driver doesn't support XA driver, Please change your config file to use a Non-XA driver

    JDBC driver does not support XA
    cannot participate in a two-phase commit
    To Force participation set EnableTwoPhaseCommit
    property on the corresponding JDBCTxDataSource
    property to true
    So use an XA driver.
    TX usually means "transaction".
    1) What is a JDBCTxDataSource - what does the TX mean?
    2) I have two data sources and according to BEA
    Weblogic docs, setting the property on both won't
    solve the problem. I tried.Right - you need XA drivers and JTA for both.
    3) When I try to change the data pools to use XA
    drivers, I get the following error on server
    startup:
    java.sql.SQLException: Pool connect failed:
    java.lang.Exception: WebLogic Pool Driver doesn't
    support XA driver, Please change your config file to
    use a Non-XA driverCreate new pools using the XA drivers. Don't reuse the old ones.
    Which version of WebLogic? I've made XA work for both 8.1 and 9.1.
    %

  • JDBC driver does not support XA

    Hello,
    we have the following problem when using oracle OCI jDriver from
    WebLogic: when connection times out, we get the following error
    javax.transaction.xa.XAException: JDBC driver does not support XA, hence
    cannot be a participant in two-phase commit. To force this
    participation, set the enableTwoPhaseCommit property on the
    corresponding JDBCTxDataSourceproperty, to true.
    (full message is attached as rtf file). We are not using TxDataSource
    pools, just normal connection pools. This error only happens once in a
    while. I would appreciate any help.
    thanks
    Andrey
    [error.rtf]

    Open a support case. You can't even create an XA LLR datasource.

  • JDBC driver does not support XA, hence cannot be a participant in two-phase

    Hi
    I have a question, we enabled "One Phase Commit", even though we are getting "javax.transaction.xa.XAException: JDBC driver does not support XA, hence cannot be a participant in two-phase commit. To force this participation, set the GlobalTransactionsProtocol attribute to LoggingLastResource (recommended) or EmulateTwoPhaseCommit for the Data Source =nested exception is: javax.transaction.xa.XAException: JDBC driver does not support XA, hence cannot be a participant in two-phase commit. To force this participation, set the GlobalTransactionsProtocol attribute to LoggingLastResource (recommended) or EmulateTwoPhaseCommit for the Data Source". Why is that?
    Thanks
    Edited by: user7256072 on Apr 10, 2012 12:35 PM

    Is there more than one resource participating in the transaction?
    If this is the case, and the resources are for example a database and JMS, you can emulate XA
    by using the logging last resource setting on a non-XA driver.
    An example of the above is presented here: http://middlewaremagic.com/weblogic/?p=7716 (the section my first JavaEE6 application)
    Here a stateless EJB is used that has an insertPerson method that uses a datasource and JMS in a transaction.

  • JDBC driver does not support XA,,hence cannot be a participant in two-phas

    Error committing transaction:; nested exception is: javax.transaction.xa.XAException: JDBC driver does not support XA, hence cannot be a participant in two-phase commit. To force this participation, set the GlobalTransactionsProtocol attribute to LoggingLastResource (recommended) or EmulateTwoPhaseCommit for the Data Source = SOADataSource
    i have enabled the LoggingLastResource option still it is not working showing the same error.
    i have a doubt in this case my datasource is of type XA then is there any need to enable any of the above option(LoggingLastResource (recommended) or EmulateTwoPhaseCommit).
    please do reply it has hampered many of the tasks.

    Open a support case. You can't even create an XA LLR datasource.

  • Where can I find a sql server 2000 driver which supports JDBC 2.0?

    Where can I find a sql server 2000 driver which supports JDBC 2.0?
    Thanks!
    Paul.

    Here is another.
    http://www.datadirect-technologies.com/download/downloadindex.asp
    The JDBC 3.0 driver will work in a JDBC 2.0 environment (i.e with J2SE 1.2 or 1.3)
    provided you use only JDBC 2.0 features of the driver
    "Sree Bodapati" <[email protected]> wrote:
    >
    >
    http://msdn.microsoft.com/downloads/default.asp?URL=/downloads/sample.asp?ur
    l=/msdn-files/027/001/779/msdncompositedoc.xml&FinishURL=%2Fdownloads%2Frele
    ase%2Easp%3FReleaseID%3D38312%26area%3Dsearch%26ordinal%3D1%26redirect%3Dno
    Microsoft.com downloads :)
    http://www.inetsoftware.de/English/Produkte/JDBC_Overview/ms.htm
    www.inetsoftware.de
    are a couple.
    sree
    "pronane" <[email protected]> wrote in message
    news:[email protected]..
    Where can I find a sql server 2000 driver which supports JDBC 2.0?
    Thanks!
    Paul.

Maybe you are looking for

  • Site Server - Client comminucations with selective authentication

    My environment has multiple domains, but I've been trying to avoid standing up an MP in each.  Currently the only MP is the site server in domain1.  A two-way selective authentication trust exists between the domains, users and computers from domain2

  • Problem While Creating Classification View in mm01

    Hi Friends, I have useing 'BAPI_OBJCL_CREATE' for creating Classfication View I am passing   mat no,  class , class type .. How can i find  characteristic values  for  particular Class.. Means How can i find values which r passed through ALLOCVALUESN

  • Flashpaper in director

    Hi, i have a problem with flash paper in director. when i import SWF file which is made by Flashpaper in director, i cant enlarge it. But when i open it in desktop it enlarge/reduce... can it possiable to scale it in director... gopalb

  • PRCS SQR gives different format for (1) directly to printer (2) Web PDF

    I am running an SQR via process scheduler producing a report. The format and size are FINE when i run it directly to the printer. Command is below: %TOOLBINSRV%\PSSQR.EXE -CT ORACLE -CS %SERVER% -CD PS89C -CA %ACCESSID% -CAP %ACCESSPSWD% -RP NFCNT002

  • Need help! w530 or T540p for photography??

    Hello everyone and thank you in advance for your help and expertise! :-) I am trying to figure out which of these two laptops would serve me better for my photography and Photoshop needs. Having lots of memory,  a great screen that will run with Phot