jackey106 发表于 2009-02-19 20:40

isql 连接sybase数据库时提示 unixODBC - isql 等相关信息,求助大虾帮忙解决

sybase@JX-JF-SP02:~> isql -Uss -P

**********************************************
* unixODBC - isql                            *
**********************************************
* Syntax                                     *
*                                          *
*      isql DSN ]       *
*                                          *
* Options                                    *
*                                          *
* -b         batch.(no prompting etc)      *
* -dx      delimit columns with x          *
* -x0xXX   delimit columns with XX, where*
*            x is in hex, ie 0x09 is tab   *
* -w         wrap results in an HTML table   *
* -c         column names on first row.      *
*            (only used when -d)             *
* -mn      limit column display width to n *
* -v         verbose.                        *
* -lx      set locale to x               *
* --versionversion                         *
*                                          *
* Notes                                    *
*                                          *
*      isql supports redirection and piping*
*      for batch processing.               *
*                                          *
* Examples                                 *
*                                          *
*      cat My.sql | isql WebDB MyID MyPWD -w *
*                                          *
*      Each line in My.sql must contain      *
*      exactly 1 SQL command except for the*
*      last line which must be blank.      *
*                                          *
* Please visit;                              *
*                                          *
*      http://www.unixodbc.org               *
*      pharvey@codebydesign.com            *
*      nick@easysoft.com                     *                                 
**********************************************

连接数据库的时候出现以上信息,修改相关profile文件以及SYBASE.sh文件都不行,求助大虾进行帮忙,兄弟不慎感激!

ehero 发表于 2009-02-19 21:22

你这显然是环境变量的问题啊。
which isql
将$SYBASE/$SYBASE_OCS/bin放到你的path的最前头

jackey106 发表于 2009-02-19 22:08

呵呵 搞定了,谢谢
用find -name isql 查找问题,发现有个/usr/bin/isql的mysiql
于是将/usr/bin/isql 改名后 问题解决。
页: [1]
查看完整版本: isql 连接sybase数据库时提示 unixODBC - isql 等相关信息,求助大虾帮忙解决