11 2013 档案

查看TEMP 表空间usage
摘要:SELECT S.sid || ','|| S.serial# sid_serial, S.username, S.osuser, P.spid, S.module, P.program, SUM (T.blocks) * TBS.block_size / 1024 / 1024 mb_used, T.tablespace, COUNT(*) statementsFROM v$sort_usage T, v$session S, dba_tablespaces TBS, v$process PWHERE T.session_addr = S.saddr AND S.... 阅读全文

posted @ 2013-11-28 14:53 kramer 阅读(332) 评论(0) 推荐(0)

oracle 查看隐藏参数
摘要:可以用下面的SQL来查看。SQL> select nam.ksppinm, val.KSPPSTVL, nam.ksppdesc from sys.x$ksppi nam, sys.x$ksppsv val where nam.indx = val.indx AND nam.ksppinm LIKE '_%' AND upper(nam.ksppinm) LIKE '%LOG_PARALLE%';KSPPINM KSPPSTVL KSPPDESC---------------------------... 阅读全文

posted @ 2013-11-28 14:51 kramer 阅读(423) 评论(0) 推荐(0)

weblogic 10 无密码启动
摘要:首先确定你的domain目录[c21rms@c21wls10 RMS4]$ pwd/opt/psa/rel/weblogic/RMS4其次找到下面这个文件夹servers/AdminServer/security/ 注意security文件夹可能不存在,也许需要手动创建然后在该文件夹下面创建文件boot.properties。 文件的内容如下username=weblogicpassword=abcd1234这样启动weblogic可以不需密码了。而且这个文件在第一次启动成功后会被加密。 阅读全文

posted @ 2013-11-26 11:48 kramer 阅读(360) 评论(0) 推荐(0)

lead 函数和 lag函数
摘要:这两个函数的作用只能通过例子来解释,否则说不明白。首先创建一个表SQL> create table test (id number, name varchar2(8), val number);然后插入一些数据SQL> select * from test; ID NAME VAL---------- ------------------------ ---------- 1 a 11 2 b ... 阅读全文

posted @ 2013-11-21 14:17 kramer 阅读(850) 评论(0) 推荐(0)

oracle latch
摘要:(转载 : http://www.dbtan.com/2010/05/latch-free.html)Latch Free(闩锁释放):Latch Free通常被称为闩锁释放,这个名称常常引起误解,实际上我们应该在前面加上一个“等待”(wait),当数据库出现这个等待时,说明有进程正在等待某个Latch被释放,也就是waiting latch free。Latch是一种低级排队(串行)机制,用于保护SGA中共享内存结构。Latch就像是一种快速被获取和释放的内存锁,用于防止共享内存结构被多个用户同时访问。其实不必把Latch想得过于复杂,Latch通常就是操作系统利用内存中的某个区域,通过设置 阅读全文

posted @ 2013-11-20 15:50 kramer 阅读(833) 评论(0) 推荐(0)

查看OS 各项参数
摘要:查看CPU在linux下cat /proc/cpuinfo 可以得到CPU信息。 要注意的是CPU型号有不同的种类比如AMD Intel。可能在这个文件中显示的信息也不同。但终归是存在这个文件中的 。 可以通过该文件查看。[root@good~]# cat /proc/cpuinfo | grep physicphysical id : 0address sizes : 38 bits physical, 48 bits virtualphysical id :0 说明只有一个CPU。如果有 physical id :1 说明两个。[root@good ~]# cat /proc... 阅读全文

posted @ 2013-11-20 11:08 kramer 阅读(343) 评论(0) 推荐(0)

sysman 账号 oracle em console的一些问题
摘要:前几天用下面的命令修改了 sysman的密码。[oracle@racnode1 ~]$ emctl setpasswd dbconsoleOracle Enterprise Manager 11g Database Control Release 11.2.0.3.0Copyright (c) 1996, 2011 Oracle Corporation. All rights reserved.https://racnode1:1158/em/console/aboutApplicationPlease enter new repository password:Repository pas. 阅读全文

posted @ 2013-11-13 16:51 kramer 阅读(804) 评论(0) 推荐(0)

natural join 以及 v$statname , v$sessstat
摘要:oracle natural join是一个比较方便的用法。如果两个表的某些字段名称相同,类型相同,natural join就会把他们做等值连接。比如下面我们知道这两个视图的结构如下:SQL> desc v$sesstat Name Null? Type ------------------------------------------- -------- ------------------------------ SID ... 阅读全文

posted @ 2013-11-13 11:41 kramer 阅读(357) 评论(0) 推荐(0)

pga_aggregate_target, sga_target, memory_target
摘要:对于这三个参数有一些了解,但是又有一些疑惑。pga_aggregate_target最初的了解:这个参数控制着PGA的大小,如果work_area_policy 设置成auto,则oracle采用PGA自动管理。会在pga_aggregate_target控制的范围内分配pga的大小。疑惑的地方是 :通过看文档知道PGA的总使用量会大于这个参数的设定。那么这个参数有什么意义呢还?memory_target最初的理解:控制着pga 和 sga总内存的分配,是一个动态参数,可以随时调整。 对应的还有一共memory_max_target,是一个静态参数,防止memory_target设置过大。疑惑 阅读全文

posted @ 2013-11-11 12:04 kramer 阅读(594) 评论(0) 推荐(0)

memory management in oracle 11G R2
摘要:When we talking about memory management in Oracle, we are refering to SGA and PGA. The management methold including below.automatic mangementEnable automatic memory managementmonitor and tune automatic memory managementmanual managementAutomatic shared memory management - for the SGAManual shared me 阅读全文

posted @ 2013-11-08 11:43 kramer 阅读(1042) 评论(0) 推荐(0)

Performance Tunning - OCP
摘要:This artical is forcused on Oracle 11g Release 2. It is an summary from the OCP documentation. The topics discussed here including tunning memory, tunning sql, tunning segment access, identifing objects that are invalid or unusable and using Database Replay facility to generate workload for testing. 阅读全文

posted @ 2013-11-07 14:29 kramer 阅读(233) 评论(0) 推荐(0)

AWR and ADDM
摘要:The Automatic Workload RepositoryOracle collect a vast amount of statistics regarding the performance and activity. These statistics is accumulated in the memory and periodically flushed into AWR. The AWR is a set of tables and other data structure in the SYSAUX tablespace. By default the statistics 阅读全文

posted @ 2013-11-06 14:51 kramer 阅读(283) 评论(0) 推荐(0)

导航