tom解释什么是sql profile(转)
Ok, this is my conceptual explanation. In the past, the DBA could analyze single 'things'the DBA could analyze A TABLE - finding the number of blocks, rows, things like that. about A TABLE...
ASM学习-3使用LUN
通过lun来创建asm磁盘组,在linux上就是直接使用linux的分区来创建:1. 新加一块磁盘,并分成四个区:[root@single ~]# df -hFilesystem Size...
ASM学习-2使用文件系统
1.用dd命令创建磁盘文件[ora10g@single ~]$ dd if=/dev/zero f=/home/db/oracle/oradata/+ASM/fs/filesystem_dsk1 bs=1M count=128128+0 records in128+0 records out134217728 bytes (134 MB) copied, 0.930547 se...
ASM学习-1使用raw
1.检查css服务是否启动,如果没有,将其启动root@single ~]# localconfig add/etc/oracle does not exist. Creating it now.Successfully accumulated necessary OCR keys.Creating OCR keys for user 'root', priv...
rownum条件对delete操作的影响
在一次偶然的测试中,发现在delete时如果加了rownum条件且走的是索引扫描,资源消耗及耗时都会增加,如果简单的测试:sys@EBANK>truncate table test;Table truncated.sys@EBANK>truncate table test1;Table tru...
pga相关的几个隐含参数
_PGA_MAX_SIZEThe parameter _PGA_MAX_SIZE limits the maximum size of all work areas for a single process.该参数限制的是单个进程所能使用的最大内存。_SMM_MAX_SIZEThe parameter _SMM_MAX_SIZE limits the ...
10g中audit_syslog_level参数
10g中审计相关的几个参数sys@EBANK>show parameter auditNAME &nbs...
Don't Kill That Process - Suspend It!(转)
Have you ever had to kill a long-running batch process because it had overrun its window and was affecting online performance? Well, next time, think again, because there may be a better solution. Yo...
控制子查询嵌套的参数_unnest_subquery
sys@EBANK>set linesize 132sys@EBANK>column name format a30sys@EBANK>column value format a25sys@EBANK>select 2 x.ksppinm name, 3 y.ksppstvl v...
高水位线探讨
1.段头里包含了哪些信息?============================================================ SEGMENT HEADER============================...
Drop Column Feature
Oracle 8i - Drop Column Feature [ID 66424.1] Modified 16-NOV-2010 Type BULLETIN Status ARCHIVED Oracle 8i - DROP COLUMN ...
用sql profile来获取sql的plan statistics
对sql加gather_plan_statistics提示,可以收集该sql的plan statistics,从而有助于对问题sql进行分析,纠正错误的执行计划,但如果是生产库的sql,往往是无法加提示的,通过手动的为sql生成sql profile,可以解决此...
hint---CARDINALITY
使用CARDINALITY这个hint,可以通过指定返回的记录数来迫使oracle改变执行计划,当优化器对某个结果集返回的行数估计出现较大偏差时,通过这个hint可以尝试让优化器产生正确的执行计划。 sys@EBANK>select a....
索引并行扫描
After the optimizer determines the execution plan of a statement, the parallelexecution coordinator determines the parallelization method for each operation in theplan. For example, the parallelizatio...
对查询转换一点理解
在执行如下的查询时,oracle往往会选择进行查询重写:sys@TEST> select 2 outer.* 3 from emp outer 4 wh...
使用sql profile实现outline的功能
首先看一个查询:sys@EBANK>select object_name from t where object_id between 1000 and 2000;1001 rows selected.Execution Plan----------------------------------------------------------Plan hash value: ...
搭建Dataguard时遭遇ORA-16047
dg搭建完毕后,日志无法传输到standby端,alert 日志报错:Errors in file /home/db/oracle/admin/ebank/bdump/ebank_arc1_4537.trc:ORA-16047: DGID mismatch between destination setting and standbyMon Sep 13 ...
模拟数据块损坏
关闭数据库后,用ultraedit编辑数据文件,然后启动数据库。SQL> select count(*) from a;select count(*) from a &nbs...
以sys用户执行exp导出
方法1:[oracle@primary ebank]$ exp "'/ as sysdba'" tables=emp file=emp.dmp log=emp.logExport: Release 10.2.0.4.0 - Production on Fri Jul 30 09:35:10 2010Copyright (c) 1982, 2007, Oracle. All ...
push_subq
如果说no_unnest是为了让子查询不展开,独立的完成,那么push_subq就是为了让子查询最先进行join。所以,这个hint其实是控制的join的顺序。SQL> create table t1 tablespace cbo as select * from all_objects;Tab...