亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 4587 | 回復(fù): 9
打印 上一主題 下一主題

關(guān)于esql/c問題,程序執(zhí)行連不上數(shù)據(jù)庫 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2007-12-29 23:10 |只看該作者 |倒序?yàn)g覽
大家好,

我使用 rhel 4.6 + informix 11.10【自帶sdk】 環(huán)境

環(huán)境變量
INFORMIXDIR=/home/informix
INFORMIXSERVER=jn_dbs
ONCONFIG=onconfig.jn
DBDATE=MDY4*
INFORMIXSQLHOSTS=/home/informix/etc/sqlhosts
export INFORMIXDIR INFORMIXSERVER ONCONFIG INFORMIXSQLHOSTS
INFORMIXC=gcc
INFORMIXCPP=g++
export INFORMIXC INFORMIXCPP

LD_LIBRARY_PATH=$INFORMIXDIR/libINFORMIXDIR/lib/esql
export LD_LIBRARY_PATH

數(shù)據(jù)庫設(shè)置:
sqlhost

Jn_dbs onipcshm 192.168.1.132 sqlexe
jn_dbs_tcp onsoctcp 192.168.1.132 sqlexec

onconfig.jn 部分文件如下
--rootdbs路徑、空間
  ROOTNAME rootdbs # Root dbspace name
  ROOTPATH /home/informix/dbs/rootdbs # Path for device containing root dbspace
  ROOTOFFSET 0 # Offset of root dbspace into device (Kbytes)
  ROOTSIZE 100000 # Size of root dbspace (Kbytes)
  
  --物理日志的dbs空間,先用rootdbs的20M;
  PHYSDBS rootdbs # Location (dbspace) of physical log
  PHYSFILE 20000 # Physical log file size (Kbytes)
  
  --邏輯日志用默認(rèn)的
  # Logical Log Configuration
  
  LOGFILES 6 # Number of logical log files
  LOGSIZE 2000 # Logical log size (Kbytes)
  
  --把磁帶的東西都改成/dev/null
  TAPEDEV /dev/null # Tape device path
  TAPEBLK 32 # Tape block size (Kbytes)
  TAPESIZE 10240 # Maximum amount of data to put on tape (Kbytes)
  
  # Log Archive Tape Device
  
  LTAPEDEV /dev/null # Log tape device path
  LTAPEBLK 32 # Log tape block size (Kbytes)
  LTAPESIZE 10240 # Max amount of data to put on log tape (Kbytes)
  
  --配置數(shù)據(jù)庫服務(wù)器參數(shù),根據(jù)自己機(jī)器配置的實(shí)際情況分配locks和buffers;
  # System Configuration
SERVERNUM        0                # Unique id corresponding to a OnLine instance
DBSERVERNAME                jn_dbs                # Name of default database server
DBSERVERALIASES        jn_dbs_tcp                # List of alternate dbservernames
NETTYPE         ipcshm,1,8,CPU  # Configure poll thread(s) for nettype
NETTYPE         soctcp,1,8,CPU  # Configure poll thread(s) for nettype
DEADLOCK_TIMEOUT        60        # Max time to wait of lock in distributed env.
RESIDENT        0                # Forced residency flag (Yes = 1, No = 0)


編譯沒問題

運(yùn)行時錯誤

錯誤信息:
** Insufficient host variables to store results.
** FILE: [tuxsql.ec] LINE: [84] TIME: Sat Dec 29 22:54:53 2007
** SQLCODE=[-329]
** ERRMSG:

論壇徽章:
0
2 [報告]
發(fā)表于 2007-12-29 23:17 |只看該作者

329信息

-329    Database not found or no system permission.

The database you tried to open is not visible to the database server.
Check the spelling of the name. Possibly the database is located in a
different database server (or network system), and you have omitted to
specify the server name (or site name) with the database name. If you
are sure the database should exist just as you spelled it, your next
step depends on the database server you are using.

If you are using IBM Informix SE, the visible databases are directories
with names in the form dbname.dbs. You must be able to read from and
write to them. The database server looks first in the current working
directory and then in each directory named in the DBPATH environment
variable. The most common cause of this error is an incorrect setting
or no setting for the DBPATH environment variable.

If you are using IBM Informix Dynamic Server, IBM Informix Universal Server, or
IBM Informix OnLine Dynamic Server, the database does not exist as you spelled it.
In some environments, two or more instances of the database server can run at
once and each instance has its own collection of databases. For Version 6.0
and later, the value of the INFORMIXSERVER environment variable determines the
instance of the database server that you use. For Versions 5.1x and earlier,
the ONCONFIG environment variable points to the configuration file that
determines the instance. See your database server administrator if you think
you might be using the wrong instance.

If you are connected to a secondary database server, the database you tried
to open might exist, but is not logged. Databases are required to be logged
to be able to access them on secondary database servers.

論壇徽章:
0
3 [報告]
發(fā)表于 2007-12-29 23:19 |只看該作者

數(shù)據(jù)庫權(quán)限為 DBA

數(shù)據(jù)庫權(quán)限為 DBA

相同用戶下可以dbaccess,可以操作
但是運(yùn)行程序就出現(xiàn) 329 錯誤,很是奇怪

請各位老大幫嗎

論壇徽章:
0
4 [報告]
發(fā)表于 2008-06-04 10:53 |只看該作者

回復(fù) #3 ningth 的帖子

我也遇到同樣的問題,有高手幫忙看一下嗎?

論壇徽章:
0
5 [報告]
發(fā)表于 2008-06-16 14:31 |只看該作者
看來搞Informix的高手真是不多了啊

論壇徽章:
11
金牛座
日期:2015-03-19 16:56:22數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-08-02 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-04-24 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-04-13 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-04-13 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-02-03 06:20:00數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2015-08-06 06:20:00季節(jié)之章:春
日期:2015-03-27 15:54:57羊年新春福章
日期:2015-03-27 15:54:37戌狗
日期:2015-03-19 16:56:41數(shù)據(jù)庫技術(shù)版塊每日發(fā)帖之星
日期:2016-08-18 06:20:00
6 [報告]
發(fā)表于 2008-06-16 14:33 |只看該作者

回復(fù) #5 wstar 的帖子

不懂esql,米辦法~~

論壇徽章:
0
7 [報告]
發(fā)表于 2008-06-16 23:38 |只看該作者
可能方向:
A. EXEC SQL database :dbname; or EXEC SQL connect to :dbname;沒有調(diào)用或者dbname沒給對,調(diào)試一下,判斷這個語句的sqlca.sqlcode.
B. 程序不是你說的那個用戶下運(yùn)行的,或者程序的屬主不對,應(yīng)該和informix在同一個組,并且你這個用戶應(yīng)該有要操作的數(shù)據(jù)庫的dba(操作要用,如果僅僅是連接可以沒有)和connect權(quán)限。
C. 環(huán)境變量,可能性很小。

論壇徽章:
0
8 [報告]
發(fā)表于 2008-06-18 19:21 |只看該作者

回復(fù) #4 reneyangs 的帖子

看樣子好像是TUXEDO的中間鍵環(huán)境,你先用esqldemo的程序調(diào)通了,記得TUXEDO有自己聯(lián)INFORMIX的函數(shù)庫的。

論壇徽章:
0
9 [報告]
發(fā)表于 2008-06-19 12:16 |只看該作者
樓主哪里提到用了tuxedo了,我怎么沒看見。如果是tuxedo的服務(wù),你需要自己打開數(shù)據(jù)庫,例如再tuxedo的callback函數(shù)中加入連接數(shù)據(jù)庫的語句

論壇徽章:
1
射手座
日期:2013-09-30 15:24:05
10 [報告]
發(fā)表于 2008-06-20 09:46 |只看該作者
權(quán)限的問題
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP