Saturday, January 16, 2010

RESET SUSE root password

Single User Mode Method

1. At the GRUB boot menu select the linux option and press 'e' .

2. Choose your kernal and press 'e' once more.

3. Here in the Edit mode add the following to the end of the line leaving a space.

Quote:
single
or

Quote:
1
4. Press ENTER to exit the edit mode. Once back at the GRUB screen, press 'b' to boot into single user mode.

5. This will make you the "root" user without asking for a password. Once the system has booted, you can change the root password using the password command in the prompt:

Quote:
passwd

SUSE Linux 10.1 Method


1. At the GRUB boot menu select the linux option and press 'e' .

2. Nothng happend!! Ok you cann't edit it from here in this release. But instead SUSE provides a method to Enter you boot code. Select the SUSE entry in the startup GRUB screen. Look for Boot Options in the bottom of the window. You can just type in the boot options here..

3. So in Boot Options enter the following.

Quote:
init=/bin/sh

4. Press ENTER to boot.

5. Once the system has booted, you can change the root password using the password command in the console:

Quote:
passwd
6. Enter your new password and confirm it. Type in to reboot.

Quote:
reboot

Friday, January 15, 2010

AUTOMATIC STARTUP ORACLE 11g R2 PADA RHEL 5.2

Saya ada kesulitan saat UPS tidak berfungsi, server oracle ku mati dan
saat listrik dari P*N nyala
dan RHEL start, oracle ngga mau jalan..

Tanya bah google then a litle trial and error, here is the solution.

Login sebagai root dan buka /etc/oratab

$ nano /etc/oratab

ganti

ORCL:/u01/app/oracle/product/11.2.0/db112:N

menjadi

ORCL:/u01/app/oracle/product/11.2.0/db112:Y

Simpan.

Kemudian buat perubahan pada $ORACLE_HOME/bin/dbstart sebagai berikut

ORACLE_HOME_LISTNER=/???

/??? apapun isinya

dengan

ORACLE_HOME_LISTNER=$ORACLE_HOME

Simpan.

Selanjutnya buat script startup oracle

#nano /etc/init.d/dbora

isinya :

#!/bin/bash
#
# oracle Init file for starting and stopping
# Oracle Database. Script is valid for 10g and 11g versions.
#
# chkconfig: 35 80 30
# description: Oracle Database startup script

# Source function library.

. /etc/rc.d/init.d/functions

ORACLE_OWNER="oracle"
ORACLE_HOME=":/u01/app/oracle/product/11.2.0/db112"

case "$1" in
start)
echo -n $"Starting Oracle DB:"
su - $ORACLE_OWNER -c "$ORACLE_HOME/bin/dbstart $ORACLE_HOME"
echo "OK"
;;
stop)
echo -n $"Stopping Oracle DB:"
su - $ORACLE_OWNER -c "$ORACLE_HOME/bin/dbshut $ORACLE_HOME"
echo "OK"
;;
*)
echo $"Usage: $0 {start|stop}"
esac

#=========================== End of script ==============================

Simpan dan kemudian

# chmod 750 /etc/init.d/dbora
# /sbin/chkconfig --add dbora --level 0356