Put the entire folder (jmam_dq.0) to D:\db_bak\Start-run, enter Db2cmd:1. Create a databaseDB2 Create DB dbname on D:(The database in the D disk, then the system will automatically add sql0000* directory, the result directory such as: D:\db2\node0000\sql0000*\ ...;If the remote connection database is created, perform DB2
When our DB2 database suffers database corruption due to some serious errors (such as storage corruption), we usually need to fix the related errors, use the Restore command to Restore the database (
When you use the restore command to restore a database, the command line shows that the database is restored successfully,
C: Documents and SettingsAdministrator> db2 restore database
/db2inst1/on_back // perform incremental backup online
11. db2 list history backup all for // view backup records
12. db2 get db cfg for // view the location of the log, cp to a secure directory for rollforward use.
13. db2stop force; db2start; db2 drop db // manually drop the database to simulate disaster recovery
The following articles mainly describe how to back up and restore the DB2 database, including setting archiving parameters, online database backup, and offline database recovery, I hope you will have a better understanding of it.
Databas
Database recovery is very important. This article will explain how to use the command line tool to restore the DB2 database, including the example of using the command line tool for your reference.
1. Disable "Control Center"
2. Open "IBM DB2"-"command line tool"-"command
This article mainly describes how to restore a database in DB2. If you are interested in the actual operation steps for restoring a database in DB2, you can click the following article to view the correct operation steps, the following is a detailed description of the articl
/space.php?uid=92501do=blogid=29971):This problem, I guess, is because I made an online incremental backup of the database, after a period of time, with this incremental backup to restore, so that an ID number in the data and the ID number in the log does not correspond to (incomplete data), so the database cannot be opened , you need to use an online log to roll
Motivation
The SQL language provides the concept of a schema that is used to group all types of SQL objects. Schemas in the SQL language can be interpreted as directories in the file system. DB2 UDB for Linux, UNIX, and Windows well support the concept of SQL schema, isolate USER from current schema, and provide PATH for routine parsing.
Patterns are easy to use, but they are managed differently. Tasks such as renaming patterns, pattern-level backup
Question: I accidentally unloaded the DB2, what method to restore the original database data ah? Bow
: DB2 Uninstall after the remaining DB2,DB2CTLSV two directories, but these two directories are not large, please DB2
The system uses a remote database. Location in USA, connection speed is particularly slow. DBA does not give guidance to the database
I had to write a database table migration method. But only one sheet at a time is slowly guiding. Write with PHP
//Original database$databaseOri=' original
applications All disconnect all database connections
Viii. Backup Database
1. DB2 Backup DB Btpdbs2, Db2move Btpdbs Export
Copy Code code as follows:
db2look-d btpdbs-e-X [-a]-o crttbl.sql
ix. Recovery of the database
1. DB2
Use offline backup to restore Data in DB2.
First, the data in the simulated table is damaged. --- Delete the data or clear the table.
DB2 => connect to mydb
Database connection information
Database Server = DB2/nt64 9.7.4
SQL au
The following articles describe how to restore and Delete tables in DB2. In actual operations, the DB2 database stores backups and restores data in historical files, and operations such as loading data and deleting tables. if the database name is sample, you can use the foll
If you want to restore and delete a table while using the DB2 database. What should I do? This document describes how to restore a table in DB2 for your reference.
Here we reprinted an operation to restore the table after the dro
The following article describes how to back up and restore a DB2 database in a Linux operating system, the following describes how to back up and restore the DB2 database in the Lin operating system environment. I hope this will h
Restore steps: Enter the database after the database is created1, 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
Disconnect the current database connection:
DB2 Connect reset or: DB2 disconnect current
To disconnect all database connections:
DB2 Disconnect All
8. Backing Up the database
Initializing the Environment0. Start Db2start1.CMD Environment Input Db2cmd New Open DB2 Action window2. Connect to the database DB2 connect to Db_name3. In the local Host BACKUP statement DB2 BACKUP DATABASE db_name to D:Timestamp when backup image was successfully backed u
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.