To restore the database backup from IBM command line we can use following command.
Command:- db2 restore database <DATABASE_NAME> from <LOCATION>
LOCATION is optional in the above command. In case we are not providing location, DB2 will try to restore back from the location at which command prompt is pointing currently.
Example:- db2 restore database SAMPLE from C:\DB2Backups
Screenshot for the above command with LOCATION
Screenshot for the above command without LOCATION
Command:- db2 restore database <DATABASE_NAME> from <LOCATION>
LOCATION is optional in the above command. In case we are not providing location, DB2 will try to restore back from the location at which command prompt is pointing currently.
Example:- db2 restore database SAMPLE from C:\DB2Backups
Screenshot for the above command with LOCATION
Screenshot for the above command without LOCATION
No comments:
Post a Comment