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

ORACLE³£ÓÃSQL

񡜧
¡¡¡¡select * from cat;
¡¡¡¡select * from tab;
¡¡¡¡select table_name from user_tables;
ÊÓͼ£º
¡¡¡¡select text from user_views where view_name=upper('&view_name');
Ë÷Òý£º
¡¡¡¡select index_name,table_owner,table_name,tablespace_name,status from user_indexes order by table_name;
´¥·¢Æ÷£º
¡¡¡¡select trigger_name,trigger_type,table_owner,table_name,status from user_triggers;
¿ìÕÕ£º
¡¡¡¡select owner,name,master,table_name,last_refresh,next from user_snapshots order by owner,next;
ͬÒå´Ê£º
¡¡¡¡select * from syn;
ÐòÁУº
¡¡¡¡select * from seq;
Êý¾Ý¿âÁ´Â·£º
¡¡¡¡select * from user_db_links;
Ô¼ÊøÏÞÖÆ£º
¡¡¡¡select TABLE_NAME,CONSTRAINT_NAME,SEARCH_CONDITION,STATUS
    from user_constraints WHERE TABLE_name=upper('&TABLE_Name');
±¾Óû§¶ÁÈ¡ÆäËûÓû§¶ÔÏóµÄȨÏÞ£º
¡¡¡¡select * from user_tab_privs;
±¾Óû§ËùÓµÓеÄϵͳȨÏÞ£º
¡¡¡¡select * from user_sys_privs;
Óû§£º
¡¡¡¡select * from all_users order by user_id;
±í¿Õ¼äÊ£Óà×ÔÓÉ¿Õ¼äÇé¿ö£º
¡¡¡¡select tablespace_name,sum(bytes) ×Ü×Ö½ÚÊý,max(bytes),count(*) from dba_free_space group by tablespace_name£»
Êý¾Ý×ֵ䣺
¡¡¡¡select table_name from dict order by table_name;
Ëø¼°×ÊÔ´ÐÅÏ¢£º
¡¡¡¡select * from v$lock;²»°üÀ¨DDLËø
Êý¾Ý¿â×Ö·û¼¯£º
¡¡¡¡select name,value$ from props$ where name='NLS_CHARACTERSET';
inin.ora²ÎÊý£º
¡¡¡¡select name,value from v$parameter order by name;
SQL ¹²Ïí³Ø£º
¡¡¡¡select sql _text from v$sqlarea;
Êý¾Ý¿â£º
¡¡¡¡select * from v$database
¿ØÖÆÎļþ£º
¡¡¡¡select * from V$controlfile;
ÖØ×öÈÕÖ¾ÎļþÐÅÏ¢£º
¡¡¡¡select * from V$logfile;
À´×Ô¿ØÖÆÎļþÖеÄÈÕÖ¾ÎļþÐÅÏ¢£º
¡¡¡¡select * from V$log;
À´×Ô¿ØÖÆÎļþÖеÄÊý¾ÝÎļþÐÅÏ¢£º
¡¡¡¡select * from V$datafile;
NLS²ÎÊýµ±Ç°Öµ£º
¡¡¡¡select * from V$nls_parameters;
ORACLE °æ±¾ÐÅÏ¢£º
¡¡¡¡select * from v$version;
ÃèÊöºǫ́½ø³Ì£º
¡¡¡¡select * from v$bgprocess;
²é¿´°æ±¾ÐÅÏ¢£º
¡¡¡¡select * from product_component_version;
Oracle -³£Óüà¿ØSQL
1.¼à¿ØÊÂÀýµÄµÈ´ý£º
 &nb


Ïà¹ØÎĵµ£º

Oracle¶àÐмǼºÏ²¢/Á¬½Ó/¾ÛºÏ×Ö·û´®µÄ¼¸ÖÖ·½·¨

ʲôÊǺϲ¢¶àÐÐ×Ö·û´®£¨Á¬½Ó×Ö·û´®£©ÄØ£¬ÀýÈ磺
SQL> desc test;
Name     Type          Nullable Default Comments
------- ------------ -------- ------- --------
COUNTRY VARCHAR2(20) Y       &nb ......

Oracle´æ´¢¹ý³Ì°üº¬Èý²¿·Ö

Oracle´æ´¢¹ý³Ì°üº¬Èý²¿·Ö£º¹ý³ÌÉùÃ÷£¬Ö´Ðйý³Ì²¿·Ö£¬´æ´¢¹ý³ÌÒì³£¡£
Oracle´æ´¢¹ý³Ì¿ÉÒÔÓÐÎÞ²ÎÊý´æ´¢¹ý³ÌºÍ´ø²ÎÊý´æ´¢¹ý³Ì¡£ 
Ò»¡¢Î޲γÌÐò¹ý³ÌÓï·¨
 
1 create or replace procedure NoParPro
2 as  ;
3 begin
4 ;
5 exception  &nb ......

OracleÖÐʵÏÖ·ÖÒ³µÄ·½·¨

---------------------------------------------------------------------------
---- ±¾ÎÄΪandkylee¸öÈËÔ­´´£¬ÇëÔÚ×ðÖØ×÷ÕßÀͶ¯³É¹ûµÄÇ°ÌáϽøÐÐתÔØ£»
---- תÔØÎñ±Ø×¢Ã÷ԭʼ³ö´¦
:
http://blog.csdn.net/andkylee
--- 2010-05-31 22:56:43
---- ¹Ø¼ü×Ö£º oracle ·ÖÒ³ rownum
--------------------------------- ......

ת:ORACLE ¶à±í¹ØÁª UPDATE Óï¾ä


ת:ORACLE
¶à±í¹ØÁª UPDATE Óï¾ä
Ô­Ìû£ºhttp://www.cnblogs.com/miley/archive/2010/04/15/1712617.html
  ΪÁË
·½±ãÆð¼û
,½¨Á¢ÁËÒÔϼòµ¥Ä£ÐÍ
,ºÍ¹¹ÔìÁ˲¿·Ö²âÊÔÊý¾Ý
:
   ÔÚij¸öÒµ
ÎñÊÜÀí×Óϵͳ
BSSÖУ¬
  --¿Í»§×Ê
Áϱí
  create table customers
   (
 & ......

oracleºÏ²¢±íµÄËéƬ

Shrink spaceºÏ²¢±íµÄËéƬ
Ò»°ã±íÀïÓÐËéƬÎÒÃǶ¼²ÉÓÃalter table table_name move tablespace_name,»òÕßexp,drop table table_name,impµÄ2ÖÖ·½Ê½10G¸øÎÒÃÇÆäËûµÄ·½·¨.ÏÂÃæÎÒÀ´ÊÔÒ»°É
ÓÃShrink SpaceÊÕËõOracleÊý¾Ý¶Î
ÔÚoracleÖпÉÒÔʹÓÃalter table table_name shrink spaceÊÕËõ±í,ʹÓÃshrinkÓÐÁ½¸öÇ°ÌáÌõ¼þ:
  1¡ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ