본문 바로가기

반응형

oracle

(7)
Oracle 21c express 설치하기 ( by docker ) 컨테이너 시대에 맞게 오라클도 도커를 이용해서 설치해보자. 다운로드 하는 시간빼고는 정말 타자치는 시간 밖에 걸리지 않는다. =ㅁ=!! 1. docker desktop 설치 Docker Desktop: The #1 Containerization Tool for Developers | Docker Docker Desktop: The #1 Containerization Tool for Developers | Docker Docker Desktop is collaborative containerization software for developers. Get started and download Docker Desktop today on Mac, Windows, or Linux. www.docker.com 도..
[tomcat] db pool 설정 server.xml context.xml db pool 소스 public class DBConnPool { public Connection con; public Statement stmt; public PreparedStatement psmt; public ResultSet rs; public DBConnPool() { try { Context initCtx = new InitialContext(); Context ctx = (Context)initCtx.lookup("java:comp/env"); DataSource source = (DataSource)ctx.lookup("jdbc/oracle"); con = source.getConnection(); System.out.println("DB 커넥션 ..
VirtualBox 에 설치된 오라클DB에 접속하기 질문글이 있어서 작성해봅니다~! 저번 최신 오라클 설치?(라기보단 이미지다운로드 ) 방법에 대해서 공유 드렸는데, 해당 이미지에 외부 접근방법을 알려드리도록 하겠습니다. ** 필요 유틸 ( SQL Developer = 오라클 접속 툴 ) https://www.oracle.com/database/technologies/appdev/sql-developer.html SQL Developer Oracle SQL Developer Oracle SQL Developer is a free, integrated development environment that simplifies the development and management of Oracle Database in both traditional and Cl..
오라클 삭제하기 12c 설치하는것 만큼 중요한게 깔끔하게 지우는 방법입니다. 일반 프로그램같이 언인스톨러로 깔끔하게 지우면 좋겠지만, 웬지 오라클은 깔끔하게 안지워지는 느낌이 강한데요. 완벽하진 않지만, 최대한 깔끔하게 지우는 방법을 공유 해 보도록 하겠습니다. 1. 오라클 시스템 down sqlplus /nolog 실행 conn sys as sysdba 로 접속 shutdown 2. deinstall 실행 오라클 설치폴더\product\12.2.0\dbhome_1\deinstall\deinstall.bat 실행 ###실행시 꼭 관리자 권한으로 실행해야함!! ## deinstall.bat 파일 오른쪽 클릭후, 관리자권한으로 실행 대부분 기본값이 써있어서, 그대로 엔터만 치면됨 마지막에, 계속하겠습니까? 가 나오면 y 3. 설치..
오라클 버젼확인 방법 select * from v$version; *. 결과-- Banner -- Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit ProductionPL/SQL Release 9.2.0.8.0 - ProductionCORE9.2.0.8.0ProductionTNS for HPUX: Version 9.2.0.8.0 - ProductionNLSRTL Version 9.2.0.8.0 - Production Oracle Client 9i --> Oracle 11g 접속 가능하군~!
[Oracle]테이블 복제 그동안 테이블 복사할때, 해당 테이블의 구조를 확인하고 desc table1; 동일하게 create table2를 한후, insert into table2 select * from table1 / 으로 생성하였다.. 이런 바보짓이!!!! =ㅁ= 다음과 같이 단순하게 가능하므로 그렇게 하지 말자 ㅠㅠ create table new_table as select * from src_table; 조건을 주면 원하는데로 생성도 가능하므로, 이를 이용해서 중복된것을 삭제하고 새로이 생성도 가능 create table new_table as select distinct * from src_table; 머리가 나빠서 고생하지말고 배우고 익히잡!!
[Oracle] 함수설명 특정컬럼에 대하여 중복인 항목을 삭제하거나 업데이트 하고자 해서 오라클 쿼리를 연구하다가 도움되는 함수를 공부해서 남긴다. 역시 쿼리는 복잡복잡~ rank() -- 동일값 동일한 순위 dense_rank() -- 중복 rank 의 수와 무관하게 순위 row_number() -- 유니크한 순위 over ( [partition by col1] order by col2 [asc|desc] ) -- 위같은 그룹함수와 같이 쓰임 with 구분 -- sub query를 단락별로 구분할때 이용 with test as ( select 'A' grade, '90' cnt from dual union all select 'B' grade, '80' cnt from dual union all select 'B' grade,..

반응형