免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123
最近访问板块 发新帖
楼主: ustcboy
打印 上一主题 下一主题

sybase11.5不知为什么不能初始建库 [复制链接]

论坛徽章:
0
21 [报告]
发表于 2008-11-25 11:03 |只看该作者
还是同样的错误

论坛徽章:
1
2017金鸡报晓
日期:2017-01-10 15:19:56
22 [报告]
发表于 2008-11-25 11:59 |只看该作者
export LANG=C
在执行一下srvbuildres试试?

论坛徽章:
0
23 [报告]
发表于 2008-11-26 01:51 |只看该作者
原帖由 chuxu 于 2008-11-25 11:59 发表
export LANG=C
在执行一下srvbuildres试试?

执行了
而且 export LD_LIBRARY_PATH=$SYBASE/lib
这个也设置了,还是同样的错误
另外AIX4.3.3好像没有truss的功能

论坛徽章:
1
2017金鸡报晓
日期:2017-01-10 15:19:56
24 [报告]
发表于 2008-11-26 08:00 |只看该作者
strace,truss用之类的命令跟踪一下,看到底是哪一个系统命令错误的

论坛徽章:
1
2017金鸡报晓
日期:2017-01-10 15:19:56
25 [报告]
发表于 2008-11-26 08:03 |只看该作者
The truss command is available in AIX starting in at version 5.1. The following shell script emulates the truss functionality in AIX 4.3.



--------------------------------------------------------------------------------


#!/bin/ksh
# Name: truss.sh
# Purpose: to make AIX trace look like the truss command
# Caveat:  Unsupported tool. Use at your own risk.

show_usage()
{
echo "Usage: $0 [-P] [-n] [-p pid] [-t tempfile][-s sleeptime | command]"
        echo "         -P           show process id's in the output"
        echo "         -n           show process names in the output"
        echo "         -p pid       trcrpt only for this pid"
echo "         -s seconds   trace for  period of time"
echo "         -t tempfile  path name to file that will be used for trace"
        echo "         command      execute this command and stop trace\c"
echo " after command is done.\n"
exit 0
}

[ "$#" = 0 ] && show_usage
set -- `getopt t:s:p:nP "$@"` || show_usage

while :; do
        case $1 in
                -s)     sleeptime=$2
                        shift 2;;
  -p) pid=$2
   shift 2;;
  -n)     EXEC="exec=on,"
   shift;;
  -P) PIDNUM="pid=on,"
   shift;;
                --)     shift
                        break;;
        esac
done

command="$*"
[ -n "$command" -a -n "$sleeptime" ] && show_usage
[ -n "$pid" ] && PID="-p $pid"

hooks="101,104,107,106,134,139,15B,130,19C,163,169,120,122,108,12E,14C,154,\
152,15F,14E,137,135,13A,19B,13E,174,175,176,177,178,179,17A,17B,17D,17E,\
17F,1A7,1A8,1A4,1A5,1A6,180,18F,195,18E,1A9,1AA,1AC,1AB,1F0,1AF,1AE,1AD"

do_trace()
{
logsize=$1;bufsize=$2;
trace -n -a -L $logsize -T $bufsize -j $hooks -do trace.out || return $?
}

do_trace 8000000 4000000 || {
echo "You do not have privilege as this uid to allocate a large trace buffer"
echo "Trying with a smaller buffer, but you may lose data"
do_trace 8000000 1000000 || {
  echo "You do not have privilege as this uid to allocate a large trace buffer"
  trcstop
  exit 1
}
}

trcon

if [ -n "$sleeptime" ]; then
sleep $sleeptime
else
$command  # run the command
fi
# do whatever you want here
trcstop
trcrpt -k 106 ${PID} -h -O ${EXEC}${PIDNUM}ids=0,timestamp=3 trace.out  # > trcrpt.out


论坛徽章:
0
26 [报告]
发表于 2008-11-26 10:02 |只看该作者
原帖由 chuxu 于 2008-11-26 08:03 发表
The truss command is available in AIX starting in at version 5.1. The following shell script emulates the truss functionality in AIX 4.3.



------------------------------------------------- ...

请问可以上QQ一块truss一把好吗?
谢谢.
# ./a
Usage: ./a [-P] [-n] [-p pid] [-t tempfile][-s sleeptime | command]
         -P           show process id's in the output
         -n           show process names in the output
         -p pid       trcrpt only for this pid
         -s seconds   trace for  period of time
         -t tempfile  path name to file that will be used for trace
         command      execute this command and stop trace after command is done.

不知道怎么用,呵呵

# ps -ef|grep sybase
  sybase  3204 13444   0 09:59:20  pts/1  0:00 -ksh
    root 14054 15508   0 10:17:52  pts/2  0:00 grep sybase
  sybase 14582  3204   0 10:17:14  pts/1  0:00 srvbuildres -r ase.rs
  sybase 14908 14582   2                  0:00 <defunct>
# ps -ef|grep sybase
  sybase  3204 13444   0 09:59:20  pts/1  0:00 -ksh
  sybase 14582  3204   0 10:17:14  pts/1  0:00 srvbuildres -r ase.rs
  sybase 14908 14582   2                  0:00 <defunct>
# ps -ef|grep sybase

[ 本帖最后由 ustcboy 于 2008-11-26 10:12 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP