Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

LinuxϵͳÏÂOracle¼à¿Ø¹¤¾ß

1£®top
topÃüÁî¿ÉʵʱµØÏÔʾLinuxϵͳµÄ½ø³Ì¡¢CPU¡¢ÄÚ´æ¡¢¸ºÔصȵÄÐÅÏ¢¡£ËüÊÇÎÒÃÇÁ˽âϵͳÕûÌå״̬×îºÃµÄ¹¤¾ß¡£
topÃüÁîµÄÔËÐÐ״̬ÊÇÒ»¸öʵʱµÄÏÔʾ¹ý³Ì£¬ÎÒÃÇ¿ÉÔÚÕâ¸ö½çÃæ¼à¿ØϵͳÔËÐÐÇé¿ö¡£ÎÒÃÇ¿Éͨ¹ý¼¸¸ö°´¼üÀ´¿ØÖÆtopÃüÁÈç°´q¿ÉÍ˳ötopÃüÁî״̬£¬°´s¿ÉÊäÈëÐÅÏ¢µÄ¸üÐÂƵÂʵȡ£ÕâЩÃüÁî¿É°´h°ïÖú¼ü²éѯ¡£
2£®Ps
psÃüÁî¿É²éѯϵͳµÄ½ø³Ì״̬£¬³£ÓõÄÃüÁî²ÎÊýÊÇps -aux£¬¸ÃÃüÁî¿ÉÏÔʾËùÓÐÓû§µÄ½ø³Ì£¬Èç¹û½ø³ÌµÄÃüÁîÌ«³¤£¬ÔòÏÔʾµÄ½ø³ÌÐÅÏ¢»á²»È«¡£ÎÒÃÇ¿ÉÓÃps -auxwÃüÁîÀ´¼Ó³¤ÏÔʾ£¬w²ÎÊý¿É¶à¼Ó¼¸¸ö£¬×î¶à¿É¼ÓÈý¸ö£¬ÒÔÏÔʾ¸ü³¤µÄ½ø³ÌÐÅÏ¢¡£
3£®Kill
killÃüÁî¿ÉÖÕÖ¹½ø³Ì£¬ºó½Ó½ø³ÌºÅ¼´¿É¡£
4£®Free
free¿ÉÏÔʾϵͳµÄÄÚ´æʹÓÃÇé¿ö¡£-b¡¢-k¡¢-mÈý¸ö²ÎÊý±íʾÒÔbytes£¬kilobytesºÍmegabytesΪµ¥Î»ÏÔʾÄÚ´æµÄʹÓÃÇé¿ö¡£
5£®Vmstat
ʹÓÃvmstat 2 ÃüÁî¿Éÿ¸ô2ÃëÏÔʾһÐÐϵͳÐÅÏ¢£¬ÕâЩÐÅÏ¢°üÀ¨CPUÕ¼ÓÃЧ¡¢ÄÚ´æʹÓÃÇé¿öºÍ´ÅÅÌIOµÈ¡£Í¨¹ýËüÎÒÃÇ¿Éʵʱ¼à¿ØϵͳµÄ×ÊԴʹÓÃÇé¿ö£¬½øÐÐϵͳÓÅ»¯¡£
6£®sar
sar¹¤¾ß¿É°ïÎÒÃÇÊÕ¼¯¶¯Ì¬µÄϵͳÐÅÏ¢£¬ËüµÄ²ÎÊýºÜ·á¸»£¬¹¦ÄÜÇ¿´ó¡£sar¹¤¾ßµÄÌصãÊÇ¿Éͨ¹ý¼ÆÊýÆ÷ºÍ¼ÆÊý¼ä¸ôÀ´¶¨ÆÚ¡¢¶¨Á¿µØÊä³öϵͳ״̬ÐÅÏ¢¡£
7£®watch
watchÃüÁî¿ÉÖظ´Ö´ÐÐij¸öÃüÁ¼à¿ØÃüÁîµÄÖ´ÐÐ״̬¡£ÏÂÃæÕâ¸öÃüÁî¿ÉÈÃÎÒÃǼà¿ØZ2.logÎļþµÄ´óС±ä»¯¡£
debian:~# watch -n 3 du /home/Jims/zope/log/Z2.log
-n 3±íʾÿ¸ô3ÃëÖ´ÐÐÒ»´Îdu /home/Jims/zope/log/Z2.log¡£
8£®Sysctl
ʹÓÃsysctl -a¿ÉÏÔʾËùÓÐÔËÐÐÖеÄÄں˲ÎÊý£¬ÓÃsysctl -w fs.file-max=10240 ÃüÁî¿ÉÐÞ¸Äfs.file-maxÄں˲ÎÊýµÄÖµ£¬²¢Ê¹²ÎÊýÂíÉÏÉúЧ¡£µ«ÖØÆôϵͳºó£¬²ÎÊýÉèÖûáʧЧ£¬ÒòΪÃüÁîÐÐÖ»ÄÜÐÞ¸ÄÔËÐÐÖеÄÄں˲ÎÊý¡£Èç¹ûÎÒÃÇÒª°Ñ²ÎÊýÉèÖù̶¨ÏÂÀ´£¬¿É°ÑÄں˲ÎÊýдÈë/etc/sysctl.confÎļþ¡£¸ÃÎļþµÄ¸ñʽÈçÏ£º
# /etc/sysctl.conf - Configuration file for setting system variables
# See sysctl.conf (5) for information.
# Controls IP packet forwarding
net.ipv4.ip_forward = 0
# Controls source route verification
net.ipv4.conf.default.rp_filter = 1
# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0
# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1
9£®Ulimit
ʹÓÃulimit


Ïà¹ØÎĵµ£º

Oracle For Update ÐÐËø


ת£ºhttp://hi.baidu.com/mcj0127/blog/item/111a900777db06c87b89473c.html
SELECT FOR UPDATE Ïà¹ØµÄ֪ʶ
Ò»¸öÓʼþ·¢Ë͵ÄÓ¦Óûáÿ¹ýÒ»¶¨µÄʱ¼äƬȥÊý¾Ý¿âÖÐȡδ·¢µÄÓʼþÈ»ºó·¢ËÍÓʼþ£¬³É¹¦ºó½«Êý¾Ý¿âÖÐÓʼþ±êʶδ·¢¸ÄΪÒÑ·¢¡£
Õâ¸öÓ¦Óò¿ÊðÔÚwebsphereÉÏ£¬websphere²ÉÓÃÊÇ´¹Ö±¿Ë¡£¬ÓÐ4¸öserver,µ±4¸öserver¶¼¿ªÆôµÄ ......

Oracle ¼àÌý´íÎó


Oracle ÎÞ¼àÌý³ÌÐò
½üÈÕ±¾µØµÄOracleÊý¾Ý¿âÎÞ·¨Á¬½Ó£¬Å׳öÎÞ¼àÌý³ÌÐò´íÎó£¬baigoogleduһϣ¬×ܽáÁËÈçϽâ¾ö·½°¸£º
First£º
Ò»¡¢ÔËÐмàÌýÆ÷
¡¡¡¡ÔÚCMDÖÐÊäÈëÒÔÏÂÄÚÈÝ:
   C:>lsnrctl
   LSNRCTL for 32-bit Windows: Version 8.1.6.0.0 - Production on 14-3ÔÂ -2003 14:17
   : ......

LinuxÖеÄwaitϵͳµ÷ÓÃ

ϵͳÖеĽ©Ê¬½ø³Ì¶¼ÒªÓÉwaitϵͳµ÷ÓÃÀ´»ØÊÕ£¬ÏÂÃæ¾Íͨ¹ýʵս¿´Ò»¿´waitµÄ¾ßÌåÓ÷¨£º
waitµÄº¯ÊýÔ­ÐÍÊÇ£º
#include <sys/types.h> /* ÌṩÀàÐÍpid_tµÄ¶¨Òå */
#include <sys/wait.h>
pid_t wait(int *status);
½ø³ÌÒ»µ©µ÷ÓÃÁËwait£¬¾ÍÁ¢¼´×èÈû×Ô¼º£¬ÓÉwait×Ô¶¯·ÖÎöÊÇ·ñµ±Ç°½ø³ÌµÄij¸ö×Ó½ø³ÌÒѾ­Í˳ö£¬Èç¹ûÈ ......

LinuxÇý¶¯µÄ±àÒëÓë¼ÓÔØ

±àÒëºÍ¼ÓÔØ
±¾Õ¿ªÍ·µÄ "hello world" Àý×Ó°üº¬ÁËÒ»¸ö¼ò¶ÌµÄ½¨Á¢²¢¼ÓÔØÄ£¿éµ½ÏµÍ³ÖÐÈ¥µÄÑÝʾ. µ±È», Õû¸ö¹ý³Ì±ÈÎÒÃÇÄ¿Ç°¿´µ½µÄ¶à. ±¾½ÚÌṩÁ˸ü¶àϸ½Ú¹ØÓÚÒ»¸öÄ£¿é×÷ÕßÈçºÎ½«Ô´Âëת»»³ÉÄÚºËÖеÄÔËÐеÄ×Óϵͳ.
2.4.1. ±àÒëÄ£¿é
µÚÒ»²½, ÎÒÃÇÐèÒª¿´Ò»ÏÂÄ£¿éÈçºÎ±ØÐë±»½¨Á¢. Ä£¿éµÄ½¨Á¢¹ý³ÌÓëÓû§¿Õ¼äµÄÓ¦ÓóÌÐòµÄ½ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ