Jms/MDB/Oracle database

Hi! This is the first time I use JMS. From a JSP page, I want to send a message to a database in order to make an operation and to have the result of it. I would like to have informations on the steps in order to make that work.
Thanks!

Heloo,
You shod try this:
Scenario 1
1. JMS - DB (AQ) must be available;
2. Create a listener class, that listening the AQ for response;
3. Create a sender class that send messages to AQ;
4. Put everything on jsp;
Scenario 2
1. JMS - DB (AQ) must be available;
2. Create a MDB within a J2EE context to solve the listening process. This is the standard implementation (pooled, thread based ... controlled by J2EE container);
3. Create a sender class that send messages to AQ;
4. Put everything on jsp;
You can use JDEV last release to do and test this and Oracle AQ.
Good luck...

Similar Messages

  • I want store JMS queue in oracle database..

    Hi all,
    I want store JMS queue in oracle database..
    How can i configure my jboss 3.0.1
    Thanks,
    Thilsen

    Oracle provides this functionality with Advanced Queues
    http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96587/qintro.htm
    Although the API is JMS-compliant, the administration can be quite burdensome.

  • Getting TXN timeout exception when getting an XA Oracle Database Connection

    Running WLS 8.1 sp5 on Linux in a Cluster (4 servers)
              Using Oracle 10.2.0.2.0 Thin XA driver
              Running Oracle Datbase 9.2.06 or 9.2.07; I think
              I am getting the SQLException: Unexpected exception while enlisting XAConnection java.sql.SQLException: Transaction rolled back: Transaction timed out after 31 seconds
              It fails at: weblogic.jdbc.jta.DataSource.enlist(Lweblogic/transaction/Transaction;)V(Optimized Method). The exception occurs on all 4 WLS instances at the same time.
              Stack trace at bottom. This problem seems to occur on and off at about the same time. We have not been able to see other jobs that would affect it during this time.
              - Max Pool Size = 25
              - Current and High Connections = 5
              - Num Unavaiable = 0
              - Failure to Reconnect = 0
              - Connection Delay ranges from 57 to 126 milliseconds
              The problem occurs within an MDB. The MDB gets a msg from the JMS queue, fires off an SMTP msg, and tries to update the database and fails due to the timeout on enlisting in the XA transaction.
              Any thoughts on what to look for? Read the info at http://edocs.bea.com/wls/docs81/faq/JTA.html#738205. Is it talking to the Oracle database to enlist. Since occuring on all 4, there is a central place it's failing and I guess the database is a start.
              Thanks. Later...
              - Wayne
              Wed Jan 10 08:30:13 EST 2007: EMS: Exception: EMSSenderDao.mdbChangeMessageQueueStatus() : java.lang.Exception: getMdbDBConnection() : java.sql.SQLException: Unexpected exception while enlisting XAConnection java.sql.SQLException: Transaction rolled back: Transaction timed out after 31 seconds
              BEA1-6A0F2B6B5AA26811FBB9
              at weblogic.jdbc.jta.DataSource.enlist(Lweblogic/transaction/Transaction;)V(Optimized Method)
              at weblogic.jdbc.jta.DataSource.getConnection()Ljava/sql/Connection;(Optimized Method)
              at weblogic.jdbc.jta.DataSource.connect(Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection;(Optimized Method)
              at weblogic.jdbc.common.internal.RmiDataSource.getConnection()Ljava/sql/Connection;(Optimized Method)
              at com.foo_company.ems.dao.EMSSenderDao.mdbChangeMessageQueueStatus(ILjava/lang/String;I)I(Optimized Method)
              at com.foo_company.ems.ejb.emsmessageconsumer.EMSMessageConsumerBean.onMessage(Ljavax/jms/Message;)V(Optimized Method)
              at weblogic.ejb20.internal.MDListener.execute(Lweblogic/kernel/ExecuteThread;)V(Optimized Method)
              at weblogic.ejb20.internal.MDListener.transactionalOnMessage(Ljavax/jms/Message;)V(Optimized Method)
              at weblogic.ejb20.internal.MDListener.onMessage(Ljavax/jms/Message;)V(Optimized Method)
              at weblogic.jms.client.JMSSession.onMessage(Ljavax/jms/MessageListener;Lweblogic/jms/common/MessageImpl;)V(Optimized Method)
              at weblogic.jms.client.JMSSession.execute(Lweblogic/kernel/ExecuteThread;)V(Optimized Method)
              at weblogic.kernel.ExecuteThread.execute(Lweblogic/kernel/ExecuteRequest;)V(Optimized Method)
              at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:183)
              at java.lang.Thread.startThreadFromVM(Ljava/lang/Thread;)V(Unknown Source)

    Wayne Lau wrote:
              > Running WLS 8.1 sp5 on Linux in a Cluster (4 servers)
              > Using Oracle 10.2.0.2.0 Thin XA driver
              > Running Oracle Datbase 9.2.06 or 9.2.07; I think
              >
              > I am getting the SQLException: Unexpected exception while enlisting XAConnection java.sql.SQLException: Transaction rolled back: Transaction timed out after 31 seconds
              >
              > It fails at: weblogic.jdbc.jta.DataSource.enlist(Lweblogic/transaction/Transaction;)V(Optimized Method). The exception occurs on all 4 WLS instances at the same time.
              >
              > Stack trace at bottom. This problem seems to occur on and off at about the same time. We have not been able to see other jobs that would affect it during this time.
              > - Max Pool Size = 25
              > - Current and High Connections = 5
              > - Num Unavaiable = 0
              > - Failure to Reconnect = 0
              > - Connection Delay ranges from 57 to 126 milliseconds
              >
              > The problem occurs within an MDB. The MDB gets a msg from the JMS queue, fires off an SMTP msg, and tries to update the database and fails due to the timeout on enlisting in the XA transaction.
              >
              > Any thoughts on what to look for? Read the info at http://edocs.bea.com/wls/docs81/faq/JTA.html#738205. Is it talking to the Oracle database to enlist. Since occuring on all 4, there is a central place it's failing and I guess the database is a start.
              >
              > Thanks. Later...
              >
              >
              > - Wayne
              Hi. At that moment the issue, whatever it is, has already happened.
              Something in the processing of the transaction to this point has
              already taken longer than you have specified that a transaction
              must complete in. Ideally we'd like to see the JTA/JDBC/2PC debug
              logging turned on, so we have lines with timestamps for every
              step in your tx.
              Joe
              > Wed Jan 10 08:30:13 EST 2007: EMS: Exception: EMSSenderDao.mdbChangeMessageQueueStatus() : java.lang.Exception: getMdbDBConnection() : java.sql.SQLException: Unexpected exception while enlisting XAConnection java.sql.SQLException: Transaction rolled back: Transaction timed out after 31 seconds
              > BEA1-6A0F2B6B5AA26811FBB9
              > at weblogic.jdbc.jta.DataSource.enlist(Lweblogic/transaction/Transaction;)V(Optimized Method)
              > at weblogic.jdbc.jta.DataSource.getConnection()Ljava/sql/Connection;(Optimized Method)
              > at weblogic.jdbc.jta.DataSource.connect(Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection;(Optimized Method)
              > at weblogic.jdbc.common.internal.RmiDataSource.getConnection()Ljava/sql/Connection;(Optimized Method)
              > at com.foo_company.ems.dao.EMSSenderDao.mdbChangeMessageQueueStatus(ILjava/lang/String;I)I(Optimized Method)
              > at com.foo_company.ems.ejb.emsmessageconsumer.EMSMessageConsumerBean.onMessage(Ljavax/jms/Message;)V(Optimized Method)
              > at weblogic.ejb20.internal.MDListener.execute(Lweblogic/kernel/ExecuteThread;)V(Optimized Method)
              > at weblogic.ejb20.internal.MDListener.transactionalOnMessage(Ljavax/jms/Message;)V(Optimized Method)
              > at weblogic.ejb20.internal.MDListener.onMessage(Ljavax/jms/Message;)V(Optimized Method)
              > at weblogic.jms.client.JMSSession.onMessage(Ljavax/jms/MessageListener;Lweblogic/jms/common/MessageImpl;)V(Optimized Method)
              > at weblogic.jms.client.JMSSession.execute(Lweblogic/kernel/ExecuteThread;)V(Optimized Method)
              > at weblogic.kernel.ExecuteThread.execute(Lweblogic/kernel/ExecuteRequest;)V(Optimized Method)
              > at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:183)
              > at java.lang.Thread.startThreadFromVM(Ljava/lang/Thread;)V(Unknown Source)

  • Any kind of integration experience with Weblogic JMS and Oracle AQ?

    Hi,
    In my company I work with java developers who believe in some kind of "holly" database independence I don't understand and as a result my life as a database developer is hell on earth.. Yesterday we again started to discuss, this time where to log, they believe database is slow and prefer logging to filesystem, after some hours finally I could convince them for some operational and reporting needs to use the database and will do this in an asyncronous way whiich they won't get slow. After all I believe the reason for a database is data, this is the place where data lives, and with the correct desing and implementation logging to database would perform better.
    I love Oracle features, and know that we paid a lot for this software, so today I started investigating this promised solution. And quickly I found AQ and JMS topics in the documentation :)
    After this introduction here is my problem; my company use BEA Weblogic as application server and the java guys want AQ to automatically (but of course with some delay) take their JMS log requests into database tables. Does any one have similar application experience, or any kind of integration experience with Weblogic JMS and Oracle AQ?
    Any comments, references, documentation, sample code, url will be most welcomed :)
    Thank you very much!
    Tonguc
    [email protected]
    References I found upto now;
    Oracle® Streams Advanced Queuing Java API Reference 10g Release 2 (10.2) http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14291/toc.htm
    (Packages; javax.jms & oracle.jms)
    Oracle® Streams Advanced Queuing User's Guide and Reference 10g Release 2 (10.2) http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14257/toc.htm
    Part IV
    Using Oracle JMS and Oracle Streams AQPart V describes how to use Oracle JMS and Oracle Streams Advanced Queuing (AQ).
    Chapter 11, "Introducing Oracle JMS"
    Chapter 12, "Oracle JMS Basic Operations"
    Chapter 13, "Oracle JMS Point-to-Point"
    Chapter 14, "Oracle JMS Publish/Subscribe"
    Chapter 15, "Oracle JMS Shared Interfaces"
    Chapter 16, "Oracle JMS Types Examples"
    A Sample Code from Otn
    http://www.oracle.com/technology/sample_code/tech/java/web_services/jmsws/NewsQueueEJB.java.html

    I wouldn't go as far to say Oracle AQ is out-dated today. However, it is indeed a proprietary technology that did not found much main-stream adoption in the earlier years after its introduction. The advent of JMS made it somewhat more useful (or should I say intriguing, because more people are trying to tie it together with other J2EE technologies), but the Oracle's JMS wrapper classes in aqapi.jar were not feature complete for a long while, so using it outside Oracle's application server was painful, if not impossible. I do agree that the info at the dev2dev's JMS newsgroup or in this forum is highly fragmented, as neither Oracle nor BEA provides an official solution to integrate AQ with WebLogic, so people like us have to learn the technology through experimentation and in a piecemeal fashion.
    3 years ago I was literally "playing around" - we had a polling mechanism set up to use triggers to write Oracle data changes into an event table, and had a Java-based daemon to scan that table and publish events as JMS messages to the WebLogic JMS server. This continues to work reliably till today, but I was looking for a solution that has few parts - I wanted to hook up my WebLogic MDB directly to AQ as a foreign JMS provider. Although I was able to get it to work (including XA), there were a few hoops I had to jump through, such as decompiling the Oracle AQjms classes to make them bind to the WebLogic JNDI tree.
    One year after that Diptanshu Parui took what I did a giant step further - he extended the Oracle AQjms classes to allow them to be bound to the WebLogic JNDI tree naturally, and he figured out how to use WebLogic JMS messging bridge to re-send single-threaded AQ JMS messages to clustered JMS queues, which allow concurrent message assumption by multiple instances of MDB's. My impression is that he is using that setup in a production environment.
    I am sure you are aware of it but I would like to make it clear - in order to use AQ as a foreign JMS provider to WebLogic-hosted MDB's, you don't need to update your database to Oracle 10g - Oracle 8i is good enough (although I recommend at least 9i Release 2). It is not the database engine, but rather the aqapi.jar JMS wrapper on top of AQ that matters. I do recommend that you use aqapi.jar from Oracle Application Server 10.0.3 or up for better XA support, among other things. Again, you don't have to replace WebLogic with Oracle AS - you only need a single jar file from it and put it in your WebLogic's classpath. However, I don't know what this means from a licensing point of view if you ever go to production - do you have to pay the full price of OracleAS or OC4J just to use the aqapi.jar?
    In the coming days I will test the latest aqapi.jar to see how much progress Oracle has made in terms of making their J2EE products more spec-compliant :-).
    Hope the above gives you a different perspective.
    Eric

  • DATA IMPORT from MS.ACCESS TO ORACLE DATABASE

    I have an MS ACCESS MDB file , I to import all the Tables and Data into ORACLE DATABASE through FORMS.Because this file is on Client side, and maintain on daily basis ,so it is very hard to import manually daily through traditional ODBC method,for that our one team member busy all day with that issue.
    Is it possible in our forms to import data from MS.ACCESS to ORACLE. I tried HOST command but it doesn't work.
    Data structure and Table Name are same both is MS Access and Oracle.
    We are Oracle 8i and Developer 6i

    Like i said in my previous post, the same steps that you used to do manually, you need to do it through forms, it's not that straight forward, you need to do lots of coding.
    connect form to MS Access db read the data, and insert them into oracle tables.
    Search the forum, there are solutions previously posted, and keep checking the online help .
    Tony

  • Exception during commit of transaction in wli when using oracle database

    I have configured oracle Database instead of pointbase in wli 9.2
    While getting the response through callback in wli process (from Worklist console)this errror is coming "Exception occurred during commit of transaction ".
    What should I do to remove this error??
    Stack trace is
    <Jan 6, 2007 5:19:59 PM CST> <Error> <EJB> <BEA-010026> <Exception occurred during commit of transac
    tion Xid=BEA1-012806F477B49C8F6264(7312912),Status=Rolled back. [Reason=weblogic.utils.NestedRuntime
    Exception: Error in beforeCompletion],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=
    0,seconds left=60,XAServerResourceInfo[WLStore_oracle1domain_cgJMSStore]=(ServerResourceInfo[WLStore
    oracle1domaincgJMSStore]=(state=rolledback,assigned=AdminServer),xar=WLStore_oracle1domain_cgJMSSt
    ore1269044,re-Registered = false),XAServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(Ser
    verResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(state=rolledback,assigned=AdminServer),xar
    =weblogic.jdbc.wrapper.JTSXAResourceImpl@14c0a31,re-Registered = false),SCInfo[oracle1domain+AdminSe
    rver]=(state=rolledback),properties=({weblogic.jdbc=t3://199.81.36.226:7001}),local properties=({mod
    ifiedListeners=[weblogic.ejb.container.internal.TxManager$TxListener@1442c7b], class com.bea.wli.bpm
    .runtime.JpdContainer$TxnListener1168125300187=com.bea.wli.bpm.runtime.JpdContainer$TxnListener@1313
    24d}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=AdminServer+199.8
    1.36.226:7001+oracle1domain+t3+, XAResources={WLStore_oracle1domain_cgJMSStore, WLStore_oracle1domai
    n_WseeFileStore, WLStore_oracle1domain__WLS_AdminServer, weblogic.jdbc.wrapper.JTSXAResourceImpl},No
    nXAResources={})],CoordinatorURL=AdminServer+199.81.36.226:7001+oracle1domain+t3+): weblogic.transac
    tion.RollbackException: Unexpected exception in beforeCompletion: sync=weblogic.ejb.container.intern
    al.TxManager$TxListener@1442c7b
    Error in beforeCompletion
    at weblogic.transaction.internal.TransactionImpl.throwRollbackException(TransactionImpl.java
    :1782)
    at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.
    java:331)
    at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:227
    at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:463)
    at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:335)
    at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:291)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4060)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:3953)
    at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:4467)
    at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    .>

    Did you get a solution to this problem ?I am seeing similar exceptions intermittently .
    Thanks,
    Meena.

  • DataParser from a set of .cvs files to oracle database

    Hello all,
    This is my first post here, so I am not sure whether this is the right section of the forum, but anyway..
    I need to do a parser that reads cvs files from a set of directories, create a dataset and then a database. I did this as I exported the database to Microsoft Access File. Now, my question is whether it is possible to export it to oracle database file.
    I am using C# for the source code. The parser will be run almost every day.
    Any help would be appreciated. I have a deadline for the project soon :)

    Thanks for the reply.
    The situation is the following. I am done with the parsing. I just have two separate classes - MdbExporter and XmlExporter that export the dataset that has been created to a .mdb file or xml one. Here is an example of the MdbExporter class:
    class MdbExporter : IExporter
    /// <summary>
    /// Exportiert das DataSet in eine Mdb-Datei.
    /// </summary>
    /// <param name="ds">Zu exportierendes DataSet.</param>
    public void Write(DataSet ds, string[] names)
    string conStr = "Provider=Microsoft.Jet.OLEDB.4.0;" +
    "Data Source=" + names[0] + ";";
    Console.WriteLine("Exporting to database {0} ...", names[0]);
    Now I need a way to export the dataset to an oracle database file.
    Thanks for any replay in advance.

  • Parser - CSV files to Oracle database

    Hello all,
    I wrote a csv parser that parse csv files to micorsoft access database. Now I need to parse the dataset to oracle database. This is part of my exporter class
    class MdbExporter : IExporter
    /// <summary>
    /// Exportiert das DataSet in eine Mdb-Datei.
    /// </summary>
    /// <param name="ds">Zu exportierendes DataSet.</param>
    public void Write(DataSet ds, string[] names)
    string conStr = "Provider=Microsoft.Jet.OLEDB.4.0;" +
    "Data Source=" + names[0] + ";";
    Console.WriteLine("Exporting to database {0} ...", names[0]);
    Any ideas how can I do that?
    Thanks for any replay in advance.

    I wrote a parser that goes through several folders containing csv files, reads them and creates a dataset that contains 15 tables ( which I need for an intranet application after that). I succeed to write a MDB exporter that export this dataset to microsoft access database. Now I need an exporter that will export my dataset to ORACLE database. Below is the full code for my MDB exporter:
    public void Write(DataSet ds, string[] names)
    string conStr = "Provider=Microsoft.Jet.OLEDB.4.0;" +
    "Data Source=" + names[0] + ";";
    Console.WriteLine("Exporting to database {0} ...", names[0]);
    DbConnection connection = new OleDbConnection(conStr);
    try
    connection.Open();
    catch (DbException e)
    ConsoleEx.WriteException(true, e, "Unable to open database: {0}", names[0]);
    throw;
    DbCommand command = connection.CreateCommand();
    foreach (DataTable table in ds.Tables)
    Console.WriteLine("\tDeleting table: {0}", table.TableName);
    // delete old tables
    command.CommandText = string.Format("drop table {0}", table.TableName);
    TryExecute(command, false);
    // create new
    Console.WriteLine("\tCreating new table: {0}", table.TableName);
    string[] columnStrings = new string[table.Columns.Count];
    for (int i = 0; i < table.Columns.Count; i++)
    columnStrings[i] = "`" + table.Columns.ColumnName + "`" + " varchar";
    command.CommandText = string.Format("create table {0} ({1})",
    table.TableName, string.Join(", \n", columnStrings));
    TryExecute(command, true);
    // add rows
    for (int row = 0; row < table.Rows.Count; row++)
    for (int col = 0; col < table.Columns.Count; col++)
    columnStrings[col] = "'" + Convert.ToString(table.Rows[row].ItemArray[col]) + "'";
    command.CommandText = string.Format("insert into {0} values ({1})",
    table.TableName, string.Join(", \n", columnStrings));
    TryExecute(command, true);
    connection.Close();
    I need similar exporter to Oracle database. Starting with SQL LOADER from the beginning its really not a good in my opinion since I am almost done with this approach.
    Any help would be appreciated.
    Regards,
    Sven

  • Problem in connecting Non Oracle Database from Oracle

    Hi:
    I want to access "MS ACCESS" from Oracle 10g (10.2.0.1) using Windows XP.
    I tried my best, applied all proper instructions I found from books and from Internet, but getting an error.
    Here is what I did:
    My Oracle database is called "ORCL" and "MS ACCESS" is called "access_1".
    There is only one table "Employees" in "access_1".
    1. Accessed ODBC from Start | Control Panel | Administrative Tools.
    2. Clicked on Users DSN | "access_1" | Add.
    3. Clicked on "Drive do Microsoft Access (*.MDB)" .
    4. Hit Finish.
    5. Entered at DATA SOURCE NAME "ODBC1" and at DESCRIPTION "Connect Oracle to MS Access". Also I clicked on SELECT and chose the "Access_1.mdb" which is located at "C:\Documents and Settings\Muhammad\My Documents" folder. Clicked OK. and clicked on OK again.
    6. Now I went to Oracle side and configured listener as follows: (Only portion is shown here)
    # listener.ora Network Configuration File: C:\oracle\product\orcl\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\orcl)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = hsodbc)
    (ORACLE_HOME = C:\oracle\product\orcl)
    (PROGRAM = hsodbc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = RIYAZDESKTOP)(PORT = 1521))
    7. Configuring the hs file located at C:\oracle\Product\Orcl\hs|admin as follows:
    # HS init parameters
    # HS_FDS_CONNECT_INFO = <odbc data_source_name>
    # HS_FDS_TRACE_LEVEL = <trace_level>
    HS_FDS_CONNECT_INFO = odbc1
    HS_FDS_TRACE_LEVEL = OFF
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    8. The TNSNAMES.ORA File is located at C:\:\oracle\product\orcl\network\admin\ and has the following text (only the related text is shown here):
    # tnsnames.ora Network Configuration File: C:\oracle\product\orcl\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools
    access_db.world =
    (DESCRIPTION =
    (Address = (PROTOCOL = TCP) (HOST = RIYAZDESKTOP) (PORT = 1521))
    (CONNECT_DATA = (SID = hsodbc))
    (HS=OK)
    9. The database link is created as follows:
    SQL> create database link access_db USING 'access_db.world';
    Database link created.
    SQL>
    10. Now the test and selection:
    SQL> select * from employees@access_db;
    select * from employees@access_db
    ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Unable to retrieve text of NETWORK/NCR message 65535
    ORA-02063: preceding 2 lines from ACCESS_DB
    OH! I HAVE TO RELOAD THE LISTENER AND I DID IT HERE.
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\oracle\product\orcl\BIN>lsnrctl reload
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 17-NOV-2006 17:51:26
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    The command completed successfully
    C:\oracle\product\orcl\BIN>
    SQL> select table_name from all_tables@access_db;
    select table_name from all_tables@access_db
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC][Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified (SQL State: IM002; SQL Code: 0)
    ORA-02063: preceding 2 lines from ACCESS_DB
    I HAVE DONE IT EXACTLY WHAT YOU PROVIDED ME BUT GOT THE SAME RESULT.
    ANY SOLUTION!
    THANKS.

    see Connect 9i to Microsoft Access Database

  • 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

  • How to load a java script in oracle database

    Is it possible to load d java script in Oracle database. while the object type is
    java resource ..

    RENUJP wrote:
    I meant to load a javascript to oracle database not to oracle appliocation.
    like loadjava....
    I can load a javascript to oracle database.. but i can't call it...Please re-read the comments above, especially the part about this not being a javascript nor oracle forum. Exactly what part about this information don't you understand?

  • Query in timesten taking more time than query in oracle database

    Hi,
    Can anyone please explain me why query in timesten taking more time
    than query in oracle database.
    I am mentioning in detail what are my settings and what have I done
    step by step.........
    1.This is the table I created in Oracle datababase
    (Oracle Database 10g Enterprise Edition Release 10.2.0.1.0)...
    CREATE TABLE student (
    id NUMBER(9) primary keY ,
    first_name VARCHAR2(10),
    last_name VARCHAR2(10)
    2.THIS IS THE ANONYMOUS BLOCK I USE TO
    POPULATE THE STUDENT TABLE(TOTAL 2599999 ROWS)...
    declare
    firstname varchar2(12);
    lastname varchar2(12);
    catt number(9);
    begin
    for cntr in 1..2599999 loop
    firstname:=(cntr+8)||'f';
    lastname:=(cntr+2)||'l';
    if cntr like '%9999' then
    dbms_output.put_line(cntr);
    end if;
    insert into student values(cntr,firstname, lastname);
    end loop;
    end;
    3. MY DSN IS SET THE FOLLWING WAY..
    DATA STORE PATH- G:\dipesh3repo\db
    LOG DIRECTORY- G:\dipesh3repo\log
    PERM DATA SIZE-1000
    TEMP DATA SIZE-1000
    MY TIMESTEN VERSION-
    C:\Documents and Settings\dipesh>ttversion
    TimesTen Release 7.0.3.0.0 (32 bit NT) (tt70_32:17000) 2007-09-19T16:04:16Z
    Instance admin: dipesh
    Instance home directory: G:\TimestTen\TT70_32
    Daemon home directory: G:\TimestTen\TT70_32\srv\info
    THEN I CONNECT TO THE TIMESTEN DATABASE
    C:\Documents and Settings\dipesh> ttisql
    command>connect "dsn=dipesh3;oraclepwd=tiger";
    4. THEN I START THE AGENT
    call ttCacheUidPwdSet('SCOTT','TIGER');
    Command> CALL ttCacheStart();
    5.THEN I CREATE THE READ ONLY CACHE GROUP AND LOAD IT
    create readonly cache group rc_student autorefresh
    interval 5 seconds from student
    (id int not null primary key, first_name varchar2(10), last_name varchar2(10));
    load cache group rc_student commit every 100 rows;
    6.NOW I CAN ACCESS THE TABLES FROM TIMESTEN AND PERFORM THE QUERY
    I SET THE TIMING..
    command>TIMING 1;
    consider this query now..
    Command> select * from student where first_name='2155666f';
    < 2155658, 2155666f, 2155660l >
    1 row found.
    Execution time (SQLExecute + Fetch Loop) = 0.668822 seconds.
    another query-
    Command> SELECT * FROM STUDENTS WHERE FIRST_NAME='2340009f';
    2206: Table SCOTT.STUDENTS not found
    Execution time (SQLPrepare) = 0.074964 seconds.
    The command failed.
    Command> SELECT * FROM STUDENT where first_name='2093434f';
    < 2093426, 2093434f, 2093428l >
    1 row found.
    Execution time (SQLExecute + Fetch Loop) = 0.585897 seconds.
    Command>
    7.NOW I PERFORM THE SIMILAR QUERIES FROM SQLPLUS...
    SQL> SELECT * FROM STUDENT WHERE FIRST_NAME='1498671f';
    ID FIRST_NAME LAST_NAME
    1498663 1498671f 1498665l
    Elapsed: 00:00:00.15
    Can anyone please explain me why query in timesten taking more time
    that query in oracle database.
    Message was edited by: Dipesh Majumdar
    user542575
    Message was edited by:
    user542575

    TimesTen
    Hardware: Windows Server 2003 R2 Enterprise x64; 8 x Dual-core AMD 8216 2.41GHz processors; 32 GB RAM
    Version: 7.0.4.0.0 64 bit
    Schema:
    create usermanaged cache group factCache from
    MV_US_DATAMART
    ORDER_DATE               DATE,
    IF_SYSTEM               VARCHAR2(32) NOT NULL,
    GROUPING_ID                TT_BIGINT,
    TIME_DIM_ID               TT_INTEGER NOT NULL,
    BUSINESS_DIM_ID          TT_INTEGER NOT NULL,
    ACCOUNT_DIM_ID               TT_INTEGER NOT NULL,
    ORDERTYPE_DIM_ID          TT_INTEGER NOT NULL,
    INSTR_DIM_ID               TT_INTEGER NOT NULL,
    EXECUTION_DIM_ID          TT_INTEGER NOT NULL,
    EXEC_EXCHANGE_DIM_ID TT_INTEGER NOT NULL,
    NO_ORDERS               TT_BIGINT,
    FILLED_QUANTITY          TT_BIGINT,
    CNT_FILLED_QUANTITY          TT_BIGINT,
    QUANTITY               TT_BIGINT,
    CNT_QUANTITY               TT_BIGINT,
    COMMISSION               BINARY_FLOAT,
    CNT_COMMISSION               TT_BIGINT,
    FILLS_NUMBER               TT_BIGINT,
    CNT_FILLS_NUMBER          TT_BIGINT,
    AGGRESSIVE_FILLS          TT_BIGINT,
    CNT_AGGRESSIVE_FILLS          TT_BIGINT,
    NOTIONAL               BINARY_FLOAT,
    CNT_NOTIONAL               TT_BIGINT,
    TOTAL_PRICE               BINARY_FLOAT,
    CNT_TOTAL_PRICE          TT_BIGINT,
    CANCELLED_ORDERS_COUNT          TT_BIGINT,
    CNT_CANCELLED_ORDERS_COUNT     TT_BIGINT,
    ROUTED_ORDERS_NO          TT_BIGINT,
    CNT_ROUTED_ORDERS_NO          TT_BIGINT,
    ROUTED_LIQUIDITY_QTY          TT_BIGINT,
    CNT_ROUTED_LIQUIDITY_QTY     TT_BIGINT,
    REMOVED_LIQUIDITY_QTY          TT_BIGINT,
    CNT_REMOVED_LIQUIDITY_QTY     TT_BIGINT,
    ADDED_LIQUIDITY_QTY          TT_BIGINT,
    CNT_ADDED_LIQUIDITY_QTY     TT_BIGINT,
    AGENT_CHARGES               BINARY_FLOAT,
    CNT_AGENT_CHARGES          TT_BIGINT,
    CLEARING_CHARGES          BINARY_FLOAT,
    CNT_CLEARING_CHARGES          TT_BIGINT,
    EXECUTION_CHARGES          BINARY_FLOAT,
    CNT_EXECUTION_CHARGES          TT_BIGINT,
    TRANSACTION_CHARGES          BINARY_FLOAT,
    CNT_TRANSACTION_CHARGES     TT_BIGINT,
    ORDER_MANAGEMENT          BINARY_FLOAT,
    CNT_ORDER_MANAGEMENT          TT_BIGINT,
    SETTLEMENT_CHARGES          BINARY_FLOAT,
    CNT_SETTLEMENT_CHARGES          TT_BIGINT,
    RECOVERED_AGENT          BINARY_FLOAT,
    CNT_RECOVERED_AGENT          TT_BIGINT,
    RECOVERED_CLEARING          BINARY_FLOAT,
    CNT_RECOVERED_CLEARING          TT_BIGINT,
    RECOVERED_EXECUTION          BINARY_FLOAT,
    CNT_RECOVERED_EXECUTION     TT_BIGINT,
    RECOVERED_TRANSACTION          BINARY_FLOAT,
    CNT_RECOVERED_TRANSACTION     TT_BIGINT,
    RECOVERED_ORD_MGT          BINARY_FLOAT,
    CNT_RECOVERED_ORD_MGT          TT_BIGINT,
    RECOVERED_SETTLEMENT          BINARY_FLOAT,
    CNT_RECOVERED_SETTLEMENT     TT_BIGINT,
    CLIENT_AGENT               BINARY_FLOAT,
    CNT_CLIENT_AGENT          TT_BIGINT,
    CLIENT_ORDER_MGT          BINARY_FLOAT,
    CNT_CLIENT_ORDER_MGT          TT_BIGINT,
    CLIENT_EXEC               BINARY_FLOAT,
    CNT_CLIENT_EXEC          TT_BIGINT,
    CLIENT_TRANS               BINARY_FLOAT,
    CNT_CLIENT_TRANS          TT_BIGINT,
    CLIENT_CLEARING          BINARY_FLOAT,
    CNT_CLIENT_CLEARING          TT_BIGINT,
    CLIENT_SETTLE               BINARY_FLOAT,
    CNT_CLIENT_SETTLE          TT_BIGINT,
    CHARGEABLE_TAXES          BINARY_FLOAT,
    CNT_CHARGEABLE_TAXES          TT_BIGINT,
    VENDOR_CHARGE               BINARY_FLOAT,
    CNT_VENDOR_CHARGE          TT_BIGINT,
    ROUTING_CHARGES          BINARY_FLOAT,
    CNT_ROUTING_CHARGES          TT_BIGINT,
    RECOVERED_ROUTING          BINARY_FLOAT,
    CNT_RECOVERED_ROUTING          TT_BIGINT,
    CLIENT_ROUTING               BINARY_FLOAT,
    CNT_CLIENT_ROUTING          TT_BIGINT,
    TICKET_CHARGES               BINARY_FLOAT,
    CNT_TICKET_CHARGES          TT_BIGINT,
    RECOVERED_TICKET_CHARGES     BINARY_FLOAT,
    CNT_RECOVERED_TICKET_CHARGES     TT_BIGINT,
    PRIMARY KEY(ORDER_DATE, TIME_DIM_ID, BUSINESS_DIM_ID, ACCOUNT_DIM_ID, ORDERTYPE_DIM_ID, INSTR_DIM_ID, EXECUTION_DIM_ID,EXEC_EXCHANGE_DIM_ID),
    READONLY);
    No of rows: 2228558
    Config:
    < CkptFrequency, 600 >
    < CkptLogVolume, 0 >
    < CkptRate, 0 >
    < ConnectionCharacterSet, US7ASCII >
    < ConnectionName, tt_us_dma >
    < Connections, 64 >
    < DataBaseCharacterSet, AL32UTF8 >
    < DataStore, e:\andrew\datacache\usDMA >
    < DurableCommits, 0 >
    < GroupRestrict, <NULL> >
    < LockLevel, 0 >
    < LockWait, 10 >
    < LogBuffSize, 65536 >
    < LogDir, e:\andrew\datacache\ >
    < LogFileSize, 64 >
    < LogFlushMethod, 1 >
    < LogPurge, 0 >
    < Logging, 1 >
    < MemoryLock, 0 >
    < NLS_LENGTH_SEMANTICS, BYTE >
    < NLS_NCHAR_CONV_EXCP, 0 >
    < NLS_SORT, BINARY >
    < OracleID, NYCATP1 >
    < PassThrough, 0 >
    < PermSize, 4000 >
    < PermWarnThreshold, 90 >
    < PrivateCommands, 0 >
    < Preallocate, 0 >
    < QueryThreshold, 0 >
    < RACCallback, 0 >
    < SQLQueryTimeout, 0 >
    < TempSize, 514 >
    < TempWarnThreshold, 90 >
    < Temporary, 1 >
    < TransparentLoad, 0 >
    < TypeMode, 0 >
    < UID, OS_OWNER >
    ORACLE:
    Hardware: Sunos 5.10; 24x1.8Ghz (unsure of type); 82 GB RAM
    Version 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    Schema:
    CREATE MATERIALIZED VIEW OS_OWNER.MV_US_DATAMART
    TABLESPACE TS_OS
    PARTITION BY RANGE (ORDER_DATE)
    PARTITION MV_US_DATAMART_MINVAL VALUES LESS THAN (TO_DATE(' 2007-11-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
    LOGGING
    NOCOMPRESS
    TABLESPACE TS_OS,
    PARTITION MV_US_DATAMART_07_NOV_D1 VALUES LESS THAN (TO_DATE(' 2007-11-11 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
    LOGGING
    NOCOMPRESS
    TABLESPACE TS_OS,
    PARTITION MV_US_DATAMART_07_NOV_D2 VALUES LESS THAN (TO_DATE(' 2007-11-21 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
    LOGGING
    NOCOMPRESS
    TABLESPACE TS_OS,
    PARTITION MV_US_DATAMART_07_NOV_D3 VALUES LESS THAN (TO_DATE(' 2007-12-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
    LOGGING
    NOCOMPRESS
    TABLESPACE TS_OS,
    PARTITION MV_US_DATAMART_07_DEC_D1 VALUES LESS THAN (TO_DATE(' 2007-12-11 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
    LOGGING
    NOCOMPRESS
    TABLESPACE TS_OS,
    PARTITION MV_US_DATAMART_07_DEC_D2 VALUES LESS THAN (TO_DATE(' 2007-12-21 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
    LOGGING
    NOCOMPRESS
    TABLESPACE TS_OS,
    PARTITION MV_US_DATAMART_07_DEC_D3 VALUES LESS THAN (TO_DATE(' 2008-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
    LOGGING
    NOCOMPRESS
    TABLESPACE TS_OS,
    PARTITION MV_US_DATAMART_08_JAN_D1 VALUES LESS THAN (TO_DATE(' 2008-01-11 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
    LOGGING
    NOCOMPRESS
    TABLESPACE TS_OS,
    PARTITION MV_US_DATAMART_08_JAN_D2 VALUES LESS THAN (TO_DATE(' 2008-01-21 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
    LOGGING
    NOCOMPRESS
    TABLESPACE TS_OS,
    PARTITION MV_US_DATAMART_08_JAN_D3 VALUES LESS THAN (TO_DATE(' 2008-02-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
    LOGGING
    NOCOMPRESS
    TABLESPACE TS_OS,
    PARTITION MV_US_DATAMART_MAXVAL VALUES LESS THAN (MAXVALUE)
    LOGGING
    NOCOMPRESS
    TABLESPACE TS_OS
    NOCACHE
    NOCOMPRESS
    NOPARALLEL
    BUILD DEFERRED
    USING INDEX
    TABLESPACE TS_OS_INDEX
    REFRESH FAST ON DEMAND
    WITH PRIMARY KEY
    ENABLE QUERY REWRITE
    AS
    SELECT order_date, if_system,
    GROUPING_ID (order_date,
    if_system,
    business_dim_id,
    time_dim_id,
    account_dim_id,
    ordertype_dim_id,
    instr_dim_id,
    execution_dim_id,
    exec_exchange_dim_id
    ) GROUPING_ID,
    /* ============ DIMENSIONS ============ */
    time_dim_id, business_dim_id, account_dim_id, ordertype_dim_id,
    instr_dim_id, execution_dim_id, exec_exchange_dim_id,
    /* ============ MEASURES ============ */
    -- o.FX_RATE /* FX_RATE */,
    COUNT (*) no_orders,
    -- SUM(NO_ORDERS) NO_ORDERS,
    -- COUNT(NO_ORDERS) CNT_NO_ORDERS,
    SUM (filled_quantity) filled_quantity,
    COUNT (filled_quantity) cnt_filled_quantity, SUM (quantity) quantity,
    COUNT (quantity) cnt_quantity, SUM (commission) commission,
    COUNT (commission) cnt_commission, SUM (fills_number) fills_number,
    COUNT (fills_number) cnt_fills_number,
    SUM (aggressive_fills) aggressive_fills,
    COUNT (aggressive_fills) cnt_aggressive_fills,
    SUM (fx_rate * filled_quantity * average_price) notional,
    COUNT (fx_rate * filled_quantity * average_price) cnt_notional,
    SUM (fx_rate * fills_number * average_price) total_price,
    COUNT (fx_rate * fills_number * average_price) cnt_total_price,
    SUM (CASE
    WHEN order_status = 'C'
    THEN 1
    ELSE 0
    END) cancelled_orders_count,
    COUNT (CASE
    WHEN order_status = 'C'
    THEN 1
    ELSE 0
    END
    ) cnt_cancelled_orders_count,
    -- SUM(t.FX_RATE*t.NO_FILLS*t.AVG_PRICE) AVERAGE_PRICE,
    -- SUM(FILLS_NUMBER*AVERAGE_PRICE) STAGING_AVERAGE_PRICE,
    -- COUNT(FILLS_NUMBER*AVERAGE_PRICE) CNT_STAGING_AVERAGE_PRICE,
    SUM (routed_orders_no) routed_orders_no,
    COUNT (routed_orders_no) cnt_routed_orders_no,
    SUM (routed_liquidity_qty) routed_liquidity_qty,
    COUNT (routed_liquidity_qty) cnt_routed_liquidity_qty,
    SUM (removed_liquidity_qty) removed_liquidity_qty,
    COUNT (removed_liquidity_qty) cnt_removed_liquidity_qty,
    SUM (added_liquidity_qty) added_liquidity_qty,
    COUNT (added_liquidity_qty) cnt_added_liquidity_qty,
    SUM (agent_charges) agent_charges,
    COUNT (agent_charges) cnt_agent_charges,
    SUM (clearing_charges) clearing_charges,
    COUNT (clearing_charges) cnt_clearing_charges,
    SUM (execution_charges) execution_charges,
    COUNT (execution_charges) cnt_execution_charges,
    SUM (transaction_charges) transaction_charges,
    COUNT (transaction_charges) cnt_transaction_charges,
    SUM (order_management) order_management,
    COUNT (order_management) cnt_order_management,
    SUM (settlement_charges) settlement_charges,
    COUNT (settlement_charges) cnt_settlement_charges,
    SUM (recovered_agent) recovered_agent,
    COUNT (recovered_agent) cnt_recovered_agent,
    SUM (recovered_clearing) recovered_clearing,
    COUNT (recovered_clearing) cnt_recovered_clearing,
    SUM (recovered_execution) recovered_execution,
    COUNT (recovered_execution) cnt_recovered_execution,
    SUM (recovered_transaction) recovered_transaction,
    COUNT (recovered_transaction) cnt_recovered_transaction,
    SUM (recovered_ord_mgt) recovered_ord_mgt,
    COUNT (recovered_ord_mgt) cnt_recovered_ord_mgt,
    SUM (recovered_settlement) recovered_settlement,
    COUNT (recovered_settlement) cnt_recovered_settlement,
    SUM (client_agent) client_agent,
    COUNT (client_agent) cnt_client_agent,
    SUM (client_order_mgt) client_order_mgt,
    COUNT (client_order_mgt) cnt_client_order_mgt,
    SUM (client_exec) client_exec, COUNT (client_exec) cnt_client_exec,
    SUM (client_trans) client_trans,
    COUNT (client_trans) cnt_client_trans,
    SUM (client_clearing) client_clearing,
    COUNT (client_clearing) cnt_client_clearing,
    SUM (client_settle) client_settle,
    COUNT (client_settle) cnt_client_settle,
    SUM (chargeable_taxes) chargeable_taxes,
    COUNT (chargeable_taxes) cnt_chargeable_taxes,
    SUM (vendor_charge) vendor_charge,
    COUNT (vendor_charge) cnt_vendor_charge,
    SUM (routing_charges) routing_charges,
    COUNT (routing_charges) cnt_routing_charges,
    SUM (recovered_routing) recovered_routing,
    COUNT (recovered_routing) cnt_recovered_routing,
    SUM (client_routing) client_routing,
    COUNT (client_routing) cnt_client_routing,
    SUM (ticket_charges) ticket_charges,
    COUNT (ticket_charges) cnt_ticket_charges,
    SUM (recovered_ticket_charges) recovered_ticket_charges,
    COUNT (recovered_ticket_charges) cnt_recovered_ticket_charges
    FROM us_datamart_raw
    GROUP BY order_date,
    if_system,
    business_dim_id,
    time_dim_id,
    account_dim_id,
    ordertype_dim_id,
    instr_dim_id,
    execution_dim_id,
    exec_exchange_dim_id;
    -- Note: Index I_SNAP$_MV_US_DATAMART will be created automatically
    -- by Oracle with the associated materialized view.
    CREATE UNIQUE INDEX OS_OWNER.MV_US_DATAMART_UDX ON OS_OWNER.MV_US_DATAMART
    (ORDER_DATE, TIME_DIM_ID, BUSINESS_DIM_ID, ACCOUNT_DIM_ID, ORDERTYPE_DIM_ID,
    INSTR_DIM_ID, EXECUTION_DIM_ID, EXEC_EXCHANGE_DIM_ID)
    NOLOGGING
    NOPARALLEL
    COMPRESS 7;
    No of rows: 2228558
    The query (taken Mondrian) I run against each of them is:
    select sum("MV_US_DATAMART"."NOTIONAL") as "m0"
    --, sum("MV_US_DATAMART"."FILLED_QUANTITY") as "m1"
    --, sum("MV_US_DATAMART"."AGENT_CHARGES") as "m2"
    --, sum("MV_US_DATAMART"."CLEARING_CHARGES") as "m3"
    --, sum("MV_US_DATAMART"."EXECUTION_CHARGES") as "m4"
    --, sum("MV_US_DATAMART"."TRANSACTION_CHARGES") as "m5"
    --, sum("MV_US_DATAMART"."ROUTING_CHARGES") as "m6"
    --, sum("MV_US_DATAMART"."ORDER_MANAGEMENT") as "m7"
    --, sum("MV_US_DATAMART"."SETTLEMENT_CHARGES") as "m8"
    --, sum("MV_US_DATAMART"."COMMISSION") as "m9"
    --, sum("MV_US_DATAMART"."RECOVERED_AGENT") as "m10"
    --, sum("MV_US_DATAMART"."RECOVERED_CLEARING") as "m11"
    --,sum("MV_US_DATAMART"."RECOVERED_EXECUTION") as "m12"
    --,sum("MV_US_DATAMART"."RECOVERED_TRANSACTION") as "m13"
    --, sum("MV_US_DATAMART"."RECOVERED_ROUTING") as "m14"
    --, sum("MV_US_DATAMART"."RECOVERED_ORD_MGT") as "m15"
    --, sum("MV_US_DATAMART"."RECOVERED_SETTLEMENT") as "m16"
    --, sum("MV_US_DATAMART"."RECOVERED_TICKET_CHARGES") as "m17"
    --,sum("MV_US_DATAMART"."TICKET_CHARGES") as "m18"
    --, sum("MV_US_DATAMART"."VENDOR_CHARGE") as "m19"
              from "OS_OWNER"."MV_US_DATAMART" "MV_US_DATAMART"
    where I uncomment a column at a time and rerun. I improved the TimesTen results since my first post, by retyping the NUMBER columns to BINARY_FLOAT. The results I got were:
    No Columns     ORACLE     TimesTen     
    1     1.05     0.94     
    2     1.07     1.47     
    3     2.04     1.8     
    4     2.06     2.08     
    5     2.09     2.4     
    6     3.01     2.67     
    7     4.02     3.06     
    8     4.03     3.37     
    9     4.04     3.62     
    10     4.06     4.02     
    11     4.08     4.31     
    12     4.09     4.61     
    13     5.01     4.76     
    14     5.02     5.06     
    15     5.04     5.25     
    16     5.05     5.48     
    17     5.08     5.84     
    18     6     6.21     
    19     6.02     6.34     
    20     6.04     6.75

  • Using Oracle ODBC Gateway connecting to a remote Oracle database

    Oracle 11gR2
    RHEL 6.4
    Has anyone use the Oracle ODBC Gateway to connect to another Oracle database?  Any issues with that configuration?  Where do I get the ODBC drivers for Linux?
    (I know, "why not use a dblink?" -- well that would be against company security policies)

    Hi,
       From the Oracle point of view we support using DG4ODBC for Oracle to Oracle connections. However, we have not actually tested it as DG4ODBC is primarily designed for access to non-Oracle databases.
    How DG4ODBC will work between Oracle databases depends on the ODBC driver and what that supports. You will need an ODBC Oracle driver which you can get from various suppliers including Oracle but also vendors such as DataDirect, Easysoft etc. You could try a Google search.
    You say you do not want to use database links but that is how DG4ODBC is used, You cannot do -
    sqlplus user/password@dg4odbc_oracle
    Once Dg4ODBC is setup and configured as in this note - if you are using Linux 64-bit -
    How to Configure DG4ODBC on 64bit Unix OS (Linux, Solaris, AIX, HP-UX Itanium) to Connect to Non-Oracle Databases Post Install (Doc ID 561033.1)
    then in the Oracle database you create a database link and select from tables in the other Oracle database -
    select * from table@dg4odbc_db_link ;
    Regards,
    Mike

  • Problem with httpd and oracle database

    hi
    i have oracle linux with oracle database 11gR2
    i install php with oci as the following link :
    http://oss.oracle.com/projects/php/dist/documentation/installation.html
    but when i try phpinfo() i found just only
    *" /etc/php.d/oci8.ini"* in the result
    and when i test connection i have this error
    *" Fatal error: Call to undefined function oci_connect() "*
    so what is the best way to install oci on oracle linux ?

    What version of the OS are you using? Any clues in the syslog and httpd log? Are you using SELinux, which is often an overlooked issue?
    Can you provide more details?
    so what is the best way to install oci on oracle linux ?According to the instructions, if support is needed: http://www.oracle.com/technetwork/topics/php/zend-server-096314.html

  • Import error on Oracle Database Express 10.2.0.1.0

    Hi,
    I try to import data from oracle V10.01.02 running on SUSE10 Linux to
    oracle 10g (10.1.0.2.0) running on Windows Server 2003.
    I am able to import the big part from my ata, but not all data.
    The begin of my log file is:
    Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0
    - Production
    With the Partitioning, OLAP and Data Mining options
    Export file created by EXPORT:V10.01.00 via conventional path
    And after some time I receive:
    IMP-00019: row rejected due to ORACLE error 12899
    IMP-00003: ORACLE error 12899 encountered
    ORA-12899: value too large for column "SAFCI"."EMP"."NAME"
    (actual: 65, maximum: 64)
    Column 1 1000005025
    Column 2 ??????? ???????
    Column 3 19-SEP-2002:00:00:00
    Column 4 9089
    Column 5 ??. ?????
    Column 6 1.9828
    Column 7 377.77
    Column 8 75.55
    Column 9 ???????????? ???????? ? ??? ???? ? 32 ??.
    Column 10 19-SEP-2002:00:00:00
    Column 11 ?????? ?????, ?.?. 172747675, ???. 23.11.200?
    Column 12 ????????? ?????????
    Column 13 ? ????
    Column 14 T
    Column 15
    Column 16 F
    IMP-00019: row rejected due to ORACLE error 12899
    IMP-00003: ORACLE error 12899 encountered
    ORA-12899: value too large for column "SAFCI"."EMP"."NAME"
    (actual: 65, maximum: 64)
    Column 1 1000006408
    Column 2 ??????? ???????
    Column 3 05-NOV-2002:00:00:00
    Column 4 9089
    Column 5 ??. ?????
    Column 6 1.939
    Column 7 82
    Column 8 16.4
    Column 9 ?????????? ? ???? ???? ? 40 ??.
    Column 10 05-NOV-2002:00:00:00
    Column 11 ?????? ?????, ?.?. 172747675, ???. 23.11.200?
    Column 12 ????????? ?????????
    Column 13 ? ????
    Column 14 T
    Column 15
    Column 16 F 36943 rows imported
    I can not understand this problem, because I exported the hole user and
    also try to import the hole user in my new system.
    Pls., can some one point me to some paper about this problem or help me
    to solve the problem.
    Thanks
    configuration Oracle10g (EXP source)
    SQLWKS> select * from nls_database_parameters
    2>
    PARAMETER VALUE
    NLS_LANGUAGE BRAZILIAN PORTUGUESE
    NLS_TERRITORY BRAZIL
    NLS_CURRENCY R$
    NLS_ISO_CURRENCY BRAZIL
    NLS_NUMERIC_CHARACTERS ,.
    NLS_CHARACTERSET WE8ISO8859P1
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD/MM/RR
    NLS_DATE_LANGUAGE BRAZILIAN PORTUGUESE
    NLS_SORT WEST_EUROPEAN
    NLS_TIME_FORMAT HH24:MI:SSXFF
    NLS_TIMESTAMP_FORMAT DD/MM/RR HH24:MI:SSXFF
    NLS_TIME_TZ_FORMAT HH24:MI:SSXFF TZR
    NLS_TIMESTAMP_TZ_FORMAT DD/MM/RR HH24:MI:SSXFF TZR
    NLS_DUAL_CURRENCY Cr$
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_RDBMS_VERSION 10.1.0.2.0
    configuration Oracle10g Express (IMP destination)
    SQL> select * from nls_database_parameters;
    PARAMETER VALUE
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS .,
    NLS_CHARACTERSET AL32UTF8
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY $
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_RDBMS_VERSION 10.2.0.1.0

    Hi
    Your import database use a multibyte characterset, your export db a singlebyte cs.
    This means, a char can need more than 1 byte.
    Try this before import (and before create tables!!):
    alter system set nls_length_semantics=char;Greetings
    Sven

Maybe you are looking for

  • Issue while sending SMS from JavaMail in languages like Russian & Japanese

    Hi, We have a requirement to send multi lingual SMS to users mobile number. We are using JavaMail API for this. The only changes we have done to send SMS (instead of EMAIL) using a standard JavaMail code are – 1)     Use the suffix @sms after the mob

  • After saving and publishing to folder, changes are not shown...

    I have successfully published 2 updated versions of my website to the same folder on my computer. I have just completed the third update, saved it, published it, yet after uploading the changes aren't shown on the site itself. I have closed/re-opened

  • Non transactional data source and ejb transaction

    Inside an ejb method with trans-attribute = Required, Do a bunch of things using a transactional data source and a bunch of things using a non trasnactional data source. Looks like the time spent doing the non-transactional data source related work d

  • CKMLCP  Material ledger closing

    Hi, We are doing closing entries for material ledter. After executing all the steps, when we are checking the detail of materials in VIEW of CKMLCP, it looks for some of the material the Closing entry doesn't took plance All the other activities like

  • CIMC in-band Management, V2.2.1b

    < V2.2.1b, there was a limitation, that FI out of band and VIP PLUS KVM IP addresses had to be in the same IP subnet, Vlan. I assume, that now with in-band KVM management (2.2.1b), this limitation no more exists. can someone please confirm ?