Академический Документы
Профессиональный Документы
Культура Документы
0 Essentials
1 of 24
Module Objectives
Standalone table 1:1 extension table 1:M extension table Intersection table
3 of 24
Business Requirement
A companys business requirement may include:
Adding new fields to capture additional data Creating new business components to capture additional business entities
Solution Extending the Siebel database may be the required
solution
Addition of columns to existing tables Creation of new standalone database tables to support new business components
4 of 24
Prior to Extending..
5 of 24
Unused columns
6 of 24
See if the new BC can be mapped to an existing and appropriate 1:M extension table
Verify that the business component has the correct M:1 relationship to the parent BC
New BC has M:1 relationship with parent (Contact). In this case can use S_CONTACT_XM as base table for BC
7 of 24
Requires propagating the changes to: Other developers during development stage Mobile users after development for applications in production Production enterprise after development and testing
Extending the database requires creating additional object definitions
to:
Map columns in the EIM tables needed to import and export data to the extension columns and tables Specify how data for these extension columns and tables are to be routed to remote users (Dock Objects)
8 of 24
Extension columns on Base tables Standalone tables 1:1 extension tables 1:M extension tables Intersection tables
Creates new object definitions for database extension
9 of 24
If the column is not populated very often, use an existing column in an extension table, if available If field is often populated, avoid join overhead by using adding an extension column to base table
If data for column appears in:
A form applet - use an existing column in an extension table A list applet - use an extension column in the base table
10 of 24
Check out the appropriate project Select the table to be extended Create a new column with the desired properties (Right-Click->New Record) The name of the new column is automatically prefixed with X_
11 of 24
Standalone table 1:1 extension table 1:M extension table Intersection table
12 of 24
13 of 24
Ten system columns an extra PAR_ROW_ID column as a foreign key column to the base table Two indexes: P1 index on ROW_ID U1 index on PAR_ROW_ID and CONFLICT_ID
When creating a 1:1 extension table, specify the base table as input
each other
S_PROD_INT PART_NUM UOM_CD ROW_ID
Data Layer Configuration
CX_PROD_INT_X
NEW_COLUMN PAR_ROW_ID
ROW_ID
NAME
14 of 24
have an existing 1:M extension table Provide a parent table as input to the Table Wizard
Must be of type Data(Public)
15 of 24
Type Data(Public) Ten system columns nine required and PAR_ROW_ID columns TYPE and NAME columns Three indexes: P1 index on ROW_ID U1 index on PAR_ROW_ID, TYPE, NAME and CONFLICT_ID M1 index on TYPE and NAME
16 of 24
17 of 24
Type Data (Intersection) Nine system columns Two foreign key columns Three indexes: P1 index on ROW_ID U1 index on two foreign key columns, TYPE and CONFLICT_ID F1 index on foreign key to second parent table
18 of 24
Changes must be tested locally before applying them onto the server database
Reduces likelihood of undesired changes to server schema
19 of 24
Applies schema changes or generates DDL script Changes are preserved across Siebel application upgrades
Compile relevant objects and projects Test the changes locally before checking in to server
DDL: Stands for Data Definition Language, the subset of SQL statements used to define and manipulate database objects. Typical SQL commands used in DDL are CREATE, DELETE, ALTER, and so on.
20 of 24
Press the Activate button on the Table object on the server machine, to make the changes visible. The Activate button updates the schema version in the S_APP_VER table. The schema version signals clients, mobile clients and server components that a schema change has been made and that they need to update their own logical or physical schemas
Compile and test against the server database
21 of 24
They need to Get or Check Out the project and apply the changes locally Alternatively, re-extract the developers and have them get all projects
22 of 24
Module Highlights
Alternatives to extending Siebel database schema:
Utilize unused columns in an existing table Use an existing 1:M extension table if appropriate Extend the Siebel database in Siebel Tools: Add an extension column to an existing table Use the Table wizard to create a new table: Standalone 1:1 extension table 1:M extension table Intersection table Best practices to modify Siebel database schema: Apply changes locally and test Propagate changes to the server database Propagate changes to other developers 33
23 of 24
Lab
In the lab, you will:
24 of 24