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

Oracle Stream ÅäÖÃ

Oracle  Stream ÅäÖÃ
»·¾³£º
OS:Redhat Linux
Oracle 10.2.0.4
source:TEST
destnation:STANDBY
==×¼±¸==
1.¹éµµÈÕÖ¾ÅäÖãº
SQL> archive log list;
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            /home/oracle/archivelog
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            /home/oracle/archivelog
---ÒÔÏÂûÓÐרÃÅ˵Ã÷µÄ¶¼ÊÇsysÓû§---
2.ÔÚÔ´stream1ÉÏÅäÖÃSupplemental loging£º
ÔÚÔ´ÉÏ£º
SQL> alter database add supplemental log data;
Database altered.
3.Á½Ì¨»úÆ÷ÉÏÐÞ¸Äglobal_name:
stream1:
SQL> alter system set global_names=true scope=both;
SQL> alter database rename global_name to TEST.com;
stream2:
SQL> alter system set global_names=true scope=both;
SQL> alter database rename global_name to STANDBY.com;
4.Ð޸ijõʼ»¯²ÎÊý£º
²Î¿¼¹Ù·½ÎĵµÈ·¶¨ÐèÒªÀ´¼ì²éºÍÉ趨²ÎÊý
5.´´½¨stream¹ÜÀíÓû§²¢±í¿Õ¼ä£¬ÅäÖÃȨÏÞ£¬sourceºÍdest£º
5.1 ΪstrmadminÓû§´´½¨¶ÀÁ¢±í¿Õ¼ä
TEST:
SQL> CREATE TABLESPACE streams_tbs DATAFILE '/oradata/TEST/streams_tbs.dbf'
SIZE 25M REUSE AUTOEXTEND ON MAXSIZE UNLIMITED;
Tablespace created.
STANDBY:
SQL> CREATE TABLESPACE streams_tbs DATAFILE '/oradata/STANDBY/streams_tbs.dbf'
SIZE 25M REUSE AUTOEXTEND ON MAXSIZE UNLIMITED;
Tablespace created.
5.2 sourceºÍdest´´½¨ÏàͬÓû§ºÍȨÏÞ£º
SQL> CREATE USER strmadmin IDENTIFIED BY strmadminpw
     DEFAULT TABLESPACE streams_tbs
     QUOTA UNLIMITED ON streams_tbs;
User created.
SQL> GRANT DBA TO strmadmin;
Grant succeeded.
SQL> BEGIN
2&nb


Ïà¹ØÎĵµ£º

jdbcÁ¬½ÓOracle

      ËäȻѧϰJavaºÜ¾ÃÁË£¬×Ô¼ºÒ²Á¬½Ó¹ýһЩÊý¾Ý¿â£¬±ÈÈçmysqlÖ®ÀàµÄ£¬Èç½ñÄØ£¬Ò²Ñ§Ï°ÁËÒ»¶Îʱ¼äµÄOracle£¬È»¶øÄØ£¬½ñÌìÊÇÎÒµÚÒ»´ÎÁ¬½ÓOracle£¬ºÙºÙ£¬Ó¦¸Ã»¹²»ËãÌ«³Ù°É¡£
    ½ñÌìÄØ£¬Óе㱿׾£¬´ó¼ÒĪЦ£¡
    ÎÒÕâÊÇÒ»¸ö²éѯÀý×Ó
    Ê×ÏÈ£¬Ô ......

Oracle Exception

BEGIN
¡¡¡¡SELECT ...
¡¡¡¡SELECT ...
¡¡¡¡SELECT ...
¡¡¡¡...
¡¡¡¡EXCEPTION
¡¡¡¡WHEN NO_DATA_FOUND THEN -- catches all ’no data found’ errors
¡¡¡¡
¡¡¡¡2¡¢Òì³£µÄ·ÖÀà
¡¡¡¡
¡¡¡¡ÓÐÁ½ÖÖÀàÐ͵ÄÒì³££¬Ò»ÖÖΪÄÚ²¿Òì³££¬Ò»ÖÖΪÓû§×Ô¶¨ÒåÒì³££¬ÄÚ²¿Òì³£ÊÇÖ´ÐÐÆڼ䷵»Øµ½PL/SQL¿éµÄORACLE´íÎó»òÓÉPL/ ......

OracleµÄSOME,ANYºÍALL²Ù×÷

ƽʱºÜÉÙÓõÄÕ⼸¸ö²Ù×÷£¬½ñÌìÓöµ½ÁË¡£ÓÚÊÇÓÖ¿´ÁËÒ»ÏÂÎĵµ¡£
SOMEºÍANYÒ»Ñù£¬ÊDZȽϿíËɵģ¬ÀàËÆÓÚOR¡£Âú×ãÆäÖÐÈκÎÒ»¸ö¶¼¿ÉÒÔ¡£
ALLÒªÇóÑϸñһЩ£¬ÀàËÆÓÚAND£¬±ØÐëÈ«²¿Âú×ã²Å¿ÉÒÔ¡£
²»Äܵ¥¶ÀʹÓ㺠Must be preceded by =, !=, >, <, <=, >=.
Æäʵ¸üÓ¦¸Ã¹Ø×¢µÄÊǽô¸ú×ŵı¸×¢ÐÅÏ¢£¬Õâ¸öÒ»¿ªÊ¼±È½ÏÄÑÒÔÀí½â ......

oracleÊý¾Ý±¸·Ý

/// <summary>  
        /// Êý¾Ý¿â±¸·Ý  
        /// </summary>  
        /// <param name="fileName">dmpÎļþÃû³Æ</param>  
......

ÔËÓÃOracle ODP.NET 11gµÄ.NET³ÌÐò¹«²¼²½Öè

ODP.NET 11gÊÇOracle¹«²¼µÄ¹©.NET³ÌÐò·ÃÎÊOracleÊý¾Ý¿âµÄADO.NET×é¼þ£¬±È΢Èí×Ô´øµÄOracle×é¼þÐÔÄܺ㬸ü¿ÉÒÔ·ÃÎÊUDT(User Defined Type)²¿À࣬Procedure£¬REFÖ®Àà¸ß¼¶OracleÌØÕ÷¡£
¡¡¡¡.NET 1.1µÄ¿Í»§¶Ë¼±ÐèµÄ¹«²¼×ÊÁÏÈç´Î£º
¡¡¡¡¡ôOracle.DataAccess.dll (odt111odp.netinÒ».x)
¡¡¡¡¡ôOraOps11.dll £¨odt111in£© ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ