Re: how to connect to oracle using servlet?# Java - 爪哇娇娃
G*o
1 楼
my $.02
first, are you using OCI8 or THIN?
if OCI8,
make sure your URL string looks like this:
"jdbc:oracle:oci8:@"+< database >
the '@' in the URL string is required
is optional, make sure you
use SID.DOMAIN format if under Windows NT
if thin, sth like this:
jdbc:oracle:thin:@:1521:
first, are you using OCI8 or THIN?
if OCI8,
make sure your URL string looks like this:
"jdbc:oracle:oci8:@"+< database >
the '@' in the URL string is required
use SID.DOMAIN format if under Windows NT
if thin, sth like this:
jdbc:oracle:thin:@