´´½¨OracleÊý¾Ý¿â£¨ÒÔOracle10gΪÀý£©
´´½¨OracleÊý¾Ý¿â£¨ÒÔOracle10gΪÀý£©
ÓÐÁ½ÖÖ´´½¨Êý¾Ý¿âµÄ·½Ê½£¬Ò»ÖÖÊÇÒÔÃüÁîÐнű¾·½Ê½£¬¼´ÊÖ¶¯·½Ê½´´½¨£»ÁíÒ»ÖÖÊÇÀûÓÃOracleÌṩµÄÊý¾Ý¿âÅäÖÃÏòµ¼À´´´½¨¡£±¾ÆªÖ÷Òª½éÉÜÔÚUnixºÍWindowsÏÂÒÔÃüÁîÐнű¾·½Ê½´´½¨OracleÊý¾Ý¿â¡£
Ò»¸öÍêÕûµÄÊý¾Ý¿âϵͳ£¬Ó¦°üÀ¨Ò»¸öÎïÀí½á¹¹¡¢Ò»¸öÂß¼½á¹¹¡¢Ò»¸öÄÚ´æ½á¹¹ºÍÒ»¸ö½ø³Ì½á¹¹£¬Èç¹ûÒª´´½¨Ò»¸öеÄÊý¾Ý¿â£¬ÔòÕâЩ½á¹¹¶¼±ØÐëÍêÕûµÄ½¨Á¢ÆðÀ´¡£
Ò»¡¢ÔÚUnixÏ´´½¨Êý¾Ý¿â
1.È·¶¨Êý¾Ý¿âÃû¡¢Êý¾Ý¿âʵÀýÃûºÍ·þÎñÃû
¹ØÓÚÊý¾Ý¿âÃû¡¢Êý¾Ý¿âʵÀýÃûºÍ·þÎñÃû£¬ÎÒ֮ǰÓÐרÃÅÓÃһƪÀ´Ïêϸ½éÉÜ¡£ÕâÀï¾Í²»ÔÙ˵Ã÷ÁË¡£
2.´´½¨²ÎÊýÎļþ
²ÎÊýÎļþºÜÈ·¶¨ÁËÊý¾Ý¿âµÄ×ÜÌå½á¹¹¡£Oracle10gÓÐÁ½ÖÖ²ÎÊýÎļþ£¬Ò»¸öÊÇÎı¾²ÎÊýÎļþ£¬Ò»ÖÖÊÇ·þÎñÆ÷²ÎÊýÎļþ¡£ÔÚ´´½¨Êý¾Ý¿âʱÏÈ´´½¨Îı¾²ÎÊýÎļþ£¬ÔÚÊý¾Ý¿â´´½¨ºó£¬¿ÉÒÔÓÉÎļþ²ÎÊýÎļþ´´½¨·þÎñÆ÷²ÎÊýÎļþ¡£Îı¾²ÎÊýÎļþµÄÈ¡Ãû·½Ê½ÎªinitORACLE_SID.ora,ÆäÖУ¬ORACLE_SIDÊÇÊý¾Ý¿âʵÀýÃû¡£ÆäÃû³Æ¼°Â·¾¶Îª£º
/home/app/oracle/product/10.1.0/admin/DB_NAME/pfile/initORACLE_SID.ora
ÆäÖУ¬DB_NAMEΪÊý¾Ý¿âÃû¡£ËùÒÔ£¬Ó¦´´½¨Ò»¸öÒÔÖ®ÃüÃûµÄĿ¼£¬²¢½«Îı¾²ÎÊýÎļþ´æ·ÅÔÚÉÏÊöĿ¼ÖС£¼ÙÉèд´½¨µÄÊý¾Ý¿âÃûΪMYORACLE£¬SIDÓëÊý¾Ý¿âÃûÒ»Ö¡£ÔòÉÏÊöĿ¼ʵ¼ÊΪ£º
/home/app/oracle/product/10.1.0/admin/MYORACLE/pfile/initMYORACLE.ora
1)²ÎÊýÎļþµÄ½éÉÜ
²ÎÊýÎļþ¾ö¶¨×ÅÊý¾Ý¿âµÄ×ÜÌå½á¹¹£¬ÓÃÓÚÉèÖÃÊý¾Ý¿âµÄ½ü260¸öϵͳ²ÎÊý¡£ÏÂÃæ·ÖÀà±ð˵Ã÷һϸ÷²ÎÊýµÄ×÷Ó㬹ØÓÚ²ÎÊýµÄÏêϸʹÓÃ˵Ã÷Çë²Î¿¼Oracle¹Ù·½²Î¿¼Îĵµ¡£
a.Êý¾Ý¿â±êʶÀà²ÎÊý
DB_NAME: Êý¾Ý¿âÃû£¬´Ë²ÎÊýÔÚ´´½¨Êý¾ÝÇ°¾ö¶¨£¬Êý¾Ý¿â´´½¨ºóÐÞ¸Äʱ£¬±ØÐ뽨¿ØÖÆÎļþ
DB_DOMAIN: Êý¾Ý¿âÓòÃû£¬ÓÃÓÚÇø±ðͬÃûÊý¾Ý¿â¡£Êý¾Ý¿âÃûÓëÓòÃûÒ»Æð¹¹³ÉÁËÈ«¾ÖÊý¾Ý¿âÃû
INSTANCE_NAME: Êý¾Ý¿âʵÀýÃû£¬¿ÉÒÔÓëÊý¾Ý¿âÏàͬ
SERVICE_NAMES: Êý¾Ý¿â·þÎñÃû£¬ÓëÈ«¾ÖÊý¾Ý¿âÃûÏàͬÈç¹ûûÓÐÓòÃû£¬Ôò·þÎñÃû¾ÍÊÇÊý¾Ý¿âÃû
b.ÈÕÖ¾¹ÜÀíÀà²ÎÊý
LOG_ARCHIVE_START: ÊÇ·ñÆô¶¯×Ô¶¯¹éµµ½ø³ÌARCH
LOG_ARCHIVE_DEST: ¹éµµÈÕÖ¾Îļþ´æ´¢Ä¿Â¼
LOG_ARCHIVE_FORMAT: ¹éµµÈÕÖ¾ÎļþµÄĬÈÏÎļþ´æ´¢¸ñʽ
LOG_ARCHIVE_DUPLEX_DEST: ¹éµµÈÕÖ¾Îļþ¾µÏñ´æ´¢Ä¿Â¼£¨Oracle8ÒÔÉÏ£©
LOG_ARCHIVE_DEST_n: ¹éµµÈÕÖ¾Îļþ´æ´¢Ä¿Â¼£¨Oracle8iÒÔÉÏ£©
LOG_ARCHIVE_DEST_STATE_n: ÉèÖòÎÊýLOG_ARCHIVE_DEST_nʧЧ»òÉúЧ
LOG_ARCHIVE_MAX_PROCESSES: ÉèÖÃ×Ô¶¯¹éµµ½ø³Ì
Ïà¹ØÎĵµ£º
OracleÉó¼Æ¹¦ÄÜ
Éó¼ÆÊǶÔÑ¡¶¨µÄÓû§¶¯×÷µÄ¼à¿ØºÍ¼Ç¼£¬Í¨³£ÓÃÓÚ£º
u Éó²é¿ÉÒɵĻ¡£ÀýÈ磺Êý¾Ý±»·ÇÊÚȨÓû§Ëùɾ³ý£¬´Ëʱ°²È«¹ÜÀíÔ±¿É¾ö¶¨¶Ô¸Ã Êý¾Ý¿âµÄËùÓÐÁ¬½Ó½øÐÐÉó¼Æ£¬ÒÔ¼°¶ÔÊý¾Ý¿âµÄËùÓбíµÄ³É¹¦µØ»ò²»³É¹¦µØɾ³ý½øÐÐÉó¼Æ¡£
u &n ......
http://inthirties.com:90/thread-1233-1-1.html
ºÃûÓÐÅöSolarisÁË£¬ÊÖÓÐЩÉúÁË£¬¿´À´ÕæҪװ¸ösolaris£¬Æ½Ê±¶àÍæÍæ¡£
ÔÚsolarisÉÏ×°Oracle 10gÏÈ¡£
1. ¼ì²é°²×°ÒÀÀµ°ü
¹Ù·½ÒªÇóµÄ°ü
SUNWarc
SUNWbtool
SUNWhea
SUNWlibm
SUNWlibms
SUNWsprot
SUNWtoo
SUNWi1of
SUNWi1cs
SUNWi15cs
SUNWxwfnt
Ö´ÐÐÃüÁî
# p ......
1. select * from emp;
2. select empno, ename, job from emp;
3. select empno ±àºÅ, ename ÐÕÃû, job ¹¤×÷ from emp;
4. select job from emp;
5. select distinct job from emp;
6. select distinct empno, job from emp;
˵Ã÷:ÒòΪ¹ÍÔ±±àºÅ²»Öظ´, ËùÒÔ´Ëʱ֤Ã÷ËùÓеÄÁÐûÓÐÖظ´,ËùÒÔ²»ÄÜÏû ......
·¢ÏÖһƪ¹ØÓÚÓαêµÄÎÄÕ£¬¸Ð¾õдµÄºÜ²»´í£¬ÏÈÊÕ²ØÁË£»µ«ÊÇÀïÃæÓÐһЩ´íÎó£¬=ÓÐʱ¼äÁËÔÙÕûÀíһϡ£
--------
ÎÒÃǽ«ÌÖÂÛ¸÷ÖÖÓÃÓÚ·ÃÎÊORACLEÊý¾Ý¿âµÄDDLºÍTCLÓï¾ä¡£
²éѯ
SELECTÓï¾äÓÃÓÚ´ÓÊý¾Ý¿âÖвéѯÊý¾Ý£¬µ±ÔÚPL/SQLÖÐʹÓÃSELECTÓï¾äʱ£¬ÒªÓëINTO×Ó¾äÒ»ÆðʹÓ㬲éѯµÄ·µ»ØÖµ±»¸³Ó ......
ÓÃhibernate²éѯ·Öҳʱ£¬·Ò³ÏÔʾÖÐÓÐÉÙÁ¿¼Ç¼ÊÇÖظ´µÄ¡£ÒѾȷÈÏsqlд·¨Ã»´íÎó¡£
select savebillin0_.*,entityacct2_.*
from save_bill_info savebillin0_,
CUST_INFO custinfo1_,
entity_acct_bill entityacct2_
where savebillin0_.cust_id = custinfo1_.ID
and entityacct2_.ACCOU ......