DB2 Import and Export database data

Source: Internet
Author: User

Export data in a database

Build a library script under the Db2cmd command (-Z to specify the schema name)

db2look-d bbs-z db2admin-u db2admin-e-o bbs.sql

Export data under the Db2cmd command

Db2move BBS export-sn db2admin-u db2admin-p db2admin

Import data to a database

1. Use the specified CSV format data file and generate the log file

Import from "D:/tmp/qm_east_info.csv" of DEL Messages "D:/tmp/msg.out" INSERT into Qm_east_info;

2. Create a database table under the Db2cmd command

DB2-TVF Mtp.sql-l Log.txt

Import data

Under the db2cmd command db2move BBS import-io replace-u db2admin-p db2admin

DB2 Import and Export database data

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.