ORACLE sqlÓï¾ä±Ê¼Ç
windowsÉÏ´æÔÚ32bitµÄÏÞÖÆ£¬ÈçAIX¡¢HP UNIX µÈÓÐÃ÷È·µÄ64BIT OS and ORACLEµÄ°æ±¾£¬32bit oracle¿ÉÒÔ×°ÔÚ64bit os ÉÏ£¬64 bit oracle²»ÄÜ×°ÔÚ32 bit OSÉÏ
oracleÊÇ64bit or 32 bit,32bit ͨ³£ SGAÓÐ 1.7G µÄÏÞÖÆ(ijЩOSµÄ´¦Àí»òÕßWINDOWSÉÏÓÐÌض¨É趨¿ÉÒÔÖ§³Öµ½2GÒÔÉÏÉõÖÁ´ïµ½3.7G
ÈçºÎ²é³öǰ̨ÕýÔÚ·¢³öµÄsqlÓï¾ä:
select user_name,sql_text from v$open_cursor where sid in (select sid from (select sid,serial#,username,program from v$session where status='ACTIVE'));
ΪÕâ¸ö±í¿Õ¼äÔö¼ÓÒ»¸öÊý¾ÝÎļþ:
alter tablespace ±í¿Õ¼äÃû add datafile '/u1/oradata/userdata_002.ora' size 50m;
ÖØе÷ÕûÊý¾ÝÎļþµÄ´óС:
alter database datafile '/u1/oradata/userdata_001.ora' resize 50M;
񡜧
¡¡¡¡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;
±¾Óû§¶ÁÈ¡ÆäËûÓû§¶ÔÏóµÄȨÏÞ£º
¡¡¡¡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_te
Ïà¹ØÎĵµ£º
¶¨Ê±ÖØÆôSQL ServerºÍTomcat
[http://hi.baidu.com/personnel/blog/item/020d5edf020a281248540306.html]
¶¨Ê±ÖØÆôSQL ServerºÍTomcat
2007-06-07 08:23
ÒÔǰûÓÐ×Ô¼º¹ÜÀí·þÎñÆ÷»¹²»ÖªµÀ£¬SQL Server·þÎñÆ÷µÄÄÚ´æËæ×ÅÔËÐеÄʱ¼äÔö³¤¶ø²»¶ÏÔö³¤¡£
ÓÃÁËÒ»Á½ÌìÖ®ºó·¢ÏÖ½ø³ÌÖеÄSQL ServerÒѾռÓÃÁ˽ü1.3GµÄÄڴ棬ÄÚ´æÒ»¹ ......
select 1 from ...£¬ sqlÓï¾äÖеÄ1´ú±íʲôÒâ˼£¿²é³öÀ´ÊǸöʲô½á¹û£¿
select 1 from table;Óëselect anycol(Ä¿µÄ±í¼¯ºÏÖеÄÈÎÒâÒ»ÐУ© from table;Óëselect * from table ´Ó×÷ÓÃÉÏÀ´ËµÊÇûÓвî±ðµÄ£¬¶¼ÊDz鿴ÊÇ·ñÓмǼ£¬Ò»°ãÊÇ×÷Ìõ¼þ²éѯÓõġ£select 1 from Ö ......
UPDATe [Sale_Goods] SET [Catalog33_ID] = [Catalog].[ID]
from [Sale_Goods]
LEFT OUTER JOIN [chdy222] ON [Sale_Goods].[Code] = [chdy222].[ID]
LEFT OUTER JOIN [Catalog] ON [chdy222].[ufidaname] = [Catalog].[Name] and [Catalog].[Type]=33
WHERE [Catalog].[ID] IS NOT NULL ......
ÒªÇ󣺲éѯÿ¸öÀÏʦËù´ø±ÏÒµÉè¼ÆµÄ»ã×ÜÇé¿ö£¬±ÏÒµÉè¼ÆѧÉú·Ö±¾¿Æ¡¢×¨¿Æ£¬ÔºÍâ¡¢ÔºÄÚ£¬ÒªÇóµÃµ½µÄ½á¹ûÐÎʽÈçÏ£º
½ÌʦÃû ÔºÄÚ±¾¿Æ Ô°ÄÚר¿Æ ÔºÍâ±¾¿Æ ÔºÍâר¿Æ ºÏ¼Æ
Ïà¹ØµÄ±íÓУºÑ§Éú±í£¨°üº¬Ñ§Éú²ã´Î£©¡¢½Ìʦ±í£¨½ÌʦÃû£©¡¢Ñ§Éú¿ÎÌâ±í£¨Ñ§Éú½Ìʦ¶ÔÓ¦¹ØϵÒÔ¼°ÔºÄÚÔºÍâÐÅÏ¢£©¡£
SQLÓï¾äÈçÏ£º
select
  ......
×Ô¶¯ÌáʾµÄ¿ì½Ý¼ü£ºF6
¿ÉÒÔ¸ü¸Ä£ºTools->Preferences->User interface->Key Configuration ,ÔÚItemÁÐÀïÕÒµ½“Tools/Code Assistant”,ÔÚºóÃæ¶ÔÓ¦µÄ¿ì½Ý¸Ä³É×Ô¼ºÏ²»¶µÄ¡£
ĬÈÏÊDz»ÄÜ×Ô¶¯Ìá½»µÄ£¬°´ F10 ¼ü¿ÉÒÔÔÚ×ö¸ü¸ÄºóÌá½»¡£ ......