由于ODA和Oracle数据库太过于稳定,以至于很多客户忘记了root密码,偶尔我们去进行客户关怀的时候,客户找不到root密码,该怎么办,以下方案亲测有效
参考MOS文档
How To Reset Root Password on ODA when password is unknown (Doc ID 1568384.1)
1、使用 ILOM 登录web控制台(Java Remote Console)需下载jdk1.7以上版本
2、重启操作系统(Reboot the system).
3、当 GRUB 启动,按下任意键中断boot cycle.
4、There may be several choices to boot.
Example:
root (hd0,0)
kernel /vmlinuz-2.6.32-300.32.4.el5uek ro root=/dev/VolGroupSys/LogVo... <=== 选择内核select the kernel
initrd /initrd-2.6.32-300.32.4.el5uek.img
Use the arrow key and select the kernel option.
按 “e”键 编辑 GRUB.
增加数字 “1” to the end of line so it looks similar to this:
ro root=/dev/VolGroupSys/LogVol00 1
注意:1 加在行的最后
Save by pressing enter and it should accept change.
按 “b” 键重启.
During the boot process this will bring you to a shell prompt and now you can use the passwd command to change the password for the "root" account:
sh-3.00## passwd
Changing password for user root.
New UNIX password:
or
you will be able to login to root with no password in the single user mode.
Then, change the password by using “passwd” command.
Reboot the DB node.
The default GRUB password can be obtained from Oracle Support.