[原创] Schema级单向Streams构建笔记

May 28th, 2009 1 comment

1. Prepare

In this Streams test environment, there are two databases called “strm1″ and “strm2″, whose global name are “strm1.com” and “strm2.com” respectively. The source side is “strm1″, and target side is “strm2″. The synchronization level is SCHEMA level and single -directions replication.

1.1 Init parameter prerequisite (Both db)

a) global_names should be true . global_name =db_name+”.”+domain_name

ALTER system SET global_names=true;

Read more…

Categories: Streams Tags: ,

确定SESSION_CACHED_CURSORS的效果,以及查询其与SOFT/HARD PARSE的比例

May 27th, 2009 No comments

目标:输出下面这样的结果

   CURSOR_CACHE_HITS SOFT_PARSES HARD_PARSES
   ----------------- ----------- -----------
               3.08%      90.77%       6.15%

注意:从10.2开始统计session cursor cache hits”的计算方法有所变化,有可能上述三值加起来超过100%。
10.2中由统计session cursor cache hits”的增加量来确定SESSION_CACHED_CURSORS的效果
Read more…

[zt] 常见等待事件的分析解决方法

May 27th, 2009 No comments

原文见这里
http://blog.ccidnet.com/blog-htm-do-showone-uid-222651-type-blog-itemid-415748.html

我们可以通过视图v$session_wait来查看系统当前的等待事件,以及与等待事件相对应的资源的相关信息,从而可确定出产生瓶颈的类型及其对象。 v$session_wait的p1、p2、p3告诉我们等待事件的具体含义,根据事件不同其内容也不相同,下面就一些常见的等待事件如何处理以及如何定 位热点对象和阻塞会话作一些介绍。

<1> db file scattered read DB 文件分散读取
Read more…

Categories: How to, Tuning Tags: , ,

STATSPACK与AWR的相同点与区别

May 26th, 2009 No comments

这是俺在itpub上发的帖子 http://www.itpub.net/thread-1148343-1-1.html

昨天看到有人问来着,找到了份比较全的文档,大家共享下

- AWR・STATSPACK都有的项目
Cache Sizes(end)
Load Profile
Instance Efficiency Percentages
Shared Pool Statistics
Top 5 Timed Events
Read more…

Categories: Knowledge Tags: ,

[zt] SPOOL、SQLLOADER数据导出导入的一点小总结

May 26th, 2009 No comments

原贴请见这里:

http://mengzhaopeng.spaces.live.com/?_c11_BlogPart_blogpart=blogview&_c=BlogPart&partqs=amonth%3d9%26ayear%3d2006
1、SQLLOADER的CONTROL文件
//********************************************************************************//
基本格式:
LOAD DATA
INFILE ‘T.DAT’ // 要导入的数据文件(格式1)
//INFILE ‘TT.DAT’ // 导入多个文件(可以和格式1并列使用)
//INFILE * // 要导入的内容就在CONTROL文件里 下面的BEGINDATA后面就是导入的内容(和格式1互斥使用) Read more…

非本机远程登录ASM实例 How to Login ASM remotely

May 25th, 2009 1 comment

正常情况下,ASM instance只被Database instance在本地访问,但特殊情况下也会有特殊需求吧,下面就是从设置远程登录的方法。

大家也可以从metalink上找到原版的。

DOC ID:340277.1

Keyword: ORA-12541, ORA-15000, ORA-12528
Solution:

Read more…

Categories: How to, RAC Tags: , ,

[zt]面对一个全新的环境,作为一个Oracle DBA,首先应该了解什么?

May 20th, 2009 1 comment

Toms_zhang 的文章,觉得很不错拿来转一下,原帖请见http://www.itpub.net/thread-1166708-1-1.html

在这里,不谈那些大的方面,比如了解整个IT环境整体情况,假设你已经知道了这些,接下来需要面对的就是这些一个个活生生的database了.这里总结了一些一般的思路来面对一个全先的database,从而快速了解你面对的环境概要.

这也不是教科书,只是一些心得和体会,对于这种问题,每个人的认识的角度是不一样的.欢迎大家继续补充完善.

1、先要了解当前的Oracle 数据库的版本和平台和相关信息
   这个很重要,忙乎了半天还知道你的数据库是哪个版本,跑在什么系统上,那岂不是很悲哀,所以我个人认为这是第一步需要了解的。下面的这些脚本可以帮助你获取你需要的相关信息。
Read more…

Categories: How to, Knowledge Tags: ,

在VMWARE上搭建10gR2 RAC环境以及physical standby数据库

May 16th, 2009 1 comment

关于本文的说明:本文是我去年夏天在配置RAC途中做的笔记,有些地方不一定完全正确,还有些地方没配置成功后来就半途而废(比如ASMLib,最后直接使用的是raw disk),不过大体上问题不大,发出来主要也是自己以后做参考方便。所以不保证照做下来的成功性 :-)

Hardware Environment

Model: Dell Latitude D630

CPU: Core 2 Duo T7250 2 GHz

Memeory: 2GB

Free disk space: 50GB

Software Environment

VMware Server 1.06

Daemon410-x86

Red Hat Enterprise Linux 4 AS (kernel 2.6.9-34)

Oracle 10gR2 clusterware

Oracle 10gR2 database

Read more…

Categories: RAC Tags: , , , , ,