Before you can run the BI Beans samples, you must perform the following installation and configuration tasks:
Oracle Technology Network (http://otn.oracle.com
) contains the latest
versions of the BI Beans tutorials and samples. These learning materials are
continually updated, so ensure that you use the most recent versions.
Create a directory on your computer to store the samples.
Download the zip file that contains the samples from Oracle Technology
Network (http://otn.oracle.com/sample_code/products/bib/samples903.zip
)
into this samples directory.
Unzip the files. The samples are stored in the following subdirectories
under the samples directory:
common
forecast
javaclient
ldapsync
portal
rdbmssync
servlet
struts
If you have not already done so, then you must install the Oracle9i database schema called BIBDEMO, which is required by the BI Beans samples and tutorials.
If you have not already done so, then you must install and configure the BI Beans Catalog, which allows end users to save and share analyses.
In JDeveloper, settings in the BI Designer determine how the samples connect to Oracle9i OLAP and to the BI Beans Catalog. To enable the samples to connect correctly, you must update the settings in the common project that you download with the samples. Updating this one project ensures correct connection information for all the samples except the portal, struts and forecasting samples. You must update the individual settings in each of these projects.
Start JDeveloper and open the workspace /common/CommonWorkspace.jws
under the samples directory
In the JDeveloper Navigator, open the CommonWorkspace.jws
workspace, then open the common.jpr
project.
Right-click CommonBIDesigner1 and select Settings from the popup menu.
Specify the Oracle9i OLAP data source connection:
Choose Edit.
On the Authentication tab, change the ID and password, if necessary. You must perform this step if you changed the ID and password when you installed the BIBDEMO schema.
Select the Connection tab and change the Hostname, Port, and SID appropriately.
Choose Test to test your connection.
If the connection test succeeds, then choose OK to save the Oracle9i OLAP connection information.
Choose OK to close the BI Beans project settings.
From the File menu, choose Save All.
Right-click common.jpr and select Build Project
from the popup menu.
Within JDeveloper, open the workspace /javaclient/javaclient.jws
under the samples directory
In the JDeveloper Navigator, open the javaclient.jws
workspace,
then open the bootstrap.jpr
project.
Right-click bootstrap.jpr and select Rebuild bootstrap.jpr from the popup menu.
You are now ready to begin using the samples.
Note: To deploy any of the samples, you must first deploy the
common.jpr project under the CommonWorkspace.jws
workspace and
make sure the runtime settings for the project is going against a BI Beans Catalog
in a database. This is because each of the samples reference the following configration
files under the common.jpr project for runtime connection to Oracle OLAP and
the BI Beans Catalog: commonBIConfig1.xml, commonBIConfig1Catalog.dad, and commonBIConfig1OLAP.dad.