由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - 自己写一个Oracle的JDBC driver
相关主题
How to get all tables in a schema in Oracle 9i using its JDBC driver?讨论spring这么多,还没有说到点子上的。
J2EE入门Java GC 为什么不能自动释放jdbc connection?
想自学J2EERe: JDBC, Java vs. Javascript
求OpenShift上Spring-quickstart的mysql配置方法JDBC or SQL-C?
Re: 推荐推荐使用Clob的setString方法出现如下错误
Java能帮我做这个project吗?java数据库读取错误,请教
help!!JDBC如何获取新加入的记录的索引
你们知道jee都有什么吗?oracle help: pass array to oracle SP
相关话题的讨论汇总
话题: oracle话题: jdbc话题: driver话题: type话题: api
进入Java版参与讨论
1 (共1页)
l*****e
发帖数: 1431
1
打算自己写一个oracle的type 3 or type 4 jdbc driver, 就不要问为什么要自己写了,
原因很复杂,但是从oracle的网站上找不到API的doc, 谁能指点一下?还是Oracle的API
是不公开的
c**g
发帖数: 274
2
Not sure if I understand your question. Basically the interface for
all JDBC driver is the same, namely package java.sql and javax.sql.
The JDBC specification and java.sql/javax.sql pretty much define
everything.

【在 l*****e 的大作中提到】
: 打算自己写一个oracle的type 3 or type 4 jdbc driver, 就不要问为什么要自己写了,
: 原因很复杂,但是从oracle的网站上找不到API的doc, 谁能指点一下?还是Oracle的API
: 是不公开的

l*****e
发帖数: 1431
3
Sorry for being clear at the first place. I am trying to implement my own JDBC
driver for Oracle DBMS. It talks with Oracle CLI (as I understand what a type
4 JDBC driver should do) and provides the standard JDBC interface specified by
Sun to other Java applications.

了,

【在 c**g 的大作中提到】
: Not sure if I understand your question. Basically the interface for
: all JDBC driver is the same, namely package java.sql and javax.sql.
: The JDBC specification and java.sql/javax.sql pretty much define
: everything.

c*****s
发帖数: 214
4
虽然没有烟酒过,不过我深信你是找不到源码的。
虽然你说不要问为什么自己写,但我实在想不出有什么理由不能用oracle提供的包。何况
给任何一个数据库写个jdbc driver都不是件容易的事儿。


谁能指点一下?还是Oracle的API

【在 l*****e 的大作中提到】
: 打算自己写一个oracle的type 3 or type 4 jdbc driver, 就不要问为什么要自己写了,
: 原因很复杂,但是从oracle的网站上找不到API的doc, 谁能指点一下?还是Oracle的API
: 是不公开的

r***l
发帖数: 67
5
NIU


谁能指点一下?还是Oracle的API

【在 l*****e 的大作中提到】
: 打算自己写一个oracle的type 3 or type 4 jdbc driver, 就不要问为什么要自己写了,
: 原因很复杂,但是从oracle的网站上找不到API的doc, 谁能指点一下?还是Oracle的API
: 是不公开的

m******t
发帖数: 2416
6

JDBC
type
by
So all you need is the Oracle CLI spec, which I'd be surprised if you can't
find in Oracle documentation.
sigh, like other folks I guess I just can't help with this - you don't have to
answer - "why? why? why?!" 8-)

谁能指点一下?还是Oracle的

【在 l*****e 的大作中提到】
: Sorry for being clear at the first place. I am trying to implement my own JDBC
: driver for Oracle DBMS. It talks with Oracle CLI (as I understand what a type
: 4 JDBC driver should do) and provides the standard JDBC interface specified by
: Sun to other Java applications.
:
: 了,

l*****e
发帖数: 1431
7

specified
to
The reason is rather stupid and i feel kinda embarassed to say :) the bright
side is I don't have to implement all the JDBC API's spec'd by Sun which seems
to be a daunting task. I googled 'oracle cli api' and tried to find it on it's
website but nothing turned out. Care to shed some light on where I might be
getting the info? Thanks in advance

【在 m******t 的大作中提到】
:
: JDBC
: type
: by
: So all you need is the Oracle CLI spec, which I'd be surprised if you can't
: find in Oracle documentation.
: sigh, like other folks I guess I just can't help with this - you don't have to
: answer - "why? why? why?!" 8-)
: 写
: 谁能指点一下?还是Oracle的

m******t
发帖数: 2416
8

seems
it's
Do you have the Oracle Documentation CD (should be part of
the Oracle package)? I think it's also available at Oracle's
support site (metalink), which however requires you to register with
your product key.

【在 l*****e 的大作中提到】
:
: specified
: to
: The reason is rather stupid and i feel kinda embarassed to say :) the bright
: side is I don't have to implement all the JDBC API's spec'd by Sun which seems
: to be a daunting task. I googled 'oracle cli api' and tried to find it on it's
: website but nothing turned out. Care to shed some light on where I might be
: getting the info? Thanks in advance

v******e
发帖数: 63
9
Although I am a little rusty on the JDBC driver thing, you are even rusty than
I am from what you said. You can only write a type 2 JDBC driver by yourself.
Type 3 needs a RMI/JNDI server. Type 4 is pure java which means you need to
have contract with Oracle in order to know the detail of wire level format.
If you don't like oracle's jdbc driver, you can use BEA weblogic's JDBC
driver.

own
can't
have
seems
it's

【在 l*****e 的大作中提到】
:
: specified
: to
: The reason is rather stupid and i feel kinda embarassed to say :) the bright
: side is I don't have to implement all the JDBC API's spec'd by Sun which seems
: to be a daunting task. I googled 'oracle cli api' and tried to find it on it's
: website but nothing turned out. Care to shed some light on where I might be
: getting the info? Thanks in advance

f*****g
发帖数: 31
10

seems
it's
If Type 3, it is pretty simple. SQL*Net and OCI are both public. Go
OTN for detail documentations.
Type 4, you may need to do some reverse engineer, AFAIK.

【在 l*****e 的大作中提到】
:
: specified
: to
: The reason is rather stupid and i feel kinda embarassed to say :) the bright
: side is I don't have to implement all the JDBC API's spec'd by Sun which seems
: to be a daunting task. I googled 'oracle cli api' and tried to find it on it's
: website but nothing turned out. Care to shed some light on where I might be
: getting the info? Thanks in advance

1 (共1页)
进入Java版参与讨论
相关主题
oracle help: pass array to oracle SPRe: 推荐推荐
做J2EE程序开发市场行情如何?Java能帮我做这个project吗?
Java sucks big time!help!!
[转载] oracle能开多大的连接池?你们知道jee都有什么吗?
How to get all tables in a schema in Oracle 9i using its JDBC driver?讨论spring这么多,还没有说到点子上的。
J2EE入门Java GC 为什么不能自动释放jdbc connection?
想自学J2EERe: JDBC, Java vs. Javascript
求OpenShift上Spring-quickstart的mysql配置方法JDBC or SQL-C?
相关话题的讨论汇总
话题: oracle话题: jdbc话题: driver话题: type话题: api