<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[蝈蝈的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/green5578</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; green5578]]></copyright><item><title><![CDATA[itpub上的ORACLE之常用FAQ V1.0]]></title><link>https://blog.csdn.net/green5578/article/details/488520</link><guid>https://blog.csdn.net/green5578/article/details/488520</guid><author>green5578</author><pubDate>Sat, 24 Sep 2005 12:23:00 +0800</pubDate><description><![CDATA[itpub上的ORACLE之常用FAQ V1.0发布于2005-06-01 被读4608次 【字体：大 中 小】 作者：itpub  第一部分、SQL&PL/SQL[Q]怎么样查询特殊字符，如通配符%与_[A]select * from table where name like A_% escape [Q]如何插入单引号到数据库表中[A]可以用AS]]></description><category></category></item><item><title><![CDATA[元数据（Metadata：即保留在数据字典中的数据）API]]></title><link>https://blog.csdn.net/green5578/article/details/487948</link><guid>https://blog.csdn.net/green5578/article/details/487948</guid><author>green5578</author><pubDate>Fri, 23 Sep 2005 13:13:00 +0800</pubDate><description><![CDATA[select dbms_metadata.get_ddl(TABLE,RS_DEPT,DBO) dd from dual;结果为:  CREATE TABLE "DBO"."RS_DEPT"    (	"DEPT_ID" NUMBER(10,0) NOT NULL ENABLE, 	"DEPT_CODE" VARCHAR2(30), 	"]]></description><category></category></item><item><title><![CDATA[oralce 物化视图/实体化视图]]></title><link>https://blog.csdn.net/green5578/article/details/487212</link><guid>https://blog.csdn.net/green5578/article/details/487212</guid><author>green5578</author><pubDate>Thu, 22 Sep 2005 16:07:00 +0800</pubDate><description><![CDATA[实体化视图刷新实体化视图使用与快照相同的内部机制并支持几种刷新技术实体化视图的完全刷新包括截断现有数据并重新插入所有基于详细表的数据这通过重新执行 CREATE 命令的查询定义来实现快速刷新仅适用于自上次刷新以来所进行的更改有两种可用的快速刷新类型• 使用实体化视图日志的快速刷新在这种情况下对基表的所有更改都会为日志所捕获然后应用于实体化视图• 使用 ROWID 范]]></description><category></category></item><item><title><![CDATA[数据访问方法]]></title><link>https://blog.csdn.net/green5578/article/details/486910</link><guid>https://blog.csdn.net/green5578/article/details/486910</guid><author>green5578</author><pubDate>Thu, 22 Sep 2005 09:57:00 +0800</pubDate><description><![CDATA[数据访问方法为了提高性能, 您可以使用以下数据访问方法:• 索引 (B-树, 位图, 反向键 )• 索引编排表• 簇• 直方图• 实体化视图何时创建 B-树索引B-树索引通常可改进一些查询的性能这些查询从表中选择小百分比的行一般说来应该为经常查询的行少于总行数的 5% 的表创建索引如果可以从索引中检索所有数据或者索引的列可以用于连接其它表则可以增大该]]></description><category></category></item><item><title><![CDATA[oracle索引统计]]></title><link>https://blog.csdn.net/green5578/article/details/486879</link><guid>https://blog.csdn.net/green5578/article/details/486879</guid><author>green5578</author><pubDate>Thu, 22 Sep 2005 09:22:00 +0800</pubDate><description><![CDATA[索引统计• 索引级别 (高度)• 叶块数和不同的键数• 每个键的平均叶块数• 每个键的平均数据块数• 索引条目数• 集簇因子• 数据字典视图: DBA_INDEXES.....................................................................................................]]></description><category></category></item><item><title><![CDATA[oracle表统计]]></title><link>https://blog.csdn.net/green5578/article/details/486878</link><guid>https://blog.csdn.net/green5578/article/details/486878</guid><author>green5578</author><pubDate>Thu, 22 Sep 2005 09:19:00 +0800</pubDate><description><![CDATA[行数• 块以及空块的数量• 平均的可用空闲空间• 链接行或移植行的数量• 行的平均长度• 最后一次 ANALYZE 的日期和样本大小• 数据字典视图:DBA_TABLES示例在以下示例中可以看到大约有五个空块必须监视空块占所有块的比例SQL> analyze table employees estimate statistics for table;]]></description><category></category></item><item><title><![CDATA[oracle优化程序模式]]></title><link>https://blog.csdn.net/green5578/article/details/486868</link><guid>https://blog.csdn.net/green5578/article/details/486868</guid><author>green5578</author><pubDate>Thu, 22 Sep 2005 09:10:00 +0800</pubDate><description><![CDATA[优化程序模式• 基于规则的:– 使用 --- 套等级系统– 语法驱动和数据字典驱动• 基于成本的:– 选择成本最低的路径– 统计数据驱动基于规则的优化在基于规则的优化中通过检查查询服务器进程选择它访问数据的路径该优化程序有一整套对访问路径进行排序的规则有经验的 Oracle 开发人员往往十分了解这些规则并可据此优化他们的 SQL基于规则的优化程序]]></description><category></category></item><item><title><![CDATA[oralce约束及其状态]]></title><link>https://blog.csdn.net/green5578/article/details/485667</link><guid>https://blog.csdn.net/green5578/article/details/485667</guid><author>green5578</author><pubDate>Tue, 20 Sep 2005 14:10:00 +0800</pubDate><description><![CDATA[SELECT constraint_name, constraint_type, deferrable,  deferred, validated  FROM dba_constraints  WHERE owner=SUMMIT  AND table_name=EMPLOYEE;下表显示 DBA_CONSTRAINTS 视图中非自证明的列约束中的列若要]]></description><category></category></item><item><title><![CDATA[批量清除oracle锁]]></title><link>https://blog.csdn.net/green5578/article/details/482032</link><guid>https://blog.csdn.net/green5578/article/details/482032</guid><author>green5578</author><pubDate>Fri, 16 Sep 2005 10:17:00 +0800</pubDate><description><![CDATA[select  Alter system kill session ||a.sid||,||a.SERIAL#||||; from v$session a, v$lock b where a.username is not null and a.SID=b.SIDand a.STATUS= INACTIVE]]></description><category></category></item><item><title><![CDATA[一个sql语句 怎么写比较好]]></title><link>https://blog.csdn.net/green5578/article/details/482019</link><guid>https://blog.csdn.net/green5578/article/details/482019</guid><author>green5578</author><pubDate>Fri, 16 Sep 2005 10:07:00 +0800</pubDate><description><![CDATA[原因:如果这么写,CAPACITY 就计算错了.因为对应一个user_no来说,可能在Df_Money_Files_h存在2条记录,那么在TRANS_RUN 表中能取到2个值,那样不是我期待的结果,我系统TRANS_RUN有几个user_no 统计几个capacity.  select       count( distinct a.user_no),     sum(nvl((SEL]]></description><category></category></item><item><title><![CDATA[高级sql简单介绍]]></title><link>https://blog.csdn.net/green5578/article/details/479947</link><guid>https://blog.csdn.net/green5578/article/details/479947</guid><author>green5578</author><pubDate>Wed, 14 Sep 2005 08:35:00 +0800</pubDate><description><![CDATA[高级sql简单介绍 一、查询间使用运算词 A： UNION 运算符 UNION 运算符通过组合其他两个结果表（例如 TABLE1 和 TABLE2）并消去表中任何重复行而派生出一个结果表。当 ALL 随 UNION 一起使用时（即 UNION ALL），不消除重复行。两种情况下，派生表的每一行不是来自 TABLE1 就是来自 TABLE2。  B： EXCEPT 运算符 EXC]]></description><category></category></item><item><title><![CDATA[oracle 索引分析]]></title><link>https://blog.csdn.net/green5578/article/details/479946</link><guid>https://blog.csdn.net/green5578/article/details/479946</guid><author>green5578</author><pubDate>Wed, 14 Sep 2005 08:32:00 +0800</pubDate><description><![CDATA[索引重组在一个不稳定的表上建索引会影响性能，一个索引block只有完全空时才能进入free list，即使一个索引block里只含有一个条目，它也必须被维护，因此索引需要进行阶段性的重建。1）检查索引是否需要重组A、收集一个index的使用统计ANALYZE INDEX acct_no_idx VALIDATE STRUCTURE;B、查看收集的统计数据SELECT N]]></description><category></category></item><item><title><![CDATA[oracle 分析语句]]></title><link>https://blog.csdn.net/green5578/article/details/479945</link><guid>https://blog.csdn.net/green5578/article/details/479945</guid><author>green5578</author><pubDate>Wed, 14 Sep 2005 08:17:00 +0800</pubDate><description><![CDATA[SELECT alter index  || index_name ||  rebuild  ||tablespace INDEXES storage(initial 256K next 256K pctincrease 0); FROM all_indexes WHERE ( tablespace_name != INDEXES OR next_extent !=]]></description><category></category></item><item><title><![CDATA[系统监测情况]]></title><link>https://blog.csdn.net/green5578/article/details/479944</link><guid>https://blog.csdn.net/green5578/article/details/479944</guid><author>green5578</author><pubDate>Wed, 14 Sep 2005 08:15:00 +0800</pubDate><description><![CDATA[--*cpu*使用情况SELECT /*cpu*/ u.SID, u.serial#, s.VALUE cpu, u.username, u.machine,u.program, u.osuser FROM v$session u, v$sesstat s WHERE s.SID = u.SID AND       statistic# IN (12) ORDER BY c]]></description><category></category></item><item><title><![CDATA[内存使用率查看]]></title><link>https://blog.csdn.net/green5578/article/details/479943</link><guid>https://blog.csdn.net/green5578/article/details/479943</guid><author>green5578</author><pubDate>Wed, 14 Sep 2005 08:13:00 +0800</pubDate><description><![CDATA[--内存使用率查看select program c1,pga_used_mem c2,pga_alloc_mem c3,pga_max_mem c4fromv$processorder byc4 descselect name,valuefromv$pgastatorder byvalue descselect name c1,cnt c2,de]]></description><category></category></item><item><title><![CDATA[清除一天前的临时表锁]]></title><link>https://blog.csdn.net/green5578/article/details/479942</link><guid>https://blog.csdn.net/green5578/article/details/479942</guid><author>green5578</author><pubDate>Wed, 14 Sep 2005 08:13:00 +0800</pubDate><description><![CDATA[SELECT se.username,sid,serial#,sql_address,machine,program,tablespace,segtype, contents,SE.LOGON_TIME,SYSDATE-SE.LOGON_TIMEFROM v$session se,v$sort_usage suWHERE se.saddr=su.session_addr and  ]]></description><category></category></item><item><title><![CDATA[oracle死锁原因分析]]></title><link>https://blog.csdn.net/green5578/article/details/479941</link><guid>https://blog.csdn.net/green5578/article/details/479941</guid><author>green5578</author><pubDate>Wed, 14 Sep 2005 08:10:00 +0800</pubDate><description><![CDATA[select /*+ NO_MERGE(a) NO_MERGE(b) NO_MERGE(c) */ Wait "Status", a.username, a.machine, a.sid, a.serial#, a.last_call_et "Seconds", b.id1,c.sql_text "SQL"from v$session a, v$lock b, v$sqltext cw]]></description><category></category></item><item><title><![CDATA[oracle死锁查询]]></title><link>https://blog.csdn.net/green5578/article/details/479940</link><guid>https://blog.csdn.net/green5578/article/details/479940</guid><author>green5578</author><pubDate>Wed, 14 Sep 2005 08:09:00 +0800</pubDate><description><![CDATA[select /*+ NO_MERGE(a) NO_MERGE(b) NO_MERGE(c) */ Wait "Status", a.username, a.machine, a.sid, a.serial#, a.last_call_et "Seconds", b.id1from v$session a, v$lock bwhere a.username is not nulla]]></description><category></category></item><item><title><![CDATA[表信息]]></title><link>https://blog.csdn.net/green5578/article/details/479366</link><guid>https://blog.csdn.net/green5578/article/details/479366</guid><author>green5578</author><pubDate>Tue, 13 Sep 2005 16:46:00 +0800</pubDate><description><![CDATA[select * from dba_unused_col_tabs;使用 UNUSED 选项ALTER TABLE ordersSET UNUSED COLUMN commentsCASCADE CONSTRAINTS;? 删除未占用的列ALTER TABLE ordersDROP UNUSED COLUMNS CHECKPOINT 1000;? 将列标记为]]></description><category></category></item><item><title><![CDATA[回退段操作]]></title><link>https://blog.csdn.net/green5578/article/details/478965</link><guid>https://blog.csdn.net/green5578/article/details/478965</guid><author>green5578</author><pubDate>Tue, 13 Sep 2005 10:13:00 +0800</pubDate><description><![CDATA[解决方案查询 V$ROLLSTAT V$SESSION 和 V$TRANSACTION 视图以找到任何阻塞的事务处理示例SQL> SELECT s.sid, s.serial#, t.start_time, t.xidusn, s.username2 FROM v$session s, v$transaction t, v$rollstat r3 WHERE s.saddr]]></description><category></category></item></channel></rss>