본문 바로가기

DB/Oracle108

SHARED POOL SIZE의 계산 SHARED POOL SIZE의 계산출처: https://forums.oracle.com/thread/468648 SHARED POOL SIZE의 계산======================= PURPOSE --------- 다음은 ORACLE DATABASE 의 SHARED POOL SIZE를 계산하는 방법에 대하여 알아보기로 한다. Explanation ------------ 오라클 instance를 background process + SGA라고 말할 때 처음 instance가 기동되면 SGA가 할당된다. 이 때 이 SGA를 구성하는 메모리 영역은 크게 3부분으로 구성된다고 할 수 있다. - Shared pool, Redo log buffer, DB buffer cache. 여기서는 SGA를 구성하.. 2016. 2. 4.
ORA-23515: materialized views and/or their indices exist in the tablespace 출처 http://ora34913.wordpress.com/2008/09/04/ora-23515-and-ora-02449-on-drop-tablespace/ SQL> alter tablespace BLUH offline;Tablespace alteredSQL> drop tablespace BLUH including contents;drop tablespace BLUH including contentsORA-23515: materialized views and/or their indices exist in the tablespaceSQL> select ‘drop materialized view ‘||owner||’.'||name||’ PRESERVE TABLE;’ from dba_registered_sna.. 2016. 2. 4.
oracle trace 파일 삭제 스크립트 oracle trace 파일 삭제 스크립트 오라클은 트레이스 파일, 로그 파일, 덤프 파일 등의 다양한 파일을 생성, 관리합니다. 이 파일을 정기적으로 삭제하지 않는 경우 파일 시스템의 용량 부족으로 데이터베이스 실행이 중단될 수도 있습니다.이런 문제를 예방하기 위해, "trc" 확장자를 갖는 파일을 검색한 후 3 일 이상 경과한 파일을 삭제하도록 명령할 수 있습니다. 이를 위한 명령이 아래와 같습니다.find . -name "*.trc" -ctime +3 -exec rm {} \; 3일 이상 경과한 파일을 강제로 삭제하려면 -f 옵션을 사용합니다. find . -name "*.trc" -ctime +3 -exec ls -l {} \;리스트만 표시 출처: http://cheer.tistory.com/27 2016. 2. 4.
시노님 생성 / 삭제 CREATE SYNONYM 유저테이블 FOR 대상테이블; DROP SYNONYM 유저테이블 2016. 2. 4.
특정테이블 조회 권한 특정테이블 조회 권한SELECT 'GRANT SELECT ON '||TNAME||' TO 유저명;'FROM TAB 2016. 2. 4.
SEQUENCE 값 재 설정 increment by 로 9999 지정하고 nextval한후 increment by 를 다시 1 alter sequence SCOTT.SEQ_EMP increment by 9999; select SCOTT.SEQ_EMP.nextval from dual;alter sequence SCOTT.SEQ_EMP increment by 1; 2016. 2. 4.
반응형