| |

VerySource

 Forgot password?
 Register
Search
View: 3674|Reply: 12

How to export and import DB2 database?

[Copy link]

1

Threads

6

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-12-16 23:00:02
| Show all posts |Read mode
I want to make a small program. . Export the DB2 database, rebuild a database, and then import the data to the new database. . How does this work?

There is another difficulty, how to solve the self-growth variable?

Looking forward to expert help.
Reply

Use magic Report

1

Threads

6

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-12-17 09:15:01
| Show all posts
By the way, there are more than 200 tables. The amount of data is large, and some tables have hundreds of thousands of data. .
Reply

Use magic Report

1

Threads

6

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-12-17 10:15:01
| Show all posts
Explain the reason: because the original database may be damaged and cannot be backed up. . Had to do so. .
Reply

Use magic Report

0

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-12-20 19:45:02
| Show all posts
You can traverse the table in the program, then use db2export to export to text, db2import to import

However, additional processing is required for large object fields, but the program logic implementation is still very simple.
Reply

Use magic Report

1

Threads

6

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-12-20 20:00:02
| Show all posts
The principle seems simple. . But consider independent growth variables and factors with more data. . It's not easy to implement. .
Reply

Use magic Report

0

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-12-21 10:15:01
| Show all posts
Sometimes there are problems with export and import,
It is recommended to install DB2 on a good computer to create a new database! Then copy all the tables of the previous database by copying tables, so that there will be no problems!
Reply

Use magic Report

1

Threads

6

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-12-21 12:45:01
| Show all posts
There are too many watches. . There are also indexes, views, and stored procedures. . . That's not easy. .
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-12-21 15:00:01
| Show all posts
Is it for the entire library? If it is the entire library, it can be realized through backup and restoration.
Reply

Use magic Report

1

Threads

6

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-12-21 15:15:01
| Show all posts
The database cannot be backed up. .
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-12-21 15:30:01
| Show all posts
Use tools, manual work is too much, use this:
Quest Central for DB2
DB2 professional tool, with data migration function (MIGRATE), hundreds of thousands is not big, I am a data warehouse, hundreds of millions are small cases, you can talk about it if you have any problems
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list