Note
- This view is available starting with V4.2.3 for V4.2.x.
- This view is available starting with V4.3.4 for V4.3.x.
Purpose
The DBA_OB_FORMAT_OUTLINES view records the details of the Format Outline for the current tenant.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| CREATE_TIME | TIMESTAMP(6) | NO | The timestamp when the Format Outline was created. |
| MODIFY_TIME | TIMESTAMP(6) | NO | The timestamp when the Format Outline was last modified. |
| TENANT_ID | NUMBER(38) | NO | The ID of the tenant. |
| DATABASE_ID | NUMBER(38) | NO | The ID of the database. |
| OUTLINE_ID | NUMBER(38) | NO | The ID of the execution plan outline. |
| DATABASE_NAME | VARCHAR2(128) | YES | The name of the database. |
| OUTLINE_NAME | VARCHAR2(128) | YES | The name of the execution plan outline. |
| VISIBLE_SIGNATURE | CLOB | NO | The deserialized result of the Signature. |
| FORMAT_SQL_TEXT | CLOB | YES | The FORMAT SQL TEXT generated in the ON clause when the execution plan outline was created. |
| OUTLINE_TARGET | CLOB | NO | The SQL statement specified in the TO clause when the execution plan outline was created. |
| OUTLINE_SQL | CLOB | NO | The SQL statement containing the complete execution plan outline information. |
| FORMAT_SQL_ID | VARBINARY(32) | YES | The MD5 value of the FORMAT SQL TEXT that generated this record. |
| OUTLINE_CONTENT | CLOB | NO | The complete execution plan outline information. |
Sample query
Query the Format Outline information for the current tenant.
obclient> SELECT * FROM SYS.DBA_OB_FORMAT_OUTLINES\G
The query result is as follows:
*************************** 1. row ***************************
CREATE_TIME: 29-DEC-25 04.14.40.191146 PM
MODIFY_TIME: 29-DEC-25 04.14.40.191146 PM
TENANT_ID: 1004
DATABASE_ID: 201006
OUTLINE_ID: 500004
DATABASE_NAME: SYS
OUTLINE_NAME: MY_OUTLINE
VISIBLE_SIGNATURE: SELECT * FROM EMPLOYEES WHERE DEPARTMENT_ID > = ?
FORMAT_SQL_TEXT: SELECT * FROM employees WHERE department_id >= 10
OUTLINE_TARGET:
OUTLINE_SQL:
FORMAT_SQL_ID: NULL
OUTLINE_CONTENT: /*+BEGIN_OUTLINE_DATA FULL(@"SEL$1" "SYS"."EMPLOYEES"@"SEL$1") OPTIMIZER_FEATURES_ENABLE('4.3.5.0') END_OUTLINE_DATA*/
1 row in set