mdm reinstallation on db2
TRANSCRIPT
-
8/11/2019 Mdm Reinstallation on Db2
1/20
Manually Uninstall the MDM:-
Remove the MDM files:-
Stop the Database:-
Drop/Delete the database instance:-
Create Database Instance:-
As root user on UNIX, create an instance by running the following command at the command prompt:
db2icrt s !S! a S!R"!R#!$CR%&' u db2mdm db2mdm
Start the Database:-
Setup the D(2 Re)istry:-
Set the DB registry !ariable DB"#$%&'$AD to SA( by running the following at the
db2set DB2_WORKLOAD=SAP
**Update Database Mana)er Confi)uration:-
)he Database *anager +onfiguration can be updated using the following eample script- )he following script can be eecuted by user dbmdm
.instance owner/ by running:
db2 - tvf update#dbm#cf)+s,l
-
8/11/2019 Mdm Reinstallation on Db2
2/20
Se!eral directories must eist beforerunning this script-Create the following directories as user db2mdm:
0/ 1db1*D*
+hange the permission2 $wnership:3
/ 1db1*D*1dbdump
Run 'he (elo. mention scripts:- Remove +tt etention 0
alter_buferpool.sql.txt create_database.s ql.txt create_tablespaces.s ql.txt grant_revoke.sql.txt
update_db_cg.sql.txt update_dbm_cg.sql.txt update_svcename.s ql.txt
-
8/11/2019 Mdm Reinstallation on Db2
3/20
-
8/11/2019 Mdm Reinstallation on Db2
4/20
-
8/11/2019 Mdm Reinstallation on Db2
5/20
-
8/11/2019 Mdm Reinstallation on Db2
6/20
Create Database:-
+reate directories 1db1*D*1sapdata0, 1db1*D*1sapdata,1db1*D*1sapdata4 and 1db1*D*1sapdata5 as user dbmdm before running this
script-
-
8/11/2019 Mdm Reinstallation on Db2
7/20
Update Database Confi)uration:-
)he Database +onfiguration can be updated using the script below- *any of the !alues ad6usted by the script are recommendations, further
database tuning is necessary- Se!eral directories must eist before runnin)this script-
+reate the following directories as user dbmdm:
-- /db2/MDM/lo)#dir
db2 -tvf update#db#cf)+s,l
1lter the (ufferpool:-
)he initial si7e of the default bufferpool is too small- )he following will enable the bufferpool to be controlled by DB Self )uning *emory
*anagement-
db2 -tvf alter#bufferpool+s,l
Create 'ablespaces for DMS Containers:- $ote- &lease dont use 1utosi3e script0
)he following script will create the tablespaces with D*S containers-
No
db2 -tvf create#tablespaces+s,l
-
8/11/2019 Mdm Reinstallation on Db2
8/20
-
8/11/2019 Mdm Reinstallation on Db2
9/20
4rant and Revo5e &rivile)es:-
db2 -tvf )rant#revo5e+s,l
-
8/11/2019 Mdm Reinstallation on Db2
10/20
Setup the Database for Remote Connections:-
)he database needs to be setup to allow remote )+(1I( connections- )he database manager configuration parameter S8+9NA*9 has to be
updated to contain the )+(1I( port or ser!ice name- If a ser!ice name is used, mae sure it is entered in the ser!ices file-)he script below can be
used to update the parameter to sapdb*D*:
db2 -tvf update#svcename+s,l
-
8/11/2019 Mdm Reinstallation on Db2
11/20
Restart the Database:-
)he database needs to be restarted in order for the abo!e changes to tae effect-
db2stop force
db2start
Setup MDM User !nvironment on Uni:-
*****************---------MDM I$S'1661'I7$-------------*********************
-
8/11/2019 Mdm Reinstallation on Db2
12/20
Runnin) Sapinst a)ain:-
-
8/11/2019 Mdm Reinstallation on Db2
13/20
-
8/11/2019 Mdm Reinstallation on Db2
14/20
-
8/11/2019 Mdm Reinstallation on Db2
15/20
-
8/11/2019 Mdm Reinstallation on Db2
16/20
-
8/11/2019 Mdm Reinstallation on Db2
17/20
-
8/11/2019 Mdm Reinstallation on Db2
18/20
-
8/11/2019 Mdm Reinstallation on Db2
19/20
-
8/11/2019 Mdm Reinstallation on Db2
20/20