摘要: The DBMS_XPLAN package supplies five table functions:· DISPLAY - to format and display the contents of a plan table.· DISPLAY_AWR - to format and display the contents of the execution plan o... 阅读全文
posted @ 2010-01-06 11:27 Christmas 阅读(1422) 评论(0) 推荐(0) 编辑
摘要: 首先通过 select * from V$pwfile_users 查询密码文件是否存,如果无记录返回,说明文件不存在,则通过ORAPWD创建。D:\oracle\ora92\database>orapwd file=pwdcjh.ora password=cjh entries=2其中参数entries的含义是表示口令文件中可以存放的最大用户数,对应于允许以SYSDBA/SYSOPER权限... 阅读全文
posted @ 2009-12-30 16:29 Christmas 阅读(753) 评论(0) 推荐(0) 编辑
摘要: 在init.ora中有db_name,instance_name,service_name。在操作系统中需要配置oracle_sid。在listener.ora中有SID_NAME,GLOBAL_DBNAME,在tnsname.ora中有SERVICE_NAME,SID这么多,是不是你也看糊涂了。先晕一个,下面慢慢道来。在init.ora中有db_name,instance_name,servic... 阅读全文
posted @ 2009-12-29 11:26 Christmas 阅读(1135) 评论(0) 推荐(0) 编辑
摘要: 一网友发贴:map原理,它是如何快速查找key的.还是来整体看一下HashMap的结构吧. 如下图所示(图没画好),方框代表Hash桶,椭图代表桶内的元素,在这里就是Key-value对所组成Map.Entry对像.如果有多个元索被Hash函数定位到同一个桶内,我们称之为hash冲突,桶内的元素组成单向链表.让我们看一下hashMap JDK源码(因篇幅关系,删除了部分代码与注释,感兴可以查看JD... 阅读全文
posted @ 2009-12-26 11:04 Christmas 阅读(1727) 评论(1) 推荐(0) 编辑
摘要: 1.However, any performance increases achieved by adding hardware should be considered a short-term relief to an immediate problem2。In certain circumstances, it is better to use IN rather than EXISTS. ... 阅读全文
posted @ 2009-12-25 17:15 Christmas 阅读(180) 评论(0) 推荐(0) 编辑
摘要: ORACLE ASM没有提借LINUX2.6.9-5.EL驱动.详情见http://www.oracle.com/technology/software/tech/linux/asmlib/rhel4.html,安装ASM之前,需升级LINUX内核. 安装以下RPM包,升级到LINUX2.6.9-11.EL,ORACLE提供了相应有ASM驱动.kernel-2.6.9-11.EL.i686.rpm... 阅读全文
posted @ 2009-12-15 22:41 Christmas 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 9i提供了联机重定义表的方法,可以让你在基本不影响原表的DML情况下修改表结构。实际上,联机重定义表并不是完全的联机重定义,在最后交换表名的时候会短暂地锁定原表和中间表,但这个过程很短暂。重定义表主要有以下四步:1.判断表是否可以在线重定义,begin dbms_redefinition.can_redef_table(uname => 'syslogusr',tname => 'te... 阅读全文
posted @ 2009-12-11 23:00 Christmas 阅读(361) 评论(0) 推荐(0) 编辑
摘要: V$LOG视图展示ORACLE online redo的信息.代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--SQL>select*fromv$log2/GROUP#THREAD#SEQUENCE#BYTESMEMBERSARCHIVEDS... 阅读全文
posted @ 2009-12-08 22:27 Christmas 阅读(1461) 评论(0) 推荐(0) 编辑
摘要: Oracle Database compresses only nonpartitioned indexes that are nonunique or unique indexes of at least two columnshttp://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_1008.htm... 阅读全文
posted @ 2009-12-08 18:49 Christmas 阅读(190) 评论(0) 推荐(0) 编辑
摘要: LINUX 建LVM其实很简单,下面在RH4.1.创建分区并指定ID为8e2.创建物理卷pvcreate /sdv/sda53.创建卷组 vgcreate vg /sdv/sda54.创建逻辑卷 lvcreate -L1000M -n root vg5.在逻辑卷创建文件系统 mk2fs /dev/vg/root6.挂载 mount /dev/vg/root /mnt7.over 阅读全文
posted @ 2009-12-07 00:59 Christmas 阅读(148) 评论(0) 推荐(0) 编辑