- 浏览: 981987 次
- 性别:
- 来自: 杭州
文章分类
最新评论
-
孤星119:
好熟悉的数据库字段啊, 上家公司做的项目每天都跟这些字段打招呼 ...
Oracle exp compress参数引起的空间浪费 -
itspace:
quxiaoyong 写道遇到个问题,网上一搜,全他妈这篇文章 ...
数据库连接错误ORA-28547 -
quxiaoyong:
遇到个问题,网上一搜,全他妈这篇文章。你转来转去的有意思吗?
数据库连接错误ORA-28547 -
hctech:
关于version count过高的问题,不知博主是否看过ey ...
某客户数据库性能诊断报告 -
itspace:
invalid 写道写的不错,我根据这个来安装,有点理解错误了 ...
AIX 配置vncserver
Oracle 11g有一新特性允许从内存(memory)从创建参数文件pfile,以下记录纯做记录。
研究版本为
打开session跟踪
从内存中创建
关闭session跟踪
打开跟踪文件可以看到Oracle主要通过查询x$表格获得参数
打开init文件,可以看到包含了很多隐含参数:
进一步,在Oracle 11g以下版本,我们可以通过以下查询获得当前系统中运行的非缺省参数:
我们可以通过explain 观察v$parameter 由哪些基表组成
SQL> set autotrace trace explain
SQL> select * from v$parameter;
Execution Plan
----------------------------------------------------------
Plan hash value: 1128103955
------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 1 | 926 | 1 (100)| 00:00:01 |
|* 1 | HASH JOIN | | 1 | 926 | 1 (100)| 00:00:01 |
|* 2 | FIXED TABLE FULL| X$KSPPI | 1 | 249 | 0 (0)| 00:00:01 |
| 3 | FIXED TABLE FULL| X$KSPPCV | 100 | 67700 | 0 (0)| 00:00:01 |
------------------------------------------------------------------------------
Predicate Information (identified by operation id):
---------------------------------------------------
1 - access("X"."INDX"="Y"."INDX")
filter(TRANSLATE("KSPPINM",'_','#') NOT LIKE '#%' OR
"KSPPSTDF"='FALSE' OR BITAND("KSPPSTVF",5)>0)
2 - filter("X"."INST_ID"=USERENV('INSTANCE') AND
TRANSLATE("KSPPINM",'_','#') NOT LIKE '##%')
研究版本为
引用
SQL> select * from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS for Linux: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS for Linux: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
打开session跟踪
引用
SQL> alter session set sql_trace=true;
Session altered.
Session altered.
从内存中创建
引用
SQL> create pfile from memory;
File created.
File created.
关闭session跟踪
引用
SQL> alter session set sql_trace=false;
打开跟踪文件可以看到Oracle主要通过查询x$表格获得参数
引用
=====================
PARSING IN CURSOR #10 len=53 dep=4 uid=0 oct=3 lid=0 tim=1263198632851008 hv=2195068792 ad='72557fb8' sqlid='asvzxj61dc5vs'
select timestamp, flags from fixed_obj$ where obj#=:1
END OF STMT
PARSE #10:c=0,e=14,p=0,cr=0,cu=0,mis=0,r=0,dep=4,og=4,tim=1263198632851004
EXEC #10:c=0,e=21,p=0,cr=0,cu=0,mis=0,r=0,dep=4,og=4,tim=1263198632851095
FETCH #10:c=0,e=19,p=0,cr=3,cu=0,mis=0,r=1,dep=4,og=4,tim=1263198632851154
STAT #10 id=1 cnt=1 pid=0 pos=1 obj=100 op='TABLE ACCESS BY INDEX ROWID FIXED_OBJ$ (cr=3 pr=0 pw=0 time=0 us cost=2 size=17 card=1)'
STAT #10 id=2 cnt=1 pid=1 pos=1 obj=101 op='INDEX UNIQUE SCAN I_FIXED_OBJ$_OBJ# (cr=2 pr=0 pw=0 time=0 us cost=1 size=0 card=1)'
=====================
PARSING IN CURSOR #12 len=247 dep=3 uid=0 oct=3 lid=0 tim=1263198632852018 hv=3957975603 ad='6aa75df8' sqlid='48x4v2mpymujm'
select x.inst_id,kspftctxsid,kspftctxpn,ksppinm,ksppity,kspftctxdvl, kspftctxvn,kspftctxct from x$ksppi x, x$ksppsv2 y where ((x.
indx+1) = kspftctxpn) and (bitand(ksppilrmflg,64)!=64) and ((kspftctxdf = 'FALSE') or (bitand(kspftctxvf,8) = )
END OF STMT
PARSE #12:c=0,e=1744,p=0,cr=6,cu=0,mis=1,r=0,dep=3,og=4,tim=1263198632852014
=====================
PARSING IN CURSOR #13 len=130 dep=2 uid=0 oct=3 lid=0 tim=1263198632852774 hv=1046352901 ad='6aa76568' sqlid='437ya6wz5w505'
select SID, NUM, NAME, TYPE, DISPLAY_VALUE, ORDINAL, UPDATE_COMMENT from GV$SYSTEM_PARAMETER4 where INST_id = USERENV('Instance')
END OF STMT
PARSE #13:c=4000,e=3131,p=0,cr=8,cu=0,mis=1,r=0,dep=2,og=4,tim=1263198632852769
=====================
PARSING IN CURSOR #16 len=104 dep=1 uid=0 oct=3 lid=0 tim=1263198632865557 hv=1470317213 ad='6aa76e58' sqlid='4kvhq1dbu6hnx'
select num,name,type,display_value,update_comment from v$system_parameter4 order by lower(name),ordinal
PARSING IN CURSOR #10 len=53 dep=4 uid=0 oct=3 lid=0 tim=1263198632851008 hv=2195068792 ad='72557fb8' sqlid='asvzxj61dc5vs'
select timestamp, flags from fixed_obj$ where obj#=:1
END OF STMT
PARSE #10:c=0,e=14,p=0,cr=0,cu=0,mis=0,r=0,dep=4,og=4,tim=1263198632851004
EXEC #10:c=0,e=21,p=0,cr=0,cu=0,mis=0,r=0,dep=4,og=4,tim=1263198632851095
FETCH #10:c=0,e=19,p=0,cr=3,cu=0,mis=0,r=1,dep=4,og=4,tim=1263198632851154
STAT #10 id=1 cnt=1 pid=0 pos=1 obj=100 op='TABLE ACCESS BY INDEX ROWID FIXED_OBJ$ (cr=3 pr=0 pw=0 time=0 us cost=2 size=17 card=1)'
STAT #10 id=2 cnt=1 pid=1 pos=1 obj=101 op='INDEX UNIQUE SCAN I_FIXED_OBJ$_OBJ# (cr=2 pr=0 pw=0 time=0 us cost=1 size=0 card=1)'
=====================
PARSING IN CURSOR #12 len=247 dep=3 uid=0 oct=3 lid=0 tim=1263198632852018 hv=3957975603 ad='6aa75df8' sqlid='48x4v2mpymujm'
select x.inst_id,kspftctxsid,kspftctxpn,ksppinm,ksppity,kspftctxdvl, kspftctxvn,kspftctxct from x$ksppi x, x$ksppsv2 y where ((x.
indx+1) = kspftctxpn) and (bitand(ksppilrmflg,64)!=64) and ((kspftctxdf = 'FALSE') or (bitand(kspftctxvf,8) = )
END OF STMT
PARSE #12:c=0,e=1744,p=0,cr=6,cu=0,mis=1,r=0,dep=3,og=4,tim=1263198632852014
=====================
PARSING IN CURSOR #13 len=130 dep=2 uid=0 oct=3 lid=0 tim=1263198632852774 hv=1046352901 ad='6aa76568' sqlid='437ya6wz5w505'
select SID, NUM, NAME, TYPE, DISPLAY_VALUE, ORDINAL, UPDATE_COMMENT from GV$SYSTEM_PARAMETER4 where INST_id = USERENV('Instance')
END OF STMT
PARSE #13:c=4000,e=3131,p=0,cr=8,cu=0,mis=1,r=0,dep=2,og=4,tim=1263198632852769
=====================
PARSING IN CURSOR #16 len=104 dep=1 uid=0 oct=3 lid=0 tim=1263198632865557 hv=1470317213 ad='6aa76e58' sqlid='4kvhq1dbu6hnx'
select num,name,type,display_value,update_comment from v$system_parameter4 order by lower(name),ordinal
打开init文件,可以看到包含了很多隐含参数:
引用
__db_cache_size=92M
__java_pool_size=16M
__large_pool_size=4M
__oracle_base='/opt/ora11g/app' # ORACLE_BASE set from environment
__pga_aggregate_target=52M
__sga_target=300M
__shared_io_pool_size=0
__shared_pool_size=180M
__streams_pool_size=0
_always_anti_join='CHOOSE'
_always_semi_join='CHOOSE'
_b_tree_bitmap_plans=TRUE
_bloom_filter_enabled=TRUE
_bloom_pruning_enabled=TRUE
_complex_view_merging=TRUE
_convert_set_to_join=FALSE
_cost_equality_semi_join=TRUE
_cpu_to_io=0
_dimension_skip_null=TRUE
_eliminate_common_subexpr=TRUE
_enable_type_dep_selectivity=TRUE
_fast_full_scan_enabled=TRUE
_first_k_rows_dynamic_proration=TRUE
_gby_hash_aggregation_enabled=TRUE
_generalized_pruning_enabled=TRUE
_globalindex_pnum_filter_enabled=TRUE
_gs_anti_semi_join_allowed=TRUE
_improved_outerjoin_card=TRUE
_improved_row_length_enabled=TRUE
_index_join_enabled=TRUE
_ksb_restart_policy_times='0'
_ksb_restart_policy_times='60'
_ksb_restart_policy_times='120'
_ksb_restart_policy_times='240' # internal update to set default
_left_nested_loops_random=TRUE
_local_communication_costing_enabled=TRUE
_minimal_stats_aggregation=TRUE
_mmv_query_rewrite_enabled=TRUE
_new_initial_join_orders=TRUE
_new_sort_cost_estimate=TRUE
_nlj_batching_enabled=1
_optim_adjust_for_part_skews=TRUE
_optim_enhance_nnull_detection=TRUE
_optim_new_default_join_sel=TRUE
_optim_peek_user_binds=TRUE
_optimizer_adaptive_cursor_sharing=TRUE
_optimizer_better_inlist_costing='ALL'
_optimizer_cbqt_no_size_restriction=TRUE
_optimizer_complex_pred_selectivity=TRUE
_optimizer_compute_index_stats=TRUE
_optimizer_connect_by_combine_sw=TRUE
_optimizer_connect_by_cost_based=TRUE
_optimizer_correct_sq_selectivity=TRUE
_optimizer_cost_based_transformation='LINEAR'
_optimizer_cost_hjsmj_multimatch=TRUE
_optimizer_cost_model='CHOOSE'
_optimizer_dim_subq_join_sel=TRUE
_optimizer_distinct_elimination=TRUE
_optimizer_enable_density_improvements=TRUE
_optimizer_enable_extended_stats=TRUE
_optimizer_enhanced_filter_push=TRUE
_optimizer_extend_jppd_view_types=TRUE
_optimizer_extended_cursor_sharing='UDO'
_optimizer_extended_cursor_sharing_rel='SIMPLE'
_optimizer_extended_stats_usage_control=240
_optimizer_filter_pred_pullup=TRUE
_optimizer_fkr_index_cost_bias=10
_optimizer_group_by_placement=TRUE
_optimizer_improve_selectivity=TRUE
_optimizer_join_elimination_enabled=TRUE
_optimizer_join_order_control=3
_optimizer_join_sel_sanity_check=TRUE
_optimizer_max_permutations=2000
_optimizer_mode_force=TRUE
_optimizer_multi_level_push_pred=TRUE
_optimizer_native_full_outer_join='FORCE'
_optimizer_new_join_card_computation=TRUE
_optimizer_null_aware_antijoin=TRUE
_optimizer_or_expansion='DEPTH'
_optimizer_order_by_elimination_enabled=TRUE
_optimizer_outer_to_anti_enabled=TRUE
_optimizer_push_down_distinct=0
_optimizer_push_pred_cost_based=TRUE
_optimizer_rownum_bind_default=10
_optimizer_rownum_pred_based_fkr=TRUE
_optimizer_skip_scan_enabled=TRUE
_optimizer_sortmerge_join_inequality=TRUE
_optimizer_squ_bottomup=TRUE
_optimizer_star_tran_in_with_clause=TRUE
_optimizer_system_stats_usage=TRUE
_optimizer_transitivity_retain=TRUE
_optimizer_undo_cost_change='11.1.0.6'
_or_expand_nvl_predicate=TRUE
_ordered_nested_loop=TRUE
_parallel_broadcast_enabled=TRUE
_partition_view_enabled=TRUE
_pivot_implementation_method='CHOOSE'
_pre_rewrite_push_pred=TRUE
_pred_move_around=TRUE
_push_join_predicate=TRUE
_push_join_union_view=TRUE
_push_join_union_view2=TRUE
_px_minus_intersect=TRUE
_px_pwg_enabled=TRUE
_px_ual_serial_input=TRUE
_query_rewrite_setopgrw_enable=TRUE
_remove_aggr_subquery=TRUE
_right_outer_hash_enable=TRUE
_selfjoin_mv_duplicates=TRUE
_sql_model_unfold_forloops='RUN_TIME'
_sqltune_category_parsed='DEFAULT' # parsed sqltune_category
_subquery_pruning_enabled=TRUE
_subquery_pruning_mv_enabled=FALSE
_table_scan_cost_plus_one=TRUE
_union_rewrite_for_gs='YES_GSET_MVS'
_unnest_subquery=TRUE
_use_column_stats_for_function=TRUE
audit_file_dest='/opt/ora11g/app/admin/db11g/adump'
audit_trail='DB'
compatible='11.1.0.0.0'
control_files='/opt/ora11g/oradata/db11g/control01.ctl'
control_files='/opt/ora11g/oradata/db11g/control02.ctl'
control_files='/opt/ora11g/oradata/db11g/control03.ctl'
core_dump_dest='/opt/ora11g/app/diag/rdbms/db11g/db11g/cdump'
db_block_size=8192
db_domain=''
db_name='db11g'
db_recovery_file_dest='/opt/ora11g/flash_recovery_area'
db_recovery_file_dest_size=2G
diagnostic_dest='/opt/ora11g/app'
dispatchers='(PROTOCOL=TCP) (SERVICE=db11gXDB)'
local_listener='LISTENER_DB11G'
log_buffer=4583424 # log buffer update
open_cursors=300
optimizer_dynamic_sampling=2
optimizer_mode='ALL_ROWS'
pga_aggregate_target=50M
plsql_warnings='DISABLE:ALL' # PL/SQL warnings at init.ora
processes=150
query_rewrite_enabled='TRUE'
remote_login_passwordfile='EXCLUSIVE'
result_cache_max_size=1536K
sga_target=300M
skip_unusable_indexes=TRUE
undo_tablespace='UNDOTBS1'
__java_pool_size=16M
__large_pool_size=4M
__oracle_base='/opt/ora11g/app' # ORACLE_BASE set from environment
__pga_aggregate_target=52M
__sga_target=300M
__shared_io_pool_size=0
__shared_pool_size=180M
__streams_pool_size=0
_always_anti_join='CHOOSE'
_always_semi_join='CHOOSE'
_b_tree_bitmap_plans=TRUE
_bloom_filter_enabled=TRUE
_bloom_pruning_enabled=TRUE
_complex_view_merging=TRUE
_convert_set_to_join=FALSE
_cost_equality_semi_join=TRUE
_cpu_to_io=0
_dimension_skip_null=TRUE
_eliminate_common_subexpr=TRUE
_enable_type_dep_selectivity=TRUE
_fast_full_scan_enabled=TRUE
_first_k_rows_dynamic_proration=TRUE
_gby_hash_aggregation_enabled=TRUE
_generalized_pruning_enabled=TRUE
_globalindex_pnum_filter_enabled=TRUE
_gs_anti_semi_join_allowed=TRUE
_improved_outerjoin_card=TRUE
_improved_row_length_enabled=TRUE
_index_join_enabled=TRUE
_ksb_restart_policy_times='0'
_ksb_restart_policy_times='60'
_ksb_restart_policy_times='120'
_ksb_restart_policy_times='240' # internal update to set default
_left_nested_loops_random=TRUE
_local_communication_costing_enabled=TRUE
_minimal_stats_aggregation=TRUE
_mmv_query_rewrite_enabled=TRUE
_new_initial_join_orders=TRUE
_new_sort_cost_estimate=TRUE
_nlj_batching_enabled=1
_optim_adjust_for_part_skews=TRUE
_optim_enhance_nnull_detection=TRUE
_optim_new_default_join_sel=TRUE
_optim_peek_user_binds=TRUE
_optimizer_adaptive_cursor_sharing=TRUE
_optimizer_better_inlist_costing='ALL'
_optimizer_cbqt_no_size_restriction=TRUE
_optimizer_complex_pred_selectivity=TRUE
_optimizer_compute_index_stats=TRUE
_optimizer_connect_by_combine_sw=TRUE
_optimizer_connect_by_cost_based=TRUE
_optimizer_correct_sq_selectivity=TRUE
_optimizer_cost_based_transformation='LINEAR'
_optimizer_cost_hjsmj_multimatch=TRUE
_optimizer_cost_model='CHOOSE'
_optimizer_dim_subq_join_sel=TRUE
_optimizer_distinct_elimination=TRUE
_optimizer_enable_density_improvements=TRUE
_optimizer_enable_extended_stats=TRUE
_optimizer_enhanced_filter_push=TRUE
_optimizer_extend_jppd_view_types=TRUE
_optimizer_extended_cursor_sharing='UDO'
_optimizer_extended_cursor_sharing_rel='SIMPLE'
_optimizer_extended_stats_usage_control=240
_optimizer_filter_pred_pullup=TRUE
_optimizer_fkr_index_cost_bias=10
_optimizer_group_by_placement=TRUE
_optimizer_improve_selectivity=TRUE
_optimizer_join_elimination_enabled=TRUE
_optimizer_join_order_control=3
_optimizer_join_sel_sanity_check=TRUE
_optimizer_max_permutations=2000
_optimizer_mode_force=TRUE
_optimizer_multi_level_push_pred=TRUE
_optimizer_native_full_outer_join='FORCE'
_optimizer_new_join_card_computation=TRUE
_optimizer_null_aware_antijoin=TRUE
_optimizer_or_expansion='DEPTH'
_optimizer_order_by_elimination_enabled=TRUE
_optimizer_outer_to_anti_enabled=TRUE
_optimizer_push_down_distinct=0
_optimizer_push_pred_cost_based=TRUE
_optimizer_rownum_bind_default=10
_optimizer_rownum_pred_based_fkr=TRUE
_optimizer_skip_scan_enabled=TRUE
_optimizer_sortmerge_join_inequality=TRUE
_optimizer_squ_bottomup=TRUE
_optimizer_star_tran_in_with_clause=TRUE
_optimizer_system_stats_usage=TRUE
_optimizer_transitivity_retain=TRUE
_optimizer_undo_cost_change='11.1.0.6'
_or_expand_nvl_predicate=TRUE
_ordered_nested_loop=TRUE
_parallel_broadcast_enabled=TRUE
_partition_view_enabled=TRUE
_pivot_implementation_method='CHOOSE'
_pre_rewrite_push_pred=TRUE
_pred_move_around=TRUE
_push_join_predicate=TRUE
_push_join_union_view=TRUE
_push_join_union_view2=TRUE
_px_minus_intersect=TRUE
_px_pwg_enabled=TRUE
_px_ual_serial_input=TRUE
_query_rewrite_setopgrw_enable=TRUE
_remove_aggr_subquery=TRUE
_right_outer_hash_enable=TRUE
_selfjoin_mv_duplicates=TRUE
_sql_model_unfold_forloops='RUN_TIME'
_sqltune_category_parsed='DEFAULT' # parsed sqltune_category
_subquery_pruning_enabled=TRUE
_subquery_pruning_mv_enabled=FALSE
_table_scan_cost_plus_one=TRUE
_union_rewrite_for_gs='YES_GSET_MVS'
_unnest_subquery=TRUE
_use_column_stats_for_function=TRUE
audit_file_dest='/opt/ora11g/app/admin/db11g/adump'
audit_trail='DB'
compatible='11.1.0.0.0'
control_files='/opt/ora11g/oradata/db11g/control01.ctl'
control_files='/opt/ora11g/oradata/db11g/control02.ctl'
control_files='/opt/ora11g/oradata/db11g/control03.ctl'
core_dump_dest='/opt/ora11g/app/diag/rdbms/db11g/db11g/cdump'
db_block_size=8192
db_domain=''
db_name='db11g'
db_recovery_file_dest='/opt/ora11g/flash_recovery_area'
db_recovery_file_dest_size=2G
diagnostic_dest='/opt/ora11g/app'
dispatchers='(PROTOCOL=TCP) (SERVICE=db11gXDB)'
local_listener='LISTENER_DB11G'
log_buffer=4583424 # log buffer update
open_cursors=300
optimizer_dynamic_sampling=2
optimizer_mode='ALL_ROWS'
pga_aggregate_target=50M
plsql_warnings='DISABLE:ALL' # PL/SQL warnings at init.ora
processes=150
query_rewrite_enabled='TRUE'
remote_login_passwordfile='EXCLUSIVE'
result_cache_max_size=1536K
sga_target=300M
skip_unusable_indexes=TRUE
undo_tablespace='UNDOTBS1'
进一步,在Oracle 11g以下版本,我们可以通过以下查询获得当前系统中运行的非缺省参数:
引用
SQL>select name,value from v$parameter where isdefault='FALSE'
我们可以通过explain 观察v$parameter 由哪些基表组成
SQL> set autotrace trace explain
SQL> select * from v$parameter;
Execution Plan
----------------------------------------------------------
Plan hash value: 1128103955
------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 1 | 926 | 1 (100)| 00:00:01 |
|* 1 | HASH JOIN | | 1 | 926 | 1 (100)| 00:00:01 |
|* 2 | FIXED TABLE FULL| X$KSPPI | 1 | 249 | 0 (0)| 00:00:01 |
| 3 | FIXED TABLE FULL| X$KSPPCV | 100 | 67700 | 0 (0)| 00:00:01 |
------------------------------------------------------------------------------
Predicate Information (identified by operation id):
---------------------------------------------------
1 - access("X"."INDX"="Y"."INDX")
filter(TRANSLATE("KSPPINM",'_','#') NOT LIKE '#%' OR
"KSPPSTDF"='FALSE' OR BITAND("KSPPSTVF",5)>0)
2 - filter("X"."INST_ID"=USERENV('INSTANCE') AND
TRANSLATE("KSPPINM",'_','#') NOT LIKE '##%')
发表评论
-
buffer cache 的内部结构
2020-03-18 14:21 584BUFFER CACHE作为数据块的 ... -
Oracle OMC介绍
2020-03-18 13:19 495Oracle管理云服务(OMC)的大数据平台,自动收集的企业 ... -
参加Oracle勒索病毒防范专题培训会议
2019-09-27 17:15 5312019年7月22日,受邀参加Oracle勒索病毒防范专题培训 ... -
记一次内存换IO的Oracle优化
2019-09-27 16:50 835某客户数据库从P595物理 ... -
如何定位Oracle SQL执行计划变化的原因
2019-07-03 14:49 1471性能优化最难的是能够 ... -
如何定位Oracle SQL执行计划变化的原因
2018-10-30 09:24 1185性能优化最难的是能够 ... -
数据库性能优化目标
2018-10-08 10:59 528从数据库性能优化的场 ... -
数据库无法打开的原因及解决办法
2018-10-05 20:45 2145数据库的启动是一个相当复杂的过程。比如,Oracle在启动之前 ... -
怎么样彻底删除数据库?
2018-09-18 11:10 608Oracle提供了drop database命令用来删除数据库 ... -
Oracle减少日志量的方法
2018-09-10 10:17 871LGWR进程将LOG BUFFER中的 ... -
如何快速关闭数据库
2018-09-09 13:14 1240“一朝被蛇咬,十年怕井绳”。在没被“蛇”咬之前,很多DBA喜欢 ... -
关于《如何落地智能化运维》PPT
2018-05-17 10:19 1137在DTCC 2018发表《如何落地智能化运维》演讲,主要内容如 ... -
记录在redhat5.8平台安装oracle11.2容易忽视的几个问题
2018-05-11 19:58 587问题一:ping不通问题 在虚拟机上安装好linux系统后, ... -
《Oracle DBA实战攻略》第一章
2018-05-11 10:42 956即日起,不定期更新《OracleDBA实战攻略》一书电子版,请 ... -
Oracle 12c新特性
2018-05-11 10:33 907查询所有pdb [oracle@gj4 ~]$ sqlplu ... -
关于修改memory_target的值后数据库无法启动的问题
2017-02-28 12:24 3990操作系统:RHEL6.5 数据库版本:11.2.0.4 ... -
10g rac安装error while loading shared libraries libpthread.so.0 问题
2017-02-28 12:22 70311g rac安装在二节点跑脚本一般会报此错误: 解决这个问 ... -
记一次Oracle会话共享模式故障处理过程
2017-02-27 19:16 805故障简述 XXX第八人民医院HIS数据库7月13日11点左右从 ... -
RESMGR:cpu quantum等待事件处理过程
2017-02-27 18:23 2657由于数据库上线过程中出现大量的RESMGR:cpu quant ... -
谈谈log file sync
2014-03-19 14:18 1776数据库中的log file sync等待事件指的是,当user ...
相关推荐
CREATE SPFILE = ‘$ORACLE_HOME/dbs/spfileDBA01.ora’ FROM PFILE = ‘$ORACLE_HOME/dbs/initDBA01.ora’; ``` 或者默认方式: ```sql CREATE SPFILE FROM PFILE; ``` SPFILE的修改可以使用`ALTER SYSTEM SET`语句...
Oracle 11g R2 在 Red Hat Enterprise Linux (RHEL) 上手动创建数据库涉及一系列步骤,这些步骤确保了系统的正确配置和数据库实例的稳定运行。以下是详细的创建过程: 1. **指定实例标识符 (SID)**:SID 是 Oracle ...
### Oracle 12C In-Memory Column Store特性详解 #### 一、概述 Oracle 12C引入了一项重要的性能优化技术——In-Memory Column Store(IM Column Store),该技术旨在提升复杂查询处理速度,特别是在大数据量分析...
6. 设置默认调用修改后的 pfile 文件启动数据库,使用语句 create spfile from pfile='',然后 shutdown immediate; startup;。 注意:pfile 是文本文件,可以编辑,通过 spfile 创建;spfile 是二进制文件,只有...
- `CREATE PFILE FROM MEMORY` #### 11. 实例信息 了解当前实例的运行状态对于日常管理至关重要: - `SELECT instance_name, host_name, status, archiver, database_status, instance_role, active_state FROM v$...
Oracle 11g 是 Oracle 数据库系统的一个重要版本,提供了许多新特性和改进来提高数据库性能、可靠性和安全性。在本文档中,我们将深入探讨 Oracle 11g 的一些常见操作及其相关配置参数。 #### 二、Oracle 11g 安装...
Oracle中的SPFILE(Server Parameter FILE)是Oracle 9i引入的一种新型初始化参数文件,它具有持久性和其他传统初始化参数文件(PFILE)不具备的优势。SPFILE的出现使得对数据库参数的管理和维护更加高效和便捷。 1...
注意:在 Oracle 11g 中,`sga_max_size` 不能大于 `memory_max_size`。 3. **重启数据库实例**: 修改参数后,需要立即关闭并重新启动数据库实例以应用更改: ``` shutdown immediate; start up; ``` 4. **...
- 创建SPFILE从PFILE:`create spfile from pfile='/u01/app/oracle/admin/test/pfile/init.ora.1062009223651';` - 这是将文本参数文件(PFILE)转换为二进制格式的SPFILE的过程,SPFILE通常在重启后保持不变,而...
- 使用特权模式通过 `create pfile from spfile;` 语句创建初始化参数文件。 - 参数文件中包含了一系列关键参数设置,例如内存分配、文件路径等: - `mydb.__db_cache_size`: 数据缓冲区大小设置为 348 MB。 - `...
Oracle数据库的SPFILE(Server Parameter FILE)是一种先进的初始化参数文件,自Oracle9i版本开始引入。与传统的文本格式的INIT.ORA文件相比,SPFILE具备许多显著的优势和新特性。 首先,SPFILE的一个核心特点是其...
在Oracle 11g及更高版本中,有超过200个初始化参数,大部分参数都有默认值。管理员可以根据实际需求调整参数,以优化数据库性能或满足特定功能需求。Oracle 8i开始支持通过`ALTER SYSTEM`或`ALTER SESSION`命令动态...
`CREATE PFILE FROM SPFILE` 是从服务器参数文件(spfile)创建一个文本形式的初始化参数文件(pfile),便于编辑。 - 使用 `ALTER SYSTEM SET` 语句可以动态修改参数值,例如 `ALTER SYSTEM SET OPEN_CURSORS=300 ...
通常,我们可以通过Oracle提供的图形化工具DBCA(Database Configuration Assistant)来快速构建数据库,但对于深入理解Oracle数据库架构及底层原理而言,手工创建数据库是一个不可或缺的学习过程。本文将详细介绍...
Oracle 11g 是该系列的一个重要版本,提供了丰富的功能来满足各种业务需求。本文将详细介绍 Oracle 11g 的一些常用命令,帮助您更好地管理和操作 Oracle 数据库。 #### 监听器操作 监听器是 Oracle 数据库与客户端...
#### 一、Oracle内存管理 - **查看当前内存配置**: - 使用命令`show parameter memory_target`查看`MEMORY_TARGET`的设置。 - 使用命令`show parameter memory_max_target`查看`MEMORY_MAX_TARGET`的设置。 - **...