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

ORACLEÏÂɾ³ýµ±Ç°Óû§ÏÂËùÓжÔÏóµÄSQL

ORACLEÏÂɾ³ýµ±Ç°Óû§ÏÂËùÓжÔÏóµÄSQL
Sql´úÂë
--ɾ³ýij¸öÓû§ÏµĶÔÏó   
set heading off;   
set feedback off;   
spool c:\dropobj.sql;   
  prompt --Drop constraint   
 select 'alter table '||table_name||' drop constraint '||constraint_name||' ;' from user_constraints where constraint_type='R';   
 prompt --Drop tables   
 select 'drop table '||table_name ||';' from user_tables;    
    
 prompt --Drop view   
 select 'drop view ' ||view_name||';' from user_views;   
    
 prompt --Drop sequence   
 select 'drop sequence ' ||sequence_name||';' from user_sequences;    
    
 prompt --Drop function   
 select 'drop function ' ||object_name||';'  from user_objects  where object_type='FUNCTION';   
  
 prompt --Drop procedure   
 select 'drop procedure '||object_name||';' from user_objects  where object_type='PROCEDURE';   
    
 prompt --Drop package   
 prompt --Drop package body   
 select 'drop package '|| object_name||';' from user_objects  where object_type='PACKAGE';   
  
 prompt --Drop database link   
 select 'drop database link '|| object_name||';' from user_objects  where object_type='DATABASE LINK';  &


Ïà¹ØÎĵµ£º

Oracle±í¿Õ¼ä¹ÜÀí

extent--×îС¿Õ¼ä·ÖÅ䵥λ --tablespace management
block --×îСi/oµ¥Î»      --segment    management
create tablespace james
datafile '/export/home/oracle/oradata/james.dbf'
size 100M ¡¡¡¡¡¡¡¡¡¡¡¡--³õʼµÄÎļþ´óС¡¡
autoextend On¡¡¡¡¡¡¡¡ --×Ô¶¯Ôö³¤
next 10M¡ ......

Mysql£¬SqlServer£¬OracleÖ÷¼ü×Ô¶¯Ôö³¤µÄÉèÖÃ


Mysql£¬SqlServer£¬OracleÖ÷¼ü×Ô¶¯Ôö³¤µÄÉèÖÃ
1¡¢°ÑÖ÷¼ü¶¨ÒåΪ×Ô¶¯Ôö³¤±êʶ·ûÀàÐÍ
ÔÚmysqlÖУ¬Èç¹û°Ñ±íµÄÖ÷¼üÉèΪauto_incrementÀàÐÍ£¬Êý¾Ý¿â¾Í»á×Ô¶¯ÎªÖ÷¼ü¸³Öµ¡£ÀýÈ磺
create table customers(id int auto_increment primary key not null, name varchar(15));
insert into customers(name) values("name1"),("nam ......

Oracle ÔÚwindowÏÂ×Ô¶¯±¸·Ý

£±¡¢È·¶¨ÄãµÄ¼ÆËã»úÉÏ×°ÓÐoracleµÄ¿Í»§¶Ë£¬Èç¹ûûÓУ¬Çë°²×°oracle¿Í»§¶Ë
£²¡¢È·¶¨ÓÐÄãµÄoracle·þÎñÀïÓÐÄãÒªÐèÒª±¸·ÝµÄÊý¾Ý¿âµÄ·þÎñÃû¡£
£³¡¢ÖÆ×÷Ò»¸öÅú´¦ÀíÎļþ£¨oracleBackup.bat£©£¬¾ßÌå·½·¨£º´ò¿ª“¼Çʱ¾”£¬±£´æÎªoracleBackup.bat£¬
¡¡¡¡´Ëʱ±£´æµÄÎļþÀàÐÍÑ¡ÔñΪ“ËùÓÐÎļþ”¡£Îҵı£´æÄ¿Â ......

oracle ´´½¨¹ý³Ì

create table test1 as select 1 id,'create table test2(id number,name varchar2(200));insert into test2 values(1,''a'');' sqltext from dual
  2  union all select 2,'truncate table test2;' from dual
  3  union all select 3,'insert into test2 select rownum,dbms_random.string(''l'', ......

oracle¿Í»§¶ËÓ¦´ðÎļþ

oracle.client 9.0.1.0.0
  ©À1-Oracle Programmer 9.0.1.0.0
  ©¦ ©ÀOracle Call Interface (OCI) 9.0.1.0.0
  ©¦ ©ÀObject Type Translator 9.0.1.0.0
  ©¦ ©¸Pro*C/C++ 9.0.1.0.0
  ©À2-Oracle Enterprise Manager Products 9.0.1.0.0
  ©¦ ©¸Oracle Enterprise Manager Cli ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ