Archive for April, 2007

Apr 16 2007

ORA-27054 in Oracle10g RMAN with NFS

Published by kamus under Oracle RDBMS

环境:IBM AIX 5L + Oracle10.2.0.3 RAC + ASM
动作:实施RMAN

RMAN通过下面的命令在zc2节点上发起对于两个节点上归档日志的备份:

  1. allocate channel t5 type disk connect 'sys/password@zc2';
  2. allocate channel t6 type disk connect 'sys/password@zc1';
  3. sql 'alter system archive log thread 2 current';
  4. sql 'alter system archive log thread 1 current';
  5. backup
  6. filesperset 10
  7. format '/orabk/arch_%t_%s_%c_%p.arc'
  8. (archivelog UNTIL TIME 'SYSDATE' LIKE '%/arch/arch2/%' delete all input channel t5)
  9. (archivelog UNTIL TIME 'SYSDATE' LIKE '%/arch/arch1/%' delete all input channel t6);
  10. release channel t5;
  11. release channel t6;

在本地zc2节点上备份成功,但是在zc1节点上的备份命令报错。

RMAN-03009: failure of backup command on t6 channel at 04/15/2007 14:57:19
ORA-19504: failed to create file “/orabk/arch_619973830_547_1_1.arc”
ORA-27054: NFS file system where the file is created or resides is not mounted with correct options
Additional information: 5

通过oerr看错误解释,似乎是说zc1节点上NFS的mount选项不正确。

$oerr ora 27054
27054, 00000, “NFS file system where the file is created or resides is not mounted with correct options”
// *Cause: The file was on an NFS partition and either reading the mount tab
// file failed or the partition wass not mounted with the correct
// mount option.
// *Action: Make sure mount tab file has read access for Oracle user and
// the NFS partition where the file resides is mounted correctly.
// For the list of mount options to use refer to your platform
// specific documentation.

反复检查zc1节点上NFS的配置,没有发现问题。后来跟piner交流,甚至按照他们的设置重新设定了NFS,仍然无效。

最后Metalink发现原来居然是Oracle 10.2.0.1之后的一个bug(Bug 5146667),目前只在AIX和Solaris平台上有此症状。解决方法是在实例级别设置10298事件。

  1. alter system set event='10298 trace name context forever, level 32'scope= spfile ;
No Tags

2 responses so far

Apr 14 2007

TAF in Oracle10gR2

Published by kamus under Oracle RDBMS

终于找到了这句话。

Metalink Note:200346.1

With Oracle Database 10g Release 2, you can now set a server side TAF policy on your service. This will override any client settings. Only BASIC method is supported with server side TAF.

参考例句:
srvctl add service -d zc -s zc1.conn -r zc1 -a zc2 -P BASIC

其中各个参数的含义如下:
-d Unique name for the database
-s Service name
-r List of preferred instances
-a List of available instances
-P TAF policy

在设置完Server端TAF以后,可以通过srvctl config命令查看设置的结果。
$ srvctl config service -d zc -a
zc1.conn PREF: zc1 AVAIL: zc2 TAF: BASIC

One response so far

Apr 12 2007

Oracle XE

Published by kamus under Oracle RDBMS

Oracle 10g Express Edition还真是挺好玩的。

非常简单的rpm形式的安装,首先copy了软件,然后接着使用了dbms_backup_restore包来恢复一个包含在安装包中的数据库。

安装完毕以后,Oracle XE提供了一个简单的数据库,用户、表、索引、物化视图、序列、触发器、包、存储过程、函数一应俱全,还可以测试exp+imp,expdp+impdp,RMAN。基本上可以想到的一个desktop级别的开发用库所需要的一切都已经包含在内了。

同时Oracle XE还包含了Application Express,可以通过很简单的几步流程做出一个Web页面的数据展示程序,我不做开发,没有深入研究了。

强烈建议没事儿的同学们下载Oracle 10g Express Edition回去玩玩。

4月21日,下周六,Oracle大学在北京会举办一次Oracle 10g XE 数据库开发和互动实验课,我和eygle,coolyl届时会到现场。

5月份,在上海,同样会有一次相同主题的技术交流,如果不出意外,biti_rainy, fenng, d.c.b.a应该会作为嘉宾到现场,各位fans可以去捧个场。

5 responses so far

Apr 11 2007

搜狐 PK 谷歌

Published by kamus under Feeling

谷歌输入法的词库门事件果然被搜狐死死抓住,谷歌也是活该,对于输入法来说词库这么重要的东西也要偷别人的,跳楼去好了。

搜狐甚至在自己的it频道推出了sogou拼音输入法词库被Google盗用的专栏,在页面上搜集了谷歌输入法盗用sogou词库的证据截图,大量的各方报道,blogger的个人评论,好不热闹。另外可以注意到搜狐全部措辞都直指Google,根本不提谷歌这两个字,可见跟Google叫板那才是上档次的事儿,谷歌?一边儿凉快去。

另外一个值得称赞的创意是在这个页面右侧的小调查里面,如果第三项调查你选择了“会”的话,提交将出现数据库错误的页面。

确实,高兴的工作是能让人产生幽默感的,可以想象搜狐和sogou拼音团队的人们这几天玩的有多high,让PK来的更猛烈些吧。

好事者比较两家公司的股票,居然真的一跌一升,貌似词库门让sohu赚翻了。

BTW:在最新的谷歌拼音词库中,zhaoliyang的首选词仍然是赵力扬,pinggong的首选词仍然是冯巩,其他的几个“lvjieyong”,“ruliyun”什么的倒是已经修改了,垃圾啊,就不能扔了人家的词库自己整一个出来?搞得修修改改半死不活的,丢脸。

5 responses so far

Page 3 of 5«12345»