일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
- GIT
- Quartz
- lsof
- Source
- maVen
- context
- JavaScript
- Eclipse
- bash
- tomcat
- port
- resource
- VirtualBox
- ssh
- 네트워크
- plugin
- netsh
- 줄바꿈 문자
- 단축키
- Windows 10
- Mac
- profile
- grep
- web.xml
- IntelliJ
- find
- import
- vscode
- Windows
- xargs
- Today
- Total
목록DB/Oracle (88)
develog
1. 생성 -- 1. OBJECT 타입 생성CREATE OR REPLACE TYPE T_OBJ AS OBJECT ( COL1 VARCHAR2(10) , COL2 VARCHAR2(10) ); -- 2. TABLE 타입 생성CREATE OR REPLACE TYPE T_TABLE AS TABLE OF T_OBJ; -- 3. 함수 생성 (테이블 리턴) CREATE OR REPLACE FUNCTION TFN_LIST(P_COL1 VARCHAR2) RETURN T_TABLE IS V_RTN T_TABLE; BEGIN SELECT T_OBJ(COL1, COL2) BULK COLLECT INTO V_RTN FROM ( SELECT COL1, COL2 FROM MY_TABLE WHERE COL1 = P_COL1 ); R..
SELECT * FROM ALL_DEPENDENCIES WHERE REFERENCED_OWNER = '' AND REFERENCED_NAME = ''
--시간차가 5분 미만인 건AND REG_TS - TO_TIMESTAMP('2016/11/04 15:05:19', 'YYYY/MM/DD HH24:MI:SS') < INTERVAL '05:00' MINUTE TO SECOND
SELECT TYPE, NAME --, LINE --, TEXT , REGEXP_REPLACE(TEXT, 'FUNCTION|PROCEDURE|;|\s|\(.*', '') TEXT2FROM( SELECT TYPE, NAME, LINE, UPPER(TEXT) TEXT FROM USER_SOURCE WHERE TYPE = 'PACKAGE' AND (1=2 OR TEXT LIKE '%FUNCTION%' OR TEXT LIKE '%PROCEDURE%' ))ORDER BY TYPE, NAME, LINE
SELECT *FROM USER_DEPENDENCIES