Resetting the root password on an Oracle Exadata system can be necessary in situations where you cannot access the system due to forgotten credentials. Below is a step-by-step guide to help you through the process.
Prerequisites
Before you begin, ensure you have:
- Physical or console access to the Exadata server.
- Appropriate permissions to perform these actions.
Steps to Reset the Root Password
Step 1: Reboot the Exadata Server
- Access the system console: If you are using a virtual console, access it through your management interface.
- Reboot the server: You can initiate a reboot by typing the following command in the command line:
reboot
Step 2: Access the GRUB Menu
-
Interrupt the boot process: As the server reboots, you need to interrupt the boot sequence. Press the Esc key or Shift key to access the GRUB menu (the specific key may vary).
-
Select the kernel: You will see a list of available kernels. Use the arrow keys to select the one you wish to boot.
Step 3: Enter Single User Mode
-
Edit the boot entry: Press
e
to edit the selected kernel boot entry. -
Modify the boot parameters: Find the line that starts with
linux
orlinux16
. At the end of this line, append the following:init=/bin/sh
This tells the system to boot into a shell without requiring a login.
-
Boot the modified entry: Press
Ctrl + X
orF10
to boot with the changes you made.
Step 4: Remount the File System
Once you are in single-user mode, you need to remount the file system with write access.
mount -o remount,rw /
Step 5: Reset the Root Password
- Change the root password: Use the
passwd
command to reset the root password.
You will be prompted to enter a new password. Type the new password and confirm it.passwd
Step 6: Reboot the System
- Reboot the server: Once the password is changed successfully, you need to reboot the system again.
Alternatively, you can also use:exec /sbin/init
reboot
Step 7: Log In with the New Password
After the system reboots, you should be able to log in using the root account and the newly set password.
Conclusion
Resetting the root password on Oracle Exadata is a straightforward process but requires careful execution to avoid system misconfigurations. Always ensure to document any changes made to the system and maintain a secure record of your passwords.
If you face issues during the process, consult the Oracle documentation or seek assistance from your IT support team.