Import and export of DB2 Databases

Source: Internet
Author: User
Tags db2 connect import database


Import and export of the DB2 database 1. Open the db2 command line Processor 2. Create a directory (skip this step if it is created)
Db2 catalog tcpip node nodename remote IP server 50000 (cataloguing node) www.2cto.com db2 catalog db dbname as mydb at node nodename (database instance) 3. connect to the database db2 connect dbname user username using password 4. export Database export to [path (example: D:/TABLE1.ixf)] of ixf select [field (example: * or col1, col2, col3)] from TABLE1; export to [path (example: D:/TABLE1.del)] of del select [field (example: * or col1, col2, col3)] from TABLE1; www.2cto.com 5. import Database import from [path (for example: D:/TABLE1.ixf)] of ixf insert into TABLE1; load from [path (for example: D:/TABLE1.ixf)] of ixf insert into TABLE1;

Related Article

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.