Oracle Á¬½ÓÔ¶³ÌÊý¾Ý¿â
¹«Ë¾Ê¹ÓÃlinux¿ª·¢»ú½øÐгÌÐò¿ª·¢Ê±£¬ÓÉÓÚ¿ª·¢ÓÃOracleÊý¾Ý¿âÊÇÓÉÈÕ·½Ìṩ£¬ËùÒÔ¾³£Ê¹ÓÃsqlplusÁ¬½Óµ½Ô¶³ÌÊý¾Ý¿âÉϽøÐпª·¢,ÀýÈ磺
sqlplus username/password@servicename
ÓÚÊÇÏ룬ÓÃÎÒµÄÁ½Ì¨µçÄÔË«»ú»¥ÁªÊÔÒ»ÊÔ£¬Ò²Íæ¸ö“Ô¶³ÌÁ¬½Ó”¡£ÊµÑéÈçÏ£º
Ê×ÏÈÔÚÎÒµĄ̈ʽ»úÉÏ°²×°ÁËOracle9iµÄÊý¾Ý¿â¹ÜÀíϵͳ£¬²¢½¨Á¢ÁËÒ»¸öÊý¾Ý¿âʵÀý£ºxy
È»ºóΪ¸ÃʵÀýÐÂÔöÁËÒ»¸öÓû§£¬Óû§ÃûºÍÃÜÂ붼ÊÇkxy01¡£Æô¶¯ÊµÀýxyºó£¬ÔŲ́ʽ»úÉÏ£¬Ö±½ÓÔÚcmd»·¾³¼üÈ룺sqlplus kxy01/kxy01@xy ¾Í¿ÉÒÔÁ¬½ÓÉÏÊý¾Ý¿â£¬ºÇºÇ£¬ÏëÀ´±¾µØÁ¬½Ó¶¼ÊDz»·Ñ´µ»ÒÖ®Á¦¾ÍÐеġ£
Ö®ºó£¬ÔÚÎҵıʼDZ¾ÉÏ°²×°ÁËOracle9iµÄClient¹¤¾ß¡£È»ºóÊÔ×ÅÖ±½ÓÓÃÉÏÊöÃüÁî·ÃÎÊ£¬ÏÔÈ»ÊDz»Ðеģ¬ÏµÍ³·µ»ØÎÞ·¨½âÎö·þÎñÃûµÄ´íÎóÐÅÏ¢¡£
ҪʵÏÖÁ¬½Óµ½Ô¶³ÌÊý¾Ý¿â£¬ÏÈÁ˽âÒ»ÏÂÏà¹Ø֪ʶ°É£¬²éÁËÒ»ÏÂÊé¡£ÔÀ´£¬OracleÊý¾Ý¿âµÄÔ¶³ÌÁ¬½ÓÊÇͨ¹ýOracle NetʵÏֵġ£ÔÚ·þÎñÆ÷ºÍ¿Í»§¶Ë¶¼±ØÐëÔËÐÐÓÐÅäÖÃÕýÈ·µÄOracle Net²Å¿ÉÒÔ¡£²»¹ÜʹÓõÄÅäÖúÍÅäÖù¤¾ßÈçºÎ£¬¶¼Ó¦¸Ã¸æËßOracle NetÔõÑùÕÒµ½Ô¶³ÌÊý¾Ý¿â¡£
ÒªÔõôÅäÖÃOracle NetÄØ¡£µã¿ªOracleµÄ¿ªÊ¼²Ëµ¥£¬Ñ°ÕÒÏà¹ØµÄ¹¤¾ß£¬·¢ÏÖÒ»¸öÃûΪ£º
Net Configuration AssitantµÄ¹¤¾ß£¬Ó¦¸Ã¾ÍÊÇËüÁË¡£Æô¶¯Ö®£º
Net Configuration Assitant¹²ÌṩÁË4¸öÅäÖù¦ÄÜ£º
¼àÌý³ÌÐòÅäÖã¬
ÃüÃû·½·¨ÅäÖã¬
±¾µØÍøÂç·þÎñÃûÅäÖÃ
Ŀ¼ʹÓÃÅäÖá£
Òª´ÓÔ¶³ÌλÖÃÁ¬½ÓOracleÊý¾Ý¿â£¬±ØÐëÅäÖÃOracleÍøÂç¼àÌý³ÌÐò¡£Net Configuration Assitant¿ÉÒÔÓÃÓÚ´ËÏîÅäÖù¤×÷£¬Æô¶¯ºóÑ¡Ôñ¼àÌý³ÌÐòÅäÖã¬Ò»Â·ÏÂÒ»²½¼´¿É¡£
Ö®ºóµã¿ªÃüÃû·½·¨ÅäÖã¬ÏµÍ³ÒѾĬÈÏÌṩÁËÈýÖÖ£¬ÆäËûÁ½ÖÖÒ²²»Ì«ÈÏʶ£¬¸É´à²»¸ÄÁË£¬Ö±½ÓµãºóÍË,»Øµ½Ö÷²Ëµ¥¡£
Ö÷²Ëµ¥ÖÐ,µÚÈýÏîÊDZ¾µØÍøÂç·þÎñÃûÅäÖá£ÒªÍ¨¹ýÍøÂç·ÃÎÊOracleÊý¾Ý¿â»òÆäËû·þÎñ£¬ÒªÊ¹ÓÃÍøÂç·þÎñÃû£¬¸ÃÏîÅäÖÃÔÊÐíʹÓÃÓɱ¾µØÃüÃû½âÎöµÄÍøÂç·þÎñÃû¡£¶øµÚËÄÏîΪĿ¼ʹÓÃÅäÖ㬵㿪һ¿´£¬¾ÓȻҪѡÔñĿ¼·þÎñÆ÷£¬ÎÒÕâÒ»¹²¾ÍÁ½Ì¨µçÄÔ£¬ÒªÊ²Ã´Ä¿Â¼·þÎñ£¬¿´À´µÚËÄÏî²»Êʺϱ¾ÊµÑéÁË£¬ÏÔÈ»£¬¹Ø¼üÅäÖþÍÔÚµÚÈýÏ±¾µØÍøÂç·þÎñÃûÅäÖá£
½«Æäµã¿ª£¬Ñ¡Ôñ“Ìí¼Ó”ÍøÂç·þÎñÃû²Ù×÷£¬È»ºó»áѯÎÊÄãÏ£Íû·ÃÎʺÎÖÖ°æ±¾µÄOracleÊý¾Ý¿â·þÎñ¡£°´ÕÕ³£Àí£¬ÎÒ×°µÄÊÇOracle9i×ÔȻӦ¸ÃÑ¡ÔñµÚÒ»¸ö(Oracle8i»ò¸ü¸ß°æ±¾Êý¾Ý¿â·þÎñ)£¬¿É¾¹ýʵ¼ùÖ¤Ã÷£¬Ö»ÓÐÑ¡ÔñµÚ¶þ¸ö(Oracle8i·¢Ðаæ8.0Êý¾Ý¿â»ò·þÎñ)²ÅÄÜÕý³£ÊµÏÖÔ¶³ÌÁ¬½Ó£¬²»Ã÷ÆäÖÐÔÒò£¬Ò²¾ÍÖ»ÓÐÑ¡µÚ¶þ¸öÀ¡£
È»ºóÊäÈëÎÒµ
Ïà¹ØÎĵµ£º
ͨ¹ý select * from table whereid=16701 for update ËøסһÕűí
ͨ¹ýÒÔÏÂÓï¾ä¿É²éѯ³ö±»ËøסµÄ¶ÔÏó
SELECT OBJECT_ID,
SESSION_ID,
SERIAL#,
ORACLE_USERNAME,
&nb ......
Oracle Êý¾ÝÀàÐͼ°´æ´¢·½Ê½
Ô¬¹â¶« Ô´´
¸ÅÊö
ͨ¹ýʵÀý£¬È«Ãæ¶øÉîÈëµÄ·ÖÎöoralceµÄ»ù±¾Êý¾ÝÀàÐͼ°ËüÃǵĴ洢·½Ê½¡£ÒÔORACLE 10GΪ»ù´¡£¬½éÉÜoralce
10gÒýÈëµÄеÄÊý¾ÝÀàÐÍ¡£ÈÃÄã¶Ôor ......
2010-04-21 14:04
oracleÖй¹ÔìÊý×éµÄÀý×Ó£º
declare
type t_varray is varray(4) of number;
arr t_varray;
begin
arr := t_varray(1,2,3,4);
for i in 1..arr.count loop
dbms_output.put_line(arr(i));
end loop;
end;
¹¹Ôì¶þάÊý×éµÄÀý×Ó£º
declare
type t_varray ......
ÒòΪ¹«Ë¾µÄÕÆÉϳÇÊÐϵͳÔÚ¶à¸öµØÊÆͬʱÉÏÏߣ¬¶øΪÁËÈÃÿ¸ö³ÇÊеÄ3G¿ìѶ¾ßÓеØÊÆÌØÉ«ÐÔ£¬Ã¿¸öµØÊÆÓÐ×Ô¼ºµ¥¶ÀµÄÊý¾Ý¿âϵͳ£¬¶øÿ¸öµØÊƵĿìѶÓÖһЩ¹²Í¬µÄ£¬Æ©ÈçͻȻ³öÁËÒ»Ìõ¹ú¼ÊÐÂÎÅ£¬ÄÇôÊDz»ÊÇÿ¸öµØÊƵĺǫ́±à¼¶¼ÒªÂ¼ÈëÒ»±é£¬ÕâÑùÎÞÒÉÊÇ×öÁËÐí¶àÎÞÓù¦£¬ËùÒÔ¹«Ë¾¿¼ÂǼÜÉèÒ»¸ö×ÜÕ¾£¬×ÜÕ¾ÉÏÓÐרÃŵÄÈ˸ºÔð£¬Ã¿Ì츺Ôð¼ÈëÒ» ......
ORACLEʵÀýÓÐϵͳȫ¾ÖÇø£¨SGA£©ºÍһЩºǫ́½ø³Ì×é³É.
ϵͳȫ¾ÖÇø£¨SGA£©Óй²Ïí³Ø£¨shared pool£©,Êý¾Ý¿â¸ßËÙ»º³åÇø£¨database buffer cache£©,ÖØ×öÈÕÖ¾»º³åÇø£¨redo log buffer£©.¹²Ïí³ØÓÖÓпâ¸ßËÙ»º´æ£¨library cache£©ºÍÊý¾Ý×Öµä¸ßËÙ»º´æ£¨dictionary cache£©×é³É¡£
ORACLE ʵÀý5¸ö±ØÐèµÄºǫ́½ø³Ì£ºSMON,PMON,DBWR,LGWR, ......