CheckPoints and RBA
摘录了一位大师对oracle 中checkpoints的理解,和RBA的深刻理解!!!I really wouldn't classify Oracle as having different types of checkpoints. Basically, there is one type of checkpoint. The purpose of th...
Oracle tablespace 常用操作
Oracle TablespacesVersion 11.1GeneralData Dictionary ObjectsTablespacests$dba_tablespacesuser_tablespacesTablespace Quotastsq$dba_ts_quotasuser_ts_quotasData Filesdba_data_fi...
利用DBMS_XPLAN包获取SQL执行计划
Oracle默认安装没有创建DBMS_XPLAN包,我们必须手工安装aplm@ORCLDEV> conn /as sysdba &nbs...
Ora-14551问题求助,怎么能在查询语句中执行DML语句
今天用 select aplm.f_ss_get_seqid('P01',null,null,null) from dual ;语句执行一个函数取值问题,结果报了ORA-14551: cannot perform. a DML operation inside a query - 查询资料发现:对数据库有...
Insert into return 语句的使用
insert into return 语句在插入一条数据以后,返回某个字段的值非常方便, 下面演示:SQL> drop table test; drop table test ORA-00942: table or view does not exist SQL> create ta...
SQL解析的过程
sql在解析阶段主要完成以下一个步骤:(1) 包含VPD的约束条件 (2) 语法,语义以及访问权限的检查 这一步不仅确认sql语句是否正确书写,...
游标的另一种写法
今天读了oracle性能诊断艺术,发现游标的另一种写法declare l_name emp.last_name%type :='HARTSTEIN'; l_empno emp.EMPLOYEE_ID%type; l_cursor integer; l_retval integer;begin l_curs...
LINUX随身指南-重温linux常用命令
今天看了LINUX随身指南这本书,复习了linux中的一些常用命令!!!!见附件!!!
CURSOR_SHARING 参数副作用
1. 与优化器有关的问题: cursor_sharing 将从查询中删除所有的字符和数字常数,优化器能够使用的信息将更少,这可能导致不同的查询方案。 2. 与查询输出有关的问题: 一个查询得到的列的长度出乎意料的...
绑定变量对性能的影响
declarel_number number;beginfor i in 1 .. 10000loopl_number:=dbms_random.random;execute immediate 'insert into t values('||l_number||','||l_number||','||l_number||','||l_number||')';end loop;commit;en...
rsh方式访问配互信关系
今天项目中用到linux中rsh方式调用远程一台linux机器中的shell脚本。机器一: 10.90.172.11 SteelTrade-app 机器二: 10.90.172.12 SteelTrade-db 问题: 机器一中的一个脚本访问机器...
查看表空间使用情况
col tablespace_name format a10;select f.tablespace_name,a.total,u.used,f.free,round((u.used/a.total)*100) "% used", round((f.free/a.total)*100) "% Free" from (select tablespace_name...
表空间复制
利用exp,imp完成表空间的复制步骤如下: (1) 将要转化的表空间设为只读状态SQL> alter tablespace tts_ex1 read only;Tablespace altered.SQL> alter tablespace tts_ex2 read only;Tablespace altered.(2) ...
EXP各种参数的使用
1. EXP和IMP的最有用的用途 1> 检查冲突 2> 提取DDL 3> 克隆模式(fromuser,touser) 4> 传输表空间 5> 重构实例 6> 在平台之间复制数据2. ...
Impdp TABLE_EXISTS_ACTION参数使用
impdp hr SCHEMAS=hr DIRECTORY=dump_dir DUMPFILE=expschema.dmp EXCLUDE=CONSTRAINT,REF_CONSTRAINT,INDEX TABLE_EXISTS_ACTION=REPLACE连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0...
ora-38760 :此数据库无法启用闪回数据库
我的解决方法:SQL> alter database flashback off;数据库已更改。SQL> alter database open;数据库已更改。SQL> shutdown immediate;数据库已经关闭。已经卸载数据库。ORACLE 例程已经关闭。SQL> startup mount...
基于函数的索引(序)
分析表的语句analyze table tt compute statisticsfor tablefor all indexed columnsfor all indexes/所有的索引对DML语句都有影响。在Oracle8i以前的版本中,基于函数的索引不能在内置的函数TO_DATE上创建索引、以...
位图索引研究
位图索引用来存储有单个索引码条目的许多行的指针,而在B*Tree 结构中,索引码和表中的行是一一对应,在位图索引中,索引的条目是非常少的,每个条目指向许多行,在B*Tree索引中,是一对一的,一个索引条目指向一行...
索引压缩(三)
compress1 只压缩索引列的第一列 compress2 压缩两列,看看压缩两列和一列在使用空间上有多大区别 SQL> drop index t_idx_2 ;索引已删除。SQL> create index t_idx_2 on t(owner,obj...
基于函数的索引
基于函数的索引 create index T_IDX_UPPER on t (upper(object_name)); SQL> select object_name from t where upper(object_name)='_DEFSCHEDULE' order by upper(object_name...