45888225hui 发表于 2012-05-09 14:41

liaosnet 帮忙看看啊

$ dbaccessdemo7

DBACCESSDemonstration Database Installation Script

DB_LOCALE environment variable must be en_us.8859-1

我运行测试程序不行提示must be en_us.8859-1

$ oninit -vy
Checking group membership to determine server run mode...succeeded
Reading configuration file '/opt/informix/etc/onconfig'...succeeded
Creating /INFORMIXTMP/.infxdirs...succeeded
Checking config parameters...succeeded
Allocating and attaching to shared memory...succeeded
Creating resident pool 360752 kbytes...succeeded
Allocating 1000016 kbytes for buffer pool of 2K page size...succeeded
Allocating 160016 kbytes for buffer pool of 16K page size...succeeded
Creating infos file "/opt/informix/etc/.infos.starit"...succeeded
Linking conf file "/opt/informix/etc/.conf.starit"...succeeded
Initializing rhead structure...succeeded
Writing to infos file...succeeded
Initialization of Encryption...succeeded
Initializing ASF...succeeded
Initializing Dictionary Cache and SPL Routine Cache...succeeded
Bringing up ADM VP...succeeded
Creating VP classes...succeeded
Onlining 0 additional cpu vps...succeeded
Onlining 2 IO vps...succeeded
Forking main_loop thread...succeeded
Initializing DR structures...succeeded
Forking 1 'soctcp' listener threads...succeeded
Starting tracing...succeeded
Initializing 32 flushers...succeeded
Initializing SDS Server network connections...succeeded
Initializing log/checkpoint information...succeeded
Initializing dbspaces...succeeded
Opening primary chunks...succeeded
Opening mirror chunks...succeeded
Validating chunks...succeeded
Initialize Async Log Flusher...succeeded
Starting B-tree Scanner...succeeded
Initializing DBSPACETEMP list...succeeded
Checking database partition index...succeeded
Initializing dataskip structure...succeeded
Checking for temporary tables to drop...succeeded
Forking onmode_mon thread...succeeded
Creating periodic thread...succeeded
Starting scheduling system...succeeded
Verbose output complete: mode = 5


$ vim .bash_profile # .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
      . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH


INFORMIXDIR=/opt/informix
INFORMIXSERVER=starit
PATH=$PATH:$HOME/bin:$INFORMIXDIR/bin
export PATH INFORMIXDIR INFORMIXSERVER
#export DB_LOCALE=zh_cn.gb
#export CLIENT_LOCALE=zh_cn.gb
#export SERVER_LOCALE=zh_cn.gb
#export DBLANG=zh_cn.gb
#export DBDATE=Y4MD
这哥注释和不注释可有关系?

liaosnet 发表于 2012-05-09 14:44

dbaccessdemo7 建的库需要的DB_LOCALE 是en_US.819 也就是默认的。。。

45888225hui 发表于 2012-05-09 14:46

#export DB_LOCALE=zh_cn.gb
但是我这是注释的啊 应该没影响啊

liaosnet 发表于 2012-05-09 15:14

回复 3# 45888225hui


    unix/linux基础,你需要使之生效才行。。谢谢。。
页: [1]
查看完整版本: liaosnet 帮忙看看啊