Skip to content

Commit

Permalink
Maintaining compatibility with older Oracle versions
Browse files Browse the repository at this point in the history
  • Loading branch information
sualeh committed Sep 20, 2015
1 parent 3f1b7c8 commit 4412918
Show file tree
Hide file tree
Showing 12 changed files with 127 additions and 109 deletions.
116 changes: 22 additions & 94 deletions schemacrawler-docs/sc_oracle.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ System Information
========================================================================

generated by SchemaCrawler 14.03.03
generated on 2015-09-19 18:24:08
database version Oracle Oracle Database 12c Release 12.1.0.1.0 - 64bit Production
generated on 2015-09-20 00:31:41
database version Oracle Oracle Database 11g Release 11.2.0.4.0 - 64bit Production
driver version Oracle JDBC driver 12.1.0.2.0


Expand Down Expand Up @@ -77,15 +77,15 @@ CHECK_UPPERCASE_STATE [check constraint]
STATE
ALTER TABLE "SCHEMACRAWLER"."AUTHORS" ADD CONSTRAINT "CHECK_UPPERCASE_STATE" CHECK (State=UPPER(State)) ENABLE;

SYS_C004888 [check constraint]
SYS_C003908 [check constraint]
ID
ALTER TABLE "SCHEMACRAWLER"."AUTHORS" MODIFY ("ID" NOT NULL ENABLE);

SYS_C004889 [check constraint]
SYS_C003909 [check constraint]
FIRSTNAME
ALTER TABLE "SCHEMACRAWLER"."AUTHORS" MODIFY ("FIRSTNAME" NOT NULL ENABLE);

SYS_C004890 [check constraint]
SYS_C003910 [check constraint]
LASTNAME
ALTER TABLE "SCHEMACRAWLER"."AUTHORS" MODIFY ("LASTNAME" NOT NULL ENABLE);

Expand Down Expand Up @@ -162,11 +162,11 @@ FK_Z_AUTHOR [foreign key constraint]
ALTER TABLE "SCHEMACRAWLER"."BOOKAUTHORS" ADD CONSTRAINT "FK_Z_AUTHOR" FOREIGN KEY ("AUTHORID")
REFERENCES "SCHEMACRAWLER"."AUTHORS" ("ID") ENABLE;

SYS_C004898 [check constraint]
SYS_C003918 [check constraint]
BOOKID
ALTER TABLE "SCHEMACRAWLER"."BOOKAUTHORS" MODIFY ("BOOKID" NOT NULL ENABLE);

SYS_C004899 [check constraint]
SYS_C003919 [check constraint]
AUTHORID
ALTER TABLE "SCHEMACRAWLER"."BOOKAUTHORS" MODIFY ("AUTHORID" NOT NULL ENABLE);

Expand All @@ -183,11 +183,11 @@ CREATE TABLE "SCHEMACRAWLER"."BOOKAUTHORS"
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "USERS"
LOB ("UPDATE") STORE AS SECUREFILE (
TABLESPACE "USERS" ENABLE STORAGE IN ROW CHUNK 8192
NOCACHE LOGGING NOCOMPRESS KEEP_DUPLICATES
STORAGE(INITIAL 106496 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0
LOB ("UPDATE") STORE AS BASICFILE (
TABLESPACE "USERS" ENABLE STORAGE IN ROW CHUNK 8192 RETENTION
NOCACHE LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)) ;


Expand Down Expand Up @@ -254,15 +254,15 @@ FK_PREVIOUSEDITION [foreign key constraint]
ALTER TABLE "SCHEMACRAWLER"."BOOKS" ADD CONSTRAINT "FK_PREVIOUSEDITION" FOREIGN KEY ("PREVIOUSEDITIONID")
REFERENCES "SCHEMACRAWLER"."BOOKS" ("ID") ENABLE;

SYS_C004893 [check constraint]
SYS_C003913 [check constraint]
ID
ALTER TABLE "SCHEMACRAWLER"."BOOKS" MODIFY ("ID" NOT NULL ENABLE);

SYS_C004894 [check constraint]
SYS_C003914 [check constraint]
TITLE
ALTER TABLE "SCHEMACRAWLER"."BOOKS" MODIFY ("TITLE" NOT NULL ENABLE);

SYS_C004895 [check constraint]
SYS_C003915 [check constraint]
PUBLISHERID
ALTER TABLE "SCHEMACRAWLER"."BOOKS" MODIFY ("PUBLISHERID" NOT NULL ENABLE);

Expand Down Expand Up @@ -304,70 +304,6 @@ CREATE TABLE "SCHEMACRAWLER"."Global Counts"



SCHEMACRAWLER.PLAN_TABLE [table]
------------------------------------------------------------------------
STATEMENT_ID VARCHAR2(30)
"TIMESTAMP" DATE
REMARKS VARCHAR2(80)
OPERATION VARCHAR2(30)
OPTIONS VARCHAR2(30)
OBJECT_NODE VARCHAR2(128)
OBJECT_OWNER VARCHAR2(30)
OBJECT_NAME VARCHAR2(30)
OBJECT_INSTANCE NUMBER(38, 0)
OBJECT_TYPE VARCHAR2(30)
OPTIMIZER VARCHAR2(255)
SEARCH_COLUMNS NUMBER
ID NUMBER(38, 0)
PARENT_ID NUMBER(38, 0)
POSITION NUMBER(38, 0)
COST NUMBER(38, 0)
CARDINALITY NUMBER(38, 0)
BYTES NUMBER(38, 0)
OTHER_TAG VARCHAR2(255)
PARTITION_START VARCHAR2(255)
PARTITION_STOP VARCHAR2(255)
PARTITION_ID NUMBER(38, 0)
OTHER LONG
DISTRIBUTION VARCHAR2(30)

Definition
[definition]
CREATE TABLE "SCHEMACRAWLER"."PLAN_TABLE"
( "STATEMENT_ID" VARCHAR2(30 BYTE),
"TIMESTAMP" DATE,
"REMARKS" VARCHAR2(80 BYTE),
"OPERATION" VARCHAR2(30 BYTE),
"OPTIONS" VARCHAR2(30 BYTE),
"OBJECT_NODE" VARCHAR2(128 BYTE),
"OBJECT_OWNER" VARCHAR2(30 BYTE),
"OBJECT_NAME" VARCHAR2(30 BYTE),
"OBJECT_INSTANCE" NUMBER(38,0),
"OBJECT_TYPE" VARCHAR2(30 BYTE),
"OPTIMIZER" VARCHAR2(255 BYTE),
"SEARCH_COLUMNS" NUMBER,
"ID" NUMBER(38,0),
"PARENT_ID" NUMBER(38,0),
"POSITION" NUMBER(38,0),
"COST" NUMBER(38,0),
"CARDINALITY" NUMBER(38,0),
"BYTES" NUMBER(38,0),
"OTHER_TAG" VARCHAR2(255 BYTE),
"PARTITION_START" VARCHAR2(255 BYTE),
"PARTITION_STOP" VARCHAR2(255 BYTE),
"PARTITION_ID" NUMBER(38,0),
"OTHER" LONG,
"DISTRIBUTION" VARCHAR2(30 BYTE)
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "USERS" ;



SCHEMACRAWLER.PUBLISHERS [table]
------------------------------------------------------------------------
List of book publishers
Expand All @@ -378,7 +314,7 @@ List of book publishers

Primary Key

SYS_C004887 [primary key]
SYS_C003907 [primary key]
ID unknown

Weak Associations
Expand All @@ -388,7 +324,7 @@ Weak Associations

Table Constraints

SYS_C004887 [primary key constraint]
SYS_C003907 [primary key constraint]
ID
ALTER TABLE "SCHEMACRAWLER"."PUBLISHERS" ADD PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255
Expand Down Expand Up @@ -428,7 +364,7 @@ NULL

Definition
[definition]
CREATE OR REPLACE EDITIONABLE FUNCTION "SCHEMACRAWLER"."SQUIRREL_GET_ERROR_OFFSET" (query IN varchar2) return number authid current_user is l_theCursor integer default dbms_sql.open_cursor; l_status integer; begin begin dbms_sql.parse( l_theCursor, query, dbms_sql.native ); exception when others then l_status := dbms_sql.last_error_position; end; dbms_sql.close_cursor( l_theCursor ); return l_status; end;
CREATE OR REPLACE FUNCTION "SCHEMACRAWLER"."SQUIRREL_GET_ERROR_OFFSET" (query IN varchar2) return number authid current_user is l_theCursor integer default dbms_sql.open_cursor; l_status integer; begin begin dbms_sql.parse( l_theCursor, query, dbms_sql.native ); exception when others then l_status := dbms_sql.last_error_position; end; dbms_sql.close_cursor( l_theCursor ); return l_status; end;
/


Expand Down Expand Up @@ -588,14 +524,6 @@ VARCHAR2 [data type]
not auto-incrementable
searchable

SCHEMACRAWLER.CLR_ERP_META_HEADER_REC_TYPE [data type]
based on NULL
user defined
defined with
not nullable
not auto-incrementable
unknown



System Information
Expand All @@ -611,7 +539,7 @@ product version 14.03.03
Database Information
-=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=-
database product name Oracle
database product version Oracle Database 12c Release 12.1.0.1.0 - 64bit Production
database product version Oracle Database 11g Release 11.2.0.4.0 - 64bit Production
database user name SCHEMACRAWLER


Expand All @@ -626,8 +554,8 @@ catalogs
client info properties
data definition causes transaction commit true
data definition ignored in transactions false
database major version 12
database minor version 1
database major version 11
database minor version 2
default transaction isolation 2
deletes are detected for TYPE_FORWARD_ONLY result sets false
deletes are detected for TYPE_SCROLL_INSENSITIVE result sets false
Expand Down Expand Up @@ -692,7 +620,7 @@ procedure term procedure
result set holdability 1
row id lifetime ROWID_VALID_FOREVER
schema term schema
schemas ANONYMOUS, APPQOSSYS, AUDSYS, CTXSYS, DBSNMP, DIP, GSMADMIN_INTERNAL, GSMCATUSER, GSMUSER, OUTLN, RDSADMIN, SCHEMACRAWLER, SYS, SYSBACKUP, SYSDG, SYSKM, SYSTEM, XDB, XS$NULL
schemas APPQOSSYS, CTXSYS, DBSNMP, DIP, OUTLN, RDSADMIN, SCHEMACRAWLER, SYS, SYSTEM
search string escape /
SQL keywords ACCESS, ADD, ALTER, AUDIT, CLUSTER, COLUMN, COMMENT, COMPRESS, CONNECT, DATE, DROP, EXCLUSIVE, FILE, IDENTIFIED, IMMEDIATE, INCREMENT, INDEX, INITIAL, INTERSECT, LEVEL, LOCK, LONG, MAXEXTENTS, MINUS, MODE, NOAUDIT, NOCOMPRESS, NOWAIT, NUMBER, OFFLINE, ONLINE, PCTFREE, PRIOR, all_PL_SQL_reserved_ words
SQL state type 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,14 @@ FROM
INNER JOIN ALL_USERS USERS
ON TABLE_CONTRAINTS.OWNER = USERS.USERNAME
WHERE
USERS.ORACLE_MAINTAINED != 'Y'
USERS.USERNAME NOT IN
('ANONYMOUS', 'APEX_PUBLIC_USER', 'BI', 'CTXSYS', 'DBSNMP', 'DIP',
'EXFSYS', 'FLOWS_30000', 'FLOWS_FILES', 'HR', 'IX', 'LBACSYS',
'MDDATA', 'MDSYS', 'MGMT_VIEW', 'OE', 'OLAPSYS', 'ORACLE_OCM',
'ORDPLUGINS', 'ORDSYS', 'OUTLN', 'OWBSYS', 'PM', 'SCOTT', 'SH',
'SI_INFORMTN_SCHEMA', 'SPATIAL_CSW_ADMIN_USR', 'SPATIAL_WFS_ADMIN_USR',
'SYS', 'SYSMAN', 'SYSTEM', 'TSMSYS', 'WKPROXY', 'WKSYS', 'WK_TEST',
'WMSYS', 'XDB', 'XS$NULL')
AND NOT REGEXP_LIKE(USERS.USERNAME, '^APEX_[0-9]{6}$')
AND NOT REGEXP_LIKE(USERS.USERNAME, '^FLOWS_[0-9]{5,6}$')
AND TABLE_CONTRAINTS.TABLE_NAME NOT LIKE 'BIN$%'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ FROM
INNER JOIN ALL_USERS USERS
ON INDEXES.OWNER = USERS.USERNAME
WHERE
USERS.ORACLE_MAINTAINED != 'Y'
USERS.USERNAME NOT IN
('ANONYMOUS', 'APEX_PUBLIC_USER', 'BI', 'CTXSYS', 'DBSNMP', 'DIP',
'EXFSYS', 'FLOWS_30000', 'FLOWS_FILES', 'HR', 'IX', 'LBACSYS',
'MDDATA', 'MDSYS', 'MGMT_VIEW', 'OE', 'OLAPSYS', 'ORACLE_OCM',
'ORDPLUGINS', 'ORDSYS', 'OUTLN', 'OWBSYS', 'PM', 'SCOTT', 'SH',
'SI_INFORMTN_SCHEMA', 'SPATIAL_CSW_ADMIN_USR', 'SPATIAL_WFS_ADMIN_USR',
'SYS', 'SYSMAN', 'SYSTEM', 'TSMSYS', 'WKPROXY', 'WKSYS', 'WK_TEST',
'WMSYS', 'XDB', 'XS$NULL')
AND NOT REGEXP_LIKE(USERS.USERNAME, '^APEX_[0-9]{6}$')
AND NOT REGEXP_LIKE(USERS.USERNAME, '^FLOWS_[0-9]{5,6}$')
AND INDEXES.TABLE_NAME NOT LIKE 'BIN$%'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ FROM
INNER JOIN ALL_USERS USERS
ON SYNONYMS.OWNER = USERS.USERNAME
WHERE
USERS.ORACLE_MAINTAINED != 'Y'
USERS.USERNAME NOT IN
('ANONYMOUS', 'APEX_PUBLIC_USER', 'BI', 'CTXSYS', 'DBSNMP', 'DIP',
'EXFSYS', 'FLOWS_30000', 'FLOWS_FILES', 'HR', 'IX', 'LBACSYS',
'MDDATA', 'MDSYS', 'MGMT_VIEW', 'OE', 'OLAPSYS', 'ORACLE_OCM',
'ORDPLUGINS', 'ORDSYS', 'OUTLN', 'OWBSYS', 'PM', 'SCOTT', 'SH',
'SI_INFORMTN_SCHEMA', 'SPATIAL_CSW_ADMIN_USR', 'SPATIAL_WFS_ADMIN_USR',
'SYS', 'SYSMAN', 'SYSTEM', 'TSMSYS', 'WKPROXY', 'WKSYS', 'WK_TEST',
'WMSYS', 'XDB', 'XS$NULL')
AND NOT REGEXP_LIKE(USERS.USERNAME, '^APEX_[0-9]{6}$')
AND NOT REGEXP_LIKE(USERS.USERNAME, '^FLOWS_[0-9]{5,6}$')
AND SYNONYMS.TABLE_NAME NOT LIKE 'BIN$%'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ FROM
INNER JOIN ALL_USERS USERS
ON TABLES.OWNER = USERS.USERNAME
WHERE
USERS.ORACLE_MAINTAINED != 'Y'
USERS.USERNAME NOT IN
('ANONYMOUS', 'APEX_PUBLIC_USER', 'BI', 'CTXSYS', 'DBSNMP', 'DIP',
'EXFSYS', 'FLOWS_30000', 'FLOWS_FILES', 'HR', 'IX', 'LBACSYS',
'MDDATA', 'MDSYS', 'MGMT_VIEW', 'OE', 'OLAPSYS', 'ORACLE_OCM',
'ORDPLUGINS', 'ORDSYS', 'OUTLN', 'OWBSYS', 'PM', 'SCOTT', 'SH',
'SI_INFORMTN_SCHEMA', 'SPATIAL_CSW_ADMIN_USR', 'SPATIAL_WFS_ADMIN_USR',
'SYS', 'SYSMAN', 'SYSTEM', 'TSMSYS', 'WKPROXY', 'WKSYS', 'WK_TEST',
'WMSYS', 'XDB', 'XS$NULL')
AND NOT REGEXP_LIKE(USERS.USERNAME, '^APEX_[0-9]{6}$')
AND NOT REGEXP_LIKE(USERS.USERNAME, '^FLOWS_[0-9]{5}$')
AND TABLES.TABLE_NAME NOT LIKE 'BIN$%'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ FROM
INNER JOIN ALL_USERS USERS
ON CONSTRAINTS.OWNER = USERS.USERNAME
WHERE
USERS.ORACLE_MAINTAINED != 'Y'
USERS.USERNAME NOT IN
('ANONYMOUS', 'APEX_PUBLIC_USER', 'BI', 'CTXSYS', 'DBSNMP', 'DIP',
'EXFSYS', 'FLOWS_30000', 'FLOWS_FILES', 'HR', 'IX', 'LBACSYS',
'MDDATA', 'MDSYS', 'MGMT_VIEW', 'OE', 'OLAPSYS', 'ORACLE_OCM',
'ORDPLUGINS', 'ORDSYS', 'OUTLN', 'OWBSYS', 'PM', 'SCOTT', 'SH',
'SI_INFORMTN_SCHEMA', 'SPATIAL_CSW_ADMIN_USR', 'SPATIAL_WFS_ADMIN_USR',
'SYS', 'SYSMAN', 'SYSTEM', 'TSMSYS', 'WKPROXY', 'WKSYS', 'WK_TEST',
'WMSYS', 'XDB', 'XS$NULL')
AND NOT REGEXP_LIKE(USERS.USERNAME, '^APEX_[0-9]{6}$')
AND NOT REGEXP_LIKE(USERS.USERNAME, '^FLOWS_[0-9]{5,6}$')
AND CONSTRAINTS.TABLE_NAME NOT LIKE 'BIN$%'
Expand All @@ -26,9 +33,15 @@ FROM
INNER JOIN ALL_USERS USERS
ON CONSTRAINTS.OWNER = USERS.USERNAME
WHERE
USERS.ORACLE_MAINTAINED != 'Y'
USERS.USERNAME NOT IN
('ANONYMOUS', 'APEX_PUBLIC_USER', 'BI', 'CTXSYS', 'DBSNMP', 'DIP',
'EXFSYS', 'FLOWS_30000', 'FLOWS_FILES', 'HR', 'IX', 'LBACSYS',
'MDDATA', 'MDSYS', 'MGMT_VIEW', 'OE', 'OLAPSYS', 'ORACLE_OCM',
'ORDPLUGINS', 'ORDSYS', 'OUTLN', 'OWBSYS', 'PM', 'SCOTT', 'SH',
'SI_INFORMTN_SCHEMA', 'SPATIAL_CSW_ADMIN_USR', 'SPATIAL_WFS_ADMIN_USR',
'SYS', 'SYSMAN', 'SYSTEM', 'TSMSYS', 'WKPROXY', 'WKSYS', 'WK_TEST',
'WMSYS', 'XDB', 'XS$NULL')
AND NOT REGEXP_LIKE(USERS.USERNAME, '^APEX_[0-9]{6}$')
AND NOT REGEXP_LIKE(USERS.USERNAME, '^FLOWS_[0-9]{6}$')
AND NOT REGEXP_LIKE(USERS.USERNAME, '^FLOWS_[0-9]{5}$')
AND NOT REGEXP_LIKE(USERS.USERNAME, '^FLOWS_[0-9]{5,6}$')
AND CONSTRAINTS.TABLE_NAME NOT LIKE 'BIN$%'
AND CONSTRAINT_TYPE = 'R'
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,25 @@ FROM
ALL_USERS FU
WHERE 1 = 1
AND F.OWNER = FU.USERNAME
AND FU.ORACLE_MAINTAINED != 'Y'
AND FU.USERNAME NOT IN
('ANONYMOUS', 'APEX_PUBLIC_USER', 'BI', 'CTXSYS', 'DBSNMP', 'DIP',
'EXFSYS', 'FLOWS_30000', 'FLOWS_FILES', 'HR', 'IX', 'LBACSYS',
'MDDATA', 'MDSYS', 'MGMT_VIEW', 'OE', 'OLAPSYS', 'ORACLE_OCM',
'ORDPLUGINS', 'ORDSYS', 'OUTLN', 'OWBSYS', 'PM', 'SCOTT', 'SH',
'SI_INFORMTN_SCHEMA', 'SPATIAL_CSW_ADMIN_USR', 'SPATIAL_WFS_ADMIN_USR',
'SYS', 'SYSMAN', 'SYSTEM', 'TSMSYS', 'WKPROXY', 'WKSYS', 'WK_TEST',
'WMSYS', 'XDB', 'XS$NULL')
AND NOT REGEXP_LIKE(FU.USERNAME, '^APEX_[0-9]{6}$')
AND NOT REGEXP_LIKE(FU.USERNAME, '^FLOWS_[0-9]{5,6}$')
AND P.OWNER = PU.USERNAME
AND PU.ORACLE_MAINTAINED != 'Y'
AND PU.USERNAME NOT IN
('ANONYMOUS', 'APEX_PUBLIC_USER', 'BI', 'CTXSYS', 'DBSNMP', 'DIP',
'EXFSYS', 'FLOWS_30000', 'FLOWS_FILES', 'HR', 'IX', 'LBACSYS',
'MDDATA', 'MDSYS', 'MGMT_VIEW', 'OE', 'OLAPSYS', 'ORACLE_OCM',
'ORDPLUGINS', 'ORDSYS', 'OUTLN', 'OWBSYS', 'PM', 'SCOTT', 'SH',
'SI_INFORMTN_SCHEMA', 'SPATIAL_CSW_ADMIN_USR', 'SPATIAL_WFS_ADMIN_USR',
'SYS', 'SYSMAN', 'SYSTEM', 'TSMSYS', 'WKPROXY', 'WKSYS', 'WK_TEST',
'WMSYS', 'XDB', 'XS$NULL')
AND NOT REGEXP_LIKE(PU.USERNAME, '^APEX_[0-9]{6}$')
AND NOT REGEXP_LIKE(PU.USERNAME, '^FLOWS_[0-9]{5,6}$')
AND F.CONSTRAINT_TYPE = 'R'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@ FROM
INNER JOIN ALL_USERS USERS
ON PROCEDURES.OWNER = USERS.USERNAME
WHERE
USERS.ORACLE_MAINTAINED != 'Y'
USERS.USERNAME NOT IN
('ANONYMOUS', 'APEX_PUBLIC_USER', 'BI', 'CTXSYS', 'DBSNMP', 'DIP',
'EXFSYS', 'FLOWS_30000', 'FLOWS_FILES', 'HR', 'IX', 'LBACSYS',
'MDDATA', 'MDSYS', 'MGMT_VIEW', 'OE', 'OLAPSYS', 'ORACLE_OCM',
'ORDPLUGINS', 'ORDSYS', 'OUTLN', 'OWBSYS', 'PM', 'SCOTT', 'SH',
'SI_INFORMTN_SCHEMA', 'SPATIAL_CSW_ADMIN_USR', 'SPATIAL_WFS_ADMIN_USR',
'SYS', 'SYSMAN', 'SYSTEM', 'TSMSYS', 'WKPROXY', 'WKSYS', 'WK_TEST',
'WMSYS', 'XDB', 'XS$NULL')
AND NOT REGEXP_LIKE(USERS.USERNAME, '^APEX_[0-9]{6}$')
AND NOT REGEXP_LIKE(USERS.USERNAME, '^FLOWS_[0-9]{5,6}$')
AND PROCEDURES.AUTHID = 'CURRENT_USER'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@ FROM
INNER JOIN ALL_USERS USERS
ON SEQUENCES.SEQUENCE_OWNER = USERS.USERNAME
WHERE
USERS.ORACLE_MAINTAINED != 'Y'
USERS.USERNAME NOT IN
('ANONYMOUS', 'APEX_PUBLIC_USER', 'BI', 'CTXSYS', 'DBSNMP', 'DIP',
'EXFSYS', 'FLOWS_30000', 'FLOWS_FILES', 'HR', 'IX', 'LBACSYS',
'MDDATA', 'MDSYS', 'MGMT_VIEW', 'OE', 'OLAPSYS', 'ORACLE_OCM',
'ORDPLUGINS', 'ORDSYS', 'OUTLN', 'OWBSYS', 'PM', 'SCOTT', 'SH',
'SI_INFORMTN_SCHEMA', 'SPATIAL_CSW_ADMIN_USR', 'SPATIAL_WFS_ADMIN_USR',
'SYS', 'SYSMAN', 'SYSTEM', 'TSMSYS', 'WKPROXY', 'WKSYS', 'WK_TEST',
'WMSYS', 'XDB', 'XS$NULL')
AND NOT REGEXP_LIKE(USERS.USERNAME, '^APEX_[0-9]{6}$')
AND NOT REGEXP_LIKE(USERS.USERNAME, '^FLOWS_[0-9]{5,6}$')
ORDER BY
Expand Down
Loading

0 comments on commit 4412918

Please sign in to comment.