SaveSqlTuningSetAsDetails

class oci.database_management.models.SaveSqlTuningSetAsDetails(**kwargs)

Bases: object

Save current list of Sql statements into another Sql tuning set. It takes either credentialDetails or databaseCredential. It’s recommended to provide databaseCredential

Attributes

LOAD_OPTION_INSERT A constant which can be used with the load_option property of a SaveSqlTuningSetAsDetails.
LOAD_OPTION_MERGE A constant which can be used with the load_option property of a SaveSqlTuningSetAsDetails.
LOAD_OPTION_UPDATE A constant which can be used with the load_option property of a SaveSqlTuningSetAsDetails.
PLAN_FILTER_FIRST_GENERATED A constant which can be used with the plan_filter property of a SaveSqlTuningSetAsDetails.
PLAN_FILTER_FIRST_LOADED A constant which can be used with the plan_filter property of a SaveSqlTuningSetAsDetails.
PLAN_FILTER_LAST_GENERATED A constant which can be used with the plan_filter property of a SaveSqlTuningSetAsDetails.
PLAN_FILTER_LAST_LOADED A constant which can be used with the plan_filter property of a SaveSqlTuningSetAsDetails.
PLAN_FILTER_MAX_BUFFER_GETS A constant which can be used with the plan_filter property of a SaveSqlTuningSetAsDetails.
PLAN_FILTER_MAX_DIRECT_WRITES A constant which can be used with the plan_filter property of a SaveSqlTuningSetAsDetails.
PLAN_FILTER_MAX_DISK_READS A constant which can be used with the plan_filter property of a SaveSqlTuningSetAsDetails.
PLAN_FILTER_MAX_ELAPSED_TIME A constant which can be used with the plan_filter property of a SaveSqlTuningSetAsDetails.
PLAN_FILTER_MAX_OPTIMIZER_COST A constant which can be used with the plan_filter property of a SaveSqlTuningSetAsDetails.
RANKING_MEASURE1_BUFFER_GETS A constant which can be used with the ranking_measure1 property of a SaveSqlTuningSetAsDetails.
RANKING_MEASURE1_CPU_TIME A constant which can be used with the ranking_measure1 property of a SaveSqlTuningSetAsDetails.
RANKING_MEASURE1_DIRECT_WRITES A constant which can be used with the ranking_measure1 property of a SaveSqlTuningSetAsDetails.
RANKING_MEASURE1_DISK_READS A constant which can be used with the ranking_measure1 property of a SaveSqlTuningSetAsDetails.
RANKING_MEASURE1_ELAPSED_TIME A constant which can be used with the ranking_measure1 property of a SaveSqlTuningSetAsDetails.
RANKING_MEASURE1_OPTIMIZER_COST A constant which can be used with the ranking_measure1 property of a SaveSqlTuningSetAsDetails.
RANKING_MEASURE2_BUFFER_GETS A constant which can be used with the ranking_measure2 property of a SaveSqlTuningSetAsDetails.
RANKING_MEASURE2_CPU_TIME A constant which can be used with the ranking_measure2 property of a SaveSqlTuningSetAsDetails.
RANKING_MEASURE2_DIRECT_WRITES A constant which can be used with the ranking_measure2 property of a SaveSqlTuningSetAsDetails.
RANKING_MEASURE2_DISK_READS A constant which can be used with the ranking_measure2 property of a SaveSqlTuningSetAsDetails.
RANKING_MEASURE2_ELAPSED_TIME A constant which can be used with the ranking_measure2 property of a SaveSqlTuningSetAsDetails.
RANKING_MEASURE2_OPTIMIZER_COST A constant which can be used with the ranking_measure2 property of a SaveSqlTuningSetAsDetails.
RANKING_MEASURE3_BUFFER_GETS A constant which can be used with the ranking_measure3 property of a SaveSqlTuningSetAsDetails.
RANKING_MEASURE3_CPU_TIME A constant which can be used with the ranking_measure3 property of a SaveSqlTuningSetAsDetails.
RANKING_MEASURE3_DIRECT_WRITES A constant which can be used with the ranking_measure3 property of a SaveSqlTuningSetAsDetails.
RANKING_MEASURE3_DISK_READS A constant which can be used with the ranking_measure3 property of a SaveSqlTuningSetAsDetails.
RANKING_MEASURE3_ELAPSED_TIME A constant which can be used with the ranking_measure3 property of a SaveSqlTuningSetAsDetails.
RANKING_MEASURE3_OPTIMIZER_COST A constant which can be used with the ranking_measure3 property of a SaveSqlTuningSetAsDetails.
RECURSIVE_SQL_HAS_RECURSIVE_SQL A constant which can be used with the recursive_sql property of a SaveSqlTuningSetAsDetails.
RECURSIVE_SQL_NO_RECURSIVE_SQL A constant which can be used with the recursive_sql property of a SaveSqlTuningSetAsDetails.
UPDATE_CONDITION_NEW A constant which can be used with the update_condition property of a SaveSqlTuningSetAsDetails.
UPDATE_CONDITION_NULL A constant which can be used with the update_condition property of a SaveSqlTuningSetAsDetails.
UPDATE_CONDITION_OLD A constant which can be used with the update_condition property of a SaveSqlTuningSetAsDetails.
UPDATE_OPTION_ACCUMULATE A constant which can be used with the update_option property of a SaveSqlTuningSetAsDetails.
UPDATE_OPTION_REPLACE A constant which can be used with the update_option property of a SaveSqlTuningSetAsDetails.
attribute_list Gets the attribute_list of this SaveSqlTuningSetAsDetails.
basic_filter Gets the basic_filter of this SaveSqlTuningSetAsDetails.
commit_rows Gets the commit_rows of this SaveSqlTuningSetAsDetails.
create_new [Required] Gets the create_new of this SaveSqlTuningSetAsDetails.
credential_details Gets the credential_details of this SaveSqlTuningSetAsDetails.
database_credential Gets the database_credential of this SaveSqlTuningSetAsDetails.
destination_sql_tuning_set_description Gets the destination_sql_tuning_set_description of this SaveSqlTuningSetAsDetails.
destination_sql_tuning_set_name [Required] Gets the destination_sql_tuning_set_name of this SaveSqlTuningSetAsDetails.
destination_sql_tuning_set_owner Gets the destination_sql_tuning_set_owner of this SaveSqlTuningSetAsDetails.
is_ignore_null Gets the is_ignore_null of this SaveSqlTuningSetAsDetails.
load_option Gets the load_option of this SaveSqlTuningSetAsDetails.
name [Required] Gets the name of this SaveSqlTuningSetAsDetails.
owner Gets the owner of this SaveSqlTuningSetAsDetails.
plan_filter Gets the plan_filter of this SaveSqlTuningSetAsDetails.
ranking_measure1 Gets the ranking_measure1 of this SaveSqlTuningSetAsDetails.
ranking_measure2 Gets the ranking_measure2 of this SaveSqlTuningSetAsDetails.
ranking_measure3 Gets the ranking_measure3 of this SaveSqlTuningSetAsDetails.
recursive_sql Gets the recursive_sql of this SaveSqlTuningSetAsDetails.
result_limit Gets the result_limit of this SaveSqlTuningSetAsDetails.
result_percentage Gets the result_percentage of this SaveSqlTuningSetAsDetails.
show_sql_only Gets the show_sql_only of this SaveSqlTuningSetAsDetails.
update_attributes Gets the update_attributes of this SaveSqlTuningSetAsDetails.
update_condition Gets the update_condition of this SaveSqlTuningSetAsDetails.
update_option Gets the update_option of this SaveSqlTuningSetAsDetails.

Methods

__init__(**kwargs) Initializes a new SaveSqlTuningSetAsDetails object with values from keyword arguments.
LOAD_OPTION_INSERT = 'INSERT'

A constant which can be used with the load_option property of a SaveSqlTuningSetAsDetails. This constant has a value of “INSERT”

LOAD_OPTION_MERGE = 'MERGE'

A constant which can be used with the load_option property of a SaveSqlTuningSetAsDetails. This constant has a value of “MERGE”

LOAD_OPTION_UPDATE = 'UPDATE'

A constant which can be used with the load_option property of a SaveSqlTuningSetAsDetails. This constant has a value of “UPDATE”

PLAN_FILTER_FIRST_GENERATED = 'FIRST_GENERATED'

A constant which can be used with the plan_filter property of a SaveSqlTuningSetAsDetails. This constant has a value of “FIRST_GENERATED”

PLAN_FILTER_FIRST_LOADED = 'FIRST_LOADED'

A constant which can be used with the plan_filter property of a SaveSqlTuningSetAsDetails. This constant has a value of “FIRST_LOADED”

PLAN_FILTER_LAST_GENERATED = 'LAST_GENERATED'

A constant which can be used with the plan_filter property of a SaveSqlTuningSetAsDetails. This constant has a value of “LAST_GENERATED”

PLAN_FILTER_LAST_LOADED = 'LAST_LOADED'

A constant which can be used with the plan_filter property of a SaveSqlTuningSetAsDetails. This constant has a value of “LAST_LOADED”

PLAN_FILTER_MAX_BUFFER_GETS = 'MAX_BUFFER_GETS'

A constant which can be used with the plan_filter property of a SaveSqlTuningSetAsDetails. This constant has a value of “MAX_BUFFER_GETS”

PLAN_FILTER_MAX_DIRECT_WRITES = 'MAX_DIRECT_WRITES'

A constant which can be used with the plan_filter property of a SaveSqlTuningSetAsDetails. This constant has a value of “MAX_DIRECT_WRITES”

PLAN_FILTER_MAX_DISK_READS = 'MAX_DISK_READS'

A constant which can be used with the plan_filter property of a SaveSqlTuningSetAsDetails. This constant has a value of “MAX_DISK_READS”

PLAN_FILTER_MAX_ELAPSED_TIME = 'MAX_ELAPSED_TIME'

A constant which can be used with the plan_filter property of a SaveSqlTuningSetAsDetails. This constant has a value of “MAX_ELAPSED_TIME”

PLAN_FILTER_MAX_OPTIMIZER_COST = 'MAX_OPTIMIZER_COST'

A constant which can be used with the plan_filter property of a SaveSqlTuningSetAsDetails. This constant has a value of “MAX_OPTIMIZER_COST”

RANKING_MEASURE1_BUFFER_GETS = 'BUFFER_GETS'

A constant which can be used with the ranking_measure1 property of a SaveSqlTuningSetAsDetails. This constant has a value of “BUFFER_GETS”

RANKING_MEASURE1_CPU_TIME = 'CPU_TIME'

A constant which can be used with the ranking_measure1 property of a SaveSqlTuningSetAsDetails. This constant has a value of “CPU_TIME”

RANKING_MEASURE1_DIRECT_WRITES = 'DIRECT_WRITES'

A constant which can be used with the ranking_measure1 property of a SaveSqlTuningSetAsDetails. This constant has a value of “DIRECT_WRITES”

RANKING_MEASURE1_DISK_READS = 'DISK_READS'

A constant which can be used with the ranking_measure1 property of a SaveSqlTuningSetAsDetails. This constant has a value of “DISK_READS”

RANKING_MEASURE1_ELAPSED_TIME = 'ELAPSED_TIME'

A constant which can be used with the ranking_measure1 property of a SaveSqlTuningSetAsDetails. This constant has a value of “ELAPSED_TIME”

RANKING_MEASURE1_OPTIMIZER_COST = 'OPTIMIZER_COST'

A constant which can be used with the ranking_measure1 property of a SaveSqlTuningSetAsDetails. This constant has a value of “OPTIMIZER_COST”

RANKING_MEASURE2_BUFFER_GETS = 'BUFFER_GETS'

A constant which can be used with the ranking_measure2 property of a SaveSqlTuningSetAsDetails. This constant has a value of “BUFFER_GETS”

RANKING_MEASURE2_CPU_TIME = 'CPU_TIME'

A constant which can be used with the ranking_measure2 property of a SaveSqlTuningSetAsDetails. This constant has a value of “CPU_TIME”

RANKING_MEASURE2_DIRECT_WRITES = 'DIRECT_WRITES'

A constant which can be used with the ranking_measure2 property of a SaveSqlTuningSetAsDetails. This constant has a value of “DIRECT_WRITES”

RANKING_MEASURE2_DISK_READS = 'DISK_READS'

A constant which can be used with the ranking_measure2 property of a SaveSqlTuningSetAsDetails. This constant has a value of “DISK_READS”

RANKING_MEASURE2_ELAPSED_TIME = 'ELAPSED_TIME'

A constant which can be used with the ranking_measure2 property of a SaveSqlTuningSetAsDetails. This constant has a value of “ELAPSED_TIME”

RANKING_MEASURE2_OPTIMIZER_COST = 'OPTIMIZER_COST'

A constant which can be used with the ranking_measure2 property of a SaveSqlTuningSetAsDetails. This constant has a value of “OPTIMIZER_COST”

RANKING_MEASURE3_BUFFER_GETS = 'BUFFER_GETS'

A constant which can be used with the ranking_measure3 property of a SaveSqlTuningSetAsDetails. This constant has a value of “BUFFER_GETS”

RANKING_MEASURE3_CPU_TIME = 'CPU_TIME'

A constant which can be used with the ranking_measure3 property of a SaveSqlTuningSetAsDetails. This constant has a value of “CPU_TIME”

RANKING_MEASURE3_DIRECT_WRITES = 'DIRECT_WRITES'

A constant which can be used with the ranking_measure3 property of a SaveSqlTuningSetAsDetails. This constant has a value of “DIRECT_WRITES”

RANKING_MEASURE3_DISK_READS = 'DISK_READS'

A constant which can be used with the ranking_measure3 property of a SaveSqlTuningSetAsDetails. This constant has a value of “DISK_READS”

RANKING_MEASURE3_ELAPSED_TIME = 'ELAPSED_TIME'

A constant which can be used with the ranking_measure3 property of a SaveSqlTuningSetAsDetails. This constant has a value of “ELAPSED_TIME”

RANKING_MEASURE3_OPTIMIZER_COST = 'OPTIMIZER_COST'

A constant which can be used with the ranking_measure3 property of a SaveSqlTuningSetAsDetails. This constant has a value of “OPTIMIZER_COST”

RECURSIVE_SQL_HAS_RECURSIVE_SQL = 'HAS_RECURSIVE_SQL'

A constant which can be used with the recursive_sql property of a SaveSqlTuningSetAsDetails. This constant has a value of “HAS_RECURSIVE_SQL”

RECURSIVE_SQL_NO_RECURSIVE_SQL = 'NO_RECURSIVE_SQL'

A constant which can be used with the recursive_sql property of a SaveSqlTuningSetAsDetails. This constant has a value of “NO_RECURSIVE_SQL”

UPDATE_CONDITION_NEW = 'NEW'

A constant which can be used with the update_condition property of a SaveSqlTuningSetAsDetails. This constant has a value of “NEW”

UPDATE_CONDITION_NULL = 'NULL'

A constant which can be used with the update_condition property of a SaveSqlTuningSetAsDetails. This constant has a value of “NULL”

UPDATE_CONDITION_OLD = 'OLD'

A constant which can be used with the update_condition property of a SaveSqlTuningSetAsDetails. This constant has a value of “OLD”

UPDATE_OPTION_ACCUMULATE = 'ACCUMULATE'

A constant which can be used with the update_option property of a SaveSqlTuningSetAsDetails. This constant has a value of “ACCUMULATE”

UPDATE_OPTION_REPLACE = 'REPLACE'

A constant which can be used with the update_option property of a SaveSqlTuningSetAsDetails. This constant has a value of “REPLACE”

__init__(**kwargs)

Initializes a new SaveSqlTuningSetAsDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • credential_details (oci.database_management.models.SqlTuningSetAdminCredentialDetails) – The value to assign to the credential_details property of this SaveSqlTuningSetAsDetails.
  • database_credential (oci.database_management.models.DatabaseCredentialDetails) – The value to assign to the database_credential property of this SaveSqlTuningSetAsDetails.
  • show_sql_only (int) – The value to assign to the show_sql_only property of this SaveSqlTuningSetAsDetails.
  • owner (str) – The value to assign to the owner property of this SaveSqlTuningSetAsDetails.
  • name (str) – The value to assign to the name property of this SaveSqlTuningSetAsDetails.
  • destination_sql_tuning_set_name (str) – The value to assign to the destination_sql_tuning_set_name property of this SaveSqlTuningSetAsDetails.
  • destination_sql_tuning_set_description (str) – The value to assign to the destination_sql_tuning_set_description property of this SaveSqlTuningSetAsDetails.
  • destination_sql_tuning_set_owner (str) – The value to assign to the destination_sql_tuning_set_owner property of this SaveSqlTuningSetAsDetails.
  • create_new (int) – The value to assign to the create_new property of this SaveSqlTuningSetAsDetails.
  • basic_filter (str) – The value to assign to the basic_filter property of this SaveSqlTuningSetAsDetails.
  • plan_filter (str) – The value to assign to the plan_filter property of this SaveSqlTuningSetAsDetails. Allowed values for this property are: “LAST_GENERATED”, “FIRST_GENERATED”, “LAST_LOADED”, “FIRST_LOADED”, “MAX_ELAPSED_TIME”, “MAX_BUFFER_GETS”, “MAX_DISK_READS”, “MAX_DIRECT_WRITES”, “MAX_OPTIMIZER_COST”
  • recursive_sql (str) – The value to assign to the recursive_sql property of this SaveSqlTuningSetAsDetails. Allowed values for this property are: “HAS_RECURSIVE_SQL”, “NO_RECURSIVE_SQL”
  • result_percentage (float) – The value to assign to the result_percentage property of this SaveSqlTuningSetAsDetails.
  • result_limit (int) – The value to assign to the result_limit property of this SaveSqlTuningSetAsDetails.
  • ranking_measure1 (str) – The value to assign to the ranking_measure1 property of this SaveSqlTuningSetAsDetails. Allowed values for this property are: “ELAPSED_TIME”, “CPU_TIME”, “OPTIMIZER_COST”, “BUFFER_GETS”, “DISK_READS”, “DIRECT_WRITES”
  • ranking_measure2 (str) – The value to assign to the ranking_measure2 property of this SaveSqlTuningSetAsDetails. Allowed values for this property are: “ELAPSED_TIME”, “CPU_TIME”, “OPTIMIZER_COST”, “BUFFER_GETS”, “DISK_READS”, “DIRECT_WRITES”
  • ranking_measure3 (str) – The value to assign to the ranking_measure3 property of this SaveSqlTuningSetAsDetails. Allowed values for this property are: “ELAPSED_TIME”, “CPU_TIME”, “OPTIMIZER_COST”, “BUFFER_GETS”, “DISK_READS”, “DIRECT_WRITES”
  • attribute_list (str) – The value to assign to the attribute_list property of this SaveSqlTuningSetAsDetails.
  • load_option (str) – The value to assign to the load_option property of this SaveSqlTuningSetAsDetails. Allowed values for this property are: “INSERT”, “UPDATE”, “MERGE”
  • update_option (str) – The value to assign to the update_option property of this SaveSqlTuningSetAsDetails. Allowed values for this property are: “REPLACE”, “ACCUMULATE”
  • update_condition (str) – The value to assign to the update_condition property of this SaveSqlTuningSetAsDetails. Allowed values for this property are: “OLD”, “NEW”, “NULL”
  • update_attributes (str) – The value to assign to the update_attributes property of this SaveSqlTuningSetAsDetails.
  • is_ignore_null (bool) – The value to assign to the is_ignore_null property of this SaveSqlTuningSetAsDetails.
  • commit_rows (int) – The value to assign to the commit_rows property of this SaveSqlTuningSetAsDetails.
attribute_list

Gets the attribute_list of this SaveSqlTuningSetAsDetails. Specifies the list of Sql statement attributes to return in the result. Note that this parameter cannot be made an enum since custom value can take a list of comma separated attribute names. Attribute list can take one of the following values.

TYPICAL - Specifies BASIC plus Sql plan (without row source statistics) and without object reference list (default). BASIC - Specifies all attributes (such as execution statistics and binds) except the plans. The execution context is always part of the result. ALL - Specifies all attributes. CUSTOM - Comma-separated list of the following attribute names.

  • EXECUTION_STATISTICS
  • BIND_LIST
  • OBJECT_LIST
  • SQL_PLAN
  • SQL_PLAN_STATISTICS
Usage examples:
  1. “attributeList”: “TYPICAL”
  2. “attributeList”: “ALL”
  3. “attributeList”: “EXECUTION_STATISTICS,OBJECT_LIST,SQL_PLAN”
Returns:The attribute_list of this SaveSqlTuningSetAsDetails.
Return type:str
basic_filter

Gets the basic_filter of this SaveSqlTuningSetAsDetails. Specifies the Sql predicate to filter the Sql from the Sql tuning set defined on attributes of the SQLSET_ROW. User could use any combination of the following columns with appropriate values as Sql predicate Refer to the documentation https://docs.oracle.com/en/database/oracle/oracle-database/18/arpls/DBMS_SQLTUNE.html#GUID-1F4AFB03-7B29-46FC-B3F2-CB01EC36326C

Returns:The basic_filter of this SaveSqlTuningSetAsDetails.
Return type:str
commit_rows

Gets the commit_rows of this SaveSqlTuningSetAsDetails. Specifies whether to commit statements after DML. If a value is provided, then the load commits after each specified number of statements is inserted. If NULL is provided, then the load commits only once, at the end of the operation.

Returns:The commit_rows of this SaveSqlTuningSetAsDetails.
Return type:int
create_new

[Required] Gets the create_new of this SaveSqlTuningSetAsDetails. Specifies whether to create a new Sql tuning set or not. Possible values 1 - Create a new Sql tuning set 0 - Do not create a new Sql tuning set

Returns:The create_new of this SaveSqlTuningSetAsDetails.
Return type:int
credential_details

Gets the credential_details of this SaveSqlTuningSetAsDetails.

Returns:The credential_details of this SaveSqlTuningSetAsDetails.
Return type:oci.database_management.models.SqlTuningSetAdminCredentialDetails
database_credential

Gets the database_credential of this SaveSqlTuningSetAsDetails.

Returns:The database_credential of this SaveSqlTuningSetAsDetails.
Return type:oci.database_management.models.DatabaseCredentialDetails
destination_sql_tuning_set_description

Gets the destination_sql_tuning_set_description of this SaveSqlTuningSetAsDetails. The description for the destination Sql tuning set.

Returns:The destination_sql_tuning_set_description of this SaveSqlTuningSetAsDetails.
Return type:str
destination_sql_tuning_set_name

[Required] Gets the destination_sql_tuning_set_name of this SaveSqlTuningSetAsDetails. The name of the destination Sql tuning set.

Returns:The destination_sql_tuning_set_name of this SaveSqlTuningSetAsDetails.
Return type:str
destination_sql_tuning_set_owner

Gets the destination_sql_tuning_set_owner of this SaveSqlTuningSetAsDetails. Owner of the destination Sql tuning set.

Returns:The destination_sql_tuning_set_owner of this SaveSqlTuningSetAsDetails.
Return type:str
is_ignore_null

Gets the is_ignore_null of this SaveSqlTuningSetAsDetails. Specifies whether to update attributes when the new value is NULL. If TRUE, then the procedure does not update an attribute when the new value is NULL. That is, do not override with NULL values unless intentional. Possible values - true or false

Returns:The is_ignore_null of this SaveSqlTuningSetAsDetails.
Return type:bool
load_option

Gets the load_option of this SaveSqlTuningSetAsDetails. Specifies which statements are loaded into the Sql tuning set. The possible values are.

  • INSERT (default) Adds only new statements.
  • UPDATE Updates existing the Sql statements and ignores any new statements.
  • MERGE Inserts new statements and updates the information of the existing ones.

Allowed values for this property are: “INSERT”, “UPDATE”, “MERGE”

Returns:The load_option of this SaveSqlTuningSetAsDetails.
Return type:str
name

[Required] Gets the name of this SaveSqlTuningSetAsDetails. The name of the Sql tuning set.

Returns:The name of this SaveSqlTuningSetAsDetails.
Return type:str
owner

Gets the owner of this SaveSqlTuningSetAsDetails. The owner of the Sql tuning set.

Returns:The owner of this SaveSqlTuningSetAsDetails.
Return type:str
plan_filter

Gets the plan_filter of this SaveSqlTuningSetAsDetails. Specifies the plan filter. This parameter enables you to select a single plan when a statement has multiple plans. Refer to the documentation https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_SQLSET.html#GUID-9D995019-91AB-4B1E-9EAF-031050789B21

Allowed values for this property are: “LAST_GENERATED”, “FIRST_GENERATED”, “LAST_LOADED”, “FIRST_LOADED”, “MAX_ELAPSED_TIME”, “MAX_BUFFER_GETS”, “MAX_DISK_READS”, “MAX_DIRECT_WRITES”, “MAX_OPTIMIZER_COST”

Returns:The plan_filter of this SaveSqlTuningSetAsDetails.
Return type:str
ranking_measure1

Gets the ranking_measure1 of this SaveSqlTuningSetAsDetails. Specifies an ORDER BY clause on the selected Sql. User can specify upto three ranking measures.

Allowed values for this property are: “ELAPSED_TIME”, “CPU_TIME”, “OPTIMIZER_COST”, “BUFFER_GETS”, “DISK_READS”, “DIRECT_WRITES”

Returns:The ranking_measure1 of this SaveSqlTuningSetAsDetails.
Return type:str
ranking_measure2

Gets the ranking_measure2 of this SaveSqlTuningSetAsDetails. Specifies an ORDER BY clause on the selected Sql. User can specify upto three ranking measures.

Allowed values for this property are: “ELAPSED_TIME”, “CPU_TIME”, “OPTIMIZER_COST”, “BUFFER_GETS”, “DISK_READS”, “DIRECT_WRITES”

Returns:The ranking_measure2 of this SaveSqlTuningSetAsDetails.
Return type:str
ranking_measure3

Gets the ranking_measure3 of this SaveSqlTuningSetAsDetails. Specifies an ORDER BY clause on the selected Sql. User can specify upto three ranking measures.

Allowed values for this property are: “ELAPSED_TIME”, “CPU_TIME”, “OPTIMIZER_COST”, “BUFFER_GETS”, “DISK_READS”, “DIRECT_WRITES”

Returns:The ranking_measure3 of this SaveSqlTuningSetAsDetails.
Return type:str
recursive_sql

Gets the recursive_sql of this SaveSqlTuningSetAsDetails. Specifies that the filter must include recursive Sql in the Sql tuning set.

Allowed values for this property are: “HAS_RECURSIVE_SQL”, “NO_RECURSIVE_SQL”

Returns:The recursive_sql of this SaveSqlTuningSetAsDetails.
Return type:str
result_limit

Gets the result_limit of this SaveSqlTuningSetAsDetails. The top limit Sql from the filtered source, ranked by the ranking measure.

Returns:The result_limit of this SaveSqlTuningSetAsDetails.
Return type:int
result_percentage

Gets the result_percentage of this SaveSqlTuningSetAsDetails. Specifies a filter that picks the top n% according to the supplied ranking measure. Note that this parameter applies only if one ranking measure is supplied.

Returns:The result_percentage of this SaveSqlTuningSetAsDetails.
Return type:float
show_sql_only

Gets the show_sql_only of this SaveSqlTuningSetAsDetails. Flag to indicate whether to save the Sql tuning set or just display the plsql used to save Sql tuning set.

Returns:The show_sql_only of this SaveSqlTuningSetAsDetails.
Return type:int
update_attributes

Gets the update_attributes of this SaveSqlTuningSetAsDetails. Specifies the list of Sql statement attributes to update during a merge or update. Note that this parameter cannot be made an enum since custom value can take a list of comma separated attribute names. Update attributes can take one of the following values.

NULL (default) - Specifies the content of the input cursor except the execution context. On other terms, it is equivalent to ALL without execution contexts such as module and action. BASIC - Specifies statistics and binds only. TYPICAL - Specifies BASIC with Sql plans (without row source statistics) and without an object reference list. ALL - Specifies all attributes, including the execution context attributes such as module and action. CUSTOM - List of comma separated attribute names to update

EXECUTION_CONTEXT EXECUTION_STATISTICS SQL_BINDS SQL_PLAN SQL_PLAN_STATISTICS (similar to SQL_PLAN with added row source statistics)
Usage examples:
  1. “updateAttributes”: “TYPICAL”
  2. “updateAttributes”: “BASIC”
  3. “updateAttributes”: “EXECUTION_STATISTICS,SQL_PLAN_STATISTICS,SQL_PLAN”
  4. “updateAttributes”: “EXECUTION_STATISTICS,SQL_PLAN”
Returns:The update_attributes of this SaveSqlTuningSetAsDetails.
Return type:str
update_condition

Gets the update_condition of this SaveSqlTuningSetAsDetails. Specifies when to perform the update. The procedure only performs the update when the specified condition is satisfied. The condition can refer to either the data source or destination. The condition must use the following prefixes to refer to attributes from the source or the destination:

OLD — Refers to statement attributes from the SQL tuning set (destination). NEW — Refers to statement attributes from the input statements (source). NULL — No updates are performed.

Allowed values for this property are: “OLD”, “NEW”, “NULL”

Returns:The update_condition of this SaveSqlTuningSetAsDetails.
Return type:str
update_option

Gets the update_option of this SaveSqlTuningSetAsDetails. Specifies how existing Sql statements are updated. This parameter is applicable only if load_option is specified with UPDATE or MERGE as an option. Update option can take one of the following values.

REPLACE (default) - Updates the statement using the new statistics, bind list, object list, and so on. ACCUMULATE - Combines attributes when possible (for example, statistics such as elapsed_time), otherwise replaces the existing values (for example, module and action) with the provided values. Following Sql statement attributes can be accumulated.

elapsed_time buffer_gets direct_writes disk_reads row_processed fetches executions end_of_fetch_count stat_period active_stat_period

Allowed values for this property are: “REPLACE”, “ACCUMULATE”

Returns:The update_option of this SaveSqlTuningSetAsDetails.
Return type:str