2026-03-12 20:23:15
This commit is contained in:
27
tpt/setup/wordfile_11gR2.sql
Normal file
27
tpt/setup/wordfile_11gR2.sql
Normal file
@@ -0,0 +1,27 @@
|
||||
-- Copyright 2018 Tanel Poder. All rights reserved. More info at http://tanelpoder.com
|
||||
-- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions.
|
||||
|
||||
set lines 300 trimspool on pages 0 head off feedback off termout off
|
||||
|
||||
SELECT DISTINCT name FROM (
|
||||
select lower(keyword) name from v$reserved_words union all
|
||||
select upper(table_name) from dict union all
|
||||
select upper(column_name) from dict_columns union all
|
||||
-- select object_name from dba_objects union all
|
||||
select upper(object_name||'.'||procedure_name) from dba_procedures union all
|
||||
-- select '"'||table_name||'".'||column_name from dba_tab_columns union all
|
||||
select ksppinm from x$ksppi union all
|
||||
select name from v$sql_hint
|
||||
)
|
||||
WHERE length(name) > 2
|
||||
ORDER BY 1
|
||||
.
|
||||
|
||||
spool wordfile_11gR2.txt
|
||||
/
|
||||
spool off
|
||||
|
||||
|
||||
-- you can also add TPT scripts by running this in TPT script dir:
|
||||
-- find . -type f -name "*.sql" | sed 's/^\.\///' | awk '{ print "@" $1 }' >> ~/work/oracle/wordfile_11gR2.txt
|
||||
-- or you could just run rlwrap sqlplus being in the directory where the scripts are located!!
|
||||
Reference in New Issue
Block a user