oracleѧϰÀú³ÌÖ®´æ´¢¹ý³Ì
oracleѧϰÀú³ÌÖ®´æ´¢¹ý³Ì
(1) ´æ´¢¹ý³Ìͨ¹ý²ÎÊý´«µÝ,°²È«ÐÔ¸ß,¿É·ÀÖ¹×¢Èëʽ¹¥»÷.
(2) ²éѯµÄÓï¾äÔÚ´æ´¢¹ý³ÌÀï,Óë³ÌÐò²»Ïà¹Ø,Èç¹ûÒÔºóÒªÐ޸ijÌÐò»òÕßÊý¾Ý¿â,¶¼²»»á³öÏÖÁ¬Ëø·´Ó¦,Ôö¼Óϵͳ¿ÉÀ©Õ¹ÐÔ.
(3) ÍøÕ¾Ö´ÐвéѯµÄʱºò,Ö»ÐèÒª´«µÝ¼òµ¥µÄ²ÎÊý¾Í¿ÉÒÔÁË,ÎÞÂÛÊÇ´úÂëÓÅ»¯ÉÏ»¹ÊDzéѯÓÅ»¯É϶¼¿ÉÒÔ×öµ½¸ßЧ.
(4) ÔÊÐíÄ£¿é»¯±à³Ì,¼´,¿ÉÒÔ½«Ò»×é²éѯдÔÚÒ»¸ö¹ý³ÌÀïÃæ,È»ºóÔÚ³ÌÐòÀïÖ±½Óµ÷ÓÃ,¶ø²»±Øÿ´Î¶¼Ð´Èô¸É¸öÓï¾äÀ´ÊµÏÖÏàÓ¦¹¦ÄÜ
¡¾ÆÕͨ·½·¨¡¿
create or replace procedure procetest(paramin in varchar2, paramout out varchar2,paraminout in out varchar2)
as
varsparam varchar2(28);
begin
varsparam:=paramin;
paramout:=varsparam||paraminout;
end;
²âÊÔ
set serveroutput on
declare
param_out varchar2( 28 );
param_inout varchar2( 28 );
begin
param_inout:='111';
mydata.procetest( 'qqqq',param_out,param_inout );
dbms_output.put_line( param_out );
end;
C#
public string listResult(string xx1, string xx2)
{
OracleParameter[] parameters ={
new OracleParameter( "paramin",OracleType.VarChar,20 ), //ÊäÈë²ÎÊý
new OracleParameter( "paramout",OracleType.VarChar,20 ), //Êä³ö²ÎÊý
new OracleParameter( "paraminout",OracleType.VarChar,20 ) //½ø³öÔÈ¿É
};
parameters[0].Value = xx1;
parameters[2].Value = xx2;
parameters[0].Direction = ParameterDirection.Input;
parameters[1].Direction = ParameterDirection.Output;
&n
Ïà¹ØÎĵµ£º
±í´Ø£¨table cluster)ÊÇÒ»¸öÊý¾Ý¿â¶ÔÏó£¬Ëü¿ÉÒÔ½«ÄÇЩ¾³£ÔÚÏàͬÊý¾Ý¿éÖÐÒ»ÆðʹÓõıí½øÐÐÎïÀí·Ö×é¡£µ±Äã´¦ÀíÄÇЩ¾³£Á¬½ÓÔÚÒ»Æð½øÐвéѯµÄ±íʱ£¬±í´ØÊÇÌرðÓÐЧµÄ¡£Ò»¸ö±í´Ø´æ´¢´Ø¼ü£¨ÓÃÓÚ½«±íÁ¬½Óµ½Ò»ÆðµÄÁУ©£¬ÒÔ¼°´Ø±íÖеÄÁÐÖµ¡£ÒòΪ´ØÖÐµÄ±í¶¼±»´¢´æÔÚÏàͬµÄÊý¾Ý¿â¿éÖУ¬ËùÒÔʹÓôع¤×÷ʱ£¬I/O²Ù×÷¾Í¼õÉÙÁË¡£
......
´ó²¿·ÖµÄÆóÒµºÜÄÑÒ»ÏÂ×Ó¾ÍÕÒµ½Ò»¸öÈ«·½Î»µÄOracle DBA£¨µ±È»Ò²ÊÇÓпÉÄÜ£¬Ö»²»¹ý£¬Õâ»áÓкܴóµÄÔËÆø³É·Ý£©£¬Õâ´ú±íÆóÒµÔÚÑ¡ÔñOracle DBAµÄʱºò£¬ÊƱØÒª¶Ô¸ºÔð¸ÃְλµÄDBAµÄÖ°ÄÜÓÐËùÈ¡Éá¡£ÎÒͨ³£»á½¨ÒéÎҵĿͻ§£¬ÔÚÑ°ÕÒOracle DBAʱ£¬µÃÏÈÈ·ÈÏ£¬ÆóÒµÐèÒªÕâÒ»¸ö½ÇÉ«À´Æä´¦ÀíʲôÎÊÌ⣿
¡¡¡¡´ó²¿·ÝµÄÆóÒµ¶ÔOracle DBAµÄÐèÇó£¬Ò ......
oracle³£ÓþµäSQL²éѯ
³£ÓÃSQL²éѯ£º
1¡¢²é¿´±í¿Õ¼äµÄÃû³Æ¼°´óС
select t.tablespace_name, round(sum(bytes/(1024*1024)),0) ts_size
from dba_tablespaces t, dba_data_files d
where t.tablespace_name = d.tablespace_name
group by t.tablespace_name;
2¡¢²é¿´±í¿Õ¼äÎïÀíÎļþµÄÃû³Æ ......
Êý¾Ý¿âÊÇÒ»¸ö¶àÓû§Ê¹ÓõĹ²Ïí×ÊÔ´¡£µ±¶à¸öÓû§²¢·¢µØ´æÈ¡Êý¾Ýʱ£¬ÔÚÊý¾Ý¿âÖоͻá²úÉú¶à¸öÊÂÎñͬʱ´æȡͬһÊý¾ÝµÄÇé¿ö¡£Èô¶Ô²¢·¢²Ù×÷²»¼Ó¿ØÖƾͿÉÄÜ»á¶ÁÈ¡ºÍ´æ´¢²»ÕýÈ·µÄÊý¾Ý£¬ÆÆ»µÊý¾Ý¿âµÄÒ»ÖÂÐÔ¡£
¼ÓËøÊÇʵÏÖÊý¾Ý¿â²¢·¢¿ØÖƵÄÒ»¸ö·Ç³£ÖØÒªµÄ¼¼Êõ¡£µ±ÊÂÎñÔÚ¶Ôij¸öÊý¾Ý¶ÔÏó½øÐвÙ×÷Ç°£¬ÏÈÏòϵͳ·¢³öÇëÇ󣬶ÔÆä¼ÓËø¡£¼ÓËøº ......
¶þ¡¢Ê¹ÓÃPrograms
¡¡¡¡ÔÚÂÛ̳ÖÐż¶û¼û¹ýÓÐÈËÌÖÂÛÈçºÎÔÚORACLEÖÐÖ´ÐвÙ×÷ϵͳÃüÁ»òÊÇORACLEÊý¾Ý¿âÍâµÄÓ¦Óá£Ó¦¸Ã˵ÔÚ9i¼°Ö®Ç°µÄ°æ±¾ÖУ¬ËäȻ˵²¢·ÇÍêÈ«ÎÞ·¨ÊµÏÖ£¨Æäʵ»¹ÊÇÓжàÖÖ·½Ê½Äܹ»±äÏàʵÏֵģ©£¬²»¹ý¸´ÔÓµÄʵÏÖ·½Ê½ÈÃDBAʹ¾¢ÁËÁ¦£¬ÉË͸ÁËÐÄ£¬·Ñ¾¢ÁËʶù¡£
¡¡¡¡½øÈë10g°æ±¾Ö®ºó£¬¾ÍÍêÈ«²»±ØÈç´Ë·ÑÉñ£¬ÒòΪÓÐÁËDBMS ......