일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Eclipse
- 오픈소스
- ubuntu
- IntelliJ
- Spring Boot
- jpa
- JavaScript
- myBatis
- oracle
- maven
- STS
- PostgreSQL
- Open Source
- Core Java
- git
- AJAX
- 설정
- SpringBoot
- MSSQL
- Python
- JDBC
- error
- 문서
- MySQL
- Thymeleaf
- Source
- Exception
- spring
- Tomcat
- Docker
- Today
- Total
목록오라클 (5)
헤르메스 LIFE
테이블 정보( 테이블 Comment + 컬럼 Comment + PK ) + Camel 표기 SELECT A.COLUMN_NAME , SUBSTR(LOWER(A.COLUMN_NAME), 1,1) || SUBSTR(REPLACE(INITCAP(A.COLUMN_NAME), '_'), 2) AS INIT_COL_CAP_NAME , B.COMMENTS , CASE WHEN LENGTH(C.INDEX_NAME) > 0 THEN 'PK' ELSE '' END AS PK_DIV , D.COMMENTS TABLE_COMMENTS FROM ALL_TAB_COLUMNS A , ALL_COL_COMMENTS B , ALL_IND_COLUMNS C , ALL_TAB_COMMENTS D WHERE A.TABLE_NAME = B...
SELECT fk.owner, fk.constraint_name , fk.table_name FROM all_constraints fk, all_constraints pk WHERE fk.R_CONSTRAINT_NAME = pk.CONSTRAINT_NAME AND pk.owner = '계정명' AND fk.CONSTRAINT_TYPE = 'R' AND pk.TABLE_NAME = '테이블명' ORDER BY fk.TABLE_NAME
아래와 같은 배치파일을 생성 후 스케줄을 걸어주면 됨. @echo off rem Unix - 파일명 myDB%Y%m%d.dmp exp userid=oracle/oracle123 file='myBackup%date:-=%.dmp' log='myBackup%date:-=%.log' full=y 참고 : %date:-=% : 날짜에서 '-'를 빼고 보여주기
SELECT CASE OBJECT_TYPE WHEN 'DATABASE LINK' THEN 'DBLINKS' WHEN 'FUNCTION' THEN 'FUNCTIONS' WHEN 'INDEX' THEN 'INDEXES' WHEN 'PACKAGE' THEN 'PACKAGES' WHEN 'PROCEDURE' THEN 'PROCEDURES' WHEN 'SEQUENCE' THEN 'SEQUENCES' WHEN 'TABLE' THEN 'TABLES' WHEN 'TRIGGER' THEN 'TRIGGERS' WHEN 'VIEW' THEN 'VIEWS' WHEN 'SYNONYM' THEN 'SYNONYMS' WHEN 'GRANT' THEN 'GRANTS' WHEN 'CONSTRAINT' THEN 'CONSTRAINTS' ..