oracle search view code

Solutions on MaxInterview for oracle search view code by the best coders in the world

showing results for - "oracle search view code"
Lia
05 Oct 2017
1SELECT * FROM all_source    -- or user_source or dba_source
2WHERE upper(text) LIKE '%MY TEXT%'
3	AND TYPE IN ('FUNCTION','PROCEDURE','PACKAGE')
4ORDER BY owner, name, type, line;
Ada
08 Jan 2020
1-- Views (use USER_VIEWS or DBA_VIEWS if needed):
2SELECT TEXT FROM ALL_VIEWS WHERE upper(VIEW_NAME) LIKE upper('%VIEW_NAME%');
3-- Or:
4SELECT dbms_metadata.get_ddl('VIEW', 'FLEX_TRADE_AGREG', 'OWNER_NAME') 
5	FROM DUAL;
6
7-- Materialized views (use USER_VIEWS or DBA_VIEWS if needed):
8SELECT QUERY FROM ALL_MVIEWS WHERE upper(MVIEW_NAME) LIKE upper('%VIEW_NAME%');
9-- Or:
10SELECT dbms_metadata.get_ddl('MATERIALIZED_VIEW', 'VIEW_NAME', 'OWNER_NAME') 
11FROM DUAL;