MINI MINI MANI MO
Rem
Rem $Header: rdbms/admin/dbmserlg.sql /main/3 2014/02/20 12:45:39 surman Exp $
Rem
Rem dbmserlg.sql
Rem
Rem Copyright (c) 2005, 2014, Oracle and/or its affiliates.
Rem All rights reserved.
Rem
Rem NAME
Rem dbmserlg.sql - DBMS_ERRLOG
Rem
Rem DESCRIPTION
Rem DBMS_ERRLOG - DML Error logging
Rem
Rem NOTES
Rem DBMS_ERRLOG - originally located in dbmsutil.sql
Rem
Rem
Rem BEGIN SQL_FILE_METADATA
Rem SQL_SOURCE_FILE: rdbms/admin/dbmserlg.sql
Rem SQL_SHIPPED_FILE: rdbms/admin/dbmserlg.sql
Rem SQL_PHASE: DBMSERLG
Rem SQL_STARTUP_MODE: NORMAL
Rem SQL_IGNORABLE_ERRORS: NONE
Rem SQL_CALLING_FILE: rdbms/admin/catpdbms.sql
Rem END SQL_FILE_METADATA
Rem
Rem MODIFIED (MM/DD/YY)
Rem surman 12/29/13 - 13922626: Update SQL metadata
Rem surman 03/27/12 - 13615447: Add SQL patching tags
Rem lvbcheng 08/17/05 - lvbcheng_split_dbms_util
Rem lvbcheng 07/29/05 - Transferred here from dbmsutil.sql
Rem abrumm 03/17/04 - DML Error Logging: add dbms_errlog
Rem
@@?/rdbms/admin/sqlsessstart.sql
Rem ********************************************************************
Rem THESE PACKAGES MUST NOT BE MODIFIED BY THE CUSTOMER. DOING SO
Rem COULD CAUSE INTERNAL ERRORS AND SECURITY VIOLATIONS IN THE
Rem RDBMS. SPECIFICALLY, THE PSD* AND EXECUTE_SQL ROUTINES MUST NOT BE
Rem CALLED DIRECTLY BY ANY CLIENT AND MUST REMAIN PRIVATE TO THE PACKAGE BODY.
Rem ********************************************************************
--------------------
create or replace package dbms_errlog AUTHID CURRENT_USER is
--------------------
-- OVERVIEW
--
-- This package is provided to ease the creation of a DML error
-- logging table based on the shape of a table which DML operations
-- are to be done on.
--
--------------------
-- PROCEDURES AND FUNCTIONS
--
procedure create_error_log(dml_table_name varchar2,
err_log_table_name varchar2 default NULL,
err_log_table_owner varchar2 default NULL,
err_log_table_space varchar2 default NULL,
skip_unsupported boolean default FALSE);
-- Input arguments:
-- dml_table_name
-- Name of the DML table to use to base the shape of error logging
-- table on. Name can be fully qualified
-- (e.g. 'emp', 'scott.emp', '"EMP"', '"SCOTT"."EMP"')
-- If a name component is enclosed in double quotes, it will not
-- be upper cased.
-- DEFAULT: None, mandatory argument.
-- err_log_table_name
-- Name of the error logging table to create.
-- DEFAULT: First 25 characters in the name of the DML table prefixed
-- with 'ERR$_'.
-- Example: dml_table_name: 'EMP',
-- err_log_table_name: 'ERR$_EMP'
-- Example: dml_table_name: '"Emp2"',
-- err_log_table_name: 'ERR$_Emp2'
-- err_log_table_owner
-- Name of the owner of the error table.
-- DEFAULT: If owner specified in dml_table_name, then default
-- is owner specified in dml_table_name.
-- Otherwise, uses schema of current connected user.
-- err_log_table_space
-- Tablespace to create the error logging table in.
-- DEFAULT: Creating users default tablespace.
-- skip_unsupported
-- When skip_unsupported is TRUE, column types which are not
-- supported by DML Error logging will be skipped over and not
-- added to the error logging table.
-- When skip_unsupported is FALSE, an unsupported column type will
-- cause the procedure to terminate.
-- DEFAULT: FALSE.
--
end;
/
create or replace public synonym dbms_errlog for sys.dbms_errlog
/
grant execute on dbms_errlog to public
/
@?/rdbms/admin/sqlsessend.sql
OHA YOOOO