From: Vásáry Dániel Date: Sun, 25 Feb 2024 22:21:41 +0000 (+0100) Subject: Restore DB2 db X-Git-Url: http://git.useribm.hu/?a=commitdiff_plain;h=c126ef98ee0d89ddd4c5ef279709856b68d183e1;p=sly-crm.git Restore DB2 db --- diff --git a/lis-db/migrations/README b/lis-db/migrations/README index 67a7cf4..7077fa7 100644 --- a/lis-db/migrations/README +++ b/lis-db/migrations/README @@ -68,6 +68,16 @@ List windows services sc queryex type=service state=all | find /i "SERVICE_NAME:" +RESTORE +------- +docker exec -it ibmdb2 mkdir /tmpexport +docker cp TESTMC.0.db2admin.DBPART000.20230330221657.001 ibmdb2:/tmpexport +db2 restore database TESTMC from /tmpexport into MC replace existing redirect generate script chg.sql +edit restore_db.sql + -DBPATH ON '/database/data' + -SET STOGROUP PATHS FOR IBMSTOGROUP ON '/database/data' +db2 -tvf restore_db.sql + MIGRATE ------- migrate new create profile --idpattern=000