Chinaunix首页 | 论坛 | 博客
  • 博客访问: 409984
  • 博文数量: 66
  • 博客积分: 1416
  • 博客等级: 上尉
  • 技术积分: 922
  • 用 户 组: 普通用户
  • 注册时间: 2006-09-16 10:37
个人简介

高級Oracle DBA,善長Linux系統維運以及Oracle數據庫管理,開發,調優. 具有多年PL/SQL開發經驗.

文章分类

全部博文(66)

文章存档

2015年(9)

2014年(4)

2013年(5)

2010年(1)

2009年(3)

2008年(6)

2007年(30)

2006年(8)

我的朋友

分类: Oracle

2008-04-30 13:55:48


數據庫Oracle 10.2.0.3.0 用的jdk版本為1.4.2_08, 低了一點.

有一個功能不好實現, 開始計劃用C 寫好, 用JNI在java中調用.
本機測試成功, 裝入Database後呼叫失敗.
google了一下,原來是Oracle 不支持.

3.2.2 Utilizing Java Native Interface (JNI) Support

The Java Native Interface (JNI) is a standard programming interface for writing Java native methods and embedding the JVM into native applications. The primary goal of JNI is to provide binary compatibility of Java applications that use platform-specific native libraries.

Oracle Database does not support the use of JNI in Java applications. If you use JNI, then your application is not 100 percent pure Java and the native methods require porting between platforms. Native methods can cause server failure, violate security, and corrupt data.

阅读(1460) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~