maxdb how to reset adm password

今天发现SAP系统挂掉了,于是想去看看数据库是不是LOG写满了,一连接,发现SUPERDBA数据用户密码给忘记了,CONTROL用户密码也忘了,就连<SID>adm用户的密码也忘记了。

好嘛,后来找到如下办法重置该密码:

1. Find out who is the owner of the database: 
myserver:SIDadm 39> cat /etc/passwd |grep SID 
SIDadm:*:103:201:SAP System Administrator:/home/SIDadm:/bin/csh 
sqdSID:*:106:201:Owner of Database Instance SID:/home/sqdSID:/bin/csh 
2. Sudo su - to that user 
myserver:SIDadm 42> /appl/tsu/bin/sudo su - SIDadm 
3. Confirm who you are. 
myserver:SIDadm 43> id 
uid=103(SIDadm) gid 
1(sapsys) groups=100(tsu),207(sdba),105(sapinst),3333(sapti) ,106(sapsmd) 
4. Login to the database usering the magic user c_J2EE 
myserver:SIDadm 44> cd /sapdb/programs/bin 
myserver:SIDadm 45> ./dbmcli -U c_J2EE 
5. Can we talk to the database? 
./dbmcli on SID>db_state 
OK 
State 
ONLINE 
--- 
6. Reset the user's password: 
user_put control password=control 
7. update the .XUSER62 file with the update password, using the xuser tool. 
xuser set -U <SID>adm -d SID -u control,control 
8. are we now in? 
dbmcli -d SID -u control,control 
dbmcli on SID

你可能感兴趣的:(maxdb how to reset adm password)