Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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¶¼¿ªÆôµÄ ......

ʹÓà Tkprof ·ÖÎö ORACLE ¸ú×ÙÎļþ


TkprofÊÇÒ»¸öÓÃÓÚ·ÖÎöOracle¸ú×ÙÎļþ²¢ÇÒ²úÉúÒ»¸ö¸ü¼ÓÇåÎúºÏÀíµÄÊä³ö½á¹ûµÄ¿ÉÖ´Ðй¤¾ß¡£Èç¹ûÒ»¸öϵͳµÄÖ´ÐÐЧÂʱȽϵͣ¬Ò»¸ö±È½ÏºÃµÄ·½·¨ÊÇͨ¹ý¸ú×ÙÓû§µÄ»á»°²¢ÇÒʹÓÃTkprof¹¤¾ßʹÓÃÅÅÐò¹¦Äܸñʽ»¯Êä³ö£¬´Ó¶øÕÒ³öÓÐÎÊÌâµÄSQLÓï¾ä¡£
Ò». TKPROF ÃüÁîÓï·¨£º
TKPROF  filename1, filename2  ......

linux³£ÓÃcº¯Êý ÎļþȨÏÞ¿ØÖÆƪ

access£¨ÅжÏÊÇ·ñ¾ßÓдæÈ¡ÎļþµÄȨÏÞ£©
¡¡¡¡Ïà¹Øº¯Êý  stat£¬open£¬chmod£¬chown£¬setuid£¬setgid
¡¡¡¡±íÍ·Îļþ  #include<unistd.h>
¡¡¡¡¶¨Ò庯Êý  int access(const char * pathname,int mode);
¡¡¡¡º¯Êý˵Ã÷  access()»á¼ì²éÊÇ·ñ¿ÉÒÔ¶Á/дijһÒÑ´æÔÚµÄÎļþ¡£²ÎÊýmodeÓм¸ÖÖÇé¿ö×éºÏ£¬R_OK ......

linux¿ª»ú×Ô¶¯ÔËÐÐÉèÖÃ

ÔÚÍøÉÏ¿´µ½ÓÐÈË×ܽáµÃ²»´í
1£®¿ª»úÆô¶¯Ê±×Ô¶¯ÔËÐгÌÐò 
Linux
¼ÓÔغó, Ëü½«³õʼ»¯Ó²¼þºÍÉ豸Çý¶¯, È»ºóÔËÐеÚÒ»¸ö½ø³Ìinit¡£init¸ù¾ÝÅäÖÃÎļþ¼ÌÐøÒýµ¼¹ý³Ì£¬Æô¶¯ÆäËü½ø³Ì¡£Í¨³£Çé¿öÏ£¬Ð޸ķÅÖÃ
ÔÚ /etc/rc»ò /etc/rc.d »ò /etc/rc?.d Ä¿Â¼ÏµĽű¾Îļþ£¬¿ÉÒÔʹinit×Ô¶¯Æô¶¯Æ ......

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

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