![]() |
![]() |
|
|
The WebLogic Personalization Server Database Schema
This chapter documents the database schema for the WebLogic Personalization Server. This topic includes the following sections:
The Entity-Relation Diagram
Figure 1-25 shows the logical Entity-Relation diagram for the WebLogic Personalization Server database. See the subsequent sections in this chapter for information about the data type syntax.
Figure 1-25 Entity-Relation Diagram for the WebLogic Personalization Server
List of Tables Comprising the WebLogic Personalization Server
The WebLogic Personalization Server is comprised of the following tables. In this list, the tables are sorted by functionality:
Ads and Placeholders tables
The PLACEHOLDER Database Table
The PLACEHOLDER _PREVIEW Database Table
Documentation Management tables
The WLCS_COLUMN_INFORMATION Database Table
The WLCS_DOCUMENT Database Table
The WLCS_DOCUMENT_METADATA Database Table
Rule Editor tables
The WLCS_RULESET_DEFINITION Database Table
User Management tables
The WLCS_GROUP_HIERARCHY Database Table
The WLCS_GROUP_PERSONALIZATION Database Table
The WLCS_UNIFIED_PROFILE_TYPE Database Table
The WLCS_USER_GROUP_CACHE Database Table
The WLCS_USER_GROUP_HIERARCHY Database Table
The WLCS_USER_PERSONALIZATION Database Table
Common tables used by both WebLogic Personalization Server and WebLogic Commerce Server
The WLCS_CATEGORIES Database Table
The WLCS_SCHEMA Database Table
The WLCS_ENTITY_ID Database Table
The WLCS_BOOKMARKS Database Table
The WLCS_IS_ALIVE Database Table
The WLCS_LDAP_CONFIG Database Table
The WLCS_SEQUENCER Database Table
The WLCS_USER_PERSONALIZATION Database Table
The WLCS_UUP_EXAMPLE Database Table
The WLCS_PROP_MD Database Table
The WLCS_PROP_MD_BOOLEAN Database Table
The WLCS_PROP_MD_INTEGER Database Table
The WLCS_PROP_MD_FLOAT Database Table
The WLCS_PROP_MD_TEXT Database Table
The WLCS_PROP_MD_DATETIME Database Table
The WLCS_PROP_MD_USER_DEFINED Database Table
The WLCS_PROP_ID Database Table
The WLCS_PROP_BOOLEAN Database Table
The WLCS_PROP_INTEGER Database Table
The WLCS_PROP_FLOAT Database Table
The WLCS_PROP_TEXT Database Table
The WLCS_PROP_DATETIME Database Table
The WLCS_PROP_USER_DEFINED Database Table
The Personalization Server Data Dictionary
In this section, the WebLogic Personalization Server schema tables are arranged alphabetically as a data dictionary.
Note: Even though the following documentation references "foreign keys" to various tables, these constraints do not currently exist in this release of WebLogic Personalization Server. However, they will be (available in future releases) in place in future versions of WebLogic Personalization Server and we want you to be aware of these relationships now.
The AD_BUCKET Database Table
Table 1-1 describes the AD_BUCKET table. This table maintains content queries for ads.
The Primary Key is AD_BUCKET_ID.
The AD_COUNT Database Table
Table 1-2 describes the AD_COUNT table. This table tracks the number of times the ads are displayed and clicked through.
The Primary Keys are AD_IDENTIFIER and CONTAINER_UID.
The PLACEHOLDER Database Table
Table 1-3 describes the PLACEHOLDER table. This table maps placeholder and content bucket services (e.g., ad bucket service).
The Primary Key is PLACEHOLDER_NAME.
The PLACEHOLDER _PREVIEW Database Table
Table 1-4 describes the PLACEHOLDER_PREVIEW table. This table is used as a mechanism to hold the placeholder for previewing purposes only.
The Primary Key is PPREVIEW_ID.
The WLCS_BOOKMARKS Database Table
Table 1-5 describes the WLCS_BOOKMARKS table. This table is used by the Example portal and is not used except for demonstration purposes. It contains information used in the Bookmark portlet.
The Primary Key is NAME and OWNER.
The WLCS_CATEGORIES Database Table
Table 1-6 describes the WLCS_CATEGORIES table. This table is used to store category information for the portal portion of the WebLogic Personalization Server application.
Note: The CATEGORY feature has not been implemented at this time and, therefore, this table is not being used/populated.
The Primary Key is NID.
The WLCS_COLUMN_INFORMATION Database Table
Table 1-7 describes the WLCS_COLUMN_INFORMATION table. This table is used to store column definition information for each portal and category.
The Primary Key is comprised of PORTAL_NID, CATEGORY_NID and COLUMN_ORDER.
The WLCS_DOCUMENT Database Table
Table 1-8 describes the WLCS_DOCUMENT table. This table is used to store information pertinent to each document used within the WebLogic Personalization Server.
The Primary Key is ID.
The WLCS_DOCUMENT_METADATA Database Table
Table 1-9 describes the WLCS_DOCUMENT_METADATA table. This table is used to store user-defined properties associated with each document.
The Primary Key is ID and NAME.
The WLCS_ENTITY_ID Database Table
Table 1-10 describes the WLCS_ENTITY_ID table. Any ConfigurableEntity within the system will have an entry in this table.
The Primary Key is comprised of JNDI_HOME_NAME and PK_STRING.
The WLCS_GROUP Database Table
Table 1-11 describes the WLCS_GROUP table. This table is used to maintain each of the various Group identifiers.
The Primary Key is comprised of IDENTIFIER.
The WLCS_GROUP_HIERARCHY Database Table
Table 1-12 describes the WLCS_GROUP_HIERARCHY table. This table stores relationship information between groups.
The Primary Key is comprised of PARENT_ID and CHILD_ID.
The WLCS_GROUP_PERSONALIZATION Database Table
Table 1-13 describes the WLCS_GROUP_PERSONALIZATION table. Portals can be associated to groups and this table helps establish those relationships and maintain specific information for the group.
The Primary Key is comprised of PORTAL_NID, CATEGORY_NID, PORTLET_NID and GROUP_NID.
The WLCS_IS_ALIVE Database Table
Table 1-14 describes the WLCS_IS_ALIVE table. This table is used by the JDBC connection pools to insure the connection to the database is still alive.
The WLCS_LDAP_CONFIG Database Table
Table 1-15 describes the WLCS_LDAP_CONFIG table. This table holds configuration information for LDAP functionality within the User Management module.
The Primary Key is LDAP_PROPERTY.
Column Name |
Data Type |
Description and Recommendations |
---|---|---|
LDAP_PROPERTY |
VARCHAR(100) |
The property name. |
LDAP_VALUE |
VARCHAR(254) |
The property value. |
The WLCS_PROP_BOOLEAN Database Table
Table 1-16 describes the WLCS_PROP_BOOLEAN table. This table stores property values for boolean properties.
The Primary Key is PROPERTY_ID.
The WLCS_PROP_DATETIME Database Table
Table 1-17 describes the WLCS_PROP_DATETIME table. This table stores property values for date and time properties.
The Primary Key is PROPERTY_ID.
The WLCS_PROP_FLOAT Database Table
Table 1-18 describes the LCS_PROP_FLOAT table. This table stores property values for float properties.
The Primary Key is PROPERTY_ID.
The WLCS_PROP_ID Database Table
Table 1-19 describes the WLCS_PROP_ID table. Any property assigned to a ConfigurableEntity has a unique PROPERTY_ID. This identifier and associated information is stored here.
The Primary Key is ENTITY_ID, PROPERTY_NAME and SCOPE_NAME.
The WLCS_PROP_INTEGER Database Table
Table 1-20 describes the WLCS_PROP_INTEGER table. This table stores property values for integer properties.
The Primary Key is PROPERTY_ID.
The WLCS_PROP_MD Database Table
Table 1-21 describes the WLCS_PROP_MD table. This table stores information about defined properties in a property set.
The Primary Keys are SCHEMA_ID and PROPERTY_NAME.
The WLCS_PROP_MD_BOOLEAN Database Table
Table 1-22 describes the WLCS_PROP_MD_BOOLEAN table. This table stores property set definitions for the boolean property type.
The Primary Key is PROPERTY_META_DATA_ID.
The WLCS_PROP_MD_DATETIME Database Table
Table 1-23 describes the WLCS_PROP_MD_DATETIME table. This table stores property set definitions for the date and time property type.
The Primary Key is PROPERTY_META_DATA_ID.
The WLCS_PROP_MD_FLOAT Database Table
Table 1-24 describes the WLCS_PROP_MD_FLOAT table. This table stores property set definitions for the float property type.
The Primary Key is PROPERTY_META_DATA_ID.
The WLCS_PROP_MD_INTEGER Database Table
Table 1-25 describes the WLCS_PROP_MD_INTEGER table. This table stores property set definitions for the Integer property type.
The Primary Key is PROPERTY_META_DATA_ID.
The WLCS_PROP_MD_TEXT Database Table
Table 1-26 describes the WLCS_PROP_MD_TEXT table. This table stores property set definitions for the text property type.
The Primary Key is PROPERTY_META_DATA_ID.
The WLCS_PROP_MD_USER_DEFINED Database Table
Table 1-27 describes the WLCS_PROP_MD_USER_DEFINED table. This table stores property set definitions for any user defined property type.
The Primary Key is PROPERTY_META_DATA_ID.
The WLCS_PROP_TEXT Database Table
Table 1-28 describes the WLCS_PROP_TEXT table. This table stores property values for the text for the text property type.
The Primary Key is PROPERTY_ID.
The WLCS_PROP_USER_DEFINED Database Table
Table 1-29 describes the WLCS_PROP_USER_DEFINED table. This table stores property values for any user-defined property type.
The Primary Key is PROPERTY_ID.
The RULESET Database Table
Table 1-30 describes the RULESET table. This table contains all of the rule sets.
The Primary Key is NAME.
The WLCS_RULESET_DEFINITION Database Table
Table 1-31 describes the WLCS_RULESET_DEFINITION table. This table contains all rule sets.
The Primary Key is NAME.
The WLCS_SCHEMA Database Table
Table 1-32 describes the WLCS_SCHEMA table. This table stores property set definitions.
The Primary Keys are SCHEMA_GROUP_NAME and SCOPE_NAME.
The WLCS_SEQUENCER Database Table
Table 1-33 describes the WLCS_SEQUENCER table. The WLCS_SEQUENCER table is used to maintain all of the sequence identifiers (for example, property_meta_data_id_sequence, and so on) used in the application.
The Primary Key is SEQUENCE_NAME.
The WLCS_TODO Database Table
Table 1-34 describes the WLCS_TODO table. This table is used by the Example portal and is not used except for demonstration purposes. It contains information used in the To Do portlet.
The Primary Key is ITEM and OWNER.
The WLCS_UIDS Database Table
Table 1-35 describes the WLCS_UIDS table. This table stores sequence information in a generic database independent format.
The Primary Key is SID.
The WLCS_UNIFIED_PROFILE_TYPE Database Table
Table 1-36 describes the WLCS_UNIFIED_PROFILE_TYPE table. This table allows registration of classes which extend the ProvidedUser class.
The Primary Key is TYPE_NAME.
The WLCS_USER Database Table
Table 1-37 describes the WLCS_USER table. This table stores all user login/password combinations.
The Primary Key is IDENTIFIER.
The WLCS_USER_GROUP_CACHE Database Table
Table 1-38 describes the WLCS_USER_GROUP_CACHE table. In the event of a deep group hierarchy, this table will flatten the group hierarchy and enables quick group membership searches.
Note: The startup process GroupCache is disabled by default. This table will only be used if enabled.
The Primary Key is comprised of both USER_NAME and GROUP_NAME.
The WLCS_USER_GROUP_HIERARCHY Database Table
Table 1-39 describes the WLCS_USER_GROUP_HIERARCHY table. This table allows you to store associated users and groups.
The Primary Key is comprised of USER_ID and GROUP_ID.
The WLCS_USER_PERSONALIZATION Database Table
Table 1-40 describes the WLCS_USER_PERSONALIZATION table.This table contains personalized portal information for the user.
The Primary Key is comprised of PORTAL_NID, CATEGORY_NID, GROUP_NID, USER_NID and PORTLET_NID.
The WLCS_UUP_EXAMPLE Database Table
Table 1-41 describes the WLCS_UUP_EXAMPLE table. This is an example of how to use the Unified Profile Types.
The Primary Key is NAME.
The SQL Scripts Used to Create the Database
The database schemas for the WebLogic Personalization Server, WebLogic Commerce Server and BEA's Campaign Manager for WebLogic are all created by executing the create_all script for the target database environment.
Cloudscape
For Cloudscape, execute one of the following:
Oracle
For Oracle, from the command line, move to the following directory:
WL_COMMERCE_HOME/db/oracle/8.1.6
After logging into SQL*Plus, simply execute the create_all.sql script (e.g., @create_all).
SQL Server
For SQL Server, you must first edit the create_all.bat file and properly identify the values for the variables used in identifying the target database environment (for example, user_id, password and server). Once the variables have been set properly, execute create_all.bat from the command line.
Defined Constraints
For some of the database tables described earlier in this chapter, the SQL files define constraints. Table 1-42 shows the table name and describes the constraint(s) defined for it.
![]() |
![]() |
![]() |
|
Copyright © 2001 BEA Systems, Inc. All rights reserved.
|