본문 바로가기

DB

(90)
(Oracle Parameter) init parameter 정리 출처 : http://cafe.naver.com/prodba/5213 [ Oracle Query Optimizer 관련 Parameter ] 1. optimizer_max_permutations optimizer_max_permutations integer 2000 : 옵티마이저가 실행계획을 수립할 때 플랜의 경우의 수 내에서 실행계획을 수립하게 된다. 이러한 경우 플랜이 훨씬 좋은 경우가 있더라도, 그 플랜은 적용이 안될수 있다. 8i까지는 Default가 80000만, 9i부터 Default가 2000 임. alter session set optimizer_max_permutations = 80000 ; 2. optimizer_index_cost_adj default : 100 이 파라메터는 1~10..
Hold Cursor ■ Hold_cursor Hold_cursor는 프로그램 내에 있는 SQL들이 client context area에 캐싱되는가를 지정하는 파라메터로 자주 수행되는 프로그램이고 성능을 최대한 높여야 한다면 “YES”로 설정해 주어야 한다. 만약 “NO”로 설정했다면 SQL 수행 시마다 cached sql age out에 대한 오버헤드를 예상해야 한다. 같은 SQL을 작성했다 하더라도 SQL 캐시에서는 SQL이 사용된 프로그램에서의 위치가 다르다면 다른 SQL로 인식한다. ■ Release_cursor Release_cursor는 수행한 SQL이 서버쪽의 Private SQL Area 내에서 릴리즈될 수 있음을 지정하는 파라메터로 메모리에 대한 부담이 없고 공유된 풀이 충분히 크다면 “NO”로 지정하여 역시..
Oracle DBA Scripts and Tips http://www.think-forward.com/oracle_platform_specific_unix_scripts.htm Search Site info@think-forward.com Oracle DBA Scripts and Tips It has come to our attention that an Oracle Development company have copied our scripts without our permission and are using them as part of their own products for which they are charging users a license fee. As a result of this, we have decided to suspend access ..
오라클 튜닝 & 유지보수 관련정리 오라클 튜닝 & 유지보수 관련정리 유닉스 cpu : sar, vmstat, mpstat, iostat mem: sar, vmstat disk : sar, iostat net : netstat 방법: 1. 유저로 부터 솔직한 피트백을 얻는다 “ 예전 퍼포먼스가 좋게 나온 이후로 어떤 것을 변경했는가?” 튜닝의 범위, 순서, 목표을 설정한다. 문제 정의 : 튜닝 목표 설정 문제 범위 설정(전체 인스턴스 문제인지 아니면 특별한 app인지 싱글유저인지 특별한 작업인지) 문제 시간 설정 피크 타임인지 아니면 다른 시간대인지 2. os, db, application 의 모든 통계정보를 얻는다. 3 . os를 체크한다. 하드웨어나 os 상의 에러가 없는지 체크한다. os 상의 다른것이 리소스를 점유하지 않는지 확인 ..
Expert Oracle Practices Oracle Database Administration from the Oak Table
Protected: Presentation Scripts Protected: Presentation Scripts PLAIN TEXT CODE: #!/bin/bash ################################################################################ # Script Name: check_alert_log.sh # # # # Oracle Shell Scripting, Chapter 12 # # # # Usage: check_alert_log.sh SID # # # # Notes: If ORACLE_SID is set in the environment then the SID argument is # # optional # # # # This script is from the book Oracle Shel..
oracle sql reference alter http://www.adp-gmbh.ch/ora/sql/ Oracle SQL alter database alter index alter session alter system alter table alter tablespace alter user analyze table ascii asciistr audit avg bitand bfilename case when If some sort of if then else logic must be implemented in SQL cast chr ceil comment commit To store changes made within a transaction concat connect_by For hierarchical queries. convert tablespac..
Oracle Iink http://www.idevelopment.info/