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

OracleÊÓͼ[ת]

ÊÓͼµÄ¸ÅÄî
  ÊÓͼÊÇ»ùÓÚÒ»Õűí»ò¶àÕűí»òÁíÍâÒ»¸öÊÓͼµÄÂß¼­±í¡£ÊÓͼ²»Í¬ÓÚ±í£¬ÊÓͼ±¾Éí²»°üº¬ÈκÎÊý¾Ý¡£±íÊÇʵ¼Ê¶ÀÁ¢´æÔÚµÄʵÌ壬ÊÇÓÃÓÚ´æ´¢Êý¾ÝµÄ»ù±¾½á¹¹¡£¶øÊÓͼֻÊÇÒ»ÖÖ¶¨Ò壬¶ÔÓ¦Ò»¸ö²éѯÓï¾ä¡£ÊÓͼµÄÊý¾Ý¶¼À´×ÔÓÚijЩ±í£¬ÕâЩ±í±»³ÆΪ»ù±í¡£Í¨¹ýÊÓͼÀ´²é¿´±í£¬¾ÍÏñÊÇ´Ó²»Í¬µÄ½Ç¶ÈÀ´¹Û²ìÒ»¸ö(»ò¶à¸ö)±í¡£
ÊÓͼÓÐÈçÏÂһЩÓŵ㣺
* ¿ÉÒÔÌá¸ßÊý¾Ý·ÃÎʵݲȫÐÔ£¬Í¨¹ýÊÓͼÍùÍùÖ»¿ÉÒÔ·ÃÎÊÊý¾Ý¿âÖбíµÄÌض¨²¿·Ö£¬ÏÞÖÆÁËÓû§·ÃÎʱíµÄÈ«²¿ÐкÍÁС£
* ¼ò»¯Á˶ÔÊý¾ÝµÄ²éѯ£¬Òþ²ØÁ˲éѯµÄ¸´ÔÓÐÔ¡£ÊÓͼµÄÊý¾ÝÀ´×ÔÒ»¸ö¸´ÔӵIJéѯ£¬Óû§¶ÔÊÓͼµÄ¼ìË÷È´ºÜ¼òµ¥¡£
* Ò»¸öÊÓͼ¿ÉÒÔ¼ìË÷¶àÕűíµÄÊý¾Ý£¬Òò´ËÓû§Í¨¹ý·ÃÎÊÒ»¸öÊÓͼ£¬¿ÉÍê³É¶Ô¶à¸ö±íµÄ·ÃÎÊ¡£
* ÊÓͼÊÇÏàͬÊý¾ÝµÄ²»Í¬±íʾ£¬Í¨¹ýΪ²»Í¬µÄÓû§´´½¨Í¬Ò»¸ö±íµÄ²»Í¬ÊÓͼ£¬Ê¹Óû§¿É·Ö±ð·ÃÎÊͬһ¸ö±íµÄ²»Í¬²¿·Ö¡£
ÊÓͼ¿ÉÒÔÔÚ±íÄܹ»Ê¹ÓõÄÈκεط½Ê¹Ó㬵«ÔÚ¶ÔÊÓͼµÄ²Ù×÷ÉÏͬ±íÏà±ÈÓÐЩÏÞÖÆ£¬ÌرðÊDzåÈëºÍÐ޸IJÙ×÷¡£¶ÔÊÓͼµÄ²Ù×÷½«´«µÝµ½»ù±í£¬ËùÒÔÔÚ±íÉ϶¨ÒåµÄÔ¼ÊøÌõ¼þºÍ´¥·¢Æ÷ÔÚÊÓͼÉϽ«Í¬ÑùÆð×÷Óá£
ÊÓͼµÄ´´½¨
´´½¨ÊÓͼÐèÒªCREAE VIEWϵͳȨÏÞ£¬ÊÓͼµÄ´´½¨Óï·¨ÈçÏ£º
CREATE [OR REPLACE] [FORCE|NOFORCE] VIEW ÊÓͼÃû[(±ðÃû1[£¬±ðÃû2...])]
AS ×Ó²éѯ
[WITH CHECK OPTION [CONSTRAINT Ô¼ÊøÃû]]
[WITH READ ONLY]
ÆäÖУº
OR REPLACE ±íʾÌæ´úÒѾ­´æÔÚµÄÊÓͼ¡£
FORCE±íʾ²»¹Ü»ù±íÊÇ·ñ´æÔÚ£¬´´½¨ÊÓͼ¡£
NOFORCE±íʾֻÓлù±í´æÔÚʱ£¬²Å´´½¨ÊÓͼ£¬ÊÇĬÈÏÖµ¡£
±ðÃûÊÇΪ×Ó²éѯÖÐÑ¡ÖеÄÁÐж¨ÒåµÄÃû×Ö£¬Ìæ´ú²éѯ±íÖÐÔ­ÓеÄÁÐÃû¡£
×Ó²éѯÊÇÒ»¸öÓÃÓÚ¶¨ÒåÊÓͼµÄSELECT²éѯÓï¾ä£¬¿ÉÒÔ°üº¬Á¬½Ó¡¢·Ö×é¼°×Ó²éѯ¡£
WITH CHECK OPTION±íʾ½øÐÐÊÓͼ²åÈë»òÐÞ¸Äʱ±ØÐëÂú×ã×Ó²éѯµÄÔ¼ÊøÌõ¼þ¡£ºóÃæµÄÔ¼ÊøÃûÊǸÃÔ¼ÊøÌõ¼þµÄÃû×Ö¡£
WITH READ ONLY ±íʾÊÓͼÊÇÖ»¶ÁµÄ¡£
ɾ³ýÊÓͼµÄÓï·¨ÈçÏ£º
DROP VIEW ÊÓͼÃû;
ɾ³ýÊÓͼÕßÐèÒªÊÇÊÓͼµÄ½¨Á¢Õß»òÕßÓµÓÐDROP ANY VIEWȨÏÞ¡£ÊÓͼµÄɾ³ý²»Ó°Ïì»ù±í£¬²»»á¶ªÊ§Êý¾Ý¡£
1£®´´½¨¼òµ¥ÊÓͼ (Ò»¸öÐÐתÁÐ)
create or replace view v_iews as
select ename
  ,max(decode(deptno,'10',job))"10"
  ,max(decode(deptno,'20',job))"20"
  ,max(decode(deptno,'30',job))"30"
  ,max(decode(deptno,'40',job))"40" from emp group by ename
Ö´Ðнá¹û:
select * from v_iews;
ENAME
10
20
30
40
ADAMS
C


Ïà¹ØÎĵµ£º

oracle ÈçºÎ°ÑÊý¾Ý¿â±äΪ·Ç¹éµµÈÕ־ģʽ

shutdown immediate
Ç¿Áв»½¨ÒéתΪ·Ç¹éµµÄ£Ê½
startup mount
alter database noarchivelog
alter database open
·Ç¹éµµ×ª¹éµµ
startup mount
alter database archivelog
alter database open
Ôڹ鵵ÈÕ־ģʽÏ£¬ÓпÉÄÜ»áÓöµ½¹éµµÈÕÖ¾´óС³¬¹ý×î´óÖµ¶ø³öÏÖÌÖÑáµÄORA-00257´íÎó£¬Ç°Ãæ˵ÁËÈçºÎ°Ñ¹éµµÈÕÖ¾¿Õ¼ä±ä´ó¡£¶ ......

Oracle Silent Installations(¾²Ä¬°²×°)


 
Linux Æ½Ì¨ÏÂOracle Silent Installations(¾²Ä¬°²×°)£¬Ò»Ö±¶¼Ã»Óг¢ÊÔ¹ýÓÃÕâÖÖ·½·¨À´×°Êý¾Ý¿â¡£ ÒòΪÓи߼¶µÄ¹¤¾ß£¬¾ÍûÓбØÒªÔÚÀ´ÓÃÕâÖÖ·½·¨ÁË£¬Oracle µÄ½çÃ滹ÊDZȽϷ½±ã£¬¶øÇÒÎÒÃÇ»¹ÓÐXmanager ¹¤¾ß£¬ËùÒÔÔÚlinux ÏÂ×°Èí¼þ£¬»¹ÊǺܷ½±ãµÄ¡£
 
Òò´ËÒ²¾ÍûÓÐÌ«ÔÚÒâÕ ......

½â¾öOracle 9iºÍTomcat¶Ë¿Ú³åÍ»

·½°¸Ò»£º
ÐÂ×°ÁËϵͳºó£¬·¢ÏÖÔÚµ÷ÊÔ³ÌÐòʱTOMCATÌáʾ8080¶Ë¿ÚÒѱ»Õ¼Óã¬ÓÚÊÇÔËÐÐNETSTAT -ANO²é¿´¶Ë¿ÚʹÓÃÇé¿ö£¬·¢ÏÖ8080¶Ë¿Ú±»ORACLEµÄ¼àÌýÆ÷¸øÕ¼ÓÃÁË£¬ÓÚÊǽáºÏÉÏÍø²éµ½·½·¨£¬½«ORACLE XDBµÄHTTP·þÎñ¶Ë¿Ú¸Ä³É8081£¬ÎÊÌâ½â¾ö¡£
×ܽáһϿɽâ¾öµÄ·½·¨£º
Ò»¡¢¸ü¸ÄTOMCATµÄĬÈ϶˿Ú
Ïà¹ØÎļþ£º"TOMCAT ROOT"\conf\server ......

oracle´æ´¢¹ý³Ì

create or replace procedure inserttestdata
(
   v_count        in   number,
   v_startuserid  in   varchar2,
   v_returnval    out  number )
as
   v_opertime    ......

Oracle RAC Failover Ïê½â


Oracle  RAC Í¬Ê±¾ß±¸HA(High Availiablity) ºÍLB(LoadBalance). ¶øÆä¸ß¿ÉÓÃÐԵĻù´¡¾ÍÊÇFailover(¹ÊÕÏתÒÆ). ËüÖ¸¼¯ÈºÖÐÈκÎÒ»¸ö½ÚµãµÄ¹ÊÕ϶¼²»»áÓ°ÏìÓû§µÄʹÓã¬Á¬½Óµ½¹ÊÕϽڵãµÄÓû§»á±»×Ô¶¯×ªÒƵ½½¡¿µ½Úµã£¬´ÓÓû§¸ÐÊܶøÑÔ£¬ ÊǸоõ²»µ½ÕâÖÖÇл»¡£  
Oracle&nbs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ