Updated oracle tunable knobs
This commit is contained in:
@@ -25,6 +25,12 @@ from operator import itemgetter
|
||||
# ENUM = 5
|
||||
# TIMESTAMP = 6
|
||||
|
||||
# KnobResourceType
|
||||
# MEMORY = 1
|
||||
# CPU = 2
|
||||
# STORAGE = 3
|
||||
# OTHER = 4
|
||||
|
||||
# miss:
|
||||
# OPTIMIZER_MODE
|
||||
# cursor_sharing
|
||||
@@ -36,94 +42,117 @@ def set_field(fields):
|
||||
fields['minval'] = 0
|
||||
fields['maxval'] = 33000000000 # 33G
|
||||
fields['default'] = 0
|
||||
fields['resource'] = 1
|
||||
if fields['name'].upper() == 'MEMORY_MAX_TARGET':
|
||||
fields['tunable'] = False
|
||||
fields['minval'] = 0
|
||||
fields['maxval'] = 33000000000 # 33G
|
||||
fields['default'] = 0
|
||||
fields['resource'] = 1
|
||||
if fields['name'].upper() == 'SGA_TARGET':
|
||||
fields['tunable'] = False
|
||||
fields['minval'] = 0
|
||||
fields['maxval'] = 33000000000 # 33G
|
||||
fields['default'] = 0
|
||||
fields['resource'] = 1
|
||||
if fields['name'].upper() == 'SGA_MAX_SIZE':
|
||||
fields['tunable'] = False
|
||||
fields['minval'] = 0
|
||||
fields['maxval'] = 33000000000 # 33G
|
||||
fields['default'] = 0
|
||||
fields['resource'] = 1
|
||||
if fields['name'].upper() == 'DB_CACHE_SIZE':
|
||||
fields['tunable'] = True
|
||||
fields['minval'] = 0
|
||||
fields['maxval'] = 25000000000 # 24G
|
||||
fields['default'] = 4000000000 # 4G
|
||||
fields['resource'] = 1
|
||||
if fields['name'].upper() == 'SHARED_POOL_SIZE':
|
||||
fields['tunable'] = True
|
||||
fields['minval'] = 0
|
||||
fields['maxval'] = 4000000000 # 4G
|
||||
fields['default'] = 1000000000 # 1G
|
||||
fields['resource'] = 1
|
||||
if fields['name'].upper() == 'SHARED_POOL_RESERVED_SIZE':
|
||||
fields['tunable'] = True
|
||||
fields['minval'] = 0
|
||||
fields['maxval'] = 4000000000 # 4G
|
||||
fields['default'] = 1000000000 # 1G
|
||||
fields['resource'] = 1
|
||||
if fields['name'].upper() == 'SHARED_IO_POOL_SIZE':
|
||||
fields['tunable'] = False
|
||||
fields['minval'] = 0
|
||||
fields['maxval'] = 4000000000 # 4G
|
||||
fields['default'] = 1000000000 # 1G
|
||||
fields['resource'] = 1
|
||||
if fields['name'].upper() == 'STREAMS_POOL_SIZE':
|
||||
fields['tunable'] = True
|
||||
fields['minval'] = 0
|
||||
fields['maxval'] = 4000000000 # 4G
|
||||
fields['default'] = 20000000 # 20M
|
||||
fields['resource'] = 1
|
||||
if fields['name'].upper() == 'LOG_BUFFER':
|
||||
fields['tunable'] = True
|
||||
fields['minval'] = 0
|
||||
fields['maxval'] = 2000000000 # 2GB
|
||||
fields['default'] = 50000000 # 50M
|
||||
fields['resource'] = 1
|
||||
if fields['name'].upper() == 'DB_KEEP_CACHE_SIZE':
|
||||
fields['tunable'] = False
|
||||
fields['minval'] = 0
|
||||
fields['maxval'] = 2000000000 # 2GB
|
||||
fields['default'] = 500000000 # 500M
|
||||
fields['resource'] = 1
|
||||
if fields['name'].upper() == 'DB_RECYCLE_CACHE_SIZE':
|
||||
fields['tunable'] = False
|
||||
fields['minval'] = 0
|
||||
fields['maxval'] = 2000000000 # 2GB
|
||||
fields['default'] = 500000000 # 500M
|
||||
fields['resource'] = 1
|
||||
if fields['name'].upper() == 'LARGE_POOL_SIZE':
|
||||
fields['tunable'] = True
|
||||
fields['minval'] = 0
|
||||
fields['maxval'] = 2000000000 # 2GB
|
||||
fields['default'] = 500000000 # 500M
|
||||
fields['resource'] = 1
|
||||
if fields['name'].upper() == 'PGA_AGGREGATE_TARGET':
|
||||
fields['tunable'] = False
|
||||
fields['tunable'] = True
|
||||
fields['minval'] = 0
|
||||
fields['maxval'] = 33000000000 # 33G
|
||||
fields['default'] = 0
|
||||
fields['resource'] = 1
|
||||
if fields['name'].lower() == 'bitmap_merge_area_size':
|
||||
fields['tunable'] = True
|
||||
fields['minval'] = 0
|
||||
fields['maxval'] = 5000000000 # 3G
|
||||
fields['default'] = 0
|
||||
fields['resource'] = 1
|
||||
if fields['name'].lower() == 'create_bitmap_area_size':
|
||||
fields['tunable'] = True
|
||||
fields['minval'] = 0
|
||||
fields['maxval'] = 5000000000 # 3G
|
||||
fields['default'] = 0
|
||||
fields['resource'] = 1
|
||||
if fields['name'].lower() == 'hash_area_size':
|
||||
fields['tunable'] = True
|
||||
fields['minval'] = 0
|
||||
fields['maxval'] = 3000000000 # 3G
|
||||
fields['default'] = 0
|
||||
fields['resource'] = 1
|
||||
if fields['name'].lower() == 'sort_area_size':
|
||||
fields['tunable'] = True
|
||||
fields['minval'] = 0
|
||||
fields['maxval'] = 3000000000 # 3G
|
||||
fields['default'] = 0
|
||||
fields['resource'] = 1
|
||||
if fields['name'].upper() == 'OPEN_CURSORS':
|
||||
fields['tunable'] = False
|
||||
fields['tunable'] = True
|
||||
fields['minval'] = 200
|
||||
fields['maxval'] = 400
|
||||
fields['default'] = 300
|
||||
if fields['name'].upper() == 'DB_FILE_MULTIBLOCK_READ_COUNT':
|
||||
fields['tunable'] = False
|
||||
fields['minval'] = 64
|
||||
fields['tunable'] = True
|
||||
fields['minval'] = 20
|
||||
fields['maxval'] = 256
|
||||
fields['default'] = 128
|
||||
if fields['name'].upper() == 'optimizer_index_cost_adj'.upper():
|
||||
@@ -151,6 +180,16 @@ def set_field(fields):
|
||||
fields['minval'] = None
|
||||
fields['maxval'] = None
|
||||
fields['default'] = False
|
||||
if fields['name'].lower() == 'optimizer_dynamic_sampling':
|
||||
fields['tunable'] = True
|
||||
fields['minval'] = 0
|
||||
fields['maxval'] = 11
|
||||
fields['default'] = 2
|
||||
if fields['name'].lower() == 'optimizer_adaptive_plans':
|
||||
fields['tunable'] = True
|
||||
fields['minval'] = None
|
||||
fields['maxval'] = None
|
||||
fields['default'] = True
|
||||
if fields['name'].upper() == 'DISK_ASYNCH_IO':
|
||||
fields['tunable'] = True
|
||||
fields['vartype'] = 5
|
||||
|
||||
Reference in New Issue
Block a user