db2 express-c 安装后检查及安装例子数据库

摘自[url]http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?topic=/com.ibm.db2.udb.admin.doc/doc/t0004676.htm[/url]
Verifying the installation of DB2 servers using First Steps (Linux and Windows)

You should verify that the DB2(R) server installation has completed successfully by accessing data from the SAMPLE database.
Prerequisites

* You must have the Control Center and the First Steps component installed to perform this task.

First Steps is listed as a getting started component in the feature selection window in the DB2 Setup wizard. It is installed as part of a Typical installation or may be selected when performing a Custom installation.

The Control Center component is only available on Linux(TM) (x86 and AMD64/EM64T only) and Windows(R).
Procedure
1. On Linux, log on to the system as the instance owner.
2. On Windows, click Start and, select Programs -> IBM DB2 -> [DB2 Copy Name] -> Set-up Tools > First Steps. On Linux and Windows, you can start First Steps by typing the [b][color=red][size=xx-large]db2fs[/size][/color] [/b]command.
(注意:要以拥有实例的用户[例如:[color=red][size=xx-large]db2inst1[/size][/color]]登录,再执行[color=red][size=xx-large]db2fs[/size][/color])
注意:如果是执行了db2fs 后,也不报错,但是什么反应也没有,
则执行此命令:xhost + db2inst1
3. Select Database Creation in the First Steps launchpad. On the Database Creation page, you will see links to the DB2 Information Center for creating the SAMPLE database and the Create SAMPLE Database button. Click Create SAMPLE Database to launch the Create SAMPLE Databases window.
4. You have the options to choose the type of database objects to create and the database location. You can choose the drive on which to create the SAMPLE database on Windows, and the directory on which to create the SAMPLE database on Linux.
5. This command may take a few minutes to process. When the SAMPLE database has been created, you will receive a completion message. Click OK.
6. Launch the Control Center. On Windows, click Start and, select Programs -> IBM DB2 -> [DB2 Copy Name] -> General Administration Tools --> Control Center.. On Linux systems, type the db2cc command
7. In the left pane of the Control Center screen, expand the object tree to view the SAMPLE database and SAMPLE database objects. Select the Tables object to view the SAMPLE database tables in the right pane of the Control Center screen. Right-click on the table name staff and select Query. In the command editor window, click the run button to execute the query and see the result set.

After you have verified the installation, you can remove the SAMPLE database to free up disk space. However, you will need to keep the sample database if you plan to make use of the sample applications.

Enter the db2 drop database sample command to drop the SAMPLE database.
Related tasks

* Verifying the installation using the command line processor (CLP)

Related reference

* db2fs - First steps command
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值