opatch error code 73 PrereqSession failed Invalid patch location 解决
Linux Oracle 10.2 RAC打补丁patch-8833280的时候,按照README.html文件在执行补丁适用性检查的时候,报告“PrereqSession failed: Invalid patch location”错误,详细错误信息如下: [oracle@rac1 patch]$ unzip p8833280_10204_Linux-x86.zip[oracle@rac1 patch]$ opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir ./8833280Invoking OPatch 10.2.0.4.2Oracle Interim Patch Installer version 10.2.0.4.2Copyright (c) 2007, Oracle Corporation. All rights reserved.PREREQ sessionOracle Home : /u01/app/oracle/produc
CentOS 5中改造RAC的private ip实现双网卡绑定
CentOS 5.4上安装的10G RAC,原来的心跳是单网卡的,需要修改为双网卡。原来的环境如下:eth0 192.168.2.x public ipeth1 192.168.0.x private ip增加了一块网卡,接口名为eth2,需要将eth1与新增加的eth2实现绑定,并使用原来的IP。 修改过程主要涉及到两个问题:1、实现双网卡绑定2、修改RAC Interconnect interface name实现过程如下: [@more@] 1、实现CentOS5的双网卡绑定 在每个节点上以root用户身份进入/etc/sysconfig/network-scripts/目录,修改ifcfg-eth1、ifcfg-eth2文件,然后创建ifcfg-bond0文件,各个文件内容如下:ifcfg-e
rac安装过程中 error while loading shared libraries libpthread.so.0 问题的解决
在CentOS 5上安装Oracle 10.2.0.1 RAC的cluster software的时候,在最后一步,第二个节点,执行root.sh的时候,报告error while loading shared libraries: libpthread.so.0的错误,详细错误信息如下: [root@rac2 crs]# /u01/crs/oracle/product/10.2.0/crs/root.shWARNING: directory '/u01/crs/oracle/product/10.2.0' is not owned by rootWARNING: directory '/u01/crs/oracle/product' is not owned by rootWARNING: directory '/u01/crs/oracle' is not owned by rootWARNING: directory '/u01/crs' is not owned by rootWARNING:
解决Can not allocate log问题的方法
RAC环境ORACLE其中一个节点报告大量的cannot allocate new log提示,详细信息如下: ORACLE Instance xxdb2 - Can not allocate log, archival requiredTue Dec 1 16:04:35 2009Thread 2 cannot allocate new log, sequence 7466All online logs needed archivingCurrent log# 3 seq# 7465 mem# 0: +XXDBGROUP/xxdb/onlinelog/group_3.268.6409755Current log# 3 seq# 7465 mem# 1: +XXDBGROUP/xxdb/onlinelog/group_3.269.6409755检查上面的提示,其中有一行是"All online logs needed archiving". 说明所有的redo log都需要归
ORA-01245、ORA-01547错误的解决
数据库rman restore database 之后,执行recover database的时候,报告ORA-01245错误,详细的错误信息如下: SQL> recover database until cancel;ORA-00279: change 575876 generated at 12/01/2009 08:19:49 needed for thread 1ORA-00289: suggestion :/oracle/flash_recovery_area/ORCL/archivelog/2009_12_01/o1_mf_1_2_%u_.arcORA-00280: change 575876 for thread 1 is in sequence #2Specify log: {=suggested | filename | AUTO | CANCEL}autoORA-00308: cannot open archived log'/oracle/flash_recovery_area/ORCL/archivel
linux上“rman can't open target”问题解决
在一台Linux机器上,使用rman命令出错如下: $ rman target /rman: can't open target原来导致问题的原因是这个不是oracle的rman命令 $ which rman/usr/X11R6/bin/rman检查.bash_profile中的PATH环境变量:$ cat ~/.bash_profile|grep -i pathPATH=$PATH:$HOME/binexport PATHPATH=$PATH:$ORACLE_HOME/binexport ORACLE_BASE ORACLE_HOME ORACLE_SID PATH只要修改~/.bash_profile文件,将$ORACLE_HOME/bin放到$PATH前面就可以了,修改后的~/.bash_profile的PATH环境变量为: $ cat ~/.bash_profile|grep -i pathPATH=$PATH:$HOME/binexport
ORA-30012错误的解决过程
1、故障现象:data guard切换时,原来的standby节点无法启动,报ORA-30012错误,内容为:undo tablespace '%s' does not exist or of wrong type 2、问题定位:因为是standby节点无法启动,怀疑primary节点和standby节点的undo_tablespace名称不同:a)、在primary节点上检查undo参数:SQL> show parameter undoNAME TYPE VALUE------------------------------------ ----------- ------------------------------undo_management string AUTOundo_retention integer 900undo_tablespace string UNDTBS1b)、因为备用节点无法启动,且sp
metalink上oracle数据库推荐补丁列表的document id(Oracle Recommended Patches -- Oracle Database)
metalink上的各版本database推荐补丁的document id为:756671.1文章标题为:Oracle Recommended Patches -- Oracle Database [ID 756671.1][@more@]
使用oswatcher监控rac的心跳网络
oswatcher是oracle公司的一个收集unix、linux主机的操作系统和网络运行状况的工具,常用它来监控rac的心跳网络的稳定性。oswatcher的使用方法:1、首先从metalink上下载osw,document id是:301137.12、将下载的文件osw3b.zip上传到rac两个节点的一个目录中,如 /tmp/osw3、解压osw3b.zip文件,然后解压osw3b.tar文件4、修改参数文件,配置心跳网络的参数 在osw目录中创建名称为private.net 的文件,其内容包括如下两个部分: a、两条traceroute命令:参照 Exampleprivate.net 文件,根据自己的操作系统类型,选择对应的tracerout
分析表的crontab脚本
将分析表的语句写入一个sh脚本中,然后在crontab中执行这个sh脚本,脚本内容如下:year=`date +%Y`month=`date +%m`day=`date +%d`now=$year-$month-$day export ORACLE_SID=orclsqlplus '/as sysdba' <<EOF > /dev/nullset echo off; set heading off; set pagesize 0; set linesize 1000; set numwidth 12; set termout off; set trimspool on; spool ${now}.log;exec dbms_stats.GATHER_TABLE_STATS('scott','emp',cascade=>true,force=>true);spool off;exit;EOF[@more@]
oracle 在 aix上large page特性
调整16m内存的步骤1、查看oracle用户是否有CAP_BYPASS_RAC_VMM和CAP_PROPAGATE#lsuser capabilities oracle2、如果不存在CAP_BYPASS_RAC_VMM和CAP_PROPAGATE,则修改oracle用户,授予CAP_BYPASS_RAC_VMM和CAP_PROPAGATE#chuser capabilities=CAP_BYPASS_RAC_VMM,CAP_PROPAGATE oracle3、如果是rac数据库,需要为root用户分配CAP_BYPASS_RAC_VMM和CAP_PROPAGATE,否则,当使用srvctl命令启动实例的事后不能使用大内存#chuser capabilities=CAP_BYPASS_RAC_VMM,CAP_PROPAGATE root4、调整操作系统参数#vmo -p -o v_pinshm=1#vmo -p -o maxpi
"OPatch failed with error code 73"故障一例
在执行opatch lsinventory的时候出现如下错误:Inventory load failed... OPatch cannot load inventory for the given Oracle Home. Possible causes are: Oracle Home dir. path does not exist in Central Inventory Oracle Home is a symbolic link Oracle Home inventory is corrupted LsInventorySession failed: OracleHomeInventory gets null oracleHomeInfo OPatch failed with error code 73 导致这个错误的原因是oracle home错误,解决方法很简单:1、执行attachHome.sh脚本% cd $ORACLE_HOME/oui/bin % ./attachHom
sun fire v490 [ID 983929 daemon_error] Device PS1 Failure Detected -- PS1 shutdown 问题诊断
客户的一台SUN Fire 490 报告大量如下错误:Nov 17 07:36:51 XXXX-APP0 picld[139]: [ID 983929 daemon.error] Device PS1: Failure Detected -- PS1 shutdown!Nov 17 07:36:03 XXXX-APP0 last message repeated 14 timesNov 17 07:36:33 XXXX-APP0 picld[139]: [ID 983929 daemon.error] Device PS1: Failure Detected -- PS1 shutdown!Nov 17 07:42:46 XXXX-APP0 last message repeated 14 timesNov 17 07:43:16 XXXX-APP0 picld[139]: [ID 983929 daemon.error] Device PS1: Failure Detected -- PS1 shutdown!Nov 17 07:49:29 XXXX-AP
websphere5.0记录已发布的应用的xml文件
websphere5中,在如下文件中记录已发布的应用/usr/WebSphere/AppServer/config/cells/ibm/nodes/ibm/serverindex.xml文件内容举例如下:<?xml version="1.0" encoding="UTF-8"?><serverindex:ServerIndex xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:serverindex="http://www.ibm.com/websphere/appserver/schemas/5.0/serverindex.xmi" xmi:id="ServerIndex_1" hostName="ibm"> <serverEntries xmi:id="ServerEntry_1&quo
aix 9090 端口与websphere5管理端口冲突解决
安装完was5.1之后,启动服务出错,报告sockets已经被使用解决方法如下:1、查看9090端口是否已经被使用# netstat -an|grep 9090tcp4 0 0 *.9090 *.* LISTEN2、编辑 /etc/inetd.conf,找到 wsmserver 开头的一行,注释掉3、刷新inetd服务# refresh -s inetd0513-095 The request for subsystem refresh was completed successfully.[@more@]
LogMeIn Free远程登录的时候出现“Terminal Server Display is Inactive”错误
LogMeIn Free and Pro2To solve this issue, reboot the Host computer by performing the following steps: Connect to the Host computer and click on PreferencesClick on Advanced SettingsIn the Reboot Options section, click on View Reboot OptionsSelect the type of reboot you would like to perform[@more@]
设置sqlplus环境
在tom的《Oracle 9i & 10g编程艺术:深入数据库体系结构》中,设置sqlplus环境的方法:1、创建文件login.sql,内容如下:define _editor=viset serveroutput on size 1000000set trimspool onset long 5000set linesize 100set pagesize 9999column plan_plus_exp format a80column global_name new_value gnameset termout offdefine gname=idlecolumn global_name new_value gnameselect lower(user) || '@' || substr( global_name, 1, decode( dot, 0,length(global_name), dot-1) ) global_namefrom (select global_name, instr(
设置linux/unix的shell环境
当使用bash的时候,编辑/etc/bashrc或~/.bash_profile当使用ksh的时候,编辑~/.profile增加如下语句:PS1=`hostname`@`whoami`'[$PWD]> 'export PS1stty erase ^Hstty -istrip cs8set -o vi[@more@]