在Solaris 10上安装DB2 ,如果不能create 或start instance,除了需要更改内核外(详见安装DB2前,需要修改Solaris内核参数),还需要删除文件 dbiutil 里的一段代码:
cd /opt/IBM/db2/V8.1/instance
vi dbiutil
在 dbiutil 文件中找到如下代码并删除之
> # List of kernel parameters to be checked
> KparamList="MSGMAX MSGMNB"
> # Required value for kernel parameters
> KparamValue=65535
>
> rc=${TRUE?}
> for param in ${KparamList?}; do
> /usr/bin/grep ${param?} ${TMPFILE2?} 1>/dev/null 2>/dev/null
> if [ $? -eq 0 ]; then
> pvalue=0
> pvalue=`/usr/bin/grep ${param?} ${TMPFILE2?} | /usr/bin/awk '{prin
t $1}'`
> fi
> if [ ${pvalue:-0} -lt ${KparamValue?} ]; then
> rc=${FALSE?}
> display_msg ${DB2CAT?} 30 /
> 'DBI1030E Kernel parameter %s must be set to %s./n' ${param?}
${KparamValue?}
> fi
> done
>
> if [ ${rc?} -eq ${FALSE?} ]; then
> display_msg ${DB2CAT?} 109 /
> 'DBI1109E The kernel parameters must be updated before using this
command./n'
> stop_prog 1
> fi