![]() |
![]() |
|
|
Portal Management Database Schema
This topic documents the database schema for the WebLogic Portal package. This topic includes the following sections:
The Entity-Relation Diagram
Figure 7-1 shows the logical Entity-Relation diagram for the WebLogic Commerce Server Portal and Portlet tables in the Commerce database. See the subsequent sections in this chapter for information about the data type syntax.
Figure 7-1 Entity-Relation Diagram for the Portal and Portlet Tables
Figure 7-2 lists the tables used for the example portal. Figure 7-2 Tables Used for the Sample Portal
List of Tables Comprising the Portal Management Package
Portal Management tables:
The PORTAL_P13N Database Table
The PORTAL_P13N_LAYOUT Database Table
The PORTAL_P13N_SKIN_POOL Database Table
The PORTAL_PAGE Database Table
The PORTAL_PAGE_P13N Database Table
The PORTAL_PAGE_P13N_LAYOUT_POOL Database Table
The PORTLET_P13N Database Table
The PORTLET_PLACEHOLDER Database Table
The RESOURCE_GROUP_ADMIN Database Table
The Portal Management Data Dictionary
In this section, the Portal, Portlet, and Sample Portal schema tables are arranged alphabetically as a data dictionary.
The LAYOUT Database Table
Table 7-1 describes the LAYOUT table. This table stores all of the defined layouts.
For information on defined constraints in this table, see Defined Constraints.
The Primary Key is LAYOUT_ID.
The PORTAL Database Table
Table 7-2 describes the PORTAL table. This table stores all of the defined portals.
The Primary Key is PORTAL_ID.
The PORTAL_P13N Database Table
Table 7-3 describes the PORTAL_P13N table. This table stores all of the personalized portal records.
The Primary Key is PORTAL_P13N_ID.
The PORTAL_P13N_LAYOUT Database Table
Table 7-4 describes the PORTAL_P13N_LAYOUT table. This table stores all available layouts for each of the personalized portals.
For information on defined constraints in this table, see Defined Constraints.
The Primary Key is comprised of both LAYOUT_ID and PORTAL_P13N_ID.
The PORTAL_P13N_SKIN_POOL Database Table
Table 7-5 describes the PORTAL_P13N_SKIN_POOL table. This table stores all available skins for a personalized portal.
For information on defined constraints in this table, see Defined Constraints.
The Primary Key is comprised of both PORTAL_P13N_ID and SKIN_ID.
The PORTAL_PAGE Database Table
Table 7-6 describes the PORTAL_PAGE table. This table stores all of the defined pages for each portal.
For information on defined constraints in this table, see Defined Constraints.
The Primary Key is PORTAL_PAGE_ID.
The PORTAL_PAGE_P13N Database Table
Table 7-7 describes the PORTAL_PAGE_P13N table. This table stores information for each personalized portal page.
For information on defined constraints in this table, see Defined Constraints.
The Primary Key is PORTAL_PAGE_P13N_ID.
The PORTAL_PAGE_P13N_LAYOUT_POOL Database Table
Table 7-8 describes the PORTAL_PAGE_P13N_LAYOUT_POOL table. This table stores all available layouts for each of the personalized portal pages.
For information on defined constraints in this table, see Defined Constraints.
The Primary Key is comprised of both PORTAL_PAGE_P13N_ID and LAYOUT_ID.
The PORTLET Database Table
Table 7-9 describes the PORTLET table. This table stores all of the defined portlets.
For information on defined constraints in this table, see Defined Constraints.
The Primary Key is PORTLET_ID.
The PORTLET_P13N Database Table
Table 7-10 describes the PORTLET_P13N table. This table holds all personalized portlet records.
For information on defined constraints in this table, see Defined Constraints.
The Primary Key is PORTLET_P13N_ID.
The PORTLET_PLACEHOLDER Database Table
Table 7-11 describes the PORTLET_PLACEHOLDER table.
For information on defined constraints in this table, see Defined Constraints.
The Primary Key is PORTLET_PLACEHOLDER_ID.
The RESOURCE_GROUP_ADMIN Database Table
Table 7-12
describes the RESOURCE_GROUP_ADMIN table. This table is used to store administrative privileges for various users.The Primary Key is comprised of both RESOURCE_GROUP_TAXONOMY and DELEGATED_TO_USER_NAME.
The SKIN Database Table
Table 7-13 describes the SKIN table. This table holds all of the defined skins.
For information on defined constraints in this table, see Defined Constraints.
The Primary Key is comprised of SKIN_ID.
The SQL Scripts Used to Create the Database
The database schemas for WebLogic Portal and WebLogic Personalization Server are all created by executing the create_all script for the target database environment.
Scripts
Regardless of your database, execute one of the following to generate the necessary database objects for the modules desired ( WebLogic Portal, WebLogic Personalization Server, Commerce services, Campaign services and Sample Portal):
The following are the various directories underneath WL_COMMERCE_HOME/db
(as seen in a UNIX environment):
PORTAL_HOME/db/cloudscape/351
PORTAL_HOME/db/oracle/817
Note: In this documentation,PORTAL_HOME is used to designate the directory where the product is installed.
Each of the databases supported have the same number of scripts in each of their subdirectories. The scripts are listed and described in Table 7-14 below.
Defined Constraints
Various constraints are defined and used in the Portal database schema. These constraints can be found in the following scripts:
portal_create_fkeys.sql—contains the Foreign Keys
portal_create_tables.sql—contains the Check Constraints
![]() |
![]() |
|
Copyright © 2002 BEA Systems, Inc. All rights reserved.
|