DB2 Backup Restore

Source: Internet
Author: User
Tags db2

Restore steps: Enter the database after the database is created
1, restore DB tsmesdb from D:\ICSS\dbData in D:\ICSS\dbData into Tsmesdb redirect2, List tablespaces3、Settablespace containers for 4using (path "D:\DB2\NODE0000\TSMESDB\mycontainer")4、Settablespace containers for 5using (path "D:\DB2\NODE0000\TSMESDB\mytemp")5、RESTOREDB TsmesdbContinue

Grammar:

Restore DB database Name the path that is stored after the restore (taken at timestamp) on the restore file path into the database name redirect

View Space

Set Container path

Set Temp file path

Continue restore

If it is a non-administrator account, then you have to re-authorize the user, or do not do any action

If Windows is not enabled administrator need to enable and set a password and then log on to the Administrator user to authorize other users

Adminitrator enabled such as:

Login to Administrator and use open Db2cmd to authorize users who need authorization

= Grant  on Database  to User UserCount  db20000i the  SQL command completed successfully.   = Grant  on Database  to User UserCount  db20000i the  SQL command completed successfully.   = quit  

First restore DB2 data, Pit point: Using the WIN10 network user, not the admin account, resulting in no db2admin permissions

DB2 Backup Restore

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.