Weblogic Examples & Oracle Database

          Hello,
          I am new user to WLS. I don't understand why WLS is using cloudscape
          as a default RDBMS in their examples. To run servlet/EJB examples
          against Oracle RDBMS what are the changes required for the same
          ? Is there any documentation available for the same ?
          THanks
          JP
          

Cloudscape is used because we bundle a demo version with the product
          so you can run the examples out of the box. What things need to be
          changed depends on the specific example. I scanned through some of
          the example code and for most cases it looks like all you would need to
          do is modify the Driver class and URL used in the example or in the case
          of examples that use connection pools, update the same in the pool
          declaration.
          mark
          J Patel wrote:
          > Hello,
          >
          > I am new user to WLS. I don't understand why WLS is using cloudscape
          > as a default RDBMS in their examples. To run servlet/EJB examples
          > against Oracle RDBMS what are the changes required for the same
          > ? Is there any documentation available for the same ?
          >
          > THanks
          > JP
          

Similar Messages

  • RMAN can backup/restore diferent versions of Oracle DataBases regardless OS

    Hi,
    I am evaluating Recovery Manager to backup and restore Oracle databases.
    I have to backup/restore diferents versions of Oracle database, these databases are running in diferents operating systems (AIX, LINUX, Windows)
    For example:
    Oracle DataBase 9 in AIX 5.3 system
    Oracle DataBase 10 in Lunix system
    Oracle DataBase 9 in Windows system
    I want to have a single RMAN server in order to backup/restore all my Oracle DataBases, is it possible?
    A single RMAN server can backup/restore diferent versions of Oracle DataBases regardless the operating system?
    If the answer is yes, do I need to have an specif operting system in my RMAN server? (AIX, Linux, Windows, etc.)
    Thanks for your help;

    Hi,
    Your question:
    I want to have a single RMAN server in order to backup/restore all my Oracle DataBases, is it possible?
    Sounds more like a machine.
    If you would have asked:
    I want to have a single RMAN recovery catalog in order to backup/restore all my Oracle DataBases, is it possible?
    I would have confirmed as like the other two.
    Be aware the catalog version needs to be equal or higher as the highest database version.
    Regards,
    Tycho

  • Setting up the Weblogic portal with Oracle Database

    I am creating weblogic portal domain using oracle database
    a) At the “configure JDBC Data Source “ I have changed all database sources to oracle and before this I have created the weblogic/weblogic user id and required tables spaces also
    1) cgDataSource
    2) cgDataSouce –nonXA
    3) p13nDataSource
    4) portalDatasource
    5) portalDataSourceAlwaysXa
    6) portalDataSourceNeverXa
    b) Test JDBC Data Source
    for all the data sources test has passwd
    c) Run the database scripts run and created the objects
    and when I try to start startWebLogic.sh from portal domain
    I got the below errors looking for <Test "SELECT COUNT(*) FROM SYSTABLES"
    Best Regards
    RAJ
    <Nov 24, 2010 3:58:17 PM MYT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <Nov 24, 2010 3:58:18 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "cgDataSource" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:18 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "cgDataSource-nonXA" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:18 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "cgDataSource-nonXA" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:18 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "cgDataSource-nonXA" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:18 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "cgDataSource-nonXA" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:18 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "cgDataSource-nonXA" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:18 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "p13nDataSource" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:18 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "p13nDataSource" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:19 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "p13nDataSource" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:19 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "p13nDataSource" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:19 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "p13nDataSource" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:19 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "portalDataSource" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:19 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "portalDataSourceAlwaysXA" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:19 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "portalDataSourceNeverXA" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:20 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "portalDataSourceNeverXA" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:21 PM MYT> <Error> <JDBC> <BEA-001112> <Test "SELECT COUNT(*) FROM SYSTABLES" set up for pool "portalDataSourceNeverXA" failed with exception: "java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
    ".>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <LoggingService> <BEA-320400> <The log file /home/orawlp/Oracle/Middleware/user_projects/domains/portal01/servers/AdminServer/logs/portal01.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to /home/orawlp/Oracle/Middleware/user_projects/domains/portal01/servers/AdminServer/logs/portal01.log00002. Log messages will continue to be logged in /home/orawlp/Oracle/Middleware/user_projects/domains/portal01/servers/AdminServer/logs/portal01.log.>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on fe80:0:0:0:216:3eff:fe4e:9ac9:7001 for protocols iiop, t3, ldap, snmp, http.>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <Server> <BEA-002613> <Channel "Default[3]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 10.8.8.116:7001 for protocols iiop, t3, ldap, snmp, http.>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 0:0:0:0:0:0:0:1:7001 for protocols iiop, t3, ldap, snmp, http.>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "AdminServer" for domain "portal01" running in Development Mode>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    <Nov 24, 2010 3:58:23 PM MYT> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>

    Hi,
    When i try to bring up the portal doman i am getting this errors :
    ================
    <Dec 3, 2010 7:23:29 PM SGT> <Error> <Deployer> <BEA-149205> <Failed to initialize the application 'cgDataSource-nonXA' due t
    blogic.application.ModuleException: .
    weblogic.application.ModuleException:
    at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:290)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:391)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:59)
    Truncated. see log file for complete stacktrace
    Caused By: weblogic.common.ResourceException: weblogic.common.ResourceException: DataSource 'cgDataSource-nonXA' can not be c
    is non-transactional and so can not use XA-aware pool 'cgDataSource-nonXA'
    at weblogic.jdbc.common.internal.DataSourceManager.checkDataSource(DataSourceManager.java:236)
    at weblogic.jdbc.common.internal.DataSourceManager.checkDataSource(DataSourceManager.java:204)
    at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:278)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:391)
    Truncated. see log file for complete stacktrace
    Caused By: weblogic.common.ResourceException: DataSource 'cgDataSource-nonXA' can not be created. It is non-transactional and
    t use XA-aware pool 'cgDataSource-nonXA'
    at weblogic.jdbc.common.internal.DataSourceManager.checkPoolConfig(DataSourceManager.java:434)
    at weblogic.jdbc.common.internal.DataSourceManager.checkDSConfig(DataSourceManager.java:389)
    at weblogic.jdbc.common.internal.DataSourceManager.checkDataSource(DataSourceManager.java:233)
    at weblogic.jdbc.common.internal.DataSourceManager.checkDataSource(DataSourceManager.java:204)
    at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:278)
    Truncated. see log file for complete stacktrace
    >
    ==================================
    Can I ignor this error or i have to fix ????
    Best Regards
    Raj

  • Do I need to install Oracle database 12c on PC to create tables for Weblogic server

    Hi,
    I am new to WebLogic and I am following a book Java EE Development
    with Eclipse published by PACKT Publishing to learn  Java EE.  I have installed Oracle Enterprise Pack for Eclipse
    on the PC and I am able to log into the WebLogic Server
    Administration Console and set up a Data Source.  However the next step is to create
    tables for the database.  The book says that the tables can be
    created using SQL script run from the SQL command line.
    I cannot see any way of inputting SQL script into the WebLogic
    Server Admistration Console.  Aslo there is no SQL Command line
    in DOS.
    I have put a previous question on the Oracle Forum about the above and I  was advised to use SQL Plus
    to create the tables for the weblogic server but no mention was made of installing Oracle database.
    I have downloaded InstantClient SQL Plus and Instantclient Basic on a PC and
    put the files into the same directory C:\SQLPlus but now I am having a problem in that it is
    looking for a username and password when I run the sqlplus.exe file.
    Now I assume that I need to have an installation of Oracle databse on the
    PC so as to be able to use SQL Plus.  Am I correct in this or can I create tables for the
    datasource in weblogic without an Oracle database?
    Thanks in advance for your help. Brian

    You should install it separately and also need to change the OBIEE's user.sh to tell it where is your Oracle client installed.

  • Passing Array of java objects to and from oracle database-Complete Example

    Hi all ,
    I am posting a working example of Passing Array of java objects to and from oracle database . I have struggled a lot to get it working and since finally its working , postinmg it here so that it coudl be helpful to the rest of the folks.
    First thinsg first
    i) Create a Java Value Object which you want to pass .
    create or replace and compile java source named Person as
    import java.sql.*;
    import java.io.*;
    public class Person implements SQLData
    private String sql_type = "PERSON_T";
    public int person_id;
    public String person_name;
    public Person () {}
    public String getSQLTypeName() throws SQLException { return sql_type; }
    public void readSQL(SQLInput stream, String typeName) throws SQLException
    sql_type = typeName;
    person_id = stream.readInt();
    person_name = stream.readString();
    public void writeSQL(SQLOutput stream) throws SQLException
    stream.writeInt (person_id);
    stream.writeString (person_name);
    ii) Once you created a Java class compile this class in sql plus. Just Copy paste and run it in SQL .
    you should see a message called "Java created."
    iii) Now create your object Types
    CREATE TYPE person_t AS OBJECT
    EXTERNAL NAME 'Person' LANGUAGE JAVA
    USING SQLData (
    person_id NUMBER(9) EXTERNAL NAME 'person_id',
    person_name VARCHAR2(30) EXTERNAL NAME 'person_name'
    iv) Now create a table of Objects
    CREATE TYPE person_tab IS TABLE OF person_t;
    v) Now create your procedure . Ensure that you create dummy table called "person_test" for loggiing values.
    create or replace
    procedure give_me_an_array( p_array in person_tab,p_arrayout out person_tab)
    as
    l_person_id Number;
    l_person_name Varchar2(200);
    l_person person_t;
    l_p_arrayout person_tab;
    errm Varchar2(2000);
    begin
         l_p_arrayout := person_tab();
    for i in 1 .. p_array.count
    loop
         l_p_arrayout.extend;
         insert into person_test values(p_array(i).person_id, 'in Record '||p_array(i).person_name);
         l_person_id := p_array(i).person_id;
         l_person_name := p_array(i).person_name;
         l_person := person_t(null,null);
         l_person.person_id := l_person_id + 5;
         l_person.person_name := 'Out Record ' ||l_person_name ;
         l_p_arrayout(i) := l_person;
    end loop;
    p_arrayout := l_p_arrayout;
         l_person_id := p_arrayout.count;
    for i in 1 .. p_arrayout.count
    loop
    insert into person_test values(l_person_id, p_arrayout(i).person_name);
    end loop;
    commit;
    EXCEPTION WHEN OTHERS THEN
         errm := SQLERRM;
         insert into person_test values(-1, errm);
         commit;
    end;
    vi) Now finally create your java class which will invoke the pl/sql procedure and get the updated value array and then display it on your screen>Alternatively you can also check the "person_test" tbale
    import java.util.Date;
    import java.io.*;
    import java.sql.*;
    import oracle.sql.*;
    import oracle.jdbc.driver.*;
    import java.text.DateFormat;
    import java.text.ParseException;
    import java.text.SimpleDateFormat;
    public class ArrayDemo
    public static void passArray() throws SQLException
    Connection conn = getConnection();
    ArrayDemo a = new ArrayDemo();
    Person pn1 = new Person();
    pn1.person_id = 1;
    pn1.person_name = "SunilKumar";
    Person pn2 = new Person();
    pn2.person_id = 2;
    pn2.person_name = "Superb";
    Person pn3 = new Person();
    pn3.person_id = 31;
    pn3.person_name = "Outstanding";
    Person[] P_arr = {pn1, pn2, pn3};
    Person[] P_arr_out = new Person[3];
    ArrayDescriptor descriptor =
    ArrayDescriptor.createDescriptor( "PERSON_TAB", conn );
    ARRAY array_to_pass =
    new ARRAY( descriptor, conn, P_arr);
    OracleCallableStatement ps =
    (OracleCallableStatement )conn.prepareCall
    ( "begin give_me_an_array(?,?); end;" );
    ps.setARRAY( 1, array_to_pass );
         ps.registerOutParameter( 2, OracleTypes.ARRAY,"PERSON_TAB" );
         ps.execute();
         oracle.sql.ARRAY returnArray = (oracle.sql.ARRAY)ps.getArray(2);
    Object[] personDetails = (Object[]) returnArray.getArray();
    Person person_record = new Person();
    for (int i = 0; i < personDetails.length; i++) {
              person_record = (Person)personDetails;
              System.out.println( "row " + i + " = '" + person_record.person_name +"'" );
                        public static void main (String args[]){
         try
                             ArrayDemo tfc = new ArrayDemo();
                             tfc.passArray();
         catch(Exception e) {
                        e.printStackTrace();
              public static Connection getConnection() {
         try
                             Class.forName ("oracle.jdbc.OracleDriver");
                             return DriverManager.getConnection("jdbc:oracle:thin:@<<HostNanem>>:1523:VIS",
                             "username", "password");
         catch(Exception SQLe) {
                        System.out.println("IN EXCEPTION BLOCK ");
                        return null;
    and thats it. you are done.
    Hope it atleast helps people to get started. Comments are appreciated. I can be reached at ([email protected]) or [email protected]
    Thanks
    Sunil.s

    Hi Sunil,
    I've a similar situation where I'm trying to insert Java objects in db using bulk insert. My issue is with performance for which I've created a new thread.
    http://forum.java.sun.com/thread.jspa?threadID=5270260&tstart=30
    I ran into your code and looked into it. You've used the Person object array and directly passing it to the oracle.sql.ARRAY constructor. Just curios if this works, cos my understanding is that you need to create a oracle.sql.STRUCT out of ur java object collection and pass it to the ARRAY constructor. I tried ur way but got this runtime exception.
    java.sql.SQLException: Fail to convert to internal representation: JavaBulkInsertNew$Option@10bbf9e
                        at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
                        at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
                        at oracle.jdbc.oracore.OracleTypeADT.toDatum(OracleTypeADT.java:239)
                        at oracle.jdbc.oracore.OracleTypeADT.toDatumArray(OracleTypeADT.java:274)
                        at oracle.jdbc.oracore.OracleTypeUPT.toDatumArray(OracleTypeUPT.java:115)
                        at oracle.sql.ArrayDescriptor.toOracleArray(ArrayDescriptor.java:1314)
                        at oracle.sql.ARRAY.<init>(ARRAY.java:152)
                        at JavaBulkInsertNew.main(JavaBulkInsertNew.java:76)
    Here's a code snippet I used :
    Object optionVal[] =   {optionArr[0]};   // optionArr[0] is an Option object which has three properties
    oracle.sql.ArrayDescriptor empArrayDescriptor = oracle.sql.ArrayDescriptor.createDescriptor("TT_EMP_TEST",conn);
    ARRAY empArray = new ARRAY(empArrayDescriptor,conn,optionVal);If you visit my thread, u'll see that I'm using STRUCT and then pass it to the ARRAY constructor, which works well, except for the performance issue.
    I'll appreciate if you can provide some information.
    Regards,
    Shamik

  • Weblogic 5.1, Distributed Transaction and Oracle Database Link

    We are planning to add a new functionality to run in Weblogic server and it
    needs to update tables in two different Oracle databases. Since we are using
    Weblogic 5.1 and it is unrealistic to upgrade to 6.1 in short term, we have
    to deal with the fact that distributed transaction is not supported by JTS
    on 5.1.
    One workaround we can think of is to utilize Oracle database link. Instead
    of having two connection pools, the application talks to only one database
    and access the tables on the other ones through Oracle database link.
    Therefore, when a session bean tries to update two tables on database 1 in
    one transaction, one of the tables is just a link to the other database. We
    hope that even though distributed transaction is not supported by JTS in
    Weblogic 5.1, but since it is supported by Orable, it would work.
    Do you think the above workaround would work? Does anyone have experience on
    something like that?
    Thanks in advance,
    David Chen
    [email protected]

    Hi. You should be able to use any JDBC driver with WebLogic 5.1.
    It may be the JVM that complains, if you use too old a JVM...
    Joe Weinstein at BEA Systems

  • Bea weblogic 6.1 does not oracle Database fail over

    Hi We had Concurrency Strategy:excusive . Now we change that to Database for performace
    reasons. Since we change that now when we do oracle database fail over weblogic
    6.1 does not detect database fail over and it need restart.
    how we can resolve this ??

    mt wrote:
    Hi We had Concurrency Strategy:excusive . Now we change that to Database for performace
    reasons. Since we change that now when we do oracle database fail over weblogic
    6.1 does not detect database fail over and it need restart.
    how we can resolve this ??Are your pools set to test connections at reserve time?
    Joe

  • Oracle Database Examples media

    Where can I download Oracle Database Examples media for 11g. Can't find it at OTN website.

    Its near the end.  just before the DeInstall images.
    Oracle Database 11g Release 2 for Linux x86-64&lt;/title&gt;&lt;meta name=&quot;Title&quot; content=&quot;Oracle Databas…

  • Weblogic 5.1 and Oracle Database 10g JDBC Drivers

    I need to know if there are JDBC drivers for Oracle Database 10g compatible with Weblogic Server 5.1.
    Regards,
    Luis

    Hi. You should be able to use any JDBC driver with WebLogic 5.1.
    It may be the JVM that complains, if you use too old a JVM...
    Joe Weinstein at BEA Systems

  • [Blog] Using VMware vROPs to monitor Oracle Database and WebLogic.  Management Pack for Oracle EM, Hyperic Plugins, or Both?

    This blog post provides a suggested methodology for helping users of VMware vROps/vCOps decide which of the existing solutions, the vROps Management Pack for Oracle EM and the VMware vROps Hyperic Plugins for Oracle, should be used to monitor their Oracle workloads.
    It’s been a nearly a year since VMware transferred the vCOps Adapter for Oracle Enterprise Manager (OEM) to Blue Medora and since that transfer Blue Medora has released a number of major updates as well as rebranded it the Blue Medora vROps Management Pack for Oracle EM. Over that same period of time VMware has continued to evolve their Oracle-focused (Oracle Database and WebLogic J2EE) Hyperic agent-based plugins culminating most recently with a October 2014 update to the Oracle Database plugin that provides support for Oracle Database 12c.
    vROps for Oracle Database - Management Pack vs Hyperic comparison
    Read the rest here.

    can you also post 28,000 more lines? I'm sure this will be helpful....

  • Migrate oracle database users into weblogic application users

    Hello.
    I need to migrate over 1000 users with its credentials(username, password,email,etc.) from existing ORACLE database into WEBLOGIC application user.
    But I was facing problem with password hashes.
    I have created user marlis and set password like marlis_2013:
    - in oracle db it's hash is 2CDAD21E6A769A11
    - in weblogic as it's hash is {SHA-1}a7OyKYOb/mUMsda8U9cw4ofgGlo=
    How canb I migrate over 1K user credentials. Pls help.

    I am using ADF security based on JAAS.

  • Oracle database examples

    I am looking for various examples of oracle databases to see how the backup and recovery method was designed for them. Such as: Large company unlimited resources 100GB database needs to be up 24x7. Or small company limited resources needs to be up 9x7. Online backup during the day offline backup after closing. I want to see how they setup the control files, redolog files, using tape as apposed to disk.
    Any assistance would be appreciated.
    Thank you
    Adam Ewers

    Its near the end.  just before the DeInstall images.
    Oracle Database 11g Release 2 for Linux x86-64&lt;/title&gt;&lt;meta name=&quot;Title&quot; content=&quot;Oracle Databas…

  • Migrating applciation from weblogic to oracle 9i application server(OC4J)??????

    Hi,
    I am migrating my ejb application from weblogic to oracle 9i application server.What changes are needed to be made in code and what configuration changes are required.
    In my application i use a couple of session beans wherin a session bean calls the method of the other session bean which acceses the database.I am using a jdbc thin driver for the database connection. is it possible for a session bean to call a method of another session bean which access the database??This concept works well in weblogic where the current application is running.
    The problem is that while migrating the application to the orion server, it gives an OrionCMTException ...
    memory leak..etc.
    Could any one clarify.
    Thanks in advance!!!

    Hi Avi and Harrison,
    Cease Fire avi!!!!.First of all let me clear the issue of posting the same problem twice.Well, when i mentioned the problem the first time , i found the title session bean deployment was not right and few people would look into it as it was a common problem so i thought it would be appropriate if i mentioned the title correctly , so i posted the query again with the change in title.
    Now coming to the answer for ur questions.
    The platform used is MS Windows NT.
    The (OC4J) version is 1.0.2.2.1.
    I am not using JDeveloper.
    The database is oracle 8i and i am using the thin driver.
    The beans to be deployed are stateless session beans.
    The client involved is a web client i.e a jsp application.
    The first session bean is as follows.
    import java.sql.Connection;
    import java.sql.Statement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.util.Vector;
    import java.sql.Timestamp;
    import java.rmi.RemoteException;
    import java.util.Date;
    import javax.ejb.*;
    import javax.naming.*;
    import initcontext;
    import PrintMessage;
    import JB_B2B_ERROR_PARSER;
    * @stereotype SessionBean
    * @homeInterface DB_UTILITYHome
    * @remoteInterface DB_UTILITYRemote
    public class DB_UTILITY implements SessionBean
         private SessionContext context;
    private ResultSet rs = null;
    private Statement stmt = null;
    private Connection con = null;
    private PrintMessage print = null;
    public DB_UTILITY()
    rs = null;
    stmt = null;
    con = null;
    print = new PrintMessage();
         public Connection getConnection()throws RemoteException
              InitialContext initctx = null;
              Connection con = null;
              try
                   initctx = initcontext.getContext();
                   javax.sql.DataSource ds =
    (javax.sql.DataSource)initctx.lookup("java:comp/env/jdbc/ePool");
                   con = ds.getConnection();
    //(javax.sql.DataSource)initctx.lookup("java:comp/env/jdbc/ePool");
    catch(NamingException namingexception)
    print.printUserMessage("DB_UTILITY", (new
    Date()).toString(), "", namingexception);
    throw new
    EpoolException(JB_B2B_ERROR_PARSER.getErrorMessage("AppError",
    "Epool-10001", "DB_UTILITY.getConnection"));
    catch(SQLException sqlexception)
    print.printUserMessage("DB_UTILITY", (new
    Date()).toString(), "", sqlexception);
    throw new
    epoolException(JB_B2B_ERROR_PARSER.getErrorMessage("DBError",
    JB_B2B_ERROR_PARSER.getSQLCode(sqlexception),
    "DB_UTILITY.getConnection"));
    catch(Exception exception)
    print.printUserMessage("DB_UTILITY", (new
    Date()).toString(), "", exception);
    throw new
    epoolException(JB_B2B_ERROR_PARSER.getErrorMessage("EpoolError",
    "Epool10005", "DB_UTILITY.getConnection"));
              return con;
         public String getDate()throws RemoteException
              String Date=null;
              try
                   con=getConnection();
                   stmt=con.createStatement();
                   rs=stmt.executeQuery("SELECT
    TO_CHAR(SYSDATE,'YYYY-MM-DD HH:MI:SS') FROM DUAL");
                   while(rs.next())
                        Date=rs.getString(1);
                   stmt.close();
                   con.close();
    catch(SQLException sqlexception)
         print.printUserMessage("DB_UTILITY", (new
    Date()).toString(), "", sqlexception);
    throw new
    EpoolException(JB_B2B_ERROR_PARSER.getErrorMessage("DBError",
    JB_B2B_ERROR_PARSER.getSQLCode(sqlexception), "DB_UTILITY.getDate"));
    catch(Exception exception)
         print.printUserMessage("DB_UTILITY", (new
    Date()).toString(), "", exception);
    throw new
    EpoolException(JB_B2B_ERROR_PARSER.getErrorMessage("epoolError",
    "Epool10005", "DB_UTILITY.getDate"));
    finally
    try
    if(con != null && !con.isClosed())
    con.close();
    catch(Exception exception2)
    stmt = null;
    con = null;
              return Date;
         public void setSessionContext(SessionContext context)
              this.context = context;
         public void ejbActivate()
         public void ejbPassivate()
         public void ejbCreate()
         public void ejbRemove()
    Also the xml files are as follows.
    web.xml
    <?xml version="1.0"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems,
    Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
    <!-- A friendly name for this web application, this name can be used in visual development environments, for instance -->
    <display-name>AddressBook Web Application</display-name>
    <!-- A human-readable description of this web application -->
    <description>Web module that contains an HTML welcome page, and 4 JSP's.</description>
    <!-- The file(s) to show when no file is specified, i.e. only the directory is specified. -->
    <welcome-file-list>
    <welcome-file>B2B_COUNTRY_CODE.jsp</welcome-file>
    </welcome-file-list>
    <ejb-ref>
    <ejb-ref-name>SB_B2B_COUNTRY_CODEHome</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <home>SB_B2B_COUNTRY_CODEHome</home
    <remote>SB_B2B_COUNTRY_CODERemote</remote>
    </ejb-ref></web-app>
    Application.xml
    <?xml version="1.0"?>
    <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd">
    <application>
    <display-name>Country Code</display-name>
    <module>
    <ejb>epool_CountryCode-ejb.jar</ejb>
    </module>
    <module>
    <web>
    <web-uri>epool_CountryCode-web.war</web-uri>
    <context-root>/epool_CountryCode-web</context-root>
    </web>
    </module>
    </application>
    ejb-jar.xml:
    <?xml version="1.0"?>
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd">
    <ejb-jar>
    <description>epool_CountryCode</description>
    <enterprise-beans>
    <session>
    <display-name>CountryCode Session
    Bean</display-name>
    <ejb-name>SB_B2B_COUNTRY_CODERemote</ejb-name>
    <home>SB_B2B_COUNTRY_CODEHome</home>
    <remote>SB_B2B_COUNTRY_CODERemote</remote>
    <ejb-class>SB_B2B_COUNTRY_CODE</ejb-class>
    <session-type>Stateless</session-type>
    <ejb-ref>
    <description>EJB Epool DButility</description>
         <ejb-ref-name>DB_UTILITYRemote</ejb-ref-name>
                   <ejb-ref-type>Session</ejb-ref-type>
                   <home>DB_UTILITYHome</home>
                   <remote>DB_UTILITYRemote</remote>
              </ejb-ref>
              <ejb-ref>
              <description>EJB Entity Bean</description>
    <ejb-ref-name>EB_B2B_COUNTRY_CODERemote</ejb-ref-name>
                   <ejb-ref-type>Entity</ejb-ref-type>
                   <home>EB_B2B_COUNTRY_CODEHome</home>
              <remote>EB_B2B_COUNTRY_CODERemote</remote>
              </ejb-ref>
    </session>
    <session>
    <display-name>DbUtility Session Bean</display-name>
    <ejb-name>DB_UTILITYRemote</ejb-name>
    <home>DB_UTILITYHome</home>
    <remote>DB_UTILITYRemote</remote>
    <ejb-class>DB_UTILITY</ejb-class>
    <session-type>Stateless</session-type>
    </session>
    <entity>
    <ejb-name>EB_B2B_COUNTRY_CODERemote</ejb-name>
         <home>EB_B2B_COUNTRY_CODEHome</home>
         <remote>EB_B2B_COUNTRY_CODERemote</remote>
         <ejb-class>EB_B2B_COUNTRY_CODE</ejb-class>
         <persistence-type>Container</persistence-type>
         <prim-key-class>EB_B2B_COUNTRY_CODEPK</prim-key-class>
         <reentrant>False</reentrant>
         <cmp-field>
         <field-name>country_code_desc</field-name>
         </cmp-field>
         <cmp-field>
         <field-name>phone_format_flag</field-name>
         </cmp-field>
         <cmp-field>
         <field-name>country_code</field-name>
         </cmp-field>
         <cmp-field>
         <field-name>active_date</field-name>
         </cmp-field>
         <cmp-field>
         <field-name>date_created</field-name>
         </cmp-field>
         <cmp-field>
         <field-name>active_flag</field-name>
         </cmp-field>
         <cmp-field>
         <field-name>country_phone_code</field-name>
         </cmp-field>
         <cmp-field>
         <field-name>country_tax_percent</field-name>
         </cmp-field>
         <cmp-field>
         <field-name>sort_order</field-name>
         </cmp-field>
         <cmp-field>
         <field-name>date_modified</field-name>
         </cmp-field>
         <cmp-field>
         <field-name>user_created</field-name>
         </cmp-field>
         <cmp-field>
         <field-name>user_modified</field-name>
         </cmp-field>
         <resource-ref>
         <description></description>
         <res-ref-name>jdbc/ePool</res-ref-name>
         <res-type>javax.sql.DataSource</res-type>
         <res-auth>Container</res-auth>
         </resource-ref>
    </entity>
    </enterprise-beans>
    <assembly-descriptor>
         <container-transaction>
              <method>
                   <ejb-name>EB_B2B_COUNTRY_CODERemote</ejb-name>
                   <method-name>*</method-name>
              </method>
              <trans-attribute>Required</trans-attribute>
    </container-transaction>
    <security-role>
    <description>Users</description>
    <role-name>users</role-name>
    </security-role>
    </assembly-descriptor>
    </ejb-jar>
    The session bean which uses the above session bean is as follows.
    import javax.ejb.SessionContext;
    import javax.ejb.SessionBean;
    import java.sql.*;
    import javax.naming.Context;
    import java.sql.Timestamp;
    import java.util.Vector;
    import initcontext;
    import DB_UTILITYHome;
    import DB_UTILITYRemote;
    import EB_B2B_COUNTRY_CODEHome;
    import EB_B2B_COUNTRY_CODERemote;
    import EB_B2B_COUNTRY_CODEPK;
    * @stereotype SessionBean
    * @homeInterface SB_B2B_COUNTRY_CODEHome
    * @remoteInterface SB_B2B_COUNTRY_CODERemote
    public class SB_B2B_COUNTRY_CODE implements SessionBean
         private SessionContext context;
         * Sets the context of the bean
         * @param context The Bean's Context
         public Vector selectCountryCode(String query,String
    countquery, String pagenos) throws Exception
              Context ctx = initcontext.getContext();
              Connection con=null;
              Vector records=new Vector();
              int pageno=Integer.parseInt(pagenos);
              int min=(pageno-1)*10;
              int max=pageno*10;
              int counter=0;
              boolean recordsfound=false;     
              try
                   DB_UTILITYHome home =
    (DB_UTILITYHome)ctx.lookup("java:comp/env/DB_UTILITYRemote");
                   DB_UTILITYRemote remote =
    (DB_UTILITYRemote)home.create();
                   con=remote.getConnection();
                   Statement stmt = con.createStatement();
                   ResultSet rscount =
    stmt.executeQuery(countquery);
                   while(rscount.next())
                        int temp=rscount.getInt(1);
                        int pagecount=temp;
                        pagecount=pagecount/10;
                        if((temp%10)>0)
                        pagecount=pagecount+1;               
                        records.addElement(""+pagecount);
                   ResultSet rs = stmt.executeQuery(query);
                   while(rs.next())
                        counter++;
                        if(counter>min && counter<=max)
                             String row[]=new String[8];     
                             recordsfound=true;
                             row[0]=rs.getString(1);
                             row[1]=rs.getString(2);
                             row[2]=rs.getString(3);
                             row[3]=rs.getString(4);
                             row[4]=rs.getString(5);
                             row[5]=rs.getString(6);
                             row[6]=rs.getString(7);
                             row[7]=rs.getString(8);          
                             records.addElement(row);
              con.close();               
              catch(Exception e)
                   System.out.println("Error in selecting Country
    Code "+e);
                   throw new Exception("Error in selecting Country
    Code "+e);
              return(records);     
         public void insertCountryCode(String country_code, String
    country_code_desc, String country_phone_code, String
    phone_format_flag,String active_flag, String sort_order,String
    country_tax_percent)throws Exception
              Context ctx = initcontext.getContext();
              Double Sort_Order=null;
              Double cntry_tax_prct=null;
              if(sort_order!=null && sort_order.length()>0)          
              Sort_Order=new Double(sort_order);          
              if(country_tax_percent!=null &&
    country_tax_percent.length()>0)          
              cntry_tax_prct=new Double(country_tax_percent);
              String user_created=null;
              Timestamp date_created=null;
              Timestamp active_date=null;
              String user_modified=null;
              Timestamp date_modified=null;          
              try
                   DB_UTILITYHome dbhome =
    (DB_UTILITYHome)ctx.lookup("java:comp/env/DB_UTILITYRemote");
                   DB_UTILITYRemote dbremote =
    (DB_UTILITYRemote)dbhome.create();
                   user_created=dbremote.getUser();
    date_created=Timestamp.valueOf(dbremote.getDate());
                   active_date=date_created;
                   EB_B2B_COUNTRY_CODEHome home =
    (EB_B2B_COUNTRY_CODEHome)ctx.lookup("java:comp/env/EB_B2B_COUNTRY_CODER
    emote");
                   EB_B2B_COUNTRY_CODERemote remote =
    (EB_B2B_COUNTRY_CODERemote)home.create(country_code, country_code_desc,
    country_phone_code,active_flag, phone_format_flag,user_created,
    date_created, active_date, Sort_Order, user_modified,
    date_modified,cntry_tax_prct);                              
              catch(Exception e)
                   System.out.println("Error in Creating COUNTRY
    Code "+e);
                   throw new Exception("Error in Creating COUNTRY
    Code "+e);
         public void setSessionContext(SessionContext context)
              this.context = context;
         public void ejbActivate()
         public void ejbPassivate()
         public void ejbCreate()
         public void ejbRemove()
    The jsp client which acces the beans is as follows.
    <BODY >
    <%@ page language="java" %>
    <%@ page import="java.sql.*" %>
    <%@ page import="initcontext" %>
    <%@ page import = "java.util.*" %>
    <%@ page import="DB_UTILITYHome"%>
    <%@ page import="DB_UTILITYRemote"%>
    <%@ page import="javax.naming.*"%>
    <%Connection con=null; %>
    <script src="search_getvalues.js">
    </script>
    <form name=frm1>
    <%! int intCount,intI,intRowCount,intJ;
    String strtname=new String();
    String strhidden=new String("txthdn");
         Statement st;
         ResultSet rs;
         ResultSetMetaData rmeta;
    ....%>
    <%
    try
         Context ctx = initcontext.getContext();
         DB_UTILITYHome dbhome =
    (DB_UTILITYHome)ctx.lookup("java:comp/env/DB_UTILITYRemote");
         DB_UTILITYRemote dbremote = (DB_UTILITYRemote)dbhome.create();
         con=dbremote.getConnection();
         st=con.createStatement();
         rs=st.executeQuery(strsqlquery);
         rmeta=rs.getMetaData();
    intCount=rmeta.getColumnCount();
    ....... %>
    </form>
    </BODY>
    </HTML>
    The resulting exception generated is as follows:
    D:\oc4j\j2ee\home>java -jar orion.jar
    Auto-unpacking
    D:\oc4j\j2ee\home\applications\epool_CountryCode\build\epool_CountryCod
    e.ear... done.
    Auto-unpacking
    D:\oc4j\j2ee\home\applications\epool_CountryCode\build\epool_CountryCod
    e\epool_CountryCode-web.war... done.
    Auto-deploying epool_CountryCode (New server version detected)...
    Auto-deploying epool_CountryCode-ejb.jar (No previous deployment
    found)... done.
    Error deploying
    file:/D:/oc4j/j2ee/home/demo/messagelogger/messagelogger-ejb.jar homes:
    No javax.jms.Destination found a
    t the specified destination-location (jms/theTopic) for
    MessageDrivenBean com.evermind.logger.MessageLogger
    Oracle9iAS (1.0.2.2.1) Containers for J2EE initialized
    Auto-deploying epool countryCode example (New server version
    detected)...
    ************************1
    ************************2
    COUNT QUERY :SELECT COUNT(COUNTRY_CODE) FROM BAP_COUNTRY_CODE
    QUERY :SELECT
    COUNTRY_CODE,COUNTRY_CODE_DESC,COUNTRY_PHONE_CODE,PHONE_FORMAT_FLAG,COU
    NTRY_TAX_PERCENT ,SORT_ORDER,ACTIVE
    FLAG,ACTIVEDATE FROM BAP_COUNTRY_CODE order by COUNTRY_CODE
    Error in selecting Country Code java.rmi.RemoteException: Error
    (de-)serializing object: com.evermind.sql.OrionCMTConnec
    tion; nested exception is:
    java.io.NotSerializableException:
    com.evermind.sql.OrionCMTConnection
    JB:Error in selecting country cd java.lang.Exception: Error in
    selecting Country Code java.rmi.RemoteException: Error (d
    e-)serializing object: com.evermind.sql.OrionCMTConnection; nested
    exception is:
    java.io.NotSerializableException:
    com.evermind.sql.OrionCMTConnection
    Error in Selecting Records
    OrionCMTConnection not closed, check your code!
    LogicalDriverManagerXAConnection not closed, check your code!
    (Use -Djdbc.connection.debug=true to find out where the leaked
    connection was created)
    Auto-unpacking
    D:\oc4j\j2ee\home\applications\epool_CountryCode\build\epool_CountryCod
    e.ear... Error unpacking: IO Error:
    The system cannot find the path specified
    Error updating application epool_CountryCode: Unable to find/read
    assembly info for D:\oc4j\j2ee\home\applications\epool_C
    ountryCode\build\epool_CountryCode (META-INF/application.xml)
    But if the DBUTILITY session bean is changed to a simple bean and accessed the code works fine and i am able to retrieve the data.Is the problem there because u one session bean cannot access a database connection method from another one or could it be because of the driver???
    I hope i am clear.Please revert back in case any more references are needed.
    Thanks in advance!!!!!!

  • Can we use oracle database Instead of Cloudspace?

              hi there,Can we use oracle database instead of Cloudspace with the current implementation?
              If possible can you please send me the example
              1.ra.xml
              2.weblogic-ra.xml
              files for connection to oracle. i would really appreciate any support.
              thanx, raghu.
              

              Prasen,
              Could you tell me what specifically should I use for Oracle database instead of
              jdbc:cloudscape:rmi:CloudscapeDB;create=true.
              Can I use jdbc:weblogic:oracle for jdbc:cloudscape:Commerce? I am not familiar with
              Cloidscape URLs and drivers.
              Thanks,
              David
              prasen <[email protected]> wrote:
              >Raghu,
              > It depends upon your implementation of ResourceAdapter, particularly
              >your managedConnectionFactory. In the example we
              >supplied(BlackBoxNoTx.rar) it(database specific parameters) is being
              >passed to the ManagedConnectionFactory as one of its config-properties.
              >
              >Also ResourceAdapters have nothing to do with Databases. It just happens
              >that in the supplied example a Database Connection is being exposed as a
              >ResourceAdapter.
              >
              >Now if you want to use oracle database you may want to look into teh
              >source code of BlackBoxNoTx.rar's implementation.
              >
              >Hope this helps.
              >
              >regards,
              >prasen
              >
              >raghu wrote:
              >>
              >> hi there,Can we use oracle database instead of Cloudspace with the current
              >implementation?
              >> If possible can you please send me the example
              >> 1.ra.xml
              >> 2.weblogic-ra.xml
              >> files for connection to oracle. i would really appreciate any support.
              >> thanx, raghu.
              

  • Petstore Oracle Database Exception

    To whom it may concern,
    I recently installed WebLogic 7.0. It worked just fine with the pointbase database
    connection. The petstore example worked.. As soon as I began setting up weblogic
    with an Oracle database, I began running into problems. Here is what I do know
    - Connection to the Database works
    - utils.dbping to database works
    - Configuring Weblogic to use database connection fails.
    Currently, I am stuck trying to find why the following exception is being thrown:
    Unable to deploy EJB: ContactInfoEJB from suppPOEjb.jar:
    weblogic.ejb20.WLDeploymentException: Incorrect DataSource type
    detected. The DataSource with JNDI name 'datasource-petstoresupplierPool', specified
    in the RDBMS deployment
    descriptor for the EJB 'ContactInfoEJB', is not a TXDataSource.
    The EJB Container requires a TXDataSource to be specified for
    transactions to be managed correctly.
    at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.verifyTXDataSource(R
    DBMSPersistenceManager.java:977)
    If you can shed some light on why this might be happening or point me to documentation
    that could shed light on how to properly configure the petstore example, that would
    be fabulous. I have included the installation notes we performed to this point.
    We will continue to locate information regarding this issue. Thank you in advance
    for your help.
    Dan
    <Installing BEA Web Logic 7.0>
    [Administrator]
    <Pre-Requisites>
         - Install Oracle 8i 8.1.7 Database Client
    (Note: Place the "weblogic700_win.exe" binary into c:\temp on the target machine)
         - Double click "c:\temp\weblogic700_win.exe"
    <BEA Installation Framework - Weblogic Platform 7.0 - Welcome>
         - Click the "Next" button
    <BEA Installation Framework - Weblogic Platform 7.0 - BEA License Agreement>
         - Do you agree with the terms of the license? Yes
         - Click the "Next" button
    <BEA Installation Framework - Weblogic Platform 7.0 - BEA Home Directory>
         - Select "Create a new BEA Home"
         - BEA Home Directory: c:\bea
         - Click the "Next" button
    <BEA Installation Framework - Weblogic Platform 7.0 - Choose Install Type>
         - Select "Typical Installation"
         - Click the "Next" button
    <BEA Installation Framework - Weblogic Platform 7.0 - Choose Product Directory>
         - Product Installation Directory: c:\bea\weblogic700
         - Click the "Next" button
    <BEA Installation Framework - Weblogic Platform 7.0 - Install Complete>
         - Click the "Done" button
    <Configure the Database properties correctly>
    <Test connection to the Database>
         c:\oracle\ora81\bin> sqlplus petstore70/petstore70@octqa1
    <Update the Environment Path>
         - Click "Start -> Settings -> Control Panel"
    <Control Panel>
         - Double Click "System"
    <System Properties>
         - Click the "Advanced" tab
         - Click the "Environment Variables" button
    <Environment Variables>
         - Double click Variable "Path" beneath "System variables"
    <Edit System Variable>
         - Variable Name: Path
         - Append ";c:\bea\weblogic700\server\bin\oci817_8;c:\oracle\ora81\bin" to the end
    of "Variable Value"
         - Click the "OK" button
    <Test the Database Connection from WebLogic>
         c:\bea\weblogic700\server\bin> setWLSEnv.cmd
         c:\bea\weblogic700\server\bin> set path=c:\bea\wlserver700\server\bin\oci817_8;%PATH%
         c:\bea\weblogic700\server\bin> java utils.dbping ORACLE petstore70 petstore70 octqa1
    <Follow the Instructions for updating the PetStore to enable a different database>
         - Read and Execute: c:\bea\weblogic700\samples\server\src\petstore\petstore.html
    <Execute the build command>
         c:\bea\weblogic700\samples\server\config\examples> setExamplesEnv
         c:\bea\weblogic700\samples\server\src\petstore\src> ant
    <Verify the *ear files exist>
         c:\bea> dir c:\bea\weblogic700\samples\server\src\petstore\src\apps\admin\build
         c:\bea> dir c:\bea\weblogic700\samples\server\src\petstore\src\apps\opc\build
         c:\bea> dir c:\bea\weblogic700\samples\server\src\petstore\src\apps\petstore\build
         c:\bea> dir c:\bea\weblogic700\samples\server\src\petstore\src\apps\supplier\build
    <Run the Examples Server>
         c:\bea\weblogic700\samples\server\config\examples> startExamplesServer.cmd
    <Configure the petstore Database JDBC petstore pool>
         - Visit http://ibs26:7001/console
    <Administration Console - BEA WebLogic Server 7.0>
         - Username: weblogic
         - Password: weblogic
         - Click the "Sign In" button
    <WebLogic Server Console>
         - Select "petstore -> Services -> JDBC -> Connection Pools"
         - Click the "Configure a new JDBC Connection Pool"
    <examples: JDBC Connection ... Create a new JDBC Connection Pool>
         - Select "Configuration:General"
         - Name: petstorePool
         - URL: jdbc:weblogic:oracle:OCTQA1
         - Driver ClassName: weblogic.jdbc.oci.Driver
         (Note: Make sure the following user was added to the oracle database)
         - Properties: user=petstore70
         - Password: petstore70
         - Click the "Create" button
    <examples: JDBC Connection ... petstorePool>
         - Click the "Targets" tab
         - Click the "Servers" tab
         - Select "examplesServer"
         - Click the ">" button to add it to the chosen list
         - Click the "Apply" button
    <WebLogic Server Console>
         - Select "petstore -> Services -> JDBC -> Connection Pools"
         - Click the "Configure a new JDBC Connection Pool"
    <examples: JDBC Connection ... Create a new JDBC Connection Pool>
         - Select "Configuration:General"
         - Name: petstoreopcPool
         - URL: jdbc:weblogic:oracle:OCTQA1
         - Driver ClassName: weblogic.jdbc.oci.Driver
         (Note: Make sure the following user was added to the oracle database)
         - Properties: user=petstore70opc
         - Password: petstore70opc
         - Click the "Create" button
    <examples: JDBC Connection ... petstorePool>
         - Click the "Targets" tab
         - Click the "Servers" tab
         - Select "examplesServer"
         - Click the ">" button to add it to the chosen list
         - Click the "Apply" button
    <WebLogic Server Console>
         - Select "petstore -> Services -> JDBC -> Connection Pools"
         - Click the "Configure a new JDBC Connection Pool"
    <examples: JDBC Connection ... Create a new JDBC Connection Pool>
         - Select "Configuration:General"
         - Name: petstoresupplierPool
         - URL: jdbc:weblogic:oracle:OCTQA1
         - Driver ClassName: weblogic.jdbc.oci.Driver
         (Note: Make sure the following user was added to the oracle database)
         - Properties: user=petstore70supplier
         - Password: petstore70supplier
         - Click the "Create" button
    <examples: JDBC Connection ... petstorePool>
         - Click the "Targets" tab
         - Click the "Servers" tab
         - Select "examplesServer"
         - Click the ">" button to add it to the chosen list
         - Click the "Apply" button
    <Create the Data Sources>
         - Select "petstore -> Services -> JDBC -> Data Sources"
         - Click the "Configure a new JDBC Data Source"
    <examples.. JDBC Data Sources.. Create a new JDBCDataSource...>
         - Name: PetstoreDataSource
         - JNDI Name: datasource-petstorePool
         - Pool Name: petstorePool
         - Click the "Create" button
    <examples.. JDBC Data Sources.. PetstoreDataSource...>
         - Click the "Targets" tab
         - Click the "Servers" tab
         - Select "examplesServer"
         - Click the ">" button to add it to the chosen list
         - Click the "Apply" button
    <Create the Data Sources>
         - Select "petstore -> Services -> JDBC -> Data Sources"
         - Click the "Configure a new JDBC Data Source"
    <examples.. JDBC Data Sources.. Create a new JDBCDataSource...>
         - Name: PetstoreOPCDataSource
         - JNDI Name: datasource-petstoreopcPool
         - Pool Name: petstoreopcPool
         - Click the "Create" button
    <examples.. JDBC Data Sources.. PetstoreOPCDataSource...>
         - Click the "Targets" tab
         - Click the "Servers" tab
         - Select "examplesServer"
         - Click the ">" button to add it to the chosen list
         - Click the "Apply" button
    <Create the Data Sources>
         - Select "petstore -> Services -> JDBC -> Data Sources"
         - Click the "Configure a new JDBC Data Source"
    <examples.. JDBC Data Sources.. Create a new JDBCDataSource...>
         - Name: PetstoreSupplierDataSource
         - JNDI Name: datasource-petstoresupplierPool
         - Pool Name: petstoresupplierPool
         - Click the "Create" button
    <examples.. JDBC Data Sources.. PetstoreSupplierDataSource...>
         - Click the "Targets" tab
         - Click the "Servers" tab
         - Select "examplesServer"
         - Click the ">" button to add it to the chosen list
         - Click the "Apply" button
    <Create the Data Sources>
         - Select "petstore -> Services -> JDBC -> Data Sources"
         - Click the "Configure a new JDBC Data Source"
    <examples.. JDBC Data Sources.. Create a new JDBCDataSource...>
         - Name: CatalogDataSource
         - JNDI Name: jdbc.CatalogDataSource
         - Pool Name: petstorePool
         - Click the "Create" button
    <examples.. JDBC Data Sources.. CatalogDataSource...>
         - Click the "Targets" tab
         - Click the "Servers" tab
         - Select "examplesServer"
         - Click the ">" button to add it to the chosen list
         - Click the "Apply" button
    <Create the Connection Factories>
         - Select "petstore -> Services -> JMS -> Connection Factories"
         - Click the "Configure a New JMS Connection Factory."
    <examples... JMS Connection F.... Create a new JMSConnectionFactory>
         - Click the "General" tab
         - Name: petstoreQueueConnectionFactory
         - JNDIName: jms.JPS_MY_QUEUE
         - Click the "Create" button
    <examples.. JMS Connection F... petstoreQueueCon...>
         - Click the "Targets" tab
         - Click the "Servers" tab
         - Select "examplesServer"
         - Click the ">" button to add it to the chosen list
         - Click the "Apply" button
    <Create the Connection Factories>
         - Select "petstore -> Services -> JMS -> Connection Factories"
         - Click the "Configure a New JMS Connection Factory."
    <examples... JMS Connection F.... Create a new JMSConnectionFactory>
         - Click the "General" tab
         - Name: petstoreTopicConnectionFactory
         - JNDIName: jms.MyTopicConnectionFactory
         - Click the "Create" button
    <examples.. JMS Connection F... petstoreTopicCon...>
         - Click the "Targets" tab
         - Click the "Servers" tab
         - Select "examplesServer"
         - Click the ">" button to add it to the chosen list
         - Click the "Apply" button
    <Move the EAR Files to the Examples Domain>
         c:\bea\weblogic700\samples\server\src\petstore\src\apps\admin\build> copy *ear ..\..\..\..\..\..\config\examples\applications
         c:\bea\weblogic700\samples\server\src\petstore\src\apps\opc\build> copy *ear ..\..\..\..\..\..\config\examples\applications
         c:\bea\weblogic700\samples\server\src\petstore\src\apps\petstore\build> copy *ear
    .\..\..\..\..\..\config\examples\applications
         c:\bea\weblogic700\samples\server\src\petstore\src\apps\supplier\build> copy *ear
    .\..\..\..\..\..\config\examples\applications
    <Restart the weblogic Examples server>
         c:\bea\weblogic700\samples\server\config\examples> startExamplesServer.cmd
    <Visit the Petstore Application
         - Visit http://ibs26:7001/petstore/index.jsp
    <Notes on install>
         - The following is being thrown in the examples server:
    Unable to deploy EJB: ContactInfoEJB from suppPOEjb.jar:
    weblogic.ejb20.WLDeploymentException: Incorrect DataSource type detected. The Da
    taSource with JNDI name 'datasource-petstoresupplierPool', specified in the RDBM
    S deployment descriptor for the EJB 'ContactInfoEJB', is not a TXDataSource. The
    EJB Container requires a TXDataSource to be specified for transactions to be ma
    naged correctly.
    at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.verifyTXDataSource(R
    DBMSPersistenceManager.java:977)
         - At present, there is no solution to this issue

    To whom it may concern,
    I recently installed WebLogic 7.0. It worked just fine with the pointbase database
    connection. The petstore example worked.. As soon as I began setting up weblogic
    with an Oracle database, I began running into problems. Here is what I do know
    - Connection to the Database works
    - utils.dbping to database works
    - Configuring Weblogic to use database connection fails.
    Currently, I am stuck trying to find why the following exception is being thrown:
    Unable to deploy EJB: ContactInfoEJB from suppPOEjb.jar:
    weblogic.ejb20.WLDeploymentException: Incorrect DataSource type
    detected. The DataSource with JNDI name 'datasource-petstoresupplierPool', specified
    in the RDBMS deployment
    descriptor for the EJB 'ContactInfoEJB', is not a TXDataSource.
    The EJB Container requires a TXDataSource to be specified for
    transactions to be managed correctly.
    at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.verifyTXDataSource(R
    DBMSPersistenceManager.java:977)
    If you can shed some light on why this might be happening or point me to documentation
    that could shed light on how to properly configure the petstore example, that would
    be fabulous. I have included the installation notes we performed to this point.
    We will continue to locate information regarding this issue. Thank you in advance
    for your help.
    Dan
    <Installing BEA Web Logic 7.0>
    [Administrator]
    <Pre-Requisites>
         - Install Oracle 8i 8.1.7 Database Client
    (Note: Place the "weblogic700_win.exe" binary into c:\temp on the target machine)
         - Double click "c:\temp\weblogic700_win.exe"
    <BEA Installation Framework - Weblogic Platform 7.0 - Welcome>
         - Click the "Next" button
    <BEA Installation Framework - Weblogic Platform 7.0 - BEA License Agreement>
         - Do you agree with the terms of the license? Yes
         - Click the "Next" button
    <BEA Installation Framework - Weblogic Platform 7.0 - BEA Home Directory>
         - Select "Create a new BEA Home"
         - BEA Home Directory: c:\bea
         - Click the "Next" button
    <BEA Installation Framework - Weblogic Platform 7.0 - Choose Install Type>
         - Select "Typical Installation"
         - Click the "Next" button
    <BEA Installation Framework - Weblogic Platform 7.0 - Choose Product Directory>
         - Product Installation Directory: c:\bea\weblogic700
         - Click the "Next" button
    <BEA Installation Framework - Weblogic Platform 7.0 - Install Complete>
         - Click the "Done" button
    <Configure the Database properties correctly>
    <Test connection to the Database>
         c:\oracle\ora81\bin> sqlplus petstore70/petstore70@octqa1
    <Update the Environment Path>
         - Click "Start -> Settings -> Control Panel"
    <Control Panel>
         - Double Click "System"
    <System Properties>
         - Click the "Advanced" tab
         - Click the "Environment Variables" button
    <Environment Variables>
         - Double click Variable "Path" beneath "System variables"
    <Edit System Variable>
         - Variable Name: Path
         - Append ";c:\bea\weblogic700\server\bin\oci817_8;c:\oracle\ora81\bin" to the end
    of "Variable Value"
         - Click the "OK" button
    <Test the Database Connection from WebLogic>
         c:\bea\weblogic700\server\bin> setWLSEnv.cmd
         c:\bea\weblogic700\server\bin> set path=c:\bea\wlserver700\server\bin\oci817_8;%PATH%
         c:\bea\weblogic700\server\bin> java utils.dbping ORACLE petstore70 petstore70 octqa1
    <Follow the Instructions for updating the PetStore to enable a different database>
         - Read and Execute: c:\bea\weblogic700\samples\server\src\petstore\petstore.html
    <Execute the build command>
         c:\bea\weblogic700\samples\server\config\examples> setExamplesEnv
         c:\bea\weblogic700\samples\server\src\petstore\src> ant
    <Verify the *ear files exist>
         c:\bea> dir c:\bea\weblogic700\samples\server\src\petstore\src\apps\admin\build
         c:\bea> dir c:\bea\weblogic700\samples\server\src\petstore\src\apps\opc\build
         c:\bea> dir c:\bea\weblogic700\samples\server\src\petstore\src\apps\petstore\build
         c:\bea> dir c:\bea\weblogic700\samples\server\src\petstore\src\apps\supplier\build
    <Run the Examples Server>
         c:\bea\weblogic700\samples\server\config\examples> startExamplesServer.cmd
    <Configure the petstore Database JDBC petstore pool>
         - Visit http://ibs26:7001/console
    <Administration Console - BEA WebLogic Server 7.0>
         - Username: weblogic
         - Password: weblogic
         - Click the "Sign In" button
    <WebLogic Server Console>
         - Select "petstore -> Services -> JDBC -> Connection Pools"
         - Click the "Configure a new JDBC Connection Pool"
    <examples: JDBC Connection ... Create a new JDBC Connection Pool>
         - Select "Configuration:General"
         - Name: petstorePool
         - URL: jdbc:weblogic:oracle:OCTQA1
         - Driver ClassName: weblogic.jdbc.oci.Driver
         (Note: Make sure the following user was added to the oracle database)
         - Properties: user=petstore70
         - Password: petstore70
         - Click the "Create" button
    <examples: JDBC Connection ... petstorePool>
         - Click the "Targets" tab
         - Click the "Servers" tab
         - Select "examplesServer"
         - Click the ">" button to add it to the chosen list
         - Click the "Apply" button
    <WebLogic Server Console>
         - Select "petstore -> Services -> JDBC -> Connection Pools"
         - Click the "Configure a new JDBC Connection Pool"
    <examples: JDBC Connection ... Create a new JDBC Connection Pool>
         - Select "Configuration:General"
         - Name: petstoreopcPool
         - URL: jdbc:weblogic:oracle:OCTQA1
         - Driver ClassName: weblogic.jdbc.oci.Driver
         (Note: Make sure the following user was added to the oracle database)
         - Properties: user=petstore70opc
         - Password: petstore70opc
         - Click the "Create" button
    <examples: JDBC Connection ... petstorePool>
         - Click the "Targets" tab
         - Click the "Servers" tab
         - Select "examplesServer"
         - Click the ">" button to add it to the chosen list
         - Click the "Apply" button
    <WebLogic Server Console>
         - Select "petstore -> Services -> JDBC -> Connection Pools"
         - Click the "Configure a new JDBC Connection Pool"
    <examples: JDBC Connection ... Create a new JDBC Connection Pool>
         - Select "Configuration:General"
         - Name: petstoresupplierPool
         - URL: jdbc:weblogic:oracle:OCTQA1
         - Driver ClassName: weblogic.jdbc.oci.Driver
         (Note: Make sure the following user was added to the oracle database)
         - Properties: user=petstore70supplier
         - Password: petstore70supplier
         - Click the "Create" button
    <examples: JDBC Connection ... petstorePool>
         - Click the "Targets" tab
         - Click the "Servers" tab
         - Select "examplesServer"
         - Click the ">" button to add it to the chosen list
         - Click the "Apply" button
    <Create the Data Sources>
         - Select "petstore -> Services -> JDBC -> Data Sources"
         - Click the "Configure a new JDBC Data Source"
    <examples.. JDBC Data Sources.. Create a new JDBCDataSource...>
         - Name: PetstoreDataSource
         - JNDI Name: datasource-petstorePool
         - Pool Name: petstorePool
         - Click the "Create" button
    <examples.. JDBC Data Sources.. PetstoreDataSource...>
         - Click the "Targets" tab
         - Click the "Servers" tab
         - Select "examplesServer"
         - Click the ">" button to add it to the chosen list
         - Click the "Apply" button
    <Create the Data Sources>
         - Select "petstore -> Services -> JDBC -> Data Sources"
         - Click the "Configure a new JDBC Data Source"
    <examples.. JDBC Data Sources.. Create a new JDBCDataSource...>
         - Name: PetstoreOPCDataSource
         - JNDI Name: datasource-petstoreopcPool
         - Pool Name: petstoreopcPool
         - Click the "Create" button
    <examples.. JDBC Data Sources.. PetstoreOPCDataSource...>
         - Click the "Targets" tab
         - Click the "Servers" tab
         - Select "examplesServer"
         - Click the ">" button to add it to the chosen list
         - Click the "Apply" button
    <Create the Data Sources>
         - Select "petstore -> Services -> JDBC -> Data Sources"
         - Click the "Configure a new JDBC Data Source"
    <examples.. JDBC Data Sources.. Create a new JDBCDataSource...>
         - Name: PetstoreSupplierDataSource
         - JNDI Name: datasource-petstoresupplierPool
         - Pool Name: petstoresupplierPool
         - Click the "Create" button
    <examples.. JDBC Data Sources.. PetstoreSupplierDataSource...>
         - Click the "Targets" tab
         - Click the "Servers" tab
         - Select "examplesServer"
         - Click the ">" button to add it to the chosen list
         - Click the "Apply" button
    <Create the Data Sources>
         - Select "petstore -> Services -> JDBC -> Data Sources"
         - Click the "Configure a new JDBC Data Source"
    <examples.. JDBC Data Sources.. Create a new JDBCDataSource...>
         - Name: CatalogDataSource
         - JNDI Name: jdbc.CatalogDataSource
         - Pool Name: petstorePool
         - Click the "Create" button
    <examples.. JDBC Data Sources.. CatalogDataSource...>
         - Click the "Targets" tab
         - Click the "Servers" tab
         - Select "examplesServer"
         - Click the ">" button to add it to the chosen list
         - Click the "Apply" button
    <Create the Connection Factories>
         - Select "petstore -> Services -> JMS -> Connection Factories"
         - Click the "Configure a New JMS Connection Factory."
    <examples... JMS Connection F.... Create a new JMSConnectionFactory>
         - Click the "General" tab
         - Name: petstoreQueueConnectionFactory
         - JNDIName: jms.JPS_MY_QUEUE
         - Click the "Create" button
    <examples.. JMS Connection F... petstoreQueueCon...>
         - Click the "Targets" tab
         - Click the "Servers" tab
         - Select "examplesServer"
         - Click the ">" button to add it to the chosen list
         - Click the "Apply" button
    <Create the Connection Factories>
         - Select "petstore -> Services -> JMS -> Connection Factories"
         - Click the "Configure a New JMS Connection Factory."
    <examples... JMS Connection F.... Create a new JMSConnectionFactory>
         - Click the "General" tab
         - Name: petstoreTopicConnectionFactory
         - JNDIName: jms.MyTopicConnectionFactory
         - Click the "Create" button
    <examples.. JMS Connection F... petstoreTopicCon...>
         - Click the "Targets" tab
         - Click the "Servers" tab
         - Select "examplesServer"
         - Click the ">" button to add it to the chosen list
         - Click the "Apply" button
    <Move the EAR Files to the Examples Domain>
         c:\bea\weblogic700\samples\server\src\petstore\src\apps\admin\build> copy *ear ..\..\..\..\..\..\config\examples\applications
         c:\bea\weblogic700\samples\server\src\petstore\src\apps\opc\build> copy *ear ..\..\..\..\..\..\config\examples\applications
         c:\bea\weblogic700\samples\server\src\petstore\src\apps\petstore\build> copy *ear
    .\..\..\..\..\..\config\examples\applications
         c:\bea\weblogic700\samples\server\src\petstore\src\apps\supplier\build> copy *ear
    .\..\..\..\..\..\config\examples\applications
    <Restart the weblogic Examples server>
         c:\bea\weblogic700\samples\server\config\examples> startExamplesServer.cmd
    <Visit the Petstore Application
         - Visit http://ibs26:7001/petstore/index.jsp
    <Notes on install>
         - The following is being thrown in the examples server:
    Unable to deploy EJB: ContactInfoEJB from suppPOEjb.jar:
    weblogic.ejb20.WLDeploymentException: Incorrect DataSource type detected. The Da
    taSource with JNDI name 'datasource-petstoresupplierPool', specified in the RDBM
    S deployment descriptor for the EJB 'ContactInfoEJB', is not a TXDataSource. The
    EJB Container requires a TXDataSource to be specified for transactions to be ma
    naged correctly.
    at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.verifyTXDataSource(R
    DBMSPersistenceManager.java:977)
         - At present, there is no solution to this issue

Maybe you are looking for

  • What are the java components?

    hi iam new to this it field. this is the question asked by interviewer. so please help me. what are the java components you can use in a webproject? how you use those components in your project?

  • ACH help- Urgent

    Hi All, I am trying to configure the ACH with Classic Payment Medium program (SAP standard program : RFFOUS_T). But when i run F110 and then i go to DME Admin, i could not see any data. can u please help me, . I will assign point on any input. Regard

  • What is the Forms 10.1.2.3 download site?

    Hi all: I want to install forms10g in Vista, and then oracle.com said forms version must is 10.1.2.3. But in the Software Downloads , Oracle Developer Suite 10g last version is 10.1.2.0.2. Can anyone tell me what is the Forms 10.1.2.3 download site?

  • Selecting multiple layers

    how do i select multiple layers in cs5. when i hold shift key and select two are more layers it is not selecting those other layers. kindly help

  • WS Upload not throwing error in new ECC 6 System

    system was recently upgraded to ecc 6. programs with WS Upload are running fine without errors. but in the description it is mentioned OBSOLETE . but the FM is active. I am confused. Help!!! Regards, amit