OracleÀ䱸·Ýʱ³öÏÖµÄÇé¿ö
ÏÈÀ´¼òµ¥µÄ˵һÏÂORACLEµÄ±¸·Ý·½Ê½£¬Ïêϸ¹¦ÄÜ¿ÉÒÔËÑË÷һϡ£
Ò»ÖÖÊÇÂß¼±¸·Ý£¬¼´ËùνµÄµ¼³ö(Export)ºÍµ¼Èë(Import)ÃüÁÕâÖÖ·½Ê½µÄÓŵãÊÇ£¬Äܹ»¶ÔÊý¾Ý¿âÖеÄÿ¸ö¶ÔÏó½øÐб¸·Ý£¬²¢ÇÒʵÏÖ²»Í¬Æ½Ì¨ÏµÄÊý¾ÝǨÒÆ£¬µ«±¸·ÝµÄʱºòÊý¾Ý¿â²»ÄÜÊǹرյģ¬´ÓCMDÃüÁî½øÈ룬ȱµãÊÇÎÞ·¨±£Ö¤½éÖʵÄËðʧ£¬Ö»ÊÇÂß¼ÉϵÄÊý¾Ý±¸·Ý£¬Ò»°ãÊÊÓÃÓÚÈÕ³£±¸·ÝºÍСÊý¾ÝÁ¿µÄά»¤¡£
¶þÖÖÊÇÎïÀí±¸·Ý£¬ÎïÀí±¸·Ý·ÖÀ䱸·ÝºÍÈȱ¸·Ý£¬À䱸·Ý£¬·Ç¹éµµÄ£Ê½£¬ÊÇÔڹرÕÊý¾Ý¿âµÄÇé¿öÏ£¬½«Ïà¹ØµÄÊý¾Ý¿â¡¢¿ØÖÆ¡¢²ÎÊý¡¢ÈÕÖ¾ÎļþµÈͳһ±¸·Ý£¬Æ䱸·Ý»Ö¸´Ëٶȿ죬°²È«ÐÔÒ²¸ß£¬È±µãÊÇ£¬±¸·ÝµÄÊÇÖ»Äܹ»»Ö¸´µ½Ä³Ò»¸öµãÉÏ£¬²¢ÇÒÎÞ·¨ÊµÏÖij¸ö¶ÔÏóµÄ»Ö¸´£¬Ö÷ҪʹÓÃÔÚʵʱҪÇ󲻸ß(¼´¿ÉÒԹرÕÊý¾Ý¿â£©»òÕßÕûÌåÊý¾ÝǨÒÆʱʹÓá£Èȱ¸·Ý£¬¹éµµÄ£Ê½£¬ÊÇÔÚÊý¾Ý¿â²»¹Ø±ÕµÄÇé¿öϽøÐб¸·Ý£¬ÀíÂÛÉÏ¿ÉÒÔ»Ö¸´µ½µ±Ç°µÄÇ°Ò»Ã룬ȱµãÊÇ£¬²Ù×÷¸´ÔÓ£¬ÐèÒª±È½Ï¸ßµÄˮƽ£¬Öм䲻ÄܳöÏÖ²î´í£¬·ñÔòÎÞ·¨»Ö¸´£¬ÁíÍâ¹éµµÎļþÕ¼Óÿռä½Ï´ó£¬Ö÷ҪʹÓÃÔÚÊý¾Ý¿â·ÃÎÊÁ¿Ð¡»òÐèҪʵÏÖ±í¿Õ¼äºÍÊý¾ÝÎļþµÄ±¸·Ý£¬µ±È»ÁíÍâÒ»¸ö¾ÍÊǶԱ¸·Ý¾«¶ÈÒªÇó±È½Ï¸ßµÄ³¡ºÏ¡£
ÏÂÃæµÄÊÇÎÒÔÚÀ䱸·Ý»¹ÔÊý¾Ý¿âʱÓöµ½µÄÇé¿ö£º
ÎÒÔÚһ̨µçÄÔAµÄ°²×°ÁËOracle10g£¬°²×°Ä¿Â¼ÊÇD:\oracle\product\10.2.0£¬¶ÔÓ¦µÄÊý¾Ý¿âµÄĿ¼ÊÇD:\oracle\product\10.2.0\oradata£¬ÔÚÁíÍâһ̨µçÄÔB£¬Ò²°²×°ÁËOracle10£¬°²×°Ä¿Â¼ÊÇ£ºD:\oracle\product\10.2.0£¬Êý¾ÝÎļþ·¾¶Îª:D:\oracle\product\10.2.0\oradata£¬¼´Á½Ì¨µçÄÔµÄÎļþ·¾¶ÍêÈ«Ïàͬ£¬Õâʱ£¬À䱸·Ý¾ÍÏ൱µÄÈÝÒ×£¬Ö±½ÓÍ£µôµçÄÔAµÄÊý¾Ý¿â·þÎñ£¬È»ºó¿½±´ÏàÓ¦µÄÎļþµ½µçÄÔBÉÏ£¬½«µçÄÔBµÄ·þÎñ¿ªÆô¾Í¿ÉÒÔʹÓÃÁË¡£
µ«ÊÇ£¬Èç¹ûÎÒÔÚÁíÍâһ̨µÄ²»Í¬Ä¿Â¼Ï°²×°ÁËOracle10g,°²×°Â·¾¶ÎªE:\oracle\product\10.2.0£¬Èç¹ûûÓÐÏàÓ¦µÄÊý¾Ý¿â£¬ÎÒÃÇ¿ÉÒÔʹÓÃÏòµ¼»òÕßÃüÁîн¨Ò»¸öÖ¸¶¨ÏàÓ¦µÄÊý¾ÝÎļþ·¾¶ÎªE:\oracle\product\10.2.0\oradata£¬ÉÏÃæµÄ·½·¨£¬ÒòΪÏà¹ØµÄÊý¾Ý¡¢ÈÕÖ¾¼°¿ØÖÆÎļþ¶¼¶¨Î»µÄÊǵçÄÔA±¸·ÝµÄĿ¼¡£ËÑË÷ÁËÍøÉϵÄÒ»´ó°Ñ£¬×îºó²ÉÓÃÁËÕâÑùµÄ·½·¨¡£
1.½«µçÄÔAµÄÊý¾Ý¿âÀ䱸·Ý
2.½«µçÄÔBµÄOracleServiceXXXÍ£µô£¬»òÕßÔÚCMD shutdown immediate
3.¿½±´µ½µçÄÔBµÄÊý¾Ý¿âÎļþ·¾¶
Ïà¹ØÎĵµ£º
oracle±í¿Õ¼ä²Ù×÷Ïê½â
1
2
3×÷Õߣº À´Ô´£º ¸üÐÂÈÕÆÚ£º2006-01-04
5
6
7½¨Á¢±í¿Õ¼ä
8
9CREATE TABLESPACE data01
10DATAFILE '/ora ......
±¾ÎĽéÉÜÁËÈçºÎÀûÓÃsqlplus copy ÃüÁîÔÚÁ½¸öÊý¾Ý¿â¼äתÒÆÊý¾Ý
ÎÞÐèÓõ½dblink, Á½¸öÊý¾Ý¿â¼ä²»ÐèÖ±½ÓͨѶ£¬µ±È»£¬ÐèÒªÓÐÒ»¸öclient¶ÎÄÜͬʱÒÔsqlplusÁ¬½Óµ½Á½¸öÊý¾Ý¿â
ÎÊÌâµÄÌá³ö
ÂÛ̳ÉÏÓÐÈËÌá³öÕâÑùµÄÎÊÌ⣺
¼ÙÉèÓÐÁ½¸öÊý¾Ý¿â,·Ö±ð´¦ÓÚÁ½¸ö²»Í¬µÄÍøµ«ÓÐÒ»¸ö¿Í»§»ú°²ÁËÁ½¿éÍø¿¨¿ÉÒÔͬʱÁ¬µ½Á½¸öÊý¾Ý¿âÇëÎÊÈç¹û²»Í¨¹ýÔÚ¿ ......
×¢£ºÏÂÃæÖ»ÊÇÎÒ´ÖÁӵļǼһÏ£¬×Ô¼ºÔÚ¿ª·¢ÖÐËùѧµÄÒ»²¿·Ö×ÊÁÏ£¡
1£® µÚÒ»¡¢ÊÇÏÂÔØÒ»¸ö“Oracle9i¿Í»§¶Ë¾«¼ò°æ.exe”¿Í»§¶Ë£¬È»ºó°ÑËü°²×°µ½CÅÌÏÂÃæ¡£
È»ºó°ÑÎÒÃÇ×Ô¼ºÅäÖúõĔ tnsnames.ora”Îļþ£¬¸´¸ÇC:\oracle\ora90\network\adminÏÂÃæµÄtnsnames.oraÎļþ¡£
2£® ÔÚVS2005¿ª·¢¹¤¾ßÖ ......
Oracle¹ÜÀíÓëά»¤.ÊÖ¹¤´´½¨Êý¾Ý¿âÒÔ¼°½Å±¾
ת×Ô ²Ýľ¹Ï
Ò»¡¢Ç°ÑÔ
˵ʵ»°£¬ÔçÒÑÑá¾ëÁËʹÓÃdbcaµÄ´´½¨Êý¾Ý¿â£¬´ó¸Å±È½ÏÓеã×÷ÓõÄÊÇ¿ÉÒÔÉú³É´´½¨½Å±¾°Õ¡£
¡¶Oracle¹ÜÀíÓëά»¤.°²×°´´½¨Æô¶¯¹Ø±ÕÊý¾Ý¿âµÄ³£¼ûÎÊÌâ(Ò»)¡·(Èý¡¢´´½¨Êý¾Ý¿â)Ò»ÎÄÖÐÓÐËùÌá¼°¡£±¾ÎÄÖ÷Òª¾ÍÊÇÏêÊöÊÖ
¹¤Ê¹Óýű¾´´½¨Oracle 10gÊý¾Ý¿â¡£
......
¶ÔÓÚx$µÄÇé¿ö
SQL> grant select on sys.x$bh to t1;
grant select on sys.x$bh to t1
ERROR at line 1:
ORA-02030: can only select from fixed tables/views
¶ÔÓÚfixed tables/viewsÖ»ÄÜselect
Èç¹ûÏë°Ñx$bhµÄselectȨÏÞgrant¸øÆäËûÓû§Ôõô°ìÄØ,¿ÉÒÔ±äͨһÏÂ
SQL> create view xbh as select * from sys.x$ ......