MINI MINI MANI MO
Rem
Rem $Header: rdbms/admin/catsqltk.sql /main/6 2014/02/20 12:45:43 surman Exp $
Rem
Rem catsqltk.sql
Rem
Rem Copyright (c) 2006, 2014, Oracle and/or its affiliates.
Rem All rights reserved.
Rem
Rem NAME
Rem catsqltk.sql - SQL Toolkit for dictionary checkers
Rem
Rem DESCRIPTION
Rem Creates the schema for the sql toolkit for dictionary checks
Rem
Rem NOTES
Rem See the prvtsqlt.sql file for the interface to these tables
Rem
Rem
Rem BEGIN SQL_FILE_METADATA
Rem SQL_SOURCE_FILE: rdbms/admin/catsqltk.sql
Rem SQL_SHIPPED_FILE: rdbms/admin/catsqltk.sql
Rem SQL_PHASE: CATSQLTK
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 traney 03/31/11 - 35209: long identifiers dictionary upgrade
Rem jklein 09/15/06 - check useability improvements
Rem jklein 05/04/06 - sql toolkit
Rem jklein 05/04/06 - sql toolkit
Rem jklein 05/04/06 - Created
Rem
@@?/rdbms/admin/sqlsessstart.sql
drop sequence sql_tk_chk_id;
create sequence sql_tk_chk_id;
Rem %%%%%%%%%%%%%%%%%%
Rem SQL_TK_COLL_CHK$
Rem %%%%%%%%%%%%%%%%%%
Rem
Rem The sql_tk_coll_chk$ table stores information about multi column
rem checks.
Rem
drop table SQL_TK_COLL_CHK$;
create table SQL_TK_COLL_CHK$
( table_name varchar2(128) not null,
chk_id number not null,
col_list varchar2(4000) not null,
expr varchar2(4000) not null,
check_description varchar2(256) not null
) tablespace SYSAUX
/
Rem %%%%%%%%%%%%%%%
Rem SQL_TK_ROW_CHK$
Rem %%%%%%%%%%%%%%%
Rem
Rem The sql_tk_row_chk$ table stores information about row checks
Rem
drop table SQL_TK_ROW_CHK$;
create table SQL_TK_ROW_CHK$
( table_name varchar2(128) not null,
chk_id number not null,
col_list varchar2(4000) not null,
constraint_type varchar2(30) not null,
check_description varchar2(256) not null
) tablespace SYSAUX
/
Rem %%%%%%%%%%%%%%%
Rem SQL_TK_REF_CHK$
Rem %%%%%%%%%%%%%%%
Rem
Rem The sql_tk_ref_chk$ table stores information about referential checks.
Rem
drop table SQL_TK_REF_CHK$;
create table SQL_TK_REF_CHK$
( table_name varchar2(128) not null,
chk_id number not null,
fk_col_list varchar2(4000) not null,
pk_table_name varchar2(128) not null,
pk_col_list varchar2(4000) not null,
fk_filter varchar2(4000),
check_description varchar2(256) not null
) tablespace SYSAUX
/
Rem %%%%%%%%%%%%%%%
Rem SQL_TK_TAB_DESC$
Rem %%%%%%%%%%%%%%%
Rem
Rem The sql_tk_tab_desc$ table contains a query that can be executed to
Rem provide more detailed information about a failure for a given table.
Rem
drop table SQL_TK_TAB_DESC$;
create table SQL_TK_TAB_DESC$
( table_name varchar2(128) not null,
table_query varchar2(4000) not null
) tablespace SYSAUX
/
@?/rdbms/admin/sqlsessend.sql
OHA YOOOO