ORACLE Êý¾Ý¿âÃû¡¢ÊµÀýÃû¡¢ORACLE_SIDµÄÇø±ð
Êý¾Ý¿âÃû(DB_NAME)¡¢ÊµÀýÃû(Instance_name)¡¢ÒÔ¼°²Ù×÷ϵͳ»·¾³±äÁ¿(ORACLE_SID)
ÔÚORACLE7¡¢8Êý¾Ý¿âÖÐÖ»ÓÐÊý¾Ý¿âÃû(db_name)ºÍÊý¾Ý¿âʵÀýÃû(instance_name)¡£ÔÚORACLE8i¡¢9iÖгöÏÖÁËеIJÎÊý£¬¼´Êý¾Ý¿âÓòÃû(db_domain)¡¢·þÎñÃû(service_name)¡¢ÒÔ¼°²Ù×÷ϵͳ»·¾³±äÁ¿(ORACLE_SID)¡£ÕâЩ¶¼´æÔÚÓÚͬһ¸öÊý¾Ý¿âÖеıêʶ£¬ÓÃÓÚÇø·Ö²»Í¬Êý¾Ý¿âµÄ²ÎÊý¡£
Ò»¡¢Ê²Ã´ÊÇÊý¾Ý¿âÃû(db_name)?
Êý¾Ý¿âÃûÊÇÓÃÓÚÇø·ÖÊý¾ÝµÄÄÚ²¿±êʶ£¬ÊÇÒÔ¶þ½øÖÆ·½Ê½´æ´¢ÓÚÊý¾Ý¿â¿ØÖÆÎļþÖеIJÎÊý£¬ÔÚÊý¾Ý°²×°»ò´´½¨Ö®ºó½«²»µÃÐ޸ġ£Êý¾Ý¿â°²×°Íê³Éºó£¬¸Ã²ÎÊý±»Ð´ÈëÊý¾Ý¿â²ÎÊýÎļþpfileÖУ¬¸ñʽÈçÏ£º
.........
db_name="orcl" #(²»ÔÊÐíÐÞ¸Ä)
db_domain=dbcenter.toys.com
instance_name=orcl
service_names=orcl.dbcenter.toys.com
control_file=(...............
.........
ÔÚÿһ¸öÔËÐеÄORACLE8iÊý¾Ý¿âÖж¼ÓÐÒ»¸öÊý¾Ý¿âÃû(db_name),Èç¹ûÒ»¸ö·þÎñÆ÷³ÌÐòÖд´½¨ÁËÁ½¸öÊý¾Ý¿â£¬ÔòÓÐÁ½¸öÊý¾Ý¿âÃû¡£Æä¿ØÖƲÎÊý¾Ý·ÖÊôÔÚ²»Í¬µÄpfileÖпØÖÆ×ÅÏà¹ØµÄÊý¾Ý¿â¡£
¶þ¡¢Ê²Ã´ÊÇÊý¾Ý¿âʵÀýÃû(instance_name)
Êý¾Ý¿âʵÀýÃûÔòÓÃÓںͲÙ×÷ϵͳ֮¼äµÄÁªÏµ£¬ÓÃÓÚ¶ÔÍⲿÁ¬½ÓʱʹÓá£ÔÚ²Ù×÷ϵͳÖÐҪȡµÃÓëÊý¾Ý¿âÖ®¼äµÄ½»»¥£¬±ØÐëʹÓÃÊý¾Ý¿âʵÀýÃû¡£ÀýÈ磬ҪºÍijһ¸öÊý¾Ý¿âserverÁ¬½Ó£¬¾Í±ØÐëÖªµÀÆäÊý¾Ý¿âʵÀýÃû£¬Ö»ÖªµÀÊý¾Ý¿âÃûÊÇûÓÐÓõģ¬ÓëÊý¾Ý¿âÃû²»Í¬£¬ÔÚÊý¾Ý°²×°»ò´´½¨Êý¾Ý¿âÖ®ºó£¬ÊµÀýÃû¿ÉÒÔ±»Ð޸ġ£Êý¾Ý¿â°²×°Íê³Éºó£¬¸ÃʵÀýÃû±»Ð´ÈëÊý¾Ý¿â²ÎÊýÎļþpfileÖУ¬¸ñʽÈçÏ£º
db_name="orcl" #(²»ÔÊÐíÐÞ¸Ä)
db_domain=dbcenter.toys.com
instance_name=orcl #(¿ÉÒÔÐÞ¸Ä,¿ÉÒÔÓëdb_nameÏàͬҲ¿É²»Í¬)
service_names=orcl.dbcenter.toys.com
control_file=(...............
.........
Êý¾Ý¿âÃûÓëʵÀýÃûÖ®¼äµÄ¹ØÏµ¡£
Êý¾Ý¿âÃûÓëʵÀýÃûÖ®¼äµÄ¹ØÏµÒ»°ãÊÇÒ»Ò»¶ÔÓ¦¹ØÏµ£¬ÓÐÒ»¸öÊý¾Ý¿âÃû¾ÍÓÐÒ»¸öʵÀýÃû£¬Èç¹ûÔÚÒ»¸ö·þÎñÆ÷Öд´½¨Á½¸öÊý¾Ý¿â£¬ÔòÓÐÁ½¸öÊý¾Ý¿âÃû£¬Á½¸öÊý¾Ý¿âʵÀýÃû£¬ÓÃÁ½¸ö±êʶȷ¶¨Ò»¸öÊý¾Ý¿â£¬Óû§ºÍʵÀýÏàÁ¬½Ó¡£
µ«ÔÚ8i¡¢9iµÄ²¢ÐзþÎñÆ÷½á¹¹ÖУ¬Êý¾Ý¿âÓëʵÀýÖ®¼ä²»´æÔÚÒ»Ò»¶ÔÓ¦¹ØÏµ£¬¶øÊÇÒ»¶Ô¶à¹ØÏµ£¬(Ò»¸öÊý¾Ý¿â¶ÔÓ¦¶à¸öʵÀý£¬Í¬Ò»Ê±¼äÄÚÓû§Ö»Ò»¸öʵÀýÏàÁªÏµ£¬µ±Ä³Ò»ÊµÀý³öÏÖ¹ÊÕÏ£¬ÆäËüʵÀý×Ô¶¯·þÎñ£¬ÒÔ±£Ö¤Êý¾Ý¿â°²È«ÔËÐС£)
Èý¡¢²Ù×÷ϵͳ»·¾³±äÁ¿(ORACLE_SID)
ÔÚʵ¼ÊÖУ¬¶ÔÓÚÊý¾Ý¿âʵÀýÃûµÄÃèÊöÓÐʱʹÓÃʵÀýÃû(instance_name)²ÎÊý£¬ÓÐʱʹÓÃORACLE_SID²ÎÊý¡£ÕâÁ½
Ïà¹ØÎĵµ£º
ÈÔȻʹÓÃSCOTTÓû§À´²Ù×÷£º
1¡¢ ÏÔʾ¹¤×ʱȲ¿ÃÅ30µÄËùÓÐÔ±¹¤µÄ¹¤×ʶ¼¸ßµÄÔ±¹¤µÄÐÅÏ¢£º
Select * from emp where sal>all(select sal from emp where deptno=30);
2¡¢ ÏÔʾ¹¤×ʱȲ¿ÃÅ30µÄÈÎÒâÒ»¸öÔ±¹¤µÄ¹¤×ʸ߾ͿÉÒ ......
ÈçºÎ±¸·ÝOracleÊý¾Ý¿â£º
MD F:\DB_BAK\%date:~0,10%
EXP userid=bszlhr/bszlhr@ORCL_14 file=F:\DB_BAK\%date:~0,10%\bszlhr%date:~0,10%.dmp log=f:\DB_BAK\%date:~0,10%\log_bszlhr_%date:~0,10%.log
buffer=64000 owner=bszlhr
-----´´½¨ÐÅÓÃÐÅÏ¢µÄ±í----------
create table GCCredit(
itemID numb ......
ÓÃJavaÀ´²Ù×÷Êý¾Ý¿â£¬ÓÐÈçϼ¸ÖÖ·½Ê½£º
1JDBC-ODBCÇÅ£ºODBCÊý¾ÝÔ´ÔÚ²Ù×÷ϵͳ²ãÃæ¸øÓèÁËÖ§³Ö£¬ÎÒÃÇ¿ÉÒÔ²»ÓÃÁ˽âµ×²ãµ½µ×ÊÇ·â×°µÄÄÄÖÖÊý¾ÝÔ´£¬Ò²ÕÕÑù¿ÉÒÔÍê³É¶ÔÊý¾ÝµÄ²Ù×÷¡£µ«ÊÇËüÓÐÆ½Ì¨ÒÀÀµÐÔ£¬²»Ì«ÍƼöʹÓá£
2Javaµ½±¾µØAPI
3Javaµ½ÍøÂçÐÒé
4Javaµ½Êý¾Ý¿âÐÒ飺ËÙ¶È×î¿ì
Á¬½ÓÊý¾Ý¿â¿ÉÒÔ·ÖΪËIJ½£º
A¼ÓÔØÇý¶¯³ÌÐò£¨Ï ......
Oracle³£Ó÷ÖÎöº¯Êý
ROW_NUMBER
·µ»ØÓÐÐò×éÖÐÒ»ÐÐµÄÆ«ÒÆÁ¿£¬´Ó¶ø¿ÉÓÃÓÚ°´Ìض¨±ê×¼ÅÅÐòµÄÐкÅ
row_number() over(partition by ... order by ...)
RANK
¸ù¾ÝORDER BY×Ó¾äÖбí´ïʽµÄÖµ£¬´Ó²éѯ·µ»ØµÄÿһÐУ¬¼ÆËãËüÃÇÓëÆäËüÐеÄÏà¶ÔλÖá£×éÄÚµÄÊý¾Ý°´ORDER BY×Ó¾äÅÅÐò£¬È»ºó¸øÃ¿Ò»Ðи³Ò»¸öºÅ£¬´Ó¶øÐγÉÒ»¸öÐòÁУ¬¸ÃÐòÁ ......
±¾ÎÄÀ´×Ôhttp://www.cnblogs.com/rootq/articles/1177562.html
Oracle Êý¾Ý¿âµÄ°ó¶¨±äÁ¿ÌØÐÔ¼°Ó¦ÓÃ
¹Ø¼ü´Ê:
°ó¶¨±äÁ¿(binding variable),¹²Ïí³Ø(shared buffer pool), SGA(system global area);
ÔÚ¿ª·¢Ò»¸öÊý¾Ý¿âϵͳǰ,ÓÐ˶ÔOracle ϵͳÁ˽âºÜ¶à,ÓÈÆäÊÇËüµÄÌØÐÔ,ºÃÏóºÜÉÙ°É;¶Ô³õѧÕßÀ´½²,Õâ¸üÊDz»¿ÉÄܵÄÊÂÇé;½ö½ö¼òµ ......