DB2 offline backup test instance

Source: Internet
Author: User
Tags db2 connect db2 connect to db2 create table db2 insert

Offline DB2 backup is one of the DB2 backup methods. The following describes the offline DB2 backup methods in detail. If you are interested in this, take a look.

-- DB2 offline backup Test

-- Create a database
Db2 create db TestDB

-- Create a test table, insert test records, and verify
Db2 connect to TestDB
Db2 create table T1 (C1 int, C2 VarChar (50 ))
Db2 insert into T1 (C1, C2) values (1, 'offline backup test ')
Db2 select * from T1

-- Describes the types of database backup)
Db2 backup db TestDB to D: \ DB2_Train

-- Simulate a disaster and delete a database
Db2 drop db TestDB

-- Restore database and verify
Db2 restore db TestDB from D: \ DB2_Train

Db2 connect to TestDB
Db2 select * from T1

Cross-database access to DB2 tables

Lotus Notes calls the DB2 Stored Procedure

Batch import of DB2 stored procedures

How to create a temporary DB2 table

DB2 connection Server Configuration

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.