How to make a connection pools to oracle 10g in sun application server 8

env:
windows xp.
sun application server 8
oracle 10g in windows xp .
I do this
1: copy the oracle jdbc ojdbc14.jar orai18n.jar file to sun/appserver/lib
2. add path in admin console
3. restart the server
4. make a connnect pools with resource type javax.sql.DataSource
5.add properties with password,username ,database name= jdbc:oracle:thin:@127.0.0.1:1521:orcl ,(with this url ,my jdbc program can connect oracle10).
6 .try the ping , it show Operation 'pingConnectionPool' failed in 'resources' Config Mbean. Target exception message: Connection could not be allocated because: 指定了无效的(direct to unusale) Oracle URL: OracleDataSource.makeURL
please replay to me ,thank very much.

I change the thin driver to oci driver ,jdbc:oracle:oci:@orcl ,then fix the problem.

Similar Messages

  • Need ACES attention - connection pooling in oracle 10g rel 1

    I am using TOMCAT 5.0.19 Webserver and ORACLE 10g REL 1 as the database server. I have to restart the TOMCAT Webserver in order to establish connection atleast twice or thrice in a weak. Why I am unable to see the connection pooling in oracle 10g rel 1. How to revive or establish the setup. My objective is to have a centralised oracle 10g rel 1 database server and the applications of java are run thru centralised Webserver Tomcat 5.0.19.
    Can anyone please help me out optimizing the design setup.
    Regards
    Vijay Kumar

    by putting 'Need ACES' in your post title, you might have actually reduced the number of people reading your post, in other words someone >who might have suggested Thanks John for your reply. I changed the subject of the thread after not getting any reply for past 10 days. Last two days I have been updating with plea for attention to my problem. Finally I thought pulling attention of ACES, then only I edited the subject.
    Now, problem I am facing is not in oracle database but in application server. Actually we are running web applications thru Tomcat accessing Oracle 10g rel 1. I am often losing connection with web server. The users are unable to login in the web application. I was told to check oracle database server. I just checked alert log and found no errors. I just asked them to shutdown and restart the web server Tomcat 5.0. It then worked fine. This is temporary. I need to ensure where the problem is. Could you please guide me in checking various parameters or files to be checked to optimise connection pooling.
    Regards
    Vijay Kumar

  • How can I call a Stateless-EJB3  from MBeans in Sun Application Server 9.1?

    Hi,
    I have some jobs running as Timer-Service-EJB in Sun Application Server 9.1. The Timer will be startet by a Lifecycle-Modul and it works fine.
    I have also some MBeans running in the same App-Server which should start or stop the Timer-Services by invoking dedicated methods
    in the Timer-Service-EJB.
    InitialContext ctx = new InitialContext();
    MyJob job = (MyJob) ctx.lookup("ejb/MyJob");
    job.startTimer();But I get the following error;
    javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.enterprise.naming.SerialInitContextFactory [Root exception is java.lang.ClassNotFoundException: com.sun.enterprise.naming.SerialInitContextFactory]
    ..... Why is it impossible to get an reference of the SerialInitContextFactory? The appserv-rt.jar is in the classpath of the Appserver ( installdir/lib ).
    Following the Sun Application Server 9.1 Developer Guide, I tried to copy the dependent classes (including appserv-rt.jar ) into domain-dir/lib.
    But I got the same error.
    Any ideas?
    Thanks,
    Stefan

    Hi Santanu,
    You need to write SoapHandler in order to pass username and pwd. You will need 2 classes namely HeaderHandlerResolver & SoapHandler. This is how i do in in my JAX-WS clients. I generate stubs and then attach handler to webserviceinterface
    PFA HeaderHandlerResolver.java and SoapHandler.java you would attach soap handler something like this in your code i have never done this via ADF so not sure.
    HeaderHandlerResolver soapHandlerResolver = new HeaderHandlerResolver();
    docInfo.setHandlerResolver(soapHandlerResolver);
    In SoapHandler class you will mention username and pwd like this
    soapMessageContext.put(BindingProvider.USERNAME_PROPERTY,"username");
    soapMessageContext.put(BindingProvider.PASSWORD_PROPERTY,"pwd");
    Regards,
    Amol Gavali

  • Help Please: How to make a connection pool with mySQL

    Hi,
    I am learning the example codes shipped with weblogic server, which is under ...samples\examples\ejb20\basic\beanManaged. The original connection pool was on cloudscape. I was trying to modify it and make it connect to mySQL.
    In ejb-jar.xml and weblogic-ejb-jar.xml, I replaced "demopool" (which was the original pool name) with "demopool1".
    After starting the server, I tried to configure a new connection pool as following:
    Name: demopool1
    URL: jdbc:mysql:///test
    Driver Classname: org.gjt.mm.mysql.Driver
    Properties
    (key=value): user=none
    server=none
    But I got the following errors:
    <2007-10-5 ??06?30?09?> <Error> <JDBC> <Cannot startup connection pool "demopool1" Cannot load driver class: org.gjt.mm.mysql.Driver>
    What should I do to let the server find the Driver?
    Thanks a lot.

    Hong Qu wrote:
    Thank you Joe,
    I added the jar file location to the startExampleServer script. But when I tried to configure the Tx Data Sources from the console, I got the following error:
    <2007-10-5 ??08?35?17?> <Notice> <WebLogicServer> <Started WebLogic Admin Server "examplesServer" for domain "examples" running in Development Mode>
    setEntityContext called
    ejbFindByPrimaryKey (ID: 0)
    Failed to lookup JDBC Datasource. Please double check that
    the JNDI name defined in the resource-description of the
    EJB's weblogic-ejb-jar.xml file is the same as the JNDI name
    for the Datasource defined in your config.xml.
    <2007-10-5 ??08?38?16?> <Error> <JDBC> <Error during Data Source creation:
    weblogic.common.ResourceException: DataSource(examples-dataSource-demoPool1)
    can't be created with non-existent Pool (connection or multi) (demoPool1)>>
    Do you know where is wrong?
    Another problem is the connection method in AccountBean.java:
    private Connection getConnection()
    throws SQLException
    InitialContext initCtx = null;
    try {
    initCtx = new InitialContext();
    DataSource ds = (javax.sql.DataSource)
    initCtx.lookup("java:comp/env/jdbc/demoPool");First verify from the console that a pool 'demoPool1' exists and
    that you can test it from the console. Then find the DataSource
    you associated with that pool. For an EJB I would suggest a
    TxDataSource. You defined some JNDI name for the DataSource. Use
    that name in the lookup. For instance, if your DataSource's
    JNDI name is 'MyDataSource', the code should do this:
    DataSource ds = (javax.sql.DataSource)
    initCtx.lookup("MyDataSource");
    return ds.getConnection();
    } catch(NamingException ne) {
    log("Failed to lookup JDBC Datasource. Please double check that");
    log("the JNDI name defined in the resource-description of the ");
    log("EJB's weblogic-ejb-jar.xml file is the same as the JNDI name ");
    log("for the Datasource defined in your config.xml.");
    throw new EJBException(ne);
    } finally {
    try {
    if(initCtx != null) initCtx.close();
    } catch(NamingException ne) {
    log("Error closing context: " + ne);
    throw new EJBException(ne);
    I couldn't figure out what "java:comp/env/jdbc/demoPool" was related, so I just replaced "demopool" with "demopool1". Do you konw what "comp/env/jdbc" mean? Is it a location?
    Thank you so much.
    Iris

  • Creating a connection pool using Oracle 10g, Sun ONE Application Serve 8.1

    Has any one succesfully configured Oracle 10g to work with Sun ONE Application Server 8.1 on Windows 2000 server service pack 4? I am embarking on a new J2EE project and I need to configure it as soon as possible.

    I haven't done it myself on that particular service pack, but I don't see why it should be any different than configuring a connection pool on other vanilla win2k/other OSes.
    Would you please try and let this forum know?
    thanks.

  • In Oracle 10g, iSQL* Plus Application Server is not starting

    I have Windows XP OS, installed Oracle 10g.
    But Finally OracleOraDb10g_home1iSQL*Plus is not starting.
    I had looked in windows services OracleOraDb10g_home1iSQL*Plus status is in Starting. Not Starting
    How to solve this problem, Because two or three client systems want to access this oracle iSQL*Plus through browser.
    Not Working

    I Tried this:
    C:\oracle\product\10.1.0\db_1>%ORACLE_HOME%\jdk\bin\java.exe -Djava.awt.headless
    =true -Xrs -Doracle.oc4j.localhome=%ORACLE_HOME%\sqlplus -Djava.security.propert
    ies=%ORACLE_HOME%\oc4j\j2ee\home\config\jazn.security.props -jar %ORACLE_HOME%\o
    c4j\j2ee\home\oc4j.jar -config %ORACLE_HOME%\oc4j\j2ee\isqlplus\config\server.xm
    l
    05/11/20 12:49:54 Copying default deployment descriptor from archive at C:\oracl
    e\product\10.1.0\db_1\oc4j\j2ee\oc4j_applications\applications\isqlplus/META-INF
    /orion-application.xml to deployment directory C:\oracle\product\10.1.0\db_1\oc4
    j\j2ee\isqlplus\application-deployments\isqlplus...
    05/11/20 12:49:54 Auto-deploying isqlplushelp (New server version detected)...
    05/11/20 12:49:55 Auto-deploying file:/C:/oracle/product/10.1.0/db_1/oc4j/j2ee/h
    ome/applications/dms0/ (New server version detected)...
    05/11/20 12:49:55 Auto-deploying file:/C:/oracle/product/10.1.0/db_1/oc4j/j2ee/h
    ome/default-web-app/ (New server version detected)...
    05/11/20 12:49:55 Auto-deploying file:/C:/oracle/product/10.1.0/db_1/oc4j/j2ee/h
    ome/applications/dms/ (New server version detected)...
    05/11/20 12:49:55 Copying default deployment descriptor from archive at C:\oracl
    e\product\10.1.0\db_1\oc4j\j2ee\oc4j_applications\applications\isqlplus\isqlplus
    /WEB-INF/orion-web.xml to deployment directory C:\oracle\product\10.1.0\db_1\oc4
    j\j2ee\isqlplus\application-deployments\isqlplus\isqlplus...
    05/11/20 12:49:55 Auto-deploying iSQL*Plus (New server version detected)...
    05/11/20 12:49:55 Auto-deploying file:/C:/oracle/product/10.1.0/db_1/oc4j/j2ee/o
    c4j_applications/applications/isqlplushelp/isqlplushelp/ (New server version det
    ected)...
    05/11/20 12:50:00 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)
    initialized
    what happened means for 15 minutes, it does not process itself. So i gave
    ^C
    Still It is not started

  • How to create a connection pooling in Netbeans 6.0 using the oracle driver

    hi all,
    I am using Netbeans 6.0. Apache Tomcat 6.0.14 server, oracle 9i.
    I tried to create a connection pooling using tomcat web server.
    I have included the following code in context.xml and web.xml.
    CONTEXT.XML:
    <?xml version="1.0" encoding="UTF-8"?>
    <Context path="/network1">
    <Resource name="jdbc/myoracle"
    auth="Container"
    type="javax.sql.DataSource"
    username="scott"
    password="tiger"
    factory="BasicDataSourceFactory"
    driverClassName="oracle.jdbc.OracleDriver"
    url="jdbc:odbc:thin:@127.0.0.1:1521:mydb"
    maxActive="20"
    maxIdle="10"
    maxwait="-1"/>
    </Context>
    WEB.XML:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
    <session-config>
    <session-timeout>
    30
    </session-timeout>
    </session-config>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    <resource-ref>
    <description>Oracle Datasource example</description>
    <res-ref-name>jdbc/myoracle</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    </web-app>
    After that i have included the following JDBC driver's jar files in the $Catalina_Home/lib folder.
    classes 111.jar,
    classes 111_g.jar
    classes12.jar
    classes 12_g.jar
    classes12dms.jar
    classes12dms_g.jar
    nls_charset11.jar
    nls_charset12.jar
    ocrs12.jar
    ojdbc14.jar
    ojdbc14_g.jar
    Then i stop the tomcat web server and start it again.
    In jsp page i have included the following code:
    Context ctx=new InitialContext();
    Context envctx=(Context)ctx.lookup("java:comp:env");
    DataSource ds=(DataSource)envctx.lookup("jdbc/myoracle");
    Connection con=ds.getConnection(); ----->(In this line an error occured that Connection class cannot be found.)
    please help me how to create a connection pooling and rectify the error in conneciton.
    Thanks in advance

    Please refer
    http://www.netbeans.org/kb/60/web/customer-book.html

  • How To create Connection Pooling in Oracle 10.1.2.0 Application Server

    Hi,
    How to create Conncetion Pooling in Oracle 10g Application Server. I am using 10.1.2.0 version.
    Thanx
    Dhans

    Hi,
    How about these tutorials?
    http://www.oracle.com/technology/tech/java/newsletter/articles/oc4j_data_sources/oc4j_ds.htm
    http://www.oracle.com/technology/products/jdev/tips/duff/mysql_and_oc4j3.html

  • How to use JDBC Connection Pools in a standalone application?

    Hi, there,
    I have a question about how to use JDBC Connection Pools in an application. I know well about connection pool itself, but I am not quite sure how to keep the pool management object alive all the time to avoid being destroyed by garbage collection.
    for example, at the website: http://www.developer.com/java/other/article.php/626291, there is a simple connection pool implementation. there are three classes:JDBCConnection, the application's gateway to the database; JDBCConnectionImpl, the real class/object to provide connection; and JDBCPool, the management class to manage connection pool composed by JDBCConnectionImpl. JDBCPool is designed by Singleton pattern to make sure only one instance. supposing there is only one client to use connection for many times, I guess it's ok because this client first needs instantiate JDBCPool and JDBCConnectionImpl and then will hold the reference to JDBCPool all the time. but how about many clients want to use this JDBCPool? supposing client1 finishes using JDBCPool and quits, then JDBCPool will be destroyed by garbage collection since there is no reference to it, also all the connections of JDBCConnectionImpl in this pool will be destroyed too. that means the next client needs recreate pool and connections! so my question is that if there is a way to keep pool management instance alive all the time to provide connection to any client at any time. I guess maybe I can set the pool management class as daemon thread to solve this problem, but I am not quite sure. besides, there is some other problems about daemon thread, for example, how to make sure there is only one daemon instance? how to quit it gracefully? because once the whole application quits, the daemon thread also quits by force. in that case, all the connections in the pool won't get chance to close.
    I know there is another solution by JNDI if we develop servlet application. Tomcat provides an easy way to setup JNDI database pooling source that is available to JSP and Servlet. but how about a standalone application? I mean there is no JNDI service provider. it seems a good solution to combine Commons DBCP with JNID or Apache's Naming (http://jakarta.apache.org/commons/dbcp/index.html). but still, I don't know how to keep pool management instance alive all the time. once we create a JNDI enviroment or naming, if it will save in the memory automatically all the time? or we must implement it as a daemon thread?
    any hint will be great apprieciated!
    Sam

    To my knoledge the pool management instance stays alive as long as the pool is alive. What you have to figure out is how to keep a reference to it if you need to later access it.

  • Can I create connection pool by oracle oci driver?

    Can I create connection pool by oracle oci driver?My weblogic's version is 6.1 sp2 and oracle is 9.0.1.2.
    I have some trouble with connection pool created by weblogic jDriver.
    I try to read Timestamp from table and I always get the exception.It told me that ORA-00932: inconsistent datatypes.
    So I created another pool by oracle thin driver and everything was right.Then I created other pool by oracle oci driver,but something were wrong. 'Could not create pool connection. The DBMS driver exception was:java.sql.SQLException: ORA-06401: NETCMN:Invalid driver designator'
    The oci pool's parameters are below lines.
    url: jdbc:oracle:oci:@COCO
    Driver Classname: oracle.jdbc.driver.OracleDriver
    Properties: user=scott;password=tiger;protocol=oci
    If I get connection directly,don't use connection pool,I can get right connection.But why didn't I create pool by oci driver?Maybe weblogic7 or weblogic8 will work good?

    Venkat Amirineni wrote:
    Hi Joe,
    I am also trying to create a connection pool using Oracle Oci XA. Weblogic
    type 2 oci threads hanging on native calls and suggested to go for thin drivers.
    But we want to try with Oracle Oci drivers.. Can you please tell us how to
    create a conn pool using Oracle Oci.. Just the driverclass and url is enough
    or need any classpath settings etc..
    Thanks in advance for your quick reply.Hi. As far as driver properties, just use what Oracle says to. Any pool properties
    that we recommend for XA would still apply. Note that Oracle themselves recommends
    the thin driver over their OCI one:
    http://download-west.oracle.com/docs/cd/B14117_01/java.101/b10979.pdf
    Joe

  • How to configure informix connection pool in sun-one appserver 7

    Hello,
    Anybody knows , How to configure informix connection pool properties in sun-one appserver 7?
    Thanks in advance.

    Actually,it couldn't get some advice in here.But now,I known how to configure it,I expended 2 days to search and test it.Follow :
    jdbc class:com.informix.jdbcx.IfxDataSource
    serverName=(INFORMIXSERVER)
    portNumber=1526(default)
    IfxIFXHOST=(host ip)
    databaseName=(your dbname)
    user=(your username)
    password=(your pwd)
    attention:configure right transaction and userthreads in your informix sever
    Hope helpful to someone!

  • Help in creating the connection pool  for Oracle 8i using Jdriver

    Hi
    Iam pretty new to Weblogic and would be greatfull if some one can help me
    out in finding the parameters to be specified in Weblogic console for creating
    a Connection pool for Oracle 8i database running on solaris. I have installed
    necessary client libraries in weblogic machine.
    The details for my database are as follows
    database name : mydb
    database server : 173.24.24.1
    database port : 1521
    username : myuser
    I would appreciate if you can provide me the following details to be entered in
    weblogic console for creating the connection pool
    URL
    DRIVER CLASS NAME
    PROPERTIES
    ACL NAME
    PASSWORD
    Thanks,
    S Hari

    Hari
    Jdbc Connection Pool Configuration
    URL= jdbc:weblogic:oracle
    DRIVER CLASS NAME=weblogic.jdbc.oci.Driver
    PROPERTIES
    user=myuser
    password=<password in mydb>
    server=mydb
    After configuring Connection Pool Select Targets tab. Select Server from Available
    to Chosen.
    Deepak
    Hari wrote:
    Hi
    Iam pretty new to Weblogic and would be greatfull if some one can help me
    out in finding the parameters to be specified in Weblogic console for creating
    a Connection pool for Oracle 8i database running on solaris. I have installed
    necessary client libraries in weblogic machine.
    The details for my database are as follows
    database name : mydb
    database server : 173.24.24.1
    database port : 1521
    username : myuser
    I would appreciate if you can provide me the following details to be entered in
    weblogic console for creating the connection pool
    URL
    DRIVER CLASS NAME
    PROPERTIES
    ACL NAME
    PASSWORD
    Thanks,
    S Hari

  • Unable create Connection pool for Oracle apps Adapter.

    Hi All,
    We are trying to create a connection pool for Oracle Apps adapter in 11G SOA suite.
    However during the process getting the following error:
    An error occurred during activation of changes, please see the log for details.
    A <jndi-name> is specified for the resource adapter bean in weblogic-ra.xml, however no <resourceadapter-class> element is specified in ra.xml
    Can any one help us on this.
    Thanks
    Parker.

    Please refer section "Configuring Connection Information" at below link -
    http://download.oracle.com/docs/cd/E17904_01/integration.1111/e10537/T430238T430340.htm#T464886
    Regards,
    Anuj

  • Find how many users are connected in the Oracle Server

    Hi,
    I am using Oracle 10g. My question is, is it possible to find how many users are connected in the Oracle Server. We are having one Server and we are having many client machines which will connect the Oracle.
    And one more question in the meanwhile i want to take Backup of one database which client as connected. Is it get any problem to the client machine which is accessing the server. And How to take the backup from the server machine. Any commands to process.
    Thank u...!

    Hi there.
    If You run
    select count(*) from v$session where username is not null;you'll get the number of users connected to Oracle server,
    and yes , you could do backup while users are connect to db you are backing up.
    cheers

  • Steps to create Connection pool for Oracle apps Adapter.

    Hi All,
    Could please tel me the steps to create connection pool for Oracle Apps Adapter.
    Thanks,
    Parker

    Steps are given in section "Configuring Connection Information" in Apps Adapter User guide at below link -
    http://download.oracle.com/docs/cd/E17904_01/integration.1111/e10537/T430238T430340.htm#T464886
    Regards,
    Anuj

Maybe you are looking for

  • Computer freezes -- PLEASE HELP

    Each time a new song starts on my iTunes, about 10 seconds into the song my memory usage for iTunes will shoot up from 53,000K to 85,000K and will cause everything I am doing on my computer to freeze up for about 5-10 seconds. Like I said, this happe

  • Iphoto crashes when importing to library

    I can import photos from cameras and iphone no problem but whenever i try to import from a memory stick using 'File - import to library' iphoto crashes.  I cannot find 3ivx file/folder on my computer which was suggested may cause the problem.  Any id

  • How to manually write log file when tranform xslt by using Transformer?

    I want to ask experts that are there any way to write the information(such as template name or number of template used) into log file while performing transformation with javax.xml.transform.Transformer. Below is my sample code import javax.xml.trans

  • Creation Of Project in ESS !

    HI Experts  ,    I Have a question on creation of Project from ESS track. We are supposed to do some changes in Address application of ESS portal. I was able to create the project and do few changes. I did changes and build and deploy , followed all

  • Quicktime audio file to CD for playing on a CD Player can you help

    I have a quicktime audio file (which seems to show as a movie?) which I have on my desktop.  I want to burn it to a CD so that my uni tutor can listen to it on a CD player.  Can you help.  I get all the way to the burn thing in disk utilities, but it