07 2014 档案

摘要:Here’s an example of a slightly less common data deadlock graph (dumped from 11gR2, in this case):[Transaction Deadlock]The following deadlock is not ... 阅读全文
posted @ 2014-07-31 19:00 princessd8251 阅读(159) 评论(0) 推荐(0) 编辑
摘要:from https://jonathanlewis.wordpress.com/2011/08/29/deadlock-2/Here’s a deadlock graph the appeared on Oracle-L and OTN a couple of days ago.Deadlock ... 阅读全文
posted @ 2014-07-31 18:58 princessd8251 阅读(612) 评论(0) 推荐(0) 编辑
摘要:from https://jonathanlewis.wordpress.com/2013/03/20/lock-bug/Here’s an oddity that I ran into a little while ago while trying to prepare a sample trac... 阅读全文
posted @ 2014-07-31 18:53 princessd8251 阅读(160) 评论(0) 推荐(0) 编辑
摘要:from https://jonathanlewis.wordpress.com/category/oracle/locks/deadlocks/Here’s a lovely effect looking at v$lock (on 11.2.0.4)12345678910111213141516... 阅读全文
posted @ 2014-07-31 18:52 princessd8251 阅读(257) 评论(0) 推荐(0) 编辑
摘要:from http://jonathanlewis.wordpress.com/2013/04/13/deadlocks/Here’s a deadlock graph that might cause a little confusion:Deadlock graph: ---------Bloc... 阅读全文
posted @ 2014-07-31 18:33 princessd8251 阅读(222) 评论(0) 推荐(0) 编辑
摘要:转自http://blog.itpub.net/15415488/viewspace-631260通常情况下,dead lock是由应用的不合理造成,应该由PD解决,而非DBA。但何时为非通常情况呢?今天遇到一个case,即为非通常情况。而他的通常的标志即为:在trc文件里的deadlock gra... 阅读全文
posted @ 2014-07-31 01:09 princessd8251 阅读(354) 评论(0) 推荐(0) 编辑
摘要:转自http://blog.csdn.net/biti_rainy/article/details/35188热点块的定义 数据库的热点块,从简单了讲,就是极短的时间内对少量数据块进行了过于频繁的访问。定义看起来总是很简单的,但实际在数据库中,我们要去观察或者确定热点块的问题,却不是那么简单了。要深... 阅读全文
posted @ 2014-07-30 00:44 princessd8251 阅读(1118) 评论(0) 推荐(0) 编辑
摘要:fromhttp://oracle-abc.wikidot.com/x-bhBuffer Hash(according toJ. Morle's Scaling Oracle 8i)Another explaining is Buffer Header.Columnsver 10.2.0.4> x$... 阅读全文
posted @ 2014-07-28 18:42 princessd8251 阅读(338) 评论(0) 推荐(0) 编辑
摘要:fromhttp://www.javaworld.com/article/2077397/core-java/urls-smart-resource-identifiers.htmlQ:What convenient pluggability patterns exist for loading r... 阅读全文
posted @ 2014-07-25 01:10 princessd8251 阅读(172) 评论(0) 推荐(0) 编辑
摘要:fromhttp://www.javaworld.com/article/2077344/core-java/find-a-way-out-of-the-classloader-maze.htmlQ:When should I use Thread.getContextClassLoader() ?... 阅读全文
posted @ 2014-07-25 00:55 princessd8251 阅读(231) 评论(0) 推荐(0) 编辑
摘要:fromhttp://www.javaworld.com/article/2077352/java-se/smartly-load-your-properties.htmlQ:What is the best strategy for loading property and configurati... 阅读全文
posted @ 2014-07-24 21:54 princessd8251 阅读(158) 评论(0) 推荐(0) 编辑
摘要:1.mod_cluster简介 mod_cluster 和mod_jk,mod_proxy类似,是一个基于httpd的负载平衡项目能够代理请求给基于Tomcat 网络服务器集群(支持任何独立的Tomcat,独立的JBoss Web或者JBoss AS的嵌入JBoss Web)。mod_cluste... 阅读全文
posted @ 2014-07-23 17:19 princessd8251 阅读(1121) 评论(0) 推荐(0) 编辑
摘要:for对很多批处理新手来说可能是最不好理解的,而微软的帮助又极为苦涩难懂,所以我想把我所了解的for尽可能以最简单的方式写出来。当然,因为是自己的理解,难免会有错,还请各位指出。好了,开始。1.没有任何参数的for格式为:for %%i in (set) do command%%i 为变量set为一... 阅读全文
posted @ 2014-07-21 19:08 princessd8251 阅读(2240) 评论(1) 推荐(1) 编辑
摘要:为什么定义存储过程和函数,有时需要固定参数的长度,有时又不需要?http://www.itpub.net/thread-1877480-1-1.htmlPLSQL的形参是不能指定长度的,声明里的变量定义可以指定,不指定就是默认的定义变量时,number是可以不指定精度的,但varchar2必须指定长... 阅读全文
posted @ 2014-07-20 01:20 princessd8251 阅读(138) 评论(0) 推荐(0) 编辑
摘要:转自 http://www.cnblogs.com/chuncn/archive/2009/04/29/1381282.htmlORACLE日期时间函数大全 TO_DATE格式(以时间:2007-11-02 13:45:25为例) Year: yy two digits 两位年 显示值:07 ... 阅读全文
posted @ 2014-07-20 00:59 princessd8251 阅读(132) 评论(0) 推荐(0) 编辑
摘要:from https://blogs.oracle.com/optimizer/entry/how_do_i_drop_an_existing_histogram_on_a_column_and_stop_the_auto_stats_gathering_job_from_creatingBefor... 阅读全文
posted @ 2014-07-20 00:50 princessd8251 阅读(251) 评论(0) 推荐(0) 编辑
摘要:The default isolation level is READ COMMITTED. It means, a session read the committed data.Session 1:SQL> set transaction isolation level read committ... 阅读全文
posted @ 2014-07-19 21:16 princessd8251 阅读(862) 评论(0) 推荐(0) 编辑
摘要:Http协议之Byte Range http://www.ietf.org/rfc/rfc2616.txt(14.35章节)14.35 Range ....................................................138 14.35.1 Byte ... 阅读全文
posted @ 2014-07-18 14:16 princessd8251 阅读(6270) 评论(0) 推荐(0) 编辑
摘要:from http://neeraj-dba.blogspot.in/2011/05/how-to-drop-undo-tablespace.htmlIt is not an easy task to drop the undo tablespace . Once I have to delete ... 阅读全文
posted @ 2014-07-17 19:09 princessd8251 阅读(470) 评论(0) 推荐(0) 编辑
摘要:from http://www.dba-oracle.com/plsql/t_plsql_contexts.htmAn alternative to the previous method is to use contexts to store the global data. A context ... 阅读全文
posted @ 2014-07-17 15:13 princessd8251 阅读(135) 评论(0) 推荐(0) 编辑
摘要:Enable Gzip Compression on Jetty 8Gzip Compression is easy to configure for Jetty and the results will be impressive if it is done correctly.On my exp... 阅读全文
posted @ 2014-07-17 14:50 princessd8251 阅读(216) 评论(0) 推荐(0) 编辑
摘要:http://stackoverflow.com/questions/6922145/what-is-the-difference-between-server-side-cookie-and-client-side-cookiehttp://stackoverflow.com/questions/... 阅读全文
posted @ 2014-07-16 22:41 princessd8251 阅读(229) 评论(0) 推荐(0) 编辑
摘要:from http://www.robvanderwoude.com/battech_redirection.phpOn this page I'll try to explain how redirection works.To illustrate my story there are some... 阅读全文
posted @ 2014-07-16 19:12 princessd8251 阅读(195) 评论(0) 推荐(0) 编辑
摘要:from http://www.cyberciti.biz/open-source/html-to-pdf-freeware-linux-osx-windows-software/Do you need a simple open source cross-platform command line... 阅读全文
posted @ 2014-07-16 18:49 princessd8251 阅读(576) 评论(0) 推荐(0) 编辑
摘要:from http://www.cyberciti.biz/cloud-computing/http-status-code-206-commad-line-test/The HTTP 2xx class of status codes indicates the action requested ... 阅读全文
posted @ 2014-07-16 18:43 princessd8251 阅读(1797) 评论(0) 推荐(0) 编辑
摘要:VBHDIRTYBUFFERCACHEDIRTYYNSQL>selectdirty,count(1)fromvbh group by dirty;DI COUNT(1)-- ----------Y 158N 147270... 阅读全文
posted @ 2014-07-16 01:59 princessd8251 阅读(535) 评论(0) 推荐(0) 编辑
摘要:对于不熟悉ROWNUM用法的人可以好好的看看了。为什么SELECT * FROM T WHERE ROWNUM=1 可以查询出来数据,而 SELECT * FROM T WHERE ROWNUM=2不可以查询出来数据。TOM大师给出ROWNUM计算的逻辑如下:rownum = 1for x in (... 阅读全文
posted @ 2014-07-16 01:56 princessd8251 阅读(112) 评论(0) 推荐(0) 编辑
摘要:From ASKTOM siteA process is a physical process or thread.On unix, you can see a process with "ps" for example. It is there.There are many types of pr... 阅读全文
posted @ 2014-07-16 01:53 princessd8251 阅读(164) 评论(0) 推荐(0) 编辑
摘要:From ASKTOM siteIn earlier releases of Oracle, there was a single block buffer cache, and all blocks from any segment went into this single area. Star... 阅读全文
posted @ 2014-07-16 01:50 princessd8251 阅读(243) 评论(0) 推荐(0) 编辑
摘要:一般人们分析问题,总是从问题现象,原因分析,解决方案这样的思路来分析思考问题,我想对这个数据库的水平拆分也按这样的思路来简单剖析一下。 先从问题现象入手,随着数据库表中数据日积月累越来越多,当表记录数达到千万甚至亿级别时,数据库表的访问效率下降明显,导致外层应用的访问效率非常差, ... 阅读全文
posted @ 2014-07-16 01:11 princessd8251 阅读(207) 评论(0) 推荐(0) 编辑
摘要:转自http://www.eygle.com/archives/2012/10/12c_topn_native_query.html在Oracle Database 12c之前,翻页查询需要试用rownum的方式进行SQL嵌套查询编写,这非常复杂,在12c中,新增了Top N查询支持特性,允许试用O... 阅读全文
posted @ 2014-07-16 00:40 princessd8251 阅读(164) 评论(0) 推荐(0) 编辑
摘要:转自http://www.eygle.com/archives/2012/05/oracle_sqlid_hash_value.html在Oracle 10g中,SQL被以 SQLID 描述,此前SQL是通过HASH VALUE来表述的。这两者具有同源的对应关系,最早 Tanel Poder 对这个... 阅读全文
posted @ 2014-07-16 00:21 princessd8251 阅读(652) 评论(0) 推荐(0) 编辑
摘要:Maven Resources plugin example from http://maven.apache.org/plugins/maven-resources-plugin/Specifying a character encoding schemeA character encoding ... 阅读全文
posted @ 2014-07-15 18:53 princessd8251 阅读(1227) 评论(0) 推荐(0) 编辑
摘要:转自http://blog.csdn.net/leshami/article/details/6923670自适应游标共享Adaptive Cursor Sharing或扩展的游标共享(Extended Cursor Sharing)是Oracle 11g的新特性之一,主要用于解决以前版本中由于绑定... 阅读全文
posted @ 2014-07-15 13:28 princessd8251 阅读(221) 评论(0) 推荐(0) 编辑
摘要:转自http://blog.csdn.net/leshami/article/details/6893477游标是数据库领域较为复杂的一个概念,因为游标包含了shared cursor和session cursor。两者有其不同的概念,也有不同的表现形式。共享游标的概念易于与SQL语句中定义的游标相... 阅读全文
posted @ 2014-07-15 01:31 princessd8251 阅读(114) 评论(0) 推荐(0) 编辑
摘要:转自http://blog.itpub.net/35489/viewspace-683646/绑定变量的好处,大家都比较熟悉,使用绑定变量可以限制需要存储在库缓存中返回相似结果集的SQL语句游标的数量。也就是为了减少硬解析。但是并不是任何时候使用绑定变量都是最优的。有时候会出现绑定变量使性能变差的情... 阅读全文
posted @ 2014-07-15 01:20 princessd8251 阅读(408) 评论(0) 推荐(0) 编辑
摘要:转自 http://blog.csdn.net/leshami/article/details/6923627 Bind Peeking是Oracle 9i中引入的新特性,一直持续到Oracle 10g R2。它的作用就是在SQL语句硬分析的时候,查看一下当前SQL谓词的值,以便生成最佳的执行计划。... 阅读全文
posted @ 2014-07-15 01:11 princessd8251 阅读(653) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-07-15 00:25 princessd8251 阅读(273) 评论(0) 推荐(0) 编辑
摘要:from http://javarevisited.blogspot.in/2011/11/hotspot-jvm-options-java-examples.htmlThere are hundreds ofJVM parametersorJVM Optionsexists inside sun ... 阅读全文
posted @ 2014-07-14 13:58 princessd8251 阅读(202) 评论(0) 推荐(0) 编辑
摘要:from http://download.java.net/jdk7u2/docs/technotes/tools/solaris/jdb.htmlSYNOPSISjdb [ options ] [ class ] [ arguments ] optionsCommand-line options,... 阅读全文
posted @ 2014-07-11 12:14 princessd8251 阅读(245) 评论(0) 推荐(0) 编辑
摘要:from http://download.java.net/jdk7u2/docs/technotes/tools/solaris/java.htmlSYNOPSIS java [ options ] class [ argument ... ] java [ options ] -jar file... 阅读全文
posted @ 2014-07-11 12:12 princessd8251 阅读(338) 评论(0) 推荐(0) 编辑
摘要:from http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.htmlPlease note that this page only applies to JDK 7 and earlier releases... 阅读全文
posted @ 2014-07-11 11:46 princessd8251 阅读(190) 评论(0) 推荐(0) 编辑
摘要:转自http://www.2cto.com/database/201304/203360.html通常情况下,用户提交一条SQL语句,总会存在这样或那样的等待事件。也就是说由于所需资源被占用导致进程不得不处于等待状态。Oracle为我们提供了获取这些等待事件的可用视图。根据这些视图可以得知哪些事件导... 阅读全文
posted @ 2014-07-11 01:51 princessd8251 阅读(286) 评论(0) 推荐(0) 编辑
摘要:转自http://www.eygle.com/archives/2010/04/wait_inactive_session.html最近在一个客户的AWR报告中,发现inactive session这个等待事件出现在最前列,这是首次看到这个等待。在Oracle的文档上这样描述该事件:inactive... 阅读全文
posted @ 2014-07-11 01:41 princessd8251 阅读(479) 评论(0) 推荐(0) 编辑
摘要:转自http://blog.csdn.net/cunxiyuan108/article/details/5999220VSESSION是APPS用户下面对于SYS.V_SESSION 视图的同义词。在本视图中,每一个连接到数据库实例中的session都拥有一条记录。包括用户session及后台进... 阅读全文
posted @ 2014-07-11 01:34 princessd8251 阅读(236) 评论(0) 推荐(0) 编辑
摘要:问题大家都知道Kill Session的时候要知道 SID和SERIAL#, 语法如下:Alter system kill session 'SID,SERIAL#' 但是为什么单单就一个SID不够呢?答案:sid 会重用,当同一个SID被重用时,serial#会增加,不会重复。比如你在10:00时... 阅读全文
posted @ 2014-07-11 01:31 princessd8251 阅读(378) 评论(0) 推荐(0) 编辑
摘要:转自 http://blog.csdn.net/huang_xw/article/details/6530635alter system set resource_limit=true;确保resource_limit启用了.create user profiletest identified by... 阅读全文
posted @ 2014-07-11 01:23 princessd8251 阅读(438) 评论(0) 推荐(0) 编辑
摘要:转自http://www.eygle.com/archives/2008/10/profile_session_limit.html通过profile可以对用户会话进行一定的限制,比如IDLE时间。将IDLE超过一定时间的会话断开,可以减少数据库端的会话数量,减少资源耗用。使用这些资源限制特性,需要... 阅读全文
posted @ 2014-07-11 01:06 princessd8251 阅读(143) 评论(0) 推荐(0) 编辑
摘要:转自http://www.eygle.com/archives/2005/10/oracle_howto_kill_session.html很多时候由于异常或程序错误会导致个别进程占用大量系统资源,需要结束这些进程,通常可以使用以下命令Kill进程:alter system kill session... 阅读全文
posted @ 2014-07-11 00:57 princessd8251 阅读(503) 评论(0) 推荐(0) 编辑
摘要:转自http://www.eygle.com/archives/2004/06/kill_session.htmlitpub link:http://www.itpub.net/235873.html我们知道,在Oracle数据库中,可以通过kill session的方式来终止一个进程,其基本语法结... 阅读全文
posted @ 2014-07-11 00:36 princessd8251 阅读(158) 评论(0) 推荐(0) 编辑
摘要:转自http://blog.itpub.net/26686207/viewspace-750184死锁定义:从广义上讲包括操作系统 应用程序 数据库,如果2个进程(会话)相互持有对方的资源,都一直等待对方释放,这种情况会造成死锁。误解:会话的阻塞可不是死锁,因为其中有一个会话还是可以继续操作的。释放... 阅读全文
posted @ 2014-07-09 00:45 princessd8251 阅读(136) 评论(0) 推荐(0) 编辑
摘要:转自http://blog.itpub.net/26686207/viewspace-750182/深入分析mode 2-6 的TM锁相互间的互斥关系Oracle TM锁的类型锁模式锁描述含义锁定表的SQL0None1Null空,本模式是oracle预留模式2Row Share(RS)又叫(SS)行... 阅读全文
posted @ 2014-07-09 00:37 princessd8251 阅读(255) 评论(0) 推荐(0) 编辑
摘要:转自 http://blog.csdn.net/leshami/article/details/30041813随着数据库数据量的不断增长,有些表需要由普通的堆表转换为分区表的模式。有几种不同的方法来对此进行操作,诸如导出表数据,然后创建分区表再导入数据到分区表;使用EXCHANGE PARTITI... 阅读全文
posted @ 2014-07-09 00:33 princessd8251 阅读(152) 评论(0) 推荐(0) 编辑
摘要:转自http://blog.csdn.net/zengmuansha/article/details/32694553要查询短时间内的可以从vsqlvsqlarea 如果要查询一周或者一个月内 那么有可能在V$SQLAREA里找不到!下面是通过历史DBA_HIST_SQLSTAT里获得,... 阅读全文
posted @ 2014-07-09 00:31 princessd8251 阅读(279) 评论(0) 推荐(0) 编辑
摘要:转自http://blog.csdn.net/leshami/article/details/8904804#comments在缺乏的可视化工具来监控数据库性能的情形下,常用的脚本就派上用场了,下面提供几个关于Oracle性能相关的脚本供大家参考。以下脚本均在Oracle 10g测试通过,Oracl... 阅读全文
posted @ 2014-07-09 00:12 princessd8251 阅读(175) 评论(0) 推荐(0) 编辑
摘要:转自 http://www.eygle.com/archives/2006/04/dsi_download_links.html曾经写过一篇文章,介绍什么是DSI教程,DSI可以称得上是Oracle的终极培训教程.统统被标记为:OracleConfidential.最近,这些DSI教程纷纷现身江湖,... 阅读全文
posted @ 2014-07-08 22:15 princessd8251 阅读(161) 评论(0) 推荐(0) 编辑
摘要:from http://www.oracle-base.com/articles/misc/killing-oracle-sessions.phpThere are a number of ways to kill rogue sessions both within Oracle and exte... 阅读全文
posted @ 2014-07-08 12:39 princessd8251 阅读(115) 评论(0) 推荐(0) 编辑
摘要:Modifying your hosts file will allow you to override the DNS for a domain, on that particular machine. This can be used to test your site without the ... 阅读全文
posted @ 2014-07-08 10:44 princessd8251 阅读(219) 评论(0) 推荐(0) 编辑
摘要:http://www.akadia.com/services/ora_statspack_survival_guide.htmlOverviewSTATSPACK is a performance diagnosis tool, available since Oracle8i. STATSPACK... 阅读全文
posted @ 2014-07-08 00:18 princessd8251 阅读(143) 评论(0) 推荐(0) 编辑
摘要:From http://www.oracledistilled.com/oracle-database/performance/installing-and-configuring-statspack/With the addition of the Active Workload Reposito... 阅读全文
posted @ 2014-07-07 17:33 princessd8251 阅读(133) 评论(0) 推荐(0) 编辑
摘要:Install statspack: @spcreate.sqlAuto-execute statspack jobs: @spauto.sqlRun statspack report: @spreport.sqlto remove a statspack job: exec dbms_job.re... 阅读全文
posted @ 2014-07-07 12:32 princessd8251 阅读(587) 评论(0) 推荐(0) 编辑
摘要:转自 http://www.oschina.net/translate/how-run-load-test-50k-concurrent-users本文将从负载测试的角度,描述了做一次流畅的5万用户并发测试需要做的事情.你可以在本文的结尾部分看到讨论的记录.快速的步骤概要 编写你的脚本使用JMete... 阅读全文
posted @ 2014-07-04 15:38 princessd8251 阅读(205) 评论(0) 推荐(0) 编辑
摘要:I recentlyinstalledMaven at a client site that had a NTLM proxy, and ran into issues because it was failing to download maven dependencies. I was foll... 阅读全文
posted @ 2014-07-01 17:21 princessd8251 阅读(1903) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示