DB2 v9.7 sql10007n error solution.

Source: Internet
Author: User

DB2 v9.7 express-C in RedHat Linux guest ice Edtion x86-32bit environment reports an error during startup:


-Sh-3.1 $./db2start
Sql10007n message "-1390" cocould not be retrieved. Reason code: "3 ".


After analysis, it is caused by a problem with the configuration items of the shell file and no export environment variable. An incorrect shell is used. The solution is as follows:


Sudo usermod-S/bin/bash db2inst1

Sudo gedit/home/db2inst1/. Profile

Add the following content

Export Path = $ path:/home/db2inst1/sqllib/ADM:/home/db2inst1/bin

Log On As db2inst1 again and find that the shell has changed. Try! :

[Db2inst1 @ xujm ~] $ Db2start
Sql1026n the Database Manager is already active.
[Db2inst1 @ xujm ~] $ Db2stop
Sql1064n db2stop processing was successful.
[Db2inst1 @ xujm ~] $

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.