0% found this document useful (0 votes)
18 views2 pages

Db2 Restore Step

Uploaded by

masbin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views2 pages

Db2 Restore Step

Uploaded by

masbin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Ubah Hak Akses

|------""--------|
chown -R db2inst1:db2iadm1 SYAR24.0.sy24inst.DBPART000.20220423232650.001
chmod -R 777 SYAR24.0.sy24inst.DBPART000.20220423232650.001

Command DB2
|------""--------|
Show all database
db2 list db directory
|------""--------|
Show Aplikasi jalan
db2 list applications
|------""--------|
Disconnect database
db2 terminate
db2 disconnect <nama_db>
|------""--------|
Force Aplikasi
|------""--------|
db2 "force application(30230, 30268, 30228, 30234)"

db2 force application all;db2 deactivate db SNS_KON;db2 terminate;db2 drop db


SNS_KON;

db2 force application all;db2 deactivate db BRIKOV2;db2 deactivate db BRISYAR2;db2


terminate;
db2 force application all;db2 deactivate db DMCUQ;db2 terminate;db2 drop db DMCUQ;

db2 "force application(5967, 5888, 5638, 5855)";

Command Restore DB2


db2 create db KONV_EOM on /db2data
time db2 "restore db syar24 incremental auto from '/db2data' taken at
'20240217225620' into SY_FEB LOGTARGET '/BACKUP/SYAR24' without prompting"
time db2 "rollforward db SY_FEB to end of logs and stop overflow log path
('/BACKUP2/G24')"
db2 connect to KON_FEB

time db2 restore db g24 incremental automatic taken at 20230521204044 into KONV24
logtarget /BACKUP2/G24 without prompting

time db2 restore db g24 incremental automatic use from '/db2data' taken at
20231203225619 into KON_DES LOGTARGET '/BACKUP/' without prompting

--github--
[email protected]
@29September08
time db2 "restore db emas24 incremental auto from '/BACKUP2/EMAS24' taken at
'20230318230710' into EMAS242 LOGTARGET '/BACKUP2/EMAS24' without prompting"

time db2 "restore db G24 from /db2data taken at '20240101012210' into KON_JAN
LOGTARGET '/BACKUP2/G24' without prompting"

time db2 "restore db g24 incremental auto from '/BACKUP2/G24' taken at


'20210601023618' into KON_MEI LOGTARGET '/BACKUP2/G24' without prompting"

time db2 "restore db syar24 incremental auto from '/BACKUP2/SYAR24' taken at


'20230524234509' into SAR_SYA LOGTARGET '/BACKUP2/SYAR24' redirect generate script
SAR_SYA.clp without prompting"

You might also like