Setting up Oracle

These instructions assume that you are using an Oracle database and guide you through the following tasks:

Note. When you create and access the database tables, be aware of the following issues:

Before following these instructions you must have created a database.

  1. Open a new document in a text editor, copy and paste the following script, which creates the DATAWAREHOUSE table, into the document, name the file datawarehouse2.sql and save the file.
    DROP TABLE DATAWAREHOUSE;
    CREATE TABLE DATAWAREHOUSE ( MESSAGEDATA BLOB NOT NULL , PUTTIMESTAMP TIMESTAMP  NOT NULL  , DBINSERTTIMESTAMP DATE DEFAULT CURRENT_TIMESTAMP );
          
  2. In a command window that you have opened to access your database, move to the folder that contains datawarehouse2.sql and enter the following command:
    sqlplus <uid>/<password> @datawarehouse2.sql

    Wait for the script to finish running. If you are running the script for the first time, the following message is displayed:

    ORA-00942: table or view does not exist
    Ignore this message. The message is displayed because the script attempts to remove an existing table called DATAWAREHOUSE before it creates a new table, but if you have not run the script before, the script cannot find the existing table.
  3. Create an ODBC definition to the database with USERDB as the data source name (DSN).

    For instructions, see Enabling ODBC connections to the databases in the WebSphere Message Broker documentation.

Back to Setting up the database

Back to sample home