Linux Äں˲ÎÊý¼°OracleÏà¹Ø²ÎÊýµ÷Õû
ÎÒÃÇÒ»°ãÔÚLinux ÉÏ°²×°ÉèÖÃOracle Êý¾Ý¿â»òÕßÔÚ¸ü»»»òÉý¼¶Ó²¼þµÄʱºò¶¼ÐèÒªÅäÖÃLinux ϵͳµÄºËÐIJÎÊý, È»ºó²ÅÊǵ÷ÕûOracle ϵͳ²ÎÊý ¡£
kernel.shmallΪÎïÀíÄÚ´æ³ýÒÔpagesize;
kernel.shmmaxΪÎïÀíÄÚ´æµÄÒ»°ë;
fs.file-maxΪ512 ³ËÒÔ processes (Èç128¸öprocessÔòΪ 65536);
net.ipv4.ip_local_port_range/net.core.rmem_default/net.core.rmem_maxÈý¸ö²ÎÊýÉèÖú͹ٷ½Îĵµ²»Ò»Ñù, ÕâÊǸù¾Ýmetalink 343431.1 ×îÐÂÒªÇó¸ü¸ÄµÄ;
net.ipv4.tcp_rmem/net.ipv4.tcp_wmemÁ½¸ö²ÎÊýÒ»°ãÇé¿öÏÂÎÞÐèÉèÖÃ, ³ý·ÇÊÇÔÚDataguard/StreamsµÈÐèºÜ¶àÍøÂç´«ÊäÇé¿öÏÂ;
ÆäËü²ÎÊý¸ù¾Ý¹Ù·½ÎĵµÒªÇóÉèÖü´¿É.
²é¿´osϵͳҳµÄ´óС
#getconf PAGESIZE
4096
1. Linux ϵͳϵĺËÐIJÎÊý£º
# vi /etc/sysctl.conf
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 9000 65000
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 262144
ÐÞ¸ÄÒÔºóÈòÎÊýÉúЧ:
# /sbin/sysctl -p
2. Linux ϺËÐIJÎÊýµ÷Õû
kernel.shmmax ----
SHMMAX Available physical memory Defines the maximum allowable size of one shared memory segment. The SHMMAX setting should be large enough to hold the entire SGA in one shared memory segment. A low setting can cause creation of multiple shared memory segments which may lead to performance degradation.
Shmmax ÊǺËÐIJÎÊýÖÐ×îÖØÒªµÄ²ÎÊýÖ®Ò»£¬ÓÃÓÚ¶¨Òåµ¥¸ö¹²ÏíÄÚ´æ¶ÎµÄ×î´óÖµ£¬shmmax ÉèÖÃÓ¦¸Ã×ã¹»´ó£¬ÄÜÔÚÒ»¸ö¹²ÏíÄÚ´æ¶ÎÏÂÈÝÄÉÏÂÕû¸öµÄSGA ,ÉèÖõĹýµÍ¿ÉÄܻᵼÖÂÐèÒª´´½¨¶à¸ö¹²ÏíÄÚ´æ¶Î£¬ÕâÑù¿ÉÄܵ¼ÖÂϵͳÐÔÄܵÄϽµ ¡£
http://www.itpub.net/showthread.php?threadid=551229&pagenumber
ÂÛ̳ÉϵÄһЩ˵·¨£º SHMMAX ½ö½öÊÇÔÚ¹²ÏíÄÚ´æ¶Î±»´´½¨µÄʱºòÓÃÀ´±È½ÏµÄÒ»¸öÊý×Ö£¬µ±¹²ÏíÄÚ´æ¶Î±»Ò»¸ö½ø³Ì(Process)´´½¨£¬²Ù×÷ϵͳ¼ì²éÊÇ·ñ±»ÒªÇóµÄ¹²ÏíÄÚ´æ¶ÎµÄÖµ´óÓÚshmmax µÄÖµ £¬Èç¹ûÊÇ£¬ÄÇô½«»áÅ׳öÒ»¸ö´íÎó¡£Õâ¸öʱºòϵͳ»á´´½¨ÁíÍâµÄÒ»¸ö»ò¶à¸ö¹²ÏíÄÚ´æ¶ÎÂú×ã½ø³ÌµÄÐèÇó ¡£Ò»°ãÀ´Ëµ£¬¹²ÏíÄÚ´æ¶Î¸öÊýºÍϵͳÐÔÄÜûÓÐÌ«Ö±½ÓµÄ¹Øϵ£¬Ò²²»»á¶ÔÐÔÄܲúÉúÌ«´óµÄÓ°Ïì¡£
Steve Adams ÔÚËûµÄ
Ïà¹ØÎĵµ£º
×Ô¼ºÔÚ×öÕâ¸ö³ÌÐòµÄʱºò¿´¹ýºÜ¶àµÄ×ÊÁÏ£¬ÉÏÍøÒ²²éÁ˲»ÉÙµÄ×ÊÁÏ£¬¿ÉÊǶà°ë˵µÄÊdzöÉñÈ뻯£¬ÔÆÀïÎíÀï...²»¹â¿´Á˲»Ã÷°×£¬¶øÇÒÊÇÓÐÃ÷°×Ò»µãµÄÈË£¬¿´ÁËÒ²±äµÄÓÐЩģºýÁË¡£
ÕâÀïÎÒÑÚÊÎÒ»Ì×ÍêÕûµÄjava jdbc Á¬½ÓOracle9iµÄ·¶Àý¡£
package com.lxh.dbcon;//´ò°ü
import ......
¿ÉÒÔ½«Õâ¸ö½Å±¾·Å½øcrontab£¬ËûµÄÅäÖÆÎļþÔÚ /etc/crontabÖÐÿÌìÁ賿ִÐÐÒ»´Î£¬×Ô¶¯±¸·Ý Õâ¸ö½Å±¾Ã¿Ìì×î¶àÖ»Ö´ÐÐÒ»´Î£¬¶øÇÒÖ»±£Áô×î½üÎåÌìµÄ±¸·ÝÔÚ·þÎñÆ÷ÉÏ¡£
#!/bin/bash
#This is a ShellScript For Auto DB Backup
#Powered by aspbiz
#2004-09
#Setting
#ÉèÖÃÊý¾Ý¿âÃû£¬Êý¾Ý¿âµÇ¼Ãû£¬ÃÜÂ룬±¸·Ý·¾¶£¬ÈÕ־ ......
mysql ´ó¶ÔÏó´æÈ¡:
¡¡¡¡ÀàÐÍÒ»°ãÓ¦¸ÃÓÃmediumblod,
¡¡¡¡blobÖ»ÄÜ´æ2µÄ16´Î·½¸öbyte,
¡¡¡¡mediumblodÊÇ24´Î·½,
¡¡¡¡Ò»°ãÀ´Ëµ¹»ÓÃÁË.longblobÊÇ32´Î·½ÓÐЩ´ó.
¡¡¡¡MYSQLĬÈÏÅäÖÃÖ»ÄÜ´æ1M´óСµÄÎļþ,ÒªÐÞ¸ÄÅäÖÃ,WIN°æ±¾µÄÔÚmysql.iniÎļþÖÐ
¡¡¡¡ÐÞ¸Ämax_allowed_packet,net_buffer_lengthµÈ¼¸¸ö²ÎÊý,»òÖ±½ÓSET GLOBAL va ......
Oracle±Ê¼Ç
l ¹ØÓÚTRUNCº¯Êý
SELECT
RELATED_ID ,
DOC_ID ,
CAT_ID ,
CAT_CODE ,
RELEASE_DATE ,
&n ......
oracle±í¿Õ¼ä²Ù×÷Ïê½â
1
2
3×÷Õߣº À´Ô´£º ¸üÐÂÈÕÆÚ£º2006-01-04
5
6
7½¨Á¢±í¿Õ¼ä
8
9CREATE TABLESPACE data01
10DATAFILE '/ora ......