FUN_SPM_SQL_INSTANCES
This table contains the individual SQL statements that roll up into a master SQL statement. It contains the SQL ID, SQL signature, SQL handle, and full SQL text of each SQL statement.
Details
-
Schema: FUSION
-
Object owner: FUN
-
Object type: TABLE
-
Tablespace: REFERENCE
Primary Key
Name | Columns |
---|---|
FUN_SPM_SQL_INSTANCES_PK |
SQL_INSTANCE_ID |
Columns
Name | Datatype | Length | Precision | Not-null | Comments |
---|---|---|---|---|---|
SQL_INSTANCE_ID | NUMBER | 18 | Yes | Unique sequence generated identifier for the SQL instance. | |
SQL_MASTER_ID | NUMBER | 18 | Yes | Unique identifier for the SQL master that the SQL instance is associated with. | |
RDBMS_SQL_ID | VARCHAR2 | 13 | Yes | SQL identifier for the SQL query for which a plan was seeded. | |
RDBMS_SQL_SIGNATURE | NUMBER | Yes | Signature calculated on the normalized SQL text. The normalization includes the removal of white space and the uppercasing of all non-literal strings. | ||
RDBMS_SQL_HANDLE | VARCHAR2 | 128 | Yes | Unique SQL identifier in string form used as a search key. | |
RDBMS_SQL_FULLTEXT | CLOB | Yes | The full text for the SQL statement exposed as CLOB column. | ||
OBSOLETE_FLAG | VARCHAR2 | 1 | Yes | Indicates whether the SQL instance is obsolete. Possible values are Y and N. | |
CUSTOM_PLAN_ACTION_CODE | VARCHAR2 | 30 | Yes | Code to indicate how to handle the seeded plan when a custom plan exists for the SQL in the SPM baseline. | |
SEED_DATA_SOURCE | VARCHAR2 | 512 | Source of seed data record. A value of 'BULK_SEED_DATA_SCRIPT' indicates that record was bulk loaded. Otherwise, specifies the name of the seed data file. | ||
ORA_SEED_SET1 | VARCHAR2 | 1 | Yes | Oracle internal use only. Indicates the edition-based redefinition (EBR) context of the row for SET1. Context values are Y or N. | |
ORA_SEED_SET2 | VARCHAR2 | 1 | Yes | Oracle internal use only. Indicates the edition-based redefinition (EBR) context of the row for SET2. Context values are Y or N. | |
OBJECT_VERSION_NUMBER | NUMBER | 9 | Yes | Used to implement optimistic locking. This number is incremented every time that the row is updated. The number is compared at the start and end of a transaction to detect whether another session has updated the row since it was queried. | |
CREATED_BY | VARCHAR2 | 64 | Yes | Who column: indicates the user who created the row. | |
CREATION_DATE | TIMESTAMP | Yes | Who column: indicates the date and time of the creation of the row. | ||
LAST_UPDATED_BY | VARCHAR2 | 64 | Yes | Who column: indicates the user who last updated the row. | |
LAST_UPDATE_DATE | TIMESTAMP | Yes | Who column: indicates the date and time of the last update of the row. | ||
LAST_UPDATE_LOGIN | VARCHAR2 | 32 | Who column: indicates the session login associated to the user who last updated the row. |
Indexes
Index | Uniqueness | Tablespace | Columns |
---|---|---|---|
FUN_SPM_SQL_INSTANCES_U1 | Unique | DEFAULT | SQL_INSTANCE_ID, ORA_SEED_SET1 |
FUN_SPM_SQL_INSTANCES_U11 | Unique | DEFAULT | SQL_INSTANCE_ID, ORA_SEED_SET2 |
FUN_SPM_SQL_INSTANCES_U12 | Unique | DEFAULT | SQL_MASTER_ID, RDBMS_SQL_ID, ORA_SEED_SET2 |
FUN_SPM_SQL_INSTANCES_U2 | Unique | DEFAULT | SQL_MASTER_ID, RDBMS_SQL_ID, ORA_SEED_SET1 |