IBM Data Studio的连接错误SQL1035N(IBM Data Studio Conne

2019-10-21 07:25发布

我一直在寻找在IBM论坛/文档,谷歌和StackOverflow上关于此错误的话题,但我不能设法找到解决方案。

情况

安装DB2测试和教育的目的,因为我是一个学生,我必须做手工关于这个数据库的使用。 通过Data Studio的DB2和图形化的管理安装。

操作系统:Debian的7.7喘息

DB2版本:10.5修订包4(Cancuun发布)

IBM Data Studio的版本:4.1.1

安装DB2和Data Studio为根。

我可以像终端执行命令:

db2start
db2stop
db2_kill
db2

此外,我可以执行像在DB2命令行处理器命令:我可以创建一个数据库: db2 => CREATE DATABASE SAMPLE还它连接正确: db2 => CONNECT TO SAMPLE和我可以查询到连接的数据库: db2=> SELECT COUNT(COL) FROM TABLE

DB2是工作好,有时它挂起,我不得不指挥db2_killDB2START这很奇怪,它挂起每次我创建一个新的数据库重新启动。 但不管怎么说,它能够连接并执行类似上面的命令。

Data Studio的安装是否正确。 打开该应用程序没有问题。

我创建了一个新的数据库名为例如通过:

db2inst1@debian:$ db2 CREATE DATABASE EXAMPLE

我安装了这两个产品的两倍,并在两个不同的机器。 而问题依然存在。

我还必须补充一点,我试图运行的Data Studio作为Debian的用户和根,返回相同的错误。

问题

在Data Studio当我打开创建一个新的连接窗口/对话框,我配置数据库连接设置:

数据库名称:示例服务器:本地主机端口:50000 用户名:DB2INST1 密码:password

当我点击下一步或测试连接,问题出现了:

手工翻译西班牙语译成中文:

Not successful conecction attempt
Summary: SQL1035N A connection attempt has failed and a SQL exception has been generated.
Explanation: The connection attempt has generated a SQL Exception. The SQL Exception content is: null
Check the SQL code associated to the SQL Exception to determinate the cause of the problem.

SQLSTATE: 57019

错误SQL1035N

这是SQL1035N因为造成IBM的文件:

  1. 有到数据库中保持开放的连接。 这不是这一个,因为我有命令db2_killdb2start和命令: db2 list active databases返回的数据。

  2. 该数据库已被激活明确我试图ACTIVATEDEACTIVATE命令,仍无法正常工作,它返回相同的错误Data Studio中,SQL1035N

    db2 => ACTIVATE DATABASE EJEMPLO SQL1035N La operación ha fallado porque la base de datos especificada no puede conectarse en la modalidad solicitada. SQLSTATE=57019 SQL1035N The operation has failed because the specified database cannot connect in the requested mode. SQLSTATE=57019

  3. 该数据库是写入暂停模式。 我试图通过命令SET WRITE RESUME对于数据库修复这一点,它返回:

    SQL1024 There are no connections to the database. SQL=08003

这不是问题,因为有到数据库的连接

现在,如果我点击复制到剪贴板它复制完整的错误跟踪,或堆栈跟踪。 在这儿,但写在西班牙语。 不管怎么说,这不应该是一个问题去了解它,因为大多数的信息是技术性的,并没有很多西班牙语单词。

谢谢你的帮助。

Explicación

<b>Explicación:</b><br/><br/>el intento de conexión ha generado una excepción de SQL. El contenido de la excepción de SQL es:  null
<br/><b>Respuesta del usuario:</b><br/><br/>inspeccione el código SQL asociado a la excepción de SQL para determinar la causa del problema.
SQLSSTATE: 57019

Soporte

Propiedades de conexión

Base de datos: EJEMPLO
URL:  jdbc:db2://localhost:50000/EJEMPLO:retrieveMessagesFromServerOnGetMessage=true;
Nombre de usuario: db2inst1
Contraseña: (No se muestra)

Entorno

Nombre de clase de controlador = com.ibm.db2.jcc.DB2Driver
Versión de controlador = 4.18.60
Vía de acceso al archivo JAR del controlador = /opt/IBM/SDPShared/plugins/com.ibm.datatools.db2_2.2.100.v20140708_0755/driver/db2jcc4.jar:/opt/IBM/SDPShared/plugins/com.ibm.datatools.db2_2.2.100.v20140708_0755/driver/db2jcc_license_cisuz.jar
Nombre de sistema operativo = Linux
Arquitectura del sistema operativo = amd64
Versión del sistema operativo = 3.2.0-4-amd64
Proveedor de implementación de JVM = IBM Corporation
Tiempo de ejecución de JVM = Java(TM) SE Runtime Environment
Versión Java = JRE 1.7.0 IBM J9 2.7 Linux amd64-64 Compressed References 20140410_195893 (JIT enabled, AOT enabled)
J9VM - R27_Java727_SR1_20140410_1931_B195893
JIT  - tr.r13.java_20140410_61421
GC   - R27_Java727_SR1_20140410_1931_B195893_CMPRSS
J9CL - 20140410_195893
Lanzador = /opt/IBM/DS4.1.1/eclipse

Rastreo de pila

com.ibm.db2.jcc.am.SqlExceptioncom.ibm.db2.jcc.am.kd.a(Unknown Source)
com.ibm.db2.jcc.am.kd.a(Unknown Source)
com.ibm.db2.jcc.am.kd.a(Unknown Source)
com.ibm.db2.jcc.am.Connection.completeSqlca(Unknown Source)
com.ibm.db2.jcc.t4.z.q(Unknown Source)
com.ibm.db2.jcc.t4.z.p(Unknown Source)
com.ibm.db2.jcc.t4.z.l(Unknown Source)
com.ibm.db2.jcc.t4.z.d(Unknown Source)
com.ibm.db2.jcc.t4.b.k(Unknown Source)
com.ibm.db2.jcc.t4.b.b(Unknown Source)
com.ibm.db2.jcc.t4.b.a(Unknown Source)
com.ibm.db2.jcc.t4.b.b(Unknown Source)
com.ibm.db2.jcc.t4.b.a(Unknown Source)
com.ibm.db2.jcc.t4.b.a(Unknown Source)
com.ibm.db2.jcc.t4.b.a(Unknown Source)
com.ibm.db2.jcc.t4.b.<init>(Unknown Source)
com.ibm.db2.jcc.DB2SimpleDataSource.getConnection(Unknown Source)
com.ibm.db2.jcc.DB2SimpleDataSource.getConnection(Unknown Source)
com.ibm.db2.jcc.DB2Driver.connect(Unknown Source)
com.ibm.db2.jcc.DB2Driver.connect(Unknown Source)
org.eclipse.datatools.connectivity.drivers.jdbc.JDBCConnection.createConnection(Unknown Source)
org.eclipse.datatools.connectivity.DriverConnectionBase.internalCreateConnection(Unknown Source)
org.eclipse.datatools.connectivity.DriverConnectionBase.open(Unknown Source)
org.eclipse.datatools.connectivity.drivers.jdbc.JDBCConnection.open(Unknown Source)
org.eclipse.datatools.enablement.ibm.db2.internal.luw.JDBCLUWConnectionFactory.createConnection(Unknown Source)
org.eclipse.datatools.connectivity.internal.ConnectionFactoryProvider.createConnection(Unknown Source)
org.eclipse.datatools.connectivity.internal.ConnectionProfile.createConnection(Unknown Source)
com.ibm.datatools.connection.internal.ui.databases.NewDatabaseConnnectionWizardPage.handleTestConnection(Unknown Source)
com.ibm.datatools.connection.internal.ui.databases.NewDatabaseConnnectionWizardPage.access$6(Unknown Source)
com.ibm.datatools.connection.internal.ui.databases.NewDatabaseConnnectionWizardPage$10.handleEvent(Unknown Source)
org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
org.eclipse.jface.window.Window.runEventLoop(Unknown Source)
org.eclipse.jface.window.Window.open(Unknown Source)
com.ibm.datatools.connection.internal.ui.databases.actions.NewDBConnectionHandler.execute(Unknown Source)
org.eclipse.ui.internal.handlers.HandlerProxy.execute(Unknown Source)
org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(Unknown Source)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.eclipse.e4.core.internal.di.MethodRequestor.execute(Unknown Source)
org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(Unknown Source)
org.eclipse.e4.core.internal.di.InjectorImpl.invoke(Unknown Source)
org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(Unknown Source)
org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(Unknown Source)
org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(Unknown Source)
org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.handleWidgetSelection(Unknown Source)
org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.access$7(Unknown Source)
org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$4.handleEvent(Unknown Source)
org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(Unknown Source)
org.eclipse.core.databinding.observable.Realm.runWithDefault(Unknown Source)
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(Unknown Source)
org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(Unknown Source)
org.eclipse.ui.internal.Workbench$5.run(Unknown Source)
org.eclipse.core.databinding.observable.Realm.runWithDefault(Unknown Source)
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Unknown Source)
org.eclipse.ui.PlatformUI.createAndRunWorkbench(Unknown Source)
org.eclipse.ui.internal.ide.application.IDEApplication.start(Unknown Source)
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Unknown Source)
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Unknown Source)
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Unknown Source)
org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
org.eclipse.equinox.launcher.Main.invokeFramework(Unknown Source)
org.eclipse.equinox.launcher.Main.basicRun(Unknown Source)
org.eclipse.equinox.launcher.Main.run(Unknown Source)
org.eclipse.equinox.launcher.Main.main(Unknown Source)

我也将复制并粘贴此话题IBM论坛,只是为了直接解决他们这个错误。

再次感谢。

Answer 1:

这个问题就解决了

我会回答我的问题:

我怎么解决呢?

我从V10.5降级到V9.7修订包6

另外,我检查了DB2支持的Linux平台,我选择了在Ubuntu 12.04.5安装9.7快递FP6,而现在,安装整个系统,Ubuntu和DB2,我现在用的控制中心之后,让我来创建数据库并成功地查询数据库。

经典作品

谢谢

编辑在18 2015年1月

我重新安装DB2 V10.5,这个时候的DB创建工作。 而我议论的时候 ,因为我不得不等待5分钟,要创建的DB。 这是主要的问题,我想我以前有,因为它是在IBM官方论坛回答,因为我想在一个虚拟机创建它和proccess需要更长的时间。



文章来源: IBM Data Studio Connection error SQL1035N