![]() ![]() ![]() ![]() ![]() ![]() ![]() |
This chapter describes the steps necessary to use a Microsoft SQL Server database with WebLogic Portal, and includes the following sections:
Review this entire chapter and any release notes before proceeding. The tasks in this chapter should be performed by a database administrator.
Before proceeding, read Overview of Enterprise-Quality Database Configuration for WebLogic Portal.
The database creation scripts install domain-specific tables. It is recommended that you work with a database administrator to modify the sample scripts and create database devices, file groups, databases, and database users for your SQL Server environment.
Multiple databases are required if you have multiple domains, or to run multiple environments using the same SQL Server instance (for example, if you want to run development and system test from a single SQL Server installation). GroupSpace requires a separate database, as do any additional content management repositories.
Note: | The SQL Server JDBC driver requires additional steps to configure stored procedures for JTA and to place a required DLL on the SQL Server database host. For instructions, see the WebLogic Server Type 4 JDBC Drivers Guide. |
To configure a SQL Server database:
WL_HOME
\portal\db\sql_server\admin
directory. See
Table 5-1, Database Scripts and Usage Notes, on page 5-7 and the comments in the scripts for additional information.
To configure the main WebLogic Portal database, follow these steps:
create_database.sql
script and modify it appropriately for your environment. See
Table 5-1, Database Scripts and Usage Notes, on page 5-7 and the comments in the script for additional information. create_database.sql
script as a user with System Administrator privileges (normally the sa
user). For example, from osql
: osql -Usa -SSQLSERVER -e -icreate_database.sql -ocreate_database.log
The output from running create_database.sql
is written to create_database.log
. Verify that there are no errors in the log file before proceeding.
Follow the remaining steps only if you want to create database objects manually rather than using the Configuration Wizard. To perform the remaining steps using the Configuration Wizard, see Creating WebLogic Configurations Using the Configuration Wizard.
database.properties
file for edit.database=sql_server
. sql_server.user=@DB_USER@
sql_server.password=@DB_PASSWORD@
sql_server.url=jdbc:bea:sqlserver://@DB_HOST@:@DB_PORT@;DatabaseName=@DB_NAME@
BEA_HOME
\user_projects\domains\
myPortalDomain directory. create_db.cmd
.
If any error messages are displayed, check the create_db.log
file for additional information.
Note: | After running the create_db script, you need to update the database administrator password. See Note About Creating or Refreshing Database Objects for detailed information. |
appsGroupSpaceDataSource
), which point to PointBase by default, with data sources that point to SQL Server. You can configure them using the WebLogic Server Administration Console or choose from the samples provided and update them for your database environment. Sample jdbc.xml
definition files for each database and driver that BEA supports are available in the WL_HOME
\portal\db\jdbc\
database_driver directory; for example, sql_server_bea
. Follow the instructions in the WL_HOME
\portal\db\jdbc\README.txt
file.
To configure the GroupSpace database, follow these steps:
create_database.sql
script and modify it appropriately for your environment. See
Table 5-1, Database Scripts and Usage Notes, on page 5-7 and the comments in the script for additional information. create_database.sql
script as a user with System Administrator privileges (normally the sa
user). For example, from osql
: osql -Usa -SSQLSERVER -e -icreate_database.sql -ocreate_database.log
The output from running create_database.sql
is written to create_database.log
. Verify that there are no errors in the log file before proceeding.
Follow the remaining steps only if you want to create database objects manually rather than using the Configuration Wizard. To perform the remaining steps using the Configuration Wizard, see Creating WebLogic Configurations Using the Configuration Wizard.
groupspace_database.properties
file for edit.database=sql_server
. sql_server.user=@DB_USER@
sql_server.password=@DB_PASSWORD@
sql_server.url=jdbc:bea:sqlserver://@DB_HOST@:@DB_PORT@;DatabaseName=@DB_NAME@
BEA_HOME
\user_projects\domains\
myPortalDomain directory.create_db.cmd -database.properties=groupspace_database.properties
If any error messages are displayed, check the create_db_groupspace.log file for additional information.
Note: | After running create_db script, you need to update the database administrator password. See Note About Creating or Refreshing Database Objects for detailed information. |
appsGroupSpaceDataSource
JDBC data source (which points to PointBase by default) with a data source that points to SQL Server. Use the WebLogic Server Administration Console or update the sample jdbc.xml
definition file provided for each database and driver that BEA supports, in the WL_HOME
\portal\db\jdbc\
database_driver directory; for example sql_server_bea
. Follow the instructions in the WL_HOME
\portal\db\jdbc\README.txt
file.
For improved performance, you might want to store behavior tracking events in a different location from other WebLogic Portal database objects. For more information about behavior tracking, see Setting Up Events and Behavior Tracking in the Interaction Management Guide.
Note: | By default, behavior tracking database objects are created in the same database as other WebLogic Portal database objects. You need to perform these steps only if you are configuring a separate database for behavior tracking events. |
To create a separate database for behavior tracking:
bt_create_database.sql
file for your environment, as indicated in the instructions contained in the scripts and in
Table 5-1, Database Scripts and Usage Notes, on page 5-7.bt_create_database.sql
as a user with system administrator privileges. For example, from osql
:
osql -Usa -SSQLSERVER -e -ibt_create_database.sql -obt_create_database.log
If any error messages are displayed, check the bt_create_database.log
file for additional information.
WL_HOME
\common\p13n\db\sql_server.
WEBLOGIC_EVENT
and run the following scripts:WL_HOME
\portal\db\data\required
:p13n.trackingDataSource
with that data source and then remove p13n.trackingDataSource
from p13nDataSource
.
Table 5-1 describes the scripts that enable you to configure the Oracle database.
Creates a database. You must create a main WebLogic Portal database. If you want to use GroupSpace, you must also create that database. You must also create a database for any additional content management repositories.
Make a copy of this script and edit it to replace
<<WEBLOGIC>> with the appropriate database name, database owner user, and password for each database you create. You must also edit the script to reflect valid disk locations for DATA devices, LOG devices, and the WEBLOGIC_INDEX file group; you may also need to modify file sizes. Put DATA and LOG files on separate physical disks and away from any system database files, unless you are using RAID devices.
When you run the script with these values, it creates the
WEBLOGIC database, the WEBLOGIC_INDEX file group, and WEBLOGIC database owner (dbo) user login. An alias is created to make WEBLOGIC the dbo user in the database. It also sets the WEBLOGIC database as the default database for the WEBLOGIC user.
|
|||||||
Runs
sp_updatestats to compute database statistics needed for the database optimizer. Update statistics periodically and whenever any significant changes in database data occur. (This is done by default for SQL Server databases with the AUTO_UPDATE_STATISTICS database option enabled.)
When set to ON (the default), existing statistics are automatically updated when the data in the tables has changed.
|
|||||||
Creates the
WEBLOGIC_EVENT database and WEBLOGIC_EVENT database owner user login. An alias is created to make WEBLOGIC_EVENT the database owner (dbo) user in the database.
|
![]() ![]() ![]() |