본문 바로가기

IT/OCP 자격증 (취득)

OCP 교육정리 - PLAN TABLE 생성 =========================== PLAN_TABLE 생성 =========================== $ cd $ORACLE_HOME/rdbms/admin $ sqlplus hr/hr @utlxplan.sql =========================== autotrace 를 실행하기위한 권한 할당 =========================== $ sqlplus / as sysdba grant SELECT_CATALOG_ROLE to hr; grant SELECT ANY DICTIONARY to hr; 더보기
OCP 교육정리 - 오라클 시작/종료, 용량 체크, 계정 활성화 1. 오라클 계정으로 로그인한다. =========================== 오라클 엔진 시작/종료 =========================== [시작] $ sqlplus / as sysdba SQL> startup [종료] $sqlplus / as sysdba SQL> shutdown immediate; [확인] $sqlplus / as sysdba SQL> select status from v$instance; >> 결과 (정상기동) OPEN =========================== 리스너 시작/종료 =========================== [시작] $ lsnrctl start [종료] $lsnrctl stop [확인] $lsnrctl status [oracle@orcl.. 더보기
OCP 교육 정리 - 오라클 튜닝 (2) *잠겨있는 사용자 계정 활성화 방법 (비밀번호 변경도 함께) sqlplus / as sysdba SQL> alter user hr identified by hr account unlock; SQL> alter user sh identified by sh account unlock; SQL> alter user scott identified by tiger account unlock; --dictionary select * from dictionary; select * from user_indexes; select * from user_tables; select * from jobs; * 실행계획 1. dbms_xplan.display 실행계획 PLAN SET explain plan set statemen.. 더보기
OCP 교육정리 - 오라클 튜닝(1) 오라클 설치 SQL developer putty 오라클아키텍처 SQL동작원리 Tuning 포인트 # 다운로드 http://mango.adminschool.net/oracle -> 오라클서버 http://oracle.com sqldeveloper -> 개발도구 http://kldp.net/ putty.exe ssh -> 터미널 클라이언트 # 환경세팅 1. 개인 PC VMNET8 : 192.168.100.2 1) putty.exe 연결 2) sqldeveloper 연결 2. VMWare서버 192.168.100.101 1) 오라클 기동 확인 (엔진) 2) 리스너 기동 확인 3) em 기동확인 system, hr, sh 계정 3. putty 터미널 클라이언트 192.168.100.101 oracle/oracl.. 더보기