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

oracleÀ䱸·Ý »Ö¸´

·½·¨Ò»£º×î¼òµ¥µÄ·½·¨£¨Ð轨¿â£©
±¸·Ý£º
  Ö±½Ó¿½±´oracleĿ¼ÏµÄadmin¡¢oradataÁ½¸öÎļþ¼Ð£¬ora92Ŀ¼ÏÂdatabase£¬µ½ÆäËû´æ´¢ÊµÏÖ±¸·Ý¡£
»Ö¸´£º
1.´´½¨Ò»¸öºÍÔ­À´Ò»ÑùµÄÊý¾Ý¿â¡£(°²×°Â·¾¶ºÍÊý¾Ý¿âÃû±ØÐëºÍÔ­À´Ò»ÖÂ)
2.ÓùÜÀíÔ±Á¬ÈëÊý¾Ý¿âºóÍ£Ö¹Êý¾Ý¿â¡£
3.°Ñ°²×°Ä¿Â¼ÏµÄadminºÍoradata¸´ÖƹýÈ¥¸²¸Ç£¨Èç¹û´æÔÚ¶à¸öÊý¾Ý¿â£¬¹À¼ÆÖ»ÐèÒª¸´ÖÆÏÂÃæµÄXJJĿ¼¾ÍÐÐÁË£©¡£
4.¸´ÖÆora92ÏÂÃæµÄdatabaseĿ¼£¨ÃÜÂëÎļþ£©¡£
5.Æô¶¯Êý¾Ý¿â¡£
ÉÏÊö±¸·ÝÁËÊý¾Ý¿âËùÓÐÐÅÏ¢°üÀ¨Êý¾Ý Óû§ ÃÜÂë¡£¡£¡£
Èç¹ûÕë¶Ôij¸öÊý¾Ý¿â Ö±½Ó±¸·ÝoradataϸÃÊý¾Ý¿âÎļþ¼´¿É¡£
·½·¨¶þ£º£¨²»Ð轨¿â£¬ÉÔÂé·³µã£©
À䱸·ÝÊý¾Ý±ØÐëÊÇÊý¾Ý¿â²»ÔÚopen״̬ÏÂ,¶ÔÊý¾Ý¿â½øÓÃÊý¾Ý±¸·Ý¡£ ¾ßÌå²Ù×÷£º
(1)£º ¹Ø±ÕDB £º shutdown immediate£»
(2)£ºcopy oradataĿ¼ÏµÄËùÓÐÎļþ£¬ °üÀ¨Êý¾ÝÎļþ£¬ ¿ØÖÆÎļþ£¬redo£¬µÈ£¬»¹ÐèÒªcopy ÃÜÂëÎļþ ÔÚĿ¼ora92Ï µÄdatabase ÖеÄpwd Îļþ.È«²¿copyµ½Ò»¸ö°²È«Ä¿Â¼ÖС£ÔÚsql Ï¿ÉÒÔÖ±½Ó¼ÓÒ»¸ö host È»ºóʹÓÃdosÃüÁî¡£Èçhost copy .............
(3)£ºÈç¹ûÊDzÙ×÷ϵͳµÄÖØÐ°²×°£¬Ö»ÒªÊÇͬÑùϵͳ£¬Í¬ÑùÊý¾Ý¿â°æ±¾£¬ÊÇ¿ÉÒÔ×öÀ䱸»Ö¸´¡£Ò»ÏÂ̸µÄÊÇϵͳµÄÖØÐ°²×°ºóµÄ²½Öè¡£
(4)£ºÕý³£°²×°oracleÈí¼þ£¨Ö®Ç°ÔÚpubÉÏһλÐÖµÜ˵²»ÐèÒª°²×°oracle¾Í¿ÉÒԸ㶨£¬±íʾ»³ÒÉ£©£¬Ö»ÐèÒª°²×°Èí¼þ£¬¿ÉÒÔ²»Óý¨ÊµÀý£¬½¨ÊµÀýµÄʱ¼äÒ²±È½Ï³¤£¬Ò²Ã»ÓбØÒª¡£ Èí¼þ°²×°ºÃÒԺ󣬿ªÊ¼×¼±¸»Ö¸´¡£
(5)£ºÊý¾Ý¸²¸Ç¹ýÈ¥°üÀ¨pwdÎļþ£¬·ÅÔÚÔ­À´µÄĿ¼£¬Èç¹ûĿ¼ÓÐËù¸Ä±äÔòÐèÒªÁíÍ⽨Á¢¿ØÖÆÎļþ£¬ÐÞ¸Äpfile¡£
(6)£º½¨Á¢·þÎñ£ºÊ¹ÓÃoradim ÃüÁî cmdÏ oradim -new -sid erp ±íʾ½¨Á¢Ò»¸ö·þÎñ£¬sidΪerp¡£¹ØÓÚoradimµÄÃüÁîÁíÍâ¸ø³öרÃŽâÊÍ¡£
(7)£º½¨Á¢¼àÌý£º net configuration assintant À´½¨Á¢£¬»òÓýű¾½¨Á¢²¢ÇÒ¿ªÆô¡£
(8)£º´ò¿ªÊý¾Ý¿â£º ÓÃoemÒ²ÐУ¬cmdÏÂÒ²ÐС£
set oracle_sid=erp;
sqlplus "/as sysdba";
startup;
select * from v$instance;
ÖÁ´Ë£¬À䱸·Ý»Ö¸´³É¹¦¡£¼´Ê¹ÄãÏÖÔÚÓÃoem´ò¿ªÊý¾Ý¿âʱ·¢ÏÖÌáʾÕÒ²»µ½sid £¬µ«Êµ¼ÊÉÏÄãÒѾ­³É¹¦ÁË£¬´ËʱֻÐèÒªÖØÆôһϵÄÄãµÄ·þÎñÆ÷¾Í¿ÉÒÔÁË¡£


Ïà¹ØÎĵµ£º

ORACLE jobʹÓ÷½·¨

EXP/IMP×¢Ò⣺´ÓÈ«¿âÂß¼­±¸·Ý°´Óû§µ¼Èëʱ£¬OracleûÓе¼ÈëJOB£¬²»ÖªµÀÕâ¸öÊÇOracleµÄbug£¬»¹ÊǹÊÒâÕâÑùʵÏֵġ£Õâ¸öÎÊÌâÔÚµ¼ÈëµÄÓû§ÃûºÍµ¼³öµÄÓû§Ãû²»Í¬Ê±³öÏÖ£¬Èç¹ûµ¼ÈëµÄÓû§ÃûºÍµ¼³öµÄÓû§ÃûÒ»Ö£¬Ôò²»»á³öÏÖÕâ¸öÎÊÌâ¡£»³ÒÉÊÇOracleµ÷ÓÃDBMS_IJOB°üʱ³öÏÖµÄÎÊÌâ¡£
×ÜÖ®£¬EXP/IMPµÄʱºòÐèÒª¿¼ÂÇJOB£¬²¢ÔÚ²Ù×÷½áÊøºó¼ì ......

OracleµÄrownumÔ­ÀíºÍʹÓÃ

Ô­Îijö×Ô£ºhttp://tenn.javaeye.com/blog/99339
ÔÚOracle
ÖУ¬Òª°´Ìض¨Ìõ¼þ²éѯǰNÌõ¼Ç¼£¬Óøörownum
¾Í¸ã¶¨ÁË¡£ 
select * from emp where rownum
 <= 5 
¶øÇÒÊéÉÏÒ²¸æ½ë£¬²»ÄܶÔrownum
ÓÃ">"£¬ÕâÒ²¾ÍÒâζ×Å£¬Èç¹ûÄãÏëÓÃ
 
select * from emp where rownum
&nbs ......

oracle´¥·¢Æ÷

´¥·¢Æ÷ÊÇÒ»ÖÖÌØÊâµÄ´æ´¢¹ý³Ì£¬ËüÔÚ²åÈ룬ɾ³ý»òÐÞ¸ÄÌØ¶¨±íÖеÄÊý¾Ýʱ´¥·¢Ö´ÐУ¬Ëü±ÈÊý¾Ý¿â±¾Éí±ê×¼µÄ¹¦ÄÜÓиü¾«Ï¸ºÍ¸ü¸´ÔÓµÄÊý¾Ý¿ØÖÆÄÜÁ¦¡£Êý¾Ý¿â´¥·¢Æ÷ÓÐÒÔϵÄ×÷Óãº
¡¡¡¡* °²È«ÐÔ¡£¿ÉÒÔ»ùÓÚÊý¾Ý¿âµÄֵʹÓû§¾ßÓвÙ×÷Êý¾Ý¿âµÄijÖÖȨÀû¡£
¡¡¡¡# ¿ÉÒÔ»ùÓÚʱ¼äÏÞÖÆÓû§µÄ²Ù×÷£¬ÀýÈç²»ÔÊÐíϰàºóºÍ½Ú¼ÙÈÕÐÞ¸ÄÊý¾Ý¿âÊý¾Ý¡£ ......

OracleÖÐNullÓë¿Õ×Ö·û´®''µÄÇø±ð

¾­²âÊÔ£¬ÔÚOracleÖУ¬¶ÔÓÚnullºÍ¿Õ×Ö·û´®'',webMethods JDBC Adapter ²éѯ³öÀ´¶¼»áÏÔʾnull.
¶øÔÚSQL SERVERÖУ¬»á·Ö±ðÏÖʵΪnullºÍ¿Õ×Ö·û´®¡£
º¬Òå½âÊÍ£º
ÎÊ£ºÊ²Ã´ÊÇNULL£¿
´ð£ºÔÚÎÒÃDz»ÖªµÀ¾ßÌåÓÐʲôÊý¾ÝµÄʱºò£¬Ò²¼´Î´Öª£¬¿ÉÒÔÓÃNULL£¬ÎÒÃdzÆËüΪ¿Õ£¬ORACLEÖУ¬º¬ÓпÕÖµµÄ±íÁ㤶ÈΪÁã¡£
ORACLEÔÊÐíÈκÎÒ»ÖÖÊý¾ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ