Configure j2ee to support oracle9 database using jndi

how to configure j2ee1.3.1 to support access to oracle9 data base using jndi
i'm using a java bean to access an oracle9 data base,this snippet is written in the bean:
public connexionBD() Throws SQLException{
String dbName "java:com/env/jdbc/connexionBD";
DataSource ds=(DataSource)InitialContext().lookup(dbName);
Connection con =ds.getConnection("system","manager");
when i try to access the .jsp page that uses this javabeans the SQLException is thrown
I think it's a server configuration problem.
Knowing that the classpath and .jar files are configured, Can you help me resolve this problem
Thank you

These sections from the J2EE 1.4 platform sepc should hopefully help you understand java:comp/env.
J2EE.5.2.1.1 Access to Application Component s Environment An application component instance locates the environment naming context using the JNDI interfaces. An instance creates a javax.naming.InitialContext object by using the constructor with no arguments, and looks up the naming environment via the InitialContext under the name java:comp/env. The application component s environment entries are stored directly in the environment naming context, or in its direct or indirect subcontexts. Java Naming and Directory Interface" (JNDI) Naming Context 61 Environment entries have the Java programming language type declared by the Application Component Provider in the deployment descriptor. The following code example illustrates how an application component accesses its environment entries. public void setTaxInfo(int numberOfExemptions,...) throws InvalidNumberOfExemptionsException { ... // Obtain the application component s // environment naming context. Context initCtx = new InitialContext(); Context myEnv = (Context)initCtx.lookup( java:comp/env ); // Obtain the maximum number of tax exemptions // configured by the Deployer. Integer max = (Integer)myEnv.lookup( maxExemptions ); // Obtain the minimum number of tax exemptions // configured by the Deployer. Integer min = (Integer)myEnv.lookup( minExemptions ); // Use the environment entries to // customize business logic. if (numberOfExemptions > max.intValue() || numberOfExemptions < min.intValue()) throw new InvalidNumberOfExemptionsException(); // Get some more environment entries. These environment // entries are stored in subcontexts. String val1 = (String)myEnv.lookup( foo/name1 ); Boolean val2 = (Boolean)myEnv.lookup( foo/bar/name2 ); // The application component can also // lookup using full pathnames. Integer val3 = (Integer)initCtx.lookup( java:comp/env/name3 ); Integer val4 = (Integer)initCtx.lookup( java:comp/env/foo/name4 ); ... }
J2EE.5.2.4 J2EE Product Provider s Responsibilities The J2EE Product Provider has the following responsibilities: NAMING 64 " Provide a deployment tool that allows the Deployer to set and modify the values of the application component s environment entries. " Implement the java:comp/env environment naming context, and provide it to the application component instances at runtime. The naming context must include all the environment entries declared by the Application Component Provider, with their values supplied in the deployment descriptor or set by the Deployer. The environment naming context must allow the Deployer to create subcontexts if they are needed by an application component.

Similar Messages

  • Servlet with Issues writing to MySQL Database using JNDI

    I'm hung on one servlet for my site. It compiles fine, and is accessed fine by the JSP, but doesn't do as I intended: write my blog entries to the MySQL database!
    As mentioned in the title, I'm using JNDI for connection pooling, via META-INF/context.xml.
    I'm also using JDBC Realm with a form, and that's working just fine, so I'm sure my issue isn't context.xml, as it seems to be overriding Tomcat's context file just fine, at least for authentication.
    Below is the code from the servlet, to include the annotations:
    package projectEgress.web.blog;
    import java.io.*;
    import java.text.*;
    import java.sql.*;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.sql.*;
    public final class blogInput {
         /* bean properties */
        private String blogHeader;
        private String blogSubheader;
        private String blogBody;
        private String externalLinks;
        Connection conn;
        Statement stmt;
            /* getters & setters */
            public String getBlogHeader() {
                return blogHeader;
            public void setBlogHeader(String blogHeader) {
                this.blogHeader = blogHeader;
            public String getBlogSubheader() {
                return blogSubheader;
            public void setBlogSubheader(String blogSubheader) {
                this.blogSubheader = blogSubheader;
            public String getBlogBody() {
                return blogBody;
            public void setBlogBody(String blogBody) {
                this.blogBody = blogBody;
            public String getExternalLinks() {
                return externalLinks;
            public void setExternalLinks(String externalLinks) {
                this.externalLinks = externalLinks;
            /* like it says, a void which writes to the database */
            public void writeToDatabase() {
                /* create the query string to fill the table */
                String query = "insert into blogEntry (blogHeader, blogSubheader, blogBody, externalLinks) values (\"" + this.blogHeader + "\", \"" + this.blogSubheader + "\", \"" + this.blogBody + "\", \""  + this.externalLinks + "\")";
                try {
                    /*establish the datasource and make the connection */
                    Context ctxt =  new InitialContext();
                    DataSource dsrc = (DataSource)ctxt.lookup("java:comp/env/jdbc/projectEgress");
                    conn = dsrc.getConnection();
                    stmt = conn.createStatement();
                    /* Add data to table 'blogEntry' in our database */
                    int input = stmt.executeUpdate(query);
                    /* close the connections */
                    stmt.close();
                    conn.close();
                    /* check for exceptions, ensure connections are closed */
                    } catch (SQLException sqlx) {
                        sqlx.printStackTrace();
                    } catch (Exception ex) {
                        ex.printStackTrace();
                    } finally {
                        if (stmt != null) {
                            try {
                                stmt.close();
                        } catch (SQLException sqlx) {}
                        if (conn != null) {
                            try {
                                conn.close();
                        } catch (SQLException sqlx) {}
            Here are the settings I have in META-INF/context.xml (sans Realm stuff, which works):
    <Context debug="1" reloadable="true">
        <Resource name="jdbc/projectEgress"
            auth="Container"
            type="javax.sql.DataSource"
            username="********"
            password="********"
            driverClassName="com.mysql.jdbc.Driver"
            url="jdbc:mysql://localhost:3306/projectEgress?autoReconnect=true"
            validationQuery="select 1"
            maxActive="15"
            maxIdle="8"
            removeAbandoned="true"
            removeAbandonedTimeout="120" />
        <WatchedResource>WEB-INF/web.xml</WatchedResource>
        <WatchedResource>META-INF/context.xml</WatchedResource>
    </Context>And, finally, the code I'm using in the JSP which calls the method (the form action is directed to this file's URL):
        <jsp:useBean id="blogInput" class="projectEgress.web.blog.blogInput">
        <jsp:setProperty name="blogInput" property="*" />
            <jsp:scriptlet>blogInput.writeToDatabase();</jsp:scriptlet>
        </jsp:useBean>
        -YES, I know I'm using a scriptlet in a JSP... I really don't want to create a custom tag to call the method, at least not until I'm far along enough in the project to justify creating a library... let's make it all work, first! :o)
    FINALLY, the form:
    <form action="/projectEgress/area51/blogInput" method="post" id="adminForm" enctype="application/x-www-form-urlencoded">
         <div>
            <span class="inputheader">Blog Header</span><br />
          <input type="text" name="blogHeader" size="35" class="form" /><br />
            <span class="inputheader">Blog SubHeader</span><br />
          <input type="text" name="blogSubheader" size="45" class="form" /><br />
            <span class="inputheader">Blog Body</span><br />
          <textarea class="content" name="blogBody" rows="9" cols="60"></textarea><br />
            <span class="inputheader">External Links</span><br />
          <input type="text" name="externalLinks" size="45" class="form" /><br />
          <input type="submit" value="Post!" class="submit" />
         </div>
        </form>As far as I can tell, it should work, and it doesn't throw any errors (in fact it shows the success message rather than the configured error page), but when I check the blogEntry table from the MySQL prompt, it responds with "Empty set".
    I've double checked to ensure that the table columns are present in MySQL and all the naming conventions line up and they do, so I figure it's my servlet that's broken.
    Advice? Ideas?
    Thanks in advance.
    Edited by: -Antonio on Apr 25, 2008 8:03 PM with additional info

    Okay, I changed a few things in the servlet code.
    For one, I'm trying a PreparedStatement in place of Statement. Don't ask me what made me think it would work any better, it just stores the sql query in cache, but I thought I'd just try something else.
    One thing this is allowing me to do is make the connection and statement (now PreparedStatement pStmt) objects local variables. It wouldn't allow me to do so before without giving me compile errors.
    package projectEgress.web.blog;
    import java.io.*;
    import java.text.*;
    import java.sql.*;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.sql.*;
    public final class blogInput {
         /* bean properties */
        private String blogHeader;
        private String blogSubheader;
        private String blogBody;
        private String externalLinks;
            /* getters & setters */
            public String getBlogHeader() {
                return blogHeader;
            public void setBlogHeader(String blogHeader) {
                this.blogHeader = blogHeader;
            public String getBlogSubheader() {
                return blogSubheader;
            public void setBlogSubheader(String blogSubheader) {
                this.blogSubheader = blogSubheader;
            public String getBlogBody() {
                return blogBody;
            public void setBlogBody(String blogBody) {
                this.blogBody = blogBody;
            public String getExternalLinks() {
                return externalLinks;
            public void setExternalLinks(String externalLinks) {
                this.externalLinks = externalLinks;
            /* like it says, a void which writes to the database */
            public synchronized void writeToDatabase() {
                Connection conn = null;
                PreparedStatement pStmt = null;
                /* create the query string to fill the table */
                String Query = "INSERT INTO blogEntry (blogHeader, blogSubheader, blogBody, externalLinks) VALUES (\"" + this.blogHeader + "\", \"" + this.blogSubheader + "\", \"" + this.blogBody + "\", \""  + this.externalLinks + "\")";
                try {
                    /*establish the datasource and make the connection */
                    Context ctxt =  new InitialContext();
                    DataSource dsrc = (DataSource)ctxt.lookup("java:comp/env/jdbc/projectEgress");
                    conn = dsrc.getConnection();
                    pStmt = conn.prepareStatement(Query);
                    /* Add data to table 'blogEntry' in our database */
                    pStmt.executeUpdate();
                    pStmt.clearParameters();
                    /* close the connections */
                    pStmt.close();
                    conn.close();
                    /* check for exceptions, ensure connections are closed */
                    } catch (SQLException sqlx) {
                        sqlx.printStackTrace();
                    } catch (Exception ex) {
                        ex.printStackTrace();
                    } finally {
                        if (pStmt != null) {
                            try {
                                pStmt.close();
                        } catch (SQLException sqlx) {}
                        if (conn != null) {
                            try {
                                conn.close();
                        } catch (SQLException sqlx) {}
    }Someone out there has to have a thought on this.
    Even if it's just something they think probably won't work, so long as it gives me another angle to see this from.

  • Error connecting to MySQL database using JNDI

    Hi,
    I'm trying to do a simple connection to a MySQL database using the JNDI look-up
    method.
    Have tried this with the PointBase database that came with WebLogic and got it
    to work successfully.
    However got the attached error message when I tried it on MySQL database. I tried
    this with both the WebLogic's driver for MySQL and also the one I downloaded from
    MySQL (com.mysql.jdbc.Driver), and both failed with the same error message.
    Offhand, it doesn't look like the connection pool is failing. Tested it with WebLogic's
    "Test Pool" function and it was alright.
    Also MySQL database is working properly. Test this by doing simple connection
    and retrieval with simple JDBC connections and it works.
    Any ideas what else I can check with regards to this problem?
    Thanks!
    [att1.html]

    Hi Joe,
    Attached is the config.xml for the domain that I'm working with. There are 3 connection
    pools set-up.
    The problematic Connection Pools are "MySQLCP" and "My JDBC Connection Pool"
    Thanks for your help in this!
    Joe Weinstein <[email protected]> wrote:
    show us the pool definition, as it is in the config.xml file.
    thanks
    joe
    Everbright wrote:
    Hi,
    I'm trying to do a simple connection to a MySQL database using theJNDI look-up
    method.
    Have tried this with the PointBase database that came with WebLogicand got it
    to work successfully.
    However got the attached error message when I tried it on MySQL database.I tried
    this with both the WebLogic's driver for MySQL and also the one I downloadedfrom
    MySQL (com.mysql.jdbc.Driver), and both failed with the same errormessage.
    Offhand, it doesn't look like the connection pool is failing. Testedit with WebLogic's
    "Test Pool" function and it was alright.
    Also MySQL database is working properly. Test this by doing simpleconnection
    and retrieval with simple JDBC connections and it works.
    Any ideas what else I can check with regards to this problem?
    Thanks!
    Error 500--Internal Server Error
    java.sql.SQLException: Cannot obtain connection: driverURL = jdbc:weblogic:pool:MyJDBCConnection Pool, props = {enableTwoPhaseCommit=false, jdbcTxDataSource=true,
    connectionPoolID=MyJDBC Connection Pool, dataSourceName=MyJDBC Data
    Source}.
    Nested Exception: java.lang.RuntimeException: Failed to Generate WrapperClass
         at weblogic.utils.wrapper.WrapperFactory.createWrapper(WrapperFactory.java:141)
         at weblogic.jdbc.wrapper.JDBCWrapperFactory.getWrapper(JDBCWrapperFactory.java:73)
         at weblogic.jdbc.pool.Driver.allocateConnection(Driver.java:242)
         at weblogic.jdbc.pool.Driver.connect(Driver.java:158)
         at weblogic.jdbc.jts.Driver.getNonTxConnection(Driver.java:444)
         at weblogic.jdbc.jts.Driver.connect(Driver.java:138)
         at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:298)
         at jsp_servlet.__index._jspService(__index.java:142)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6310)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
         at weblogic.jdbc.jts.Driver.wrapAndThrowSQLException(Driver.java:395)
         at weblogic.jdbc.jts.Driver.getNonTxConnection(Driver.java:448)
         at weblogic.jdbc.jts.Driver.connect(Driver.java:138)
         at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:298)
         at jsp_servlet.__index._jspService(__index.java:142)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6310)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    [config.xml]

  • Configuring log 4j with oracle9i database for JavaStored procedure

    Hi,
    How to configure log4j for java stored procedure.database is running on diffrent servers .
    when use load java utiltiy to load the java & jar files by default it will store in which folder
    can any one help me in this
    Thanks in advance

    user468979,
    Here are the results of my Internet search. Maybe you will find something helpful:
    http://tinyurl.com/a2wst
    Good Luck,
    Avi.

  • How to access the oracle database using JNDI in iplanet sp1(i have used CURSOR TYPE with CALLABLE STATEMENT)

     

    ya, I have restarted. Can you please tell me whether the path which i am giving is right or not in the context file?
    Thanks,
    Gana.

  • Clafirication on Login Detials  when using JNDI in Toplink

    Hi,
    I am using Toplink in my application for connecting to Database using JNDI ,which is specified in session.xml ,given below
    <toplink-configuration>
    <session>
    <name>default</name>
    <project-xml>META-INF/toplinkMapping.xml</project-xml>
    <session-type>
    <server-session/>
    </session-type>
    <login>
    <datasource>jdbc/PROD</datasource>
    </login>
    </session>
    </toplink-configuration>
    but in the toplinkMapping.xml mapping file i also have an entry for Login Credentials .
    The partial xml mapping file for Login details is given below.
    <toplink:login xsi:type="toplink:database-login">
    <toplink:platform-class>oracle.toplink.platform.database.oracle.Oracle10Platform</toplink:platform-class>
    <toplink:user-name>stage</toplink:user-name>
    <toplink:password>0186BD6F6439FA38D570EB1C6286D1EB41782C546151871A</toplink:password>
    <toplink:driver-class>oracle.jdbc.OracleDriver</toplink:driver-class>
    <toplink:connection-url>jdbc:oracle:thin:@localhost:1522:DEV</toplink:connection-url>
    </toplink:login>
    Can anyone please explain why the login details are required here in the mapping file ,while iam connecting DataBase through JNDI using DataSources in the Session.xml
    Thanks in advance

    Hi Jeremy,
    I've tried adding:
    php_value upload_max_filesize 30M
    to the .htaccess file but I get a 500 Internal Server Error
    Seems like using .htaccess files has been deactivated by your host.
    Please try with adding...
    ...on line 1 of the script which needs that, and see if that works -- if even this doesn´t work, I fear I can´t provide any other suggestion than transferring your site to a hosting provider which handles stuff the standard way and doesn´t force you to use such odd workarounds, which I have never heard of.
    Sorry, needed to get that off my chest, but some hosting companies out there are really strange :-)
    The problem is that I use the php.ini files to override the server setting
    I suspect (can be wrong though) that the php.ini file placed in whatever directory will start "from scratch" everytime a document in that folder is "triggered", and that´s why the session of page A are getting destroyed on page B
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • What to be mentioned in "Root folder" while configuring J2EE ...

    Hi, I am using Flex Builder 3 (trial version)...
    While creating new project, i chose Application Server as "J2EE" , selected "Use remote object access service" and selected "LiveCycle Data Services"..
    In the "Configure J2EE server" page, I unchecked "Use default location for local LCDS server.
    I DONT KNOW WAT TO MENTION IN "Root folder"....
    pls suggest me..
    ( By default "Root URL" is http://localhost:8700/flex/ )
    regards,
    bossim.

    hi
    check this help http://help.sap.com/saphelp_nw04s/helpdata/en/58/bce81866d9984096350cae0d6753c3/frameset.htm
    Regards,
    Arun S

  • Uninstall oracle9i database on windows OS

    Hi,
    Windows OS
    Oracle 9208
    I want to make a script to uninstall oracle9i database using the batch file, so how it can be done ?
    I want to uninstall and then install the database again by running the batch file, so is it required to uninstall the Oracle software also ?
    can anybody provide me detail steps or any link or document to refer ?
    With Regards
    Edited by: user640001 on May 17, 2010 2:45 AM

    user640001 wrote:
    Hi,
    but once i have already executed catrproc.sql and catalog.sql while creating database,
    so if i create database second time, so do i have to run those scripts again ?
    Of course. Those scripts are against and while connected to a specific database. You just created a new database. There is no "again" for this database.
    and if yes then running them again will throw and error as "Object already exists"
    Does it?
    so how to solve it ?You look at the actual error messages actually created (not what you think might be created) and address the actual issue. What is it going to cost you to run some tests?
    >
    can u provide me the main steps for the same?
    With Regards

  • Use a database as JNDI directory?

    With our application, all of the settings now live in a plain old INI file and would like to move them to live in the database, along with the rest of the data supporting our application.
    I know that I can use JNDI to locate the database itself, and that would be the first step in launching the application. What I would then like to do is use JNDI against the database to pull out our application settings.
    Is there an SPI that lets you go through JDBC to access JNDI data?

    Hi David,
    Wouldn't you just use the JDBC interfaces to access the DB directly? Or, you could find a way to store this config data into the LDAP and use JNDI as an accessor directly.
    Out of curiosity, are there any security implications for your configuration data? If your configuration data affects important security aspects of the system -- trust, passwords, etc., -- are there any implications of moving the data from a local, protected file to a distant database? In particular, if you need to have confidentiality (that is, the config data includes access passwords that should not be revealed on the network) you might go with LDAP since it does support SSL transport.
    Of course, you will need to still have some configuration data locally so that you can access the proper database with the proper user identity....
    Hope that helps.
    Ken Gartner
    Quadrasis, Inc (We Unify Security, www -dot- quadrasis -dot- com)

  • DBAdapter Using JNDI Configuration

    Hi,
    I have created a simple process with DBAdapter. (using a simple select from oracle 10g, calling one of the schema - not apps)
    When I ran this process on client it ran with no problem.
    When I ran it from the linux server it gave me a lot of exceptions, like:
    07/11/13 18:36:29 0 - ORABPEL-00000
    Exception not handled by the Collaxa Cube system
    Exception: java.lang.NullPointerException
    Handled As: com.collaxa.cube.CubeException
    ] -> [java.lang.NullPointerException: null]
    ORABPEL-00000
    Exception not handled by the Collaxa Cube system.
    07/11/13 18:36:29 1 - java.lang.NullPointerException
    <2007-11-13 18:36:29,575> <ERROR> <psnext_integration.collaxa.cube> <BaseCubeSessionBean::logError> Error while invoking bean "cube delivery": [com.collaxa.cube.CubeException: Exception not handled by the Collaxa Cube system.
    <DispatchHelper::handleMessage> failed to handle message
    ORABPEL-00000
    <2007-11-13 18:36:29,618> <ERROR> Failed to handle dispatch message ... exception ORABPEL-05002.
    I'm using soa suite 10.1.3.3 (Client and server).
    I had no problem with this on another server (with same installation - another customer)
    I think the process is looking for the JNDI definition and is not using the connection details from DB.wsdl in the process.
    I tried to define the JNDI connection (data-sources.xml, connectors, oc4j-ra) with no success (tried from EM and manualy also).
    Does anyone knows where in the server we define if we want to use JNDI or not.
    And if so, what are the correct steps to define it.
    Thanks
    Arik                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    The jist of it is:
    - define the jndi entry in $ORACLE_HOME/j2ee/<instance name>/application-deployments/default/DbAdapter/oc4j-ra.xml
    - the above entry refers to a data-source entry in $ORACLE_HOME/j2ee/<instance name>/config/data-sources.xml (default instance name is "home")
    As long as the above are set, it should work. Look at the example pre-seeded entry to avoid confusion with XA vs non-XA settings in the above entries.
    To just get the service working without having to worry about the above configuration, make sure that the jndi entry (i.e eis/DB/...) referred to in the adapter service wsdl does not appear in the above oc4j-ra.xml; then the adapter uses the connection info specified in the wsdl directly. To confirm that it is working the way you want it regardless of which of the above routes you take, enable DEBUG level logging for *.ws logger, and take a look at the log file $ORACLE_HOME/bpel/domains/<domain name>/logs/domain.log. (default domain name is "default")

  • How can i create a new and tableless database using database configuration

    How can i create a new and tableless database using database configuration

    How can i create a new and tableless database using database configuration
    Just don't install the sample schemas. See the installation guide
    http://docs.oracle.com/cd/E11882_01/server.112/e10831/installation.htm
    Using the Database Configuration Assistant
    When you install Oracle Database with the Oracle Universal Installer, the sample schemas are installed by default if you select the Basic Installation option. Selecting the sample schemas option installs all five schemas (HR, OE, PM, IX, and SH) in the database. If you choose not to install the sample schemas at that time, you can add them later by following the instructions in section "Manually Installing Sample Schemas".
    Choose a custom install and don't install the sample schemas.
    All other schems/tables installed are REQUIRED by Oracle

  • RC-50004: Fatal: Error occurred in ApplyDatabase:  Control file creation failed  Cannot execute configure of database using RapidClone

    dear associates,
    linux version: red hat enterprise  linux 4.0.
    EBS version: 12.1.1
    RC-50004: Fatal: Error occurred in ApplyDatabase:
    Control file creation failed
    Cannot execute configure of database using RapidClone
    RW-50010: Error: - script has returned an error:   1
    RW-50004: Error code received when running external process.  Check log file for details.
    Running Database Install Driver for VIS instance

    dear associates,
    can u please assist me how can over come this error or problem.
    linux version: red hat enterprise  linux 4.0.
    EBS version: 12.1.1
    RC-50004: Fatal: Error occurred in ApplyDatabase:
    Control file creation failed
    Cannot execute configure of database using RapidClone
    RW-50010: Error: - script has returned an error:   1
    RW-50004: Error code received when running external process.  Check log file for details.
    Running Database Install Driver for VIS instance

  • Using JNDI to access config file located outsite j2ee app

    Hi I'm wanting to store a config file for my J2ee app, somewhere on a tomcat server possibly inside the
    conf/ directory so that I can update this config file without having to redeploy the j2ee app every time a change is made.
    I've been told I can use JNDI to access this file, but I can't seem to find any examples or documentation on how I can do this.
    I'm new to JNDI and would appreciate any help, or suggestions.
    Thanks,
    Tim
    EDIT:
    So far I can access the file with this code:
    Hashtable env = new Hashtable();
              env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.fscontext.RefFSContextFactory");
              try {
                   Context ctx = new InitialContext(prop);
                   // look up context for name
                   //env.put(Context.PROVIDER_URL, "file:C:\\confluence\\confluence-2.5.1-std\\conf");
                   File f = (File)ctx.lookup("/confluence/confluence-2.5.1-std/conf/test.txt");My new problems are:
    1. The commented line env.put(Context.PROVIDER_URL, "file:C:\\confluence\\confluence-2.5.1-std\\conf"); it says in examples that this should set the dir to look in to the conf dir but if i change the lookup value to just test.txt it cannot find it.
    2. Can I somehow set the context to look into the conf directory of Tomcat without hard coding the path, as the path could change or be different on different machines??
    Edited by: Timothyja on Jan 15, 2008 7:00 PM

    Hi Kiran,
    Looking at the code you sent and the error, it looks like you should be casting the ds object to a javax.sql.DataSource object not a weblogic.jdbc.common.internal.RmiDataSource object.
    You may find some useful info at the following URL:
    http://edocs.bea.com/wls/docs81/jdbc/rmidriver.html#1026007

  • How can I configure ang use JNDI datasource on Tomcat 4.0.x ?

    How can I configure ang use JNDI datasource on Tomcat 4.0.x ?
    Please help me , Thanks !

    Hello ,
    You need to go through the JNDI tutorial which you can access at the sun's site. It will explain all the things you need.
    By the way all you want to use JNDI datasource is JNDI class library and some naming or directory service provider, which also you can download from sun.
    Good Luck.

  • Broken link to Oracle9i Database Globalization Support Guide Release 2 (9.2

    http://otn.oracle.com/documentation/oracle9i.html
    broken link to Oracle9i Database Globalization Support Guide Release 2 (9.2)
    http://download.oracle.com/docs/html/A96529_01/toc.htm
    only appear 404 error message.

    Hi Hannuri,
    I am not encountering this issue. Perhaps is has been resolved. Please confirm if you are still having this problem.
    Thanks and regards,
    Les

Maybe you are looking for