OracleÁ½±í(¶à±í)¹ØÁªupdateµÄд·¨
update customers a
set city_name=(select b.city_name from tmp_cust_city b where b.customer_id=a.customer_id)
where exists (select 1
from tmp_cust_city b
where b.customer_id=a.customer_id
)
-- update ³¬¹ý2¸öÖµ
update customers a
set (city_name,customer_type)=(select b.city_name,b.customer_type
from tmp_cust_city b
where b.customer_id=a.customer_id)
where exists (select 1
from tmp_cust_city b
where b.customer_id=a.customer_id
)
Ïà¹ØÎĵµ£º
ORA-00704: bootstrap process failure
ORA-1092 signalled during: alter database open...
½øÐÐÈçϲÙ×÷ºóOK.
SQL>startup upgrade
For Windows
SQL>@d:\oracle\product\10.2.0\db_1/rdbms/admin/catupgrd.sql
For Linux
SQL>@/u01/app/oracle/product/10.2.0/db_1/rdbms/admin/catupgrd.sql
´ýcatupgrd ......
ÔØ×ÔoracleÖÐÎļ¼ÊõÂÛ̳¡£´ÓÕûÌåÉϽéÉÜÁËÒ»¸ödbaµÄÖ°ÔðºÍÈÎÎñµÈµÈ¡£¡¡¡¡
ORACLEÊý¾Ý¿â¹ÜÀíÔ±Ó¦°´ÈçÏ·½Ê½¶ÔORACLEÊý¾Ý¿âϵͳ×ö¶¨ÆÚ¼à¿Ø£º
(1). ÿÌì¶ÔORACLEÊý¾Ý¿âµÄÔËÐÐ״̬,ÈÕÖ¾Îļþ,±¸·ÝÇé¿ö,Êý¾Ý
¿âµÄ¿Õ¼äʹÓÃÇé¿ö,ϵͳ×ÊÔ´µÄʹÓÃÇé¿ö½øÐмì²é,·¢ÏÖ²¢½â¾ö
ÎÊÌâ¡£
(2). ÿÖܶÔÊý¾Ý¿â¶ ......
racle·ÖÒ³²éѯÓï¾ä
ĬÈÏ·ÖÀà 2009-12-23 18:17 ÔĶÁ43 ÆÀÂÛ0 ×ֺţº ´ó´ó ÖÐÖРСС Oracle·ÖÒ³²éѯÓï¾ä
±¾ÎÄתÔØ×Ô£ºyangtingkun.itpub.net/post/468/100278
OracleµÄ·ÖÒ³²éѯÓï¾ä»ù±¾ÉÏ¿ÉÒÔ°´ÕÕ±¾Îĸø³öµÄ¸ñʽÀ´½øÐÐÌ×Óá£
·ÖÒ³²éѯ¸ñʽ£º
sql ´úÂë
......
×°ÍêÁËOracle 10gÊý¾Ý¿â£¬ÍüÁ˸øscottÕË»§½âËø¡£Õâʱ¿ÉÒÔÔÚsql plus¹¤¾ßÀ¿ªÊ¼|ËùÓгÌÐò|<Oracle-Home>|Ó¦ÓóÌÐò¿ª·¢|SQL Plus£©£¬Ò²¿ÉÒÔÔÚ¿ØÖÆ̨ͨ¹ýÃüÁîÐиøscottÕË»§½âËø¡£
ÔÚµÚÒ»ÖÖÇé¿öÏ£¬ÒÔsystemÕË»§µÇ¼SQL Plus£¬È»ºóʹÓÃÃüÁî“alter user scott account unl ......
×Ô¼º¸Õ¿ªÊ¼ÓÃPL/SQLÀ´Ð´Ò»µã¶«Î÷£¬ÏÖÔÚ»¹·ôdzµÄºÜ£¬ËµÕâЩ²»ÊÇÏëÇ«Ð飬¶øÊÇÏëÈç¹ûÓиßÊÖ¿´µ½×Ô¼ºÓÐʲôµØ·½Ð´´íµÄ£¬Ï£Íû¸øÎÒÒ»µãÖ¸µã¡£
½ñÌìÏÂÎçÕÒÁËÒ»ÏÂÎç×Ô¼ºµÄÄǸöPL/SQL°üµÄ´íÎó£¬×îºó»¹Êǽâ¾öÁË¡£¡£¡£Á½¸öСµÄ²»ÄÜÔÙСµÄÎÊÌ⣬ºÍ´ó¼Ò·ÖÏíһϡ£
1¡¢ÔÚPL/SQLÖÐÈç¹ûÊǺ¯Êý£¬¾Í¿ÉÒÔSQLÓï¾äÖÐʹÓã¬Ò²¿ÉÒÔÔÚÆäËûµÄPL/SQL ......