Siebel Repository tables
Submitted by dtadmin on Sun, 09/04/2011 - 21:41
Siebel Repository refers to set of tables in which Siebel object definition and scripts are stored. These tables store meta data about Siebel Objects and also contain the configuration information shown in Siebel Tools
S_APPLET : Stores Siebel Applets information
S_BUSCOMP : Stores Siebel Business Component Information
S_FIELD : Stores all the Field details
Situation: Generate a report with all the active BC Fields and their corresponding Table/Column/Data Type/Length. Doing this manually in Siebel Tools is a monotonous and tedious task and it will take lot of time to complete it.
Solution : Directly querying on the Siebel Repository tables which would yield the desired output.
Sample query for Account BC:
SELECT FIELD.NAME"BC Field Name",FIELD.join_name "Join Name",NULL"Table_Name",field.col_name "Column Name",decode(TEMP.COLTYPE,'V','Varchar','U','UTC Date Time','D','Date','C','Char','X','Long','T',' DateTime','N','Number','L','Clob','S','Date Time')"Data TYPE",TEMP.COLLENGTH "Length"
FROM
SIEBEL.S_REPOSITORY REP,
SIEBEL.S_BUSCOMP BC,
SIEBEL.S_FIELD FIELD,
(selectdistincttab.name"TNAME",col.name"COLNAME",col.data_type "COLTYPE",col.length"COLLENGTH"from
siebel.s_table tab,
siebel.s_column col,
siebel.s_repository rep
where
tab.REPOSITORY_ID=REP.ROW_ID AND
REP.NAME='Siebel Repository' and
col.tbl_id=tab.row_id and
tab.namelike'S_%')temp
WHERE
field.col_name =temp.COLNAME(+)and
field.join_name=temp.TNAME (+)and
field.inactive_flg='N'and
field.col_name isnotnulland
FIELD.BUSCOMP_ID=BC.ROW_ID AND
BC.NAME='Account' AND
BC.REPOSITORY_ID=REP.ROW_ID AND
REP.NAME='Siebel Repository'
Note : The above SQL query is a sample one and based on individuals requirement query should be tuned to get the required data from Repository tables
Related Articles:
Browse Categories
User login
Navigation
Popular content
- Autosys Job Handling (13,610)
- GE UNIVERSAL REMOTE INSTRUCTIONS (12,357)
- Siebel User properties (9,094)
- Test 1 - NC Drivers License Test - DMV Question Dump (8,770)
- Making a View "Read Only" based on a criteria: Aspect User Property (4,216)
- Siebel Application Response Measurement (SARM) (4,144)
- Siebel Predefined Queries (PDQ) – Reference (4,080)
- Siebel Server Component Event Logging (3,662)
- Strategies for Building Team Cohesion (3,153)
- How to create the EBC’s in Siebel (3,085)
Readers who viewed this page, also viewed:
No related items were found.
