ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • [oracle] 설치 및 설정
    SQL/Oracle 2021. 8. 11. 16:09

    설치


    1. OracleXE112 사용

    (경로에 한글이 있으면 안된다.)

     

     

    2. 관리자 계정

    ID : system( 기본설정 )

    PW : 12345( 임의로 정하기 )

     

     

     

     

    계정 설정


    scott 계정

     

    1) 관리자 계정 접속

    c:\>sqlplus system/12345  # 관리자 모드로 접속

     

     

    2) 계정 잠금 풀기

    SQL> @C:\oraclexe\app\oracle\product\11.2.0\server\rdbms\admin\scott.sql
    #ctrl + C      < Oracle 서버 중지>
    
    C:\>sqlplus system/12345  # 관리자 모드로 다시접속
    
    SQL>alter user scott account unlock;  # scott 계정 unlock하고

     

     

    3) 암호 지정

    SQL>alter user scott identified by tiger; # scott 암호 지정
    
    #ctrl + C      < Oracle 서버 중지>

     

     

    4) scott계정(user계정)으로 오라클 접속

    c:\>sqlplus scott
    Enter password:tiger
    
    c:\>sqlplus scott/tiger #scott계정(user계정)으로 오라클 접속

     

     

     

     

    드라이버 설정


    oracle db 설치시 jdbc 가 자동으로 설치되어 있다.

    경로 : C:\oraclexe\app\oracle\product\11.2.0\server\jdbc\lib

    Oracle 드라이버 파일 : ojdbc6.jar

     

    아래 두 폴더에 복붙해야 한다.

    tomcat의 C:\Tomcat 8.0\lib

    java의 C:\Program Files\Java\jdk1.8.0_40\jre\lib\ext 

     

     

     

     

    환경변수 설정


    oracle 에도 java 가 있는데 oracle 설치 시 환경변수에 기존 java 보다 위에 oracle java 가 올라가 있다.

    순서를 바꿔주자.

     

    기존 자바를 선택 -> 위로 이동

    'SQL > Oracle' 카테고리의 다른 글

    [oracle] 이전글,다음글 쿼리문 구현  (0) 2021.08.12
    [oracle] 전체 테이블 보기  (0) 2021.08.12
    [oracle] 날짜 검색방법 & 현재 날짜  (0) 2021.08.12
    [oracle] NVL(), NVL2()  (0) 2021.08.11
    [oracle] DDL, DML, DCL  (0) 2021.08.11

    댓글

Designed by Tistory.