Physical Standby出现ORA-10458,ORA-01157,ORA-01111

July 15th, 2010 Romeo No comments

今天在测试系统中启动Physical Standby,发现报错,最终查出原因是有人在测试库中创建了个tablespace而且把datafile没有放在默认path,导致db_file_name_convert没有产生作用。

系统环境:DB11.2.0.2,Primary和Standby都在同一台主机上

Read more…

EM dbcontrol的常用命令

July 5th, 2010 Romeo No comments

详细的命令列表还是看OTN(http://download.oracle.com/docs/cd/E11882_01/server.112/e10701/emca.htm#BABDEHCE),下面只列出一些常见的:

创建DBcontrol:emca -config dbcontrol db -repos create

RAC下重新部署DBcontrol:emca -reconfig dbcontrol -cluster

删除DBcontrol:emca -deconfig dbcontrol db -repos drop

Read more…

Categories: Enterprise Manager Tags: , ,

EMGC11g内存占用100%问题

June 12th, 2010 Romeo No comments

EMGC11g测试机上的内存占用总是过一段时间就增长到100%了,怀疑是内存泄漏,查了一下,果然是weblogic的bug。而且GC11g的安装文档上已经明确要求安装weblogic的相关patch了。

http://download.oracle.com/docs/cd/E11857_01/install.111/e15838/install_em_exist_db.htm#CIAIEAAC

Oracle WebLogic Server Patch Requirements Ensure that you apply patch ID WDJ7 on Oracle WebLogic Server using the Oracle Smart Update utility. This patch fixes bugs 8990616, 9100465, and 9221722.

For information on applying this patch, see My Oracle Support note 1072763.1.

For information on Oracle Smart Update utility, see Oracle Smart Update Installing Patches and Maintenance Packs documentation available at:

http://www.oracle.com/technology/products/weblogic/index.html

How to apply recommended WLS patches on WLS home for 11g Grid Control Install/Upgrade [ID 1072763.1]

Categories: Enterprise Manager Tags: , ,

如何在Windows平台用Cygwin支持SSH来做Agent Push

June 3rd, 2010 Romeo No comments

大家都知道在win平台上默认是不支持SSH的,而通过GC的GUI来给target主机安装agent(也叫agent push)是必须要用SSH的,因此必须得在windows上装一个工具Cygwin。下面是详细步骤

Read more…

为实现EM中CRS rolling upgrade如何设置sudo以及sudo环境变量

September 29th, 2009 Romeo No comments

今天在EM dbconsole 11.2环境里给11gR2的CRS打rolling patch时碰到不少关于sudo的问题,特此记录以免忘记。

因为EM都是通过Agent来进行操作的,所有不可能拥有root权限,而打有些patch的时候又不得不用root权限,所以有必要为grid(Grid Infra的user,就是以前的Clusterware),oracle(RAC database的user)两个用户设置sudo。下面以grid用户为例,说明一下。

Read more…

alter system set event和set events的区别

June 12th, 2009 Romeo 3 comments

今天按照Oracle Support的建议设置event的时候发现set event和set events这两种写法效果不一样,防止忘记先记下来。

1. alter system set event :此方法对spfile生效,无法对memory生效

Read more…

Categories: Knowledge, Tuning Tags: , ,

Solaris10 X86下安装Oracle 10gR2

June 11th, 2009 Romeo 1 comment

1. 安装Solaris10

我的硬件选择的是30G空间,1G内存,2核(台式机是4核,闲着那么多核也没啥用)

这个步骤最简单,从SUN网站上下载后直接在VM里面设置为ISO启动就行了,其他的基本一路NEXT而已。(注意下硬盘分区,我删除了默认的/export/home,把20多G分给了根目录/,swap给了2048M)

Read more…

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

June 9th, 2009 Romeo 2 comments

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 double-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: ,