linuxÉèÖà ÈÃoracle10g×ÔÆô¶¯
ÔÚ/etc/rc.d/init.d/ ´´½¨oracle10gÎļþ
touch oracle10g
chmod a+x oracle10g
[root@test~]# vi /etc/rc.d/init.d/oracle10g
#!/bin/bash
#chkconfig:345 51 49
#description:starts the oracle database deamons
#
ORACLE_HOME=/oracle/product/10.2.0/db_1
ORACLE_OWNER=oracle
case "$1" in
start)
echo -n "Starting oracle10g:"
su - $ORACLE_OWNER -c "$ORACLE_HOME/bin/dbstart"
su - $ORACLE_OWNER -c "$ORACLE_HOME/bin/lsnrctl start"
touch /var/lock/subsys/oracle10g
echo
;;
stop)
echo -n "shutting down oracle10g:"
su - $ORACLE_OWNER -c "$ORACLE_HOME/bin/dbshut"
su - $ORACLE_OWNER -c "$ORACLE_HOME/bin/lsnrctl stop"
rm -f /var/lock/subsys/oracle10g
echo
;;
restart)
echo -n "starting oracle10g:"
$ stop
$ start
echo
;;
*)
echo "usage: oracle10g{start|stop|restart}"
exit
;;
esac
exit
±£´æÎļþ(°´Esc,":wq")£¬Í˳öÒÔºó£¬Ìí¼Ó²¢Æô¶¯²ì¿´·þÎñ¡£
/sbin/chkconfig --add oracle10g
/sbin/chkconfig --list oracle10g
ÔÚsuÏÂ
service oracle10g start //Æô¶¯oracle·þÎñ
service oracle10g stop //Í£Ö¹oracle·þÎñ
×¢1: /var/lock/subsysĿ¼µÄ×÷ÓÃ
ºÜ¶à³ÌÐòÐèÒªÅжÏÊÇ·ñµ±Ç°ÒѾÓÐÒ»¸öʵÀýÔÚÔËÐУ¬Õâ¸öĿ¼¾ÍÊÇÈóÌÐòÅжÏÊÇ·ñÓÐʵÀýÔËÐеıêÖ¾£¬±ÈÈç˵xinetd£¬Èç¹û´æÔÚÕâ¸öÎļþ£¬±íʾÒѾÓÐxinetdÔÚÔËÐÐÁË£¬·ñÔò¾ÍÊÇûÓУ¬µ±È»³ÌÐòÀïÃ滹ҪÓÐÏàÓ¦µÄÅжϴëÊ©À´ÕæÕýÈ·¶¨ÊÇ·ñÓÐʵÀýÔÚÔËÐС£Í¨³£Óë¸ÃĿ¼ÅäÌ׵Ļ¹ÓÐ/var/runĿ¼£¬ÓÃÀ´´æ·Å¶ÔӦʵÀýµÄPID£¬Èç¹ûÄãд½Å±¾µÄ»°£¬»á·¢ÏÖÕâ2¸öĿ¼½áºÏÆðÀ´¿ÉÒԺܷ½±ãµÄÅжϳöÐí¶à·þÎñÊÇ·ñÔÚÔËÐУ¬ÔËÐеÄÏà¹ØÐÅÏ¢µÈµÈ¡£
ʵ¼ÊÉÏ£¬ÅжÏÊÇ·ñÉÏËø¾ÍÊÇÅжÏÕâ¸öÎļþ£¬ËùÒÔÎļþ´æÔÚÓë·ñÒ²¾ÍÒþº¬ÁËÊÇ·ñÉÏËø¡£¶øÕâ¸öĿ¼µÄÄÚÈݲ¢²»Äܱíʾһ¶¨ÉÏËøÁË£¬ÒòΪºÜ¶à·þÎñÔÚÆô¶¯½Å±¾ÀïÓÃtouchÀ´´´½¨Õâ¸ö¼ÓËøÎļþ£¬ÔÚϵͳ½áÊøʱ¸Ã½Å±¾¸ºÔðÇå³ýËø£¬Õâ±¾Éí¾Í²»¿É¿¿£¨±ÈÈçÒâÍâʧ°Üµ¼ÖÂËøÎļþÈÔÈ»´æÔÚ£©£¬ÎÒÔڽű¾ÀïÒ»°ãÊǽáºÏPIDÎļþ£¨Èç¹ûÓÐPIDÎļþµÄ»°£©£¬´ÓPIDÎļþÀïµÃµ½¸ÃʵÀýµÄPID£¬È»ºóÓÃps²âÊÔÊÇ·ñ´æÔÚ¸ÃPID£¬´Ó¶øÅжÏÊÇ·ñÕæÕýÓÐÕâ¸öʵÀýÔÚÔËÐУ¬¸ü¼ÓÎÈÍ׵ķ½·¨ÊÇÓýø³ÌͨѶÁË£¬²»¹ýÕâÑùµÄ»°µ¥µ¥¿¿½Å±¾¾Í×ö²»µ½ÁË¡£(À´×Ô:http://www.hao32.com/unix-linux/39.html)
×¢2:´´½¨ÍêÎļþo
Ïà¹ØÎĵµ£º
1. LinusºÍBill
ËƺõÔÚÒ»Ò¹Ö®¼ä£¬Õâ¸öÃû×ÖͻȻ±äµÃͬÏó±È¶û¡£¸Ç´ÄÒ»ÑùµÄ¶úÊìÄÜÏê¡£µ«ÊDZȶû¡£¸Ç´Ä£¬ÄÄÅÂÉí¼ÛÓÐÊý²»Ç屶µÄ°ÙÍòÃÀ½ð£¬Ò²ÓÀÔ¶²»»á±ä³ÉLinux Torvalds¡£Õâλ29ËêµÄ·ÒÀ¼ÈË£¬¼òµ¥¶øÇ¿´óµÄLinux²Ù×÷ϵͳµÄ´´ÔìÕߣ¬³¬Ô½Á˸ǴĵÄÉñ»°¡£Ò²Óд«ÎÅ˵¸Ç´ÄÊÇÒ»¸ö׿ԽµÄ³ÌÐòÔ±£¬µ«LinusÊÇ»õÕæ¼ÛʵµÄ¸ßÊ ......
Ìõ¼þ±äÁ¿Í¨¹ýÔÊÐíÏß³Ì×èÈûºÍµÈ´ýÁíÒ»¸öÏ̷߳¢ËÍÐźŵķ½·¨ÃÖ²¹ÁË»¥³âËøµÄ²»×㣬Ëü³£ºÍ»¥³âËøÒ»ÆðʹÓá£Ê¹ÓÃʱ£¬Ìõ¼þ±äÁ¿±»ÓÃÀ´×èÈûÒ»¸öỊ̈߳¬µ±Ìõ¼þ²»Âú×ãʱ£¬Ïß³ÌÍùÍù½â¿ªÏàÓ¦µÄ»¥³âËø²¢µÈ´ýÌõ¼þ·¢Éú±ä»¯¡£Ò»µ©ÆäËüµÄij¸öÏ̸߳ıäÁËÌõ¼þ±äÁ¿£¬Ëü½«Í¨ÖªÏàÓ¦µÄÌõ¼þ±äÁ¿»½ÐÑÒ»¸ö»ò¶à¸öÕý±»´ËÌõ¼þ±äÁ¿×èÈûµ ......
#include
#include
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
void *thread1(void *);
void *thread2(void *);
int i=1;
main(void)
{
pthread_t t_a;
pthread_t t_b;
pthread_create(&t_a,NULL,thread1,(void *)NULL) ......
¡¶Oracle´óÐÍÊý¾Ý¿âϵͳÔÚAIX/UNIXÉϵÄʵսÏê½â¡·¼¯ÖÐÌÖÂ۵ļÌÐø¡£ ×öÁËÒ»ÖܹØÓÚOracleÔÚ32λwindowsÉÏʵʩµÄÅàѵ£¬Ç¡ºÃÆÚ¼äÓм¸Î»OracleÓû§ÓʼþѯÎʹØÓÚWindowsϵͳµ÷ÕûÎÊÌâ¡£ÕýºÃ°É£¬°Ñ×¼±¸µÄһЩÄÚÈݹ²Ïí³öÀ´¡£ Èç¹ûOracleʹÓôóÓÚ1.7µÄÄڴ棬ÐèҪһЩÌØдµÄÉèÖᣲμûÏÂÃæÀ´×ÔmetalinkµÄÂ۵㣺 Large page support ......
Ò»¸ö³ÌÐòµÄ¿ª·¢Àë²»¿ªÐí¶à¿âº¯ÊýµÄÖ§³Ö£¬¿ÉÊÇ¿âÈç´ËÖ®¶à£¬ÓпªÔ´Ãâ·ÑµÄÒ²ÓÐÊշѵġ£ºÜÏ£ÍûÊìϤ±à³ÌµÄÇ°±²°Ñ×Ô¼ºµÄ¾ÑéÕûÀíÏ£¬³£ÓõĿⶼ°üº¬ÄÄЩ¹¦ÄÜ¡£ÏÂÎÄÊÇÔÚÍøÉÏÕÒµÄÒ»¸öÀàËƵÄ×ÊÁÏ¡£ÆÚ´ý¸ü¶à¸üÈ«µÄÄÚÈÝ¡£
---------------------------------------------------------------------------------------------------
¿´µ ......