sky's profileDBA日记PhotosBlogListsMore Tools Help
    10/23/2007

    XManager远程登录Red Hat Enterprise Linux ( RHEL3 )

    XManager远程登录Red Hat Enterprise Linux ( RHEL3 ) 1 打开 /etc/inittab文件,将 runlevel 变为5, 即id:5:initdefault: 如果原来就是5,则不用修改。 2 打开 /etc/X11/gdm/gdm.conf文件 找到 [xdmcp] 部分,将 Enabled 选项设为true或1。 Enable = 1 3.关闭防火墙。 4.gdm-restart
    10/18/2007

    rhel 重新配置分辨率

    vmware:一开始尝试用rhel自带的工具修改分辨率,不成功。尝试修改/etc/XFreeConfig,也不行。

    查了一堆文档,也没解决。后来发现运行一下vmware tools自带的vmware-config-tools.pl,重新配置x就可以了

    在第二块硬盘上安装了rhel3asu8.同样只能使用800×600×16位色或者1024×768×256色。用得我这个郁闷啊

    无论怎么调整都不行。后来发现原来是限制默认的集成显卡现存为1m了,根本支持不了更高的分辨率,修改后,使用redhat-config-xfree68配置就可以了。想想在vmware里使用这个命令无法提高分辨率应该也是同样的原因。

    10/11/2007

    aix上c程序的内存限制

    aix上c程序编译的时候,默认是有内存使用限制的。如果程序使用内存很大,有些程序会报类似内存不足,然后产生core dump。
    至于什么样的程序报错,什么样的程序不报错就不知道了。
    可以通过给cc编译器增加参数的方式修改内存限制,参数为 cc -.....  -q maxmem=-1
    -1表示没有限制。

    Visual Age C++ compiler reference.pdf

    今天zf问我的这个问题,让我想起来刚参加工作的时候(不记得是02年末还是03年初了),我们作为服务商,进行系统和数据库的安装;dt负责应用程序开发。
    当时就遇到了这个问题,我和齐哥在现场。分析问题时,无非系统、数据库、或者应用的问题。可是因为客户和dt现场人员关系比较好,无论我们怎么分析问题、怎么解释,客户都认为问题出在我们这里,而dt没有问题,其实dt的理由只有一条:同样的程序在其他地市的机器上运行正常,所以在这里有问题,就不会是程序的问题。。折腾了大概有1周多,也没解决问题,我甚至找同学专门写了一个大量分配内存的c程序,也运行正常。
    期间客户多次给我们老总打电话,投诉我们两个,说我们俩技术不行,让公司把我们撤回来,最后我们两个部门的经理都到了现场协调关系,但是并没有让我们撤走。
    最后还是我们帮dt找到问题的原因,加了这个参数就好了。
    虽然问题解决了,可是我们背了那么久的黑锅并没拿下来,报告写得轻描淡写,客户的上级单位(其实也是我们的上级单位)看到报告后甚至都不知道问题其实并不出在我们这里,只是觉得事情过去了,没有必要再追究而已。

    Unable to access Cluster API when upgrade to 9204 on linux Itanuim


    Please check the following:
    1)You are installing the Oracle9i patch set 9.2.0.4.0 on an Oracle Real Applications Clusters environment,then you must install the Oracle Universal Installer 2.2.0.18.0 on all nodes on
    the cluster before installing the patch set.
    2) If the Oracle Universal Installer was installed with the base release of Oracle9i, then create the following symbolic link
    % cd $ORACLE_BASE/oui/bin/linux
    % ln -s libclntsh.so.9.0 libclntsh.so
    Also check the size of the libclntsh.so.9.0 on both nodes.
    3) Check the size of the file svrm.jar. For example:
    $ORACLE_HOME/jlib
    -rw-r--r-- 1386814 Aug 4 04:05 srvm.jar
    4) Make sure you are using Oracle Universal Installer 2.2.0.18.0. from the ORACLE_HOME/oui
    directory.
    5) Make sure JRE 1.4.2 is available on your system.
    6) Check if ORACM on the clusters are running.
    7) Check if lsnodes can be executed without any problem
    When the above is correct, you can press the continue button instead of cancel, and you will able
    to patch your RAC environment without any problem.

     

    step 7,lsnodes failed in graphical mode,but successed in SecureCRT.
    both mode using the same .profile
    then check the output of command :$env
    I found that there was no "LD_LIBRARY_PATH=/u01/app/oracle/product/9.2.0/db_1/lib" in xmanager.
    try $export LD_LIBRARY_PATH=/u01/app/oracle/product/9.2.0/db_1/lib
    then upgrading successed.

    ora-444 ora-7446


    SQL> startup nomount

    pfile="/u01/app/oracle/admin/orc/scripts/init.ora";
    ORA-00444: background process "LMD0" failed while starting
    ORA-07446: sdnfy: bad value '' for parameter .


     


     进程无法读写bdump、cdump、udump、alert.log会导致这个问题asfd
    cd $ORACLE_BASE/admin/sid
    mkdir bdump cdump udump

    aix下查找硬盘型号

    lscfg -vl hdisk0

    aix-lscfg-hdisk

    lscfg命令可以看到硬盘容量368400mb,FRU、PART NUMBER等信息。据此可以准备备件。

    查看配置试用prtconf

    aix-prtconf1
    aix-prtconf2

    在Itanium平台rhel上如何升级到9208

    摘自README

    Linux Itanium

    How to install Oracle RDBMS version 9.2.0.8

    To install 9.2.0.2 and then 9.2.0.8 on Linux Itanium, do the following :
    [1]. Set the environment variable LD_ASSUME_KERNEL=2.4.19

    [2]. Download Patch 5390952 and run the supplied OUI to install Montecito JDK and JRE into the new 9.2 home

    • Unzip the patch
    • Start OUI from Patch 5390952 and install JDK into the new 9.2 home
    • Start OUI from Patch 5390952 and install JRE into the new 9.2 home
    • Download the 9.2.0.2 RDBMS CD's to local disk - the CD's should be unzipped at the same directory level and be called "Disk1", "Disk2" etc.
    • Edit <path>/Disk1/install/linux/oraparam.ini and change JRE_LOCATION to point to $ORACLE_HOME/jre/1.4.2

    [3]. Install 9.2.0.2 into the new 9.2 home by running OUI (./runInstaller) from <path>/Disk1

    [4]. At the root.sh stage, do the following before running root.sh :

    • Change directory to the ORACLE_HOME
    • Run the command "rm JRE" to remove the symbolic link
    • Run the command "ln -s $ORACLE_HOME/jre/1.4.2 JRE" to link the JRE to the Montecito JRE installed in step 2
    • Run the commands "cd $ORACLE_HOME/jre/1.4.2/bin" and then the command "ln -s java jre"

    [5]. Run root.sh

    [6]. Start OUI from the 9.2.0.8 patchset (Patch 4547809) with jreLoc option

    ./runInstaller -jreLoc $ORACLE_HOME/JRE/

    10/9/2007

    Oracle 安装:runInstaller无法启动图形界面 dbca无法启动

    Technorati 标记: , , , , , ,

    可能造成这个现象的原因之一是java版本不对。

     

    $ ./runInstaller
    $ The Java RunTime Environment was not found at ../../stage/Components/oracle.swd.jre/1.4.1.0.0/1/DataFiles/Expanded/j2sdk1.4.1/bin/java. Hence, the Oracle Universal Installer cannot be run.
    Please visit http://www.javasoft.com and install JRE version 1.3.1 or higher and try again.
    : No such file or directory

    比如在ia64平台上,用9204patchset自己带的jre就无法启动。使用了厂家提供的一个9205的javapatch就能启动图形界面。

    修改安装程序使用的jre,只需修改下面的文件就可以了。

    rac2->ls
    oraparam.ini  runInstaller  runInstaller.sh
    rac2->pwd
    /oracd/9204/Disk1/install/linux
    rac2->vi oraparam.ini

    [Oracle]
    DISTRIBUTION=TRUE
    SOURCE=../../stage/products.jar
    LICENSE_LOCATION=
    #JRE_LOCATION=../../stage/Components/oracle.swd.jre/1.4.1.0.0/1/DataFiles/Expanded/j2sdk1.4.1
    JRE_LOCATION=/u01/app/oracle/product/9.2.0/db_1/jre/1.4.2
    OUI_LOCATION=../../stage/Components/oracle.swd.oui/2.2.0.18.0/1/DataFiles/Expanded
    JRE_MEMORY_OPTIONS=" -mx200m"
    DEFAULT_HOME_LOCATION=
    DEFAULT_HOME_NAME=OUIHome
    NO_BROWSE=/net
    NLS_ENABLED=TRUE
    BOOTSTRAP=FALSE
    OUI_VERSION=2.2.0.18.0

     

    dbca等图形工具也可能因为以下错误无法启动


    $ dbca

    /u01/app/oracle/product/9.2.0/db_1/bin/dbca: line 118: 18712 Segmentation fault      $JRE_DIR/bin/jre -DORACLE_HOME=$OH -DJDBC_PROTOCOL=thin -mx64m -classpath $CLASSPATH oracle.sysman.assistants.dbca.Dbca $ARGUMENTS


    其实问题一样是由于java版本错误引起的:


    rac2->cd $ORACLE_HOME/JRE
    rac2->cd bin
    rac2->ls -l jre
    lrwxrwxrwx  1 oracle oinstall 34 Oct  8 15:28 jre -> /u01/app/oracle/jre/1.3.1/bin/java
    rac2->mv jre jre.old
    rac2->ln -s /u01/app/oracle/product/9.2.0/db_1/jre/1.4.2/bin/java ./jre
    rac2->ls -l jre*
    lrwxrwxrwx  1 oracle oinstall 53 Oct  9 10:49 jre -> /u01/app/oracle/product/9.2.0/db_1/jre/1.4.2/bin/java
    lrwxrwxrwx  1 oracle oinstall 34 Oct  8 15:28 jre.old -> /u01/app/oracle/jre/1.3.1/bin/java