Example: Configuring the Oracle Database as the VTA Database

To connect VTA with an Oracle database:

  1. For each VTA, create a database that uses the schema for the SRC-VTA.

    To view the database schemas, see the following files, which are created when you install the Solaris package for the SRC-VTA.

    • /opt/UMC/conf/vta/quota/vtadata_oracle.sql
    • /opt/UMC/conf/vta/bucket/vtadata_oracle.sql
  2. Install the JDBC driver that allows your database to connect to the J2EE application server. For example, for JBoss, copy the driver to /opt/UMC/jboss/server/default/lib.
  3. Modify the Oracle data source configuration file with the access parameters (connection-url, user-name and password) and copy it to /opt/UMC/jboss/server/default/deploy.
    • For quota VTA—quota/oracle-quotavta-ds.xml
    • For bucket VTA—bucket/oracle-bucketvta-ds.xml
  4. Change the data source name and mapping in the EAR file for the VTA (quotavta.ear or bucketvta.ear).
    1. Extract datamgr.jar from the EAR file.

      For example:

      jar xvf quotavta.ear datamgr.jar
    2. Extract META-INF/jbosscmp-jdbc.xml from datamgr.jar.
      jar xvf datamgr.jar META-INF/jbosscmp-jdbc.xml
    3. In the jbosscmp-jdbc.xml file, change the data source name in the <jbosscmp-jdbc><defaults></defaults></jbosscmp-jdbc> XML element.
      • For quota VTA—java:/Quota/OracleDS
      • For bucket VTA—java:/Bucket/OracleDS
    4. In the jbosscmp-jdbc.xml file, change the data source mapping in the <jbosscmp-jdbc><defaults></defaults></jbosscmp-jdbc> XML element.
      • For Oracle8—Oracle 8
      • For Oracle 9i or higher—Oracle9i
    5. Replace META-INF/jbosscmp-jdbc.xml in datamgr.jar.
      jar uvf datamgr.jar META-INF/jbosscmp-jdbc.xml
    6. Replace datamgr.jar in the EAR file.

      For example:

      jar uvf quotavta.ear datamgr.jar