求助:oracle8.1.5升级到8.1.7后编译的程序竟然是multi-thread

cugege 2003-10-15 06:00:27
操作系统:UNIX
开发语言:C

问题:
我把oracle从8.1.5升级(升级时选择了migration)到8.1.7,然后我编译的程序(用到了oracle)竟然是多线程的。请问如何修复这个问题?

谢谢!
...全文
92 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
cooman 2003-10-17
  • 打赏
  • 举报
回复
We can find that oracle 8.1.7 library libclntsh.so.8.0 is a multi thread program by using the following command.

cd $ORACLE_HOME/lib
$nm libclntsh.so.8.0 |grep pthread
[24627] | 0| 0|FUNC |GLOB |0 |UNDEF |pthread_cond_destroy
[25336] | 0| 0|FUNC |GLOB |0 |UNDEF |pthread_cond_init
[22755] | 0| 0|FUNC |GLOB |0 |UNDEF |pthread_cond_signal
[22883] | 0| 0|FUNC |GLOB |0 |UNDEF |pthread_cond_timedwait
[22442] | 0| 0|FUNC |GLOB |0 |UNDEF |pthread_condattr_destroy
[22335] | 0| 0|FUNC |GLOB |0 |UNDEF |pthread_condattr_init
[14805] | 0| 0|FUNC |GLOB |0 |UNDEF |pthread_condattr_setpshared
[17400] | 0| 0|FUNC |GLOB |0 |UNDEF |pthread_mutex_destroy
[25005] | 0| 0|FUNC |GLOB |0 |UNDEF |pthread_mutex_init
[21788] | 0| 0|FUNC |GLOB |0 |UNDEF |pthread_mutex_lock
[18265] | 0| 0|FUNC |GLOB |0 |UNDEF |pthread_mutex_unlock
[19302] | 0| 0|FUNC |GLOB |0 |UNDEF |pthread_mutexattr_destroy
[24318] | 0| 0|FUNC |GLOB |0 |UNDEF |pthread_mutexattr_init
[14606] | 0| 0|FUNC |GLOB |0 |UNDEF |pthread_mutexattr_setpshared
cugege 2003-10-16
  • 打赏
  • 举报
回复
但是在原来的oracle8.1.5上编译出来的C程序不是multi-thread呀?

谁能解释一下这是为什么?怎么解决?
cugege 2003-10-16
  • 打赏
  • 举报
回复
为什么?

谢谢
Oversense 2003-10-15
  • 打赏
  • 举报
回复
就这样了,又没问题

15,440

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 非技术区
社区管理员
  • 非技术区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧