How to start all of service in Linux RedHat? [message #266038] |
Sun, 09 September 2007 04:45 |
trantuananh24hg
Messages: 744 Registered: January 2007 Location: Ha Noi, Viet Nam
|
Senior Member |
|
|
Dear all!
I am newbie on Linux, today, there were some problem that appeared.
All of services such as:
- OracleDBConsole
- Listener
- OracleServiceFuji -- Fuji that is DB's service name
My Oracle DB is RAC, 10.2
My OS is Redhat Linux
I have privilege root and oracle account
How to start these services with XWindow? Please guide me step by step.
Thank you very much!
|
|
|
|
Re: How to start all of service in Linux RedHat? [message #266050 is a reply to message #266038] |
Sun, 09 September 2007 05:40 |
trantuananh24hg
Messages: 744 Registered: January 2007 Location: Ha Noi, Viet Nam
|
Senior Member |
|
|
Dear Arju!
First time, I wish the best to you.
And, I'll follow to your guide:
#su -oracle
..
connected
$emctl start dbconsole
$lsnctl start Fuji
$startup Fuji
Are there all right? Sorry, because my server is not open at now to start them.
Thank again!
|
|
|
|
Re: How to start all of service in Linux RedHat? [message #266073 is a reply to message #266038] |
Sun, 09 September 2007 09:10 |
trantuananh24hg
Messages: 744 Registered: January 2007 Location: Ha Noi, Viet Nam
|
Senior Member |
|
|
Quote: |
Err listener could not resolve SERVICE_NAME given in connect descriptor
|
This is error message when I attempted connect to DB by this command:
$sqlplus /nolog
SQL> conn sys/password@FUJI as sysdba
ORA-12514: Err listener could not resolve SERVICE_NAME given in connect descriptor
The Listener started successfully!
But I did not how to start DBService, in one website, a guide as:
su -c oracle /oracle/ora10g/bin/dbstart
However, my Oracle DB is 9.2.0.1, and this is path of Network directory
home\app\oracle\procedure\9.2.0\network\admin
Must I start DB? And if I must, please guide me to start DB.
Thank you very much!
|
|
|
|
|
|
|
Re: How to start all of service in Linux RedHat? [message #266116 is a reply to message #266089] |
Sun, 09 September 2007 19:59 |
trantuananh24hg
Messages: 744 Registered: January 2007 Location: Ha Noi, Viet Nam
|
Senior Member |
|
|
Thank for all!
I've followed Mohammad direction, and, actually, I found that every controlfiles in /u01/fuji have been removed. And I am trying to restore all of control files.
After I restore them, in RAC, must I issue statement:
SQL>Alter database open resetlog;
Actually, I found that all of datafile, controlfile and redolog file are put in the third device named as sdb3/u01.
This script is often run by system administrator every day
#!/bin/sh
cd /home/oracle
case $1 in
'start')
mount /dev/sdb3 /u01
chown -R oracle.dba /u01
su - oracle -c /opt/cluster/oracle/startdb.sh
;;
'stop')
su - oracle -c /opt/cluster/oracle/stopdb.sh
;;
'status')
su - oracle -c /opt/cluster/oracle/dbmonitor | grep "error"
if [ $? -eq 0 ] ; then
service cluster stop
fi
;;
esac
But at Sartuday, one error message occurred like:
"...This device is blocked..."
I tried to mount /dev/sdb3 manually by root, but it did not.
Anybody guide me about this error?
Thank you!
[Updated on: Sun, 09 September 2007 21:02] Report message to a moderator
|
|
|
|