当前位置:操作系统 > Unix/Linux >>

如何检验DB2forLinux/390安装是否成功

环境: S/390 or zSeries;Linux for S/390

  问题 : 在安装DB2 for Linux之后,如何检验是否安装成功

  解答 :以db2inst1用户ID登录系统:

  su - db2inst1

  启动DB2:

  db2start

  访问DB2命令行环境以执行SQL语句:

  db2

  执行SQL语句连接并查看sample表内容,列出系统表,查看system.systables表结构,之后断开连接并退出:

  =>connect to sample

  =>select * from staff where dept = 20

  =>list tables

  =>describe table sysibm.systables

  =>connect reset

  =>quit

  停掉DB2:

  db2stop

CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,