`
luzl
  • 浏览: 578150 次
  • 性别: Icon_minigender_1
  • 来自: 大连
社区版块
存档分类
最新评论

DB2 get_help

    博客分类:
  • DB2
阅读更多
db2 ?
db2 ? some_command
db2 ? options
db2 ? help
db2 ? error_code

for example:
> db2 crocodile
DB21034E  The command was processed as an SQL statement because it was not a
valid Command Line Processor command.  During SQL processing it returned:
SQL1024N  A database connection does not exist.  SQLSTATE=08003
> db2 ? SQL1024N

SQL1024N A database connection does not exist.

Explanation:  There is no connection to a database.  Other SQL
statements cannot be processed unless an SQL CONNECT was
previously executed.

The command cannot be processed.

User Response:  If the error occurred when disconnecting from the
database, continue processing.  If the error occurred on another
SQL statement, issue an SQL CONNECT statement and resubmit the
command or statement.

sqlcode:  -1024

sqlstate:  08003

Another way to get help fast is to copy/paste the error string into google (internet search engine). Especially Google Groups is very helpful. You usually get the answer on the very first screen.
分享到:
评论

相关推荐

    db2驱动程序 db2jcc.jar db2jcc_license_cu.jar db2jcc_license_cisuz.jar

    Connection conn = DriverManager.getConnection("jdbc:db2://hostname:port/dbname", "username", "password"); ``` 4. 在完成数据库操作后,记得关闭连接以释放资源。 在实际开发中,你可能会遇到兼容性问题,...

    db2ese_c.lic (DB2 9.7 LINUX安装)

    搜了一下这个license发现都是索取金币的,我给大家分享一个免费版的,支持共享~~~ ps.这个是V9.7 的license 用法: 把db2ese_c.lic放到某个目录下: ...db2licm -a /opt/ibm/db2/V9.7/license/db2ese_c.lic

    DB2 驱动包 db2jcc.jar db2jcc_javax.jar db2jcc_license_cu.jar

    在您提供的标题和描述中,提到了三个重要的JAR文件:“db2jcc.jar”,“db2jcc_javax.jar”和“db2jcc_license_cu.jar”,它们是DB2 Java JDBC驱动的一部分。 1. **db2jcc.jar**:这是DB2的JDBC网络通信类库,包含...

    db2exc_975_WIN_x86.exe

    db2exc_975_WIN 数据库安装包,官网下载,亲测可用。 IBM DB2 是一套关系型数据库管理系统,DB2 Express - C

    db2jcc_license_cisuz.jar

    db2jcc_license_cisuz.jar

    db2驱动( db2jcc4.jar+db2jcc_license_cu.jar).zip

    Connection conn = DriverManager.getConnection("jdbc:db2://hostname:port/dbname", "username", "password"); ``` 这里,"hostname"是DB2服务器的地址,"port"是监听的端口,"dbname"是数据库名,"username"和...

    db2exc_970_LNX_x86_64.tar.z01

    db2exc_970_LNX_x86_64.tar.gz Linux 64位系统 的db2 安装包。(第一部分)

    db2jcc_license_cu/db2java/db2jcc

    在实际开发中,开发者会在Java项目中引入这些jar,通过`Class.forName()`方法加载驱动,然后使用`DriverManager.getConnection()`来建立与DB2的连接。 压缩包子文件的文件名称列表仅提及"db2jcc夹包家族",这可能指...

    db2数据库驱动程序 db2jcc.jar、db2jcc_license_cu.jar

    3. 创建数据库连接:`Connection conn = DriverManager.getConnection("jdbc:db2://<hostname>:<port>/<database>", "<username>", "<password>");` 4. 执行SQL语句:通过`Statement`或`PreparedStatement`对象执行...

    DB2架包db2jcc.jar、db2jcc_license_cu.jar、db2jcc4.jar文件

    然后,通过创建`java.sql.DriverManager.getConnection()`方法调用来建立到DB2数据库的连接,提供适当的数据库URL、用户名和密码。 在开发过程中,了解这些JAR文件的作用是至关重要的,因为正确的驱动选择和配置...

    db2jcc_license_cu.jar

    db2jcc_license_cu jdbc连接数据所用jar包 JDBC连接db2驱动包,包含db2jcc_license_cu.jar

    db2exc_970_LNX_x86_64.tar.zip

    db2exc_970_LNX_x86_64.tar.gz Linux 64位系统 的db2 安装包。(第二部分) 另一部分:https://download.csdn.net/download/qq_37570669/11260296

    db2 mvs zOS jdbc driver - db2jcc_license_cisuz

    例如,使用`Class.forName()`方法加载驱动,然后通过`DriverManager.getConnection()`建立连接,创建`Statement`或`PreparedStatement`对象来执行SQL命令。 在实际应用中,确保正确配置JDBC连接字符串(包括主机名...

    db2ese_c.lic DB2 V9.7 license linux x86_64

    emal:/opt/ibm/db2/V9.7/license # db2licm -l Product name: "DB2 Enterprise Server Edition" Expiry date: "Expired" Product identifier: "db2ese" Version information: "9.7" Enforcement policy: "Soft Stop...

    maven项目添加db2的jar包(db2jcc_license_cu-1.4.2.jar)

    maven项目添加db2的jar包(db2jcc_license_cu-1.4.2.jar,db2jcc_license_cu-1.4.2-javadoc.jar,db2jcc_license_cu-1.4.2-sources.jar)

    JDBC连接db2驱动包,包含db2jcc_license_cu.jar,db2jcc4.jar

    4. **建立连接**:使用`DriverManager.getConnection()`方法创建一个到DB2数据库的连接。你需要提供数据库URL,用户名和密码: ```java String url = "jdbc:db2://hostname:port/dbname"; String user = "your_...

    db2数据库驱动9.7jar包(全) db2jcc.jar+db2jcc_license_cu.jar

    Connection conn = DriverManager.getConnection("jdbc:db2://hostname:port/dbname", "username", "password"); ``` 3. 一旦连接建立,可以创建Statement或PreparedStatement对象来执行SQL语句,处理结果集,并...

Global site tag (gtag.js) - Google Analytics