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

oracleÁ·Ï°£¨mldnÊÓƵ¿Î³Ì£©ËÄ

ÊÓͼ
´´½¨ÐÂ±í£ºcreate table emp2 as select * from emp;
create view empv20 as select empno,ename,job,hiredate,deptno from emp where deptno=20 with check option;
Óï·¨£ºcreate or replace view ÊÓͼÃû³Æ as ×Ó²éѯ£¨ÐÞ¸ÄÖ®ºóµÄ×Ó²éѯ£©
Ìæ»»ÊÓͼ(ÐÞ¸Ä)
create or replace view empv20 as select empno,ename,job,hiredate,deptno,sal from emp
where deptno=20 with check option;
Óï·¨£ºupdate ÊÓͼÃû set ¸üÐÂÄÚÈÝ Ìõ¼þ
¸üÐÂÊÓͼ
ÓÐÁ½¸ö²ÎÊý£ºwith check optionºÍwith read only
½«ÊÓͼÖеÄ7369Ö°Ô±µÄ²¿ÃźÅÐÞ¸ÄΪ30
update empv20 set deptno=30 where empno=7369;
´´½¨ÊÓͼʱÌí¼ÓÉÏwith check optionÔò²»»á¶Ô´´½¨Ìõ¼þ¸üУ¬µ«ÊÇ¿ÉÒÔ¶ÔÆäËû×ֶθüС£
ÈôÐÞ¸ÄÊÓͼÖÐ7369µÄÖ°Ô±ÐÕÃûΪ“Ê·ÃÜ˹”£¬¿É·ñÐ޸ģ¿
update empv20 set ename='Ê·ÃÜ˹' where empno=7369;
´´½¨ÊÓͼʱÌí¼ÓÉÏwith read onlyÔò²»»á¶Ô´´½¨Ìõ¼þ¸üУ¬
create view empv20 as select empno,ename,job,hiredate,deptno from emp where deptno=20 with read only;
ÒÔϲÙ×÷ʱÌáʾ²»ÔÊÐíÐéÄâÁУ¬ÊÇÖ»¶Á²Ù×÷
update empv20 set deptno=30 where empno=7369;
update empv20 set ename='Ê·ÃÜ˹' where empno=7369;
ÐòÁÐ
Óï·¨£ºcreate sequence ÐòÁÐÃû
·¶Àý£ºcreate sequence myseq
ʹÓÃÐòÁÐ
Á½ÖÖ²Ù×÷£ºnextval—È¡µÃÐòÁеÄÏÂÒ»¸öÄÚÈÝ
          currval—È¡µÃÐòÁеĵ±Ç°ÄÚÈÝ
insert into ±íÃû(ÁÐÒ»£¬Áжþ) values(±íÃû.nextval,±íÃû.currval)£»
ɾ³ýÐòÁУºdrop sequence ÐòÁÐÃû
Ôö³¤·ù¶È£ºincrement by ³¤¶È£¨·ÅÔÚ´´½¨ÐòÁеĺó±ß£©
·¶Àý£º1£¬´´½¨ÐòÁÐcreate sequence myseq
      2£¬´´½¨±ícreate table testseq(next number,curr number);
      3£¬Öظ´²åÈëÊý¾Ýinsert into testseq(next,curr) values(myseq.nextval,myseq.currval);
      4£¬²éѯÊý¾Ýselect * from testseq;
      ²éѯ³öÀ´µÄÊý¾ÝÒÔ²½³¤ÎªÒ»µÄËÙ¶ÈÔö¼Ó£¬ÈôÏëÒª²½³¤²»ÎªÒ»£¬ÔòÐèÒªÔÚ´´½¨ÐòÁÐʱ¼ÓÉÏincrement by n£¬nΪ²½³¤£¬
      Ó﷨Ϊ£ºcreate sequence ÐòÁÐÃû increment by n
²»ÄÜÐÞ¸ÄÒÑ´´½¨ÐòÁеIJ½³¤£¬Ö»ÄÜɾ³ýÐòÁÐÖØд´½¨Ê±Ð޸IJ½³¤¡£
ĬÈÏÇé¿öÏÂÐòÁÐÊÇ´Ó1


Ïà¹ØÎĵµ£º

ÈçºÎ¿´¶®ORACLEÖ´Ðмƻ®

ÈçºÎ¿´¶®ORACLEÖ´Ðмƻ®
Ò»¡¢Ê²Ã´ÊÇÖ´Ðмƻ®
An explain plan is a representation of the access path that is taken when a query is executed within Oracle.
¶þ¡¢ÈçºÎ·ÃÎÊÊý¾Ý
At the physical level Oracle reads blocks of data. The smallest amount of data read is a single Oracle block, the largest is con ......

ORACLEÔö¼Ó±í¿Õ¼ä

²é¿´ËùÓбí¿Õ¼äʹÓÃÇé¿ö 
SELECT UPPER(F.TABLESPACE_NAME) "±í¿Õ¼äÃû",
       D.TOT_GROOTTE_MB "±í¿Õ¼ä´óС(M)",
       D.TOT_GROOTTE_MB - F.TOTAL_BYTES "ÒÑʹÓÿռä(M)",
       TO_CHAR(ROUND((D.TOT_GROOTTE ......

Oracle DBA Á½ÈÕËٳɿγÌ

http://www.oracle.com/technology/global/cn/obe/2day_dba/index.html
¿Î³ÌÁбí
1
¹ÜÀíÊý¾Ý¿âµÄÒªËØÊÇʲô£¨Ã»Óб¾Õ¶ÔÓ¦µÄ¸½¼Ó×ÊÁÏ£©
2
°²×° Oracle ºÍ¹¹½¨Êý¾Ý¿â
3
Oracle Enterprise Manager Êý¾Ý¿â¿ØÖÆÈëÃÅ
4
ÅäÖÃÍøÂç»·¾³
5
¹ÜÀí Oracle Àý³Ì
6
¹ÜÀíÊý¾Ý¿â´æ´¢½á¹¹
7
¹ÜÀíÓû§ºÍ°²È«ÐÔ
8
¹ÜÀíģʽ¶ ......

oracleÈçºÎ¼Ç¼Óû§µÄµÇ½ÐÅÏ¢

oracleÈçºÎ¼Ç¼Óû§µÄµÇ½ÐÅÏ¢
¿ÉÒÔ×öÒ»¸ö´¥·¢Æ÷  
  ÓÃÒÔϵķ½Ê½¿ÉÒÔ¼à¿ØµÇÈëµÇ³öµÄÓÃ戶:
´´½¨Ò»ÕżÇ¼µÇ¼TABLE£¬ÈçÏ£º 
CREATE TABLE SYSTEM.LOGIN_LOG
(
    SESSION_ID               &nb ......

Oracle 11g 10g ÎÞ·¨Æô¶¯EmµÄ½â¾ö°ì·¨¡£

½â¾öOracle EMÎÞ·¨Æô¶¯
ORACLE 11g, EM ÎÞ·¨Æô¶¯µÄÎÊÌ⣬¿ÉÄÜÊÇIP¸ü¸ÄÁ˵ÄÔ­Òò£¬ËùÒÔÎÒʹÓÃÁËEMCAÃüÁîÖØÐÂÅäÖÃÁËÒ»ÏÂORACLE EM£¬¾ßÌå¹ý³ÌÈçÏ£º
I:\Documents and Settings\geshaoqing>emca -config dbcontrol db -repos recreate
EMCA ¿ªÊ¼ÓÚ 2007-10-12 11:16:40
EM Configuration Assistant 10.2.0.1.0 Õýʽ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ