본문 바로가기

Oracle7

[Oracle] Data의 암,복호화를 위한 DBMS_OBFUSCATION_TOOLKIT 환경 설정 1. ORACLE_HOME 아래에 있는 rdbms/admin 으로 이동 2. sys 계정으로 접속하여 dbmsobtk.sql 과 prvtobtk.plb 쿼리 실행 3. 유저별 권한 부여 또는 public 권한 부여 > grant execute on dbms_obfuscation_toolkit to [유저명]; 또는 > grant execute on dbms_obfuscation_toolkit to public; 여기까지가 권한 부여~ 쿼리에 암호화 부여하는 건 다음에~ㅋ 2009. 11. 3.
[Oracle] Trace 떠보자. SQL 튜닝의 기본 trace를 떠보자!!! SQL> alter session set timed_Statistics=true; SQL> alter session set sql_trace=true; 이제 트레이스 떠볼 쿼리를 돌리자.(수동도 상관없음) SQL> @aaa.sql SQL> alter session set timed_Statistics=false; SQL> alter session set sql_trace=false; 위와 같은 방식으로 트레이스뜨면 기본적으로는 udump 디렉토리에 쌓인다. 모르겠다면 아래와 같이 쳐보자! SQL> show parameter user_dump_dest; 그럼 저장된 곳이 나올것이다. 그럼 tkprof를 이용하여 우리가 볼 수 있는 txt 파일로 변환한다. ※ t.. 2009. 6. 23.
Table에 대한 Index column 확인 어드민에서 해당 유저의 테이블에 대한 인덱스 컬럼 확인시 사용하는 쿼리 select i.index_name, m.owner, substr(m.uniqueness,1,1) uniqu_yn, i.column_name, i.column_position from dba_ind_columns i, dba_indexes m where i.table_name=m.table_name and i.index_name=m.index_name and i.index_owner=m.owner and m.table_name='{table_name}' and i.index_owner='{owner_name}' order by i.index_name, i.column_position 2009. 6. 23.
[ORACLE] Lock 확인 쿼리 Oracle Lock에 대해 깊이 들어가면 끝도 없는것 같다. 대략적으로 아래의 쿼리 두개를 조합하여 사용하면 빠른 시간에 확인이 가능~ (1) select /*+ ordered / distinct /* 속도를 위해 v$sql을 조인할 경우 중복되는 레코드 제거 */ s.sid SID, s.SERIAL# Serial, p.spid "OS-Pid", s.username, s.program, w.seconds_in_wait as "W_time(Sec)", decode(w.wait_time,0,'Wai-ting', 'Waited') Status, w.ename event, -- p1text || ':' || decode(event,'latch free',p1raw, to_char(p1)) ||','|| -- .. 2009. 6. 12.
[Oracle] DB User에 대한 Lock 풀기 어느날 갑자기 사용하던 유저가 로그인이 안된다며 연락이 온다면 가장 먼저 다음을 확인해보자! SQL> select * from dba_users; 위 SQL로 보았을 때 해당 유저의 상태가 Lock이라면 SQL> alter user {user_name} account unlock; 으로 풀면 된다. 당연히 관리자로 작업해야 된다. ㅡㅡㅋ 2009. 6. 12.
[Oracle] CRS 관련 문서 Oracle CRS 관련 문서이다. 아직도 빋음이 안가는 녀석이긴 하지만 그래도 어찌하리...^^ 문서에는 CRS 운영에 관한 전반적인 내용이 잘 들어가있다. 2009. 6. 12.
[Oracle] ALTER SYSTEM KILL Session Marked for Killed Forever 제목: ALTER SYSTEM KILL Session Marked for Killed Forever PURPOSE This document briefly describes how to suppress sessions marked killed in v$session. SCOPE & APPLICATION Useful for DBAs. ALTER SYSTEM KILL Session Marked for Killed Forever: ==================================================== You have a session that you have killed, but it seems as though it will not go away: SQL> alter system kil.. 2008. 8. 6.
반응형