| Name | Type | Nullable | Default value | Comment |
|---|---|---|---|---|
| TABLE_ID | NUMBER(38) | N | ||
| TABLE_NAME | VARCHAR2(4000.0) | Y | ||
| ADP | CLOB | N | ||
| ADMIN_URL | VARCHAR2(1000.0) | Y | ||
| CREATION_USER | NUMBER(38) | Y | ||
| MODIFIED_DATE | DATE | Y |
| Constraint Name | Columns |
|---|---|
| SYS_C002088034 | TABLE_ID |
| Constraint Name | Check Condition |
|---|---|
| SYS_C002088033 | "ADP" IS NOT NULL |
| Constraint Name | Columns | Referenced table | Referenced Constraint | On Delete Rule |
|---|---|---|---|---|
| SYS_C002088035 | CREATION_USER | USERS | SYS_C002087135 | NO ACTION |
| Option | Settings |
|---|---|
| Index Organized | No |
| Generated by Oracle | No |
| Clustered | No |
| Nested | No |
| Temporary | No |
| Index Name | Type | Unuqueness | Columns |
|---|---|---|---|
| SYS_C002088034 | NORMAL | UNIQUE | TABLE_ID |
| SYS_IL0001976845C00003$$ | LOB | UNIQUE |
| Table | Constraint |
|---|---|
| PORTAL_TABLE_PAGE_MAP | SYS_C002088041 |
| Name: PORTAL_TABLES_AUDIT_TRIGGER |
|---|
CREATE TRIGGER portal_tables_audit_trigger
before update or delete on portal_tables
for each row
REFERENCING NEW AS NEW OLD AS OLD
When (old.table_name is not null and (new.table_name is null or old.table_name <> new.table_name))
or (old.admin_url is not null and (new.admin_url is null or old.admin_url <> new.admin_url))
or (old.modified_date is not null and (new.modified_date is null or old.modified_date <> new.modified_date))
begin
insert into portal_tables_audit
(audit_id, table_id, table_name, adp, admin_url, modified_date, creation_user, audit_time)
values
(portal_audit_id_sequence.nextval, :old.table_id, :old.table_name, :old.adp, :old.admin_url, :old.modified_date, :old.creation_user, sysdate);
end;
|