由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - 请教:为什么死活连部上数据库?!
相关主题
问一下oracle高手Is that possible for Applet to access the Oracle?
怎样让oracle不要fail on errorwant help on RDBMS
每天第一次连接ORACLE的数据库都失败,SOCKET WRITE ERROR[转载] how to set up the classpath?
包子题 (1st answer 100新币)help! 怎么insert一个多行的string
请问这种MYSQL的语法在SQL Server里面改成什么格式?Is there any small free database support Java ?
Re: Web Databasehow to establish sun.jdbc.odbc.JdbcOdbcDriver
ODBC[转载] Whcich DB Software to Install?
Help on JDBC:ODBC SOS[转载] JDBC 解决方案
相关话题的讨论汇总
话题: error话题: oracle话题: 12505话题: c%
进入Database版参与讨论
1 (共1页)
w*******l
发帖数: 14
1
下面是这段程序,运行时报的错误:
Io exception: Connection
refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12505)(ERROR_STACK=(ERROR=(CO
DE=12505)(EMFI=4))))
断点跟踪,进入getConnection()语句,发现带入的参数都是空。为什么呢?是不是我设
的别的参数什么有问题:向Config library之类的,我加了
zip:///[C%|/oracle/ora92/jdbc/lib/classes111_g.jar]
zip:///[C%|/oracle/ora92/jdbc/lib/classes111.jar]
zip:///[C%|/oracle/ora92/jdbc/lib/classes12_g.jar]
zip:///[C%|/oracle/ora92/jdbc/lib/classes12.jar]
zip:///[C%|/oracle/ora92/jdbc/lib/classes12dms_g.jar]
zip:///[C%|/oracle/or
n********a
发帖数: 68
2
Your connection string seems to be missing port number 1521.
Try this as a start.
jdbc:oracle:thin:@xxx.xxx.x.xx:1521:ipoll

refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12505)(ERROR_STACK=(ERROR=(CO

好像只要class12.jar就可以了,可是如果我只加这个,去掉别的,他就说找不到oracle.
oracle.jdbc.driver.OracleDriver(););

【在 w*******l 的大作中提到】
: 下面是这段程序,运行时报的错误:
: Io exception: Connection
: refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12505)(ERROR_STACK=(ERROR=(CO
: DE=12505)(EMFI=4))))
: 断点跟踪,进入getConnection()语句,发现带入的参数都是空。为什么呢?是不是我设
: 的别的参数什么有问题:向Config library之类的,我加了
: zip:///[C%|/oracle/ora92/jdbc/lib/classes111_g.jar]
: zip:///[C%|/oracle/ora92/jdbc/lib/classes111.jar]
: zip:///[C%|/oracle/ora92/jdbc/lib/classes12_g.jar]
: zip:///[C%|/oracle/ora92/jdbc/lib/classes12.jar]

j**i
发帖数: 419
3
the return error code is 12505, right?

refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12505)(ERROR_STACK=(ERROR=(CO

好像只要class12.jar就可以了,可是如果我只加这个,去掉别的,他就说找不到oracle.

【在 n********a 的大作中提到】
: Your connection string seems to be missing port number 1521.
: Try this as a start.
: jdbc:oracle:thin:@xxx.xxx.x.xx:1521:ipoll
:
: refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12505)(ERROR_STACK=(ERROR=(CO
: 设
: 好像只要class12.jar就可以了,可是如果我只加这个,去掉别的,他就说找不到oracle.
: oracle.jdbc.driver.OracleDriver(););

w*******l
发帖数: 14
4
Sorry that I miss 1521 when I put the code here. But actually I have it in my
program.

refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12505)(ERROR_STACK=(ERROR=(CO

好像只要class12.jar就可以了,可是如果我只加这个,去掉别的,他就说找不到oracle.

【在 n********a 的大作中提到】
: Your connection string seems to be missing port number 1521.
: Try this as a start.
: jdbc:oracle:thin:@xxx.xxx.x.xx:1521:ipoll
:
: refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12505)(ERROR_STACK=(ERROR=(CO
: 设
: 好像只要class12.jar就可以了,可是如果我只加这个,去掉别的,他就说找不到oracle.
: oracle.jdbc.driver.OracleDriver(););

w*******l
发帖数: 14
5
sorry, what is the return error code?
is it the folling lines:
Io exception: Connection
refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12505)(ERROR_STACK=(ERROR=(CO
DE=12505)(EMFI=4))))

refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12505)(ERROR_STACK=(ERROR=(CO

好像只要class12.jar就可以了,可是如果我只加这个,去掉别的,他就说找不到oracle.

【在 j**i 的大作中提到】
: the return error code is 12505, right?
:
: refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12505)(ERROR_STACK=(ERROR=(CO
: 我
: 好像只要class12.jar就可以了,可是如果我只加这个,去掉别的,他就说找不到oracle.

n********a
发帖数: 68
6
Ok, then check your network settings.
1. Is your listener running?
2. It seems that you are on Oracle 9i up, thus no need
to config listener.ora. Listener will detect instances
automatically. If this is not true, check listener.ora
first.
3. Can you connect with sqlplus @ipoll?
If not, check tnsnames.ora
4. If you are using advanced features like connection
manager or name servers instead of local naming, check
up the documentation to see if you have them configured
properly.

my
refused(DESCRIP

【在 w*******l 的大作中提到】
: Sorry that I miss 1521 when I put the code here. But actually I have it in my
: program.
:
: refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12505)(ERROR_STACK=(ERROR=(CO
: 我
: 好像只要class12.jar就可以了,可是如果我只加这个,去掉别的,他就说找不到oracle.

j**i
发帖数: 419
7
I guess your are:
ORA-12505: TNS: listener could not resolve
SID given in connection description.
Though I don't know JDBC much.

refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12505)(ERROR_STACK=(ERROR=(CO

好像只要class12.jar就可以了,可是如果我只加这个,去掉别的,他就说找不到oracle.

【在 n********a 的大作中提到】
: Ok, then check your network settings.
: 1. Is your listener running?
: 2. It seems that you are on Oracle 9i up, thus no need
: to config listener.ora. Listener will detect instances
: automatically. If this is not true, check listener.ora
: first.
: 3. Can you connect with sqlplus @ipoll?
: If not, check tnsnames.ora
: 4. If you are using advanced features like connection
: manager or name servers instead of local naming, check

w*******l
发帖数: 14
8
I think the listener is running. at least I can access database using SQL+.
It seems that I have to reconfigure the JDBC setup for Oracle 9i, differenct
from oracle 8. I downloaded the new driver and set up, but still errors
occured. Faint!!
PS: here is the listener.ora. Is there some error? Thanks a LOT!!
# LISTENER.ORA Network Configuration File:
C:\oracle\ora92\network\admin\listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDR

【在 n********a 的大作中提到】
: Ok, then check your network settings.
: 1. Is your listener running?
: 2. It seems that you are on Oracle 9i up, thus no need
: to config listener.ora. Listener will detect instances
: automatically. If this is not true, check listener.ora
: first.
: 3. Can you connect with sqlplus @ipoll?
: If not, check tnsnames.ora
: 4. If you are using advanced features like connection
: manager or name servers instead of local naming, check

s*****c
发帖数: 24
9
Connecting through SQLPlus does not mean listener is definitely up. Start the
listener specifically and see whether it works.

【在 w*******l 的大作中提到】
: I think the listener is running. at least I can access database using SQL+.
: It seems that I have to reconfigure the JDBC setup for Oracle 9i, differenct
: from oracle 8. I downloaded the new driver and set up, but still errors
: occured. Faint!!
: PS: here is the listener.ora. Is there some error? Thanks a LOT!!
: # LISTENER.ORA Network Configuration File:
: C:\oracle\ora92\network\admin\listener.ora
: # Generated by Oracle configuration tools.
: LISTENER =
: (DESCRIPTION_LIST =

j**i
发帖数: 419
10
try lsnrctl start to see?

the
SQL+.
differenct

【在 s*****c 的大作中提到】
: Connecting through SQLPlus does not mean listener is definitely up. Start the
: listener specifically and see whether it works.

1 (共1页)
进入Database版参与讨论
相关主题
[转载] JDBC 解决方案请问这种MYSQL的语法在SQL Server里面改成什么格式?
How about JDBC for mysql?Re: Web Database
how to get primary key through JDBC?ODBC
ORACLE Pro*C 远程接续一问?Help on JDBC:ODBC SOS
问一下oracle高手Is that possible for Applet to access the Oracle?
怎样让oracle不要fail on errorwant help on RDBMS
每天第一次连接ORACLE的数据库都失败,SOCKET WRITE ERROR[转载] how to set up the classpath?
包子题 (1st answer 100新币)help! 怎么insert一个多行的string
相关话题的讨论汇总
话题: error话题: oracle话题: 12505话题: c%