serverÓïÑÔת³ÉoracleÓïÑÔ - Oracle / ¿ª·¢
±¾ÈËֻѧ¹ýoracle£¬ÏÖÔÚ×öÁ·Ï°£¬ÀïÃæÓÐÒ»¶ÎserverÓï¾ä²»ÖªµÀÔõôÀí½â£¬Çë¸ßÊÖ°ïæ°ÑÕâ¶Î´úÂë¸Ä³ÉoracleµÄ´úÂ룬ллÁË
create procedure GetScheduleGivenDay @GivenDay datetime
as
select
task.title,
task.detail,
task.begintime,
task.notifytime,
task.neednotify,
task.finished,
tasktype.typetitle,
priority.prioritytitle
from tasktype
INNER JOIN task ON Task.Type.TaskType_ID=task.type
INNER JOIN priority ON task.priority=priority.priority_ID
where
(DAY(@GivenDay)=DAY(task.BeginTime))
AND
(MONTH(@GivenDay)=MONTH(task.BeginTime))
AND
(YEAR(@GivenDay)=YEAR(task.BeginTime))
RETURN
GO
Èç¹ûתSQL°æµ¹»¹ÐÐ,תOracleÈ¥OracleÈçºÎ.
Õâ¸öÓ¦¸ÃÈ¥Oracle×¨ÇøÎÊÎÊ
»¹ÓÐÄãµÄ˵Ã÷ÄãÕâ¶Î´úÂëÊǸÉɶµÄ£¬±ðÈ˲źðïÄã¡£
¾ÍÔÚÄDZßÎÊÁË¡£ËûÃÇдÁË´úÂëÒ²²»ÐУ¬ÎҲŹýÀ´ÕâÀïÎʵÄ
Õâ¸öÄѵÀÓÐÎÊÌâ
CREATE OR REPLACE PROCEDURE GetScheduleGivenDay (GivenDay datetime)
as
begin
select
task.title,
task.detail,
task.begintime,
task.notifytime,
task.neednotify,
task.finished,
tasktype.typetitle,
priority.prioritytitle
from tasktype
INNER JOIN task ON Task.Type.TaskType_I
Ïà¹ØÎÊ´ð£º
´ó¼ÒºÃ,ÎÒÏÖÔÚ°Ñoracle·þÎñÆ÷ÉÏÃæµÄÔʼÎļþ,ÏÂÔØµ½±¾»úÁË.ÎÒÏëÔÚ±¾»ú·ÃÎÊÊý¾Ý¿âÔõôÉèÖð¡.ÊDz»ÊÇÀàËÆ¿ÉÒÔ½¨Á¢Ò»¸öʲôÐéÄâ·þÎñÆ÷À´ÊµÏÖ.Çë´ó¼Ò³ö³öÖ÷Òâ
ÒýÓÃ
´ó¼ÒºÃ,ÎÒÏÖÔÚ°Ñoracle·þÎñÆ÷ÉÏÃæ ......
ÔÚϵͳÔËÐеÄʱºò×ÜÊÇÓÐÒ»¿é´ÅÅÌʼÖÕÉÁºìµÆ£¬½øÈëϵͳºó
#topas²é¿´×ÜÊÇÓÐÒ»¿é´ÅÅÌ%BUSYΪ90%ÒÔÉÏ£¬
Êý¾Ý¿â°æ±¾£ºoracle 9.2.0.7
Êý¾ÝÎļþ¹ÒÔØµÄ½Úµã£º/oradata/pcs/ Âß¼¾íºÅlv04
#lslv -l lv04
......
Ð»Ð»ÌÆÈËÀÏ´óµÄÖ¸µã£¬Ð»Ð»¸÷λ¸ßÊÖµÄÖ¸µã£¡
°²×°10g Enterprise¡£ÉÏÍøÏÂÁËMLDNµÄOracleÊÓÆµ£¬¸ú×ÅÊÓÆµÉϵÄÅäÖÃ×ߣ¬°²×°³É¹¦ÁË£¬µ«ÊÇûÍêÕûµØÅäÖá£
µã»÷½øÈ룺Database Configuration Assistant
1. ´´½¨Êý¾Ý¿â£»
......
ÕâÀïÏëÁ˽âÏ£¬¹ØÓÚSQL ServerÖзÖÒ³ºÍOracleÖзÖÒ³£»
ƽ³£Ð´Ó¦ÓóÌÐòµÄʱºò£¬±ÈÈçÓõÄÓïÑÔÊÇJava£¬ÓиöÁбíÒ³Ãæ£¬ÐèÒª¶ÔÊý¾Ý·ÖÒ³ÏÔʾ£»
ÕâÀïÒª·ÖÒ³ÄѵÀ²»ÐèÒª½èÖúJava£¬¶øÖ±½ÓsqlÄÜÖªµÀ·ÖÒ³Âð£¬ÆðÂëÒ²Òª´«¸öÒ³Âë½ ......
CREATE OR REPLACE PROCEDURE usp_refreshTopN
IS
BEGIN
--Îĵµ
INSERT INTO topnresource(resourceId,title,type,cover,brief,properUser,tag,clickAmount,createDate,topNCreateDate,o ......