Oracle 11g R1 for Linux(RHEL5)°²×°
1
¡¢°²×°Ç°µÄ×¼±¸
1.1
¼ì²éÓ²¼þ
ÎïÀíÄڴ棺
# grep
MemTotal /proc/meminfo
½»»»¿Õ¼ä£º
# grep
SwapTotal /proc/meminfo
½»»»¿Õ¼äµÄ´óСÊǸù¾ÝÎïÀíÄÚ´æµÄ´óСÀ´ÉèÖõģ¬ÎïÀíÄÚ´æÉÙÓÚ
2G
µÄÔò½»»»¿Õ¼äÉèΪÎïÀíÄÚ´æµÄÁ½±¶£¬ÎïÀíÄÚ´æ´óÓÚ
2G
µÄÔò½»»»¿Õ¼äºÍÎïÀíÄÚ´æ´óСһÑù¡£Èç¹û²»·ûºÏÉÏÊö¹æ¶¨£¬ÄÇô¾ÍÐèÒªÖØÐÂÉèÖý»»»¿Õ¼äµÄ´óС¡£ÖØÐÂÉèÖý»»»¿Õ¼äµÄ´óСÓÐÁ½ÖÖ·½·¨£ºÒ»ÖÖÊÇʹÓÃ
fdisk
ɾ³ý½»»»·ÖÇøÖØÐ»®·Ö´óС£»ÁíÒ»ÖÖÊÇ´´½¨Ò»¸öÐÂÎļþ£¬·ÖÅä´óСȻºó¸ñʽ»¯³É½»»»·ÖÇø¡£±¾ÊÖ²áʹÓõڶþÖÖ·½·¨¡£
´´½¨Îļþ£º
# touch /home/swap
·ÖÅä¿Õ¼ä£º
# dd if=/dev/zero of=/home/swap bs=1024
count=4100000
¸ñʽ»¯Îļþ£º
# mkswap /home/swap
Í£Ö¹
swap
£º
# swapoff –a
ʹÓÃ
swap
£º
# swapon /home/swap
×Ô¶¯¹ÒÔØ£º
#
ÔÚ
etc/fstab
¡¡Àï¼ÓÈëÒÔÏÂÒ»ÐУº
/home/swap swap
swap default 0 0
´ÅÅ̿ռ䣺
# df –ah
Oracle 11g
°²×°ËùÐèµÄ´ÅÅ̿ռäΪ
1.7G
£¬Èç¹û²»¹»µÄ»°µÃÁíÍâÌí¼Ó¡£
1.2
Èí¼þ°ü¼ì²é
¼ì²éÏÂÁаüÊÇ·ñ°²×°£¬Èç¹ûδ°²×°ÔòÒªÏȰ²×°¡£
# rpm -qa | grep make gcc glibc
µÈµÈ
binutils-2.17.50.0.6-2.el5
compat-libstdc++-33-3.2.3-61
elfutils-libelf-0.125-3.el5
elfutils-libelf-devel-0.125
glibc-2.5-12
glibc-common-2.5-12
glibc-devel-2.5-12
gcc-4.1.1-52
gcc-c++-4.1.1-52
libaio-0.3.106
libaio-devel-0.3.106
libgcc-4.1.1-52
libstdc++-4.1.1
libstdc++-devel-4.1.1-52.e15
make-3.81-1.1
sysstat-7.0.0
unixODBC-2.2.11
unixODBC-devel-2.2.11
1.3
ÏÂÔØÈí¼þ
ÕâÀïÐèҪעÒâµÄÓÐÁ½µã£ºÒ»ÊÇŪÇå³þ·þÎñÆ÷ÊÇ
32
λµÄ»¹ÊÇ
64
λ£»¶þÊDz»ÒªÏÂÔØ
Oracle 11gR2
£¬
R2
²»Äܹ»ÔÚ
RHEL5
Éϰ²×°¡£²»ÒªÐÁÐÁ¿à¿àµÄÏÂÔØÏÂÀ´£¬È´·¢ÏÖ°æ±¾²»¶Ô£¬ÄǾÍ×öÁ˺ܶàÎÞÓù¦ÁË¡£
Oracle Database Software Downloads
£º
http://www.oracle.com/technology/software/products/database/index.html
2
¡¢°²×°»·¾³ÉèÖÃ
2.1
ºËÐIJÎÊýÉèÖÃ
ÔÚ
/etc/sysctl.conf
ÎļþÖмÓÈëÏÂÁÐÐУº
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
Ïà¹ØÎĵµ£º
£¨L2CAPÐÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPÐÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼Á¬½Ó¿ØÖƺÍÊÊÅäÐÒé (L2CAP) ΪÉϲãÐÒéÌá¹©ÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àÐÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãÐÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......
ÔÚOracleÊý¾Ý¿âÖÐ''ÓëNULLÊǵȼ۵ġ£¾ù±íʾ¿ÕÖµ£¬¶ø²»ÊÇÀàËÆÆäËûÊý¾Ý¿âÉÏ''±íʾ¿Õ´®£¬NULL±íʾ¿ÕÖµ¡£
ORACLEÔÊÐíÈκÎÒ»ÖÖÊý¾ÝÀàÐ͵Ä×Ö¶ÎΪ¿Õ£¬³ýÁËÒÔÏÂÁ½ÖÖÇé¿ö£º
1¡¢Ö÷¼ü×ֶΣ¨primary key£©£¬
2¡¢¶¨ÒåʱÒѾ¼ÓÁËNOT NULLÏÞÖÆÌõ¼þµÄ×Ö¶Î
˵Ã÷£º
1¡¢NULLµÈ¼ÛÓÚûÓÐÈκÎÖµ¡¢ÊÇδ֪Êý¡£
2¡¢NULLÓë ......
Ò»Ö±Ìýµ½µÄ¶¼ÊÇ˵¾¡Á¿ÓÃexists²»ÒªÓÃin£¬ÒòΪexistsÖ»ÅжϴæÔÚ¶øinÐèÒª¶Ô±ÈÖµ£¬ËùÒÔexists±È½Ï¿ì£¬µ«¿´ÁË¿´ÍøÉϵÄһЩ¶«Î÷²Å·¢ÏÖ¸ù±¾²»ÊÇÕâô»ØÊ¡£
ÏÂÃæÕâ¶ÎÊdzµÄ
Select * from T1 where x in ( select y from T2 )
Ö´ÐеĹý³ÌÏ൱ÓÚ:
select *
......
Linux
ÏÂ
C
¿ª·¢——
gcc
£¬
gdb
µÄʹÓÃ
×÷Õߣº
zccst
ÎÒÃÇѧϰµÄ¹ý³ÌÓ¦¸ÃÊÇÒ»¸ö»ýÀ۵Ĺý³Ì£¬ÓÐÎÞµ½ÓУ¬ÓÖÉÙµ½¶à£¬¶ø²»ÄÜÏñÏÂɽµÄºï×Ó¡£
9
Ô·ݵÄʱºòÊǵÚÒ»´Îϵͳѧϰ
gcc, gdb, makefile
£¨Ïê¼ûÇ°Ãæ²©¿Í£©¡£Èç½ñ×÷ΪǶÈëʽϵͳµÄÒ»¸ö×é³É²¿·Ö£¬¾ö¶¨ÖØÑ§Ò»´Î£¬¸Ð¾õÀí½â¼ÓÉîÁËһЩ¡£
gcc
......