Ò»¸öOracle×Ô¶¨Òå¾Û¼¯º¯ÊýµÄÀý×Ó
Ç°ÌìÓÐÈËÌáÁËÐèÇó£¬Ïë¶Ôij¸ö×ֶνøÐа´Î»µÄ»ò²Ù×÷¡£±¾À´½¨Òé²éѯ³öÀ´Ö®ºóÔÚÓ¦ÓóÌÐòÀïÃæ´¦Àí£¬µ«ÊÇÊý¾ÝÁ¿±È½Ï´ó£¬¾õµÃ»¹ÊÇ·µ»ØÒ»¸ö·Ö×é¼ÆËãÖ®ºóµÄÖµ±È½ÏºÏÊÊ¡£
Á½¸öÎÊÌ⣬һ¸öÊÇ°´Îª»òµÄ²Ù×÷£¬Õâ¸ö²Î¿¼Á˱ðÈ˵ÄÎĵµ£¬ÓÃbitandº¯ÊýʵÏÖ¡£ ÔÎÄÈçÏ£º
http://blog.chinahr.com/blog/hewy0526/post/112968
È»ºó¾ÍÊÇ×Ô¶¨ÒåµÄ¾Û¼¯º¯ÊýÁË¡£Õâ¸ö²Î¿¼Á˹ٷ½ÎĵµµÄÀý×Ó£¬¾Í²»ÁгöÔÎijö´¦ÁË¡£
È«²¿´úÂëÈçÏ£º
-- 1. Implement the type BitOrImpl to contain the ODCIAggregate routines:
create type BitOrImpl as object
(
bitorval NUMBER, -- result.
static function ODCIAggregateInitialize(sctx IN OUT BitOrImpl)
return number,
member function ODCIAggregateIterate(self IN OUT BitOrImpl,
value IN number) return number,
member function ODCIAggregateTerminate(self IN BitOrImpl,
returnValue OUT number, flags IN number) return number,
member function ODCIAggregateMerge(self IN OUT BitOrImpl,
ctx2 IN BitOrImpl) return number
);
/
-- 2. mplement the type body for BitOrImpl:
create or replace type body BitOrImpl is
static function ODCIAggregateInitialize(sctx IN OUT BitOrImpl)
return number is
begin
sctx := BitOrImpl(0);
return ODCIConst.Success;
end;
member function ODCIAggregateIterate(self IN OUT BitOrImpl, value IN number) return number is
begin
self.bitorval := (self.bitorval + value) - bitand(self.bitorval, value);
return ODCIConst.Success;
end;
member function ODCIAggregateTerminate(self IN BitOrImpl,
returnValue OUT number, flags IN number) return number is
begin
returnValue := self.bitorval;
return ODCIConst.Success;
end;
member function ODCIAggregateMerge(self IN OUT BitOrImpl, ctx2 IN BitOrImpl) return number is
begin
self.bitorval := (self.bitorval + ctx2.bitorval) - bitand(self.bitorval, ctx2.bitorval);
return ODCIConst.Success;
end;
end;
/
-- 3. Create the user-defi
Ïà¹ØÎĵµ£º
ORACLE´¥·¢CHECKPOINTµÄÌõ¼þ
1.µ±·¢ÉúÈÕÖ¾×éÇл»µÄʱºò
2.µ±·ûºÏLOG_CHECKPOINT_TIMEOUT£¬LOG_CHECKPOINT_INTERVAL£¬fast_start_io_target,fast_start_mttr_target²ÎÊýÉèÖõÄʱºò
3.µ±ÔËÐÐALTER SYSTEM SWITCH LOGFILEµÄʱºò
4.µ±ÔËÐÐALTER SYSTEM CHECKPOINTµÄʱºò
5.µ±ÔËÐÐalter tablespace XXX begin backup£¬e ......
¹ÊÕϽâ¾ö£ºoracle10g Êý¾Ý¿â¸´ÖÆͬ²½
ºÇºÇ¡£oracleÎÒÊǸö²ËÄñ£¬Ã»»¨¹¦·òÑо¿Ëü£¬µ«ÎÒ»¹ÊǼæÈÎdba£¬Ä¿Ç°oracleÈ«²¿ÊÇÓÉÒÔÇ°µÄdba´´½¨µÄ£¬oracleȷʵºÃ¡£»ù±¾Ã»Óгö¹ýÎÊÌ⣬ÎÒÒ²¾Í»ù±¾²»¹ÜËüÁË£¬¿ÉÊÇÓÉÓÚ×Ô¼º´ÖÐÄ´óÒ⣬ÔÚÒ»´ÎÐ޸ķþÎñÆ÷µØַʱºò£¬Êý¾Ý¿âÀïµÄtns...Õâ¸öÅäÖÃÎļþÍüÁËÐ޸ģ¬½á¹ûµ¼ÖÂͬ²½Ê§°Ü£¬µÈÎÒ·¢ÏÖµÄʱºò£¬ ......
µ±ÔËÐÐsqlplus.shµÄʱºò±¨³ö£º
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/nls_lang.sh: 114: [[: not found
ºÜÆæ¹Ö
nls_lang.shµÄ114ÐÐÇ°ºóÊÇÕâÑùµÄ
if [[ -n "$LC_ALL" ]]; then
locale=$LC_ALL
elif [[ -n "$LANG" ]]; then
locale=$LANG
else
locale=
fi
[[ÓдíÎ󣿲»¿ ......
OracleµÄsql*plusÊÇÓëoracle½øÐн»»¥µÄ¿Í»§¶Ë¹¤¾ß¡£ÔÚsql*plusÖУ¬¿ÉÒÔÔËÐÐsql*plusÃüÁîÓësql*plusÓï¾ä¡£
ÎÒÃÇͨ³£Ëù˵µÄDML¡¢DDL¡¢DCLÓï¾ä¶¼ÊÇsql*plusÓï¾ä£¬ËüÃÇÖ´ÐÐÍêºó£¬¶¼¿ÉÒÔ±£´æÔÚÒ»¸ö±»³ÆΪsql bufferµÄÄÚ´æÇøÓòÖУ¬²¢ÇÒÖ»Äܱ£´æÒ»Ìõ×î½üÖ´ÐеÄsqlÓï¾ä£¬ÎÒÃÇ¿ÉÒÔ¶Ô±£´æÔÚsql bufferÖеÄsql Óï¾ä½øÐÐÐ޸ģ¬È»ºóÔÙ´ ......
declare
n number(10);
tsql varchar2(100);
begin
select test_seq.nextval into n from dual;
n:=-(n-1);
tsql:='alter ......