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

OracleÖÐÐÞ¸ÄSequence·½·¨

OracleÖÐÐÞ¸ÄSequence·½·¨£º¾ÍÊǸıäËüµÄincrement µÝÔö´óС£¬Ëü¿ÉÒÔΪÕýÒ²¿ÉÒÔΪ¸º¡£ÈçÏ£º
SQL> select seq.nextval from dual;
   NEXTVAL
----------
        21
SQL> alter sequence seq increment by 79;
ÐòÁÐÒѸü¸Ä¡£
SQL> select seq.nextval from dual;
   NEXTVAL
----------
       100
SQL> alter sequence seq increment by 1;
ÐòÁÐÒѸü¸Ä¡£
SQL> select seq.nextval from dual;
   NEXTVAL
----------
       101
SQL>


Ïà¹ØÎĵµ£º

oracle²ÎÊýnls_length_semantics

oracle²ÎÊýnls_length_semantics£º
ĬÈÏ£ºbyte
create table test  (a varchar(20),b number)
 µÈͬÓÚ£º
CREATE TABLE HXG.TESTNLS
(
  A  VARCHAR2(20 BYTE),
  B  NUMBER
)
varchar(20)ÓɲÎÊýnls_length_semantics¿ØÖÆ
/////////////////////////////////////////////////////// ......

OracleÊý¾Ýµ¼Èëµ¼³öÏê½â

½«Ò»¸öÊý¾Ý¿âµÄijÓû§µÄËùÓÐ±íµ¼µ½ÁíÍâÊý¾Ý¿âµÄÒ»¸öÓû§ÏÂÃæµÄÀý×Ó¡¡¡¡
exp userid=system/manager owner=username1 file=expfile.dmp
imp userid=system/manager fromuser=username1 touser=username2 ignore=y file=expfile.dmp
ORACLEÊý¾Ý¿âÓÐÁ½À౸·Ý·½·¨¡£µÚÒ»ÀàΪÎïÀí±¸·Ý£¬¸Ã·½·¨ÊµÏÖÊý¾Ý¿âµÄÍêÕû»Ö¸´£¬µ«Êý¾Ý ......

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_ ......

Oracle´æ´¢¿Õ¼ä¹ÜÀí

Oracle´æ´¢¿Õ¼ä¹ÜÀí
1.²é¿´Ã¿¸öÊý¾ÝÎļþµÄÊ£Óà±í¿Õ¼ä£¨Ò»¸ö±í¿Õ¼äÖ»¶ÔÓ¦N¸öÊý¾ÝÎļþ,NÒ»°ãµÈÓÚ1£©
Ö÷ÒªÊÇÀûÓñídba_free_space£¨±í¿Õ¼äÊ£Óà¿Õ¼ä×´¿ö£©ºÍdba_data_files£¨Êý¾ÝÎļþ¿Õ¼äÕ¼ÓÃÇé¿ö£©
    select b.file_id¡¡¡¡"ÎļþID",
¡¡¡¡b.tablespace_name¡¡¡¡"±í¿Õ¼äÃû",
¡¡¡¡b.file_name¡¡¡¡¡¡¡¡¡¡" ......

oracle imp/exp


Ò». µ¼³ö¹¤¾ß exp
1. ËüÊDzÙ×÷ϵͳÏÂÒ»¸ö¿ÉÖ´ÐеÄÎļþ ´æ·ÅĿ¼/ORACLE_HOME/bin
   expµ¼³ö¹¤¾ß½«Êý¾Ý¿âÖÐÊý¾Ý±¸·ÝѹËõ³ÉÒ»¸ö¶þ½øÖÆÏµÍ³Îļþ.¿ÉÒÔÔÚ²»Í¬OS¼äÇ¨ÒÆ
  
   ËüÓÐÈýÖÖģʽ£º
       a.  Óû§Ä£Ê½£º µ¼³öÓû§ËùÓжÔÏóÒÔ¼°¶ÔÏóÖеÄÊý¾ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ