Fedora10 É쵀 Oracle 10.2.0.1 ÊÖ¹¤½¨¿âÈ«¹ý³Ì
Fedora10 É쵀 Oracle 10.2.0.1 ÊÖ¹¤½¨¿âÈ«¹ý³Ì
NOTE:
(1)¼Ç×ÅÒªÔÚoracleÓû§Ï¶ø²»ÊÇrootÏÂÖ´ÐÐÕâЩ²Ù×÷£¬·ñÔòÒòΪȨÏÞµÄÎÊÌâ»á´øÀ´ÎÞÇîÎÞ¾¡µÄÂé·³
(2)Òª¼ì²é¹ý³ÌÖÐËùÓгöÏÖµÄĿ¼Ãû¶¼ÊǶÔÓ¦ÕýÈ·ÇÒÓÐЧµÄ£¬·ñÔò¼¸ºõûÓпÉÓõĴíÎóÐÅÏ¢À´²éÕÒÕâÖÖ´íÎó
(3)Òª¼ì²é¹ý³ÌÖÐËùÓгöÏÖµÄÃû³Æ¶¼ÊÇÕýÈ·¶ÔÓ¦µÄ£¬Èçinitbankdb.oraÖеÄundo_tbsÓëdatabase.sqlÖеÄÒ»ÖÂ
(4)scimÔÚFedora10Ó¢ÎÄ»·¾³ÖÐʹÓÃ: $ im-chooser
(1)ÉèÖû·¾³±äÁ¿
$ export ORACLE_BASE=/u01/app/oracle/oracle
$ export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
$ export ORACLE_SID=bankdb
(×¢£ºORACLE_BASEºÍORACLE_HOME±äÁ¿µÄÉèÖúͰ²×°OracleÀïµÄÉèÖÃÒ»Ñù¡£
Èç¹ûÄúÔÚͬһ·þÎñÆ÷ÉÏ°²×°Á˶à¸ö Oracle ²úÆ·»òÊý¾Ý¿â£¬Ôò ORACLE_HOME¡¢ORACLE_SID ºÍ PATH ±äÁ¿¿ÉÄÜ»á¸ü¸Ä¡£ORACLE_BASE ±äÁ¿²»Ó¦¸ü¸Ä£¬²¢¿ÉÒÔÔÚÐèҪʱÔÚÄúµÄµÇ¼ÅäÖÃÎļþÖÐÉèÖÃËü¡£
ORACLE_BASEÏÂÊÇadminºÍproduct£¬ORACLE_HOMEÏÂÔòÊÇORACLEµÄÃüÁî¡¢Á¬½Ó¿â¡¢°²×°ÖúÊÖ¡¢listenerµÈµÈһϵÁеĶ«¶«¡£ÕâÖ»ÊÇORACLE×Ô¼ºµÄ¶¨ÒåÏ°¹ß¡£ORACLE_HOME±ÈORACLE_BASEĿ¼Ҫ¸üÉîһЩ¡£Ò²¾ÍÊÇ˵£ºORACLE_HOME£½$ORACLE_BASE/product/version¡£
ORACLE_BASEÊÇoracleµÄ¸ùĿ¼£¬ORACLE_HOMEÊÇoracle²úÆ·µÄĿ¼¡£¼òµ¥Ëµ£¬ÄãÈç¹û×°ÁË2¸ö°æ±¾µÄoracle£¬ÄÇôORACLE_BASE¿ÉÒÔÊÇÒ»¸ö£¬µ«ORACLE_HOMEÊÇ2¸ö)
(2)½¨Á¢ÃÜÂëÎļþ
$ orapwd file=$ORACLE_HOME/dbs/bankdb.pwd password=oracle entries=30 force=y
(3)½¨³õʼ»¯²ÎÊýÎļþpfile
$ gedit $ORACLE_HOME/dbs/init$ORACLE_SID.ora
control_files = ( /u01/app/oracle/oradata/bankdb/control.001.dbf,
/u01/app/oracle/oradata/bankdb/control.002.dbf,
/u01/app/oracle/oradata/bankdb/control.003.dbf )
db_name &nbs
Ïà¹ØÎĵµ£º
OracleÊý¾Ý¿âSCNºÅÏê½â:
¡¡¡¡ÏµÍ³¼ì²éµãscn(v$database(checkpoint_change#))
¡¡¡¡Êý¾ÝÎļþ¼ì²éµã(v$datafile(checkpoint_change#))
¡¡¡¡Êý¾ÝÎļþÖÕÖ¹scn(v$datafile(last_change#))
¡¡¡¡Êý¾ÝÎļþÖдæ·ÅµÄ¼ì²éµã
¡¡¡¡Æô¶¯scn (v$datafile_header(checkpoint_change#)
¡¡¡¡1¡¢ÏµÍ³¼ì²éµãscn
¡¡¡¡µ±Ò»¸ö¼ì²éµã¶¯×÷Íê³ ......
ADO ʹÓà ORACLE provider FOR OLE DB Çý¶¯Ê±
µ÷Óô洢¹ý³ÌÐèÒª·µ»ØÓαêʱ£¬ÔÚÁ¬½Ó×Ö·û´®ÖÐÔö¼Ó
PLSQLRSet=1 ²ÎÊý¡£
´æ´¢¹ý³ÌÖеÄÓα겻ÐèÒª¸¶³õʼֵ
Èç:
sp1: TADOStoredProc;
sp1.Close;
sp1.ProcedureName := 'pkg_ScanList_By_JobNo.sp_GetScanList';& ......
¡¡¡¡ÔÚ´óÁ¿ÒµÎñÊý¾Ý´¦ÀíµÄÏîÄ¿ÖУ¬¿ÉÒÔ¿¼ÂÇʹÓ÷ÖÇø±íÀ´Ìá¸ßÓ¦ÓÃϵͳµÄÐÔÄܲ¢·½±ãÊý¾Ý¹ÜÀí£¬±¾ÎÄÏêϸ½éÉÜÁË·ÖÇø±íµÄʹÓá£
¡¡¡¡
¡¡¡¡ÔÚ´óÐ͵ÄÆóÒµÓ¦ÓûòÆóÒµ¼¶µÄÊý¾Ý¿âÓ¦ÓÃÖУ¬Òª´¦ÀíµÄÊý¾ÝÁ¿Í¨³£¿ÉÒÔ´ïµ½¼¸Ê®µ½¼¸°ÙGB£¬ÓеÄÉõÖÁ¿ÉÒÔµ½TB¼¶¡£ËäÈ»´æ´¢½éÖʺÍÊý¾Ý´¦Àí¼¼ÊõµÄ·¢Õ¹Ò²ºÜ¿ì£¬µ«ÊÇÈÔÈ»²»ÄÜÂú×ãÓû§µÄÐèÇó£¬ÎªÁË ......
Íⲿ±í×÷ÓÃ:¼ÓÔغÍжÔØÊý¾Ý
Íⲿ±í¶¼ÊÇÖ»¶Á±í,²»ÄܽøÐÐupdate,insert,delete²Ù×÷.
Oracle ÌṩÁ½ÖÖ·ÃÎÊÇý¶¯: ORACLE_LOADER, ORACLE_DATAPUMP(oracle 10.2ºóÐÂÔöµÄÇý¶¯)
ORACLE_LOADER: ËüÀûÓÃoracle loader¼¼Êõ´ÓÍⲿ±í¶ÁÈ¡Êý¾Ý. Ëü»¹¾ßÓÐÀàËÆSQL*Loader¹¤¾ß¿ØÖÆÎļþÓï·¨µÄÊý¾ÝÓ³ÉäÄÜÁ¦.
ORACLE_DAT ......
oracleȨÏÞÌåϵÖÐÓиödefault role£¬±È½ÏÄÑÒÔÀí½â¡£ÏÂÃæÓÃʵÀý˵Ã÷Ò»ÏÂ×÷Óá£
ÎÒÃÇ¿ÉÒÔ¸øij¸öÓû§·ÖÅäһЩ½ÇÉ«£¬±ÈÈçrole r1,r2,r3,r4£¬¶øÆäÖпÉÒÔ½«Ä³Ð©½ÇÉ«±ÈÈçr1ÉèÖÃΪdefault role£¬ÆäËûµÄ²»ÉèÖóÉdefault role£¬ÕâÑù£¬µ±¸ÃÓû§µÇ¼ʱ£¬×Ô¶¯¾ßÓÐdefault roleÖÐËù°üº¬µÄȨÏÞ£¬ÆäËûµÄ½ÇÉ«Ëù¾ßÓеÄȨÏÞҪͨ¹ýset role ½ÇÉ ......