JDBC in WebLogic setting

Hi all,
I would like to ask what should I set in the Connection Pool in Weblogic if I want to connect to the database?
For example, the JDBC COnnection Pool in the console, it has Name, URL, Driver Classname, Properties, ACLName, Password, Open String Pasword. I don't know set which values in these attributes. I am use Oracle 9i as the database.
Does anyone could give me some hints about it?
Thanks!!

Add the path-names for the WebLogic shared library (.dll) directory WL_HOME\server\bin\oci901_8, and the Oracle client library,ORACLE_HOME\bin to the PATH variable.
Add ORACLE_HOME\JDBC\lib\classes12.zip file containing the Oracle JDBC driver classes to the CLASSPATH variable.
URL: jdbc:weblogic:oracle
Driver Classname:weblogic.jdbc.oci.Driver
In the Properties field:
user=<user>
password=<password>
server=<database>
user, passowrd is the user, password to login to the Oracle database.
database is the Oracle database name.

Similar Messages

  • How does jdbc fetch a set of records in oracle

    Hi,
    Oracle does not support server side cursors,if so how does jdbc fetch a set of records(set by setFetchSize(), which is 10 by default) each time I say rs.next().Does this mean Query is re-executed to fetch the next set of records? Can some body throw some light on this?
    thanx in advance
    Gnayan

    You are asking about implementation details of some JDBC driver, but you don't say which one. This makes it very difficult to answer your question. You might want to try asking the question of the people who wrote the driver.

  • Does weblogic set socket buffer size ?

    Hi all,
    Want to know if Weblogic sets the Socket buffer size,when it establishes a connection with a client ?
    If so then what is its default value?
    any help is appreciated.
    Thanks in advance.

    Thanks for all your reply.
    I give u more detail on my issue:
    Test Environment:
    Server: 4 GB memory, 1.3 GHz, a dual core CPU with hyper-threading enabled on each core (4 logical CPUs), a tomcat with my application deployed
    Client: the same configuration as Server, a http simulator
    Network: 1Gb/s
    Test:
    1> Simulate one user. Client keep sending requests to server, and server has one thread serve user's requests. (make Server always busy)
    request
    Server <------------- Client
    response
    Server ---------------> Client
    request
    Server <-------------- Client
    CPU usage was 18%, in normal case should be 25% (100% / 4 = 25%, in my other cases, CPU were 25%)
    Take a few thread dumps: saw threads sometimes blocked in the native method java.net.SocketOutputStream.socketWrite0(Native Method).
    2> Simulate 4 concurrent users. Client keep sending requests to server concurrently, and server has multiple threads serve user's requests. (make Server always busy)
    4 requests
    Server <------------- Client
    responses
    Server ---------------> Client
    requests
    Server <-------------- Client
    CPU usage was 80%, in normal case should be 90%+.
    Take a few thread dumps: saw threads sometimes blocked in the native method java.net.SocketOutputStream.socketWrite0(Native Method).
    If CPU was not fully utilized, for example only 80%, server must be blocked by something. And this bottleneck would impact the scalability of server.
    If I can remove this bottleneck and do not bring other overheads, I may acquire:
    1> a higher throughput
    2> a more scalable server
    In our performance requirement, server CPU usage must be 90%+.
    I just feel strange that why the CPU usage was normal (25% for single thread test or 90%+ for 4 threads test) even I choose a very small buffer size.

  • Error got while creating a jdbc in Weblogic server 9.2

    Hi All,
    I am getting the following error
    +"Warning! Connectivity to backend database not verified. This is either because required connection pool attributes "TestConnectionsOnReserve" or "TestConnectionsOnRelease" have not been enabled, or an invalid value has been specified for attribute "TestTableName". Please check the server log for more details".+
    While creating a jdbc datasource in Weblogic 9.2. When I add the target and activate the setting and while testing only I am getting this error. While before adding target "Test connection" works good.
    Please help me in fixing this bug.
    Thank you in Advance.
    With regards
    John
    Edited by: user7329724 on Dec 16, 2008 11:25 AM
    Edited by: user7329724 on Dec 16, 2008 11:26 AM

    Please confirm the "Test Connections On Reserve" attribute is enabled. You can find this property in Administration Console--->Data Sources--->Your Data Source Name--->Configuration--->Connection Pool--->Advanced

  • Remote JDBC problem while setting up it with BPM Studio 10.3

    Hi
    I am trying to use the Remote JDBC for SQL Connection to Database with Oracle BPM Studio.
    When i configure a Remote JDBC Connection for SQL in BPM Studio, it prompt me an error.
    Step 1: Create a new external resource
    Name: erJavaLibrary
    Type: Java Class Library
    Jar libraries: weblogic.jar
         wlclient.jar
    Step 2: Create a new external resource
    Name: erWebLogic
    Type: J2EE Application Server type
    Initial Context Factory: weblogic.jndi.WLInitialContextFactory
    URL: http://192.168.1.32:7001
    Principal: weblogic
    Credentials: *******
    Step 3: Create a new external resource
    Name: erSQLjdb
    Type: SQL database
    Supported Types : Remote JDBC
    Database Type : BPM MS SQL Server 2005
    J2EE : erWebLogic
    Lookup Name : TestBPMDS
    Step 4: Creating a new catalog modulo for database component
    Select Catalog Component, and then select SQL
    Specify which configuration: erSQLjdbc
    Exception error:
    weblogic/security/subject/AbstractSubject
    Caused by: weblogic.security.subject.AbstractSubject
    java.lang.NoClassDefFoundError: weblogic/security/subject/AbstractSubject      
    at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)      
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)      
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)      
    at javax.naming.InitialContext.init(InitialContext.java:223)      
    at javax.naming.InitialContext.<init>(InitialContext.java:197)      
    at fuego.jndi.FaultTolerantContext.createContext(FaultTolerantContext.java:726)      
    at fuego.jndi.FaultTolerantContext.<init>(FaultTolerantContext.java:79)      
    at fuego.connector.impl.GenericJ2EEConnector.createInitialContext(GenericJ2EEConnector.java:177)      
    at fuego.connector.impl.GenericJ2EEConnector.createStandaloneContext(GenericJ2EEConnector.java:98)      
    at fuego.connector.impl.BaseJ2EEConnector.getResource(BaseJ2EEConnector.java:92)      
    at fuego.connector.impl.BaseJ2EEConnector.getResource(BaseJ2EEConnector.java:76)      
    at fuego.connector.J2EEHelper.getReadOnlyContext(J2EEHelper.java:86)      
    at fuego.connector.impl.BaseRemoteConnector.getContext(BaseRemoteConnector.java:99)
    at fuego.connector.impl.BaseRemoteConnector.getReferencedObject(BaseRemoteConnector.java:114)
    at fuego.connector.impl.BaseRemoteConnector.getReferencedObject(BaseRemoteConnector.java:107)
    at fuego.connector.impl.RemoteJDBCConnector.getConnection(RemoteJDBCConnector.java:75)      
    at fuego.connector.impl.RemoteJDBCConnector.getResource(RemoteJDBCConnector.java:145)      
    at fuego.connector.impl.RemoteJDBCConnector.getResource(RemoteJDBCConnector.java:129)      
    at fuego.connector.JDBCHelper.getReadOnlyConnection(JDBCHelper.java:90)      
    at fuego.sqlintrospector.BrowserPanel.connect(BrowserPanel.java:395)      
    at fuego.sqlintrospector.BrowserPanel.populateTree(BrowserPanel.java:200)      
    at fuego.ui.wizards.ui.CheckTreeBrowser$1.construct(CheckTreeBrowser.java:63)      
    at fuego.ui.SwingWorker$2.run(SwingWorker.java:39)      
    at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.ClassNotFoundException: weblogic.security.subject.AbstractSubject      
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)      
    at java.security.AccessController.doPrivileged(Native Method)      
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)      
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)      
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)      
    ... 24 more

    Solution procedure:
    1. Create the wlfullclient.jar file in weblogic environment:
    It is documented in: http://download.oracle.com/docs/cd/E12839_01/web.1111/e13717/jarbuilder.htm#BABCGHFH
    2. Add the wlfullclient.jar file as external resource.
    3. Create the Remote JDBC data source configuration

  • Weblogic setting the Oracle password

    Hi,
    I have a problem with an Oracle 8.1.7 database and Weblogic Server 6.0 sp2 both
    running on an HPUX 11 Unix box in that everytime I start Weblogic it sets the
    Oracle password to be the value of the Orarcle sid. I have configured Weblogic
    to have a Connection Pool to the database.
    Anyone have any clues?
    Regards,
    Dave.

    can you post your connection pool settings?
    sree
    "David Fletcher" <[email protected]> wrote in message
    news:3bc5f5cf$[email protected]..
    >
    Hi,
    I have a problem with an Oracle 8.1.7 database and Weblogic Server 6.0 sp2both
    running on an HPUX 11 Unix box in that everytime I start Weblogic it setsthe
    Oracle password to be the value of the Orarcle sid. I have configuredWeblogic
    to have a Connection Pool to the database.
    Anyone have any clues?
    Regards,
    Dave.

  • Weblogic setting Cache-control: no-cache?

    I have a servlet filter that sets the Cache-control http header to "max-age=30" for static files such as *.css but in the end weblogic sends the value "no-cache".
    When the browser asks for the same static file again weblogic responds with http 304 and Cache-control "max-age=0" thus overriding my filter again.
    Is there any way to change the client side caching in weblogic (10.3.4)?
    (btw the servlet filter works in tomcat)

    Hi,
    1. response.setHeader("Cache-Control","no-cache");
    This is used to prevent the browser from caching your dynamic content generated by a JSP or Servlet.
    You set this attribute in the HTTP header of the response object which would tell the browser not to cache this content. So everytime you request the page again, the browser would make a new request, instead of showing you a cached page.
    2. response.setHeader("Location", "error.html");
    This is called redirecting. "Redirecting" is sending a response from your servlet to the browser telling the browser to go to a new location(make a new request)
    The standard way to do this response.sendRedirect(String);

  • JDBC and character set convert issue

    Hi All,
    For some special Chinese characters, we will have the "ORA-00933: SQL command not properly ended" error when we try to insert the data into a Oracle ASCII DB. I have been tried to use the "HasQuot='no'" in the tag and the "N'xxxx'" in the data field but we still got the error.
    Do anyone have the idea about it?
    Best Regard

    It is possilbe to store Big5 code in ASCII DB since it is one kind of ASCII code too.
    If the locale or code page on client is Big5 or 950(MS windows) then the data can be shown properly.
    We tried many ways to store Big5 code in ASCII DB by using PI in these days but failed.
    The following are the things that I have tried.
    1. enable "hasQuot" with "no" or "No" constant in attribute; set the data as format N'xxxx' : still got ORA-00933.
    2. enable AF_Modules/XMLAnonymizerBean befer and after CallSapAdapter module: for some special characters it still has )RA-00933; even we insert the data into DB successfully, we can not process the response properly.
    3. enable AF_Modules/TextCodepageConversionBean before CallSapAdapter module: we can insert the special characters into DB if we set the parameter of Conversion.charset to ASCII. However, the Chinese character will become to "?" in DB.
    I will keep trying,
    Thanks all of your help.

  • Generic JDBC connection not setting up.

    Hey ..
    I am trying to make a Generic JDBC connection in DB adapter. For the steps I am refering to this blog: https://blogs.oracle.com/middleware/entry/configuring_mssql_with_soa_suite
    so I went as follows: step 3 of 4 of adapter configuration > create new connection > Driver class: new > Library: Browse
    chose the driver source .jar, put the correct URL & tested the connection.
    The Error that came said:
    "Test failed: Driver class not found.
    Verify the Driver location"
    I tried same thing with sqljdbc.jar - the file used in the blog ... Same error was there.
    What's the mistake? What should I try to do?

    The problem got solved ..
    Actually the path was correct but the driver class name was wrong ..
    Perhaps it tries to find the driver class with the specific name in specified .jar
    I thought we are CREATING new thing ..
    Thanks anyways for your help

  • Issues on setting the SQL ARRAY in Weblogic 10.3

    Hello,
    I am facing problem while migrating my application from Weblogic 8.1 to Weblogic 10, and problem is on setting the database ARRAY.
    here is the brief of the problem which we are facing during weblogic upgrade, appreciate if someone could help us in this regard.
    Requirement:- Upgrading the Weblogic Server from 8.1 SP4 to 10.3.
    Problem Description :- We are facing issue with Weblogic server 10.3 related to JDBC call for setting the Database Array. We are using Spring framework JDBC templates.
    In 8.1 we used to send the database Array by using two different methods mentioned below.
    Method 1 :- First method which we are using to set the ARRAY object to database.
    CODE:
    public Object doBaseInConnection(Connection connection) throws SQLException
    OracleCallableStatement callableStatement = OracleCallableStatement)connection.prepareCall(DBUtils.createPreparedStatementFunctionString("bbvoice_customer_discovery_ng", "validate_password_3", 8));
    callableStatement.registerOutParameter(1, Types.INTEGER);
    callableStatement.setString(2, identifier);
    callableStatement.setString(3, password);
    ArrayDescriptor arrayDesc = ArrayDescriptor.createDescriptor("TACTOSS.PRODUCT_NAME_ARRAY", connection);
    ARRAY ocbsArray = new ARRAY(arrayDesc, connection, productSearchList); -- Exception in this LINE
    callableStatement.setARRAY(4, ocbsArray);
    callableStatement.execute();
    EXCEPTION:
    This was working fine in Weblogic8.1 where as giving the below exception in Weblogic 10.3.
    java.lang.ClassCastException: $Proxy439 cannot be cast to oracle.jdbc.OracleConnection
    at oracle.sql.ArrayDescriptor.createDescriptor(ArrayDescriptor.java:155)
    at oracle.sql.ArrayDescriptor.createDescriptor(ArrayDescriptor.java:123)
    CHANGE:
    Only change in Weblogic 10.3 in this area is earlier in weblogic 8.1 we used to have ojdbc14.jar but weblogic10.3 is having ojdbc6.jar.
    Method 2 :- Second method which we are using to set the ARRAY object to database.
    CODE:
    public Object doBaseInConnection(Connection connection) throws SQLException
    OracleConnection oracleConnection = (OracleConnection) ((WLConnection)connection).getVendorConnection();  -- Exception in this LINE
    OracleCallableStatement callableStatement = (OracleCallableStatement)connection.prepareCall(DBUtils.createPreparedStatementFunctionString("bbvoice_business_bbv_ng", "create_service_3_mb", 15));
    callableStatement.registerOutParameter(1, Types.INTEGER);
    callableStatement.setBigDecimal(2, new BigDecimal(customerId.intValue()));
    callableStatement.setString(3,businessBBVDTONG.getCpeType() );
    ArrayDescriptor arrayDesc = ArrayDescriptor.createDescriptor( "TACTOSS.GEO_DETAILS_ARRAY", oracleConnection);
    List geoList = businessBBVDTONG.getGeoNumberList();
    int size = geoList.size();
    Object arrayValues[][] = new Object[size][];
    Object[] str = new Object[3];
    for(int i=0;i<geoList.size();i++)
         GeoNumberDTO geoNumberDetails = (GeoNumberDTO)geoList.get(i);
         str[0]=geoNumberDetails.getDirectoryEntry();
         str[1]=geoNumberDetails.getCssDistrictId();
         str[2]=geoNumberDetails.getCssExchangeGroupCode();
         arrayValues[i] = str;
         str = new Object[3];
    ARRAY ocbsArray = new ARRAY(arrayDesc, oracleConnection, arrayValues);
    callableStatement.setARRAY(4, ocbsArray);
    callableStatement.execute();
    EXCEPTION:
    This was also working fine in Weblogic8.1 where as giving the below exception in Weblogic 10.3.
    java.lang.ClassCastException: $Proxy216 cannot be cast to weblogic.jdbc.extensions.WLConnection
    at com.bt.bbv.core.dao.bbvoice.nextgen.BusinessBBVDAONGImplDB$2createService.doBaseInConnection(BusinessBBVDAONGImplDB.
    java:171)
    at com.bt.bbv.core.util.BaseConnectionCallback.doInConnection(BaseConnectionCallback.java:38)
    CHANGE:
    Changes from Weblogic 8.1 to 10.3 are
    1) We are not having the WLConnection in weblogic.jar instead it is present in com.bea.core.datasource6_1.4.0.0.jar
    2)Weblogic 10.3 server is having ojdbc6.jar instead of ojdbc14.jar.

    You'll also need to map the security role defined in web.xml to a Weblogic principal (an actual Weblogic user or a group) in weblogic.xml.
    Example:
    web.xml
    <web-resource-collection>
    <web-resource-name>PowerPointTemplates.jws</web-resource-name>
    <description>A web service secured by SSL and basic authentication</description>
    <url-pattern>/PowerPointTemplates.jws/*</url-pattern>
    <http-method>GET</http-method>
    <http-method>POST</http-method>
    </web-resource-collection>
    <auth-constraint>
    <role-name>Friends</role-name>
    </auth-constraint>
    <user-data-constraint>
    <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
    </security-constraint>
    <login-config>
    <auth-method>CLIENT-CERT</auth-method>
    <realm-name>myrealm</realm-name>
    </login-config>
    <security-role>
    <description>Role description</description>
    <role-name>Friends</role-name>
    </security-role>
    weblogic.xml
    <security-role-assignment>
    <role-name>Friends</role-name>
    <principal-name>weblogic</principal-name> <!-- the following 3 are users that exist in Weblogic -->
    <principal-name>user1</principal-name>
    <principal-name>user2</principal-name>
    <principal-name>Turbo_Users</principal-name> <!-- this is a Weblogic group -->
    </security-role-assignment>

  • Major performance problem in weblogic jdbc

    I ran a test which selected ~1000 rows from an oracle database table. The
    code ran in 4 seconds when I used the Oracle driver directly:
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection connection = DriverManager.getConnection(URL, "XXX", "XXX");
    When I changed the code to get the connection from weblogic, it took 128
    SECONDS!!!!
    weblogic.jdbc.connectionPool.pointclick=\
    url=jdbc:oracle:thin:@XXX:dev,\
    driver=oracle.jdbc.driver.OracleDriver,\
    initialCapacity=1,\
    maxCapacity=2,\
    capacityIncrement=1,\
    props=user=XXX;password=XXX
    weblogic.jdbc.TXDataSource.weblogic.jdbc.jts.pointclick=pointclick
    Properties properties = new Properties();
    properties.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    Context context = new InitialContext(properties);
    try
    DataSource dataSource = (DataSource)context.lookup(NAME);
    Connection connection = dataSource.getConnection();
    // if(!autoCommit)
    // connection.setAutoCommit(false);
    return connection;
    finally
    context.close();
    The strangest thing is that when I used the weblogic pool, if I executed
    "select column from table" it took 128 seconds, but "select * from table"
    only took 32 seconds. Why would it take longer to process less data?
    And more importantly, why does the weblogic connection take so damn long?
    Thanks for your help.
    Sean Rohead

    Hey, I finally managed to get JDBC logging up and running! Had to do with
    permission setting, adding the following entry to weblogic.policy:
    permission java.sql.SQLPermission "setLog";
    Boy are you right; JDBC logging is slow as mud! Good thing we use BMP
    entity beans, so I guess I can log JDBC calls myself in the
    ejbCreate/Load/Store/Remove hooks!
    Gene Chuang
    Teach the world. Join Kiko!
    http://www.kiko.com/profile/join.jsp?refcode=TAF-gchuang
    "Joseph Weinstein" <[email protected]> wrote in message
    news:[email protected]...
    >
    >
    Gene Chuang wrote:
    Hey, I've tried setting weblogic.jdbc.enableLogFile=true before and
    can't
    even get the server to start up! Since JDBC logging is not only slow,but
    buggy,JDBC logging is slow for the reasons described, but not buggy as such.
    is there a possibility Weblogic can implement a JDBC log for a future
    release?
    Seems like Weblogic can catch SQL calls much easier than we can,
    especially for CMP!It is conceivable that our pool drivers (pool,jts,rmi etc) couldindependently
    log SQL for debugging purposes, but we need to retain the semantics ofturning
    on jdbc logging, which in any case will continue to emanate from any JDBCdriver.
    In any case, we wouldn't do anything differently that DriverManager doesfor
    simply writing to a file, which would be serialized by the stream anyway.
    Joe
    Gene Chuang
    Teach the world. Join Kiko!
    http://www.kiko.com/profile/join.jsp?refcode=TAF-gchuang
    "Joseph Weinstein" <[email protected]> wrote in message
    news:[email protected]...
    Sean Rohead wrote:
    OK, disregard everything I said in my last post. The REAL reason
    for
    the
    slowdown is that I had "weblogic.jdbc.enableLogFile=true" in my
    weblogic.properties. So, there is nothing wrong with the JNDIDataSource
    object. Sorry if I misled anyone.
    Still, it does seem rather excessive for logging to cause a 30Xslowdown.
    Someone at BEA ought to take a closer look at that...Known issue, not ours.
    JDBC logging collect anything logged by any JDBC driver or by anySQLException.
    These all call DriverManager.println() which is class synchronized in
    the
    JVM,
    so this will serialize most JDBC threads, and slow the server down a
    lot,
    independently of the disk I/O needed to grow the file.
    Joe
    Sean Rohead
    "Sean Rohead" <[email protected]> wrote in message
    news:[email protected]...
    Nice work, Charlie!
    When I just connected to the pool directly, it ran fine. I am
    guessing
    that
    the DataSource returns a connection that connects first to the
    server
    via
    RMI and then to the database. I am trying to obtain a JDBC
    connection
    for
    use in EJB and servlets, so this is clearly overkill. The
    question I
    now
    have is what is the best way to obtain a transactional
    connection
    without
    the overhead described above? Can I somehow create a
    transactional
    DataSource that doesn't go over RMI? Or, should I just use thejts
    driver
    directly? I tried the following code, but got an error:
    Driver driver = new weblogic.jdbc.jts.Driver();
    Properties properties = new Properties();
    properties.put("connectionPoolID", "pointclick");
    Connection connection = driver.connect("jdbc:weblogic:jts",properties);
    The error was:
    java.sql.SQLException: The url cannot be null
    atjava.sql.DriverManager.getConnection(DriverManager.java:434)
    atjava.sql.DriverManager.getConnection(DriverManager.java:106)
    at weblogic.jdbcbase.jts.Driver.connect(Driver.java:213)
    at
    pointclick.jdbc.ConnectionFactory.getConnection(ConnectionFactory.java:24)
    atpointclick.servlet.TestServlet.doGet(TestServlet.java:36)
    atjavax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    atjavax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :124)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
    l.java:744)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
    l.java:692)
    at
    weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
    Manager.java:251)
    at
    weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:363)
    at
    weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
    atweblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >>>>>
    >>>>>
    I copied the code above from
    http://www.weblogic.com/docs51/classdocs/jts_driver.html and there
    was
    no
    mention of setting any other properties. If I create the
    connection
    this
    way from an EJB, will it still participate in the transaction
    started
    by
    the
    EJB container?
    Sean Rohead
    "Charlie Crook" <[email protected]> wrote in message
    news:[email protected]...
    Your Oracle example is also using JNDI to obtain the connection;
    not
    just
    getting a connection from a pool. So you've actually changed 2conditions
    ( non-pool to pool, non-JNDI to JNDI ). So both of these should
    be
    considered as suspects for the performance.
    "Sean Rohead" <[email protected]> wrote in message
    news:[email protected]...
    I ran a test which selected ~1000 rows from an oracle database
    table.
    The
    code ran in 4 seconds when I used the Oracle driver directly:
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection connection = DriverManager.getConnection(URL,
    "XXX",
    "XXX");
    When I changed the code to get the connection from weblogic,
    it
    took
    128
    SECONDS!!!!
    weblogic.jdbc.connectionPool.pointclick=\
    url=jdbc:oracle:thin:@XXX:dev,\
    driver=oracle.jdbc.driver.OracleDriver,\
    initialCapacity=1,\
    maxCapacity=2,\
    capacityIncrement=1,\
    props=user=XXX;password=XXX
    weblogic.jdbc.TXDataSource.weblogic.jdbc.jts.pointclick=pointclick
    >>>>>>>
    >>>>>>>
    Properties properties = new Properties();
    properties.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    Context context = new InitialContext(properties);
    try
    DataSource dataSource = (DataSource)context.lookup(NAME);
    Connection connection = dataSource.getConnection();
    // if(!autoCommit)
    // connection.setAutoCommit(false);
    return connection;
    finally
    context.close();
    The strangest thing is that when I used the weblogic pool, ifI
    executed
    "select column from table" it took 128 seconds, but "select *
    from
    table"
    only took 32 seconds. Why would it take longer to process
    less
    data?
    And more importantly, why does the weblogic connection take sodamn
    long?
    Thanks for your help.
    Sean Rohead
    PS: Folks: BEA WebLogic is in S.F., and now has some entry-level
    positions
    for
    people who want to work with Java and E-Commerce infrastructure
    products.
    Send
    resumes to [email protected]
    The Weblogic Application Server from BEA
    JavaWorld Editor's Choice Award: Best Web Application Server
    Java Developer's Journal Editor's Choice Award: Best Web ApplicationServer
    Crossroads A-List Award: Rapid Application Development Tools for
    Java
    Intelligent Enterprise RealWare: Best Application Using a ComponentArchitecture
    http://www.bea.com/press/awards_weblogic.html
    PS: Folks: BEA WebLogic is in S.F., and now has some entry-level positionsfor
    people who want to work with Java and E-Commerce infrastructure products.Send
    resumes to [email protected]
    The Weblogic Application Server from BEA
    JavaWorld Editor's Choice Award: Best Web Application Server
    Java Developer's Journal Editor's Choice Award: Best Web ApplicationServer
    Crossroads A-List Award: Rapid Application Development Tools for Java
    Intelligent Enterprise RealWare: Best Application Using a ComponentArchitecture
    http://www.bea.com/press/awards_weblogic.html

  • SOA WebLogic : Cannot load JDBC driver class

    Hi, I'm new to this Oracle SOA World. Currently I'm trying to configure environment on my system. I found a very useful document to install all related SOA component to my system, the document name was 'Quick Start Guide for Oracle® SOA Suite 11gR1 (11.1.1.5.0)'. I did all the steps written in the document and have installed all the components successfully, component including Database, Jdevelper, WebLogic Server, RCU, SOA suite, service bus, all are installed successfully.
    But when I'm trying to Configure Application Server (start -> Oracle SOA 11g-Home1), at one step 'Configure JDBC Component Schema' , here I'm getting this message
    * The driver class listed below was not found in product installation
    vendor: Derby
    Driver: org.apache.derby.jdbc.clientdriver
    A Test will not be performed on any database connections using this driver
    In addition, when i just ignore this message and continue installation, after installation when i run weblogic server then it gives error and gets terminated
    here is weblogic server log:
    * To start WebLogic Server, use a username and *
    * password assigned to an admin-level user. For *
    * server administration, use the WebLogic Server *
    * console at http:\\hostname:port\console *
    starting weblogic with Java version:
    Listening for transport dt_socket at address: 8453
    java version "1.6.0_24"
    Java(TM) SE Runtime Environment (build 1.6.0_24-b50)
    Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode)
    Starting WLS with line:
    C:\Oracle\MIDDLE~1\JDK160~1\bin\java -client -Xdebug -Xnoagent -Xrunjdwp:transpo
    rt=dt_socket,address=8453,server=y,suspend=n -Djava.compiler=NONE -Xms512m -Xmx
    1024m -XX:PermSize=128m -XX:MaxPermSize=512m -Dweblogic.Name=AdminServer -Djava.
    security.policy=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy -Xveri
    fy:none -Xverify:none -da:org.apache.xmlbeans... -ea -da:com.bea... -da:javeli
    n... -da:weblogic... -ea:com.bea.wli... -ea:com.bea.broker... -ea:com.bea.sbcons
    ole... -Dplatform.home=C:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=C:\Oracle\MIDDLE
    ~1\WLSERV~1.3\server -Dweblogic.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dcom
    mon.components.home=C:\Oracle\MIDDLE~1\ORACLE~1 -Djrf.version=11.1.1 -Dorg.apach
    e.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Ddomain.home=
    C:\Oracle\MIDDLE~1\USER_P~1\domains\BASE_D~2 -Djrockit.optfile=C:\Oracle\MIDDLE~
    1\ORACLE~1\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.server.config.
    dir=C:\Oracle\MIDDLE~1\USER_P~1\domains\BASE_D~2\config\FMWCON~1\servers\AdminSe
    rver -Doracle.domain.config.dir=C:\Oracle\MIDDLE~1\USER_P~1\domains\BASE_D~2\con
    fig\FMWCON~1 -Digf.arisidbeans.carmlloc=C:\Oracle\MIDDLE~1\USER_P~1\domains\BAS
    E_D~2\config\FMWCON~1\carml -Digf.arisidstack.home=C:\Oracle\MIDDLE~1\USER_P~1\
    domains\BASE_D~2\config\FMWCON~1\arisidprovider -Doracle.security.jps.config=C:\
    Oracle\MIDDLE~1\USER_P~1\domains\BASE_D~2\config\fmwconfig\jps-config.xml -Dorac
    le.deployed.app.dir=C:\Oracle\MIDDLE~1\USER_P~1\domains\BASE_D~2\servers\AdminSe
    rver\tmp\_WL_user -Doracle.deployed.app.ext=\- -Dweblogic.alternateTypesDirector
    y=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.ossoiap_11.1.1,C:\Oracle\MIDDLE~1\O
    RACLE~1\modules\oracle.oamprovider_11.1.1 -Djava.protocol.handler.pkgs=oracle.md
    s.net.protocol"|"oracle.fabric.common.classloaderurl.handler"|"oracle.fabric.com
    mon.uddiurl.handler"|"oracle.bpm.io.fs.protocol -Dweblogic.jdbc.remoteEnabled=f
    alse -da:org.apache.xmlbeans... -Dsoa.archives.dir=C:\Oracle\Middleware\Oracle_
    SOA1\soa -Dsoa.oracle.home=C:\Oracle\Middleware\Oracle_SOA1 -Dsoa.instance.home=
    C:\Oracle\MIDDLE~1\USER_P~1\domains\BASE_D~2 -Dtangosol.coherence.clusteraddress
    =227.7.7.9 -Dtangosol.coherence.clusterport=9778 -Dtangosol.coherence.log=jdk -D
    javax.xml.soap.MessageFactory=oracle.j2ee.ws.saaj.soap.MessageFactoryImpl -Dwebl
    ogic.transaction.blocking.commit=true -Dweblogic.transaction.blocking.rollback=t
    rue -Djavax.net.ssl.trustStore=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\DemoTrus
    t.jks -Dem.oracle.home=C:\Oracle\Middleware\oracle_common -Djava.awt.headless=tr
    ue -Dums.oracle.home=C:\Oracle\Middleware\Oracle_SOA1 -Dweblogic.management.disc
    over=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dwe
    blogic.ext.dirs=C:\Oracle\MIDDLE~1\patch_wls1035\profiles\default\sysext_manifes
    t_classpath;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sysext_manifest_c
    lasspath weblogic.Server
    Listening for transport dt_socket at address: 8453
    <2012-mar-02 kl 21:14 CET> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE
    Provider self-integrity check for better startup performance. To enable this ch
    eck, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>
    <2012-mar-02 kl 21:14 CET> <Info> <Security> <BEA-090906> <Changing the default
    Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable th
    is change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true>
    <2012-mar-02 kl 21:14 CET> <Info> <WebLogicServer> <BEA-000377> <Starting WebLog
    ic Server with Java HotSpot(TM) Client VM Version 19.1-b02 from Sun Microsystems
    Inc.>
    <2012-mar-02 kl 21:14 CET> <Info> <Management> <BEA-141107> <Version: WebLogic S
    erver 10.3.5.0 Fri Apr 1 20:20:06 PDT 2011 1398638 >
    <2012-mar-02 kl 21:14 CET> <Notice> <WebLogicServer> <BEA-000365> <Server state
    changed to STARTING>
    <2012-mar-02 kl 21:14 CET> <Info> <WorkManager> <BEA-002900> <Initializing self-
    tuning thread pool>
    <2012-mar-02 kl 21:14 CET> <Notice> <Log Management> <BEA-170019> <The server lo
    g file C:\Oracle\Middleware\user_projects\domains\base_domain\servers\AdminServe
    r\logs\AdminServer.log is opened. All server side log events will be written to
    this file.>
    <2012-mar-02 kl 21:14 CET> <Notice> <Security> <BEA-090082> <Security initializi
    ng using security realm myrealm.>
    <2012-mar-02 kl 21:14 CET> <Warning> <oracle.as.jmx.framework.MessageLocalizatio
    nHelper> <J2EE JMX-46041> <The resource for bundle "oracle.jrf.i18n.MBeanMessage
    Bundle" with key "oracle.jrf.JRFServiceMBean.checkIfJRFAppliedOnMutipleTargets"
    cannot be found.>
    <2012-mar-02 kl 21:14 CET> <Notice> <WebLogicServer> <BEA-000365> <Server state
    changed to STANDBY>
    <2012-mar-02 kl 21:14 CET> <Notice> <WebLogicServer> <BEA-000365> <Server state
    changed to STARTING>
    <2012-mar-02 kl 21:15 CET> <Critical> <JTA> <BEA-110482> <A logging last resourc
    e failed during initialization. The server cannot boot unless all configured log
    ging last resources (LLRs) initialize. Failing reason:
    weblogic.common.resourcepool.ResourceSystemException: Cannot load driver class:
    org.apache.derby.jdbc.ClientDriver
    weblogic.common.resourcepool.ResourceSystemException: Cannot load driver class:
    org.apache.derby.jdbc.ClientDriver
    at weblogic.jdbc.common.internal.JDBCUtil.parseException(JDBCUtil.java:3
    01)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.loadDriver(Connect
    ionEnvFactory.java:75)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.<init>(ConnectionE
    nvFactory.java:131)
    at weblogic.jdbc.common.internal.ConnectionPool.initPooledResourceFactor
    y(ConnectionPool.java:712)
    at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.
    java:235)
    Truncated. see log file for complete stacktrace
    >
    <2012-mar-02 kl 21:15 CET> <Error> <Deployer> <BEA-149205> <Failed to initialize
    the application 'wlsbjmsrpDataSource' due to error weblogic.application.ModuleE
    xception: .
    weblogic.application.ModuleException:
    at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:302)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(Modu
    leListenerInvoker.java:199)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(Depl
    oymentCallbackFlow.java:517)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
    river.java:52)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(Dep
    loymentCallbackFlow.java:159)
    Truncated. see log file for complete stacktrace
    Caused By: weblogic.common.resourcepool.ResourceSystemException: Cannot load dri
    ver class: org.apache.derby.jdbc.ClientDriver
    at weblogic.jdbc.common.internal.JDBCUtil.parseException(JDBCUtil.java:3
    01)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.loadDriver(Connect
    ionEnvFactory.java:75)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.<init>(ConnectionE
    nvFactory.java:131)
    at weblogic.jdbc.common.internal.ConnectionPool.initPooledResourceFactor
    y(ConnectionPool.java:712)
    at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.
    java:235)
    Truncated. see log file for complete stacktrace
    >
    <2012-mar-02 kl 21:16 CET> <Alert> <OSB Security> <BEA-387068> <There is no PKI
    credential mapper provider configured in your security realm. Service key provid
    er management will be disabled. Configure a PKI credential mapper provider if yo
    u need service provider support. This is typically the case if you have Oracle S
    ervice Bus proxy services with web service security enabled or outbound 2-way SS
    L connections.>
    <2012-mar-02 kl 21:16 CET> <Warning> <Coherence> <BEA-000000> <Oracle Coherence
    3.6.0.4 (member=n/a): Local address "127.0.0.1" is a loopback address; this clus
    ter node will not connect to nodes located on different machines>
    <2012-mar-02 kl 21:17 CET> <Warning> <J2EE> <BEA-160140> <Unresolved optional pa
    ckage references (in META-INF/MANIFEST.MF): [Extension-Name: oracle.applcore.mod
    el, Specification-Version: 0.1, Implementation-Version: 11.1.1.0.0, referenced f
    rom: C:\Oracle\Middleware\user_projects\domains\base_domain\servers\AdminServer\
    tmp\_WL_user\usermessagingserver\a7bt7z]. Make sure the referenced optional pack
    age has been deployed as a library

    Hi:
    try placing the jars that represent ur driver, here
    For both Windows and Linux, you must perform the following steps:
    Drop the vendor-specific driver JAR files to the user_projects/domains/soainfra/lib directory.
    Drop the vendor-specific driver JAR files to the <Weblogic_Home>/server/lib.
    Edit the classpath to include the vendor-specific jar file in <Weblogic_HOME>/common/bin/commEnv.sh
    This info was copied, from here: http://docs.oracle.com/cd/E21764_01/integration.1111/e10231/adptr_db.htm#CHDBEJDC
    Hope this helps
    best

  • Enable SSL between oracle JDBC Connection in weblogic server.

    Hi ALL,
    I have an requirement to enable SSL Mechanism in weblogic JDBC Connection Pool.we are using Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production and Driver as "jdbc:oracle:thin@..." / oracle.jdbc.OracleDriver.
    weblogic server 8.1 SP4
    can anybody know what are the steps / configuration has to be done for enable Oracle Advanced Security encryption on the JDBC Oracle Thin driver with a WebLogic JDBC Connection Pool.
    Thanks,
    Karthik,

    Hi,
    I changed the code as given below. Still getting the same error. Can I migrate my question to jdbc section? I am new to this forum.
    import java.sql.*;
    public class jdbc {
    public static void main(String[] args) throws ClassNotFoundException, SQLException
    Class.forName("oracle.jdbc.driver.OracleDriver");
    String url = "jdbc:oracle:thin:@localhost:1521:xe";
    Connection conn =
    DriverManager.getConnection(url,"jestin","jj");
    conn.setAutoCommit(false);
    Statement stmt = conn.createStatement();
    ResultSet rset =
    stmt.executeQuery("select BANNER from SYS.V_$VERSION");
    while (rset.next()) {
    System.out.println (rset.getString(1));
    stmt.close();
    System.out.println ("Ok.");
    jestinjoy@debian:~/java$ javac -classpath /usr/lib/java/ jdbc.java
    jestinjoy@debian:~/java$ java jdbc
    Exception in thread "main" java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:169)
         at jdbc.main(jdbc.java:7)
    same error when I give the command without classpath

  • Is it possible to set JDBC  Driver CharacterSet

    HI,
    I'm trying to learn how the data conversion is being handled in oracle (ii.e, I wanted to check the behaviour by keeping orai18n.jar & removing it). My database character set is WE8ISO8859P1, and I would like to change different client side character sets & do some R&D related to my application.
    So I want to know ....
    ->if we can set JDBC Driver Character set in any way.
    ->Is setting client character set is what is setting driver character set??
    We are using Oracle 10g and getting connections using Datsource. When I try to get the driver character set using oracle.jdbc.driver.OracleConnection.getJdbcCsId(), it returns 31 (which is WE8ISO8859P1).But I didn't find any setter..or similar method.
    I'm new to this Globalization thing.... so sorry if I'm asking dumb questions.... Could any one help me in this regard?? .
    Thanks,

    JDBC is not designed to support the notion of a driver character set. Any text data should be retrieved using ResultSet.getString() method and passed to the database using PreparedStatement.setString() method - except for CLOBs, which also accept Unicode character streams. These methods expect string data in Java Unicode encoding (UTF-16). If you need to output this data from an application is some other encoding, you should use standard Java conversion mechanisms - e.g. String.getBytes(charset) or new PrintWriter(file,charset).
    The driver character set is an internal setting relevant for intermediate character set conversions between the driver and the database. It is determined automatically by the driver based on the database character set. The method oracle.jdbc.driver.OracleConnection.getJdbcCsId() is undocumented and should not be used.
    -- Sergiusz

  • Jbuilder & weblogic.jdbc.mssqlserver4.Driver

    I use jbuilder8 and jdbc driver " weblogic.jdbc.mssqlserver4.Driver " to connect mssql2000..
    when I use database pilot of jbuilder8 to setup a datasource..
    I got an error Error " connecting to database: java.lang.NoClassDefFoundError: weblogic/version "
    what should I do now ?..

    Do you have weblogic.jar in your CLASSPATH?
    "owner" <[email protected]> wrote in message news:[email protected]..
    I use jbuilder8 and jdbc driver " weblogic.jdbc.mssqlserver4.Driver " to connect mssql2000..
    when I use database pilot of jbuilder8 to setup a datasource..
    I got an error Error " connecting to database: java.lang.NoClassDefFoundError: weblogic/version "
    what should I do now ?..

Maybe you are looking for

  • Macbook pro 13" mid 2010 power issues

    Hello I recently obtained a macbook pro 13" model from mid 2010. The macbook was in a poor state but I got it working again. Parts that have been replaced: -harddrive: I had to buy a new harddrive so I bought an intel SSD. -the mac os x was not prese

  • How to Create a View of a Query and assign it into my web template?

    Hi All, I need to create 3 views for my query and show that on my web template. I have never done this before. Can you please let me know step-by step procedure to create views for a query and how to show it on my WAD report? Thanks, Satyam

  • Unicode error in web dynpro

    Dear all, I'm facing a strange problem. This morning my WD worked well. I changed my specific table used in the WD (added new fields). My context is on this table. I update all my views with this context. I have 2 methods which used the specific tabl

  • Im having problems importing prores files at correct frame rate

    im having problems importing prores files at correct frame rate. they have been converted to prores at 25fps but on importing they appear in fcp as 30fps. any help would be appreciated.

  • Never works the same way twice....except when it doesn't work

    For the love of budda!!!! I just want to drop a file into a folder, have it make a copy to a different folder, move the origional to a third folder and rename. It works....and then it doesn't. It works every time the first time. after that, automator