الانتقال إلى المحتوى

هل ممكن احد يمكن يساعدنى فى عمل auto start for DataBase


elshamy

Recommended Posts

السلام عليكم ازيكم ياشباب
انا عندى مشكله :o بسيطه ياريت تحلوهالى
انا عامل setup oracle on linux بس كل مقفل الجهاز وافتحه لازم اعمل startup for sql :D هل ممكن احد يمكن يساعدنى فى عمل auto start database ياريت :( حد يساعدنى فى اسرع وقت ممكن

وشكرا لكم ياشباب

رابط هذا التعليق
شارك

1 - LOGIN AS ROOT
2 - u should find file called ORATAB on the following path /etc/oratab and edit the fowwloing lines accrording ur installation :

# *:/u01/app/oracle/product/10.1.0/db_1:Y
orcl:/u01/app/oracle/product/10.1.0/db_1:Y
# *:/u01/app/oracle/product/10.1.0/db_1:Y
orcl:/u01/app/oracle/product/10.1.0/db_1:Y
*:/u01/app/oracle/product/10.1.0/db_1:Y
orcl:/u01/app/oracle/product/10.1.0/db_1:Y



3 - create a file called "/etc/init.d/dbora" as the root user, containing the following.

#!/bin/sh
# chkconfig: 345 99 10
# description: Oracle auto start-stop script.
#
# Change the value of ORACLE_HOME to specify the correct Oracle home
# directory for your installation.

ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
#
# Change the value of ORACLE to the login name of the
# oracle owner at your site.
#
ORACLE=oracle

PATH=${PATH}:$ORACLE_HOME/bin HOST=`hostname`
PLATFORM=`uname`
export ORACLE_HOME PATH
#
if [ ! "$2" = "ORA_DB" ] ; then
  if [ "$PLATFORM" = "HP-UX" ] ; then
     remsh $HOST -l $ORACLE -n "$0 $1 ORA_DB"
     exit
  else
     rsh $HOST -l $ORACLE  $0 $1 ORA_DB
     exit
  fi
fi
#
case $1 in 'start')
       $ORACLE_HOME/bin/dbstart $ORACLE_HOME
       ;;
'stop')
       $ORACLE_HOME/bin/dbshut $ORACLE_HOME
       ;;
*)
       echo "usage: $0 {start|stop}"
       exit
       ;;
esac
#
exit



4 - Use the chmod command to set the privileges to 750.

chmod 750 /etc/init.d/dbora



5 - Associate the dbora service with the appropriate run levels and set it to auto-start using the following command.

chkconfig --level 345 dbora on



6- NOW U CAN CHECK YOUR NEW SETTINGS BY RESTARTING THE SYSTEM.

رابط هذا التعليق
شارك

الف الف شكر يا دكتور كليك على مساعدتك وربنا يوفقك ومزيد من التقدم
جاااااااااااااااااااااااااارى التطبيق.................................

تم تعديل بواسطة elshamy
رابط هذا التعليق
شارك

دكتور كليك الحقنى انا بعد ماعملت كل الخطوات اللى انت قولتها ال enterprise manager & isqlplus مش عايزين يفتحوا مع العلم انى بعملهم start وكل حاجه ولما اعملهم check config هو شايف كل حاجه وبيقولى انهم already running الحقنى وقولى اعمل ايه؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟ :(

رابط هذا التعليق
شارك

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   تمت استعادة المحتوى السابق الخاص بك.   مسح المحرر

×   You cannot paste images directly. Upload or insert images from URL.

جاري التحميل
×
×
  • أضف...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية