|
|
|
|
Examples Index Ant PointBase Run Examples with PointBase Samples and Tutorials
|
|
You must run some of the examples in this distribution with an Oracle database, rather than with the demonstration PointBase Server. These examples require that tables be created and exist in an Oracle DBMS before you can run the example. Also, if you simply prefer to run your examples with an Oracle DBMS, use the instructions below as guidelines.
Before you begin, you will need to know certain information about the Oracle database you are using. You will need to know the following values:
DBSERVER--corresponds to the host name of your database server.
DBPORT--corresponds to the port number your database server is running on.
SID--corresponds to the Oracle System Identifier (SID); a logical name that identifies the particular instance of the database
you are running.
USER--corresponds to the name of your database server.
PASSWORD--corresponds to the password of your database server.
These values are used to populate the database tables
and enable WebLogic to run examples with an Oracle database. Most of your database configuration information for WebLogic
, including these values, will be found in the tnsnames.ora file. This configuration file contains net service names
mapped to connection descriptors that Oracle uses. The tnsnames.ora file typically resides in $ORACLE_HOME/network/admin on UNIX
platforms and ORACLE_HOME\network\admin on Windows platforms. More information on your Oracle setup can be found in the
listner.ora file that resides in the same directory. For more information on Oracle and WebLogic see
http://e-docs.bea.com/wls/docs70/oracle/index.html
also, http://docs.oracle.com/.
JDBC node and then the Connection Pools node. Click on oraclePool.
jdbc:oracle:thin:@server:port:sid. The last three entries in this URL are
not valid. Fill in your appropriate
server name for @server, this corresponds to the Oracle DBSERVER value mentioned above. Replace the port number with the value
your Oracle database uses. Also fill in the appropriate sid, your Oracle System Identifier. Here's an example of what the url
could like:
jdbc:oracle:thin:@myserver:1548:oracle1
Tx Data Sources node and then the examples-dataSource-oracleXAPool. Select the Targets tab and target
the examples server by adding it to the chosen column. Click apply.
examples.properties file for your Oracle setup.
These variables must be set to the same values as you previously entered through the
Administration Console in step 3. The examples.properties
file is located in WL_HOME\samples\server\src. The following is an example of how they
might be set:
DBSERVER=myserver
DBPORT=1548
SID=oracle1
USER=adminOracle
PASSWORD=alligator
setexamplesEnv script provided in the WL_HOME
\samples\server\config\examples directory. Your PATH should also include the appropriate DLL for your version of Oracle.
Add WL_HOME\server\bin\oci817_8 or WL_HOME\server\bin\oci901_8 to your PATH
ant db_setup_oracle
This Ant target creates the tables and performs the necessary database setup.
If you are using a database server other than PointBase Server or Oracle, create a db_setup_[db vendor] target in the build.xml file, similar to db_setup_oracle, setting the driver class, url, and DBSERVER, USER, and PASSWORD
|
Last updated: April 2002 |
|
|
Home |
Corporate Info |
News |
Solutions |
Products |
Partners |
Services |
Events |
Download |
How to Buy
Copyright © 2002, BEA Systems, Inc. All rights reserved.
Required browser: Netscape 4.0 or higher, or Microsoft Internet Explorer 4.0 or higher.
Contact BEA