Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Oracle VPDʵÏÖÊý¾ÝϸÁ£¶È·ÃÎÊ£¨¸üºÃµÄȨÏÞ¿ØÖÆ£©

¸ÅÊö
ÐéÄâרÓÃÊý¾Ý¿â (VPD) ÌṩÁ˽ÇÉ«ºÍÊÓͼÎÞ·¨ÌṩµÄÐм¶·ÃÎÊ¿ØÖÆ¡£¶ÔÓÚ»¥ÁªÍø·ÃÎÊ£¬ÐéÄâרÓÃÊý¾Ý¿â¿ÉÒÔÈ·±£ÔÚÏßÒøÐеĿͻ§Ö»ÄÜ¿´µ½ËûÃÇ×Ô¼ºµÄÕÊ»§¡£Web Íйܹ«Ë¾¿ÉÒÔÔÚͬһ Oracle Êý¾Ý¿âÖÐά»¤¶à¸ö¹«Ë¾µÄÊý¾Ý£¬µ«Ö»ÔÊÐíÿ¸ö¹«Ë¾²é¿´Æä×ÔÉíÊý¾Ý¡£
ÔÚÆóÒµÄÚ²¿£¬ÐéÄâÊý¾Ý¿â¿ÉÔÚÓ¦ÓóÌÐò²¿Êð·½Ãæ½µµÍÓµÓгɱ¾¡£¿ÉÒÔÔÚÊý¾Ý¿â·þÎñÆ÷Ò»´ÎʵÏÖ°²È«ÐÔ£¬¶ø²»ÓÃÔÚ·ÃÎÊÊý¾ÝµÄÿ¸öÓ¦ÓóÌÐòÖзֱðʵÏÖ°²È«ÐÔ¡£ÒòΪÊÇÔÚÊý¾Ý¿âÖÐʵʩ°²È«ÐÔ£¬ËùÒÔ²»¹ÜÓû§·ÃÎÊÊý¾ÝµÄ·½Ê½ÈçºÎ£¬°²È«ÐÔ½ÏÒÔÇ°¸ü¸ß¡£·ÃÎʼ´Ï¯²éѯ¹¤¾ß»òб¨±íÉú³É³ÌÐòµÄÓû§²»ÔÙÄÜÈƹý°²È«»·½Ú¡£ÐéÄâרÓÃÊý¾Ý¿âÊÇÒ»ÏîÖØÒª¼¼Êõ£¬Ê¹ÆóÒµÄܹ»¹¹½¨Íйܵġ¢»ùÓÚ Web µÄÓ¦ÓóÌÐò¡£Êµ¼ÊÉÏ£¬Ðí¶à Oracle Ó¦ÓóÌÐò±¾ÉíʹÓà VPD ʵʩÊý¾Ý·Ö¸ô£¬°üÀ¨ Oracle SalesOnline.com ºÍ Oracle Portal µÈ³ÌÐò¡£
ÐéÄâרÓÃÊý¾Ý¿âÈçºÎ¹¤×÷
½«Ò»¸ö»ò¶à¸ö°²È«²ßÂÔÓë±í»òÊÓͼ¹ØÁªºó£¬¾Í¿ÉÒÔʵÏÖÐéÄâרÓÃÊý¾Ý¿â¡£¶Ô´ø°²È«²ßÂԵıí½øÐÐÖ±½Ó»ò¼ä½Ó·ÃÎÊʱ£¬Êý¾Ý¿â½«µ÷ÓÃÒ»¸öʵʩ¸Ã²ßÂԵĺ¯Êý¡£²ßÂÔº¯Êý·µ»ØÒ»¸ö·ÃÎÊÌõ¼þ£¨WHERE ×Ӿ䣩£¬¼´Î½´Ê¡£Ó¦ÓóÌÐò½«Ëü¸½¼Óµ½Óû§µÄ SQL Óï¾ä£¬´Ó¶ø¶¯Ì¬ÐÞ¸ÄÓû§µÄÊý¾Ý·ÃÎÊȨÏÞ¡£
Äã¿ÉÒÔͨ¹ý±àдһ¸ö´æ´¢¹ý³Ì½« SQL ν´Ê¸½¼Óµ½Ã¿¸ö SQL Óï¾ä£¨ÓÃÓÚ¿ØÖƸÃÓï¾äµÄÐ춱ð·ÃÎÊȨÏÞ£©À´ÊµÊ© VPD¡£ÀýÈ磬Èç¹û John Doe£¨ËûÊôÓÚ Department 10£©ÊäÈë SELECT * from emp Óï¾ä£¬Ôò¿ÉÒÔʹÓà VPD Ìí¼Ó WHERE DEPT = 10 ×Ӿ䡣ÕâÑù£¬Äú±ã¿ÉÒÔͨ¹ý¶Ô²éѯ½øÐÐÐÞ¸ÄÀ´ÏÞÖÆ·ÃÎÊijЩÐеÄÊý¾Ý¡£
ÐéÄâרÓÃÊý¾Ý¿âÈ·±£ÎÞÂÛÓû§ÒÔºÎÖÖ·½Ê½·ÃÎÊÊý¾Ý£¨Í¨¹ýÓ¦ÓóÌÐò¡¢±¨±í±àд¹¤¾ß»ò SQL*Plus£©£¬¶¼½«Ç¿ÖÆʵʩͬһǿ´óµÄ·ÃÎÊȨÏÞ¿ØÖƲßÂÔ¡£ÕâÑù£¬Ê¹Óà VPD £¬ÒøÐбã¿ÉÒÔÈ·±£¿Í»§Ö»¿´µ½ËûÃÇ×Ô¼ºµÄÕÊ»§£¬µçÐŹ«Ë¾¿ÉÒÔ°²È«µØ¸ôÀë¿Í»§¼Ç¼£¬ÈËÁ¦×ÊÔ´Ó¦ÓóÌÐò¿ÉÒÔÖ§³Ö¸´ÔÓµÄÔ±¹¤¼Ç¼Êý¾Ý·ÃÎÊÔ­Ôò¡£
 
°¸Àý˵Ã÷
1.  ´î½¨»·¾³--´´½¨Ä£Ê½ÓµÓÐÕߺÍÏàÓ¦µÄÓû§£¬¸³ÓèȨÏÞ
CONNECT sys/password@service AS SYSDBA;
CREATE USER schemaowner IDENTIFIED BY schemaowner
DEFAULT TABLESPACE users TEMPORARY TABLESPACE temp;
GRANT connect, resource TO schemaowner;
CREATE USER user1 IDENTIFIED BY user1
DEFAULT TABLESPACE users TEMPORARY TABLESPACE temp;
GRANT connect, resource TO user1;
CREATE USER user2 IDENTIFIED BY user2
DEFAULT TABLESPACE users TEMPORARY TABLESPACE temp;
GR


Ïà¹ØÎĵµ£º

Oracle ·ÖÎöº¯Êý·Ö×éÀÛ¼Ó£¡

Óû§ºÅÂë µÇ½ʱ¼ä
1300000000 2010-01-01
1300000001 2010-01-01
1300000002 2010-01-02
1300000001 2010-01-02
1300000003 2010-01-03
1300000002 2010-01-03
1300000004 2010-01-04
1300000003 2010-01-04
1300000004 2010-01-02
1300000006 2011-01-04
1300000001 2011-01-04
 ÌÞ³ýÖظ´µ ......

ORACLE LOGMINERʹÓüòµ¥²½Öè

±¾ÉíÕâ¸ö²½ÖèºÜ¶à¸ßÊÖ¶¼ÒѾ­Ìù¹ýÁË£¬Ö»ÊÇÎÒÔÚʹÓÃÖз¢ÏÖ´óÌåÉÏ´ó¼ÒдµÄ¶¼ÓÐЩ¸´ÔÓ£¬ÓÚÊÇ£¬ÎÒ×ܽáÁ˸ö³¬¼¶¼ò»¯°æµÄ£¬·½±ã´ó¼ÒʹÓãº
1.°²×°LOGMNR°ü£¬ÐèÒª±¾²½Öèûʲô¿É¶à˵µÄ£¬Ö»ÊÇÐèҪעÒâÔÚÁ¬½ÓÊý¾Ý¿âµÄʱºòĬÈÏ×îºÃʹÓñ¾µØÑéÖ¤·½Ê½
C:\>sqlplus /nolog
SQL> conn / as sysdba
SQL> @D:\oracle\product\10 ......

ORACLE dblink С¼Ç

½¨DBLINK:
ʹÓÃpl/sql developer½¨£ºÕÒµ½Database Links,ÓÒ¼üн¨
                          Ãû³Æ£ºdblinkÃû  Á¬½Óµ½Óû§Ãû£ºÄ¿±êÊý¾Ý¿âµÇ¼Ãû ÃÜÂ룺Ŀ±êÊý¾Ý¿âÃÜÂë
   ......

Oracle ɾ³ý¹éµµÈÕÖ¾½Å±¾

¹éµµÈÕÖ¾¼Ç¼×ÅÊý¾Ý¿âµÄ²Ù×÷¼Ç¼£¬ÊÇ×öÊý¾Ý»Ö¸´µÄÒÀ¾Ý£¬Èç¹ûÊý¾Ý¿â¿ªÆôÁ˹鵵ģʽ£¬ÄÇô¾Í»á²úÉú´óÁ¿µÄ¹éµµÈÕÖ¾£¬µ±È»Èç¹ûÓÐRMAN±¸·ÝµÄ»°£¬¿ÉÒÔÔÚ±¸·ÝÖ®ºóɾ³ýÒѾ­±¸·Ý¹ýµÄÈÕÖ¾£¬Èç¹ûÊÇûÓвÉÓÃrman±¸·ÝµÄ»°£¬¾ÍÐèÒª×Ô¼ºÀ´É¾³ýÕâд¹éµµÈÕÖ¾¡£ ÏÂÃæµÄ¼¸¸ö½Å±¾¾Í¼õÇáÁËDBAµÄ¹¤×÷Á¿¡£
 
Linux ƽ̨:
0 2  * * * ......

OracleÓû§¹ÜÀí

1.´´½¨Óû§£º ÐèÒªDBAµÄȨÏÞ£¬Óï¾ä create user Óû§Ãû identified by ÃÜÂë¡£ eg. create user joe identified by m123; 2.¸ü¸ÄÃÜÂ룺 passw Óû§Ãû 3.ɾ³ýÓû§£º ÐèÒªDBAµÄȨÏÞ£¬Èç¹ûÓÃÆäËûÓû§È¥É¾³ýÔòÐèÒª¾ßÓÐdrop userµÄȨÏÞ¡£ drop user Óû§Ãû [cascade]; (Èç¹ûÓû§ÒѾ­´´½¨±íÁË£¬ÔòÓÃc ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ