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

È«ÃæѧϰORACLE SchedulerÌØÐÔ(3)ʹÓÃPrograms

¶þ¡¢Ê¹ÓÃPrograms
¡¡¡¡ÔÚÂÛ̳ÖÐż¶û¼û¹ýÓÐÈËÌÖÂÛÈçºÎÔÚORACLEÖÐÖ´ÐвÙ×÷ϵͳÃüÁ»òÊÇORACLEÊý¾Ý¿âÍâµÄÓ¦Óá£Ó¦¸Ã˵ÔÚ9i¼°Ö®Ç°µÄ°æ±¾ÖУ¬ËäȻ˵²¢·ÇÍêÈ«ÎÞ·¨ÊµÏÖ£¨Æäʵ»¹ÊÇÓжàÖÖ·½Ê½Äܹ»±äÏàʵÏֵģ©£¬²»¹ý¸´ÔÓµÄʵÏÖ·½Ê½ÈÃDBAʹ¾¢ÁËÁ¦£¬ÉË͸ÁËÐÄ£¬·Ñ¾¢ÁËʶù¡£
¡¡¡¡½øÈë10g°æ±¾Ö®ºó£¬¾ÍÍêÈ«²»±ØÈç´Ë·ÑÉñ£¬ÒòΪÓÐÁËDBMS_SCHEDULER£¬ÒòΪÓÐÁËPROGRAM¡£
2.1  ´´½¨Programs
¡¡¡¡Scheduler ÖеÄProgram¶ÔÏó²¢²»Êdz£¹æÒâÒåÉϵÄ"³ÌÐò"»ò"Ó¦ÓÃ"£¬¶ø¾ÍÊÇÒ»¸ö"¶ÔÏó"£¬ÓÉDBA¶¨ÒåµÄ£¬¾ßÓÐÖ´ÐÐijÏÄܵÄÌØÊâ¶ÔÏó¡£ProgramÖÐʵ¼ÊÖ´ÐеIJÙ×÷¿ÉÒÔ·ÖΪÏÂÁÐÈýÖÖÀàÐÍ£º
PL/SQL BLOCK £º±ê×¼µÄpl/sql´úÂë¿é£»
STORED PROCEDURE £º±àÒëºÃµÄPL/SQL´æ´¢¹ý³Ì£¬»òÕßJava´æ´¢¹ý³Ì£¬ÒÔ¼°ÍⲿµÄc×Ó³ÌÐò£»
EXECUTEABLE £ºORACLEÊý¾Ý¿âÖ®ÍâµÄÓ¦Ó㬱ÈÈç²Ù×÷ϵͳÃüÁîµÈµÈ¡£
¡¡¡¡´´½¨ProgramsʹÓÃDBMS_SCHEDULER.CREATE_PROGRAM¹ý³Ì£¬¸Ã¹ý³ÌÖ§³ÖµÄ²ÎÊýÈçÏ£º
JSSWEB>  desc dbms_scheduler.create_program;
Parameter           Type           Mode Default? 
------------------- -------------- ---- -------- 
PROGRAM_NAME        VARCHAR2       IN            
PROGRAM_TYPE        VARCHAR2       IN            
PROGRAM_ACTION      VARCHAR2       IN            
NUMBER_OF_ARGUMENTS BINARY_INTEGER IN   Y        
ENABLED             BOOLEAN        IN   Y        
OMMENTS   &nb


Ïà¹ØÎĵµ£º

oracle ±í¿Õ¼ä²Ù×÷

oracle±í¿Õ¼ä²Ù×÷Ïê½â
  1
  2
  3×÷Õߣº   À´Ô´£º    ¸üÐÂÈÕÆÚ£º2006-01-04 
  5
  6 
  7½¨Á¢±í¿Õ¼ä
  8
  9CREATE TABLESPACE data01
 10DATAFILE '/ora ......

ÔõôѡÔñÒ»¸ö¶ÔµÄOracle DBA

´ó²¿·ÖµÄÆóÒµºÜÄÑÒ»ÏÂ×Ó¾ÍÕÒµ½Ò»¸öÈ«·½Î»µÄOracle DBA£¨µ±È»Ò²ÊÇÓпÉÄÜ£¬Ö»²»¹ý£¬Õâ»áÓкܴóµÄÔËÆø³É·Ý£©£¬Õâ´ú±íÆóÒµÔÚÑ¡ÔñOracle DBAµÄʱºò£¬ÊƱØÒª¶Ô¸ºÔð¸ÃְλµÄDBAµÄÖ°ÄÜÓÐËùÈ¡Éá¡£ÎÒͨ³£»á½¨ÒéÎҵĿͻ§£¬ÔÚÑ°ÕÒOracle DBAʱ£¬µÃÏÈÈ·ÈÏ£¬ÆóÒµÐèÒªÕâÒ»¸ö½ÇÉ«À´Æä´¦ÀíʲôÎÊÌ⣿
¡¡¡¡´ó²¿·ÝµÄÆóÒµ¶ÔOracle DBAµÄÐèÇó£¬Ò ......

ÐÞ¸ÄOracle µÄ×î´óÁ¬½ÓÊý

ʹÓÃsys£¬ÒÔsysdbaȨÏ޵ǼOracle:
(ÆÕͨȨÏÞ£¬D:\sqlplus tss/tss123456@buaa)
D:\sqlplus sys/penghj@buaa as sysdba
SQL> show parameter processes;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
aq_tm_processes integer 1
db_writer_processes integ ......

OracleÈÕÆÚº¯Êý¼¯½õ(¶þ)

OracleÈÕÆÚº¯Êý¼¯½õ(¶þ)
¶þ¡¢³£ÓÃʱ¼äº¯Êý
1.trunc(sysdate,'Q') ±¾¼¾¶ÈµÚÒ»Ìì
SQL> select trunc(sysdate,'Q') from dual;
TRUNC(SYSDATE,'Q')
------------------
2007-4-1
2.trunc(sysdate,'D') ±¾ÖܵĵÚÒ»Ìì(ÖÜÈÕ)
SQL> select trunc(sysdate,'D')from dual;
TRUNC(SYSDATE,'D')
------------------
2 ......

Oracle µÇ¼ÎÊÌâ

×òÌìÔÚÕûÀíÎļþ¼ÐµÄʱºò²»Ð¡ÐĽ«Ò»¸ödbfÊý¾ÝÎļþÒƶ¯ÁË£¬½ñÌìµÇ¼plsqlʱȴ·¢ÏÖÌáʾora-01033£ºoracle initialization or shutdown in progressµÄ´íÎ󣬿ªÊ¼ÒÔsqlnet.oraµÄÎļþÅäÖÃÎļþ£¬µ«ÊǸÄÀ´¸ÄÈ¥»¹ÊǵǼ²»ÁË¡£×îºó°´ÕÕÍøÓѵÄÌáʾ½«sqlnet.oraÎļþÖеÄSQLNET.AUTHENTICATION_SERVICES= (NTS)¸Ä³ÉÁËSQLNET.AUTHENTICATI ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ