XE Datasource for Weblogic 10.3?
Am attempting to create a XE JDBC datasource for WebLogic 10.3.
Where do I find the driver for this database?
Are there any 'tricks' to configuring this datasource?
THANKS - Casey
The Oracle JDBC drivers supplied with WebLogic 10.3 are for Oracle 11 and compatible with Oracle 10. Oracle XE is a stripped down Oracle 10.2. Therefore no need to install the Oracle XE specific JDBC drivers.
--olaf
Similar Messages
-
Issue in configuring Datasource for Oracle DB 7 in weblogic 10.3 ( Urgent )
Hi Gurus,
We are trying to connect to a oracle db 7 instance from the oracle 11g SOA suite .
I am not able to create a datasource for this DB instance .fails when getting invoked .
<Apr 13, 2011 2:34:49 PM BST> <Error> <Console> <BEA-240003> <Console encountered the following error java.lang.NullPointerException
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1101)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:303)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:640)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:205)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:554)
at com.bea.console.utils.jdbc.JDBCUtils.testConnection(JDBCUtils.java:505)
at com.bea.console.actions.jdbc.datasources.createjdbcdatasource.CreateJDBCDataSource.testConnectionConfiguration(Cre
ateJDBCDataSource.java:458)
Any clues to fix the issue.
I added the ojdbc14.jar to the file and modified the weblogic.xml to use the
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
but getting the exception :
<S:Body>
<S:Fault xmlns:ns4="http://www.w3.org/2003/05/soap-envelope">
<faultcode>S:Server</faultcode>
<faultstring>oracle/i18n/text/converter/CharacterConverterOGS.getInstance(I)Loracle/sql/converter/CharacterConverters;</faultstring>
<detail>
<ns2:exception xmlns:ns2="http://jax-ws.dev.java.net/" class="java.lang.NoSuchMethodError" note="To disable this feature, set com.sun.xml.ws.fault.SOAPFaultBuilder.disableCaptureStackTrace system property to false">
<message>oracle/i18n/text/converter/CharacterConverterOGS.getInstance(I)Loracle/sql/converter/CharacterConverters;</message>
<ns2:stackTrace>
Added the orai18n-*.jar files got the following Exception :
ORA-01010:Invalid OCI operation
Any help.....
Rgds
Vamsi
Edited by: Kewlntrendy on 13-Apr-2011 08:34
Edited by: Kewlntrendy on 13-Apr-2011 09:27I doubt that Oracle 7 DB is not supported. You may consider raising a SR with support.
Regards,
Anuj -
Providing datasource for authentication in weblogic
Hi, I am facing a problem of authentication of user from weblogic when weblogic have mulitple datasources
My weblogic server have two data sources one is pmr and second is hr I have created two authentication providers one is using hr as data source and second is using pmr as datasource.
Now i have two applications one is pmrApp and second is hrApp.
Now I want to apply security on both application in such a way that hrApp user should be authenticated from hr datasource and pmrApp user from pmr datasource
because there will be a chance that both datasources contains two users with same user names. In this conditions weblogic should know that which user should be authenticated from which database
Please help me
Edited by: Rao on May 8, 2012 12:25 PMapply security on both application in such a way that hrApp user should be authenticated from hr datasource and pmrApp user from pmr datasourceIt is not possible in WebLogic. The whole WLS security realm is common for all the deployed applications, so you cannot configure some application to use only some of the authentication providers. Even if you configure 2 different security realms, only one of them will be active. The only option you have is to create 2 separate WebLogic domains :(
Dimitar -
Different Options while creating a Datasource in Weblogic
Hi
I am using Weblogic 11 as Application Server .
While in the process of creating a DataSource in Weblogic , i came across different options such as for Instance Connections , for Service Connections.
Please tell me whats the difference in these two ??
Whats the difference in Oracle Drivers (Thin) for Instance Connections versions 9 , 10 , 11
Whats the difference in Oracle Drivers (Thin) for Service Connections 9 , 10 , 11
Thanks in advance .Hi,
Your query is replied by Joe Weistine (JDBC Expert) Please find the answer:
http://forums.oracle.com/forums/message.jspa?messageID=4029371
You can directly post your JDBC related querries to JDBC Forum directly to get to get Quick/appropriate/correct answers and attention from JDBC experts... WebLogic Server - JDBC (Forum ID)
Thanks
Jay SenSharma
Edited by: Jay SenSharma on Jan 16, 2010 10:38 AM -
Can not connect datasource in weblogic server
I have written a test class. I create datasource in weblogic server 11g(datasource name =fdbusionline jndi name = 'jdbc/fdbusionline' ) and start weblogic server. but always report the following error:
javax.naming.NameNotFoundException: Unable to resolve 'fdbusionline'. Resolved '' [Root exception is javax.naming.NameNotFoundException: Unable to resolve 'fdbusionline'. Resolved '']; remaining name 'fdbusionline'
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
at weblogic.jndi.internal.ServerNamingNode_1035_WLStub.lookup(Unknown Source)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:423)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:411)
at com.fd.busionline.test.appinterface.impl.DataSourceTest.testConnectDataSource(DataSourceTest.java:54)
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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
at oracle.jdevimpl.junit.runner.junit4.JUnit4Testable.run(JUnit4Testable.java:24)
at oracle.jdevimpl.junit.runner.TestExecution.run(TestExecution.java:27)
at oracle.jdevimpl.junit.runner.JUnitTestRunner.main(JUnitTestRunner.java:88)
Caused by: javax.naming.NameNotFoundException: Unable to resolve 'fdbusionline'. Resolved ''
at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:252)
at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:182)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:206)
at weblogic.jndi.internal.RootNamingNode_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
@test
public void testConnectDataSource(){
Connection conn = null;
Context ctx = null;
try{
// Hashtable env = new Hashtable();
// env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
// env.put(Context.PROVIDER_URL, "t3://localhost:7001");
// env.put(InitialContext.SECURITY_PRINCIPAL, "weblogic");
// env.put(InitialContext.SECURITY_CREDENTIALS, "!QAZ2wsx");
Environment env=new Environment();
env.setProviderUrl("t3://localhost:7001");
env.setSecurityPrincipal("weblogic");
env.setSecurityCredentials("!QAZ2wsx");
ctx = new InitialContext();
ctx=env.getInitialContext();
Object obj = ctx.lookup("fdbusionline");// can not work
Object obj = ctx.lookup("jdbc/fdbusionline"); // can not work
DataSource ds = (DataSource) PortableRemoteObject.narrow(obj, DataSource.class);
conn = ds.getConnection();
Statement stmt = conn.createStatement();
String sql = "select sysdate from dual";
ResultSet rs = stmt.executeQuery(sql);
while (rs.next()) {
System.out.println(rs.getDate(1));
} catch (Exception e) {
e.printStackTrace();
}finally{
System.out.println("Test Datasource Connection");
who can help me? Any help will be appreciated greatlyOkay, but are you sure that the datasource is actually deployed? Does the server log or the management interface of weblogic actually report that the datasource was deployed succesfully under the name you specify? And did you double check if you don't have any name mismatches (such as a typo or an upper/lowercase mismatch)?
I ask because the connection to the server appears to be working, but the lookup of the name gives no results - the only thing I can think of is that the resource really is not deployed even if you believe it is.
A few observations:
- you may want to put your JNDI credentials in a jndi.properties file in the root of the classpath in stead of hardcoding them (but you may hardcode for now as a quick test of course)
- the correct lookup should be to "jdbc/fdbusionline", in other words you use the jndi-name.
ctx = new InitialContext();
ctx=env.getInitialContext();the env.getInitialContext() really is not necessary, I would remove it. -
Hi,
i am trying to configure JDBC with weblogic. Can any one tell me which deriver needs to be selected for weblogic 10.3 and Oracle DB 11g both on MS2008 separate server.
if i use BEA oracle Driver (Type 4) version 9.0.1, 9.2.0,10,11, i find error (see snap:2)
Connection test failed.
[BEA][Oracle JDBC Driver]Error establishing socket. Unknown host: hdyhtc137540d<br/>weblogic.jdbc.base.BaseExceptions.createException(Unknown Source)<br/>weblogic.jdbc.base.BaseExceptions.getException(Unknown Source)<br/>weblogic.jdbc.oracle.OracleImplConnection.makeConnectionHelper(Unknown Source)<br/>weblogic.jdbc.oracle.OracleImplConnection.makeConnection(Unknown Source)<br/>weblogic.jdbc.oracle.OracleImplConnection.connectAndAuthenticate(Unknown Source)<br/>weblogic.jdbc.oracle.OracleImplConnection.open(Unknown Source)<br/>weblogic.jdbc.base.BaseConnection.connect(Unknown Source)<br/>weblogic.jdbc.base.BaseConnection.setupImplConnection(Unknown Source)<br/>weblogic.jdbc.base.BaseConnection.open(Unknown Source)<br/>weblogic.jdbc.base.BaseDriver.connect(Unknown Source)<br/>com.bea.console.utils.jdbc.JDBCUtils.testConnection(JDBCUtils.java:505)<br/>c om.bea.console.actions.jdbc.datasources.createjdbcdatasource.CreateJDBCDataSource.testConn ectionConfiguration(CreateJDBCDataSource.java:369)<br/>sun.reflect.GeneratedMethodAccessor 826.invoke(Unknown Source)<br/>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl. java:25)<br/>java.lang.reflect.Method.invoke(Method.java:597)<br/>org.apache.beehive.netui .pageflow.FlowController.invokeActionMethod(FlowController.java:870)<br/>org.apache.beehiv e.netui.pageflow.FlowController.getActionMethodForward(FlowController.java:809)<br/>org.ap ache.beehive.netui.pageflow.FlowController.internalExecute(FlowController.java:478)<br/>or g.apache.beehive.netui.pageflow.PageFlowController.internalExecute(PageFlowController.java :306)<br/>org.apache.beehive.netui.pageflow.FlowController.execute(FlowController.java:336 )<br/>...
and
when i use oracle's driver (thin) version 9.0.1, 9.2.0,10,11, i find error
Connection test failed.
Io exception: The Network Adapter could not establish the connection<br/>oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:10 1)<br/>oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)<br/>oracle .jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)<br/>oracle.jdbc.drive r.DatabaseError.throwSqlException(DatabaseError.java:229)<br/>oracle.jdbc.driver.DatabaseE rror.throwSqlException(DatabaseError.java:458)<br/>oracle.jdbc.driver.T4CConnection.logon( T4CConnection.java:411)<br/>oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnectio n.java:490)<br/>oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:202)<br/>oracle .jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)<br/>oracle.jdbc. driver.OracleDriver.connect(OracleDriver.java:474)<br/>com.bea.console.utils.jdbc.JDBCUtil s.testConnection(JDBCUtils.java:505)<br/>com.bea.console.actions.jdbc.datasources.createjd bcdatasource.CreateJDBCDataSource.testConnectionConfiguration(CreateJDBCDataSource.java:36 9)<br/>sun.reflect.GeneratedMethodAccessor826.invoke(Unknown Source)<br/>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl. java:25)<br/>java.lang.reflect.Method.invoke(Method.java:597)<br/>org.apache.beehive.netui .pageflow.FlowController.invokeActionMethod(FlowController.java:870)<br/>org.apache.beehiv e.netui.pageflow.FlowController.getActionMethodForward(FlowController.java:809)<br/>org.ap ache.beehive.netui.pageflow.FlowController.internalExecute(FlowController.java:478)<br/>or g.apache.beehive.netui.pageflow.PageFlowController.internalExecute(PageFlowController.java :306)<br/>org.apache.beehive.netui.pageflow.FlowController.execute(FlowController.java:336 )<br/>...i am finding this error when i click on Test Configuration button to test the connection wth oracle DB
-
Creating txn datasource in weblogic 10.3
Hi,
Can anyone help me to create transactional datasources in weblogic 10.3. We are migrating our application from 8.1 to 10.3 and migrated existing datasources to 10.3. While executing ejb's it is giving the following error.
java.sql.SQLException: Connection has already been created in this tx context for pool named <Pool 1> Illegal attempt to create connection from another pool: <Pool 2>
In 8.1, we have only one connection pool associated with many txn datasources. In 10.3 created separate pool for each data source from same DB with following properties for txn.
--Supports global transaction with one-phase commit.
Used oracle.jdbc.OracleDriver driver class.
Thanks in advance.You need to use an XA driver to span multiple resources such as oracle.jdbc.xa.client.OracleXADataSource
See this article, which has some info on XA even if you aren't using RAC
http://www.oracle.com/technology/products/weblogic/OracleWLS_RAC.pdf -
Connecting to TimesTen using DataSource in WebLogic on Linux
We are trying to use weblogic 9.2 to connect to TimesTen7.0, both are on Linux.
We have installed Oracle 10g client and then installed TimesTen 7.0 Client on the Linux server hosting weblogic.
Created Client DSN in /var/TimesTen/sys.odbc.ini file as follows:
[ODBC Data Sources]
TTclientMaster=TimesTen 7.0 Client Driver
[TTclientMaster]
TTC_SERVER="TTServerHostName"
TTC_SERVER_DSN=TTmaster
When we are trying to create DataSource in weblogic Admin console it does not show up TTClient Driver in the list.
We tried setting up using "Others" for driver and databasetype but then it asks for databasename which we don't have since TT uses DSN.
We are looking for any pointers or references that can explain how to configure weblogic to use TimesTen using TT 7.0 client DSN.If you have access to a copy of TimesTen 6.0 you can look in the AppServer Configuration Guide (appsrv.pdf) that was shipped with that release. This guide is currently being rewritten and so is not yet available for 7.0.
If you can't get hold of a copy, e-mail me at [email protected] and I'll send it to you.
Chris -
DataSource for Replicated Database
Hi, first, of all, I don't know if this forum is the right place to post my question, so sorry for bothering you!
I'm working in a project where I'm thinking about using two Oracle databases one replicating the other. I read somewhere that this using Multimaster Replication is a good way to obtain more availability. But I don't know how to create a DataSource in OC4J that can use both databases and choose the one that's not down. If I were using Weblogic, I could create a connection pool for each database, and then create a MultiPool that uses the already created pools.
I don't know if I miss something in the documentation of Multimaster Replication, but I don't see how to create a single point of access for the Replicated databases, and neither how to create a DataSource for OC4J that can access more than one database. I'm totally new in Oracle world! Perhaps it isn't the better way to obtain more availabilty, perhaps I need to use a third component to provide a single point of access for the databases. I really don't know!
Thanks in advance,
RGBRoberto,
Multi-master replication is for distributed datbase. The best thing to have a better database availability is 9i Real Application Cluster.
Please follow http://otn.oracle.com/products/oracle9i/content.html to read more about RAC.
regards
Debu -
Do I need to install Oracle database 12c on PC to create tables for Weblogic server
Hi,
I am new to WebLogic and I am following a book Java EE Development
with Eclipse published by PACKT Publishing to learn Java EE. I have installed Oracle Enterprise Pack for Eclipse
on the PC and I am able to log into the WebLogic Server
Administration Console and set up a Data Source. However the next step is to create
tables for the database. The book says that the tables can be
created using SQL script run from the SQL command line.
I cannot see any way of inputting SQL script into the WebLogic
Server Admistration Console. Aslo there is no SQL Command line
in DOS.
I have put a previous question on the Oracle Forum about the above and I was advised to use SQL Plus
to create the tables for the weblogic server but no mention was made of installing Oracle database.
I have downloaded InstantClient SQL Plus and Instantclient Basic on a PC and
put the files into the same directory C:\SQLPlus but now I am having a problem in that it is
looking for a username and password when I run the sqlplus.exe file.
Now I assume that I need to have an installation of Oracle databse on the
PC so as to be able to use SQL Plus. Am I correct in this or can I create tables for the
datasource in weblogic without an Oracle database?
Thanks in advance for your help. BrianYou should install it separately and also need to change the OBIEE's user.sh to tell it where is your Oracle client installed.
-
Creating JDBC datasource in Weblogic 10
I have a requirement to create JDBC datasource at runtime if necessary. Weblogic provides JMX services for creating datasource however this required credential of Admin Server (node manager).
As my application is deployed in one of the managed node and as per the security policies admin credential will not be available..
so how can I create a datasource at runtime on fly applicable only for my node.. this should not require admin credentials?
Edited by: user5798282 on Apr 28, 2010 12:50 PMThanks for your reply. However both seems to be way of creating datasource in weblogic 8 . The first one is deprecated in Weblogic 10, the 2nd one requires weblogic admin username and password
-
Adding an XE DataSource in WebLogic 10gR3
I have Oracle 10g XE installed on my Windows XP Pro box. It is runing on port 17969.
I am trying to add a dataSource in Weblogic 10gR3 Server. I tripled checked the port, IP and all other parameters. I have also checked the TNSListener for the correct SID and port, etc. Everything looks correcct. I can log into the Oracle dB thru it's home page.
Can someone please take a look at my stack trace and offer advice as to what is wrong between the Weblogic Server and the Oracle dB? Thanks. Phil
When I click to test the configuration, this is the error that I see:
Connection test failed.
Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor The Connection descriptor used by the client was: higgled.dnsalias.com:17969:XE
oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:460)
oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:411)
oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:490)
oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:202)
oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)
oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:474)
com.bea.console.utils.jdbc.JDBCUtils.testConnection(JDBCUtils.java:505)
com.bea.console.actions.jdbc.datasources.createjdbcdatasource.CreateJDBCDataSource.testConnectionConfiguration(CreateJDBCDataSource.java:369)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.apache.beehive.netui.pageflow.FlowController.invokeActionMethod(FlowController.java:870)
org.apache.beehive.netui.pageflow.FlowController.getActionMethodForward(FlowController.java:809)
org.apache.beehive.netui.pageflow.FlowController.internalExecute(FlowController.java:478)
org.apache.beehive.netui.pageflow.PageFlowController.internalExecute(PageFlowController.java:306)
org.apache.beehive.netui.pageflow.FlowController.execute(FlowController.java:336)
...I have Oracle 10g XE installed on my Windows XP Pro boxlog onto system above as the OS user which owns the Oracle software (oracle?)
open a command window & issue the following commands
lsnrctl status
lsnrctl service
post back here the commands above & output from them
post the last 30 - 40 lines from listener.log -
Cannot create datasource for MS SQL Server
Hi,
I'm trying to create a datasource for MS SQL server and I get this error
Connection test failed.
Login failed for user 'gdahan'. The user is not associated with a trusted SQL Server connection.
com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(Lcom.microsoft.sqlserver.jdbc.SQLServerConnection;Ljava.lang.Object;Ljava.lang.String;Lcom.microsoft.sqlserver.jdbc.StreamError;Z)V(Unknown Source)
com.microsoft.sqlserver.jdbc.TDSTokenHandler.onEOF(Lcom.microsoft.sqlserver.jdbc.TDSReader;)V(Unknown Source)
com.microsoft.sqlserver.jdbc.TDSParser.parse(Lcom.microsoft.sqlserver.jdbc.TDSReader;Lcom.microsoft.sqlserver.jdbc.TDSTokenHandler;)V(Unknown Source)
com.microsoft.sqlserver.jdbc.SQLServerConnection.sendLogon
The database is in "Windows authentication" mode (not "SQL authentication") and I can connect to it through "Toad for MS SQL Server". In this case I don't need to specify any username or password because I'm already logged in as gdahan on my computer. But when I try to create the datasource I need a username and password. Is there any way to specify to the datasource that I want to connect via Authentication windows ?
I tried with BEA MS SQL server driver and Microsoft SQL Server 2005 JDBC Driver 1.2[Guillaume Dahan wrote:
Hi,
I'm trying to create a datasource for MS SQL server and I get this error
Connection test failed.
Login failed for user 'gdahan'. The user is not associated with a trusted SQL Server connection.
com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(Lcom.microsoft.sqlserver.jdbc.SQLServerConnection;Ljava.lang.Object;Ljava.lang.String;Lcom.microsoft.sqlserver.jdbc.StreamError;Z)V(Unknown Source)
com.microsoft.sqlserver.jdbc.TDSTokenHandler.onEOF(Lcom.microsoft.sqlserver.jdbc.TDSReader;)V(Unknown Source)
com.microsoft.sqlserver.jdbc.TDSParser.parse(Lcom.microsoft.sqlserver.jdbc.TDSReader;Lcom.microsoft.sqlserver.jdbc.TDSTokenHandler;)V(Unknown Source)
com.microsoft.sqlserver.jdbc.SQLServerConnection.sendLogon
The database is in "Windows authentication" mode (not "SQL authentication") and I can connect to it through "Toad for MS SQL Server". In this case I don't need to specify any username or password because I'm already logged in as gdahan on my computer. But when I try to create the datasource I need a username and password. Is there any way to specify to the datasource that I want to connect via Authentication windows ?
I tried with BEA MS SQL server driver and Microsoft SQL Server 2005 JDBC Driver 1.2[See the complete documentation for MS's JDBC driver
for how/whether it can do Windows Authentication.
This is completely at the driver level, not WebLogic,
except that (of course) WebLogic would have to be
running on Windows.
Joe -
Urgent help: how to create data source for Weblogic RMI driver
Hi,
Please let me how to create data source for Weblogic RMI driver using Administrator
console.
I understand that the following steps are required:
1.Create connection pool for the RMI driver by specfiying URL as
jdbc:weblogic:rmi and Driver as weblogic.jdbc.rmi.Driver. Now
comes the problem.. what do put in properties text area? I am
talking about key/value pairs required?
2. Having done step 1 ( which I was not able to do) , create a new DataSource
mapping to the connection pool created from step 1.
How to accomplish step 1 ? I want to finally connect to Oracle
database. Please help me.
pradeep bhatDataSource will internally do that for you (It will use RMI internaly) . You
dont have to worry about the details of using RMI driver. Thats what is a
DataSource is for.
sree
"pradeep bhat" <[email protected]> wrote in message
news:[email protected]...
Hi Sree,
What u have written is abt configuting Datasource for type 2 and
4 drivers.
But I want to know how to create data source for RMI driver. If
I map this datasource to connection pool that is created for
type 2 or 4 drivers, i don't understand why RMI drivers are
required in first place. If i do map the data source to connection pool
created
for type 2 or 4 drivers then where i
would not have used the URL as jdbc:weblogic:rmi and Driver as
weblogic.jdbc.rmi.Driver.
Hope u will help me.
pradeep bhat
"Sree Bodapati" <[email protected]> wrote:
Hi Pradeep
To create a connection pool you have to use a database driver not RMI
driver. So use a thin driver or the WebLogic jDriver for Oracle to setup
your connection pool. Once the connection pool is created you can create
a
DataSource and use this datasource to connect to the database.
The RMI driver can be used to get connections from the database via the
connection pool and in that case you dont need a datasource. Recommended
approach is to use a DataSource.
hth
sree
"PRADEEP BHAT" <[email protected]> wrote in message
news:[email protected]...
Hi,
Please let me how to create data source for Weblogic RMI driver using
Administrator
console.
I understand that the following steps are required:
1.Create connection pool for the RMI driver by specfiying URL as
jdbc:weblogic:rmi and Driver as weblogic.jdbc.rmi.Driver. Now
comes the problem.. what do put in properties text area? I am
talking about key/value pairs required?
2. Having done step 1 ( which I was not able to do) , create a new
DataSource
mapping to the connection pool created from step 1.
How to accomplish step 1 ? I want to finally connect to Oracle
database. Please help me.
pradeep bhat -
Urgent help: how to create data source for Weblogic T3 driver
Hi,
Please let me how to create data source for Weblogic T3 driver
using Administrator console.
I understand that the following steps are required:
1.Create connection pool for the RMI driver by specfiying URL
as jdbc:weblogic:rmi and Driver as weblogic.jdbc.rmi.Driver.
Now comes the problem.. what do put in properties text area?
I am talking about key/value pairs required?
2. Having done step 1 ( which I was not able to do) , create a
new DataSource mapping to the connection pool created from
step 1.
How to accomplish step 1 ? I want to finally connect to Oracle database. Please
help me.
pradeep bhatHi,
Please let me how to create data source for Weblogic T3 driver
using Administrator console.
I understand that the following steps are required:
1.Create connection pool for the RMI driver by specfiying URL
as jdbc:weblogic:rmi and Driver as weblogic.jdbc.rmi.Driver.
Now comes the problem.. what do put in properties text area?
I am talking about key/value pairs required?
2. Having done step 1 ( which I was not able to do) , create a
new DataSource mapping to the connection pool created from
step 1.
How to accomplish step 1 ? I want to finally connect to Oracle database. Please
help me.
pradeep bhat
Maybe you are looking for
-
Excise problem in case of free items
Hello, My user is having following issue. Vendor has sent 3 items, out of which one is free sample. But on that excise has to b paid by us (which is approx 3000rs). So when user is trying 2 do GR, first 2 items dont hav any problem, but after checkin
-
SAP allows release of Standard Cost for Material with Moving Average Price
Hi We set our Raw Material to use Moving Average Price (V) and price determination 2 (single level). And we activated material ledger. During mass calculation of standard cost (CK40N), If user accidentally forgot to restrict the Raw Material for bein
-
Exporting as jpeg with use artboards adds to file name
When I export from Illustrator CS5 with "Use Artboards" checked it adds a "-01" to the end of my file name before the extention. I'm assuming that its because its artboard #1 or something. It happens with the all or the range button checked. It doesn
-
How can I make a PDF embedded image append a SSRS 2012 report and send via fax all electronically? Is this possible? Thanks in advance for your time!
-
Ipod Seems a Bit Slow (Laggy?)
I have filled up my 60gb ipod a little over half of it with just music. It seems a bit slow now trying to explore through menus... is this normal? If not, how can I go about fixing or improving it? It's getting a bit tedious now because it's hard to