sky's profileDBA日记PhotosBlogListsMore Tools Help
    3/27/2007

    老师真不是人干的活啊

    给同事讲10g RAC,今天是第二天, 每天2小时左右,中间休息10分钟。
    现在是脖子也僵硬了,嗓子也疼。
    难受啊。这才2天,那些老师,天天过这个日子,怎么过的啊
    小徐怎么过的?弱水又怎么过的呢?
    你们嗓子不难受啊?
    3/22/2007

    最近的两件高兴事--结果出来了

    今天计算机信息系统集成培训的合格证下来了。我考了70多人的第二,应该算是不错的成绩了。对于个人来说,虽然这个东西作用不大,但拿个好成绩,也算对得起那篇论文了。

    第二件是前几天的专家考试,我居然进了复试,实在是出乎我的意料。虽然复试表现不太好,但是有个机会机会我已经很满足了。毕竟我面对的是全省150人的竞争,考的又是我不拿手的宏观和接近营销类的题目。

    尾巴小小的翘了一下:)

    还有就是下周要给同事讲rac,到现在我还是一头雾水,抓不住重点,头疼啊

     

    按照《关于选拔吉林xx专家型专业人才的通知》(吉x司字[2007]xx号)文件规定,通过公开选拔考试程序,经省公司研究决定,现将吉林xx信息化专家型专业人才选拔结果公布如下:

    一、聘用为吉林xx信息化专家型专业人才的人员:

    长春分公司xxx、xxx、xx;吉林分公司xxx;延边州分公司xxx;省公司支撑中心xxx、xxx、xxx、xx;省公司多媒体事业部xxx;省公司系统集成中心xxx(我经理);省公司本部xx、xxx。

    二、增补为省公司级技术类专业人才的人员:

    松原分公司xxx,省公司系统集成中心xxx(我)。


     据统计,以上15人中,3人分别为长春、延边、松原信息化部门主任,1人为吉林市信息化部资深人士,省公司支撑中心4人均为部门负责人、一个是我领导、2个属于本部,3人不清楚职位。还有一个小白人,至今属于8、7、6岗中的哪个位置还不清楚,那个就是我

    不管怎么说,虽然位列增补,也算没白折腾一次。

     

    3/15/2007

    我也伤感。。。

    刚刚整理通讯录
    发现了一个已经过世的朋友的电话号码,静静的躺在那里。
    我一时居然不知如何处理。
    留着?恐怕这个号码已经停机了吧。就算没停,难道我还会再打吗?
    删除?删除了,这个人就算彻底的再我生活里消失了。以后我都不会想起他。
     
    最后,还是删除了。。。
    3/9/2007

    怀旧。。。

    看了看自己以前在blogcn的博客,80多篇文章吧,很多当初没有转过来。现在时过境迁,也没有转的必要了。
    想想03年的那段时间,真是感慨万千啊
    好像平时的工作就是出差、出差再出差,blog里的文章也经常和出差有关。
     
    明天又出差了,这是今年的第一次,大概2天吧。
    快4年了,公司的出差补助还是没什么变化。90块的住宿标准,让我去吉林市,都不知道住什么地方好。
    由奢如简易,由简入奢难。当年在通化住10块钱一位的人民旅社,也没觉得怎么样。现在恐怕给我钱我都不会去住了。
     
    人往往是这样,受苦的时候,并没觉得怎么样,反而乐在其中。事后想起来,才唏嘘不已。
    这算是老了的表现吧。
    3/6/2007

    load_ocfs: insmod failed

    [root@rac1 ocfs]# load_ocfs
    /sbin/modprobe ocfs node_name=rac1 ip_address=192.168.3.210 cs=1824 guid=FC91738
     6F59476DBA168000C297C55E3 ip_port=7000 comm_voting=1
    modprobe: Can't locate module ocfs
    load_ocfs: insmod failed
    看提示应该是找不到ocfs模块
    [root@rac1 ocfs]# find /lib -name ocfs.o
    /lib/modules/2.4.21-47.EL/kernel/drivers/addon/ocfs/ocfs.o
    /lib/modules/2.4.21-EL-ABI/ocfs/ocfs.o
    有2个ocfs.o,通过改名的方式,结果还是一样
    编辑load_ocfs,找到
    # If you must hardcode an absolute module path for testing, do it HERE.
    # MODULE=/path/to/test/module/ocfsX.o
    把第二行改成
    MODULE=/lib/modules/2.4.21-EL-ABI/ocfs/ocfs.o
    注意等号附近不能有空格,否则会报没有权限的错误。
     
    [root@rac1 ocfs]# vi /sbin/load_ocfs
    [root@rac1 ocfs]# load_ocfs
    /sbin/insmod /lib/modules/2.4.21-EL-ABI/ocfs/ocfs.o node_name=rac1 ip_address=19
     2.168.3.210 cs=1824 guid=FC917386F59476DBA168000C297C55E3 ip_port=7000 comm_vot
    i ng=1
    Warning: kernel-module version mismatch
            /lib/modules/2.4.21-EL-ABI/ocfs/ocfs.o was compiled for kernel version 2
     .4.21-27.EL
            while this kernel is version 2.4.21-47.EL
    Warning: loading /lib/modules/2.4.21-EL-ABI/ocfs/ocfs.o will taint the kernel: f
     orced load
      See http://www.tux.org/lkml/#export-tainted for information about tainted modu
     les
    Module ocfs loaded, with warnings
     
    [root@rac1 root]# lsmod
    Module                  Size  Used by    Tainted: PF
    ocfs                  299104   0  (unused)
    mousedev                5524   1  (autoclean)
    input                   5888   0  (autoclean) [mousedev]
    audit                  89944   2  (autoclean)
    usbserial              23292   0  (autoclean) (unused)
    usbcore                77600   0  (autoclean) [usbserial]
    parport_pc             18756   1  (autoclean)
    lp                      8964   0  (autoclean)
    parport                36832   1  (autoclean) [parport_pc lp]
    autofs4                16248   0  (autoclean) (unused)
    ide-cd                 33920   0  (autoclean)
    cdrom                  32416   0  (autoclean) [ide-cd]
    vmhgfs                 38924   0
    vmxnet                  8268   2
    floppy                 56624   0  (autoclean)
    sg                     36140   0  (autoclean)
    microcode               5688   0  (autoclean)
    ext3                   85864   2
    jbd                    50956   2  [ext3]
    mptscsih               40140   3
    mptbase                47028   3  [mptscsih]
    diskdumplib             4940   0  [mptscsih mptbase]
    sd_mod                 14064   6
    scsi_mod              107308   3  [sg mptscsih sd_mod]
    ocfs模块载入成功。

    创建名称为sys的表引起的一个bug。10g,9i存在

    错误代码:
    EXP-00008: ORACLE error 6550 encountered
    ORA-06550: line 1, column 19:
    PLS-00302: component 'DBMS_REFRESH_EXP_SITES' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    EXP-00083: The previous problem occurred when calling SYS.DBMS_REFRESH_EXP_SITES.schema_info_exp

    描述:任意新建用户,创建一个名字为sys的表,然后用pl/sql developer或者exp导出,都会报错。
            用sqlplus执行查询没有任何错误提示。
            删除sys名字的表后正常。
    环境:这个bug在3个环境下产生过
    1.win2003+9i,有部分开发数据。
    2.hpux+9204RAC
    3.下面的测试环境,rhas3u8+10g
    其中在1里面,出现上面的错误后,执行了几次utlrp,然后出现死锁提示,重建catalog也报同样的死锁错误。 在环境3下面,这个问题没有再现。

     


    Red Hat Enterprise Linux AS release 3 (Taroon Update 8)
    Kernel 2.4.21-47.EL on an i686
    login: oracle
    Password:
    Last login: Tue Mar  6 13:51:21 from 192.168.3.72
    [oracle@shigl oracle]$
    [oracle@shigl oracle]$
    [oracle@shigl oracle]$ uname -a
    Linux shigl 2.4.21-47.EL #1 Wed Jul 5 20:46:55 EDT 2006 i686 i686 i386 GNU/Linux
    [oracle@shigl oracle]$ sqlplus / as sysdba
    SQL*Plus: Release 10.1.0.3.0 - Production on Tue Mar 6 14:05:31 2007
    Copyright (c) 1982, 2004, Oracle.  All rights reserved.

    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> select * from v$version;
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Prod
    PL/SQL Release 10.1.0.3.0 - Production
    CORE    10.1.0.3.0      Production
    TNS for Linux: Version 10.1.0.3.0 - Production

    NLSRTL Version 10.1.0.3.0 - Production
    SQL> create user shigl identified by shigl;
    create user shigl identified by shigl
                *
    ERROR at line 1:
    ORA-01920: user name 'SHIGL' conflicts with another user or role name

    SQL> !     
    [oracle@shigl oracle]$ exp shigl/shigl file=test.dmp log=test.log
    Export: Release 10.1.0.3.0 - Production on Tue Mar 6 14:06:32 2007
    Copyright (c) 1982, 2004, Oracle.  All rights reserved.

    Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    server uses WE8ISO8859P1 character set (possible charset conversion)
    . exporting pre-schema procedural objects and actions
    EXP-00008: ORACLE error 6550 encountered
    ORA-06550: line 1, column 19:
    PLS-00302: component 'DBMS_REFRESH_EXP_SITES' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    EXP-00083: The previous problem occurred when calling SYS.DBMS_REFRESH_EXP_SITES.schema_info_exp
    EXP-00008: ORACLE error 6550 encountered
    ORA-06550: line 1, column 19:
    PLS-00302: component 'DBMS_REFRESH_EXP_LWM' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    EXP-00083: The previous problem occurred when calling SYS.DBMS_REFRESH_EXP_LWM.schema_info_exp
    EXP-00008: ORACLE error 6550 encountered
    ORA-06550: line 1, column 19:
    PLS-00302: component 'DBMS_REPCAT_RGT_EXP' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    EXP-00083: The previous problem occurred when calling SYS.DBMS_REPCAT_RGT_EXP.schema_info_exp
    EXP-00008: ORACLE error 6550 encountered
    ORA-06550: line 1, column 19:
    PLS-00302: component 'DBMS_TRANSFORM_EXIMP' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    EXP-00083: The previous problem occurred when calling SYS.DBMS_TRANSFORM_EXIMP.schema_info_exp
    EXP-00008: ORACLE error 6550 encountered
    ORA-06550: line 1, column 19:
    PLS-00302: component 'DBMS_AQ_EXP_QUEUE_TABLES' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    EXP-00083: The previous problem occurred when calling SYS.DBMS_AQ_EXP_QUEUE_TABLES.schema_info_exp
    EXP-00008: ORACLE error 6550 encountered
    ORA-06550: line 1, column 19:
    PLS-00302: component 'DBMS_SCHED_EXPORT_CALLOUTS' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    EXP-00083: The previous problem occurred when calling SYS.DBMS_SCHED_EXPORT_CALLOUTS.schema_info_exp
    EXP-00008: ORACLE error 6550 encountered
    ORA-06550: line 1, column 19:
    PLS-00302: component 'DBMS_CDC_EXPDP' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    EXP-00083: The previous problem occurred when calling SYS.DBMS_CDC_EXPDP.schema_info_exp
    EXP-00008: ORACLE error 6550 encountered
    ORA-06550: line 1, column 19:
    PLS-00302: component 'LT_EXPORT_PKG' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    EXP-00083: The previous problem occurred when calling SYS.LT_EXPORT_PKG.schema_info_exp
    EXP-00008: ORACLE error 6550 encountered
    ORA-06550: line 1, column 19:
    PLS-00302: component 'DBMS_AW_EXP' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    EXP-00083: The previous problem occurred when calling SYS.DBMS_AW_EXP.schema_info_exp
    EXP-00008: ORACLE error 6550 encountered
    ORA-06550: line 1, column 19:
    PLS-00302: component 'DBMS_RULE_EXP_RULES' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    EXP-00083: The previous problem occurred when calling SYS.DBMS_RULE_EXP_RULES.schema_info_exp
    EXP-00008: ORACLE error 6550 encountered
    ORA-06550: line 1, column 19:
    PLS-00302: component 'DBMS_REPCAT_EXP' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    EXP-00083: The previous problem occurred when calling SYS.DBMS_REPCAT_EXP.schema_info_exp
    EXP-00008: ORACLE error 6550 encountered
    ORA-06550: line 1, column 19:
    PLS-00302: component 'DBMS_LOGREP_EXP' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    EXP-00083: The previous problem occurred when calling SYS.DBMS_LOGREP_EXP.schema_info_exp
    EXP-00008: ORACLE error 6550 encountered
    ORA-06550: line 1, column 19:
    PLS-00302: component 'DBMS_CDC_EXPVDP' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    EXP-00083: The previous problem occurred when calling SYS.DBMS_CDC_EXPVDP.schema_info_exp
    . exporting foreign function library names for user SHIGL
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions for user SHIGL
    About to export SHIGL's objects ...
    . exporting database links
    . exporting sequence numbers
    . exporting cluster definitions
    . about to export SHIGL's tables via Conventional Path ...
    . . exporting table                            SYS
    EXP-00008: ORACLE error 6550 encountered
    ORA-06550: line 1, column 31:
    PLS-00302: component 'DBMS_EXPORT_EXTENSION' must be declared
    ORA-06550: line 1, column 14:
    PL/SQL: Statement ignored
    . . exporting table                           TEST
    EXP-00008: ORACLE error 1003 encountered
    ORA-01003: no statement parsed
    . exporting synonyms
    . exporting views
    . exporting stored procedures
    . exporting operators
    . exporting referential integrity constraints
    . exporting triggers
    . exporting indextypes
    . exporting bitmap, functional and extensible indexes
    . exporting posttables actions
    . exporting materialized views
    . exporting snapshot logs
    . exporting job queues
    . exporting refresh groups and children
    . exporting dimensions
    . exporting post-schema procedural objects and actions
    EXP-00008: ORACLE error 6550 encountered
    ORA-06550: line 1, column 19:
    PLS-00302: component 'DBMS_REFRESH_EXP_SITES' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    EXP-00083: The previous problem occurred when calling SYS.DBMS_REFRESH_EXP_SITES.schema_info_exp
    EXP-00008: ORACLE error 6550 encountered
    ORA-06550: line 1, column 19:
    PLS-00302: component 'DBMS_REFRESH_EXP_LWM' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    EXP-00083: The previous problem occurred when calling SYS.DBMS_REFRESH_EXP_LWM.schema_info_exp
    EXP-00008: ORACLE error 6550 encountered
    ORA-06550: line 1, column 19:
    PLS-00302: component 'DBMS_REPCAT_RGT_EXP' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    EXP-00083: The previous problem occurred when calling SYS.DBMS_REPCAT_RGT_EXP.schema_info_exp
    EXP-00008: ORACLE error 6550 encountered
    ORA-06550: line 1, column 19:
    PLS-00302: component 'DBMS_TRANSFORM_EXIMP' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    EXP-00083: The previous problem occurred when calling SYS.DBMS_TRANSFORM_EXIMP.schema_info_exp
    EXP-00008: ORACLE error 6550 encountered
    ORA-06550: line 1, column 19:
    PLS-00302: component 'DBMS_AQ_EXP_QUEUE_TABLES' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    EXP-00083: The previous problem occurred when calling SYS.DBMS_AQ_EXP_QUEUE_TABLES.schema_info_exp
    EXP-00008: ORACLE error 6550 encountered
    ORA-06550: line 1, column 19:
    PLS-00302: component 'DBMS_SCHED_EXPORT_CALLOUTS' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    EXP-00083: The previous problem occurred when calling SYS.DBMS_SCHED_EXPORT_CALLOUTS.schema_info_exp
    EXP-00008: ORACLE error 6550 encountered
    ORA-06550: line 1, column 19:
    PLS-00302: component 'DBMS_CDC_EXPDP' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    EXP-00083: The previous problem occurred when calling SYS.DBMS_CDC_EXPDP.schema_info_exp
    EXP-00008: ORACLE error 6550 encountered
    ORA-06550: line 1, column 19:
    PLS-00302: component 'LT_EXPORT_PKG' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    EXP-00083: The previous problem occurred when calling SYS.LT_EXPORT_PKG.schema_info_exp
    EXP-00008: ORACLE error 6550 encountered
    ORA-06550: line 1, column 19:
    PLS-00302: component 'DBMS_AW_EXP' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    EXP-00083: The previous problem occurred when calling SYS.DBMS_AW_EXP.schema_info_exp
    EXP-00008: ORACLE error 6550 encountered
    ORA-06550: line 1, column 19:
    PLS-00302: component 'DBMS_RULE_EXP_RULES' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    EXP-00083: The previous problem occurred when calling SYS.DBMS_RULE_EXP_RULES.schema_info_exp
    EXP-00008: ORACLE error 6550 encountered
    ORA-06550: line 1, column 19:
    PLS-00302: component 'DBMS_REPCAT_EXP' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    EXP-00083: The previous problem occurred when calling SYS.DBMS_REPCAT_EXP.schema_info_exp
    EXP-00008: ORACLE error 6550 encountered
    ORA-06550: line 1, column 19:
    PLS-00302: component 'DBMS_LOGREP_EXP' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    EXP-00083: The previous problem occurred when calling SYS.DBMS_LOGREP_EXP.schema_info_exp
    EXP-00008: ORACLE error 6550 encountered
    ORA-06550: line 1, column 19:
    PLS-00302: component 'DBMS_CDC_EXPVDP' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    EXP-00083: The previous problem occurred when calling SYS.DBMS_CDC_EXPVDP.schema_info_exp
    . exporting statistics
    Export terminated successfully with warnings.
    [oracle@shigl oracle]$ exit
    exit
    SQL> drop table sys;
    drop table sys
               *
    ERROR at line 1:
    ORA-00942: table or view does not exist

    SQL> drop table shigl.sys;
    Table dropped.
    SQL> !
    [oracle@shigl oracle]$ exp shigl/shigl file=test.dmp log=test.log
    Export: Release 10.1.0.3.0 - Production on Tue Mar 6 14:06:55 2007
    Copyright (c) 1982, 2004, Oracle.  All rights reserved.

    Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    server uses WE8ISO8859P1 character set (possible charset conversion)
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user SHIGL
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions for user SHIGL
    About to export SHIGL's objects ...
    . exporting database links
    . exporting sequence numbers
    . exporting cluster definitions
    . about to export SHIGL's tables via Conventional Path ...
    . . exporting table                           TEST          3 rows exported
    . exporting synonyms
    . exporting views
    . exporting stored procedures
    . exporting operators
    . exporting referential integrity constraints
    . exporting triggers
    . exporting indextypes
    . exporting bitmap, functional and extensible indexes
    . exporting posttables actions
    . exporting materialized views
    . exporting snapshot logs
    . exporting job queues
    . exporting refresh groups and children
    . exporting dimensions
    . exporting post-schema procedural objects and actions
    . exporting statistics
    Export terminated successfully without warnings.
    [oracle@shigl oracle]$ exit
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    3/2/2007

    unix的双机对等配置

    Oracle RAC安装的一个重要准备工作就是双机对等的配置。
    其实这个工作很简单,主要分三步。
    1.启动相应的服务,比如rlogin和rsh,rexec等。(一般我用到telent,rlogin,rsh,rexec等,已经确定的是,如果不启动rsh服务,则rcp命令不好用)
    2.配置/etc/hosts,这个是让主机通过主机名找到相应的ip
    3.配置/etc/hosts.equiv,这个是让主机确认那些主机是可以信任的。
       里面直接写可以新人的主机名就行。