免费注册 查看新帖 |

Chinaunix

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

很菜的问题求助! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-08-03 01:19 |只看该作者 |倒序浏览
S90informix

route add default 192.192.25.167
su - informix -c /usr/informix/bin/oninit
sleep 30
su - pos -c /usr/pos/bin/startdm
su - informix -c /usr/informix/bin/oninit
su - pos -c /usr/pos/bin/startdm

#!/bin/ksh
ONCONFIG=onconfig.onrbs025
INFORMIXDIR=/usr/informix
INFORMIXSERVER=onrbs025

export ONCONFIG INFORMIXDIR INFORMIXSERVER
su informix -c /usr/informix/bin/oninit

init 2
su - informix -c /usr/informix/bin/oninit
su - pos -c /usr/pos/bin/startdm

INFORMIXDIR=/usr/informix

           INFORMIXSERVER=onrbs025

           export INFORMIXDIR INFORMIXSERVER  

           $INFORMIXDIR/bin/oninit

RC.LOG
fsstat: /dev/boot mounted
Mounted /stand filesystem
Starting power management
        power management is not configured. Please run 'mkdev pm'
Print services started.
Starting RPC services: portmap rwalld rusersd
Starting TCP services: snmpd
Scologin: mouse needs to be configured.
Starting NFS services: biod(x4)
Starting NLM services: statd lockd
warning: daemon is running as super-user
startup: listening to port 620 as root
ns_httpd on 0.0.0.0 startup: listening to port 80 as nouser
add net default: gateway 192.192.25.167
logname: could not find entry in /etc/utmp
Not a terminal
-su: /usr/informix/bin/oninit: cannot execute
logname: could not find entry in /etc/utmp
Not a terminal
  PID     TTY        TIME CMD
  443       ?    00:00:00 sh
  447       ?    00:00:00 sh
  476       ?    00:00:00 ps
  459       ?    00:00:00 backpos
  461       ?    00:00:00 backprice
  463       ?    00:00:00 dealerd
  464       ?    00:00:00 dealerd
  465       ?    00:00:00 dealerd
  466       ?    00:00:00 dealerd
  467       ?    00:00:00 dealerd
  468       ?    00:00:00 dealerd
  469       ?    00:00:00 dealerd
  470       ?    00:00:00 dealerd
  473       ?    00:00:00 tranmember
  475       ?    00:00:00 backmember
logname: could not find entry in /etc/utmp
Not a terminal
-su: /usr/informix/bin/oninit: cannot execute
logname: could not find entry in /etc/utmp
Not a terminal
  PID     TTY        TIME CMD
  482       ?    00:00:00 sh
  486       ?    00:00:00 sh
  527       ?    00:00:00 ps
  510       ?    00:00:00 backpos
  512       ?    00:00:00 backprice
  514       ?    00:00:00 dealerd
  515       ?    00:00:00 dealerd
  516       ?    00:00:00 dealerd
  517       ?    00:00:00 dealerd
  518       ?    00:00:00 dealerd
  519       ?    00:00:00 dealerd
  520       ?    00:00:00 dealerd
  521       ?    00:00:00 dealerd
  524       ?    00:00:00 tranmember
  526       ?    00:00:00 backmember
su: /usr/informix/bin/oninit: cannot execute
logname: could not find entry in /etc/utmp
Not a terminal
-su: /usr/informix/bin/oninit: cannot execute
logname: could not find entry in /etc/utmp
Not a terminal
  PID     TTY        TIME CMD
  536       ?    00:00:00 sh
  540       ?    00:00:00 sh
  581       ?    00:00:00 ps
  564       ?    00:00:00 backpos
  566       ?    00:00:00 backprice
  568       ?    00:00:00 dealerd
  569       ?    00:00:00 dealerd
  570       ?    00:00:00 dealerd
  571       ?    00:00:00 dealerd
  572       ?    00:00:00 dealerd
  573       ?    00:00:00 dealerd
  574       ?    00:00:00 dealerd
  575       ?    00:00:00 dealerd
  578       ?    00:00:00 tranmember
  580       ?    00:00:00 backmember
Starting /usr/internet/etc/ncsa_httpd ... done.
Starting scohttp ... done.
The calendar server was stopped abnormally, verifying calendar database...
Verifying completed.

请各位高手指导,我在远程操作,不能init1,所以>; /etc/utmp不了,加环境变量也不行,将其它店的utmp COPY 过来替换掉也不行!偶没招鸟。。。
诅高手指导我要如何才能将informix自起动起来?

[ 本帖最后由 No.name 于 2008-8-4 12:45 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2008-08-03 10:00 |只看该作者
export ONCONFIG INFORMIXDIR INFORMIXSERVER
su informix -c /usr/informix/bin/oninit

不用su informix 啊,root用户启动数据库就行啊

[ 本帖最后由 xxyyy 于 2008-8-4 13:45 编辑 ]

论坛徽章:
0
3 [报告]
发表于 2008-08-04 12:46 |只看该作者
s90informix里的su - informix -c /usr/informix/bin/oninit
不能启动,启动时报
su: /usr/informix/bin/oninit: cannot execute
logname: could not find entry in /etc/utmp
Not a terminal
这个错,请高手指导下怎么搞?

论坛徽章:
0
4 [报告]
发表于 2008-08-04 12:47 |只看该作者
标签改了。。偶错了。。。请高手指导下
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP