SQLServer 2000 & JDBC
Hi,
I still have problems with the SQL Server 2000 drivers for JDBC.
The documentation shows that .beforeFirst(), .absolute() and others methods are available but when i run my app, I have the error :
[Microsoft][SQLServer 2000 Driver for JDBC]Unsupported method: ResultSet.absolute
Have any idea ? Please help
Well, i'd say "shit happens". This is something not uncommon: implement an interface but don't support all of its methods. Ever got an java.util.List as a return value from some method and tried to call add() and realized that the return value was a Collections.EMPTY_LIST? Or they don't support all methods under all circumstances. The Oracle JDBC driver doesn't support PreparedStatement.setCharacterStream in combination with batch updates. It jus throws an Exception if you trie to do use it. Life just sucks .... ;-)
Similar Messages
-
Hi,
I have JHS 9.0.5.1.9, Jdeveloper 9.0.5.1 and RDBMS - SQLServer 2000, MS SQLServer 2000 jdbc driver sp2 (SelectMethod=cursor).
When I try update recorods - errors: JBO-26080: Error while selecting entity for ... .
Cause - FOR UPDATE cannot be specified on Read Only cursor.
Setting LockTrailer to blank or "and 1=1" didn't help.
jbo.323.compatible and jbo.903.compatible - didn't help.
Should JHS (bc4j) work with MS SQLServer ?Yes, that is possible. See the JDeveloper online help. Do a full-text search for "non-Oracle datasources" and you will find a topic about Business Components for non-Oracle or foreign datasources.
This is regardless of using JHeadstart or not, it is ADF Business Components (BC4J) functionality. You should be able to try it out using the BC4J tester (right-click your application module and choose Test).
If you have further questions about this topic, the best discussion forum is probably http://otn.oracle.com/discussionforums/jdev.html .
Hope this helps,
Sandra Muller
JHeadstart Team -
HI!
I am updating a table in sql server 2000 using PreparedStatement but as im trying to updateit. SQL is giving error or rather we can say warning.
java.sql.SQLWarning: [Microsoft][SQLServer 2000 Driver for JDBC]Database changed to BRSHere BRS is my database name.
no error is generated .all the PreparedStatement is executes normally.
Can any one tell me anything about thisAll the PreparedStatement is executes normally.But data is not updated in the database.
-
JDBC 2.0 method not implemented error using bea jDriver for MS-SQLServer 2000
I'm trying to reconfigure WebLogic Portal 7.0 (Platform 7.0 SP2) to run on MS SQLServer
2000. According to the supported platform docs, the MS JDBC driver is not supported
by Portal, hence I'm using the BEA jDriver for SQLServer.
I'm now getting the following error when starting up Weblogic Portal which requires
a re-sync with the EBCC before the applications will work.
<28-Aug-03 09:28:30 BST> <Error> <Data Synchronization> <000000> <Application:
portalApp; Corrupted data encountered in the persistent store; PLEASE RE-SYNCHRONIZE
YOUR APPLICATION DATA WITH MODE "refresh-from-client" BEFORE CONTINUING! Failure
to do so may result in incomplete or otherwise corrupted server state.
Exception[com.bea.p13n.management.data.repository.PersistenceException: Failed
to refresh JDBC Persistence Manager.] - with embedded exception: [java.sql.SQLException:
java.sql.SQLException: This JDBC 2.0 method is not implemented] at com.bea.p13n.management.data.repository.persistence.JdbcDataSource.refresh(JdbcDataSource.java:506)
Has anyone else come across this problem and know how to resolve it. I have tried
using the MS JDBC Driver on the off chance that it would work, but this also produced
SQL Exceptions with the persistance store and would not work at all even after
syncing with the EBCCJim,
Thanks, I'm awaiting for my account to be enabled with customer contract support.
When this is done I will raise a case and send files as requested.
In the mean time it's worth noting that these settings have been made. Connection
to the DB is fine, the createDB, loadads, loaddocs and sync etc all worked fine.
The problem only exists when restarting the server and the portal persistance
store is trying to be refereshed. Once EBCC is re-synced all the DB access works
fine.
Steve
Jim Litton <reply@newsgroup> wrote:
Please open a support case and send in your set-environment.bat,
db_settings.properties, and config.xml from your domain directory after
trying the following.
Given that your operating system is Windows for performing all database
operations like create_db, loaddocs, sync. (because you should not
bother trying to run them on with UNIX).
Restore your set-environment.bat to it's original state. It does not
need to be touched.
Uncomment the MSSQL section in db_settings.properties.
database=MSSQL
db_version=2000
jdbcdriver=weblogic.jdbc.mssqlserver4.Driver
server=@MSSQL_SERVER@
port=@MSSQL_PORT@
dblogin=@MSSQL_USER@
dbpassword=@MSSQL_PASSWORD@
connection=jdbc:weblogic:mssqlserver4:@MSSQL_SERVER@:@MSSQL_PORT@
The dataSyncPool entry in config.xml should appear as:
<JDBCConnectionPool
Name="dataSyncPool"
DriverName="weblogic.jdbc.mssqlserver4.Driver"
URL="jdbc:weblogic:mssqlserver4:@MSSQL_SERVER@:@MSSQL_PORT@"
Properties="user=@MSSQL_USER@;password=@MSSQL_PASSWORD@"
Password="@MSSQL_PASSWORD@"
InitialCapacity="1"
MaxCapacity="5"
CapacityIncrement="1"
RefreshMinutes="99999"
ShrinkingEnabled="false"
Targets="sampleportalServer"
TestConnectionsOnReserve="false"
TestTableName="WEBLOGIC_IS_ALIVE"
/>
-- Jim -
[Microsoft][SQLServer 2000 Driver for JDBC] Broken pipe
Using 10.1.2.0.2
I have Web App in which I am connecting to MS SQLServer 2005. I have created a datasource on the server and used Microsoft's free JDBC drivers i.e. msutil.jar,mssqlserver.jar,msbase.jar. Now every now and then I am getting the following error when trying to connect to the SQLServer
[Microsoft][SQLServer 2000 Driver for JDBC]Broken pipe;nested exception is: java.sql.SQLException:[Microsoft][SQLServer 2000 Driver for JDBC]Broken pipeAny ideas what might be wrong and how to take care of this issue.
ThanksDataDirect driver is certified with Oracle Application Server accessing SQLServer, here is an example of a data source entry for SQLServer in OralceAS 10.1.2.x.
<data-source
class="com.evermind.sql.DriverManagerDataSource"
name="MerantDS"
location="jdbc/MerantCoreSSDS"
xa-location="jdbc/xa/MerantSSXADS"
ejb-location="jdbc/MerantSSDS"
connection-driver="com.oracle.ias.jdbc.sqlserver.SQLServerDriver"
username="test"
password="secret"
url="jdbc:oracle:sqlserver://hostname:port;User=test;Password=secret"
inactivity-timeout="30"
/>
Here shows a SQLServer managed data source example and a SQLServer native source example in OracleAS 10.1.3.x:
SQLServer Managed Data Source
<connection-pool name="ConnectionSqlserver"
max-connections="20"
min-connections="1">
<connection-factory
factory-class="com.oracle.ias.jdbcx.sqlserver.SQLServerDataSource"
user="msuser"
password="mspass"
url="jdbc:oracle:sqlserver://myserver\\myinstance;User=msuser;Password=mspass" >
<property name="serverName" value="myserver\\myinstance"/>
<xa-recovery-config>
<password-credential>
<username>msuser</username>
<password>mspass</password>
</password-credential>
</xa-recovery-config>
</connection-factory>
</connection-pool>
<managed-data-source connection-pool-name="ConnectionSqlserver"
jndi-name="jdbc/mysqlserver"
name="mysqlserver" /> -
Which jdbc driver should be used for sqlserver 2000 and where to put it.
hi all,
My odi is 11g. I met the error infor "Could not load JDBC driver class [com.microsoft.sqlserver.jdbc.SQLServerDriver]" when i tried to connect to a sqlserver2000 database.
The questions are:
1. which jdbc driver should be used for sqlserver 2000?
2. which folder to put it in?
3. how to set the physical topological "Microsoft Sql Server" to use this jdbc driver?
failed tries:
i downloaded the driver "SQL Server 2000 Driver for JDBC Service Pack 2" and put it in the following folders:
1. .../oracledi/drivers, and set this path to CLASSPATH.
2. .../oracledi/userlib didn't exist, i created it and put the driver in.
3. .../oracledi/agent/dirvers, in which a readme file exists and told me to put drivers in this folder.
All these works were not useful. when I start odi.sh and try to connect to sqlserver2000 database, the same error infor came up.
my environment is:
os: Linux 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
java: Java(TM) SE Runtime Environment (build 1.6.0_13-b03) Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode)
ODI: 11g, installed in /users/oracle/odi/
please help me,thanks a lot.
jun
帖子经 Jun编辑过Hi,
You should check which JVM version is required by that version of the driver, I think the 2.x versions require a 1.6 JVM
What error are you getting? If it is the "com.sunopsis.sql.c: No suitable driver", it indicates it can't find the jar file (sqljdbc.jar) for the driver you specify.
Drivers folder in ODI 11g is under
C:\oracle\product\11.1.1\Oracle_ODI_1\oracledi\agent\drivers.
if you are using the standolone version
On windwos :
C:\Documents and Settings\<userName>\Application Data\odi\oracledi\userlib
on linux
$HOME/.odi/oracledi/userlib
Have a read of :- http://download.oracle.com/docs/cd/E14571_01/core.1111/e16453/install.htm#CHDBIFAJ
Thanks,
Sutirtha -
Problem in Accession inner join with [Microsoft][SQLServer 2000 Driver
Hi
Can you tell me what can be cause my sql statement is correct gives result but
if i used below statement in my JSP ,cause error
1)
ps1=connection.prepareStatement("select RQM_IN_RQSTN_ID_PK,RQD_IN_ITM_ID_FKPK,RQD_VC_ITM_DSCRPTN,RQD_IN_STTS_ID_FK,C.SMT_VC_STTS_NM,a.RQM_DT_PRPSD_DLVRY_DT"+
"from PAS_RQM_RQSTN_MSTR a "+
"inner join PAS_RQD_RQSTN_DTLS b on a.RQM_IN_RQSTN_ID_PK = b.RQD_IN_RQSTN_ID_FKPK and RQD_IN_STTS_ID_FK = 4"+
"INNER JOIN PAS_SMT_STTS_MSTR C ON C.SMT_IN_STTS_ID_PK=B.RQD_IN_STTS_ID_FK" +
"where a.RQM_VC_DTRTMNT_INVLV='Technology' ");
2) Error Generate
java.sql.SQLException
[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Line 1: Incorrect syntax near 'a'.
What can be the cause
Thanksps1=connection.prepareStatement("select
RQM_IN_RQSTN_ID_PK,RQD_IN_ITM_ID_FKPK,RQD_VC_ITM_DSCRP
TN,RQD_IN_STTS_ID_FK,C.SMT_VC_STTS_NM,a.RQM_DT_PRPSD_D
LVRY_DT"+
"from PAS_RQM_RQSTN_MSTR a "+
"inner join PAS_RQD_RQSTN_DTLS b on
a.RQM_IN_RQSTN_ID_PK = b.RQD_IN_RQSTN_ID_FKPK and
RQD_IN_STTS_ID_FK = 4"+
"INNER JOIN PAS_SMT_STTS_MSTR C ON
C.SMT_IN_STTS_ID_PK=B.RQD_IN_STTS_ID_FK" +
"where a.RQM_VC_DTRTMNT_INVLV='Technology' ");This is a problem due to not providing spaces where they are needed. See the places where I have highlighted.
A better way is to generate the String first [use StringBuffer as a good practice for appending instead of String "+"] and print it out to check if it is correct.
***Annie*** -
Error using SQLServer 2000 in Weblogic 8.1
Hi,
I am trying to use SQLServer for my Entity Beans in Weblogic 8.1.
When I use the default PointBase database, my project deploys fine.
However, when I create a new domain for using SQLServer 2000 and try
to use the new data source for SQL Server 2000, I get the following
error when I try to deploy my entity beans:
Unable to deploy EJB: ProjItem from ProjectPlannerProj.jar:
[EJB:010102]Error encountered while attempting to create Default DBMS
Table: 'projitem'. Error Text: '[Microsoft][SQLServer 2000 Driver for
JDBC][SQLServer]Incorrect syntax near the keyword 'End'.'.
Can anybody tell me why I get this error with SQLServer 2000 and not
with PointBase database?
Thanks,
PrabPrabjot Jaaj wrote:
HI,
Here is the output from the JDBC logging.
Please let me know if you have any ideas.No, sorry. You need to open an official support case.
Joe
>
Thanks,
Prab
JDBC log stream started at Sat Oct 02 01:34:05 EDT 2004
DriverManager.initialize: jdbc.drivers = null
JDBC DriverManager initialized
registerDriver: driver[className=com.pointbase.jdbc.jdbcUniversalDriver,com.pointbase.jdbc.jdbcUniversalDriver@12ecba8]
DriverManager.getDriver("jdbc:pointbase:server://localhost:9093/workshop")
trying driver[className=com.pointbase.jdbc.jdbcUniversalDriver,com.pointbase.jdbc.jdbcUniversalDriver@12ecba8]
registerDriver: driver[className=com.pointbase.jdbc.jdbcDriver,com.pointbase.jdbc.jdbcDriver@10eaeda]
registerDriver: driver[className=com.pointbase.net.netJDBCDriver,com.pointbase.net.netJDBCDriver@a06e8d]
registerDriver: driver[className=com.pointbase.jdbc.jdbcEmbeddedDriver,com.pointbase.jdbc.jdbcEmbeddedDriver@1217fef]
getDriver returning driver[className=com.pointbase.jdbc.jdbcUniversalDriver,com.pointbase.jdbc.jdbcUniversalDriver@12ecba8]
DriverManager.getDriver("jdbc:pointbase:server://localhost:9093/workshop")
trying driver[className=com.pointbase.jdbc.jdbcUniversalDriver,com.pointbase.jdbc.jdbcUniversalDriver@12ecba8]
getDriver returning driver[className=com.pointbase.jdbc.jdbcUniversalDriver,com.pointbase.jdbc.jdbcUniversalDriver@12ecba8]
DriverManager.getDriver("jdbc:pointbase:server://localhost:9093/workshop")
trying driver[className=com.pointbase.jdbc.jdbcUniversalDriver,com.pointbase.jdbc.jdbcUniversalDriver@12ecba8]
getDriver returning driver[className=com.pointbase.jdbc.jdbcUniversalDriver,com.pointbase.jdbc.jdbcUniversalDriver@12ecba8]
SQLException: SQLState(HY000) vendor code(20001)
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]xa_open (0) returns -3
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRPCRequest.processReplyToken(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source)
at com.microsoft.jdbc.sqlserver.SQLServerImplStatement.getNextResultType(Unknown Source)
at com.microsoft.jdbc.base.BaseStatement.commonTransitionToState(Unknown Source)
at com.microsoft.jdbc.base.BaseStatement.postImplExecute(Unknown Source)
at com.microsoft.jdbc.base.BasePreparedStatement.postImplExecute(Unknown Source)
at com.microsoft.jdbc.base.BaseStatement.commonExecute(Unknown Source)
at com.microsoft.jdbc.base.BaseStatement.executeUpdateInternal(Unknown Source)
at com.microsoft.jdbc.base.BasePreparedStatement.executeUpdate(Unknown Source)
at com.microsoft.jdbcx.sqlserver.SQLServerImplXAResource.executeXaRpc(Unknown Source)
at com.microsoft.jdbcx.sqlserver.SQLServerImplXAResource.executeXaRpc(Unknown Source)
at com.microsoft.jdbcx.sqlserver.SQLServerImplXAResource.open(Unknown Source)
at com.microsoft.jdbcx.base.BaseXAConnection.<init>(Unknown Source)
at com.microsoft.jdbcx.base.BaseXADataSource.getXAConnection(Unknown Source)
at com.microsoft.jdbcx.sqlserver.SQLServerDataSource.getXAConnection(Unknown Source)
at weblogic.jdbc.common.internal.XAConnectionEnvFactory.makeConnection(XAConnectionEnvFactory.java:328)
at weblogic.jdbc.common.internal.XAConnectionEnvFactory.createResource(XAConnectionEnvFactory.java:83)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1145)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1079)
at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.java:171)
at weblogic.jdbc.common.internal.ConnectionPool.doStart(ConnectionPool.java:1001)
at weblogic.jdbc.common.internal.ConnectionPool.start(ConnectionPool.java:142)
at weblogic.jdbc.common.internal.ConnectionPoolManager.createAndStartPool(ConnectionPoolManager.java:298)
at weblogic.jdbc.common.internal.JDBCService.addDeployment(JDBCService.java:180)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:331)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:591)
at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:569)
at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:241)
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:324)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:731)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:710)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:484)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at weblogic.management.internal.RemoteMBeanServerImpl.private_invoke(RemoteMBeanServerImpl.java:985)
at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:943)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:946)
at weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanProxy.java:481)
at weblogic.management.configuration.ServerMBean_Stub.updateDeployments(ServerMBean_Stub.java:7351)
at weblogic.management.deploy.slave.SlaveDeployer.updateServerDeployments(SlaveDeployer.java:1304)
at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:347)
at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229)
at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
at weblogic.Server.main(Server.java:32)
registerDriver: driver[className=com.microsoft.jdbc.sqlserver.SQLServerDriver,com.microsoft.jdbc.sqlserver.SQLServerDriver@18edf3c]
DriverManager.getDriver("jdbc:microsoft:sqlserver://localhost:1433")
trying driver[className=com.pointbase.jdbc.jdbcUniversalDriver,com.pointbase.jdbc.jdbcUniversalDriver@12ecba8]
trying driver[className=com.pointbase.jdbc.jdbcDriver,com.pointbase.jdbc.jdbcDriver@10eaeda]
trying driver[className=com.pointbase.net.netJDBCDriver,com.pointbase.net.netJDBCDriver@a06e8d]
trying driver[className=com.pointbase.jdbc.jdbcEmbeddedDriver,com.pointbase.jdbc.jdbcEmbeddedDriver@1217fef]
trying driver[className=com.microsoft.jdbc.sqlserver.SQLServerDriver,com.microsoft.jdbc.sqlserver.SQLServerDriver@18edf3c]
getDriver returning driver[className=com.microsoft.jdbc.sqlserver.SQLServerDriver,com.microsoft.jdbc.sqlserver.SQLServerDriver@18edf3c]
DriverManager.getDriver("jdbc:pointbase:server://localhost:9093/workshop")
trying driver[className=com.pointbase.jdbc.jdbcUniversalDriver,com.pointbase.jdbc.jdbcUniversalDriver@12ecba8]
getDriver returning driver[className=com.pointbase.jdbc.jdbcUniversalDriver,com.pointbase.jdbc.jdbcUniversalDriver@12ecba8]
registerDriver: driver[className=weblogic.jdbc.jts.Driver,weblogic.jdbc.jts.Driver@60e78]
registerDriver: driver[className=weblogic.jdbc.pool.Driver,weblogic.jdbc.pool.Driver@7db7d]
SQLException: SQLState(ZD004) vendor code(15006)
java.sql.SQLException: Invalid table name "WLI_PROCESS_PROCESSED_EVENT" specified at position 14.
at com.pointbase.net.netJDBCPrimitives.handleResponse(Unknown Source)
at com.pointbase.net.netJDBCPrimitives.handleJDBCObjectResponse(Unknown Source)
at com.pointbase.net.netJDBCStatement.executeQuery(Unknown Source)
at weblogic.jdbc.wrapper.Statement.executeQuery(Statement.java:345)
at com.bea.wli.management.archiving.ArchUtil.checkSP2SP3Migration(ArchUtil.java:110)
at com.bea.wli.management.BPMComponent.initializeTracking(BPMComponent.java:543)
at com.bea.wli.management.BPMComponent.initManaged(BPMComponent.java:98)
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:324)
at com.bea.wli.init.BPMStartupShutdown.invoke(BPMStartupShutdown.java:410)
at com.bea.wli.init.BPMStartupShutdown.startup(BPMStartupShutdown.java:278)
at com.bea.wli.init.BPMStartup.main(BPMStartup.java:23)
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:324)
at weblogic.t3.srvr.StartupClassService.invokeMain(StartupClassService.java:229)
at weblogic.t3.srvr.StartupClassService.invokeClass(StartupClassService.java:160)
at weblogic.t3.srvr.StartupClassService.access$000(StartupClassService.java:36)
at weblogic.t3.srvr.StartupClassService$1.run(StartupClassService.java:121)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.t3.srvr.StartupClassService.invokeStartupClass(StartupClassService.java:116)
at weblogic.t3.srvr.StartupClassService.addDeployment(StartupClassService.java:88)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:331)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:591)
at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:569)
at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:241)
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:324)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:731)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:710)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:484)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at weblogic.management.internal.RemoteMBeanServerImpl.private_invoke(RemoteMBeanServerImpl.java:985)
at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:943)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:946)
at weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanProxy.java:481)
at weblogic.management.configuration.ServerMBean_Stub.updateDeployments(ServerMBean_Stub.java:7351)
at weblogic.management.deploy.slave.SlaveDeployer.updateServerDeployments(SlaveDeployer.java:1304)
at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:347)
at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229)
at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
at weblogic.Server.main(Server.java:32)
SQLException: SQLState(ZD004) vendor code(15006)
java.sql.SQLException: Invalid table name "WLI_WORKLIST_ARCHIVING_SP2SP3" specified at position 20.
at com.pointbase.net.netJDBCPrimitives.handleResponse(Unknown Source)
at com.pointbase.net.netJDBCPrimitives.handleJDBCObjectResponse(Unknown Source)
at com.pointbase.net.netJDBCStatement.executeQuery(Unknown Source)
at weblogic.jdbc.wrapper.Statement.executeQuery(Statement.java:345)
at com.bea.wli.worklist.beans.session.RemoteWorklistManagerBean.migrateFromSP2ToSP3(RemoteWorklistManagerBean.java:4641)
at com.bea.wli.worklist.beans.session.RemoteWorklistManagerBean_us8t1c_EOImpl.migrateFromSP2ToSP3(RemoteWorklistManagerBean_us8t1c_EOImpl.java:2276)
at com.bea.wli.worklist.WorklistSetup.initAfterManaged(WorklistSetup.java:207)
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:324)
at com.bea.wli.init.BPMStartupShutdown.invoke(BPMStartupShutdown.java:410)
at com.bea.wli.init.BPMStartupShutdown.startupAfterActivation(BPMStartupShutdown.java:294)
at com.bea.wli.init.BPMStartupAfterActivation.main(BPMStartupAfterActivation.java:25)
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:324)
at weblogic.t3.srvr.StartupClassService.invokeMain(StartupClassService.java:229)
at weblogic.t3.srvr.StartupClassService.invokeClass(StartupClassService.java:160)
at weblogic.t3.srvr.StartupClassService.access$000(StartupClassService.java:36)
at weblogic.t3.srvr.StartupClassService$1.run(StartupClassService.java:121)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.t3.srvr.StartupClassService.invokeStartupClass(StartupClassService.java:116)
at weblogic.t3.srvr.PostDeploymentStartupService.resume(PostDeploymentStartupService.java:63)
at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
at weblogic.Server.main(Server.java:32)
SQLException: SQLState(42S02) vendor code(208)
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Invalid object name 'projitem'.
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRPCRequest.processReplyToken(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSCursorRequest.openCursor(Unknown Source)
at com.microsoft.jdbc.sqlserver.SQLServerImplStatement.execute(Unknown Source)
at com.microsoft.jdbc.base.BaseStatement.commonExecute(Unknown Source)
at com.microsoft.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source)
at com.microsoft.jdbc.base.BaseStatement.executeQuery(Unknown Source)
at weblogic.jdbc.wrapper.Statement.executeQuery(Statement.java:345)
at weblogic.ejb20.utils.TableVerifierSqlQuery.isTableCreatedByContainer(TableVerifierSqlQuery.java:203)
at weblogic.ejb20.utils.TableVerifier.verifyOrCreateOrAlterTable(TableVerifier.java:119)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.verifyTablesExist(RDBMSPersistenceManager.java:1021)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.setup(RDBMSPersistenceManager.java:201)
at weblogic.ejb20.manager.BaseEntityManager.setupPM(BaseEntityManager.java:253)
at weblogic.ejb20.manager.BaseEntityManager.setup(BaseEntityManager.java:210)
at weblogic.ejb20.manager.DBManager.setup(DBManager.java:162)
at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.activate(ClientDrivenBeanInfoImpl.java:1057)
at weblogic.ejb20.deployer.EJBDeployer.activate(EJBDeployer.java:1362)
at weblogic.ejb20.deployer.EJBModule.activate(EJBModule.java:631)
at weblogic.j2ee.J2EEApplicationContainer.activateModule(J2EEApplicationContainer.java:3274)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2173)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2146)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateContainer(SlaveDeployer.java:2434)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2352)
at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2136)
at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2235)
at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2130)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2315)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:866)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:594)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:508)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
SQLException: SQLState(HY000) vendor code(16945)
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]The cursor was not declared.
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRPCRequest.processReplyToken(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSCursorRequest.openCursor(Unknown Source)
at com.microsoft.jdbc.sqlserver.SQLServerImplStatement.execute(Unknown Source)
at com.microsoft.jdbc.base.BaseStatement.commonExecute(Unknown Source)
at com.microsoft.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source)
at com.microsoft.jdbc.base.BaseStatement.executeQuery(Unknown Source)
at weblogic.jdbc.wrapper.Statement.executeQuery(Statement.java:345)
at weblogic.ejb20.utils.TableVerifierSqlQuery.isTableCreatedByContainer(TableVerifierSqlQuery.java:203)
at weblogic.ejb20.utils.TableVerifier.verifyOrCreateOrAlterTable(TableVerifier.java:119)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.verifyTablesExist(RDBMSPersistenceManager.java:1021)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.setup(RDBMSPersistenceManager.java:201)
at weblogic.ejb20.manager.BaseEntityManager.setupPM(BaseEntityManager.java:253)
at weblogic.ejb20.manager.BaseEntityManager.setup(BaseEntityManager.java:210)
at weblogic.ejb20.manager.DBManager.setup(DBManager.java:162)
at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.activate(ClientDrivenBeanInfoImpl.java:1057)
at weblogic.ejb20.deployer.EJBDeployer.activate(EJBDeployer.java:1362)
at weblogic.ejb20.deployer.EJBModule.activate(EJBModule.java:631)
at weblogic.j2ee.J2EEApplicationContainer.activateModule(J2EEApplicationContainer.java:3274)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2173)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2146)
at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateContainer(SlaveDeployer.java:2434)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2352)
at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2136)
at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2235)
at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2130)
at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2315)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:866)
at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:594)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:508)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
SQLException: SQLState(HY000) vendor code(156) -
Performance Problem, RPC Call auf SQLServer 2000
Hi,
we have a performance problem with SQLServer 2000. We use Bea WLS 6.1, SQLServer
2000, and JDBC Driver mssqlserver4v65.jar from Bea.
we use this for performance optimization as in Documetation at
"http://www.datadirect-technologies.com/download/docs/jdbc/Jdbcref/jdbcdesign.html"
case 2
Stored Procedure can be optimized to use a server-side RPC. Because the application
calls the procedure by name and the argument values are already encoded, the load
on the database server is less
CallableStatement cstmt = conn.prepareCall ("Call getCustName (?)");
cstmt.setLong (1,12345);
ResultSet rs = cstmt.executeQuery();
But the checking in the SQlServer 2000 with SQL Profiler don't show the use of
RPC Call.
I can test the different from Query Analyser:
exec IF_GetBueroStatistik 1 -> SQLProfiler: SQL:BatchCompleted
{call IF_GetBueroStatistik(1)} -> SQlProfiler: RPC:Completed
But the Call from Bea Aplication make in SQlProfiler alwasy SQl:BatchCompleted.
The RPC ist faster from the Batch call.
is that a bug in the driver implementation?
can any help me with a solution or workaround?
thanks HalimHi,
thank you very much Joe.
Halim.
Joseph Weinstein <[email protected]> wrote:
>
>
Halim wrote:
Hi,
we have a performance problem with SQLServer 2000. We use Bea WLS 6.1,SQLServer
2000, and JDBC Driver mssqlserver4v65.jar from Bea.You shouldn't be using the 6.5 version of the driver anyway. The 7.0
version is better,
but what you are seeing is that our driver does send fresh SQL for PreparedStatements,
which is not as fast as using the RPC protocol. It's not a bug, but it
is a feature we didn't
implement.
You should probably download and use the free driver from MS. It does
implement
the procedure protocol.
Joe
we use this for performance optimization as in Documetation at
"http://www.datadirect-technologies.com/download/docs/jdbc/Jdbcref/jdbcdesign.html"
case 2
Stored Procedure can be optimized to use a server-side RPC. Becausethe application
calls the procedure by name and the argument values are already encoded,the load
on the database server is less
CallableStatement cstmt = conn.prepareCall ("Call getCustName (?)");
cstmt.setLong (1,12345);
ResultSet rs = cstmt.executeQuery();
But the checking in the SQlServer 2000 with SQL Profiler don't showthe use of
RPC Call.
I can test the different from Query Analyser:
exec IF_GetBueroStatistik 1 -> SQLProfiler: SQL:BatchCompleted
{call IF_GetBueroStatistik(1)} -> SQlProfiler: RPC:Completed
But the Call from Bea Aplication make in SQlProfiler alwasy SQl:BatchCompleted.
The RPC ist faster from the Batch call.
is that a bug in the driver implementation?
can any help me with a solution or workaround?
thanks Halim -
Creating Oracle Obj Model hangs - SQLServer 2000 to Oracle9i
Migration Workbench process appears to hang during "Mapping Priomary Keys" while creating Oracle Object Model. I am migrating SQLServer 2000 database to Oracle 9i. All on one single PC using Windows 2000 server. I downloaded latest SQLServer 2000 plugin and I have .NET Framework installed which inturn installs MDAC 2.7 (supposed have latest ODBC driver). ODBC driver for SQLServer 2000 version is : 2000.81.7713.00
Following is the info in Error.log file I have under %ORACLE_HOME%\omwb\log directory.
ERROR.LOG File Starts here
=================================================================================
** Oracle Migration Workbench
** Release 2.0.2.0.0 Production
** ( Build 20011121 )
** ORACLE_HOME: D:\Oracle\Ora91
** user language: en
** user region: US
** user timezone: PST
** file encoding: Cp1252
** java version: 1.1.8.10
** java vendor: Oracle Corporation
** o.s. arch: x86
** o.s. name: Windows NT
** o.s. version: 5.0
** Classpath:
D:\Oracle\Ora91\Omwb\olite\Oljdk11.jar;D:\Oracle\Ora91\Omwb\olite\Olite40.jar;D:\Program Files\Oracle\jre\1.1.8\lib\rt.jar;D:\Program Files\Oracle\jre\1.1.8\lib\i18n.jar;D:\Oracle\Ora91\Omwb\jlib;D:\Oracle\Ora91\Omwb\jlib\Omwb.jar;D:\Oracle\Ora91\jlib\oembase-9_0_1.jar;D:\Oracle\Ora91\jlib\netcfg.jar;D:\Oracle\Ora91\Omwb\plugins\SQLServer6.jar;D:\Oracle\Ora91\Omwb\plugins\SQLServer7.jar;D:\Oracle\Ora91\Omwb\plugins\SQLServer2K.jar;D:\Oracle\Ora91\Omwb\plugins\Sybase11.jar;D:\Oracle\Ora91\Omwb\plugins\Sybase12.jar;D:\Oracle\Ora91\Omwb\plugins\MSAccess.jar;D:\Oracle\Ora91\Omwb\plugins\MySQL.jar;D:\Oracle\Ora91\Omwb\drivers\mm.mysql.jdbc-1.2a;D:\Oracle\Ora91\Omwb\plugins\Informix7.jar;D:\Oracle\Ora91\Omwb\drivers\ifxjdbc.jar;D:\Oracle\Ora91\lib\xmlparserv2.jar;D:\Oracle\Ora91\rdbms\jlib\xsu111.jar;D:\Oracle\Ora91\jdbc\lib\classes111.zip;D:\Oracle\Ora91\lib\vbjorb.jar;D:\Oracle\Ora91\jlib\ewt-swingaccess-3_3_18.jar;D:\Oracle\Ora91\jlib\ewt-3_3_18.jar;D:\Oracle\Ora91\jlib\ewtcompat-3_3_15.jar;D:\Oracle\Ora91\jlib\share-1_1_9.jar;D:\Oracle\Ora91\jlib\help-3_2_9.jar;D:\Oracle\Ora91\jlib\ice-5_06_3.jar;D:\Oracle\Ora91\jlib\kodiak-1_2_1.jar
** Started : Fri Apr 05 13:31:12 PST 2002
** The following plugins are installed:
** Microsoft SQLServer 2000 Release 2.0.2.0.0 Production
java.sql.SQLException: ORA-01418: specified index does not exist
java.util.NoSuchElementException
at java.util.Vector.firstElement(Vector.java:433)
at oracle.mtg.oracleModel.server.OracleModelImpl.insertPrimaryKey(OracleModelImpl.java:4055)
at oracle.mtg.oracleModel.server.OracleModelImpl.insertPrimaryKey(OracleModelImpl.java:4022)
at oracle.mtg.sqlserver2k.server.SQLServer2KSourceModelMap._mapPrimaryKeys(SQLServer2KSourceModelMap.java:3092)
at oracle.mtg.sqlserver2k.server.SQLServer2KSourceModelMap.mapSourceModel(SQLServer2KSourceModelMap.java:271)
at oracle.mtg.sqlserver2k.ui.SQLServer2KCaptureWizard.doCapture(SQLServer2KCaptureWizard.java:948)
at oracle.mtg.sqlserver2k.ui.SQLServer2KCaptureWizard._runDialog(SQLServer2KCaptureWizard.java:736)
at oracle.mtg.sqlserver2k.ui.SQLServer2KCaptureWizard.capture(SQLServer2KCaptureWizard.java:656)
at oracle.mtg.migrationUI.ActionMenuHandler._capture(ActionMenuHandler.java:212)
at oracle.mtg.migrationUI.ActionMenuHandler.run(ActionMenuHandler.java:89)
at oracle.mtg.migration.WorkerThread.run(Worker.java:269)
** Shutdown : Fri Apr 05 13:34:39 PST 2002
===================================================================
ERROR.LOG File ends here
Any help is really appreciated
Thanks,
BrundaMigration Workbench process appears to hang during "Mapping Priomary Keys" while creating Oracle Object Model. I am migrating SQLServer 2000 database to Oracle 9i. All on one single PC using Windows 2000 server. I downloaded latest SQLServer 2000 plugin and I have .NET Framework installed which inturn installs MDAC 2.7 (supposed have latest ODBC driver). ODBC driver for SQLServer 2000 version is : 2000.81.7713.00
Following is the info in Error.log file I have under %ORACLE_HOME%\omwb\log directory.
ERROR.LOG File Starts here
=================================================================================
** Oracle Migration Workbench
** Release 2.0.2.0.0 Production
** ( Build 20011121 )
** ORACLE_HOME: D:\Oracle\Ora91
** user language: en
** user region: US
** user timezone: PST
** file encoding: Cp1252
** java version: 1.1.8.10
** java vendor: Oracle Corporation
** o.s. arch: x86
** o.s. name: Windows NT
** o.s. version: 5.0
** Classpath:
D:\Oracle\Ora91\Omwb\olite\Oljdk11.jar;D:\Oracle\Ora91\Omwb\olite\Olite40.jar;D:\Program Files\Oracle\jre\1.1.8\lib\rt.jar;D:\Program Files\Oracle\jre\1.1.8\lib\i18n.jar;D:\Oracle\Ora91\Omwb\jlib;D:\Oracle\Ora91\Omwb\jlib\Omwb.jar;D:\Oracle\Ora91\jlib\oembase-9_0_1.jar;D:\Oracle\Ora91\jlib\netcfg.jar;D:\Oracle\Ora91\Omwb\plugins\SQLServer6.jar;D:\Oracle\Ora91\Omwb\plugins\SQLServer7.jar;D:\Oracle\Ora91\Omwb\plugins\SQLServer2K.jar;D:\Oracle\Ora91\Omwb\plugins\Sybase11.jar;D:\Oracle\Ora91\Omwb\plugins\Sybase12.jar;D:\Oracle\Ora91\Omwb\plugins\MSAccess.jar;D:\Oracle\Ora91\Omwb\plugins\MySQL.jar;D:\Oracle\Ora91\Omwb\drivers\mm.mysql.jdbc-1.2a;D:\Oracle\Ora91\Omwb\plugins\Informix7.jar;D:\Oracle\Ora91\Omwb\drivers\ifxjdbc.jar;D:\Oracle\Ora91\lib\xmlparserv2.jar;D:\Oracle\Ora91\rdbms\jlib\xsu111.jar;D:\Oracle\Ora91\jdbc\lib\classes111.zip;D:\Oracle\Ora91\lib\vbjorb.jar;D:\Oracle\Ora91\jlib\ewt-swingaccess-3_3_18.jar;D:\Oracle\Ora91\jlib\ewt-3_3_18.jar;D:\Oracle\Ora91\jlib\ewtcompat-3_3_15.jar;D:\Oracle\Ora91\jlib\share-1_1_9.jar;D:\Oracle\Ora91\jlib\help-3_2_9.jar;D:\Oracle\Ora91\jlib\ice-5_06_3.jar;D:\Oracle\Ora91\jlib\kodiak-1_2_1.jar
** Started : Fri Apr 05 13:31:12 PST 2002
** The following plugins are installed:
** Microsoft SQLServer 2000 Release 2.0.2.0.0 Production
java.sql.SQLException: ORA-01418: specified index does not exist
java.util.NoSuchElementException
at java.util.Vector.firstElement(Vector.java:433)
at oracle.mtg.oracleModel.server.OracleModelImpl.insertPrimaryKey(OracleModelImpl.java:4055)
at oracle.mtg.oracleModel.server.OracleModelImpl.insertPrimaryKey(OracleModelImpl.java:4022)
at oracle.mtg.sqlserver2k.server.SQLServer2KSourceModelMap._mapPrimaryKeys(SQLServer2KSourceModelMap.java:3092)
at oracle.mtg.sqlserver2k.server.SQLServer2KSourceModelMap.mapSourceModel(SQLServer2KSourceModelMap.java:271)
at oracle.mtg.sqlserver2k.ui.SQLServer2KCaptureWizard.doCapture(SQLServer2KCaptureWizard.java:948)
at oracle.mtg.sqlserver2k.ui.SQLServer2KCaptureWizard._runDialog(SQLServer2KCaptureWizard.java:736)
at oracle.mtg.sqlserver2k.ui.SQLServer2KCaptureWizard.capture(SQLServer2KCaptureWizard.java:656)
at oracle.mtg.migrationUI.ActionMenuHandler._capture(ActionMenuHandler.java:212)
at oracle.mtg.migrationUI.ActionMenuHandler.run(ActionMenuHandler.java:89)
at oracle.mtg.migration.WorkerThread.run(Worker.java:269)
** Shutdown : Fri Apr 05 13:34:39 PST 2002
===================================================================
ERROR.LOG File ends here
Any help is really appreciated
Thanks,
Brunda -
I installed the Jdbc driver for sql server 2000 and set the classpath. When when I was trying to
connect to the sql server database from a java program, I kept getting the following error;
There was an error connecting to the DataSource: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Login failed for user 'jet123'. Reason: Not associated with a trusted SQL Server connection.
The whole scenario is like this:
I have a sql server 2000 installed in my windows 2000 machine, and I created a MISM\myBase server under the SQL Server group, where MISM is the name of my machine, and myBase is the name of the sql server. Under the MISM\myBase server I created a database named "Aromatherapy". I added new login(username:jet123, passwd:1001) to the MISM\myBase server and also added user jet123 to the Aromatherapy database. The login(jet123, 1001) is my user name and passwd to my windows machine and has the administrator privillege.
Here is the code:
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
Connection connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://128.2.76.102:1433;databasename=Aromatherapy;user=jet123;password=1001");
Could anyone help?
Thanks,
Davidmake sure that user jet123 access to the sql server used by ms-sql queryanlayzer
not?
first check if your sql authentication mode is windows and sql server
or, allow the permistion to jet123 to access the database, by ordinary to be db_owner. -
MS SQL Server 2000 JDBC Settings
Hi,
I am new to weblogic and i am developing my final year project using weblogic 8.1 SP 3.0. I want to use MS SQL Sever as a database. Can anyone tell me how to configure MS SQL Server for weblogic and how to communicate with it with the help of an example. I have tried my best to configure it by searching material but it is not working. Please help. You can also send me the reply on my email id i.e [email protected]
Regards,
SameeR.Deepak Vohra wrote:
Thanks for trying to help, but this below is unnecessary and counter-productive.
WebLogic comes already with a comprehensively superior JDBC driver for MS SQLServer
(2000 and up). Just follow the documentation at:
http://e-docs.bea.com/wls/docs81/jdbc_drivers/mssqlserver.html#1043185
Joe
To configure WebLogic with SQL Server:
1. Install the SQL Server with SQL2kdesksp3.exe
2. Add the SQL Server driver jar files msbase.jar, msutil.jar and mssqlserver.jar to the Classpath in the startWebLogic script.
3. In the administration console configure a new JDBC connnection. In the Configure a JDBC Connection Pool frame select MS SQL Server in the Database Type field. Select Microsoft???s MS SQL Server Driver (Type 4 ) driver as the Database Driver.
4. In the Connection Properties frame specify the Host Name as localhost, Port as 1433, Database User Name as sa and Password as the password used login to the database.
5. In the Test database connection frame specify the Driver Classname as com.microsoft.jdbc.sqlserver.SQLServerDriver, URL as jdbc:microsoft:sqlserver://localhost:1433
6. In the Create and deploy frame select the server to which the JDBC Connection pool is to be deployed. -
MS SQL Server 2000 + JDBC
Hi everyone,
I know many of you don't like microsoft products, but I am getting weird errors when i connect my java program to SQL server 2000 with its driver. My code worked FINE with MS Access. The thing is I know there are some bugs to SQL server driver , and somebody knowledgeable with this software could def help me fix the problem, but i searched all over the microsoft site, couldnt find a fix to my problem, and contacting microsoft for help costs between $195-$245. I was wondering if somebody here is familiar with this software. I would really appreciate it if you could email me at [email protected] I will post all of the problem here also.
I'm getting the following error when i try to create a insert a new function (create a new row) in my database:
[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Incorrect syntax near the keyword 'Function'.
Here is the relevant code:
<code>
try{
DriverManager.registerDriver(new com.microsoft.jdbc.sqlserver.SQLServerDriver() );
} catch (Exception e) {
System.out.println(e.getMessage());
try{
Connection con = DriverManager.getConnection("jdbc:microsoft:sqlserver://NJ8650MONDAL", "m", "m");
con.setAutoCommit(false);
PreparedStatement insertFvalues = con.prepareStatement("INSERT INTO function_description (Function, Description, Notes) VALUES (?,?,?)");
insertFvalues.setString(1,functionname);
insertFvalues.setString(2,descriptionname);
insertFvalues.setString(3,notesname);
insertFvalues.execute();
PreparedStatement insertRvalues = con.prepareStatement("INSERT INTO return_code_description (Function_Name, Return_Codes, Return_Codes_Description) VALUES (?,?,?)");
insertRvalues.setString(1,functionname);
insertRvalues.setString(2,rvvaluesname);
insertRvalues.setString(3,rvdescripname);
insertRvalues.close();
con.commit();
insertFvalues.close();
insertRvalues.close();
con.close();
} catch (SQLException e) {System.out.println(e.getMessage());
}</code>thanks. i fixed that error, so now that portion works. however, i have a question..
SQL server does not allow comparisons between text fields unless the IS NULL or LIKE operators are used. I'm using JDBC to load exisiting entries from the database and display them in a gui. THe thing is I have one main table, which has a one-to-many relationship with my other tables..so the way i linked them was to have one column in each table hold the same text data, and then i can use the = operator to see if there are matches..
for example one table (function_description) has the following data:
Function_Name_Ind Description Notes
sample blah blah
And another table (return_code_description)has the following data:
Function_Name Return_Code Return_Code_Description
sample x xx
sample y yy
And I want all of this displayed.
i don't know if that explanaiton is any good, but seeing the code below might help you understand..
<code>
try{
Connection con = DriverManager.getConnection("jdbc:microsoft:sqlserver://NJ8650MONDAL", "m", "m");
con.setAutoCommit(true);
Statement stmt = con.createStatement();
ResultSet result = stmt.executeQuery("SELECT * FROM function_description, return_code_description " + "WHERE function_description.Function_Name_Ind = return_code_description.Function_Name AND (((Function_Name_Ind)='"+ functionname + "'))");
result.next();
function.setText(result.getString("Function_Name_Ind"));
description.setText(result.getString("Description"));
notes.setText(result.getString("Notes"));
rvalues.setText(result.getString("Return_Codes"));
rvdescrip.setText(result.getString("Return_Codes_Description"));
stmt.close();
con.close();
} catch (SQLException e) {System.out.println(e.getMessage());
</code>
And i'm getting this error.
[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator.
Can any of you think of another way I can do this? IS there another way in JDBC I can write it?
thanks! -
MS SQL Server 2000 JDBC driver and databasename
Hi,
I have tried to switch from using WebLogic jDriver for MS SQL Server to using
MS SQL Server 2000 JDBC Driver as recommended by Bea for WebLogic 7.0. I can get
the connection pooling to work with the new driver but I cannot get it to work
for certain database. It seems to always connect to the defaul database even though
I specify the database in console with property databasename=DBNAME. Any ideas
what could be wrong?
Thanks!
Cheers,
JouniWe had this working fine with WLS7, this is the entry from our config.xml
<JDBCConnectionPool DriverName="com.microsoft.jdbc.sqlserver.SQLServerDriver"
InitialCapacity="50" MaxCapacity="50" Name="SQLServerConnectionPool" Password="{3DES}UkODkM1JaCU="
Properties="user=Destin8;SelectMethod=cursor;databaseName=Destin8V3" ShrinkingEnabled="false"
Targets="Destin8Cluster1" URL="jdbc:microsoft:sqlserver://mcp1:1433"/>
Hope this helps..
Pete
"Jouni Peltonen" <[email protected]> wrote:
>
Hi,
I have tried to switch from using WebLogic jDriver for MS SQL Server
to using
MS SQL Server 2000 JDBC Driver as recommended by Bea for WebLogic 7.0.
I can get
the connection pooling to work with the new driver but I cannot get it
to work
for certain database. It seems to always connect to the defaul database
even though
I specify the database in console with property databasename=DBNAME.
Any ideas
what could be wrong?
Thanks!
Cheers,
Jouni -
Java Web Server 6.1 & Pooled SQL Server 2000 JDBC Connections
If anyone can shed some light on this problem I would greatly appreciate it.
I am unsuccessfully trying to use a database connnection retrieved from a pool configured using Java System Web Server 6.1 with the SQL Server 2000 JDBC Driver.
The background:
1. I have downloaded the SQL Server 2000 JDBC Driver and installed it on the web server.
2. I used the Administration GUI to add the .jars(namely msbase.jar, msutil.jar, and mssqlserver.jar), to the classpath.
3. Upon creating a simply JSP to access connection metadata using the direct connect method, ie.,
Class.forName( com.microsoft.jdbc.sqlserver.SQLServerDriver);
Connection con = DriverManager.getConnection( "jdbc:microsoft:sqlserver:// ....
I am shown a successful output of...
JDBC Test
Registering JDBC Driver
driverClass: com.microsoft.jdbc.sqlserver.SQLServerDriver loaded and registered.
Driver Information
Driver Name: SQLServer
Driver Version: 2.2.0037
Database Information
Database Name: Microsoft SQL Server
Database Version: Microsoft SQL Server 2000 - 8.00.760 (Intel X86) Dec 17 2002 14:22:05 Copyright (c) 1988-2003 Microsoft Corporation Enterprise Edition on Windows NT 5.2 (Build 3790: )
Avalilable Catalogs
catalog: master
catalog: msdb
catalog: Northwind
catalog: pubs
catalog: tempdb
4. This tells me that the web server has access to the files necessary and the classpath is configured correctly.
Now the fun begins...
In order to set up the JDBC Connection Pool I have done the following...
1. I have created a web.xml file for the web-app which contains the JSP and includes the following entry
<resource-ref>
<res-ref-name>jdbc/devjwscp</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
2. I have used the "JDBC Connection Pools" link under the "Java" tab in the Administration GUI to create a connection pool.
"Pool Name:" is "devjwscp"
"DataSource Classname" is set to "com.microsoft.jdbcx.sqlserver.SQLServerDataSource". All other properties have been left alone.
3. I have used the "JDBC Resources" link under the "Java" tab in the Administration GUI to create a JNDI resource.
"JNDI Name" is set to "jdbc/devjwscp"
"Status" is "true"
"Pool Name" is "devjwscp"
The web-app JSP comes back with the following exception.
JDBC Test
Exception Thrown
Cannot create resource instance
javax.naming.NamingException: Cannot create resource instanceorg.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:167)
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
org.apache.naming.NamingContext.lookup(NamingContext.java:834)
org.apache.naming.NamingContext.lookup(NamingContext.java:181)
org.apache.naming.NamingContext.lookup(NamingContext.java:822)
org.apache.naming.NamingContext.lookup(NamingContext.java:181)
org.apache.naming.NamingContext.lookup(NamingContext.java:822)
org.apache.naming.NamingContext.lookup(NamingContext.java:181)
org.apache.naming.NamingContext.lookup(NamingContext.java:822)
org.apache.naming.NamingContext.lookup(NamingContext.java:194)
org.apache.naming.SelectorContext.lookup(SelectorContext.java:183)
javax.naming.InitialContext.lookup(InitialContext.java:347)
_jsps._jdbctest_jsp._jspService(_jdbctest_jsp.java:236)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:667)
com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:447)
com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:363)
javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
com.iplanet.ias.web.WebContainer.service(WebContainer.java:586)
4. FYI my server.xml <RESOURCE> entry looks as is shown below
<RESOURCES>
<JDBCCONNECTIONPOOL name="devjwscp" datasourceclassname="com.microsoft.jdbcx.sqlserver.SQLServerDataSource" steadypoolsize="8" maxpoolsize="32" poolresizequantity="2" idletimeout="300" maxwaittime="60000" connectionvalidationrequired="off" connectionvalidationmethod="auto-commit" validationtablename="" failallconnections="off" transactionisolationlevel="read-uncommitted" isolationlevelguaranteed="off">
<PROPERTY name="serverName" value="secret"/>
<PROPERTY name="portNumber" value="1433"/>
<PROPERTY name="User" value="secret"/>
<PROPERTY name="Password" value="secret"/>
</JDBCCONNECTIONPOOL>
<JDBCRESOURCE jndiname="jdbc/devjwscp" poolname="devjwscp" enabled="on"/>
</RESOURCES>
What gives? Do I need to add anything else to the server.xml? I know the server.xml for JWS differs from Apache. I have done an exhaustive search of the web. Many other individuals have had the same thing happen, buy none of them offered any explaination or remedy.
Thanks in advance.Hi,
Were you able to get it working.
I am using
Sun ONE Web Server 6.1SP2 B04/07/2004 18:47
I am still getiing the same error. I also suspect that there is something wrong with thr DTD too. It gives me the following when the server comes up.
Sun ONE Web Server 6.1SP2 B04/07/2004 18:47
Listening for transport dt_socket at address: 1699
info: CORE5076: Using [Java HotSpot(TM) Server VM, Version 1.4.2_04] from [Sun M
icrosystems Inc.]
info: WEB0100: Loading web module in virtual server [https-AW-NYNY-D609628.nna.
wdpr.disy.com] at [acsanet]
info: WEB0100: Loading web module in virtual server [https-AW-NYNY-D609628.nna.
wdpr.disy.com] at [testing]
failure: WEB0120: XML error parsing deployment descriptor [C:/Sun/WebServer6.1/h
ttps-AW-NYNY-D609628.nna.wdpr.disy.com/webapps/https-AW-NYNY-D609628.nna.wdp
r.disy.com/testing/WEB-INF/sun-web.xml]
Failed to create the XML-DOM Document. Check your XML to make sure it is correc
t.org.xml.sax.SAXParseException: Character conversion error: "Unconvertible UTF-8
character beginning with 0xa0" (line number may be too low).
at org.apache.crimson.parser.InputEntity.fatal(InputEntity.java:1100)
at org.apache.crimson.parser.InputEntity.fillbuf(InputEntity.java:1072)
at org.apache.crimson.parser.InputEntity.isXmlDeclOrTextDeclPrefix(Input
Entity.java:914)
at org.apache.crimson.parser.Parser2.maybeXmlDecl(Parser2.java:1183)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:653)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl
.java:185)
at org.netbeans.modules.schema2beans.GraphManager.createXmlDocument(Grap
hManager.java:711)
at org.netbeans.modules.schema2beans.BaseBean.createGraph(BaseBean.java:
2075)
at com.iplanet.ias.web.WebContainer.loadWebModule(WebContainer.java:695)
at com.iplanet.ias.web.WebContainer.loadStandaloneWebModule(WebContainer
.java:626)
at com.iplanet.ias.web.WebContainer.loadWebModules(WebContainer.java:600)
at com.iplanet.ias.web.WebContainer.createVS(WebContainer.java:374)
at com.iplanet.ias.server.J2EERunner.createVS(J2EERunner.java:223)
info: WEB0100: Loading web module in virtual server [https-AW-NYNY-D609628.nna.wdpr.disy.com] at [search]
config: HTTP4292: flex-init: Log file C:/Sun/WebServer6.1/https-AW-NYNY-D609628.
nna.wdpr.disy.com/logs/access should be removed before changing its format
info: HTTP3072: [LS ls1] http://AW-NYNY-D609628.nna.wdpr.disy.com:80 ready to
accept requests
startup: server started successfully
info: CORE3274: successful server startup
the sun-web.xml is as below:
<?xml�version="1.0"�encoding="UTF-8"?>
<!--
Copyright 2002 Sun Microsystems, Inc. All rights reserved.
-->
<!DOCTYPE�sun-web-app�PUBLIC�"-//Sun�Microsystems,�Inc.//DTD�Application�Server�8.0�Servlet�2.4//EN"�"http://www.sun.com/software/appserver/dtds/sun-web-app_2_4-0.dtd">
<sun-web-app>
<resource-ref>
<res-ref-name>jdbc/oraclePool</res-ref-name>
<jndi-name>jdbc/oraclePool</jndi-name>
</resource-ref>
</sun-web-app>
Am I using the right DTD ?
Please let me know.
Thank you.
-- Martin Louis
Maybe you are looking for
-
WS14500015 is not working for Multilevel approval
We are trying to Implement the Workflow Template Ws14500015. We have implemented the BADI BBP_WFL_APPROVE_BADI. The workflow works perfectly for 1st level approval. We have checked that the ApproverList Container element gets pouplated with 3 levels
-
How can I recover from Windows login failure: User Profile Service failed the login
I have Boot Camp installed on a separate partition on a MacBook Pro, late 2011 model. I have Mavericks installedd (10.9.1). I use, variously, both Parallels and VM Fusion to access the BootCamp installation of Windows 7. Except for having recently in
-
When I open an encryted pdf file in my Hp Slate 7 voice Tab it was unable to open the pdf file.Tje same file was opening with other pdf reader software.Kindly Help. [spam link removed]
-
SCVMM 2012: Unable to connect to the VMM management server localhost:8100
Hi everyone I have difficulties connecting with the Admin UI to the SCVMM server running on the same machine. This is the error message I see: Unable to connect to the VMM management server localhost. The Virtual Machine Manager service on that serve
-
Restoring my 4s after a bad sync
My son synced my phone with his and deleted my contacts and calendar. No back up on icloud . can we reset the 4s to where it was 1 hour before the screw up???