BEA Logo BEA WebLogic Enterprise Release 5.0

  Corporate Info  |  News  |  Solutions  |  Products  |  Partners  |  Services  |  Events  |  Download  |  How To Buy

 

   WLE Doc Home   |   Samples & Related Topics   |   Previous   |   Next   |   Contents   |   Index

Setting Up the Database

The University sample applications use a database (the University database) to store all the data (for example, course names and course summaries) used in the sample applications. Before you can build and run the University sample applications, you need to install and set up the database.

This appendix describes the setup process for the database. For details about the steps, see the product documentation for the database you are using.

Database Support

The University sample applications shipped with version 4.2 of the WebLogic Enterprise (WLE) software can be used with Oracle version 7.3.3 or greater. Table A-1 lists what version of Oracle is supported on each operating system.

Table A-1 Database Support

Operating System

Version of Oracle Database Supported

Solaris SPARC version 2.6

Oracle version 7.3.4 Enterprise Edition for Sun SPARC

Solaris SPARC version 7.0

Oracle version 7.3.4 for Solaris version 2.7

HP-UX version 10.20

Oracle version 7.3.3 for HP-UX version 10.20

HP-UX version 11.0

Oracle version 8.0 for HP-UX version 11.0

IBM AIX version 4.3.2

Oracle version 8.0.4 for IBM AIX

Compaq Tru64

Oracle version 7.3.3 for Compaq Tru64

Sequent version 4.4.2

Oracle version 8.0.4 Client for Sequent Dynix

SGI IRIX version 6.5 IP27

Oracle version 8.0.4 Client for SGI IRIX

Windows NT/Intel version 4.0

Oracle version 7.3.3. for Windows NT and Oracle version 8.0 for Windows NT

Windows NT/Alpha version 4.0

Oracle version 7.3.3.0 for Windows NT and Oracle version 8.0 for Windows NT

Setup Instructions for the Oracle Database

You can use the Oracle database in the following manner:

Setup for Local Database Instance

If you are using a local instance of the Oracle database, you need to install the following Oracle components:

Use the default database created by the Oracle installation program. You need the connection string for the Oracle database and the default user id and password. Refer to the Oracle product documentation for information about obtaining this information.

Once the Oracle software is installed, you need to start the daemon for the Oracle database. The daemon is generally started as part of the start-up process for your machine. You also need to enable an XA Resource Manager and set privileges so that the XA Resource Manager can manage the interaction between the Oracle database and the sample applications (v$xatrans$ ).

Enter the following command to enable an XA Resource Manager that works with the University sample applications:

SQL>grant select on v$xatrans$ to public;

Note: Enter the following additional command only if you are using version 8.0 of the Oracle database.

SQL>grant select on dba_pending_transactions to user;

SQL>commit;

where user is the default user of the Oracle database.

For more information about performing these steps, see the Oracle product documentation.

Instructions for initializing the Oracle database are included in the descriptions of building the individual sample applications.

Setup for Remote Database Instance

If you are using a remote instance of the Oracle database (e.g. a database running on another machine), you need to install the following Oracle components:

In order to use a remote instance of the Oracle database, you need to define an alias for the database. You need the following information:

Use the SQL *Net Easy Configuration Utility to define an alias for the remote instance of the Oracle database. For more information about performing these steps, see the Oracle product documentation.

The database you are accessing needs an XA Resource Manager enabled with privileges that allow interaction between the database and the sample applications (v$xatrans$ ).

Enter the following command to enable an XA Resource Manager that works with the University sample applications:

SQL>grant select on v$xatrans$ to public;

Note: Enter the following additional command only if you are using version 8.0 of the Oracle database.

SQL>grant select on dba_pending_transactions to user;

SQL>commit;

where user is the default user of the Oracle database.

Instructions for initializing the Oracle database are included in the descriptions of building the individual sample applications.