免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2085 | 回复: 5
打印 上一主题 下一主题

hpux oracle dbstart 问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-05-06 18:02 |只看该作者 |倒序浏览
hpux 11.23  安装oracle 10.2.0 正常,
手动启动 oracle 正常
sqlplus '/ as sysdba'

SQL*Plus: Release 10.2.0.1.0 - Production on Wed Mar 4 10:54:07 2009

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> startup
ORACLE instance started.

Total System Global Area 2550136832 bytes
Fixed Size                  2008528 bytes
Variable Size             536873520 bytes
Database Buffers         1996488704 bytes
Redo Buffers               14766080 bytes
Database mounted.
Database opened.

$  emctl start dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0  
Copyright (c) 1996, 2005 Oracle Corporation.  All rights reserved.
http://rp5430:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 10g Database Control ....

$ isqlplusctl start
iSQL*Plus 10.2.0.1.0
Copyright (c) 2003, 2005, Oracle.  All rights reserved.
Starting iSQL*Plus ...
.........................



但是运行dbstart 时不能启动

$ dbstart
Failed to auto-start Oracle Net Listene using /ade/vikrkuma_new/oracle/bin/tnslsnr

已修改 /etc/oratab


$ cat /etc/oratab

10g:/db/oracle/product/10.2.0:Y

cd $ORACLE_HOME/dbs
$ ls
hc_o10g.dat     initdw.ora      orapwo10g
init.ora        lkO10G          spfileo10g.ora

请教大家如何解决,谢谢

论坛徽章:
0
2 [报告]
发表于 2009-05-06 20:28 |只看该作者
将/etc/oratab文件cp到/var/opt/oracle目录下试一下

论坛徽章:
0
3 [报告]
发表于 2009-05-06 23:41 |只看该作者
具体分析一下dbstart脚本的内容

论坛徽章:
0
4 [报告]
发表于 2009-05-06 23:44 |只看该作者

回复 #1 bxl1234 的帖子

呵呵,这是因为10g把listener的启动也加到dbstart脚本里了,只要修改 $ORACLE_HOME/bin/dbstart文件
设置环境变量
ORACLE_HOME_LISTNER
为你的$ORACLE_HOME的值

oracle10的dbstart不能启动! - Oracle数据库管理 - ITPUB论坛 - 澳信传媒旗下专业技术社区 (6 May 2009)

http://www.itpub.net/548298.html

http://snipurl.com/hhged

论坛徽章:
0
5 [报告]
发表于 2009-05-07 10:52 |只看该作者
请教4楼,

dbstart 如何设变量

# vi dbstart
"dbstart" 354 lines, 10415 characters
:
#
# $Id: dbstart.sh.pp 11-may-2005.18:18:07 vikrkuma Exp $
# Copyright (c) 1991, 2005, Oracle. All rights reserved.
#

###################################
#
# usage: dbstart
#
# This script is used to start ORACLE from /etc/rc(.local).
# It should ONLY be executed as part of the system boot procedure.
#
# This script will start all databases listed in the oratab file
# whose third field is a "Y".  If the third field is set to "Y" and
# there is no ORACLE_SID for an entry (the first field is a *),
# then this script will ignore that entry.
#
# This script requires that ASM ORACLE_SID's start with a +, and
# that non-ASM instance ORACLE_SID's do not start with a +.
#
# If ASM instances are to be started with this script, it cannot
# be used inside an rc*.d directory, and should be invoked from
? ORACLE_HOME_LISTNER
  if [ $VER10LIST ] ; then
    VER10INST=`sqlplus -V | grep "Release " | cut -d' ' -f3 | cut -d'.' -f1`
    case $VER10INST in
      "10")
      if [ $VER10LIST != "10" ] ; then
        $LOGMSG "Warning: Version 10 listener is required for Oracle Database 10
g"
        $LOGMSG "Version $VER10LIST for Listener is NOT supported with Database
version $VER10INST"
        $LOGMSG "Restart Oracle Net Listener using an alternate ORACLE_HOME_LIST
NER: lsnrctl start"
      fi
      ;;
      *) ;;
    esac
  fi
}

# Starts a Database Instance
startinst() {
  # Called programs use same database ID
  export ORACLE_SID

怎么改变量,谢谢

论坛徽章:
0
6 [报告]
发表于 2009-05-07 13:51 |只看该作者
怎么感觉你的dbstart有点乱呢.....
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP