Example: Configuring the Oracle Database as the VTA Database
To connect VTA with an Oracle database:
- 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
- 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.
- 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
- Change the data source name and mapping
in the EAR file for the VTA (quotavta.ear or bucketvta.ear).
- Extract datamgr.jar from the EAR
file.
For example:
- jar xvf quotavta.ear datamgr.jar
- Extract META-INF/jbosscmp-jdbc.xml from datamgr.jar.
- jar xvf datamgr.jar META-INF/jbosscmp-jdbc.xml
- 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
- 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
- Replace META-INF/jbosscmp-jdbc.xml in datamgr.jar.
- jar uvf datamgr.jar META-INF/jbosscmp-jdbc.xml
- Replace datamgr.jar in the EAR file.
For example:
- jar uvf quotavta.ear datamgr.jar
- Extract datamgr.jar from the EAR
file.
