Part 10: Database Architecture, Schema Maintenance & Upgrades
Comprehensive Scenario Analysis: Physical RDBMS vs Repository Mismatches, DDL Execution Exceptions, Repository Merges, ADM Migrations, and Database Upgrade Utilities.
Key Prefixes: SBL-DBC-*****, SBL-UPG-*****, SBL-UDA-*****
A custom field added to a Table object in Web Tools specifies `Length = 100`, but the underlying RDBMS table column was created as `VARCHAR2(50)` or lacks the column entirely.
Apply / DDL schema wizard in Web Tools / Siebel Tools, or manually execute the generated DDL script against the target RDBMS instance to align physical schema with repository metadata.
A developer delivered a schema workspace modifying table columns, but the physical database schema was not updated prior to launching Object Manager components.
ddldict or execute ddlctl utility from server command line: ddlctl -u <user> -p <pass> -c <dsn> -d <table_owner> -f schema.sql -a apply.
Creating or altering a table fails because the Table Space or Index Space property configured in Siebel Tools does not exist in the target database instance.
TS_DATA / TS_INDEX).
A field marked as Nullable = FALSE in Siebel repository allows `NULL` values in physical database definition, causing runtime integrity check failures.
During execution of srvrupgwiz (Siebel Upgrade Wizard), the three-way merge algorithm encounters non-mergeable attribute conflicts between Prior Customer, Prior Standard, and New Standard repositories.
Repository Merge Conflicts, select correct resolution attribute, and override status.
The repository upgrade utility fails because the specified Ancestor Repository version does not match the actual database patch baseline.
S_APP_VER table. Ensure correct Upgrade Driver file (`dcupg.ucfg` / `mupg.ucfg`) corresponding to exact source and target release versions is supplied.
Custom repository objects reference parent components that were deprecated or deleted in the target release version, halting automatic merge execution.
siebdev /c config.cfg /u sadmin /p pass /d Server /verifyAllObjects. Delete or fix orphaned repository references.
Massive concurrent insert operations into `S_REPOSITORY` and related metadata tables lock up database temp space, causing transaction timeouts during merge.
An ADM deployment task importing administrative data (e.g., LOVs, Responsibilities, State Models) fails because dependent target objects are missing in the target database environment.
siebsrvr/ADM. Sequence ADM project deployments so parent configuration data is migrated prior to child dependent records.
High-volume ADM XML data packages take longer to process than allowed by the Object Manager synchronous invocation HTTP/SOAP session limit.
An imported ADM record references user keys (such as `Position` or `Organization`) that exist in the source environment but do not match target environment records.
Attempting to deploy an ADM package fails because the target Data Type or Project object is marked `Inactive = TRUE` in target environment's ADM configuration views.
Administration - Application Deployment Manager -> Data Types. Ensure all required deployment data types are active and enabled.
Executing `Apply DDL` or database schema updates fails because the database connection account lacks `ALTER TABLE`, `CREATE INDEX`, or `GRANT` privileges.
GRANT ALTER ANY TABLE, CREATE ANY INDEX TO siebel;.
Attempting to modify a physical table structure fails because active Siebel Object Manager threads or batch jobs hold exclusive locks on the target table.
Creating or altering a table fails with database error (e.g., `ORA-01658: unable to create INITIAL extent`) due to storage quota limits on the target tablespace.
DDL statement execution fails when attempting to alter or drop a column that is referenced by foreign key constraints on child tables.
The Upgrade Wizard halts execution because an underlying SQL script (e.g., `schema.sql` or `upgphys.sql`) encountered an unhandled RDBMS SQL exception.
siebsrvr/log/upgphys/output/*.log. Locate the failing SQL statement, execute manual fix in RDBMS query tool, mark the step as complete in state file (`state.log`), and resume upgrade wizard.
The upgrade engine fails to initialize because required dictionary export files (`schema.ddl` / `custrep.dat`) are missing from the `siebsrvr/DBOUTPUT` directory.
repimexp.exe to generate fresh repository data files prior to launching `srvrupgwiz`.
Manual edits to upgrade configuration driver files (`.ucfg`) introduce invalid script dependency ordering, causing prerequisite tables to be missing during script execution.
Bulk table data migration SQL steps crash the upgrade thread due to database transaction log or UNDO space saturation during mass update queries.