oracle数据库连接不上提示以下信息? [问题点数:20分]

Bbs1
本版专家分:0
结帖率 16.67%
Bbs7
本版专家分:10698
Blank
红花 2019年8月 Oracle大版内专家分月排行榜第一
2019年7月 Oracle大版内专家分月排行榜第一
2019年6月 Oracle大版内专家分月排行榜第一
Blank
黄花 2019年5月 Oracle大版内专家分月排行榜第二
2018年1月 Oracle大版内专家分月排行榜第二
2017年10月 Oracle大版内专家分月排行榜第二
Blank
蓝花 2017年12月 Oracle大版内专家分月排行榜第三
2017年11月 Oracle大版内专家分月排行榜第三
2017年9月 Oracle大版内专家分月排行榜第三
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Oracle DBA Studio 问题数据库连接不上????????????????????????????????????????
rn安装ORACLE 8.17,装好了可以一SYSTEM/MANAGER 身份分别进入Oracle DBA Studio rn和Oracel Enterprise Manager Console 服务也都能启动,rnrn现在的问题是,我以system/manager 的身份登录到Oracle DBA Studio 选中例程下的<em>数据库</em>,在工具中点/备份管理/备份,失败(Oracle Management Server 服务已经启动,)rn报: 只有在应用程序已<em>连接</em>到Oracle Management Server (OMS)的情况下才能启动该向导,试图重新启动向导之前,请先启动该应用程序并<em>连接</em>到OMS.rnrn我又登录到Oracel Enterprise Manager Console 中点选所建<em>数据库</em>,<em>连接</em>/用rnsystem/manager 身份<em>连接</em>,结果报:ORA-01031:insufficinet privilegesrnrnrn我是以system/manager 身份登录,怎么能权限不足呢?rnrn不知有没有人遇到过,或我做错了什么,请帮忙!rnrn
【求助】本地Oracle数据库连接不上
系统报错:n<em>oracle</em>.javatools.db.DBException: java.sql.SQLRecoverableException: IO 错误: The Network Adapter could not establish the connectionn at <em>oracle</em>.jdevimpl.db.adapter.CADatabaseFactory.createConnectionImpl(CADatabaseFactory.java:66)n at <em>oracle</em>.javatools.db.DatabaseFactory.createConnection(DatabaseFactory.java:534)n at <em>oracle</em>.javatools.db.DatabaseFactory.createDatabase(DatabaseFactory.java:208)n at <em>oracle</em>.jdeveloper.db.DatabaseConnections.getDatabase(DatabaseConnections.java:607)n at <em>oracle</em>.dbtools.raptor.utils.Connections$ConnectionInfo.getDatabase(Connections.java:172)n at <em>oracle</em>.dbtools.raptor.utils.Connections.getConnection(Connections.java:1064)n at <em>oracle</em>.dbtools.raptor.utils.Connections.getConnection(Connections.java:1045)n at <em>oracle</em>.dbtools.raptor.controls.DBConnectionComboBox$ConnectionOpener.doWork(DBConnectionComboBox.java:320)n at <em>oracle</em>.dbtools.raptor.controls.DBConnectionComboBox$ConnectionOpener.doWork(DBConnectionComboBox.java:309)n at <em>oracle</em>.dbtools.raptor.backgroundTask.RaptorTask.call(RaptorTask.java:193)n at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)n at java.util.concurrent.FutureTask.run(FutureTask.java:138)n at <em>oracle</em>.dbtools.raptor.backgroundTask.RaptorTaskManager$RaptorFutureTask.run(RaptorTaskManager.java:515)n at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)n at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)n at java.util.concurrent.FutureTask.run(FutureTask.java:138)n at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)n at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)n at java.lang.Thread.run(Thread.java:662)nCaused by: java.sql.SQLRecoverableException: IO 错误: The Network Adapter could not establish the connectionn at <em>oracle</em>.jdbc.driver.T4CConnection.logon(T4CConnection.java:475)n at <em>oracle</em>.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:552)n at <em>oracle</em>.jdbc.driver.T4CConnection.(T4CConnection.java:253)n at <em>oracle</em>.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)n at <em>oracle</em>.jdbc.driver.OracleDriver.connect(OracleDriver.java:526)n at <em>oracle</em>.jdeveloper.db.adapter.AbstractConnectionCreator.getConnection(AbstractConnectionCreator.java:153)n at <em>oracle</em>.dbtools.raptor.standalone.connection.RaptorConnectionCreator.getConnection(RaptorConnectionCreator.java:195)n at <em>oracle</em>.dbtools.raptor.dialogs.conn.ConnectionPrompt.promptForPassword(ConnectionPrompt.java:67)n at <em>oracle</em>.jdeveloper.db.adapter.DatabaseProvider.getConnection(DatabaseProvider.java:321)n at <em>oracle</em>.jdeveloper.db.adapter.DatabaseProvider.getConnection(DatabaseProvider.java:254)n at <em>oracle</em>.jdevimpl.db.adapter.CADatabaseFactory.createConnectionImpl(CADatabaseFactory.java:60)n ... 18 morenCaused by: <em>oracle</em>.net.ns.NetException: The Network Adapter could not establish the connectionn at <em>oracle</em>.net.nt.ConnStrategy.execute(ConnStrategy.java:439)n at <em>oracle</em>.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:434)n at <em>oracle</em>.net.ns.NSProtocol.establishConnection(NSProtocol.java:687)n at <em>oracle</em>.net.ns.NSProtocol.connect(NSProtocol.java:247)n at <em>oracle</em>.jdbc.driver.T4CConnection.connect(T4CConnection.java:1126)n at <em>oracle</em>.jdbc.driver.T4CConnection.logon(T4CConnection.java:337)n ... 28 morenCaused by: java.net.ConnectException: Connection refused: connectn at java.net.PlainSocketImpl.socketConnect(Native Method)n at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)n at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)n at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)n at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)n at java.net.Socket.connect(Socket.java:529)n at <em>oracle</em>.net.nt.TcpNTAdapter.connect(TcpNTAdapter.java:149)n at <em>oracle</em>.net.nt.ConnOption.connect(ConnOption.java:133)n at <em>oracle</em>.net.nt.ConnStrategy.execute(ConnStrategy.java:405)n ... 33 moren求大神解答?
虚拟机中数据库连接不上的解决方案(oracle
在虚拟机中安装<em>oracle</em><em>数据库</em>,<em>数据库</em><em>连接</em>不上的的一些解决方案
ORACLE数据库连接不释放
两台IBM的服务器,都是装Linux,ORACLE<em>数据库</em>经常是<em>连接</em>不释放然后<em>连接</em>数不断增加,直到超出最大<em>连接</em>数,<em>连接</em>不上。或者在经过一段长时间(一个晚上之后)不用的时候就会<em>连接</em>不上,但是在重新启动应用程序服务器和shutdown<em>数据库</em>然后startup之后又催于正常。请高手指点、指点,<em>数据库</em>重新安装过一次,现象还是没有改变。
连接数据库连接不上
大家好,本人新手,目前在自学《C#和.NET3.0第一步》,但是学到ADO.NET编程的时候遇到了问题,特此来请教大家。rn我用的是VS2010,SQL server 2008R2,做书上的一个例子“如何<em>连接</em><em>数据库</em>”,代码都是和书上完全一样的,但就是<em>提示</em>我不能<em>连接</em>。我在网上找了很多解决方法都尝试了,但都没用,特此来请教大家该怎么搞啊,不然进行不下去了。。。。rn<em>以下</em>是相关截图,求帮助,感激不尽。。。rn[img=https://img-bbs.csdn.net/upload/201404/23/1398253940_712091.png][/img]rn[img=https://img-bbs.csdn.net/upload/201404/23/1398253963_340013.png][/img]rn[img=https://img-bbs.csdn.net/upload/201404/23/1398253979_298458.png][/img][img=https://img-bbs.csdn.net/upload/201404/23/1398253989_636399.png][/img]rn[img=https://img-bbs.csdn.net/upload/201404/23/1398254000_496926.png][/img]rn[img=https://img-bbs.csdn.net/upload/201404/23/1398254009_463467.png][/img]
数据库连接不上?怎么办?
我在配置sqlconnection时<em>连接</em>成功的rn但运行时 却说我登陆失败rn我想让我的windows applicaion在别人的电脑上运行,rn而且要能<em>连接</em>到我的<em>数据库</em>!rn
数据库连接不上
rn rn
[求助]数据库连接不上
我想用SQL Server 2000做数据源,SQL Server 2000服务器名是PC-4900744rn我用下面的<em>数据库</em><em>连接</em>字符串rn[code=VB.NET][/code]rn然后我用gridview显示期中的一个表内容时,这样子报错rn在建立与服务器的<em>连接</em>时出错。在<em>连接</em>到 SQL Server 2005 时,在默认的设置下 SQL Server 不允许进行远程<em>连接</em>可能会导致此失败。 (provider: 命名管道提供程序, error: 40 - 无法打开到 SQL Server 的<em>连接</em>) rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪<em>信息</em>,以了解有关该错误以及代码中导致错误的出处的详细<em>信息</em>。 rnrn异常详细<em>信息</em>: System.Data.SqlClient.SqlException: 在建立与服务器的<em>连接</em>时出错。在<em>连接</em>到 SQL Server 2005 时,在默认的设置下 SQL Server 不允许进行远程<em>连接</em>可能会导致此失败。 (provider: 命名管道提供程序, error: 40 - 无法打开到 SQL Server 的<em>连接</em>)rn救命呀,这个问题好久了!rn
数据库连接不上,急急。。。
我<em>连接</em><em>数据库</em>时出现了,Error while performing database login with the jtds driver:I/O Erro : SSO Failed :Native SSPI library not loaded .check the java.library.path System property,那位大侠帮忙,看看!谢谢了。。。
求助,数据库连接不上
大家帮我看一下问题rnjavax.servlet.ServletException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socketrnrn这个是<em>数据库</em>端口 1433没有建立吗?rnrnrnrn这是我测试<em>连接</em><em>数据库</em>的程序
网站数据库连接不上
网站<em>数据库</em><em>连接</em>不上 在别人的电脑上能<em>连接</em>很正常 但是我的电脑上就有问题 具体问题显示的页面如下 rnrnrn无法显示网页 rn试图访问的网页出现问题,无法显示。 rnrn--------------------------------------------------------------------------------rnrn请尝试执行下列操作:rnrn单击刷新按钮,或稍后重试。rnrn打开 localhost 主页,然后查找与所需<em>信息</em>相关的链接。 rnHTTP 错误 500.100 - 内部服务器错误 - ASP 错误rnInternet <em>信息</em>服务rnrn--------------------------------------------------------------------------------rnrn技术<em>信息</em>(用于支持人员)rnrn错误类型:rnMicrosoft OLE DB Provider for ODBC Drivers (0x80040E21)rnODBC 驱动程序不支持所需的属性。rn/teacher.asp, 第 32 行rnrnrn浏览器类型:rnMozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) rnrn网页:rnGET /teacher.asp rnrn时间:rn2009年5月30日, 下午 01:28:07 rnrnrn详细<em>信息</em>:rnMicrosoft 支持 rn rnrnrnrn请高手赐教 万分感谢rn
javaweb数据库连接不上?
Class.forName("com.mysql.jdbc.Driver"); //String url = "jdbc:mysql://47.102.XXX.XXX:3306/swu_db?characterEncoding=utf-8&amp;serverTimezone=UTC"; String url = "jdbc:mysql://localhost:3306/swu_db?chara...
急!数据库连接不上!
一台<em>数据库</em>开始工作正常,重新启动后,有如下<em>提示</em>:发生错误1069(由于登录失败而无法启动服务),此时正在MSSQLSERVER服务上执行该服务操作,该如何解决!
数据库连接不上啊
<em>连接</em><em>数据库</em>显示<em>连接</em>不上,在与SQL SERVER建立<em>连接</em>时出现与网络相关的或特定于实例的错误未找到或无法访问服务器,请验证实例名称是否正确并且SQL SERVER已配置为远程<em>连接</em>。rnrnrn而且当我在配置管理工具中打开SQL SERVER(MSSQLSERVER)时请求失败或服务器为响应,有关详细<em>信息</em>,请参见事物日志或其他适用的错误日志。rnrnrn急!!! 求大神指教啊 !!!
数据库连接不上..
本地装了SQL2000 和SQL2005rnrnData Source=local;Initial Catalog=uzone;Persist Security Info=True;User ID=sa;Password=sarnrn报错无法<em>连接</em><em>数据库</em> 还报2005的 rn我的2005是装VS2008装的附带没有完整的SQL 但是使用local好象<em>连接</em>2005 不是2000rn如何才能<em>连接</em>2000啊
求助:数据库连接不上
Public Cn As New ADODB.Connectionrnrn'打开<em>数据库</em>info.mdbrnPublic Sub OpenDataBaseCN()rn With Cnrn If .State = 1 Thenrn .Closern End Ifrn .Provider = "Microsoft.Jet.OLEDB.4.0"rn .Properties("Data Source") = App.Path & "\wd.mdb"rn .Properties("user id") = "admin"rn .Properties("Password") = "a" '加上这一项rn .Openrn End WithrnEnd Subrnrn运行时会出现<em>以下</em>错误:rnrn实时错误 '-2147217843 (80040e4d)'rn无法启动应用程序.工作组<em>信息</em>文件丢失,或是已被其它用户以独占方式打开.rn
数据库连接不上:-(
出错<em>提示</em>:rn--------------------------------------rn加载JDBC-ODBC桥驱动程序...rn错误类型:java.security.AccessControlException:access denied(java.lang.RuntimePermission accessClassInPackage.sun.jdbc.odbc)rn----------------------------------------rnrn代码:rn--------------------------------------rnimport java.awt.*;rnimport java.applet.*;rnimport java.sql.*;rnrnpublic class Applet1 extends Appletrn rn public void init()rn rn resize(400,300);rn rn rn public void paint(Graphics g)rn rn int hLine=1;rn this.setBackground(Color.lightGray);rn this.setForeground(Color.red);rn rn tryrn rn g.drawString("加载JDBC-ODBC桥驱动程序...",20,hLine*20);rn hLine++;rn Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");rn //定义JDBC的URLrn String URL="jdbc:odbc:java_study";rn g.drawString("与<em>数据库</em><em>连接</em>...",30,hLine*20);rn hLine++;rn Connection hCon=DriverManager.getConnection(URL);rn //获取一个Statement对象rn Statement hState=hCon.createStatement();rn rn tryrn rn g.drawString("创建一个myTable数据表",30,hLine*20);rn hLine++;rn hState.executeUpdate("CREATE TABLE myTable(empId varchar(10) PRIMARY KEY,name varchar(15),age numeric(3,2)");rn g.drawString("输入数据...",30,hLine*20);rn hLine++;rn hState.executeUpdate("INSERT INTO myTable(empId,name,age) VALUES('A0001','张三',50)");rn hState.executeUpdate("INSERT INTO myTable(empId,name,age) VALUES('A0001','李四',44)");rn hState.executeUpdate("INSERT INTO myTable(empId,name,age) VALUES('A0001','赵高',38)");rn hState.executeUpdate("INSERT INTO myTable(empId,name,age) VALUES('A0001','王妃',29)");rn hState.executeUpdate("INSERT INTO myTable(empId,name,age) VALUES('A0001','孙子',21)");rn rn rn catch(Exception e)rn rn g.drawString("错误类型:"+e.toString(),20,hLine*20);rn hLine++;rn rn rn tryrn rn g.drawString("查询<em>数据库</em>...",30,hLine*20);rn hLine++;rn ResultSet rs = hState.executeQuery("SELECT * FROM myTable");rn g.drawString("显示查询结果:",30,hLine*20);rn hLine++;rn g.drawString("职工号",40,hLine*20);rn g.drawString("职工名",80,hLine*20);rn g.drawString("年龄",160,hLine*20);rn hLine++;rn rn while(rs.next()) rn rn //取各个字段的值rn g.drawString(rs.getString(1),40,hLine*20);rn g.drawString(rs.getString(2),40,hLine*20);rn g.drawString(rs.getString(3),40,hLine*20);rn hLine++;rn rn rn rn catch(Exception e) rn rn g.drawString("错误类型:"+e.toString(),30,hLine*20);rn hLine++;rn rn rn g.drawString("删除<em>数据库</em>...",30,hLine*20);rn hLine++;rn rn tryrn rn hState.executeUpdate("DROP TABLE myTable");rn rn rn catch(Exception e)rn rn g.drawString("错误类型:"+e.toString(),30,hLine*20);rn rn rn //关闭<em>连接</em>rn hCon.close();rn rn rn catch(Exception e)rn rn g.drawString("错误类型:"+e.toString(),30,hLine*20);rn rn rn rnrn---------------------------
数据库连接不上!急!
<em>数据库</em><em>连接</em>文件conn.asprnrn用户身份校验页面logon.asprnrnrn
数据库连接不上解决方法
昨天感觉自己的电脑太慢了,我用360软件进行清理垃圾,优化系统,还有什么什么修复,反之就是都给它来了一遍,电脑是快了,机房进不去了      不光机房进不去,<em>数据库</em>,ODBC都<em>连接</em>不上了,这就很麻烦了,觉得是在清理电脑的时候将机房的注册表或文件之类的给删除了。当时打开机房源文件报错为“错误91对象变量或with block变量”      于是上网查询了一下,很荣幸看到了东月美
hibernate+struct+tomcat 数据库连接不上
出现问题如下rnrn2006-05-16 10:19:34,156 [HibernateUtil] 165 DEBUG Starting new database transaction in this thread.rn2006-05-16 10:20:01,781 [UserAction] 348 DEBUG 根据hql:select tUser from TUser as tUser where tUser.accounts='admin' and tUser.password='admin'查询表T_User中的记录时出错.com.work.exceptions.InfrastructureException: org.hibernate.exception.GenericJDBCException: Cannot open connectionrn2006-05-16 10:20:01,781 [UserAction] 348 DEBUG 根据hql:select tUser from TUser as tUser where tUser.accounts='admin' and tUser.password='admin'查询表T_User中的记录时出错.com.work.exceptions.InfrastructureException: org.hibernate.exception.GenericJDBCException: Cannot open connectionrn2006-05-16 10:20:01,796 [UserAction] 348 DEBUG 根据hql:select tUser from TUser as tUser where tUser.accounts='admin' and tUser.password='admin'查询表T_User中的记录时出错.com.work.exceptions.InfrastructureException: org.hibernate.exception.GenericJDBCException: Cannot open connectionrn2006-05-16 10:20:01,796 [UserAction] 348 DEBUG 根据hql:select tUser from TUser as tUser where tUser.accounts='admin' and tUser.password='admin'查询表T_User中的记录时出错.com.work.exceptions.InfrastructureException: org.hibernate.exception.GenericJDBCException: Cannot open connection
数据库连接不上 Eclipse+mysql+jsp
做jsp网站的时候遇到的问题,刚开始还可以<em>连接</em><em>数据库</em>,但不知怎么的突然就<em>连接</em>不上了。rn自己搞了半天解决不了,大侠们帮帮忙啊rnrnrnsuccess loading mysql Driver....rnsuccess loading <em>oracle</em> Driver....rndb_mysql.executeQuery:Unknown database 'old'rn[color=#FF0000]2010-8-3 16:48:59 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet jsp threw exception[/color]rnjava.lang.NullPointerExceptionrn [color=#FF0000]at org.apache.jsp.index_jsp._jspService(index_jsp.java:108)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)rn at java.lang.Thread.run(Unknown Source)rn[/color]
数据库连接不上!
在分布式程序中,测试程序第一次<em>连接</em>不上<em>数据库</em>。第二次就可以连上了。怎么回事?rn请各位帮忙
VS2010 数据库连接不上
如下图所示:rn数据源,服务器名正确,Windows/SQL 登陆都分别作了尝试 ,<em>连接</em>到一个<em>数据库</em>时根本就没有<em>数据库</em>可选,也就是选择<em>数据库</em>名下拉列框为空,这是什么原因呢?rn
DB2数据库连接不上
在执行 db2 connect to easydb user easymis using easymis 时,<em>数据库</em>一直<em>连接</em>不上,也没报错,但是日志文件不断在增大,不知道怎么回事????
自定义数据库连接不上
自定义了一个<em>数据库</em>,但是<em>连接</em>不上
oralce数据库连接不上
Oracle<em>数据库</em><em>连接</em>经常出现问题,就是事件查看器的应用程序一多,<em>数据库</em>就<em>连接</em>不上,请<em>数据库</em>管理高手帮忙解决下,谢谢!我是应届毕业生新手,现工作<em>数据库</em>管理员,所以很多不懂,请大家多多指教.
附加的数据库连接不上
我用的是sql2005附加了一个<em>数据库</em>,在vs2008下测试网站是正确的,但是用IP访问时就报告错误(开始时没有报告错误的,后来,无缘无故就有了),rn我的<em>连接</em>字符串,是自动产生的,即rn rn rnrnrn结果用IP访问时错误很奇怪rn我try了一下等到这样的结果rnSystem.Data.SqlClient.SqlException: 无法打开用户默认<em>数据库</em>。登录失败。用户 '5C7626CC091441B\ASPNET' 登录失败rnrn然后我打开<em>数据库</em>管理器,发现根本就没有报错的那个用户;于是我添加了个那个用户,仍然解决不了,最后我尝试启用sa用户,结果无法映射到我附加的<em>数据库</em>上去!对了,我电脑部管,大家可以点击一下就清楚错误了,http://172.16.100.211/IT/
数据库连接不上!急!
系统公用页面global.asarn<em>数据库</em><em>连接</em>字符串存放在Application("dsn")对象中rnApplication("dsn") = "DSN=newbookware;UID=;PWD=;"rnlogon.asp用户身份校验页面rn根据用户名和密码用户<em>信息</em>rnsql = "select name,passwd,type from usertype where name ='" & name & "'" rn set conn = server.CreateObject("adodb.connection")rn conn.Open application("dsn")rn rn set rs = server.CreateObject("adodb.recordset")rn rs.Open sql,connrn<em>数据库</em><em>连接</em>不上,请指教rn
数据库连接不上.
在用较换机的局域网中可以<em>连接</em>上的.rn但是用路由器的网中却<em>连接</em>不上了?怎么回事呢?rn我把IPX/SPX/NETBIOS的协议也都装了,而且两台电脑都能PING通的,怎么就会<em>连接</em>不上呢?谢谢
新手,程序提示以下信息
有关调用实时(JIT)调试而不是此对话框的详细<em>信息</em>,rn请参见此消息的结尾。rnrn************** 异常文本 **************rnSystem.Reflection.TargetInvocationException: 调用的目标发生了异常。 - System.IO.FileNotFoundException: 未能加载文件或程序集“CrystalDecisions.Windows.Forms, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304”或它的某一个依赖项。系统找不到指定的文件。rn文件名:“CrystalDecisions.Windows.Forms, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304”rn 在 nrcm.FrmZylr.InitializeComponent()rn 在 nrcm.FrmZylr..ctor()rnrn警告: 程序集绑定日志记录被关闭。rn要启用程序集绑定失败日志记录,请将注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD)设置为 1。rn注意: 会有一些与程序集绑定失败日志记录关联的性能损失。rn要关闭此功能,请移除注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog]。rnrn --- 内部异常堆栈跟踪的结尾 ---rn 在 System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)rn 在 System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)rn 在 System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)rn 在 System.Activator.CreateInstance(Type type, Boolean nonPublic)rn 在 System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)rn 在 System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)rn 在 System.Reflection.Assembly.CreateInstance(String typeName, Boolean ignoreCase)rn 在 nrcm.mdiFrm.OpenForm(Object sender, EventArgs e)rn 在 System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)rn 在 System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)rn 在 System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)rn 在 System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)rn 在 System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)rn 在 System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)rn 在 System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)rn 在 System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)rn 在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)rn 在 System.Windows.Forms.Control.WndProc(Message& m)rn 在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)rn 在 System.Windows.Forms.ToolStrip.WndProc(Message& m)rn 在 System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)rn 在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)rn 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)rn 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)rnrnrn************** 已加载的程序集 **************rnmscorlibrn 程序集版本: 2.0.0.0rn Win32 版本: 2.0.50727.42 (RTM.050727-4200)rn 基本代码: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dllrn----------------------------------------rnnrcmrn 程序集版本: 1.0.1.1rn Win32 版本: 1.0.1.1rn 基本代码: file:///E:/09年新程序/医院版/nrcm.exern----------------------------------------rnMicrosoft.VisualBasicrn 程序集版本: 8.0.0.0rn Win32 版本: 8.0.50727.42 (RTM.050727-4200)rn 基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dllrn----------------------------------------rnSystemrn 程序集版本: 2.0.0.0rn Win32 版本: 2.0.50727.42 (RTM.050727-4200)rn 基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dllrn----------------------------------------rnSystem.Windows.Formsrn 程序集版本: 2.0.0.0rn Win32 版本: 2.0.50727.42 (RTM.050727-4200)rn 基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dllrn----------------------------------------rnSystem.Drawingrn 程序集版本: 2.0.0.0rn Win32 版本: 2.0.50727.42 (RTM.050727-4200)rn 基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dllrn----------------------------------------rnSystem.Runtime.Remotingrn 程序集版本: 2.0.0.0rn Win32 版本: 2.0.50727.42 (RTM.050727-4200)rn 基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dllrn----------------------------------------rnControlProcessrn 程序集版本: 1.0.0.0rn Win32 版本: 1.0.0.0rn 基本代码: file:///E:/09年新程序/医院版/ControlProcess.DLLrn----------------------------------------rnsoftUpdatern 程序集版本: 1.1.1.15rn Win32 版本: 1.1.1.15rn 基本代码: file:///E:/09年新程序/医院版/softUpdate.EXErn----------------------------------------rnSystem.Xmlrn 程序集版本: 2.0.0.0rn Win32 版本: 2.0.50727.42 (RTM.050727-4200)rn 基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dllrn----------------------------------------rnSystem.Datarn 程序集版本: 2.0.0.0rn Win32 版本: 2.0.50727.42 (RTM.050727-4200)rn 基本代码: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dllrn----------------------------------------rnSystem.Configurationrn 程序集版本: 2.0.0.0rn Win32 版本: 2.0.50727.42 (RTM.050727-4200)rn 基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dllrn----------------------------------------rnmscorlib.resourcesrn 程序集版本: 2.0.0.0rn Win32 版本: 2.0.50727.42 (RTM.050727-4200)rn 基本代码: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dllrn----------------------------------------rnHardMessagern 程序集版本: 1.0.0.2rn Win32 版本: 1.0.0.1rn 基本代码: file:///E:/09年新程序/医院版/HardMessage.DLLrn----------------------------------------rnSystem.Managementrn 程序集版本: 2.0.0.0rn Win32 版本: 2.0.50727.42 (RTM.050727-4200)rn 基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dllrn----------------------------------------rncwfiosysrn 程序集版本: 1.0.2.2rn Win32 版本: 1.0.2.2rn 基本代码: file:///E:/09年新程序/医院版/cwfiosys.DLLrn----------------------------------------rncwfappDatarn 程序集版本: 1.3.0.33276rn Win32 版本: 1.3.0.14rn 基本代码: file:///E:/09年新程序/医院版/cwfappData.DLLrn----------------------------------------rnDataServicesrn 程序集版本: 1.0.0.0rn Win32 版本: 1.0.0.0rn 基本代码: file:///E:/09年新程序/医院版/DataServices.DLLrn----------------------------------------rncwfDbRemotingrn 程序集版本: 1.2.4.12rn Win32 版本: 1.2.4.12rn 基本代码: file:///E:/09年新程序/医院版/cwfDbRemoting.DLLrn----------------------------------------rnSystem.Transactionsrn 程序集版本: 2.0.0.0rn Win32 版本: 2.0.50727.42 (RTM.050727-4200)rn 基本代码: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dllrn----------------------------------------rnSystem.EnterpriseServicesrn 程序集版本: 2.0.0.0rn Win32 版本: 2.0.50727.42 (RTM.050727-4200)rn 基本代码: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dllrn----------------------------------------rnSystem.Windows.Forms.resourcesrn 程序集版本: 2.0.0.0rn Win32 版本: 2.0.50727.42 (RTM.050727-4200)rn 基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_zh-CHS_b77a5c561934e089/System.Windows.Forms.resources.dllrn----------------------------------------rnrn************** JIT 调试 **************rn要启用实时(JIT)调试,rn该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置rnjitDebugging 值。rn编译应用程序时还必须启用rn调试。rnrn例如: rnrnrn rnrnrn启用 JIT 调试后,任何无法处理的异常rn都将被发送到在此计算机上注册的 JIT 调试器,rn而不是由此对话框处理。rnrnrn请大家帮忙看看,程序发生了什么问题?
数据库连接不上???
我的操作系统是 Win 2000 Serevr版.SQL server 2000后台<em>数据库</em>.rn在Asp.net中<em>连接</em><em>数据库</em>总是失败.rn我的<em>连接</em>代码:rnusing System;rnusing System.Collections;rnusing System.ComponentModel;rnusing System.Data;rnusing System.Drawing;rnusing System.Web;rnusing System.Web.SessionState;rnusing System.Web.UI;rnusing System.Web.UI.WebControls;rnusing System.Web.UI.HtmlControls;rnusing System.Data.SqlClient; //自己加的名称空间rnrnrnnamespace WebApplication2rnrn /// rn /// WebForm1 的摘要说明。rn /// rn public class WebForm1 : System.Web.UI.Pagern rnrn private System.Data.SqlClient.SqlDataAdapter dataAdapter;rn private System.Data.SqlClient.SqlConnection conn;rn private System.Data.SqlClient.SqlCommand selectCommand;rn rn protected System.Web.UI.WebControls.Button Button1;rn protected System.Web.UI.WebControls.DataGrid DataGrid1;rn protected System.Web.UI.WebControls.HyperLink HyperLink1;rn protected System.Web.UI.WebControls.RadioButton RadioButton1;rn protected System.Web.UI.WebControls.RadioButton RadioButton2;rn protected System.Web.UI.WebControls.TextBox TextBox1;rn private System.Data.DataSet dataSet;rn rn private void Page_Load(object sender, System.EventArgs e)rn rn rnrn this.conn = new SqlConnection();rn this.dataAdapter = new SqlDataAdapter();rn this.selectCommand = new SqlCommand();rn this.dataSet = new DataSet();rn conn.ConnectionString="Initial Catalog=bank;Data Source=localhost;User ID=sa;PWD=520520;Integrated Security=false";rn conn.Open();rn selectCommand.CommandText = " select * from bank "; selectCommand.Connection = conn;rn dataAdapter.SelectCommand = selectCommand;rn HyperLink1.NavigateUrl="http://localhost/WebApplication3/WebForm1.aspx";rnrnrn rn private void Page_closed(object sender, System.EventArgs e)rn rn conn.Close();rn rn #region Web 窗体设计器生成的代码rn override protected void OnInit(EventArgs e)rn rn InitializeComponent();rn base.OnInit(e);rn rn rn private void InitializeComponent()rn rn this.Load += new System.EventHandler(this.Page_Load);rnrn rn #endregionrnrn private void Button1_Click(object sender, System.EventArgs e)rn rn dataAdapter.Fill(dataSet,"bank");rn DataGrid1.DataSource = dataSet;rn DataGrid1.DataMember = "bank";rn this.DataGrid1.DataSource = dataSet.Tables[0].DefaultView ;rn this.DataGrid1.DataBind(); rn rn rn rn rnrn private void DataGrid1_SelectedIndexChanged(object sender, System.EventArgs e)rn rn rn rnrn rnrn rnrnrnrn错误<em>提示</em>: rnrn“/WebApplication2”应用程序中的服务器错误。rn--------------------------------------------------------------------------------rnrn无效的<em>连接</em>。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪<em>信息</em>,以了解有关该错误以及代码中导致错误的出处的详细<em>信息</em>。 rnrn异常详细<em>信息</em>: System.Data.SqlClient.SqlException: 无效的<em>连接</em>。rnrn源错误: rnrnrn行 47: //conn.ConnectionString = "Initial Catalog=bank;Data Source=localhost;User ID=sa;PWD=520520;Integrated Security=false";rn行 48: conn.ConnectionString="Initial Catalog=bank;Data Source=localhost;User ID=sa;PWD=520520;Integrated Security=false";rn行 49: conn.Open();rn行 50: selectCommand.CommandText = " select * from bank "; //+str;修改的rn行 51: selectCommand.Connection = conn;rn rnrn源文件: c:\inetpub\wwwroot\webapplication2\webform1.aspx.cs 行: 49 rnrn堆栈跟踪: rnrnrn[SqlException: 无效的<em>连接</em>。]rn System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTransaction)rn System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction)rn System.Data.SqlClient.SqlConnection.Open()rn WebApplication2.WebForm1.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\webapplication2\webform1.aspx.cs:49rn System.Web.UI.Control.OnLoad(EventArgs e)rn System.Web.UI.Control.LoadRecursive()rn System.Web.UI.Page.ProcessRequestMain()rnrn rnrnrn--------------------------------------------------------------------------------rn版本<em>信息</em>: Microsoft .NET Framework 版本:1.1.4322.573; ASP.NET 版本:1.1.4322.573rnrn注:我的SQL 服务器名是rnDHY\SQL007
数据库连接不上??
!rnjava.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriverrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Unknown Source)rn at com.dy.LoginCheck.doPost(LoginCheck.java:63)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)rn at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnrnrnrnrnrn上面的是错误<em>提示</em>rn大神写,这到底是什么原因呢??弄了好久也不知道rnrn链接sql2012<em>数据库</em>代码rntryrn Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");rn con=DriverManager.getConnection(url);rn String sql="select * from users where uname=? and upass=?";rn PreparedStatement pstmt=con.prepareStatement(sql);rn pstmt.setString(1, uname); //设置用户名rn pstmt.setString(2, upass); //设置密码rn rn ResultSet rs=pstmt.executeQuery(); //执行查询rn rn if(rs.next()) //如果记录集非空rn rn System.out.println("found!");rn response.sendRedirect(request.getContextPath()+"/operation.jsp"); //转发rn rn elsern //登录失败rn request.setAttribute("info","用户名和密码错误");rn request.getRequestDispatcher("login.jsp").forward(request, response);rn rn rn rn catch(Exception e)rn rn e.printStackTrace();rn rn finallyrn rn System.out.println("ssss");rn
mssql数据库连接不上
问题描述如下:rn<em>数据库</em>用的是MSSQL2005,做了集群,有两个节点。rn客户端在运行一段时间后出出现如下错误:rn服务器无法处理请求->在建立与服务器的<em>连接</em>时出错:在<em>连接</em>到2005时,在默认的情况下不允许进行rn远程<em>连接</em>导致<em>连接</em>失败。rnrn出现一段时间后,又恢复正常。已经出现几次这样的状况了。rnrn这类错误一般在<em>数据库</em>上没有设置远程<em>连接</em>时会出现。rn但是在我本地的客户端能<em>连接</em>到<em>数据库</em>,可以排除这种情况。rnrn希望高手指点下rnrnrnrn
数据库连接不上,求解
1。odbc面板设置<em>连接</em>,测试成功。connection.open="dsn=.........."rn2.conn.open=driver=sdlserver;server=........(无法显示)rn3。其余查询,输出部分无误。(书中示例)rn4。其它非<em>连接</em><em>数据库</em>的,通浏览器均显示rn请教可能导致原因。
数据库连接不上,什么情况
rnMicrosoft OLE DB Provider for ODBC Driversrnrn ���� '80004005' rnrn[Microsoft][ODBC Microsoft Access Driver]�������� ���ܴ���ע�����ؼ��� 'Temporary (volatile) Jet DSN for process 0xb6c Thread 0xf7c DBC 0x1c46024 Jet'��rn rn/include/conn.asp���� 4 rnrnrn下面是<em>数据库</em><em>连接</em>代码!!rnrnrn我的是vps windows2003 上的iis,已经确定文件路径没问题,具体该如何排除问题
数据库连接不上~
我建了<em>数据库</em>的用户,servername 为BIT,用户名为fly在PB中设置profile后,怎么<em>连接</em>不上<em>数据库</em>,用的是ORACLE<em>数据库</em>
Firebird数据库连接不上
SQLConnection property required for this operation.rnrnrnrnprocedure TForm1.FormCreate(Sender: TObject);rnbeginrnif SQLConnection1.Connected=true thenrn SQLConnection1.Connected:=false;rn SQLConnection1.Params.Clear;rn SQLConnection1.Params.Values['user_name']:='sysdba';rn SQLConnection1.Params.values['password']:='masterkey';rn sqlConnection1.Params.Values['SQLDialect']:='3';rn SQLConnection1.Params.Values['database']:=extractfilepath(paramstr(0))+'d7\test.fdb';rn SQLConnection1.Connected:=true;rnend;
SpringBoot数据库连接不上
SpringBoot<em>连接</em><em>数据库</em><em>提示</em> Loading class com.mysql.jdbc.Driver'. This is deprecated. The new driver class iscom.mysql.cj.jdbc.Driver’. The driver is automatically registered via the SPI and manual loading of ...
数据库连接不上的问题。
我在局域网中,用sqlserver<em>连接</em>别人的机器,有些正常,为什么有些不可以,<em>提示</em>为超时已过期,但别人可以连。请专家来分析一下错误原因。rnrn
为什么数据库连接不上?
<em>数据库</em>服务器通过企业管理器或应用程序都<em>连接</em>不上。rnrn服务器使用了天网防火墙,打开了1433端口,捕获了访问请求,是允许的,系统是2003,没有启动OS提供的防火墙,用户使用的是sa,就是报告服务器不存在或访问被拒绝。
数据库连接不上的问题
<em>数据库</em>设定文件里面的processes=300,感觉应该已经够了,50人左右在用,为什么老是<em>连接</em>不上rn.NET2003+<em>oracle</em>10 rn看到网上有下面的设定,不知道是不是有关系?能不能在服务器设定呢?rnConnection Lifetime rn 0 rn 当<em>数据库</em><em>连接</em>被返回到<em>连接</em>池中时,它的创建时间将与当前时间比较,如果超过了 Connection Lifetime 规定的时间,它将被释放掉。 rnrn为 0 时将被视为最大<em>连接</em>时间。 rnrn请高手指教!
apache+mysql+php数据库连接不上
我用的系统是winXP+apache+mysql+phprn单机使用正常,当把网络连通时<em>数据库</em><em>连接</em>不上(对等网)rn请各位老师帮忙
java程序和数据库连接不上
[code=java]import java.sql.*;rnrnpublic class DeleteStu rn static Connection con;rn static PreparedStatement sql;rn static ResultSet res;rn public Connection getConnection() rn try rn Class.forName("net.sourceforge.jtds.jdbc.Driver");rn con = DriverManager.getConnection(rn "jdbc:jtds:sqlserver://localhost:1433/"rn + "db_jdbc", "sa", "");rn catch (Exception e) rn e.printStackTrace();rn rn return con;rn rn public static void main(String[] args) rn DeleteStu c = new DeleteStu();rn con = c.getConnection();rn try rn sql = con.prepareStatement("delete from tb_stu where birthday < ?");rn sql.setString(1, "2000-09-01");rn sql.executeUpdate();rn System.out.println("数据删除完毕");rn catch (SQLException e) rn // TODO 自动生成 catch 块rn e.printStackTrace();rn rn rn rnrn[/code]rnrnrnrnrnrn这是错误<em>提示</em>rn[code=java]java.sql.SQLException: Network error IOException: Connection refused: connectrn at net.sourceforge.jtds.jdbc.ConnectionJDBC2.(ConnectionJDBC2.java:385)rn at net.sourceforge.jtds.jdbc.ConnectionJDBC3.(ConnectionJDBC3.java:50)rn at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:182)rn at java.sql.DriverManager.getConnection(Unknown Source)rn at java.sql.DriverManager.getConnection(Unknown Source)rn at DeleteStu.getConnection(DeleteStu.java:10)rn at DeleteStu.main(DeleteStu.java:20)rnCaused by: java.net.ConnectException: Connection refused: connectrn at java.net.DualStackPlainSocketImpl.connect0(Native Method)rn at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)rn at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)rn at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)rn at java.net.AbstractPlainSocketImpl.connect(Unknown Source)rn at java.net.PlainSocketImpl.connect(Unknown Source)rn at java.net.SocksSocketImpl.connect(Unknown Source)rn at java.net.Socket.connect(Unknown Source)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at net.sourceforge.jtds.jdbc.SharedSocket.createSocketForJDBC3(SharedSocket.java:304)rn at net.sourceforge.jtds.jdbc.SharedSocket.(SharedSocket.java:255)rn at net.sourceforge.jtds.jdbc.ConnectionJDBC2.(ConnectionJDBC2.java:310)rn ... 6 morernException in thread "main" java.lang.NullPointerExceptionrn at DeleteStu.main(DeleteStu.java:22)rn[/code]rnrnrn我用的是Microsoft SQL Server2008<em>数据库</em>rn项目的libs里也有jtds-1.2.2.jarrn求大神 为什么<em>连接</em>不上
VS2012数据库连接不上。。。。
我用的vs2012...sql2012...[img=http://img.my.csdn.net/uploads/201212/28/1356709435_7787.jpg][/img]rn这个错误该怎么解决。。。[img=http://img.my.csdn.net/uploads/201212/28/1356709589_5864.jpg][/img]
服务器数据库连接不上
服务器上面所有网站access的<em>数据库</em>全都连不上,怎么回事?rn清理过日志、删过winnt/temp目录,其他德都没有动过。sql<em>数据库</em>都好好的
数据库连接不上?!
用PHP怎么都<em>连接</em>不上,然后试了试命令行,一样的结果rnPS C:\Users\Administrator> sqlcmd -S\SQLEXPRESrn----------------------------------------------------------------------------rnHResult 0xFFFFFFFF,级别 16,状态 1rnSQL 网络接口: 定位指定的 Server/Instance 时出错 [xFFFFFFFF].rnSqlcmd: 错误: Microsoft SQL Native Client : 建立到服务器的连rn 不允许远程<em>连接</em>这个事实可能会导致失败。。rnSqlcmd: 错误: Microsoft SQL Native Client : 登录超时已过期。rn----------------------------------------------------------------------------rnrn问题是我已经把远程<em>连接</em>设置成了同时使用TCP/IP和named pipes了!!!!!
水晶报表和数据库连接不上
在Page_Load方法中调用下面的函数:rnrnprivate void BindReport()rnrn  string strProvider = "Server=(local);DataBase=pubs;UID=sa;PWD=";rn  CrystalReport1 oCR = new CrystalReport1();rn  Dataset1 ds = new Dataset1();rn  SqlConnection MyConn = new SqlConnection(strProvider);rn  MyConn.Open();rn  string strSel = "Select * from Stores";rn  SqlDataAdapter MyAdapter = new SqlDataAdapter(strSel,MyConn);rn  MyAdapter.Fill(ds,"stores");rn  oCR.SetDataSource(ds);rn  this.CrystalReportViewer1.ReportSource = oCR;rn rnrn执行后出现<em>提示</em>:sql不存在或访问被拒绝,可是sql工作很正常啊.
数据库连接不上!Help!!!
rnDim gRecordset As ADODB.RecordsetrnrngConnect.Open "Provider=SQLOLEDB.1;Persist Security Info=False;Initial Catalog=" + "监控中心" + ";Data Source=" + ServerIP, "SA"rnrn如果ServerIP是局域网内的计算机名就能<em>连接</em>,但改成对应的IP地址却连不上,为什么?rn怎么确决。rn
DB2 数据库连接不上
我有两台主机,其中一个只装了DB2<em>数据库</em>,做服务器用的,现在我把数据全导进去,发现<em>数据库</em>连不上了,老是给我报超时。rncom.ibm.db2.jcc.a.DisconnectException: java.net.ConnectException : Error opening socket to server /10.145.42.110 on port 50000 with message : Connection timed out: connect DB2ConnectionCorrelator: nullrnrn后来我写了一个类测试下,还是不行,请高手指点下,谢了。rn[code=Java]rnpackage dbConnection;rnrnimport java.sql.Connection;rnimport java.sql.DriverManager;rnrnpublic class Test rn public String url = "jdbc:db2://10.145.42.110:50000/DMS";rn public String driver = "com.ibm.db2.jcc.DB2Driver";rn public String userName = "db2admin";rn public String password = "db2admin";rn Connection conn = null;rn public Test() rn try rn Class.forName(driver);rn conn = DriverManager.getConnection(url, userName, password);rn System.out.println("success");rn catch (Exception e) rn e.printStackTrace();rn rn rn public static void main(String[] args) rn new Test();rn rnrnrn[/code]rn
mysql数据库连接不上?
private String sDBDriver = "org.gjt.mm.mysql.Driverrnprivate String sConnStr = "jdbc:mysql://localhost:3306/mytest?user=root&password=system";rnClass.forName(sDBDriver);rnconn=DriverManager.getConnection(sConnStr);rnrn<em>提示</em>错误:rnjava.lang.NullPointerExceptionrn at newsgroup.MysqlConnect.main(MysqlConnect.java:146)rnDBConnect():Communication failure during handshake. Is there a server running on localhost:3306?rnException in thread "main" rnrn我用mysql的客户端<em>连接</em>数据正常。rn但是查一下,3306的端口绑定的IP是0.0.0.0,这是为什么,如何解决?rnrn
求救:使用ASP.NET链接数据库连接不上,发现以下异常
ServerVersion = “con.ServerVersion”引发了“System.InvalidOperationException”类型的异常rnrn string conStr = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=supmar.mdb"; //<em>数据库</em>的链接rnrn OleDbConnection con = new OleDbConnection(conStr);rn OleDbCommand com = new OleDbCommand();rn com.CommandText = "insert into sales(Serial,商品编号,商品名称,单价,会员价) select (Serial,商品编 号,商品名称,单价,会员价)from goods where 商品编号='3011ea929200fe0000000001'";rn com.Connection = con;rnrnrnrn向各位大侠求救。。。
XP Oracle8 数据库连接不上!!
在Server系统下VC用 ODBC "Microsoft ODBC for Oracle"驱动<em>连接</em>Oracle8是可以<em>连接</em>上的正常处理数据的。为什么换到XP系统下就不行了呢。<em>数据库</em><em>连接</em>不上报错。rnrn求解急急急!!!快来憾卫!!!!
sql server数据库连接不上
Connection conn = null;rn tryrn rn Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();rn conn=DriverManager.getConnection("jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=StarBarDB;user=sa;password="); rn rn return conn;rn rn catch(Exception ex)rn rn System.out.println("<em>连接</em>失败或驱动有问题!");rn return null;rn rn当我用这段代码<em>连接</em><em>数据库</em>时,总是抛出异常,驱动已经添加了,求大神指导!!!
为什么我的数据库连接不上?
老是显示的错误是ADODB.RECORDSET错误rn都在<em>数据库</em>驱动的那一行出的错误rn想不通,另外一个<em>数据库</em>驱动是一样的但是也没错误rn为什么这个会这样呢?
数据库连接不上,如何解决??
我写的程序中用的是SQL Server 2005 Express版本,有时数据量大,处理时没有响应,影起再次运行软件时,<em>连接</em>不上<em>数据库</em>了。发生这种问题不知是我的<em>数据库</em>坏了,还是SQL2005实例的系统<em>数据库</em>坏了,有什么解决方法没有,针对两 种<em>数据库</em>损坏了情况。
SQL2005数据库连接不上的问题
标题: <em>连接</em>到服务器rn------------------------------rnrn无法<em>连接</em>到 HXKDSQL。rnrn------------------------------rn其他<em>信息</em>:rnrn在建立与服务器的<em>连接</em>时出错。在<em>连接</em>到 SQL Server 2005 时,在默认的设置下 SQL Server 不允许进行远程<em>连接</em>可能会导致此失败。 (provider: 命名管道提供程序, error: 40 - 无法打开到 SQL Server 的<em>连接</em>) (Microsoft SQL Server,错误: 2)rnrn有关帮助<em>信息</em>,请单击: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=2&LinkId=20476rnrn------------------------------rn按钮:rnrn确定rn------------------------------rn
数据库连接不上,一直报错
各位哥哥姐姐,能帮我一下吗?我java<em>数据库</em><em>连接</em>不上。n我的是mysql 5.0 java 4.2n<em>数据库</em>是5.1.36n 网上说把jar包放在lib,我不知道放哪里?n 希望各位能指教一下我新手。谢谢·急!!npackage denglu;nnimport gongyong.DaoConn;nimport gongyong.SaveUserInfo;nnimport java.awt.BorderLayout;nimport java.awt.event.ActionEvent;nimport java.awt.event.ActionListener;nimport java.awt.event.MouseAdapter;nimport java.awt.event.MouseEvent;nnimport javax.swing.JButton;nimport javax.swing.JFrame;nimport javax.swing.JLabel;nimport javax.swing.JPanel;nimport javax.swing.JPasswordField;nimport javax.swing.JTextField;nnimport com.mysql.jdbc.Connection;nimport com.mysql.jdbc.ResultSet;nimport com.mysql.jdbc.Statement;nnpublic class loginchuankou extends JFramen public DaoConn daoconn=new DaoConn();nn n private JButton guanbi=new JButton("退出");n private JButton Queding=new JButton("登录");n n private JPasswordField mimakuang=new JPasswordField(20);n private JTextField yonghumingkuang=new JTextField(20);n n private JLabel yonghubiaoqian=new JLabel();n n private JLabel mimabiaoqian=new JLabel();nn n n public loginchuankou()n setTitle("系统登录");n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);n n n n n setBounds(200,200,300,180);n // setResizable(false);n JPanel dengluchuan=new JPanel();n getContentPane().add(dengluchuan,BorderLayout.CENTER);n setVisible(true);n n n n n yonghubiaoqian.setText("用户名");n dengluchuan.add(yonghubiaoqian);n n dengluchuan.add(yonghumingkuang);n n n dengluchuan.add(Queding);n n mimabiaoqian.setText("密码");n dengluchuan.add(mimabiaoqian);n n dengluchuan.add(yonghumingkuang);n n dengluchuan.add(mimakuang);n n dengluchuan.add(guanbi);n //键盘n guanbi.addMouseListener(new MouseAdapter()nn public void mouseClicked(final MouseEvent e)n System.exit(0);n nn );n n Queding.addActionListener(new ActionListener() n public void actionPerformed(final ActionEvent evt) n Queding(evt); n n );nn /////n nnnnn protected void Queding(ActionEvent evt) n Connection conn = null; //????n Statement st = null; n ResultSet rs = null; n try n conn =(Connection) daoconn.getConn(); n st = (Statement) conn.createStatement(); n n String user=yonghumingkuang.getText().trim();n String pw=new String(mimakuang.getPassword()).trim();n n String sql=" select * from user where username='"+ user + "' and password= '"+ pw + "' ";n n rs=(ResultSet) st.executeQuery(sql);n n if(rs.next() && rs.getString("username")!=null)n SaveUserInfo.setuserName(user);n SaveUserInfo.setpassword(pw);n System.out.print("成功");n elsen System.out.print("失败");n n catch (Exception e) n n e.printStackTrace();n finallyn n n //Quedingnn//gouzaonn报错如下:njava.lang.ClassNotFoundException: com.mysql.jdbc.Driven at java.net.URLClassLoader$1.run(URLClassLoader.java:366)n at java.net.URLClassLoader$1.run(URLClassLoader.java:355)n at java.security.AccessController.doPrivileged(Native Method)n at java.net.URLClassLoader.findClass(URLClassLoader.java:354)n at java.lang.ClassLoader.loadClass(ClassLoader.java:425)n at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)n at java.lang.ClassLoader.loadClass(ClassLoader.java:358)n at java.lang.Class.forName0(Native Method)n at java.lang.Class.forName(Class.java:195)n at gongyong.DaoConn.getConn(DaoConn.java:8)n at denglu.loginchuankou.Queding(loginchuankou.java:105)n at denglu.loginchuankou$2.actionPerformed(loginchuankou.java:89)n at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)n at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)n at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)n at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)n at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)n at java.awt.Component.processMouseEvent(Component.java:6516)n at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)n at java.awt.Component.processEvent(Component.java:6281)n at java.awt.Container.processEvent(Container.java:2229)n at java.awt.Component.dispatchEventImpl(Component.java:4872)n at java.awt.Container.dispatchEventImpl(Container.java:2287)n at java.awt.Component.dispatchEvent(Component.java:4698)n at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)n at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)n at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)n at java.awt.Container.dispatchEventImpl(Container.java:2273)n at java.awt.Window.dispatchEventImpl(Window.java:2719)n at java.awt.Component.dispatchEvent(Component.java:4698)n at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:747)n at java.awt.EventQueue.access$300(EventQueue.java:103)n at java.awt.EventQueue$3.run(EventQueue.java:706)n at java.awt.EventQueue$3.run(EventQueue.java:704)n at java.security.AccessController.doPrivileged(Native Method)n at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)n at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)n at java.awt.EventQueue$4.run(EventQueue.java:720)n at java.awt.EventQueue$4.run(EventQueue.java:718)n at java.security.AccessController.doPrivileged(Native Method)n at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)n at java.awt.EventQueue.dispatchEvent(EventQueue.java:717)n at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)n at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)n at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)n at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)n at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)n at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)n
连接Mysql数据库连接不上?
On Error GoTo err1rn Dim GConn As ADODB.Connectionrn Set GConn = New ADODB.Connectionrn Dim lRs As ADODB.Recordset '<em>数据库</em>记录集对象rn Set lRs = New ADODB.Recordsetrn rn GConn.CursorLocation = adUseClientrn GConn.ConnectionString = "DRIVER=MySQL ODBC 3.51 Driver;SERVER=localhost; DATABASE=test;UID=root;PWD=123456; OPTION=3"rnrn GConn.Openrnrn MsgBox "<em>连接</em>成功"rn exit subrnErr1rn MsgBox "<em>连接</em>失败"rnrnrn会出现 [Microsoft][ODBC 驱动程序管理器] 未发现数据源名称并且未指定默认驱动程序rnrn请问是否是我安装的mysql中,没有安装它的直接<em>连接</em><em>数据库</em>的驱动程序rn我在ODBC中,想添加一个ODBC,但确实没有发现它有任何带有mysql之类的字符串rn请问如何解决这个问题?谢谢!
mysql 数据库连接不上的问题
<em>提示</em>:ERROT 1045 (20000):access denied for user 'root'@'loclhost'(using password :yes);rnwindons 环境,有可能是我今天把Apache虚拟环境搞乱了的原因,现在<em>连接</em>用phpstudy打开localhost是没问题的,但就是打不开<em>数据库</em>
数据库连接不上啊
[code=C#] private void Open() rn // 打开<em>数据库</em><em>连接</em>rn if (con == null) rn con = new SqlConnection(ConfigurationSettings.AppSettings["Data Source=127.0.0.1;Initial Catalog=test;User ID=sa;Password=x;"]); rn rn if(con.State ==System.Data.ConnectionState.Closed)rn con.Open();rnrn [/code]rnrn为什么总是<em>提示</em>错误啊rnrn[code=C#]异常详细<em>信息</em>: System.InvalidOperationException: ConnectionString 属性尚未初始化。[/code]
spring mvc 数据库连接不上
报错是:rn2015-7-22 15:00:52 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet [spring] in context with path [/SpringMVCDemo] threw exception [Request processing failed; nested exception is org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!] with root causerncom.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source.rn at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1319)rn at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557)rn at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477)rn at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525)rn at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)rn at org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:202)rn at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:371)rn at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:335)rn at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:105)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)rn at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)rn at $Proxy15.sum(Unknown Source)rn at controller.DemoController.sum(DemoController.java:21)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176)rn at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:426)rn at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:414)rn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)rn at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)rn at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)rn at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)rn at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)rn at java.lang.Thread.run(Thread.java:662)rnrn现在可确认的是 <em>数据库</em>账号密码没有问题 <em>oracle</em><em>数据库</em>是本地的<em>数据库</em> 不存在<em>连接</em>不上的问题 OJDBC14.JAR包是有的
请求帮助:数据库连接不上
不能<em>连接</em><em>数据库</em>,<em>提示</em>:ct_close():network packet layer:internal net library error:net-library operation terminated due to disconnect,是不是SYBASE哪里出了问题
急...myeclipse 数据库连接不上
我用myeclipse<em>连接</em>Sqlserver2000<em>数据库</em>,刚开始总是出现各种错误,改了好久,眼看都连了好几分钟还在不停的连,至少没有一连就出错,可过了一会突然出现一个错误,上面显示:[Microsoft][Sqlserver2000 Driver for JDBC]End of stream was detected on a read 希望各位赶紧帮帮我...谢谢了
数据库连接不上是什么原因?
一、我的WebSphere5.0的配置:rn1、环境管理 WebSphere 变量rn 设置【ORACLE_JDBC_DRIVER_PATH】的值为"D:\<em>oracle</em>\ora92\jdbc\lib"rn2、资源JDBC 提供程序rn 1)点击【新建】按钮配置rn 【JDBC 提供程序】中选择"Oracle JDBC Thin Driver"rn 2)点击【应用】按钮继续配置常规属性按【确定】按钮。rn 名称:Oracle JDBC Thin Driverrn 3)其它属性数据源【新建】配置常规属性rn 名称:ORACLE_JNDIrn JNDI名:ORACLE_JNDIrn 其它都是默认值。rn 4)JDBC 提供程序 > Oracle JDBC Thin Driver > 数据源 > ORACLE_JNDI中的其它属性rn 【定制属性】:rn URL:jdbc:<em>oracle</em>:thin:@primary-db:1521:orcl rn databaseName:orcl rn driverType:<em>oracle</em>.jdbc.driver.OracleDriver rn serverName:primary-db rn 其它都是默认值 rn rn二、Java代码是:rnInitialContext context = new InitialContext();rnContext envCtx = (Context)context.lookup("java:comp/env");rnDataSource wds = (DataSource)envCtx.lookup("ORACLE_JNDI");rnrnClass.forName(“<em>oracle</em>.jdbc.driver.OracleDriver”);rnconn = DriverManager.getConnection(“jdbc:<em>oracle</em>:thin:@primary-db:1521:orcl”,”student”,”123”);rn执行到DataSource wds = (DataSource)envCtx.lookup("ORACLE_JNDI");就出问题了。rnrn三、查看websphere的日志rn[06-6-6 13:42:06:391 CST] 1d883299 ConnectionFac I J2CA0107I: 没有为<em>连接</em>工厂或数据源 JMS$SampleJMSTopicConnectionFactory$JMSManagedConnection@1884893868 指定组件受管认证别名。rn[06-6-6 13:42:07:469 CST] 1d883299 ConnectionEve A J2CA0056I: <em>连接</em>管理器接收到来自资源 JMS$SampleJMSTopicConnectionFactory 的资源适配器的致命<em>连接</em>错误。接收到的异常为 Broker command failed: 3157 Reason code 3157rn[06-6-6 13:42:07:469 CST] 1d883299 MDBListenerIm W WMSG0019E: 无法启动 MDB 侦听器 PSSampleMDB,JMSDestination Sample/JMS/listen:com.ibm.mq.jms.BrokerCommandFailedException: Broker command failed: 3157 Reason code 3157rn at com.ibm.mq.jms.MQBrokerSubscriptionEngine.openDurableSubscription(MQBrokerSubscriptionEngine.java:1208)rn at com.ibm.mq.jms.MQConnectionConsumer.pubSubSetup(MQConnectionConsumer.java:318)rn at com.ibm.mq.jms.MQConnectionConsumer.(MQConnectionConsumer.java:192)rn at com.ibm.mq.jms.MQTopicConnection.createCC(MQTopicConnection.java:852)rn at com.ibm.mq.jms.MQTopicConnection.createDurableConnectionConsumer(MQTopicConnection.java:817)rn at com.ibm.ejs.jms.JMSTopicConnectionHandle.createDurableConnectionConsumer(JMSTopicConnectionHandle.java:186)rn at com.ibm.ejs.jms.listener.MDBListenerImpl.createResources(MDBListenerImpl.java:327)rn at com.ibm.ejs.jms.listener.MDBListenerImpl.internalStart(MDBListenerImpl.java:474)rn at com.ibm.ejs.jms.listener.MDBListenerImpl.restart(MDBListenerImpl.java:446)rn at com.ibm.ejs.jms.listener.MDBListenerImpl.alarm(MDBListenerImpl.java:718)rn at com.ibm.ejs.util.am._Alarm.run(_Alarm.java:80)rn at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:592)rn
菜鸟提问.数据库连接不上.
我昨天装了 ORACLE, 今天打开命令<em>提示</em>符.进行<em>数据库</em>的<em>连接</em>.登录不了ORACLE了.rnc:\>sqlplus "sys/test080216 as sysdba" 回车rn<em>提示</em>rnORA-12560:TNS:协议适配器错误.
高手进~~数据库连接不上
using System;rnusing System.Collections;rnusing System.ComponentModel;rnusing System.Data;rnusing System.Drawing;rnusing System.Web;rnusing System.Web.SessionState;rnusing System.Web.UI;rnusing System.Web.UI.WebControls;rnusing System.Web.UI.HtmlControls;rnusing System.Data.SqlClient;rnrnnamespace DataBasernrn /// rn /// WebForm1 的摘要说明。rn /// rn public class WebForm1 : System.Web.UI.Pagern rn private void Page_Load(object sender, System.EventArgs e)rn rn // 在此处放置用户代码以初始化页面rnrn Response.Write("第一个<em>连接</em><em>数据库</em>的实例 ");rn rn SqlConnection myConnection=new SqlConnection("server=localhost;uid=sa;pwd=123;database=northwind");rn tryrn rn myConnection.Open();rn Response.Write("<em>连接</em>成功");rn rn catchrn rn Response.Write("<em>连接</em>失败");rn rnrnrnrnrnrnrn rnrn #region Web 窗体设计器生成的代码rn override protected void OnInit(EventArgs e)rn rn //rn // CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。rn //rn InitializeComponent();rn base.OnInit(e);rn rn rn /// rn /// 设计器支持所需的方法 - 不要使用代码编辑器修改rn /// 此方法的内容。rn /// rn private void InitializeComponent()rn rn this.Load += new System.EventHandler(this.Page_Load);rnrn rn #endregionrn rnrnrnrn调试显示<em>连接</em>失败,请高手指点~
sql数据库连接不上啊?
sql<em>数据库</em><em>连接</em>字符串如下,我是直接点击菜单:数据——添加数据源<em>连接</em><em>数据库</em>得到的字符串rnrn Dim conn As SqlConnection = New SqlConnection("Data Source=.;Initial Catalog=Parts;User ID=sa")rnrn可是运行后出现一大堆<em>连接</em>不上的错误啊,不知道怎么回事,我想问问大家<em>连接</em>字符串一般怎么写的啊?谢谢了(我的sql<em>数据库</em>存在窗体运行目录中啊)谢谢了啊rn
vs2005连接数据库连接不上?
我的vs2005<em>连接</em><em>数据库</em>怎么也<em>连接</em>不上,在网上查资料操作还是<em>连接</em>不上,请大家帮帮忙谢谢。rnrnrn我的<em>连接</em>字符串是:rn rn rnasp.cs页面的代码是: public string course = "proc_findSc";rn protected void Page_Load(object sender, EventArgs e)rn rn if (!IsPostBack)rn rn SqlDataReader dr = DataCommon.GetDataByReader(course);rn Web2ASPNET2.CommonOperation.DataBinder.BindGridViewData(GridView1, dr);rn rn rn
数据库连接不上,请指教
org.hibernate.exception.GenericJDBCException: Cannot open connectionrn at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:140)rn at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:128)rn at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)rn at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:52)rn at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:449)rn at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)rn at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:161)rn at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1700)rn at org.hibernate.loader.Loader.doQuery(Loader.java:801)rn at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:274)rn at org.hibernate.loader.Loader.doList(Loader.java:2542)rn at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2276)rn at org.hibernate.loader.Loader.list(Loader.java:2271)rn at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:459)rn at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:365)rn at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)rn at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1268)rn at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)rn at com.dj.dao.base.impl.BaseDaoImpl.find(BaseDaoImpl.java:71)rn at com.upi.service.impl.JobManageServiceImpl.initAllJobs(JobManageServiceImpl.java:283)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)rn at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)rn at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)rn at $Proxy91.initAllJobs(Unknown Source)rn at com.upi.task.JobContextListener.contextInitialized(JobContextListener.java:33)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5118)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5634)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1260)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:2002)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)rn at java.util.concurrent.FutureTask.run(FutureTask.java:138)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)rn at java.lang.Thread.run(Thread.java:619)rnCaused by: com.atomikos.jdbc.AtomikosSQLException: Failed to grow the connection poolrn at com.atomikos.jdbc.AtomikosSQLException.throwAtomikosSQLException(AtomikosSQLException.java:44)rn at com.atomikos.jdbc.AbstractDataSourceBean.throwAtomikosSQLException(AbstractDataSourceBean.java:88)rn at com.atomikos.jdbc.AbstractDataSourceBean.getConnection(AbstractDataSourceBean.java:324)rn at com.atomikos.jdbc.AbstractDataSourceBean.getConnection(AbstractDataSourceBean.java:373)rn at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:81)rn at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)rn ... 41 morernCaused by: com.atomikos.datasource.pool.CreateConnectionException: XAConnectionFactory: failed to create pooled connection - DBMS down or unreachable?rn at com.atomikos.jdbc.AtomikosXAConnectionFactory.createPooledConnection(AtomikosXAConnectionFactory.java:65)rn at com.atomikos.datasource.pool.ConnectionPool.growPool(ConnectionPool.java:190)rn at com.atomikos.datasource.pool.ConnectionPool.borrowConnection(ConnectionPool.java:143)rn at com.atomikos.jdbc.AbstractDataSourceBean.getConnection(AbstractDataSourceBean.java:321)rn ... 44 morernCaused by: java.sql.SQLException: ORA-01017: invalid username/password; logon deniedrnrn at <em>oracle</em>.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)rn at <em>oracle</em>.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)rn at <em>oracle</em>.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:283)rn at <em>oracle</em>.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:278)rn at <em>oracle</em>.jdbc.driver.T4CTTIoauthenticate.receiveOauth(T4CTTIoauthenticate.java:791)rn at <em>oracle</em>.jdbc.driver.T4CConnection.logon(T4CConnection.java:362)rn at <em>oracle</em>.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:441)rn at <em>oracle</em>.jdbc.driver.T4CConnection.(T4CConnection.java:165)rn at <em>oracle</em>.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)rn at <em>oracle</em>.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)rn at <em>oracle</em>.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:297)rn at <em>oracle</em>.jdbc.xa.client.OracleXADataSource.getPooledConnection(OracleXADataSource.java:472)rn at <em>oracle</em>.jdbc.xa.client.OracleXADataSource.getXAConnection(OracleXADataSource.java:159)rn at <em>oracle</em>.jdbc.xa.client.OracleXADataSource.getXAConnection(OracleXADataSource.java:107)rn at com.atomikos.jdbc.AtomikosXAConnectionFactory.createPooledConnection(AtomikosXAConnectionFactory.java:60)rn ... 47 morernrnrn请问大家这是什么错误,<em>oracle</em>的用户名密码都是对的
数据库连接不上!新手求助.
这段代码:rn rnrn .rnrnrn//-----------------------rn浏览时报错:rnADODB.Recordset (0x800A0BB9)rn参数类型不正确,或不在可以接受的范围之内,或与其他参数冲突。rn请问是哪里的问题?rn
求助,数据库连接不上啊!!
用SQL Server服务管理器启动服务的时候rn出现<em>以下</em><em>提示</em>rn"发生错误1069-(由于登录失败而无法启动服务),此时正在MSSQLSERVERrn服务上执行该操作."rnrn我的操作系统是XP,在装SP2之前都没事,但我按照报纸说的在防火墙里打开1433,1434端口也没用.rn请高手帮忙解决一下吧,我急着要用,谢谢!!
derby数据库连接不上程序
要是直接在程序里建表,可以输出,但是要是在外部建表,在程序中调用就不可以,<em>提示</em>找不到表,怎么回事。rnrnpackage lifeng;rnrnimport java.sql.Connection;rnimport java.sql.DriverManager;rnimport java.sql.ResultSet; rnimport java.sql.SQLException;rnimport java.sql.Statement; rnpublic class Test1 rnprivate static String driver = "org.apache.derby.jdbc.EmbeddedDriver"; rn private static String protocol ="jdbc:derby:";rn String dbName ="F:\\TDDOWNLOAD\\db-derby-10.7.1.1-bin\\db-derby-10.7.1.1-bin\\Derby_data\\firstdb1";rn static void loadDriver() rn try Class.forName(driver).newInstance();rn System.out.println("Loaded the appropriate driver");rn catch (Exception e) rn e.printStackTrace(); rn rn public void doIt() rn Connection conn = null;rn Statement s = null;rn ResultSet rs = null;rnrn rntry rn conn = DriverManager.getConnection(protocol + dbName + ";create=true"); rn ///conn = DriverManager.getConnection(dbName);rn rn catch (SQLException e) rn rn e.printStackTrace();rn rn // System.out.println("Connected to and created database " + dbName); rn try rn s=conn.createStatement();rn rn //rs1=s.executeQuery("create table firsttable(id int,name varchar(20))");rn //System.out.println("ssssssssssssssss");rn //rs2=s.executeQuery("insert into firsttable values(1,'zhang')");rn //s.execute("drop table2");rn s.execute("create table table2(ID INT NOT NULL,NAME VARCHAR(10) NOT NULL)");//建表rn s.executeUpdate("insert into table2(ID,NAME) values (1,'hermit')");//插入数据rn s.executeUpdate("insert into table2(ID,NAME) values (2,'test')");//插入数据rnrn rs=s.executeQuery("select * from table2");rn rn while (rs.next()) rn // System.out.println(rs);rn System.out.println(rs.getInt(1));rn System.out.println(rs.getString(2));rn rn catch (SQLException e1) rn e1.printStackTrace(); rn rn try conn.close(); rn conn = null;rn s.close();rn s = null; rn rs.close(); rn rs = null; rn catch (Exception e)rn rn e.printStackTrace();rn rn rn rn rn public static void main(String[] args)rn rn Test1 t1 = new Test1();rn Test1.loadDriver(); rn t1.doIt();rn rnrn
为何我的数据库连接不上?
在一个免费的支持asp3.0 和Acess 的空间,<em>数据库</em><em>连接</em>不上,rnrndatapath="data/"rndatafile ="mydata.mdb" rnon error resume nextrnconnstr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source="&Server.MapPath(""&datapath&""&datafile&"")rnrnSet conn=Server.CreateObject("ADODB.Connection") rnconn.Open connstrrnrn我在本地测试的时候,是没有问题的,不知道怎么回事?
d7的数据库连接不上的原因?
我安装的d7现在<em>数据库</em><em>连接</em>时<em>提示</em>说:rnan error occured while attemping initialize the borland database engine,rn(error$2108)rndetails:rnbde error: 8456[$21][$8]rnrn现在又没没有办法恢复?rn请各位大哥自我一天生路
求教数据库连接不上的原因~
昨天生成一个PB的.exe文件,在别人的机器上运行时候<em>提示</em><em>数据库</em><em>连接</em>没有成功。管理工具里面数据源配置都是没问题的。很奇怪的是有的机器可以有的不行。运行时弹出一个对话框connect to SQL Anywhere ,user id 和password都是有的点OK后弹出一个报警框 rn<em>数据库</em><em>连接</em>没有成功!rnSQLSTATE= 08001rn[sybase][odbc driver]unable to connect to database server:unable to start database enginern迷茫中求教高手指点迷津,帮忙分析下是什么问题。。。尽快解决
数据库连接不上 高分求教!!!
系统架构为Tomcat5.0.28+JDK1.4.2,<em>数据库</em>为Sqlserver2000+sp3,<em>数据库</em><em>连接</em>池采用的是JTA。服务启动后<em>数据库</em><em>连接</em>正常,但运行一段时间(2-5天不等)后Tomcat报:“<em>连接</em><em>数据库</em>错误”。重启Tomcat后,有时会好一段时间,有时几分钟后就又出现<em>连接</em>不上<em>数据库</em>的错误。只有重启系统(Win2000和2003都用过)才能正常运行。rn 困扰我好长时间了,请各位大侠指教!!!,不胜感激,高分送上
数据库连接不上,紧急求助
服务器操作系统:Windows 2003 标准版,使用域方式,2003自带的防火墙已经关闭,网络上没有防火墙rnSQL Server:SQL Server 2005 开发版,使用混合模式,就是可以认Windows验证模式和SQL 验证模式rnrnrn服务器上使用SQL Server Management Studio<em>连接</em>正常rnrnrn客户端上使用SQL Server Management Studio<em>连接</em>无法<em>连接</em>上,<em>提示</em>rnrnrnrn在建立与服务器的<em>连接</em>时出错。在<em>连接</em>到 SQL Server 2005 时,在默认的设置下 SQL Server 不允许进行远程<em>连接</em>可能会导致此失败。 (provider: 命名管道提供程序, error: 40 - 无法打开到 SQL Server 的<em>连接</em>) (.Net SqlClient Data Provider)rnrnrnrn请问如何解决。
jive3数据库连接不上!!!!急!!!!
是不是没有license?哪位大侠知道哪里能下到破解版的????
ASP与数据库连接不上,为什么??
后台<em>数据库</em>为SQL SERVER 2000,配置好了一个用户DNS:classinfo。rnrn然后在 check.asp中编写代码如下:rnset adocon=Server.CreateObject("ADODB.Connection")rnadocon.Open "classinfo"rnrn于是出现问题:rn------------------------------------------------------rn错误类型:rnMicrosoft OLE DB Provider for ODBC Drivers (0x80004005)rn/Project1/check.asp, 第 5 行rn------------------------------------------------------rn请问哪里出现了问题?该如何编写和<em>数据库</em><em>连接</em>的代码?rn
C#2.0 开发的一个浏览器下载
利用C#2.0 开发的一个浏览器,包括电子邮件的放送哦。有些功能还全 相关下载链接:[url=//download.csdn.net/download/zhangke178/2296240?utm_source=bbsseo]//download.csdn.net/download/zhangke178/2296240?utm_source=bbsseo[/url]
LCD1602 c语言代码下载
本程序是针对ATmage8/16系列的编程,编程语言为C语言, 相关下载链接:[url=//download.csdn.net/download/feng123ling456/3066211?utm_source=bbsseo]//download.csdn.net/download/feng123ling456/3066211?utm_source=bbsseo[/url]
2011年最新手机地区所在地数据库下载
2011年最新手机地区所在地数据库,手机号码归属地查询Access,自行转换,mysql,mssql数据格式 相关下载链接:[url=//download.csdn.net/download/anroy_cn/3756972?utm_source=bbsseo]//download.csdn.net/download/anroy_cn/3756972?utm_source=bbsseo[/url]
相关热词 c# 线程结束时执行 c# kb mb 图片 c# 替换第几位字符 c#项目决定成败 c# 与matlab c# xml缩进 c#传感器基础 c#操作wps c# md5使用方法 c# 引用父窗口的组件
我们是很有底线的