#ifndef DBMS_WORKLOAD_REPOSITORY_INTERNAL_HPP #define DBMS_WORKLOAD_REPOSITORY_INTERNAL_HPP /** * @brief Oracle-совместимый фасад пакета DBMS_WORKLOAD_REPOSITORY. * @details * Назначение: * Пакет предоставляет Oracle-совместимый фасад для целевых AWR/ASH API * формирования отчётов DBMS_WORKLOAD_REPOSITORY. * Реализация использует независимые backend-слои `rudb::awr` и `rudb::ash`. * * Сделано: * Реализованы `LOCAL_AWR_DBID`, `GET_AWR_ID`, `AWR_REPORT_*`, * `AWR_SQL_REPORT_*`, `ASH_REPORT_*` и `ASH_GLOBAL_REPORT_*`. * Добавлена SQL-visible проверка готовности сервиса * `dbms_workload_repository_service_state()`. * Значения по умолчанию для целевых отчётных функций задаются * post-bootstrap объявлениями в `system_functions.sql`. * * Не сделано: * Не реализовано постоянное кластерное хранилище DBA_HIST/WRH$. * Не реализована полная Oracle-совместимость CDB/PDB/RAC и полный формат * AWR/ASH-отчётов. * Нет поддержки нетаргетных API управления baseline/export/import/remote AWR. */ extern "C" { #include "postgres.h" #include "fmgr.h" } // extern "C" extern "C" { /** * @brief Возвращает значение константы DBMS_WORKLOAD_REPOSITORY.MIN_INTERVAL. * @details Это промоутированная package-константа, экспортированная как zero-arg SQL function. * Исходное значение: 10. * Причина промоушена: явная числовая константа. * Примеры: * SELECT dbms_workload_repository_min_interval() FROM dual; * @return `PLS_INTEGER`. */ Datum dbms_workload_repository_min_interval(PG_FUNCTION_ARGS); /** * @brief Возвращает значение константы DBMS_WORKLOAD_REPOSITORY.MAX_INTERVAL. * @details Это промоутированная package-константа, экспортированная как zero-arg SQL function. * Исходное значение: 52560000. * Причина промоушена: явная числовая константа. * Примеры: * SELECT dbms_workload_repository_max_interval() FROM dual; * @return `PLS_INTEGER`. */ Datum dbms_workload_repository_max_interval(PG_FUNCTION_ARGS); /** * @brief Возвращает значение константы DBMS_WORKLOAD_REPOSITORY.MIN_RETENTION. * @details Это промоутированная package-константа, экспортированная как zero-arg SQL function. * Исходное значение: 1440. * Причина промоушена: явная числовая константа. * Примеры: * SELECT dbms_workload_repository_min_retention() FROM dual; * @return `PLS_INTEGER`. */ Datum dbms_workload_repository_min_retention(PG_FUNCTION_ARGS); /** * @brief Возвращает значение константы DBMS_WORKLOAD_REPOSITORY.MAX_RETENTION. * @details Это промоутированная package-константа, экспортированная как zero-arg SQL function. * Исходное значение: 52560000. * Причина промоушена: явная числовая константа. * Примеры: * SELECT dbms_workload_repository_max_retention() FROM dual; * @return `PLS_INTEGER`. */ Datum dbms_workload_repository_max_retention(PG_FUNCTION_ARGS); /** * @brief Возвращает значение константы DBMS_WORKLOAD_REPOSITORY.WH_MAILBOX_TYPE_FS. * @details Это промоутированная package-константа, экспортированная как zero-arg SQL function. * Исходное значение: 0. * Причина промоушена: явная числовая константа. * Примеры: * SELECT dbms_workload_repository_wh_mailbox_type_fs() FROM dual; * @return `PLS_INTEGER`. */ Datum dbms_workload_repository_wh_mailbox_type_fs(PG_FUNCTION_ARGS); /** * @brief Возвращает значение константы DBMS_WORKLOAD_REPOSITORY.WH_MAILBOX_TYPE_CLOUD. * @details Это промоутированная package-константа, экспортированная как zero-arg SQL function. * Исходное значение: 1. * Причина промоушена: явная числовая константа. * Примеры: * SELECT dbms_workload_repository_wh_mailbox_type_cloud() FROM dual; * @return `PLS_INTEGER`. */ Datum dbms_workload_repository_wh_mailbox_type_cloud(PG_FUNCTION_ARGS); /** * @brief Возвращает версию RUDB пакета DBMS_WORKLOAD_REPOSITORY. * @details Version: 1.0.0. * Это синтетическая zero-arg SQL function, которую генератор добавляет в каждый новый * пакет. * Примеры: * SELECT DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_get_version() FROM dual; * DECLARE v text; BEGIN v := * DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_get_version(); END; * @return `text`. */ Datum dbms_workload_repository_get_version(PG_FUNCTION_ARGS); /** * @brief Возвращает состояние compatibility layer пакета DBMS_WORKLOAD_REPOSITORY. * @details Возвращает краткое текстовое состояние локального RUDB-совместимого * слоя AWR/ASH, доступного для отчётных функций пакета. * Примеры: * SELECT DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_service_state() FROM dual; * DECLARE v text; BEGIN v := DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_service_state(); END; * @return `text`. */ Datum dbms_workload_repository_service_state(PG_FUNCTION_ARGS); /** * @brief add_colored_application (PROCEDURE) * @details This procedure adds a colored application in AWR. * Input arguments: * dbid - database id, default to local DBID * app_name - application name * Returns: * none * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_add_colored_application(:dbid, * :app_name); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_add_colored_application(42, * 'demo_alias'); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_add_colored_application(0, * 'demo_value'); END; * @param dbid Аргумент dbid, режим IN, тип number. * @param app_name Аргумент app_name, режим IN, тип varchar2. */ Datum dbms_workload_repository_add_colored_application_0(PG_FUNCTION_ARGS); /** * @brief add_colored_application (PROCEDURE) * @details This procedure adds a colored application in AWR. * Input arguments: * dbid - database id, default to local DBID * app_name - application name * Returns: * none * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_add_colored_application(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_add_colored_application(); */ Datum dbms_workload_repository_add_colored_application_1(PG_FUNCTION_ARGS); /** * @brief add_colored_sql() * @details Routine to add a colored SQL ID. If an SQL ID is colored, it will * always be captured in every snapshot, independent of its level * of activities (i.e. does not have to be a TOP SQL). Capturiing * will occur if the SQL is found in the cursor cache at * snapshot time. * To uncolor the SQL, call remove_colored_sql(). * Input arguments: * dbid - optional dbid, default to Local DBID * sql_id - the 13-chararcter external SQL ID * Returns: * none. * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_add_colored_sql(:sql_id, :dbid); * END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_add_colored_sql('demo_alias', * 42); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_add_colored_sql('demo_value', * 0); END; * @param sql_id Аргумент sql_id, режим IN, тип varchar2. * @param dbid Аргумент dbid, режим IN, тип number. */ Datum dbms_workload_repository_add_colored_sql_0(PG_FUNCTION_ARGS); /** * @brief add_colored_sql() * @details Routine to add a colored SQL ID. If an SQL ID is colored, it will * always be captured in every snapshot, independent of its level * of activities (i.e. does not have to be a TOP SQL). Capturiing * will occur if the SQL is found in the cursor cache at * snapshot time. * To uncolor the SQL, call remove_colored_sql(). * Input arguments: * dbid - optional dbid, default to Local DBID * sql_id - the 13-chararcter external SQL ID * Returns: * none. * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_add_colored_sql(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_add_colored_sql(); */ Datum dbms_workload_repository_add_colored_sql_1(PG_FUNCTION_ARGS); /** * @brief Возвращает глобальный ASH-отчёт в HTML-формате. * @details SQL set-returning function, которая формирует строки HTML-отчёта * через минимальный построитель `rudb::ash`. * Выполняет проверку готовности сервиса * `DBMS_WORKLOAD_REPOSITORY`, валидирует диапазон времени и * значение `l_data_src`. * Параметр `l_inst_num` задаёт список экземпляров в виде строки из * положительных чисел, разделённых запятыми; `NULL` и пустая строка * трактуются как локальный список по умолчанию. * Неверный, нулевой, отрицательный или переполненный список * экземпляров отклоняется. * Примеры: * SELECT output * FROM dbms_workload_repository_ash_global_report_html( * dbms_workload_repository_local_awr_dbid(), * '1, 1', * DATE '2026-01-01', * DATE '2026-01-02'); * @param l_dbid Идентификатор AWR-репозитория. * @param l_inst_num Список экземпляров в формате `1, 2, 3`. * @param l_btime Начало интервала отчёта. * @param l_etime Конец интервала отчёта. * @param l_options Дополнительные параметры построителя отчёта. * @param l_slot_width Ширина временного слота. * @param l_sid Идентификатор сессии для фильтрации. * @param l_sql_id SQL ID для фильтрации. * @param l_wait_class Класс ожидания. * @param l_service_hash Хэш сервиса. * @param l_module Имя модуля. * @param l_action Имя действия. * @param l_client_id Идентификатор клиента. * @param l_plsql_entry Идентификатор PL/SQL entry. * @param l_data_src Источник ASH-данных. * @param l_container Имя контейнера. * @return Набор строк с HTML-представлением глобального ASH-отчёта. */ Datum dbms_workload_repository_ash_global_report_html(PG_FUNCTION_ARGS); /** * @brief Возвращает глобальный ASH-отчёт в текстовом формате. * @details SQL set-returning function, которая формирует строки текстового * отчёта через минимальный построитель `rudb::ash`. * Выполняет проверку готовности сервиса * `DBMS_WORKLOAD_REPOSITORY`, валидирует диапазон времени и * значение `l_data_src`. * Параметр `l_inst_num` задаёт список экземпляров в виде строки из * положительных чисел, разделённых запятыми; `NULL` и пустая строка * трактуются как локальный список по умолчанию. * Неверный, нулевой, отрицательный или переполненный список * экземпляров отклоняется. * Примеры: * SELECT output * FROM dbms_workload_repository_ash_global_report_text( * dbms_workload_repository_local_awr_dbid(), * '1, 1', * DATE '2026-01-01', * DATE '2026-01-02'); * @param l_dbid Идентификатор AWR-репозитория. * @param l_inst_num Список экземпляров в формате `1, 2, 3`. * @param l_btime Начало интервала отчёта. * @param l_etime Конец интервала отчёта. * @param l_options Дополнительные параметры построителя отчёта. * @param l_slot_width Ширина временного слота. * @param l_sid Идентификатор сессии для фильтрации. * @param l_sql_id SQL ID для фильтрации. * @param l_wait_class Класс ожидания. * @param l_service_hash Хэш сервиса. * @param l_module Имя модуля. * @param l_action Имя действия. * @param l_client_id Идентификатор клиента. * @param l_plsql_entry Идентификатор PL/SQL entry. * @param l_data_src Источник ASH-данных. * @param l_container Имя контейнера. * @return Набор строк с текстовым представлением глобального ASH-отчёта. */ Datum dbms_workload_repository_ash_global_report_text(PG_FUNCTION_ARGS); /** * @brief процедура dbms_workload_repository_ash_report_analytics. * @details Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_ash_report_analytics(:arg_1, * :dbid, :inst_id, :begin_time, :end_time, :report_level, :filter_list); END; * CALL * DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_ash_report_analytics('demo_alias', 42, * 42, DATE '2026-01-01', DATE '2026-01-01', 'demo_alias', 'demo_alias'); * BEGIN * DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_ash_report_analytics('demo_value', 0, * 0, DATE '2026-01-01', DATE '2026-01-01', 'demo_value', 'demo_value'); END; * @param arg_1 Аргумент arg_1, режим OUT, тип clob. * @param dbid Аргумент dbid, режим IN, тип number. * @param inst_id Аргумент inst_id, режим IN, тип number. * @param begin_time Аргумент begin_time, режим IN, тип date. * @param end_time Аргумент end_time, режим IN, тип date. * @param report_level Аргумент report_level, режим IN, тип varchar2. * @param filter_list Аргумент filter_list, режим IN, тип varchar2. */ Datum dbms_workload_repository_ash_report_analytics_0(PG_FUNCTION_ARGS); /** * @brief процедура dbms_workload_repository_ash_report_analytics. * @details Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_ash_report_analytics(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_ash_report_analytics(); */ Datum dbms_workload_repository_ash_report_analytics_1(PG_FUNCTION_ARGS); /** * @brief Возвращает локальный ASH-отчёт в HTML-формате. * @details SQL set-returning function, которая формирует строки HTML-отчёта * через минимальный построитель `rudb::ash`. * Выполняет проверку готовности сервиса * `DBMS_WORKLOAD_REPOSITORY`, валидирует диапазон времени и * значение `l_data_src`. * Примеры: * SELECT output * FROM dbms_workload_repository_ash_report_html( * dbms_workload_repository_local_awr_dbid(), * 1, * DATE '2026-01-01', * DATE '2026-01-02'); * @param l_dbid Идентификатор AWR-репозитория. * @param l_inst_num Номер экземпляра. * @param l_btime Начало интервала отчёта. * @param l_etime Конец интервала отчёта. * @param l_options Дополнительные параметры построителя отчёта. * @param l_slot_width Ширина временного слота. * @param l_sid Идентификатор сессии для фильтрации. * @param l_sql_id SQL ID для фильтрации. * @param l_wait_class Класс ожидания. * @param l_service_hash Хэш сервиса. * @param l_module Имя модуля. * @param l_action Имя действия. * @param l_client_id Идентификатор клиента. * @param l_plsql_entry Идентификатор PL/SQL entry. * @param l_data_src Источник ASH-данных. * @param l_container Имя контейнера. * @return Набор строк с HTML-представлением локального ASH-отчёта. */ Datum dbms_workload_repository_ash_report_html(PG_FUNCTION_ARGS); /** * @brief Возвращает локальный ASH-отчёт в текстовом формате. * @details SQL set-returning function, которая формирует строки текстового * отчёта через минимальный построитель `rudb::ash`. * Выполняет проверку готовности сервиса * `DBMS_WORKLOAD_REPOSITORY`, валидирует диапазон времени и * значение `l_data_src`. * Примеры: * SELECT output * FROM dbms_workload_repository_ash_report_text( * dbms_workload_repository_local_awr_dbid(), * 1, * DATE '2026-01-01', * DATE '2026-01-02'); * @param l_dbid Идентификатор AWR-репозитория. * @param l_inst_num Номер экземпляра. * @param l_btime Начало интервала отчёта. * @param l_etime Конец интервала отчёта. * @param l_options Дополнительные параметры построителя отчёта. * @param l_slot_width Ширина временного слота. * @param l_sid Идентификатор сессии для фильтрации. * @param l_sql_id SQL ID для фильтрации. * @param l_wait_class Класс ожидания. * @param l_service_hash Хэш сервиса. * @param l_module Имя модуля. * @param l_action Имя действия. * @param l_client_id Идентификатор клиента. * @param l_plsql_entry Идентификатор PL/SQL entry. * @param l_data_src Источник ASH-данных. * @param l_container Имя контейнера. * @return Набор строк с текстовым представлением локального ASH-отчёта. */ Datum dbms_workload_repository_ash_report_text(PG_FUNCTION_ARGS); /** * @brief процедура dbms_workload_repository_awr_diff_report_html. * @details Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_diff_report_html(:arg_1, * :dbid1, :inst_num1, :bid1, :eid1, :dbid2, :inst_num2, :bid2, :eid2, :p_options); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_diff_report_html(42, 42, 42, * 42, 42, 42, 42, 42, 42, 42); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_diff_report_html(0, 0, 0, 0, * 0, 0, 0, 0, 0, 0); END; * @param arg_1 Аргумент arg_1, режим OUT, тип number. * @param dbid1 Аргумент dbid1, режим IN, тип number. * @param inst_num1 Аргумент inst_num1, режим IN, тип number. * @param bid1 Аргумент bid1, режим IN, тип number. * @param eid1 Аргумент eid1, режим IN, тип number. * @param dbid2 Аргумент dbid2, режим IN, тип number. * @param inst_num2 Аргумент inst_num2, режим IN, тип number. * @param bid2 Аргумент bid2, режим IN, тип number. * @param eid2 Аргумент eid2, режим IN, тип number. * @param p_options Аргумент p_options, режим IN, тип NUMBER. */ Datum dbms_workload_repository_awr_diff_report_html_0(PG_FUNCTION_ARGS); /** * @brief процедура dbms_workload_repository_awr_diff_report_html. * @details Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_diff_report_html(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_diff_report_html(); */ Datum dbms_workload_repository_awr_diff_report_html_1(PG_FUNCTION_ARGS); /** * @brief процедура dbms_workload_repository_awr_diff_report_text. * @details Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_diff_report_text(:arg_1, * :dbid1, :inst_num1, :bid1, :eid1, :dbid2, :inst_num2, :bid2, :eid2, :p_options); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_diff_report_text(42, 42, 42, * 42, 42, 42, 42, 42, 42, 42); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_diff_report_text(0, 0, 0, 0, * 0, 0, 0, 0, 0, 0); END; * @param arg_1 Аргумент arg_1, режим OUT, тип number. * @param dbid1 Аргумент dbid1, режим IN, тип number. * @param inst_num1 Аргумент inst_num1, режим IN, тип number. * @param bid1 Аргумент bid1, режим IN, тип number. * @param eid1 Аргумент eid1, режим IN, тип number. * @param dbid2 Аргумент dbid2, режим IN, тип number. * @param inst_num2 Аргумент inst_num2, режим IN, тип number. * @param bid2 Аргумент bid2, режим IN, тип number. * @param eid2 Аргумент eid2, режим IN, тип number. * @param p_options Аргумент p_options, режим IN, тип NUMBER. */ Datum dbms_workload_repository_awr_diff_report_text_0(PG_FUNCTION_ARGS); /** * @brief процедура dbms_workload_repository_awr_diff_report_text. * @details Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_diff_report_text(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_diff_report_text(); */ Datum dbms_workload_repository_awr_diff_report_text_1(PG_FUNCTION_ARGS); /** * @brief awr_exp (PROCEDURE) * @details Routine to Extract AWR data from the AWR schema and * dump the information into a file. Users are allowed * to specify the snapshot range for the data they would * like to extract. * Input arguments: * dmpfile - Prefix for the name of the extract dump file * and log file. The name of the dump file where * all the data from the AWR table will be written * is dmpfile.dmp. The name of the log file showing * the status of the Export job will be dmpfile.log. * The prefix will default to awrdat. * dmpdir - Name of the Directory Object for the file system * directory where the extract dump file will be written. * The list of Directory Objects can be queried using the * DBA_DIRECTORIES view, and a new directory object can * be created using the following command: create directory * dmpdir as '/directory/path'. This defaults to the * 'DATA_PUMP_DIR' directory object. * dbid - Database ID for the snapshots that the user wants to * export. This argument defaults to NULL, for the local * database ID. (Refers to DBID column of DBA_HIST_WR_CONTROL) * bid - Begin Snapshot Id for snapshots to be exported. This * argument defaults to 1, the minimum snapshot ID. * eid - End Snapshot Id for snapshots to be exported. * This argument defaults to 10000000, the maximum * snapshot ID. * Returns: * none * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_exp(:dmpfile, :dmpdir, * :dbid, :bid, :eid); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_exp('demo_alias', * 'demo_alias', 42, 42, 42); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_exp('demo_value', * 'demo_value', 0, 0, 0); END; * @param dmpfile Аргумент dmpfile, режим IN, тип varchar2, по умолчанию awrdat (source CSV). * @param dmpdir Аргумент dmpdir, режим IN, тип varchar2, по умолчанию DATA_PUMP_DIR (source CSV). * @param dbid Аргумент dbid, режим IN, тип number. * @param bid Аргумент bid, режим IN, тип number, по умолчанию 1 (source CSV). * @param eid Аргумент eid, режим IN, тип number, по умолчанию 1000000 (source CSV). */ Datum dbms_workload_repository_awr_exp_0(PG_FUNCTION_ARGS); /** * @brief awr_exp (PROCEDURE) * @details Routine to Extract AWR data from the AWR schema and * dump the information into a file. Users are allowed * to specify the snapshot range for the data they would * like to extract. * Input arguments: * dmpfile - Prefix for the name of the extract dump file * and log file. The name of the dump file where * all the data from the AWR table will be written * is dmpfile.dmp. The name of the log file showing * the status of the Export job will be dmpfile.log. * The prefix will default to awrdat. * dmpdir - Name of the Directory Object for the file system * directory where the extract dump file will be written. * The list of Directory Objects can be queried using the * DBA_DIRECTORIES view, and a new directory object can * be created using the following command: create directory * dmpdir as '/directory/path'. This defaults to the * 'DATA_PUMP_DIR' directory object. * dbid - Database ID for the snapshots that the user wants to * export. This argument defaults to NULL, for the local * database ID. (Refers to DBID column of DBA_HIST_WR_CONTROL) * bid - Begin Snapshot Id for snapshots to be exported. This * argument defaults to 1, the minimum snapshot ID. * eid - End Snapshot Id for snapshots to be exported. * This argument defaults to 10000000, the maximum * snapshot ID. * Returns: * none * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_exp(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_exp(); */ Datum dbms_workload_repository_awr_exp_1(PG_FUNCTION_ARGS); /** * @brief процедура dbms_workload_repository_awr_global_diff_report_html. * @details Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN * DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_global_diff_report_html(:arg_1, * :dbid1, :inst_num1, :bid1, :eid1, :dbid2, :inst_num2, :bid2, :eid2, :p_options, :arg_1, * :dbid1, :inst_num1, :bid1, :eid1, :dbid2, :inst_num2, :bid2, :eid2, :p_options); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_global_diff_report_html(42, * 42, 42, 42, 42, 42, 42, 42, 'demo_alias', 42, 42, 42, 'demo_alias', 42, 42, 42, * 'demo_alias', 42, 42, 42); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_global_diff_report_html(0, * 0, 0, 0, 0, 0, 0, 0, 'demo_value', 0, 0, 0, 'demo_value', 0, 0, 0, 'demo_value', 0, 0, * 0); END; * @param arg_1 Аргумент arg_1, режим OUT, тип number. * @param dbid1 Аргумент dbid1, режим IN, тип number. * @param inst_num1 Аргумент inst_num1, режим IN, тип number. * @param bid1 Аргумент bid1, режим IN, тип number. * @param eid1 Аргумент eid1, режим IN, тип number. * @param dbid2 Аргумент dbid2, режим IN, тип number. * @param inst_num2 Аргумент inst_num2, режим IN, тип number. * @param bid2 Аргумент bid2, режим IN, тип number. * @param eid2 Аргумент eid2, режим IN, тип varchar2. * @param p_options Аргумент p_options, режим IN, тип number. * @param arg_1 Аргумент arg_1, режим OUT, тип number. * @param dbid1 Аргумент dbid1, режим IN, тип number. * @param inst_num1 Аргумент inst_num1, режим IN, тип varchar2. * @param bid1 Аргумент bid1, режим IN, тип number. * @param eid1 Аргумент eid1, режим IN, тип number. * @param dbid2 Аргумент dbid2, режим IN, тип number. * @param inst_num2 Аргумент inst_num2, режим IN, тип VARCHAR2. * @param bid2 Аргумент bid2, режим IN, тип NUMBER. * @param eid2 Аргумент eid2, режим IN, тип NUMBER. * @param p_options Аргумент p_options, режим IN, тип NUMBER. */ Datum dbms_workload_repository_awr_global_diff_report_html_0(PG_FUNCTION_ARGS); /** * @brief процедура dbms_workload_repository_awr_global_diff_report_html_1. * @details Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_global_diff_report_html_1(); * END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_global_diff_report_html_1(); */ Datum dbms_workload_repository_awr_global_diff_report_html_1(PG_FUNCTION_ARGS); /** * @brief процедура dbms_workload_repository_awr_global_diff_report_text. * @details Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN * DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_global_diff_report_text(:arg_1, * :dbid1, :inst_num1, :bid1, :eid1, :dbid2, :inst_num2, :bid2, :eid2, :p_options, :arg_1, * :dbid1, :inst_num1, :bid1, :eid1, :dbid2, :inst_num2, :bid2, :eid2, :p_options); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_global_diff_report_text(42, * 42, 42, 42, 42, 42, 42, 42, 'demo_alias', 42, 42, 42, 'demo_alias', 42, 42, 42, * 'demo_alias', 42, 42, 42); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_global_diff_report_text(0, * 0, 0, 0, 0, 0, 0, 0, 'demo_value', 0, 0, 0, 'demo_value', 0, 0, 0, 'demo_value', 0, 0, * 0); END; * @param arg_1 Аргумент arg_1, режим OUT, тип number. * @param dbid1 Аргумент dbid1, режим IN, тип number. * @param inst_num1 Аргумент inst_num1, режим IN, тип number. * @param bid1 Аргумент bid1, режим IN, тип number. * @param eid1 Аргумент eid1, режим IN, тип number. * @param dbid2 Аргумент dbid2, режим IN, тип number. * @param inst_num2 Аргумент inst_num2, режим IN, тип number. * @param bid2 Аргумент bid2, режим IN, тип number. * @param eid2 Аргумент eid2, режим IN, тип varchar2. * @param p_options Аргумент p_options, режим IN, тип number. * @param arg_1 Аргумент arg_1, режим OUT, тип number. * @param dbid1 Аргумент dbid1, режим IN, тип number. * @param inst_num1 Аргумент inst_num1, режим IN, тип varchar2. * @param bid1 Аргумент bid1, режим IN, тип number. * @param eid1 Аргумент eid1, режим IN, тип number. * @param dbid2 Аргумент dbid2, режим IN, тип number. * @param inst_num2 Аргумент inst_num2, режим IN, тип VARCHAR2. * @param bid2 Аргумент bid2, режим IN, тип NUMBER. * @param eid2 Аргумент eid2, режим IN, тип NUMBER. * @param p_options Аргумент p_options, режим IN, тип NUMBER. */ Datum dbms_workload_repository_awr_global_diff_report_text_0(PG_FUNCTION_ARGS); /** * @brief процедура dbms_workload_repository_awr_global_diff_report_text_1. * @details Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_global_diff_report_text_1(); * END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_global_diff_report_text_1(); */ Datum dbms_workload_repository_awr_global_diff_report_text_1(PG_FUNCTION_ARGS); /** * @brief процедура dbms_workload_repository_awr_global_report_html. * @details Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_global_report_html(:arg_1, * :l_dbid, :l_inst_num, :l_bid, :l_eid, :l_options, :arg_1, :l_dbid, :l_inst_num, :l_bid, * :l_eid, :l_options); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_global_report_html(42, 42, * 42, 42, 42, 'demo_alias', 42, 42, 42, 42, 42, 42); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_global_report_html(0, 0, 0, * 0, 0, 'demo_value', 0, 0, 0, 0, 0, 0); END; * @param arg_1 Аргумент arg_1, режим OUT, тип number. * @param l_dbid Аргумент l_dbid, режим IN, тип number. * @param l_inst_num Аргумент l_inst_num, режим IN, тип number. * @param l_bid Аргумент l_bid, режим IN, тип number. * @param l_eid Аргумент l_eid, режим IN, тип number. * @param l_options Аргумент l_options, режим IN, тип varchar2. * @param arg_1 Аргумент arg_1, режим OUT, тип number. * @param l_dbid Аргумент l_dbid, режим IN, тип number. * @param l_inst_num Аргумент l_inst_num, режим IN, тип number. * @param l_bid Аргумент l_bid, режим IN, тип NUMBER. * @param l_eid Аргумент l_eid, режим IN, тип NUMBER. * @param l_options Аргумент l_options, режим IN, тип NUMBER. */ Datum dbms_workload_repository_awr_global_report_html_0(PG_FUNCTION_ARGS); /** * @brief процедура dbms_workload_repository_awr_global_report_html_1. * @details Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_global_report_html_1(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_global_report_html_1(); */ Datum dbms_workload_repository_awr_global_report_html_1(PG_FUNCTION_ARGS); /** * @brief процедура dbms_workload_repository_awr_global_report_text. * @details Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_global_report_text(:arg_1, * :l_dbid, :l_inst_num, :l_bid, :l_eid, :l_options, :arg_1, :l_dbid, :l_inst_num, :l_bid, * :l_eid, :l_options); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_global_report_text(42, 42, * 42, 42, 42, 'demo_alias', 42, 42, 42, 42, 42, 42); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_global_report_text(0, 0, 0, * 0, 0, 'demo_value', 0, 0, 0, 0, 0, 0); END; * @param arg_1 Аргумент arg_1, режим OUT, тип number. * @param l_dbid Аргумент l_dbid, режим IN, тип number. * @param l_inst_num Аргумент l_inst_num, режим IN, тип number. * @param l_bid Аргумент l_bid, режим IN, тип number. * @param l_eid Аргумент l_eid, режим IN, тип number. * @param l_options Аргумент l_options, режим IN, тип varchar2. * @param arg_1 Аргумент arg_1, режим OUT, тип number. * @param l_dbid Аргумент l_dbid, режим IN, тип number. * @param l_inst_num Аргумент l_inst_num, режим IN, тип number. * @param l_bid Аргумент l_bid, режим IN, тип NUMBER. * @param l_eid Аргумент l_eid, режим IN, тип NUMBER. * @param l_options Аргумент l_options, режим IN, тип NUMBER. */ Datum dbms_workload_repository_awr_global_report_text_0(PG_FUNCTION_ARGS); /** * @brief процедура dbms_workload_repository_awr_global_report_text_1. * @details Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_global_report_text_1(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_global_report_text_1(); */ Datum dbms_workload_repository_awr_global_report_text_1(PG_FUNCTION_ARGS); /** * @brief awr_imp() * @details Routine to load the AWR data from a dump file into the SYS schema. * Input arguments: * dmpfile - Prefix for the name of the dump file and log file. * This file will be the source of the imported AWR data. * Defauls to to 'awrdat'. * dmpdir - Name of the Directory Object for the file system directory * where the load dump file is located. This defaults * to 'DATA_PUMP_DIR'. * new_dbid - dbid to be used instead of existing dbid. * Returns: * none * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_imp(:dmpfile, :dmpdir, * :new_dbid); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_imp('demo_alias', * 'demo_alias', 42); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_imp('demo_value', * 'demo_value', 0); END; * @param dmpfile Аргумент dmpfile, режим IN, тип varchar2, по умолчанию awrdat (source CSV). * @param dmpdir Аргумент dmpdir, режим IN, тип varchar2, по умолчанию DATA_PUMP_DIR (source CSV). * @param new_dbid Аргумент new_dbid, режим IN, тип number. */ Datum dbms_workload_repository_awr_imp_0(PG_FUNCTION_ARGS); /** * @brief awr_imp() * @details Routine to load the AWR data from a dump file into the SYS schema. * Input arguments: * dmpfile - Prefix for the name of the dump file and log file. * This file will be the source of the imported AWR data. * Defauls to to 'awrdat'. * dmpdir - Name of the Directory Object for the file system directory * where the load dump file is located. This defaults * to 'DATA_PUMP_DIR'. * new_dbid - dbid to be used instead of existing dbid. * Returns: * none * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_imp(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_imp(); */ Datum dbms_workload_repository_awr_imp_1(PG_FUNCTION_ARGS); /** * @brief процедура dbms_workload_repository_awr_report. * @details Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_report(:arg_1, :l_dbid, * :l_inst_num, :l_bid, :l_eid, :l_options, :l_format); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_report('demo_alias', 42, 42, * 42, 42, 42, 'demo_alias'); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_report('demo_value', 0, 0, * 0, 0, 0, 'demo_value'); END; * @param arg_1 Аргумент arg_1, режим OUT, тип clob. * @param l_dbid Аргумент l_dbid, режим IN, тип number. * @param l_inst_num Аргумент l_inst_num, режим IN, тип number. * @param l_bid Аргумент l_bid, режим IN, тип number. * @param l_eid Аргумент l_eid, режим IN, тип number. * @param l_options Аргумент l_options, режим IN, тип number. * @param l_format Аргумент l_format, режим IN, тип varchar2. */ Datum dbms_workload_repository_awr_report_0(PG_FUNCTION_ARGS); /** * @brief процедура dbms_workload_repository_awr_report. * @details Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_report(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_report(); */ Datum dbms_workload_repository_awr_report_1(PG_FUNCTION_ARGS); /** * @brief Возвращает AWR-отчёт в HTML-формате. * @details SQL set-returning function, которая формирует строки HTML-отчёта * через минимальный построитель `rudb::awr`. * Выполняет проверку готовности сервиса * `DBMS_WORKLOAD_REPOSITORY`, валидирует обязательные идентификаторы * и диапазон снапшотов. Параметр `l_options` принимается, но * минимальная реализация не поддерживает полный Oracle-формат * опций отчёта. * Примеры: * SELECT output * FROM dbms_workload_repository_awr_report_html( * dbms_workload_repository_local_awr_dbid(), 1, 1, 2); * @param l_dbid Идентификатор AWR-репозитория. * @param l_inst_num Номер экземпляра. * @param l_bid Начальный снапшот. * @param l_eid Конечный снапшот. * @param l_options Дополнительные параметры форматирования отчёта. * @return Набор строк с HTML-представлением AWR-отчёта. */ Datum dbms_workload_repository_awr_report_html(PG_FUNCTION_ARGS); /** * @brief Возвращает AWR-отчёт в текстовом формате. * @details SQL set-returning function, которая формирует строки текстового * отчёта через минимальный построитель `rudb::awr`. * Выполняет проверку готовности сервиса * `DBMS_WORKLOAD_REPOSITORY`, валидирует обязательные идентификаторы * и диапазон снапшотов. Параметр `l_options` принимается, но * минимальная реализация не поддерживает полный Oracle-формат * опций отчёта. * Примеры: * SELECT output * FROM dbms_workload_repository_awr_report_text( * dbms_workload_repository_local_awr_dbid(), 1, 1, 2); * @param l_dbid Идентификатор AWR-репозитория. * @param l_inst_num Номер экземпляра. * @param l_bid Начальный снапшот. * @param l_eid Конечный снапшот. * @param l_options Дополнительные параметры форматирования отчёта. * @return Набор строк с текстовым представлением AWR-отчёта. */ Datum dbms_workload_repository_awr_report_text(PG_FUNCTION_ARGS); /** * @brief ************************************************************************* * @details awr_set_report_thresholds (PROCEDURE) * Allows configuring of specified report thresholds. Allows control of * number of rows in the report. * Parameters * top_n_events - number of most significant wait events to be included * top_n_files - number of most active files to be included * top_n_segments - number of most active segments to be included * top_n_services - number of most active services to be included * top_n_sql - number of most significant SQL statements to be * included * top_n_sql_max - number of SQL statements to be included if their * activity is greater than that specified by * top_sql_pct. * top_sql_pct - significance threshold for SQL statements between * top_n_sql and top_n_max_sql * shmem_threshold - shared memory low threshold * versions_threshold - plan version count low threshold * top_n_disks - number of cell disks with most I/O * outlier_pct - percentage of maximum capacity before we display * outliers for Exadata sections * outlier_cpu_pct - threshold for mean % cpu to display outliers * Note: effect of each setting depends on the type of report being * generated as well as on the underlying AWR data. Not all * settings are meaningful for each report type. * Invalid settings (such as negative numbers, etc,) are ignored. * ************************************************************************* * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN * DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_set_report_thresholds(:top_n_events, * :top_n_files, :top_n_segments, :top_n_services, :top_n_sql, :top_n_sql_max, * :top_sql_pct, :shmem_threshold, :versions_threshold, :top_n_disks, :outlier_pct, * :outlier_cpu_pct); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_set_report_thresholds(42, 42, * 42, 42, 42, 42, 42, 42, 42, 42, 42, 42); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_set_report_thresholds(0, 0, * 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); END; * @param top_n_events Аргумент top_n_events, режим IN, тип number. * @param top_n_files Аргумент top_n_files, режим IN, тип number. * @param top_n_segments Аргумент top_n_segments, режим IN, тип number. * @param top_n_services Аргумент top_n_services, режим IN, тип number. * @param top_n_sql Аргумент top_n_sql, режим IN, тип number. * @param top_n_sql_max Аргумент top_n_sql_max, режим IN, тип number. * @param top_sql_pct Аргумент top_sql_pct, режим IN, тип number. * @param shmem_threshold Аргумент shmem_threshold, режим IN, тип number. * @param versions_threshold Аргумент versions_threshold, режим IN, тип number. * @param top_n_disks Аргумент top_n_disks, режим IN, тип number. * @param outlier_pct Аргумент outlier_pct, режим IN, тип number. * @param outlier_cpu_pct Аргумент outlier_cpu_pct, режим IN, тип number. */ Datum dbms_workload_repository_awr_set_report_thresholds_0(PG_FUNCTION_ARGS); /** * @brief ************************************************************************* * @details awr_set_report_thresholds (PROCEDURE) * Allows configuring of specified report thresholds. Allows control of * number of rows in the report. * Parameters * top_n_events - number of most significant wait events to be included * top_n_files - number of most active files to be included * top_n_segments - number of most active segments to be included * top_n_services - number of most active services to be included * top_n_sql - number of most significant SQL statements to be * included * top_n_sql_max - number of SQL statements to be included if their * activity is greater than that specified by * top_sql_pct. * top_sql_pct - significance threshold for SQL statements between * top_n_sql and top_n_max_sql * shmem_threshold - shared memory low threshold * versions_threshold - plan version count low threshold * top_n_disks - number of cell disks with most I/O * outlier_pct - percentage of maximum capacity before we display * outliers for Exadata sections * outlier_cpu_pct - threshold for mean % cpu to display outliers * Note: effect of each setting depends on the type of report being * generated as well as on the underlying AWR data. Not all * settings are meaningful for each report type. * Invalid settings (such as negative numbers, etc,) are ignored. * ************************************************************************* * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_set_report_thresholds(); * END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_awr_set_report_thresholds(); */ Datum dbms_workload_repository_awr_set_report_thresholds_1(PG_FUNCTION_ARGS); /** * @brief Возвращает AWR SQL-отчёт в HTML-формате. * @details SQL set-returning function, которая формирует строки HTML-отчёта * через минимальный построитель `rudb::awr`. * Выполняет проверку готовности сервиса * `DBMS_WORKLOAD_REPOSITORY`, валидирует обязательные идентификаторы * и диапазон снапшотов. * `l_sqlid` может быть `NULL`, пустым или неизвестным без немедленной * ошибки, а отрицательный `l_con_dbid` отклоняется. * Примеры: * SELECT output * FROM dbms_workload_repository_awr_sql_report_html( * dbms_workload_repository_local_awr_dbid(), * 1, * 1, * 2, * '0000000000000'); * @param l_dbid Идентификатор AWR-репозитория. * @param l_inst_num Номер экземпляра. * @param l_bid Начальный снапшот. * @param l_eid Конечный снапшот. * @param l_sqlid SQL ID запроса. * @param l_options Дополнительные параметры форматирования отчёта. * @param l_con_dbid Идентификатор контейнера. * @return Набор строк с HTML-представлением AWR SQL-отчёта. */ Datum dbms_workload_repository_awr_sql_report_html(PG_FUNCTION_ARGS); /** * @brief Возвращает AWR SQL-отчёт в текстовом формате. * @details SQL set-returning function, которая формирует строки текстового * отчёта через минимальный построитель `rudb::awr`. * Выполняет проверку готовности сервиса * `DBMS_WORKLOAD_REPOSITORY`, валидирует обязательные идентификаторы * и диапазон снапшотов. * `l_sqlid` может быть `NULL`, пустым или неизвестным без немедленной * ошибки, а отрицательный `l_con_dbid` отклоняется. * Примеры: * SELECT output * FROM dbms_workload_repository_awr_sql_report_text( * dbms_workload_repository_local_awr_dbid(), * 1, * 1, * 2, * '0000000000000'); * @param l_dbid Идентификатор AWR-репозитория. * @param l_inst_num Номер экземпляра. * @param l_bid Начальный снапшот. * @param l_eid Конечный снапшот. * @param l_sqlid SQL ID запроса. * @param l_options Дополнительные параметры форматирования отчёта. * @param l_con_dbid Идентификатор контейнера. * @return Набор строк с текстовым представлением AWR SQL-отчёта. */ Datum dbms_workload_repository_awr_sql_report_text(PG_FUNCTION_ARGS); /** * @brief control_restricted_snapshot() * @details This routine controls if AWR snapshots are allowed to occur * even if the restricted session mode has been enabled for the * database. Calling this with allow=true will allow the AWR * snapshot capture for the local instance from which this routine * is called. Calling this with allow=false will disallow the AWR * snapshot capture in restricted session mode. * By default, if the database is in restricted session mode, AWR * snapshots are NOT allowed. * This routine must be called on each instance if the user wants * the snapshots to happen for each instance. * This routine only affects the behavior of the following procedure: * DBMS_WORKLOAD_REPOSITORY.CREATE_SNAPSHOT() * Input arguments: * allow - boolean to allow snapshots in restricted session mode * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN * DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_control_restricted_snapshot(:allow); * END; * CALL * DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_control_restricted_snapshot(TRUE); * BEGIN * DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_control_restricted_snapshot(FALSE); * END; * @param allow Аргумент allow, режим IN, тип bool. */ Datum dbms_workload_repository_control_restricted_snapshot_0(PG_FUNCTION_ARGS); /** * @brief control_restricted_snapshot() * @details This routine controls if AWR snapshots are allowed to occur * even if the restricted session mode has been enabled for the * database. Calling this with allow=true will allow the AWR * snapshot capture for the local instance from which this routine * is called. Calling this with allow=false will disallow the AWR * snapshot capture in restricted session mode. * By default, if the database is in restricted session mode, AWR * snapshots are NOT allowed. * This routine must be called on each instance if the user wants * the snapshots to happen for each instance. * This routine only affects the behavior of the following procedure: * DBMS_WORKLOAD_REPOSITORY.CREATE_SNAPSHOT() * Input arguments: * allow - boolean to allow snapshots in restricted session mode * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_control_restricted_snapshot(); * END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_control_restricted_snapshot(); */ Datum dbms_workload_repository_control_restricted_snapshot_1(PG_FUNCTION_ARGS); /** * @brief create_baseline() * @details Routine to create a baseline. A baseline is set of * of statistics defined by a (begin, end) pair of snapshots. * This routine will come in two forms: procedure and function. * The function returns the baseline_id for the baseline just created. * Input arguments: * start_snap_id - start snapshot sequence number for baseline * end_snap_id - end snapshot sequence number for baseline * baseline_name - name of baseline (required) * dbid - optional dbid, default to Local DBID * expiration - expiration in number of days for the * baseline. If NULL, then the expiration * is infinite, meaning do not drop baseline * ever. Defaults to NULL. * Returns: * NUMBER - baseline_id for the baseline just created * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_create_baseline_0(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_create_baseline_0(); */ Datum dbms_workload_repository_create_baseline_0(PG_FUNCTION_ARGS); /** * @brief create_baseline() * @details Routine to create a baseline. A baseline is set of * of statistics defined by a (begin, end) pair of snapshots. * This routine will come in two forms: procedure and function. * The function returns the baseline_id for the baseline just created. * Input arguments: * start_snap_id - start snapshot sequence number for baseline * end_snap_id - end snapshot sequence number for baseline * baseline_name - name of baseline (required) * dbid - optional dbid, default to Local DBID * expiration - expiration in number of days for the * baseline. If NULL, then the expiration * is infinite, meaning do not drop baseline * ever. Defaults to NULL. * Returns: * NUMBER - baseline_id for the baseline just created * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_create_baseline_1(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_create_baseline_1(); */ Datum dbms_workload_repository_create_baseline_1(PG_FUNCTION_ARGS); /** * @brief create_baseline() * @details Routine to create a baseline. A baseline is set of * of statistics defined by a (begin, end) pair of snapshots. * This routine will come in two forms: procedure and function. * The function returns the baseline_id for the baseline just created. * Input arguments: * start_snap_id - start snapshot sequence number for baseline * end_snap_id - end snapshot sequence number for baseline * baseline_name - name of baseline (required) * dbid - optional dbid, default to Local DBID * expiration - expiration in number of days for the * baseline. If NULL, then the expiration * is infinite, meaning do not drop baseline * ever. Defaults to NULL. * Returns: * NUMBER - baseline_id for the baseline just created * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_create_baseline_2(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_create_baseline_2(); */ Datum dbms_workload_repository_create_baseline_2(PG_FUNCTION_ARGS); /** * @brief create_baseline() * @details Routine to create a baseline. A baseline is set of * of statistics defined by a (begin, end) pair of snapshots. * This routine will come in two forms: procedure and function. * The function returns the baseline_id for the baseline just created. * Input arguments: * start_snap_id - start snapshot sequence number for baseline * end_snap_id - end snapshot sequence number for baseline * baseline_name - name of baseline (required) * dbid - optional dbid, default to Local DBID * expiration - expiration in number of days for the * baseline. If NULL, then the expiration * is infinite, meaning do not drop baseline * ever. Defaults to NULL. * Returns: * NUMBER - baseline_id for the baseline just created * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_create_baseline_3(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_create_baseline_3(); */ Datum dbms_workload_repository_create_baseline_3(PG_FUNCTION_ARGS); /** * @brief create_baseline() * @details Routine to create a baseline. A baseline is set of * of statistics defined by a (begin, end) pair of snapshots. * This routine will come in two forms: procedure and function. * The function returns the baseline_id for the baseline just created. * Input arguments: * start_snap_id - start snapshot sequence number for baseline * end_snap_id - end snapshot sequence number for baseline * baseline_name - name of baseline (required) * dbid - optional dbid, default to Local DBID * expiration - expiration in number of days for the * baseline. If NULL, then the expiration * is infinite, meaning do not drop baseline * ever. Defaults to NULL. * Returns: * NUMBER - baseline_id for the baseline just created * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_create_baseline(:start_snap_id, * :end_snap_id, :baseline_name, :dbid, :expiration, :arg_1, :start_snap_id, :end_snap_id, * :baseline_name, :dbid, :expiration, :start_time, :end_time, :baseline_name, :dbid, * :expiration, :arg_1, :start_time, :end_time, :baseline_name, :dbid, :expiration); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_create_baseline(42, 42, * 'demo_alias', 42, 42, 42, 42, 42, 'demo_alias', 42, 42, DATE '2026-01-01', DATE * '2026-01-01', 'demo_alias', 42, 42, 42, DATE '2026-01-01', DATE '2026-01-01', * 'demo_alias', 42, 42); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_create_baseline(0, 0, * 'demo_value', 0, 0, 0, 0, 0, 'demo_value', 0, 0, DATE '2026-01-01', DATE '2026-01-01', * 'demo_value', 0, 0, 0, DATE '2026-01-01', DATE '2026-01-01', 'demo_value', 0, 0); END; * @param start_snap_id Аргумент start_snap_id, режим IN, тип number. * @param end_snap_id Аргумент end_snap_id, режим IN, тип number. * @param baseline_name Аргумент baseline_name, режим IN, тип varchar2. * @param dbid Аргумент dbid, режим IN, тип number. * @param expiration Аргумент expiration, режим IN, тип number. * @param arg_1 Аргумент arg_1, режим OUT, тип number. * @param start_snap_id Аргумент start_snap_id, режим IN, тип number. * @param end_snap_id Аргумент end_snap_id, режим IN, тип number. * @param baseline_name Аргумент baseline_name, режим IN, тип varchar2. * @param dbid Аргумент dbid, режим IN, тип number. * @param expiration Аргумент expiration, режим IN, тип number. * @param start_time Аргумент start_time, режим IN, тип date. * @param end_time Аргумент end_time, режим IN, тип date. * @param baseline_name Аргумент baseline_name, режим IN, тип varchar2. * @param dbid Аргумент dbid, режим IN, тип number. * @param expiration Аргумент expiration, режим IN, тип number. * @param arg_1 Аргумент arg_1, режим OUT, тип number. * @param start_time Аргумент start_time, режим IN, тип date. * @param end_time Аргумент end_time, режим IN, тип date. * @param baseline_name Аргумент baseline_name, режим IN, тип varchar2. * @param dbid Аргумент dbid, режим IN, тип number. * @param expiration Аргумент expiration, режим IN, тип number. */ Datum dbms_workload_repository_create_baseline_4(PG_FUNCTION_ARGS); /** * @brief **************************** -- * @details Baseline Template routines -- * **************************** -- * create_baseline_template() - Single Time * This particular routine will create a Baseline Template for a * single time period. There will be a MMON task that will use * these inputs to create a Baseline for the time period when the * time comes. * Input arguments: * start_time - Start Time for the Baseline to be created * end_time - End Time for the Baseline to be created * baseline_name - Name of Baseline to be created. * template_name - Name for the Template * expiration - expiration in number of days for the baseline. * If NULL, then the expiration is infinite, meaning * do not drop baseline ever. Defaults to NULL. * dbid - Database Identifier for Baseline. * If NULL, then use the database identifier for the * local database. Defaults to NULL. * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN * DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_create_baseline_template(:start_time, * :end_time, :baseline_name, :template_name, :expiration, :dbid, :day_of_week, * :hour_in_day, :duration, :start_time, :end_time, :baseline_name_prefix, :template_name, * :expiration, :dbid); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_create_baseline_template(DATE * '2026-01-01', DATE '2026-01-01', 'demo_alias', 'demo_alias', 42, 42, 'demo_alias', 42, * 42, DATE '2026-01-01', DATE '2026-01-01', 'demo_alias', 'demo_alias', 42, 42); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_create_baseline_template(DATE * '2026-01-01', DATE '2026-01-01', 'demo_value', 'demo_value', 0, 0, 'demo_value', 0, 0, * DATE '2026-01-01', DATE '2026-01-01', 'demo_value', 'demo_value', 0, 0); END; * @param start_time Аргумент start_time, режим IN, тип date. * @param end_time Аргумент end_time, режим IN, тип date. * @param baseline_name Аргумент baseline_name, режим IN, тип varchar2. * @param template_name Аргумент template_name, режим IN, тип varchar2. * @param expiration Аргумент expiration, режим IN, тип number. * @param dbid Аргумент dbid, режим IN, тип number. * @param day_of_week Аргумент day_of_week, режим IN, тип varchar2. * @param hour_in_day Аргумент hour_in_day, режим IN, тип number. * @param duration Аргумент duration, режим IN, тип number. * @param start_time Аргумент start_time, режим IN, тип date. * @param end_time Аргумент end_time, режим IN, тип date. * @param baseline_name_prefix Аргумент baseline_name_prefix, режим IN, тип varchar2. * @param template_name Аргумент template_name, режим IN, тип varchar2. * @param expiration Аргумент expiration, режим IN, тип number. * @param dbid Аргумент dbid, режим IN, тип number. */ Datum dbms_workload_repository_create_baseline_template_0(PG_FUNCTION_ARGS); /** * @brief **************************** -- * @details Baseline Template routines -- * **************************** -- * create_baseline_template() - Single Time * This particular routine will create a Baseline Template for a * single time period. There will be a MMON task that will use * these inputs to create a Baseline for the time period when the * time comes. * Input arguments: * start_time - Start Time for the Baseline to be created * end_time - End Time for the Baseline to be created * baseline_name - Name of Baseline to be created. * template_name - Name for the Template * expiration - expiration in number of days for the baseline. * If NULL, then the expiration is infinite, meaning * do not drop baseline ever. Defaults to NULL. * dbid - Database Identifier for Baseline. * If NULL, then use the database identifier for the * local database. Defaults to NULL. * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_create_baseline_template_1(); * END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_create_baseline_template_1(); */ Datum dbms_workload_repository_create_baseline_template_1(PG_FUNCTION_ARGS); /** * @brief create_remote_snapshot * @details Create a manual snapshot from a remote database. * The database is identified by its UMF Node ID. * If the database is not registered with UMF, the snapshot will fail. * Parmeters * flush_level - flush level for the snapshot: * either 'DEAFULT', 'TYPICAL' or 'ALL' * node_id - The UMF Node ID for the remote database. * Returns: * NUMBER - The function returns the snapshot's snap_id. * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_create_remote_snapshot(:node_id, * :flush_level, :arg_1, :node_id, :flush_level, :node_name, :topology_name, :flush_level, * :arg_1, :node_name, :topology_name, :flush_level); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_create_remote_snapshot(42, * 'demo_alias', 42, 42, 'demo_alias', 'demo_alias', 'demo_alias', 'demo_alias', 42, * 'demo_alias', 'demo_alias', 'demo_alias'); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_create_remote_snapshot(0, * 'demo_value', 0, 0, 'demo_value', 'demo_value', 'demo_value', 'demo_value', 0, * 'demo_value', 'demo_value', 'demo_value'); END; * @param node_id Аргумент node_id, режим IN, тип number. * @param flush_level Аргумент flush_level, режим IN, тип varchar2, по умолчанию BESTFIT (source CSV). * @param arg_1 Аргумент arg_1, режим OUT, тип number. * @param node_id Аргумент node_id, режим IN, тип number. * @param flush_level Аргумент flush_level, режим IN, тип varchar2, по умолчанию BESTFIT (source CSV). * @param node_name Аргумент node_name, режим IN, тип varchar2. * @param topology_name Аргумент topology_name, режим IN, тип varchar2. * @param flush_level Аргумент flush_level, режим IN, тип varchar2, по умолчанию BESTFIT (source CSV). * @param arg_1 Аргумент arg_1, режим OUT, тип number. * @param node_name Аргумент node_name, режим IN, тип varchar2. * @param topology_name Аргумент topology_name, режим IN, тип varchar2. * @param flush_level Аргумент flush_level, режим IN, тип varchar2, по умолчанию BESTFIT (source CSV). */ Datum dbms_workload_repository_create_remote_snapshot_0(PG_FUNCTION_ARGS); /** * @brief create_remote_snapshot * @details Create a manual snapshot from a remote database. * The database is identified by its UMF Node ID. * If the database is not registered with UMF, the snapshot will fail. * Parmeters * flush_level - flush level for the snapshot: * either 'DEAFULT', 'TYPICAL' or 'ALL' * node_id - The UMF Node ID for the remote database. * Returns: * NUMBER - The function returns the snapshot's snap_id. * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_create_remote_snapshot_1(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_create_remote_snapshot_1(); */ Datum dbms_workload_repository_create_remote_snapshot_1(PG_FUNCTION_ARGS); /** * @brief create_remote_snapshot * @details Create a manual snapshot from a remote database. * The database is identified by its UMF Node ID. * If the database is not registered with UMF, the snapshot will fail. * Parmeters * flush_level - flush level for the snapshot: * either 'DEAFULT', 'TYPICAL' or 'ALL' * node_id - The UMF Node ID for the remote database. * Returns: * NUMBER - The function returns the snapshot's snap_id. * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_create_remote_snapshot_2(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_create_remote_snapshot_2(); */ Datum dbms_workload_repository_create_remote_snapshot_2(PG_FUNCTION_ARGS); /** * @brief create_remote_snapshot * @details Create a manual snapshot from a remote database. * The database is identified by its UMF Node ID. * If the database is not registered with UMF, the snapshot will fail. * Parmeters * flush_level - flush level for the snapshot: * either 'DEAFULT', 'TYPICAL' or 'ALL' * node_id - The UMF Node ID for the remote database. * Returns: * NUMBER - The function returns the snapshot's snap_id. * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_create_remote_snapshot_3(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_create_remote_snapshot_3(); */ Datum dbms_workload_repository_create_remote_snapshot_3(PG_FUNCTION_ARGS); /** * @brief *********************************** -- * @details DBMS_WORKLOAD_REPOSITORY Routines * *********************************** -- * create_snapshot() * Creates a snapshot in the workload repository. * This routine will come in two forms: procedure and function. * The function returns the snap_id for the snapshot just taken. * Input arguments: * flush_level - flush level for the snapshot: * either 'DEAFULT', 'TYPICAL' or 'ALL' * dbid - optional: If specified, a snapshot * will be taken for the (mapped) dbid. * If not specified, Source_Name will * be used as the ID. * source_name - optional: If specified, a snapshot * will be taken for the database with * the registered Source Name. * If not specified, the DBID parameter * value will be used. * timeout_secs - optional: If specified, the snapshot * will be enforced to stop if its runtime * exceeds the specified value (in seconds). * If not specified, the default runtime limit * will be enforced. * (Note: The parameter dbid and source_name are optional. Callers * are only allowed to specified no more than one of them * as ID for the snapshot database. * If none of the two parameters is specified, the Local * database is assumed. * If any one of the two parameters is specified, the * registered database that matches the specified parameter * will be chosen. * If both parameters are specified, an error will be raised. * End of notes) * Returns: * NUMBER - snap_id for snapshot just taken. * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_create_snapshot_0(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_create_snapshot_0(); */ Datum dbms_workload_repository_create_snapshot_0(PG_FUNCTION_ARGS); /** * @brief *********************************** -- * @details DBMS_WORKLOAD_REPOSITORY Routines * *********************************** -- * create_snapshot() * Creates a snapshot in the workload repository. * This routine will come in two forms: procedure and function. * The function returns the snap_id for the snapshot just taken. * Input arguments: * flush_level - flush level for the snapshot: * either 'DEAFULT', 'TYPICAL' or 'ALL' * dbid - optional: If specified, a snapshot * will be taken for the (mapped) dbid. * If not specified, Source_Name will * be used as the ID. * source_name - optional: If specified, a snapshot * will be taken for the database with * the registered Source Name. * If not specified, the DBID parameter * value will be used. * timeout_secs - optional: If specified, the snapshot * will be enforced to stop if its runtime * exceeds the specified value (in seconds). * If not specified, the default runtime limit * will be enforced. * (Note: The parameter dbid and source_name are optional. Callers * are only allowed to specified no more than one of them * as ID for the snapshot database. * If none of the two parameters is specified, the Local * database is assumed. * If any one of the two parameters is specified, the * registered database that matches the specified parameter * will be chosen. * If both parameters are specified, an error will be raised. * End of notes) * Returns: * NUMBER - snap_id for snapshot just taken. * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_create_snapshot(:flush_level, * :dbid, :source_name, :timeout_secs, :arg_1, :flush_level, :dbid, :source_name, * :timeout_secs); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_create_snapshot('demo_alias', 42, * 'demo_alias', 42, 42, 'demo_alias', 42, 'demo_alias', 42); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_create_snapshot('demo_value', 0, * 'demo_value', 0, 0, 'demo_value', 0, 'demo_value', 0); END; * @param flush_level Аргумент flush_level, режим IN, тип varchar2, по умолчанию BESTFIT (source CSV). * @param dbid Аргумент dbid, режим IN, тип number. * @param source_name Аргумент source_name, режим IN, тип varchar2. * @param timeout_secs Аргумент timeout_secs, режим IN, тип number. * @param arg_1 Аргумент arg_1, режим OUT, тип number. * @param flush_level Аргумент flush_level, режим IN, тип varchar2, по умолчанию BESTFIT (source CSV). * @param dbid Аргумент dbid, режим IN, тип number. * @param source_name Аргумент source_name, режим IN, тип varchar2. * @param timeout_secs Аргумент timeout_secs, режим IN, тип number. */ Datum dbms_workload_repository_create_snapshot_1(PG_FUNCTION_ARGS); /** * @brief define_application (PROCEDURE) * @details This procedure defines the application in AWR. * Input arguments: * dbid - database id, default to local DBID * app_name - application name * module_name - module name * action_name - action name * Returns: * none * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_define_application(:dbid, * :app_name, :module_name, :action_name); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_define_application(42, * 'demo_alias', 'demo_alias', 'demo_alias'); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_define_application(0, * 'demo_value', 'demo_value', 'demo_value'); END; * @param dbid Аргумент dbid, режим IN, тип number. * @param app_name Аргумент app_name, режим IN, тип varchar2. * @param module_name Аргумент module_name, режим IN, тип varchar2, по умолчанию % (source CSV). * @param action_name Аргумент action_name, режим IN, тип varchar2, по умолчанию % (source CSV). */ Datum dbms_workload_repository_define_application_0(PG_FUNCTION_ARGS); /** * @brief define_application (PROCEDURE) * @details This procedure defines the application in AWR. * Input arguments: * dbid - database id, default to local DBID * app_name - application name * module_name - module name * action_name - action name * Returns: * none * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_define_application(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_define_application(); */ Datum dbms_workload_repository_define_application_1(PG_FUNCTION_ARGS); /** * @brief disable_awrapp_snapshot (PROCEDURE) * @details This procedure disables AWR application snapshot. * Input arguments: * dbid - database id, default to local DBID * Returns: * none * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_disable_awrapp_snapshot(:dbid); * END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_disable_awrapp_snapshot(42); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_disable_awrapp_snapshot(0); END; * @param dbid Аргумент dbid, режим IN, тип number. */ Datum dbms_workload_repository_disable_awrapp_snapshot_0(PG_FUNCTION_ARGS); /** * @brief disable_awrapp_snapshot (PROCEDURE) * @details This procedure disables AWR application snapshot. * Input arguments: * dbid - database id, default to local DBID * Returns: * none * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_disable_awrapp_snapshot(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_disable_awrapp_snapshot(); */ Datum dbms_workload_repository_disable_awrapp_snapshot_1(PG_FUNCTION_ARGS); /** * @brief drop_baseline() * @details drops a baseline (by name) * Input arguments: * baseline_name - name of baseline to drop * dbid - database id, default to local DBID * cascade - if TRUE, the range of snapshots associated * with the baseline will also be dropped. * Otherwise, only the baseline is removed. * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_drop_baseline(:baseline_name, * :cascade, :dbid); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_drop_baseline('demo_alias', TRUE, * 42); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_drop_baseline('demo_value', * FALSE, 0); END; * @param baseline_name Аргумент baseline_name, режим IN, тип varchar2. * @param cascade Аргумент cascade, режим IN, тип bool, по умолчанию false (source CSV). * @param dbid Аргумент dbid, режим IN, тип number. */ Datum dbms_workload_repository_drop_baseline_0(PG_FUNCTION_ARGS); /** * @brief drop_baseline() * @details drops a baseline (by name) * Input arguments: * baseline_name - name of baseline to drop * dbid - database id, default to local DBID * cascade - if TRUE, the range of snapshots associated * with the baseline will also be dropped. * Otherwise, only the baseline is removed. * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_drop_baseline(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_drop_baseline(); */ Datum dbms_workload_repository_drop_baseline_1(PG_FUNCTION_ARGS); /** * @brief drop_baseline_template() * @details This particular routine will drop a Baseline Template. The user * provides the name of the Baseline Template they would like to drop. * Input arguments: * template_name - Name of the Baseline Template to drop * dbid - Database Identifier for Baseline. * If NULL, then use the database identifier for the * local database. Defaults to NULL. * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN * DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_drop_baseline_template(:template_name, * :dbid); END; * CALL * DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_drop_baseline_template('demo_alias', * 42); * BEGIN * DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_drop_baseline_template('demo_value', * 0); END; * @param template_name Аргумент template_name, режим IN, тип varchar2. * @param dbid Аргумент dbid, режим IN, тип number. */ Datum dbms_workload_repository_drop_baseline_template_0(PG_FUNCTION_ARGS); /** * @brief drop_baseline_template() * @details This particular routine will drop a Baseline Template. The user * provides the name of the Baseline Template they would like to drop. * Input arguments: * template_name - Name of the Baseline Template to drop * dbid - Database Identifier for Baseline. * If NULL, then use the database identifier for the * local database. Defaults to NULL. * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_drop_baseline_template(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_drop_baseline_template(); */ Datum dbms_workload_repository_drop_baseline_template_1(PG_FUNCTION_ARGS); /** * @brief drop_snapshot_range() * @details purge the snapshots for the given range of snapshots. * Input arguments: * low_snap_id - low snapshot id of snapshots to drop * high_snap_id - high snapshot id of snapshots to drop * dbid - database id (default to local DBID) * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN * DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_drop_snapshot_range(:low_snap_id, * :high_snap_id, :dbid); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_drop_snapshot_range(42, 42, 42); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_drop_snapshot_range(0, 0, 0); * END; * @param low_snap_id Аргумент low_snap_id, режим IN, тип number. * @param high_snap_id Аргумент high_snap_id, режим IN, тип number. * @param dbid Аргумент dbid, режим IN, тип number. */ Datum dbms_workload_repository_drop_snapshot_range_0(PG_FUNCTION_ARGS); /** * @brief drop_snapshot_range() * @details purge the snapshots for the given range of snapshots. * Input arguments: * low_snap_id - low snapshot id of snapshots to drop * high_snap_id - high snapshot id of snapshots to drop * dbid - database id (default to local DBID) * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_drop_snapshot_range(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_drop_snapshot_range(); */ Datum dbms_workload_repository_drop_snapshot_range_1(PG_FUNCTION_ARGS); /** * @brief enable_awrapp_snapshot (PROCEDURE) * @details This procedure enables AWR application snapshot. * Input arguments: * dbid - database id, default to local DBID * Returns: * none * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_enable_awrapp_snapshot(:dbid); * END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_enable_awrapp_snapshot(42); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_enable_awrapp_snapshot(0); END; * @param dbid Аргумент dbid, режим IN, тип number. */ Datum dbms_workload_repository_enable_awrapp_snapshot_0(PG_FUNCTION_ARGS); /** * @brief enable_awrapp_snapshot (PROCEDURE) * @details This procedure enables AWR application snapshot. * Input arguments: * dbid - database id, default to local DBID * Returns: * none * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_enable_awrapp_snapshot(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_enable_awrapp_snapshot(); */ Datum dbms_workload_repository_enable_awrapp_snapshot_1(PG_FUNCTION_ARGS); /** * @brief enable_snapshot_service (PROCEDURE) * @details This procedure enables the Snapshot service given by the snapshot type * and snapshot action. * For now, only 'WORKLOAD_SNAPSHOT' type and 'CREATE' action is supported. * In Read-Write database, snapshot service is enabled by default * In Read-Only database, snapshot service is disabled by default. * User should first call this API to enable AWR snapshot service before * any AWR snapshot functionalities can be used in Read-Only database. * The dbid to be enabled can only be local dbid for now. * Input arguments: * dbid - database id to be enabled, default to local DBID * snap_type - type of the snapshot * Valid value: 'WORKLOAD_SNAPSHOT' * snap_action - action of the snapshot * Valid value: 'CREATE' * Returns: * none * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_enable_snapshot_service(:dbid, * :snap_type, :snap_action); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_enable_snapshot_service(42, * 'demo_alias', 'demo_alias'); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_enable_snapshot_service(0, * 'demo_value', 'demo_value'); END; * @param dbid Аргумент dbid, режим IN, тип number. * @param snap_type Аргумент snap_type, режим IN, тип varchar2. * @param snap_action Аргумент snap_action, режим IN, тип varchar2. */ Datum dbms_workload_repository_enable_snapshot_service_0(PG_FUNCTION_ARGS); /** * @brief enable_snapshot_service (PROCEDURE) * @details This procedure enables the Snapshot service given by the snapshot type * and snapshot action. * For now, only 'WORKLOAD_SNAPSHOT' type and 'CREATE' action is supported. * In Read-Write database, snapshot service is enabled by default * In Read-Only database, snapshot service is disabled by default. * User should first call this API to enable AWR snapshot service before * any AWR snapshot functionalities can be used in Read-Only database. * The dbid to be enabled can only be local dbid for now. * Input arguments: * dbid - database id to be enabled, default to local DBID * snap_type - type of the snapshot * Valid value: 'WORKLOAD_SNAPSHOT' * snap_action - action of the snapshot * Valid value: 'CREATE' * Returns: * none * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_enable_snapshot_service(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_enable_snapshot_service(); */ Datum dbms_workload_repository_enable_snapshot_service_1(PG_FUNCTION_ARGS); /** * @brief exclude_appmap (PROCEDURE) * @details This procedure excludes the APPMAP into AWR flushing. * Input arguments: * dbid - database id, default to local DBID * appmap_name - APPMAP Name * Returns: * none * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_exclude_appmap(:dbid, * :appmap_name); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_exclude_appmap(42, 'demo_alias'); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_exclude_appmap(0, 'demo_value'); * END; * @param dbid Аргумент dbid, режим IN, тип number. * @param appmap_name Аргумент appmap_name, режим IN, тип varchar2. */ Datum dbms_workload_repository_exclude_appmap_0(PG_FUNCTION_ARGS); /** * @brief exclude_appmap (PROCEDURE) * @details This procedure excludes the APPMAP into AWR flushing. * Input arguments: * dbid - database id, default to local DBID * appmap_name - APPMAP Name * Returns: * none * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_exclude_appmap(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_exclude_appmap(); */ Datum dbms_workload_repository_exclude_appmap_1(PG_FUNCTION_ARGS); /** * @brief extract() * @details Routine to Extract AWR data from the AWR schema and dump the infomation * into a file. Users are allowed to specify the snapshot range for the * data they would like to extract. * Input Parameters: * dmpfile - Prefix for the name of the extract dump file and log file. * The name of the dump file where all the data from the AWR * tables will be written is dmpfile.dmp. The name of the log * file showing the status of the Export job will be dmpfile.log. * The prefix will default to awrdat. * dmpdir - Name of the Directory Object for the file system directory * where the extract dump file will be written. * This defaults to the 'DATA_PUMP_DIR' directory object. * bid - Begin Snapshot Id for snapshots to be exported. This * argument defaults to 0, the minimum snapshot ID. * eid - End Snapshot Id for snapshots to be exported. * This argument defaults to 10000000, the maximum snapshot ID. * dbid - Database ID for the snapshots that the user wants to * export. This argument defaults to NULL, for the local * database ID. (Refers to DBID column of DBA_HIST_WR_CONTROL) * from_source_name - Optional source name of the database for snapshots * to be exported. (SOURCE_NAME column of DBA_HIST_WR_CONTROL) * If not NULL, this parameter takes precedence over dbid. * to_source_name - Optional source name to be recorded in the dump file. * This may be different from the source name corresponding to * dbid parameter in DBA_HIST_WR_CONTROL. * logdir - directory for log file (defaults to ) * Returns: * none * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_extract(:dmpfile, :dmpdir, :bid, * :eid, :dbid, :from_source_name, :to_source_name, :logdir); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_extract('demo_alias', * 'demo_alias', 42, 42, 42, 'demo_alias', 'demo_alias', 'demo_alias'); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_extract('demo_value', * 'demo_value', 0, 0, 0, 'demo_value', 'demo_value', 'demo_value'); END; * @param dmpfile Аргумент dmpfile, режим IN, тип varchar2, по умолчанию awrdat (source CSV). * @param dmpdir Аргумент dmpdir, режим IN, тип varchar2, по умолчанию DATA_PUMP_DIR (source CSV). * @param bid Аргумент bid, режим IN, тип number, по умолчанию 0 (source CSV). * @param eid Аргумент eid, режим IN, тип number, по умолчанию 10000000 (source CSV). * @param dbid Аргумент dbid, режим IN, тип number. * @param from_source_name Аргумент from_source_name, режим IN, тип varchar2. * @param to_source_name Аргумент to_source_name, режим IN, тип varchar2. * @param logdir Аргумент logdir, режим IN, тип varchar2. */ Datum dbms_workload_repository_extract_0(PG_FUNCTION_ARGS); /** * @brief extract() * @details Routine to Extract AWR data from the AWR schema and dump the infomation * into a file. Users are allowed to specify the snapshot range for the * data they would like to extract. * Input Parameters: * dmpfile - Prefix for the name of the extract dump file and log file. * The name of the dump file where all the data from the AWR * tables will be written is dmpfile.dmp. The name of the log * file showing the status of the Export job will be dmpfile.log. * The prefix will default to awrdat. * dmpdir - Name of the Directory Object for the file system directory * where the extract dump file will be written. * This defaults to the 'DATA_PUMP_DIR' directory object. * bid - Begin Snapshot Id for snapshots to be exported. This * argument defaults to 0, the minimum snapshot ID. * eid - End Snapshot Id for snapshots to be exported. * This argument defaults to 10000000, the maximum snapshot ID. * dbid - Database ID for the snapshots that the user wants to * export. This argument defaults to NULL, for the local * database ID. (Refers to DBID column of DBA_HIST_WR_CONTROL) * from_source_name - Optional source name of the database for snapshots * to be exported. (SOURCE_NAME column of DBA_HIST_WR_CONTROL) * If not NULL, this parameter takes precedence over dbid. * to_source_name - Optional source name to be recorded in the dump file. * This may be different from the source name corresponding to * dbid parameter in DBA_HIST_WR_CONTROL. * logdir - directory for log file (defaults to ) * Returns: * none * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_extract(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_extract(); */ Datum dbms_workload_repository_extract_1(PG_FUNCTION_ARGS); /** * @brief Возвращает локальный AWR ID. * @details Функция выполняет проверку готовности сервиса * `DBMS_WORKLOAD_REPOSITORY`, валидирует `hub_name` и * `source_name`, а затем возвращает локальный AWR ID для вызова с * `NULL, NULL`. * Непустые неизвестные имена удалённого hub/source в текущей * минимальной реализации не поддерживаются и приводят к ошибке * "AWR ID not found for the requested hub/source". * Примеры: * SELECT dbms_workload_repository_get_awr_id(); * SELECT dbms_workload_repository_get_awr_id(NULL, NULL); * @param hub_name Имя AWR hub. * @param source_name Имя источника AWR. * @return Локальный AWR ID. */ Datum dbms_workload_repository_get_awr_id(PG_FUNCTION_ARGS); /** * @brief процедура dbms_workload_repository_get_awr_view_name_by_location. * @details Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN * DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_get_awr_view_name_by_location(:arg_1, * :dba_hist_view_name, :awr_location); END; * CALL * DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_get_awr_view_name_by_location('demo_alias', * 'demo_alias', 'demo_alias'); * BEGIN * DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_get_awr_view_name_by_location('demo_value', * 'demo_value', 'demo_value'); END; * @param arg_1 Аргумент arg_1, режим OUT, тип varchar2. * @param dba_hist_view_name Аргумент dba_hist_view_name, режим IN, тип varchar2. * @param awr_location Аргумент awr_location, режим IN, тип varchar2. */ Datum dbms_workload_repository_get_awr_view_name_by_location_0(PG_FUNCTION_ARGS); /** * @brief процедура dbms_workload_repository_get_awr_view_name_by_location. * @details Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_get_awr_view_name_by_location(); * END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_get_awr_view_name_by_location(); */ Datum dbms_workload_repository_get_awr_view_name_by_location_1(PG_FUNCTION_ARGS); /** * @brief include_appmap (PROCEDURE) * @details This procedure includes the APPMAP into AWR flushing. * Input arguments: * dbid - database id, default to local DBID * appmap_name - APPMAP Name * Returns: * none * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_include_appmap(:dbid, * :appmap_name); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_include_appmap(42, 'demo_alias'); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_include_appmap(0, 'demo_value'); * END; * @param dbid Аргумент dbid, режим IN, тип number. * @param appmap_name Аргумент appmap_name, режим IN, тип varchar2. */ Datum dbms_workload_repository_include_appmap_0(PG_FUNCTION_ARGS); /** * @brief include_appmap (PROCEDURE) * @details This procedure includes the APPMAP into AWR flushing. * Input arguments: * dbid - database id, default to local DBID * appmap_name - APPMAP Name * Returns: * none * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_include_appmap(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_include_appmap(); */ Datum dbms_workload_repository_include_appmap_1(PG_FUNCTION_ARGS); /** * @brief процедура dbms_workload_repository_is_automatic_snapshot_enabled. * @details Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN * DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_is_automatic_snapshot_enabled(:arg_1); * END; * CALL * DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_is_automatic_snapshot_enabled(TRUE); * BEGIN * DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_is_automatic_snapshot_enabled(FALSE); * END; * @param arg_1 Аргумент arg_1, режим OUT, тип bool. */ Datum dbms_workload_repository_is_automatic_snapshot_enabled_0(PG_FUNCTION_ARGS); /** * @brief процедура dbms_workload_repository_is_automatic_snapshot_enabled. * @details Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_is_automatic_snapshot_enabled(); * END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_is_automatic_snapshot_enabled(); */ Datum dbms_workload_repository_is_automatic_snapshot_enabled_1(PG_FUNCTION_ARGS); /** * @brief load() * @details Routine to load the AWR data from a dump file into the SYS schema. * Input arguments: * schname - Name of the schema to import the AWR data into. * dmpfile - Prefix for the name of the dump file and log file. * This file will be the source of the imported AWR data. * Defauls to to 'awrdat'. * dmpdir - Name of the Directory Object for the file system directory * where the load dump file is located. This defaults * to 'DATA_PUMP_DIR'. * new_dbid - dbid to be used instead of existing dbid * dup_snapshot_ok - proceed even if some of the snapshots already exist in * AWR schema, default TRUE * gather_stats - gather Optimizer Stats on the tables * source_name - registered source database name. * when not NULL, source_name takes precedence over dbid * logfile - name of the log file (including .log extension) * logdir - directory of the log file * Returns: * none * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_load(:schname, :dmpfile, * :dmpdir, :new_dbid, :dup_snapshot_ok, :gather_stats, :source_name, :logfile, :logdir); * END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_load('demo_alias', 'demo_alias', * 'demo_alias', 42, TRUE, TRUE, 'demo_alias', 'demo_alias', 'demo_alias'); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_load('demo_value', 'demo_value', * 'demo_value', 0, FALSE, FALSE, 'demo_value', 'demo_value', 'demo_value'); END; * @param schname Аргумент schname, режим IN, тип varchar2. * @param dmpfile Аргумент dmpfile, режим IN, тип varchar2, по умолчанию awrdat (source CSV). * @param dmpdir Аргумент dmpdir, режим IN, тип varchar2, по умолчанию DATA_PUMP_DIR (source CSV). * @param new_dbid Аргумент new_dbid, режим IN, тип number. * @param dup_snapshot_ok Аргумент dup_snapshot_ok, режим IN, тип bool, по умолчанию true (source CSV). * @param gather_stats Аргумент gather_stats, режим IN, тип bool, по умолчанию false (source CSV). * @param source_name Аргумент source_name, режим IN, тип varchar2. * @param logfile Аргумент logfile, режим IN, тип varchar2. * @param logdir Аргумент logdir, режим IN, тип varchar2. */ Datum dbms_workload_repository_load_0(PG_FUNCTION_ARGS); /** * @brief load() * @details Routine to load the AWR data from a dump file into the SYS schema. * Input arguments: * schname - Name of the schema to import the AWR data into. * dmpfile - Prefix for the name of the dump file and log file. * This file will be the source of the imported AWR data. * Defauls to to 'awrdat'. * dmpdir - Name of the Directory Object for the file system directory * where the load dump file is located. This defaults * to 'DATA_PUMP_DIR'. * new_dbid - dbid to be used instead of existing dbid * dup_snapshot_ok - proceed even if some of the snapshots already exist in * AWR schema, default TRUE * gather_stats - gather Optimizer Stats on the tables * source_name - registered source database name. * when not NULL, source_name takes precedence over dbid * logfile - name of the log file (including .log extension) * logdir - directory of the log file * Returns: * none * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_load(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_load(); */ Datum dbms_workload_repository_load_1(PG_FUNCTION_ARGS); /** * @brief Возвращает локальный минимальный AWR DBID. * @details Функция выполняет проверку готовности сервиса * `DBMS_WORKLOAD_REPOSITORY` и возвращает локальный минимальный DBID * из `rudb::awr`. * Примеры: * SELECT dbms_workload_repository_local_awr_dbid(); * @return Локальный минимальный AWR DBID. */ Datum dbms_workload_repository_local_awr_dbid(PG_FUNCTION_ARGS); /** * @brief modify_awrexp_settings (PROCEDURE) * @details This procedure modifies settings of AWR Export for given dbid * Input arguments: * dbid - database id to be modified * include_sqlmon_option - scope to export sql monitor * 'NO' - Do not export sql monitor, default value * 'ALL_EXP_IN_CURRENT_SESSION' - * All export operation in current session will * export both AWR snapshot data and * SQL monitor data. * Returns: * none * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_modify_awrexp_settings(:dbid, * :include_sqlmon_option); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_modify_awrexp_settings(42, * 'demo_alias'); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_modify_awrexp_settings(0, * 'demo_value'); END; * @param dbid Аргумент dbid, режим IN, тип number. * @param include_sqlmon_option Аргумент include_sqlmon_option, режим IN, тип varchar2, по умолчанию NO (source CSV). */ Datum dbms_workload_repository_modify_awrexp_settings_0(PG_FUNCTION_ARGS); /** * @brief modify_awrexp_settings (PROCEDURE) * @details This procedure modifies settings of AWR Export for given dbid * Input arguments: * dbid - database id to be modified * include_sqlmon_option - scope to export sql monitor * 'NO' - Do not export sql monitor, default value * 'ALL_EXP_IN_CURRENT_SESSION' - * All export operation in current session will * export both AWR snapshot data and * SQL monitor data. * Returns: * none * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_modify_awrexp_settings(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_modify_awrexp_settings(); */ Datum dbms_workload_repository_modify_awrexp_settings_1(PG_FUNCTION_ARGS); /** * @brief modify_baseline_window_size() * @details Routine to modify the window size for the default * moving window baseline * This routine modifies the window size for the Default Moving * Window Baseline. The user will input the size of the window * in number of days. * Input arguments: * window_size - New Window size for the default Moving Window * Baseline, in number of days * *************** * NOTE: The window size must be less than or equal to * the AWR retention setting. If the window size * needs to be greater than the retention setting, * the 'modify_snapshot_settings' routine can be * used to adjust the retention setting. * *************** * dbid - optional dbid, default to Local DBID * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN * DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_modify_baseline_window_size(:window_size, * :dbid); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_modify_baseline_window_size(42, * 42); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_modify_baseline_window_size(0, * 0); END; * @param window_size Аргумент window_size, режим IN, тип number. * @param dbid Аргумент dbid, режим IN, тип number. */ Datum dbms_workload_repository_modify_baseline_window_size_0(PG_FUNCTION_ARGS); /** * @brief modify_baseline_window_size() * @details Routine to modify the window size for the default * moving window baseline * This routine modifies the window size for the Default Moving * Window Baseline. The user will input the size of the window * in number of days. * Input arguments: * window_size - New Window size for the default Moving Window * Baseline, in number of days * *************** * NOTE: The window size must be less than or equal to * the AWR retention setting. If the window size * needs to be greater than the retention setting, * the 'modify_snapshot_settings' routine can be * used to adjust the retention setting. * *************** * dbid - optional dbid, default to Local DBID * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_modify_baseline_window_size(); * END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_modify_baseline_window_size(); */ Datum dbms_workload_repository_modify_baseline_window_size_1(PG_FUNCTION_ARGS); /** * @brief modify_snapshot_settings() * @details Procedure to adjust the settings of the snapshot collection. * Input arguments: * retention - new retention time (in minutes). The * specified value must be in the range: * MIN_RETENTION (1 day) to * MAX_RETENTION (100 years) * If ZERO is specified, snapshots will be * retained forever. A large system-defined * value will be used as the retention setting. * If NULL is specified, the old value for * retention is preserved. * *************** * NOTE: The retention setting must be * greater than or equal to the window * size of the 'SYSTEM_MOVING_WINDOW' * baseline. If the retention needs * to be less than the window size, * the 'modify_baseline_window_size' * routine can be used to adjust the * window size. * *************** * interval - the interval between each snapshot, in * units of minutes. The specified value * must be in the range: * MIN_INTERVAL (10 minutes) to * MAX_INTERVAL (100 years) * If ZERO is specified, automatic and manual * snapshots will be disabled. A large * system-defined value will be used as the * interval setting. * If NULL is specified, the * current value is preserved. * topnsql (NUMBER) - Top N SQL size. The number of Top SQL * to flush for each SQL criteria * (Elapsed Time, CPU Time, Parse Calls, * Shareable Memory, Version Count). * The value for this setting will be not * be affected by the statistics/flush level * and will override the system default * behavior for the AWR SQL collection. The * setting will have a minimum value of 30 * and a maximum value of 50000. * IF NULL is specified, the * current value is preserved. * topnsql (VARCHAR2) - Users are allowed to specify the following * values: ('DEFAULT', 'MAXIMUM', 'N') * Specifying 'DEFAULT' will revert the system * back to the default behavior of Top 30 for * level TYPICAL and Top 100 for level ALL. * Specifying 'MAXIMUM' will cause the system * to capture the complete set of SQL in the * cursor cache. Specifying the number 'N' is * equivalent to setting the Top N SQL with * the NUMBER type. * Specifying 'N' will cause the system * to flush the Top N SQL for each criteria. * The 'N' string is converted into the number * for Top N SQL. * dbid - database identifier for the database to * adjust setting. If NULL is specified, the * local dbid will be used. * tablespace_name (VARCHAR2)- optional: If specified, the new snapshots of * the DBID will reside in the specified * tablespace. If not specified, the new snapshot * of the DBID will reside in the current * tablespace (which was set for the DBID * previously). * emergency_snap - optional: enables/disables usage of emergency * AWR snapshot when database is shutdown. * For example, the following statement can be used to set the * Retention and Interval to their minimum settings: * dbms_workload_repository.modify_snapshot_settings * (retention => DBMS_WORKLOAD_REPOSITORY.MIN_RETENTION * interval => DBMS_WORKLOAD_REPOSITORY.MIN_INTERVAL) * The following statement can be used to set the Retention to * 8 days and the Interval to 60 minutes and the Top N SQL to * the default setting: * dbms_workload_repository.modify_snapshot_settings * (retention => 11520, interval => 60, topnsql => 'DEFAULT'); * The following statement can be used to set the Top N SQL * setting to 200: * dbms_workload_repository.modify_snapshot_settings * (topnsql => 200); * The following statement can be used to set the tablespace_name * dbms_workload_repository.modify_snapshot_settings * (dbid => 1234, tablespace_name => 'TB1'); * The following statement can be used to set the Emergency Snapshot ON * dbms_workload_repository.modify_snapshot_settings * (dbid => 1234, emergency_snap => TRUE); * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN * DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_modify_snapshot_settings(:retention, * :interval, :topnsql, :dbid, :tablespace_name, :auto_purge, :emergency_snap, :retention, * :interval, :topnsql, :dbid, :tablespace_name, :auto_purge, :emergency_snap); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_modify_snapshot_settings(42, 42, * 42, 42, 'demo_alias', TRUE, TRUE, 42, 42, 'demo_alias', 42, 'demo_alias', TRUE, TRUE); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_modify_snapshot_settings(0, 0, * 0, 0, 'demo_value', FALSE, FALSE, 0, 0, 'demo_value', 0, 'demo_value', FALSE, FALSE); * END; * @param retention Аргумент retention, режим IN, тип number. * @param interval Аргумент interval, режим IN, тип number. * @param topnsql Аргумент topnsql, режим IN, тип number. * @param dbid Аргумент dbid, режим IN, тип number. * @param tablespace_name Аргумент tablespace_name, режим IN, тип varchar2. * @param auto_purge Аргумент auto_purge, режим IN, тип bool. * @param emergency_snap Аргумент emergency_snap, режим IN, тип bool. * @param retention Аргумент retention, режим IN, тип number. * @param interval Аргумент interval, режим IN, тип number. * @param topnsql Аргумент topnsql, режим IN, тип varchar2. * @param dbid Аргумент dbid, режим IN, тип number. * @param tablespace_name Аргумент tablespace_name, режим IN, тип varchar2. * @param auto_purge Аргумент auto_purge, режим IN, тип bool. * @param emergency_snap Аргумент emergency_snap, режим IN, тип bool. */ Datum dbms_workload_repository_modify_snapshot_settings_0(PG_FUNCTION_ARGS); /** * @brief modify_snapshot_settings() * @details Procedure to adjust the settings of the snapshot collection. * Input arguments: * retention - new retention time (in minutes). The * specified value must be in the range: * MIN_RETENTION (1 day) to * MAX_RETENTION (100 years) * If ZERO is specified, snapshots will be * retained forever. A large system-defined * value will be used as the retention setting. * If NULL is specified, the old value for * retention is preserved. * *************** * NOTE: The retention setting must be * greater than or equal to the window * size of the 'SYSTEM_MOVING_WINDOW' * baseline. If the retention needs * to be less than the window size, * the 'modify_baseline_window_size' * routine can be used to adjust the * window size. * *************** * interval - the interval between each snapshot, in * units of minutes. The specified value * must be in the range: * MIN_INTERVAL (10 minutes) to * MAX_INTERVAL (100 years) * If ZERO is specified, automatic and manual * snapshots will be disabled. A large * system-defined value will be used as the * interval setting. * If NULL is specified, the * current value is preserved. * topnsql (NUMBER) - Top N SQL size. The number of Top SQL * to flush for each SQL criteria * (Elapsed Time, CPU Time, Parse Calls, * Shareable Memory, Version Count). * The value for this setting will be not * be affected by the statistics/flush level * and will override the system default * behavior for the AWR SQL collection. The * setting will have a minimum value of 30 * and a maximum value of 50000. * IF NULL is specified, the * current value is preserved. * topnsql (VARCHAR2) - Users are allowed to specify the following * values: ('DEFAULT', 'MAXIMUM', 'N') * Specifying 'DEFAULT' will revert the system * back to the default behavior of Top 30 for * level TYPICAL and Top 100 for level ALL. * Specifying 'MAXIMUM' will cause the system * to capture the complete set of SQL in the * cursor cache. Specifying the number 'N' is * equivalent to setting the Top N SQL with * the NUMBER type. * Specifying 'N' will cause the system * to flush the Top N SQL for each criteria. * The 'N' string is converted into the number * for Top N SQL. * dbid - database identifier for the database to * adjust setting. If NULL is specified, the * local dbid will be used. * tablespace_name (VARCHAR2)- optional: If specified, the new snapshots of * the DBID will reside in the specified * tablespace. If not specified, the new snapshot * of the DBID will reside in the current * tablespace (which was set for the DBID * previously). * emergency_snap - optional: enables/disables usage of emergency * AWR snapshot when database is shutdown. * For example, the following statement can be used to set the * Retention and Interval to their minimum settings: * dbms_workload_repository.modify_snapshot_settings * (retention => DBMS_WORKLOAD_REPOSITORY.MIN_RETENTION * interval => DBMS_WORKLOAD_REPOSITORY.MIN_INTERVAL) * The following statement can be used to set the Retention to * 8 days and the Interval to 60 minutes and the Top N SQL to * the default setting: * dbms_workload_repository.modify_snapshot_settings * (retention => 11520, interval => 60, topnsql => 'DEFAULT'); * The following statement can be used to set the Top N SQL * setting to 200: * dbms_workload_repository.modify_snapshot_settings * (topnsql => 200); * The following statement can be used to set the tablespace_name * dbms_workload_repository.modify_snapshot_settings * (dbid => 1234, tablespace_name => 'TB1'); * The following statement can be used to set the Emergency Snapshot ON * dbms_workload_repository.modify_snapshot_settings * (dbid => 1234, emergency_snap => TRUE); * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_modify_snapshot_settings_1(); * END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_modify_snapshot_settings_1(); */ Datum dbms_workload_repository_modify_snapshot_settings_1(PG_FUNCTION_ARGS); /** * @brief modify_table_quota() * @details Procedure to adjust the settings of an AWR table. * Input arguments: * table_name - The AWR table name whose settings need to be adjusted. * limit - (Optional) The number of allocated resources to the * table quota. Quota is considered to be exceeded when * the current value is equal or larger to the limit. * * If NULL is specified, the current value is preserved. * dbid - (Optional) Database identifier for the database to * adjust table setting. If NULL is specified, the local * dbid will be used. * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_modify_table_quota(:table_name, * :limit, :dbid); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_modify_table_quota('demo_alias', * 42, 42); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_modify_table_quota('demo_value', * 0, 0); END; * @param table_name Аргумент table_name, режим IN, тип varchar2. * @param limit Аргумент limit, режим IN, тип number. * @param dbid Аргумент dbid, режим IN, тип number. */ Datum dbms_workload_repository_modify_table_quota_0(PG_FUNCTION_ARGS); /** * @brief modify_table_quota() * @details Procedure to adjust the settings of an AWR table. * Input arguments: * table_name - The AWR table name whose settings need to be adjusted. * limit - (Optional) The number of allocated resources to the * table quota. Quota is considered to be exceeded when * the current value is equal or larger to the limit. * * If NULL is specified, the current value is preserved. * dbid - (Optional) Database identifier for the database to * adjust table setting. If NULL is specified, the local * dbid will be used. * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_modify_table_quota(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_modify_table_quota(); */ Datum dbms_workload_repository_modify_table_quota_1(PG_FUNCTION_ARGS); /** * @brief modify_table_settings() * @details Procedure to adjust the settings of an AWR table. * Input arguments: * table_name - The AWR table name whose settings need to be adjusted. * dbid - (Optional) Database identifier for the database to * adjust table setting. If NULL is specified, the local * dbid will be used. * flush_level - (Optional) The value of this argument represents the * minimum flush level that a snapshot must have in order * to flush the given table's data. * * If value 'LITE', 'TYPICAL', or 'ALL' is specified, * it overrides the value that comes out of * the box as the flush level of the AWR table whose name * is . * * If value 'DEFAULT' is specified, the value that comes * out of the box as the flush level of the AWR table * whose name is is preserved. * * If NULL is specified, the current value is preserved. * For example, the following statement overrides the out-of-the-box flush * level of table WRH$_FILESTATXS in a way that allows its flushing if the * flush_level of create_snapshot() is at least 'TYPICAL'. In other words, * the table will not be flushed when the snapshot level of * create_snapshot() is set to 'LITE', but it will be flushed when it is set * to 'TYPICAL' or 'ALL'. * dbms_workload_repository.modify_table_settings * (table_name => 'WRH$_FILESTATXS', * flush_level => 'TYPICAL') * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN * DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_modify_table_settings(:table_name, * :dbid, :flush_level); END; * CALL * DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_modify_table_settings('demo_alias', * 42, 'demo_alias'); * BEGIN * DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_modify_table_settings('demo_value', 0, * 'demo_value'); END; * @param table_name Аргумент table_name, режим IN, тип varchar2. * @param dbid Аргумент dbid, режим IN, тип number. * @param flush_level Аргумент flush_level, режим IN, тип varchar2. */ Datum dbms_workload_repository_modify_table_settings_0(PG_FUNCTION_ARGS); /** * @brief modify_table_settings() * @details Procedure to adjust the settings of an AWR table. * Input arguments: * table_name - The AWR table name whose settings need to be adjusted. * dbid - (Optional) Database identifier for the database to * adjust table setting. If NULL is specified, the local * dbid will be used. * flush_level - (Optional) The value of this argument represents the * minimum flush level that a snapshot must have in order * to flush the given table's data. * * If value 'LITE', 'TYPICAL', or 'ALL' is specified, * it overrides the value that comes out of * the box as the flush level of the AWR table whose name * is . * * If value 'DEFAULT' is specified, the value that comes * out of the box as the flush level of the AWR table * whose name is is preserved. * * If NULL is specified, the current value is preserved. * For example, the following statement overrides the out-of-the-box flush * level of table WRH$_FILESTATXS in a way that allows its flushing if the * flush_level of create_snapshot() is at least 'TYPICAL'. In other words, * the table will not be flushed when the snapshot level of * create_snapshot() is set to 'LITE', but it will be flushed when it is set * to 'TYPICAL' or 'ALL'. * dbms_workload_repository.modify_table_settings * (table_name => 'WRH$_FILESTATXS', * flush_level => 'TYPICAL') * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_modify_table_settings(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_modify_table_settings(); */ Datum dbms_workload_repository_modify_table_settings_1(PG_FUNCTION_ARGS); /** * @brief purge_sql_details() * @details This routine purges rows from the AWR SQL details tables * (WRH$_SQLTEXT and WHR$_SQL_PLAN) that are no longer required. * This may be helpful in an environment that uses a lot of * literals (leading to SQL statements that are only run once) * and AWR baselines (preserved snapshots). * Note that this routine does not rebuild segments, nor * does it do any other kind of DDL. * Input arguments: * numrows - maximum number of rows to purge at a time * dbid - database identifier * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_purge_sql_details(:numrows, * :dbid); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_purge_sql_details(42, 42); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_purge_sql_details(0, 0); END; * @param numrows Аргумент numrows, режим IN, тип number. * @param dbid Аргумент dbid, режим IN, тип number. */ Datum dbms_workload_repository_purge_sql_details_0(PG_FUNCTION_ARGS); /** * @brief purge_sql_details() * @details This routine purges rows from the AWR SQL details tables * (WRH$_SQLTEXT and WHR$_SQL_PLAN) that are no longer required. * This may be helpful in an environment that uses a lot of * literals (leading to SQL statements that are only run once) * and AWR baselines (preserved snapshots). * Note that this routine does not rebuild segments, nor * does it do any other kind of DDL. * Input arguments: * numrows - maximum number of rows to purge at a time * dbid - database identifier * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_purge_sql_details(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_purge_sql_details(); */ Datum dbms_workload_repository_purge_sql_details_1(PG_FUNCTION_ARGS); /** * @brief register_database (PROCEDURE) * @details This procedure adds a new Database ID into the Workload Repository and * create all the required partitions, metadata and settings associated * to that DBID. * If a tablespace name is specified, it will be used to store eligible * AWR data for the newly registered DBID. If no tablespace is specified, * the SYSAUX tablespace will be used. * Input arguments: * dbid - database id to be registered * tablespace_name - tablespace to be used to store data for this dbid * Returns: * none * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_register_database(:dbid, * :tablespace_name); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_register_database(42, * 'demo_alias'); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_register_database(0, * 'demo_value'); END; * @param dbid Аргумент dbid, режим IN, тип number. * @param tablespace_name Аргумент tablespace_name, режим IN, тип varchar2. */ Datum dbms_workload_repository_register_database_0(PG_FUNCTION_ARGS); /** * @brief register_database (PROCEDURE) * @details This procedure adds a new Database ID into the Workload Repository and * create all the required partitions, metadata and settings associated * to that DBID. * If a tablespace name is specified, it will be used to store eligible * AWR data for the newly registered DBID. If no tablespace is specified, * the SYSAUX tablespace will be used. * Input arguments: * dbid - database id to be registered * tablespace_name - tablespace to be used to store data for this dbid * Returns: * none * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_register_database(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_register_database(); */ Datum dbms_workload_repository_register_database_1(PG_FUNCTION_ARGS); /** * @brief register_remote_database(node_id) * @details Register a remote database with AWR. The remote database must already be * registered with UMF. The input node_id must be the UMF-assigned Node Id * for the remote node. * The procedure will update WRM$_WR_CONTROL with metadata for the remote * database. The UMF Node ID will be used as the DBID for AWR. In addition, * it will modify UMF metadata to declare that remote AWR is running on the * remote node. * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN * DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_register_remote_database(:node_id, * :node_name, :topology_name); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_register_remote_database(42, * 'demo_alias', 'demo_alias'); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_register_remote_database(0, * 'demo_value', 'demo_value'); END; * @param node_id Аргумент node_id, режим IN, тип number. * @param node_name Аргумент node_name, режим IN, тип varchar2. * @param topology_name Аргумент topology_name, режим IN, тип varchar2. */ Datum dbms_workload_repository_register_remote_database_0(PG_FUNCTION_ARGS); /** * @brief register_remote_database(node_id) * @details Register a remote database with AWR. The remote database must already be * registered with UMF. The input node_id must be the UMF-assigned Node Id * for the remote node. * The procedure will update WRM$_WR_CONTROL with metadata for the remote * database. The UMF Node ID will be used as the DBID for AWR. In addition, * it will modify UMF metadata to declare that remote AWR is running on the * remote node. * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_register_remote_database_1(); * END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_register_remote_database_1(); */ Datum dbms_workload_repository_register_remote_database_1(PG_FUNCTION_ARGS); /** * @brief remove_colored_sql() * @details Routine to remove a colored SQL ID, i.e. uncolored. After a * SQL is uncolored, it will no longer be captured in a snapshot * automatically, unless it makes the TOP list. * Input arguments: * dbid - optional dbid, default to Local DBID * sql_id - the 13-chararcter external SQL ID * Returns: * none. * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_remove_colored_sql(:sql_id, * :dbid); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_remove_colored_sql('demo_alias', * 42); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_remove_colored_sql('demo_value', * 0); END; * @param sql_id Аргумент sql_id, режим IN, тип varchar2. * @param dbid Аргумент dbid, режим IN, тип number. */ Datum dbms_workload_repository_remove_colored_sql_0(PG_FUNCTION_ARGS); /** * @brief remove_colored_sql() * @details Routine to remove a colored SQL ID, i.e. uncolored. After a * SQL is uncolored, it will no longer be captured in a snapshot * automatically, unless it makes the TOP list. * Input arguments: * dbid - optional dbid, default to Local DBID * sql_id - the 13-chararcter external SQL ID * Returns: * none. * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_remove_colored_sql(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_remove_colored_sql(); */ Datum dbms_workload_repository_remove_colored_sql_1(PG_FUNCTION_ARGS); /** * @brief rename_baseline() * @details Routine to rename a baseline. * This routine will allow the user to rename the Baseline. * Input arguments: * old_baseline_name - old baseline name * new_baseline_name - new baseline name * dbid - optional dbid, default to Local DBID * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_rename_baseline(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_rename_baseline(); */ Datum dbms_workload_repository_rename_baseline_0(PG_FUNCTION_ARGS); /** * @brief rename_baseline() * @details Routine to rename a baseline. * This routine will allow the user to rename the Baseline. * Input arguments: * old_baseline_name - old baseline name * new_baseline_name - new baseline name * dbid - optional dbid, default to Local DBID * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN * DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_rename_baseline(:old_baseline_name, * :new_baseline_name, :dbid); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_rename_baseline('demo_alias', * 'demo_alias', 42); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_rename_baseline('demo_value', * 'demo_value', 0); END; * @param old_baseline_name Аргумент old_baseline_name, режим IN, тип varchar2. * @param new_baseline_name Аргумент new_baseline_name, режим IN, тип varchar2. * @param dbid Аргумент dbid, режим IN, тип number. */ Datum dbms_workload_repository_rename_baseline_1(PG_FUNCTION_ARGS); /** * @brief процедура dbms_workload_repository_select_baseline_details. * @details Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_select_baseline_details(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_select_baseline_details(); */ Datum dbms_workload_repository_select_baseline_details_0(PG_FUNCTION_ARGS); /** * @brief процедура dbms_workload_repository_select_baseline_details. * @details Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_select_baseline_details(:arg_1, * :l_baseline_id, :l_beg_snap, :l_end_snap, :l_dbid); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_select_baseline_details(42, 42, * 42, 42, 42); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_select_baseline_details(0, 0, 0, * 0, 0); END; * @param arg_1 Аргумент arg_1, режим OUT, тип number. * @param l_baseline_id Аргумент l_baseline_id, режим IN, тип number. * @param l_beg_snap Аргумент l_beg_snap, режим IN, тип number. * @param l_end_snap Аргумент l_end_snap, режим IN, тип number. * @param l_dbid Аргумент l_dbid, режим IN, тип NUMBER. */ Datum dbms_workload_repository_select_baseline_details_1(PG_FUNCTION_ARGS); /** * @brief процедура dbms_workload_repository_select_baseline_metric. * @details Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_select_baseline_metric(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_select_baseline_metric(); */ Datum dbms_workload_repository_select_baseline_metric_0(PG_FUNCTION_ARGS); /** * @brief процедура dbms_workload_repository_select_baseline_metric. * @details Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_select_baseline_metric(:arg_1, * :l_baseline_name, :l_dbid, :l_instance_num); END; * CALL * DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_select_baseline_metric('demo_alias', * 42, 42, 42); * BEGIN * DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_select_baseline_metric('demo_value', * 0, 0, 0); END; * @param arg_1 Аргумент arg_1, режим OUT, тип varchar2. * @param l_baseline_name Аргумент l_baseline_name, режим IN, тип number. * @param l_dbid Аргумент l_dbid, режим IN, тип number. * @param l_instance_num Аргумент l_instance_num, режим IN, тип NUMBER. */ Datum dbms_workload_repository_select_baseline_metric_1(PG_FUNCTION_ARGS); /** * @brief процедура dbms_workload_repository_select_opt_env_details. * @details Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_select_opt_env_details(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_select_opt_env_details(); */ Datum dbms_workload_repository_select_opt_env_details_0(PG_FUNCTION_ARGS); /** * @brief процедура dbms_workload_repository_select_opt_env_details. * @details Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_select_opt_env_details(:arg_1, * :l_dbid, :l_opt_env_hv, :l_con_dbid, :l_snap_id, :l_opt_env); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_select_opt_env_details(42, 42, * 42, 42, CAST(NULL AS raw), CAST(NULL AS RAW)); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_select_opt_env_details(0, 0, 0, * 0, CAST(NULL AS raw), CAST(NULL AS RAW)); END; * @param arg_1 Аргумент arg_1, режим OUT, тип number. * @param l_dbid Аргумент l_dbid, режим IN, тип number. * @param l_opt_env_hv Аргумент l_opt_env_hv, режим IN, тип number. * @param l_con_dbid Аргумент l_con_dbid, режим IN, тип number. * @param l_snap_id Аргумент l_snap_id, режим IN, тип raw. * @param l_opt_env Аргумент l_opt_env, режим IN, тип RAW. */ Datum dbms_workload_repository_select_opt_env_details_1(PG_FUNCTION_ARGS); /** * @brief ****************************************************************** * @details set_report_sections (PROCEDURE) * Set user report section properties * Parameters: * sec_title - report section title * 'ALL' means any report section * max_rows - maximum number of rows for the specified section * It is 1000 by default for any report section * For example, the following statements can be used to set the * maximum number of rows to 1200 for section Child Latch Statistics: * dbms_workload_repository.set_report_sections( * (sec_title => 'Child Latch Statistics', * max_rows => 1200); * or: * dbms_workload_repository.set_report_sections( * (sec_title => 'ALL', * max_rows => 1200); * ****************************************************************** * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_set_report_sections(:sec_title, * :max_rows); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_set_report_sections('demo_alias', * 42); * BEGIN * DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_set_report_sections('demo_value', 0); * END; * @param sec_title Аргумент sec_title, режим IN, тип varchar2. * @param max_rows Аргумент max_rows, режим IN, тип binary_integer. */ Datum dbms_workload_repository_set_report_sections_0(PG_FUNCTION_ARGS); /** * @brief ****************************************************************** * @details set_report_sections (PROCEDURE) * Set user report section properties * Parameters: * sec_title - report section title * 'ALL' means any report section * max_rows - maximum number of rows for the specified section * It is 1000 by default for any report section * For example, the following statements can be used to set the * maximum number of rows to 1200 for section Child Latch Statistics: * dbms_workload_repository.set_report_sections( * (sec_title => 'Child Latch Statistics', * max_rows => 1200); * or: * dbms_workload_repository.set_report_sections( * (sec_title => 'ALL', * max_rows => 1200); * ****************************************************************** * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_set_report_sections(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_set_report_sections(); */ Datum dbms_workload_repository_set_report_sections_1(PG_FUNCTION_ARGS); /** * @brief unregister_database (PROCEDURE) * @details This procedure removes an existing Database ID from the Workload * Repository. If the force parameter is set to TRUE, any existing * snapshots associated to the specified Database ID will also be * removed. * Input arguments: * dbid - database id to be unregistered * remove_snapshot - Controls whether Oracle Database should remove * existing AWR snapshots for a DBID. * - if True, the operation will force the removal of * existing AWR snapshots as part of the procedure * - If False (DEFAULT), the operation will result * in error if AWR snapshots exist for this DBID * Returns: * none * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_unregister_database(:dbid, * :remove_snapshot); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_unregister_database(42, TRUE); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_unregister_database(0, FALSE); * END; * @param dbid Аргумент dbid, режим IN, тип number. * @param remove_snapshot Аргумент remove_snapshot, режим IN, тип bool, по умолчанию false (source CSV). */ Datum dbms_workload_repository_unregister_database_0(PG_FUNCTION_ARGS); /** * @brief unregister_database (PROCEDURE) * @details This procedure removes an existing Database ID from the Workload * Repository. If the force parameter is set to TRUE, any existing * snapshots associated to the specified Database ID will also be * removed. * Input arguments: * dbid - database id to be unregistered * remove_snapshot - Controls whether Oracle Database should remove * existing AWR snapshots for a DBID. * - if True, the operation will force the removal of * existing AWR snapshots as part of the procedure * - If False (DEFAULT), the operation will result * in error if AWR snapshots exist for this DBID * Returns: * none * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_unregister_database(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_unregister_database(); */ Datum dbms_workload_repository_unregister_database_1(PG_FUNCTION_ARGS); /** * @brief unregister_remote_database(node_id) * @details Unregister a remote database from AWR. The input node ID must be the * UMF Node ID of the remote node. The input node ID is used as the DBID * for AWR purposes. * Performs two operations: * 1. Removes the input Node ID (used as DBID ) from AWR, with the same * semantics as unregistering a local database. * 2. Updates UMF metadata to declare that remote AWR is no longer running * on the remote node. * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN * DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_unregister_remote_database(:node_id, * :remote_check, :node_name, :topology_name, :remote_check); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_unregister_remote_database(42, * TRUE, 'demo_alias', 'demo_alias', TRUE); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_unregister_remote_database(0, * FALSE, 'demo_value', 'demo_value', FALSE); END; * @param node_id Аргумент node_id, режим IN, тип number. * @param remote_check Аргумент remote_check, режим IN, тип bool, по умолчанию true (source CSV). * @param node_name Аргумент node_name, режим IN, тип varchar2. * @param topology_name Аргумент topology_name, режим IN, тип varchar2. * @param remote_check Аргумент remote_check, режим IN, тип bool, по умолчанию true (source CSV). */ Datum dbms_workload_repository_unregister_remote_database_0(PG_FUNCTION_ARGS); /** * @brief unregister_remote_database(node_id) * @details Unregister a remote database from AWR. The input node ID must be the * UMF Node ID of the remote node. The input node ID is used as the DBID * for AWR purposes. * Performs two operations: * 1. Removes the input Node ID (used as DBID ) from AWR, with the same * semantics as unregistering a local database. * 2. Updates UMF metadata to declare that remote AWR is no longer running * on the remote node. * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_unregister_remote_database_1(); * END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_unregister_remote_database_1(); */ Datum dbms_workload_repository_unregister_remote_database_1(PG_FUNCTION_ARGS); /** * @brief update_datafile_info() * @details This routine updates WRH$_DATAFILE rows for the datafile name and * tablespace name. Whenever this procedure runs, it will update these * values with the current information in the database. * This routine is useful when a datafile/tablespace has been moved or * renamed. As this change is generally not always captured in the next * snapshot in AWR. This change will be captured at max after some * (generally 50) snapshots. So the AWR and AWR report may be wrong with * respect to data file name or tablespace name for that duration. * To fix this problem, we can use this procedure to sync the table * WRH$_DATAFILE with the current information in database. * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_update_datafile_info(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_update_datafile_info(); */ Datum dbms_workload_repository_update_datafile_info(PG_FUNCTION_ARGS); /** * @brief update_object_info() * @details This routine updates rows of WRH$_SEG_STAT_OBJ table * that represent objects in the local database. * This routine attempts to determine current names for all objects * belonging to the local database, except those with 'MISSING' and/or * 'TRANSIENT' values in the name columns. * Amount of work performed at each invocation of this routine may be * controlled by appropriate settings of the input parameters. * modval are selected for validation. Default settings of modbase (1) and * modval (0) cause all rows to be examined. * Input arguments: * maxrows - maximum number of rows that will be updated * during each invocation of this routine. * Default value, 0, means there is no limit. * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_update_object_info(:maxrows); * END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_update_object_info(42); * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_update_object_info(0); END; * @param maxrows Аргумент maxrows, режим IN, тип number, по умолчанию 0 (source CSV). */ Datum dbms_workload_repository_update_object_info_0(PG_FUNCTION_ARGS); /** * @brief update_object_info() * @details This routine updates rows of WRH$_SEG_STAT_OBJ table * that represent objects in the local database. * This routine attempts to determine current names for all objects * belonging to the local database, except those with 'MISSING' and/or * 'TRANSIENT' values in the name columns. * Amount of work performed at each invocation of this routine may be * controlled by appropriate settings of the input parameters. * modval are selected for validation. Default settings of modbase (1) and * modval (0) cause all rows to be examined. * Input arguments: * maxrows - maximum number of rows that will be updated * during each invocation of this routine. * Default value, 0, means there is no limit. * Это заглушка совместимости: SQL-объявление сохранено, но реализация пока не * предоставлена. * Контракт и типы берутся из inventory/spec, чтобы HPP оставался синхронизированным с * SQL-поверхностью. * Примеры: * BEGIN DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_update_object_info(); END; * CALL DBMS_WORKLOAD_REPOSITORY.dbms_workload_repository_update_object_info(); */ Datum dbms_workload_repository_update_object_info_1(PG_FUNCTION_ARGS); } // extern "C" #endif // DBMS_WORKLOAD_REPOSITORY_INTERNAL_HPP