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

ORACLE µÈ´ýʼþ ¡¶ÉîÈëdz³öORACLEµÚ°ËÕ¡·

µÈ´ýʼþµÄÔ´Æð
µÈ´ýʼþµÄ¸ÅÄî´ó¸ÅÊÇ´ÓORACLE 7.0.12ÖÐÒýÈëµÄ£¬´óÖÂÓÐ100¸öµÈ´ýʼþ¡£ÔÚORACLE 8.0ÖÐÕâ¸öÊýÄ¿Ôö´óµ½ÁË´óÔ¼150¸ö£¬ÔÚORACLE 8IÖдóÔ¼ÓÐ220¸öʼþ£¬ÔÚORACLE 9IR2ÖдóÔ¼ÓÐ400¸öµÈ´ýʼþ£¬¶øÔÚ×î½üORACLE 10GR2ÖУ¬´óÔ¼ÓÐ874¸öµÈ´ýʼþ¡£
ËäÈ»²»Í¬°æ±¾ºÍ×é¼þ°²×°¿ÉÄÜ»áÓв»Í¬ÊýÄ¿µÄµÈ´ýʼþ£¬µ«ÊÇÕâЩµÈ´ýʼþ¶¼¿ÉÒÔͨ¹ý²éѯV$EVENT_NAMEÊÓͼ»ñµÃ£º
SQL> select * from v$version;
 
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE    10.2.0.1.0      Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 – Production
SQL> select count(*) from v$event_name;
 
  COUNT(*)
----------
       872
 
ORACLEµÄµÈ´ýʼþ£¬Ö÷Òª¿ÉÒÔ·ÖΪÁ½À࣬¼´¿ÕÏÐ(IDLE)µÈ´ýʼþºÍ·Ç¿ÕÏÐ(NON-IDLE)µÈ´ýʼþ¡£¿ÕÏеȴýʼþÖ¸ORACLEÕýµÈ´ýijÖÖ¹¤×÷£¬ÔÚÕï¶ÏºÍÓÅ»¯Êý¾Ý¿âµÄʱºò£¬²»Óùý¶à×¢ÒâÕⲿ·Öʼþ¡£·Ç¿ÕÏеȴýʼþרÃÅÕë¶ÔORACLEµÄ»î¶¯£¬Ö¸Êý¾Ý¿âÈÎÎñ»òÓ¦ÓÃÔËÐйý³ÌÖз¢ÉúµÄµÈ´ý£¬ÕâЩµÈ´ýʼþÊÇÔÚµ÷ÕûÊý¾Ý¿âµÄʱºòÐèÒª¹Ø×¢ÓëÑо¿µÄ¡£
ÏÂÃæÀ´¿´Ò»ÏÂORACLE 10GR2ÖÐÖ÷Òª·ÖÀ༰¸÷ÀàµÈ´ýʼþµÄ¸öÊý£º
SQL> select wait_class#,wait_class_id,wait_class,count(*) as "count"
  2  from v$event_name
  3  group by wait_class#,wait_class_id,wait_class
  4  order by wait_class#;
WAIT_CLASS# WAIT_CLASS_ID WAIT_CLASS                          count
----------- ------------- ------------------------------ ----------
          0    1893977003 Other                                 588
  &


Ïà¹ØÎĵµ£º

oracleº¯ÊýÏê½â

1¡¢SQL Óï¾ä»ù´¡
ÏÂÃæ¸ø³öSQLÓï¾äµÄ»ù±¾½éÉÜ¡£
1.1¡¢SQLÓï¾äËùÓ÷ûºÅ
²Ù×÷·û ÓÃ; Àý×Ó
+ - ±íʾÕýÊý»ò¸ºÊý£¬ÕýÊý¿ÉÊ¡È¥ + -1234.56
+ ½«Á½¸öÊý»ò±í´ïʽ½øÐÐÏà¼Ó A=c+b
- ½«Á½¸öÊý»ò±í´ïʽ½øÐÐÏà¼õ 34-12
* ½«Á½¸öÊý»ò±í´ïʽ½øÐÐÏà³Ë 12*34
/ ³ýÒÔÒ»¸öÊý»ò±í´ïʽ 18*11
NULL ¿ÕÖµÅÐ¶Ï Where name is null; ......

oracle µÝ¹é

sqlÓï¾ä£º
select bid from t_branch c start with c.upbid  ='11000000'  connect by prior c.bid=c.upbid
˵Ã÷£º
1¡¢Í³¼Æij¸ö»ú¹¹ÏÂËùÓеÄ×ÓËï»ú¹¹¡£Èçͳ¼Æ±±¾©»ú¹¹ÏµÄ×ÓËï»ú¹¹£¬°üÀ¨£º³¯ÑôÇø»ú¹¹¡¢º£µíÓªÏú»ú¹¹¡¢¡¢¡¢ÇàÁúÇÅÏç»ú¹¹¡¢¡¢¡¢¡¢Ò»Ö±µ½×îµ×²ãµÄ»ú¹¹¡£
2¡¢upbidÊÇÖ¸Éϼ¶»ú¹¹µÄID¡£º£µíÇø»ú¹¹ID(b ......

Oracle dataguardÅäÖÃStep by Step

Ò»¡¢×¼±¸¹¤×÷
1.1 ÉèÖÃÖ÷¿âµÄforce loggingģʽ
SQL> alter database force logging;
Database altered.
1.2 ´´½¨Ö÷¿âÃÜÂëÎļþ
$ orapwd file=orapw$ORACLE_SID password=thunis entries=4
1.3 ÅäÖÃÖ÷¿âstandby redo log£¬²¢ÑéÖ¤½á¹û
SQL> alter database add standby logfile group 4('/u01/app/oradata/guar ......

OracleÈçºÎ¸Ä±älistenerµÄ¶Ë¿ÚºÅ (Linux)

ÔÚLinuxÉÏ°²×°oracleµÄʱºò²»Ð¡ÐÄ°²×°ÁËÁ½´Îlistener, ¸ãµÃlistenerµÄ¶Ë¿ÚºÅ±ä³ÉÁË1522¶ø²»ÊÇȱʡµÄ1521, ¿Í»§¶ËÁ¬Á˺þö¼Ã»ÓÐÁ¬½ÓÉÏ£¬×îºó²Å·¢ÏÖÊÇlistenerµÄ¶Ë¿ÚºÅ²»¶Ô¡£Ò»ÏÂÊÇÎҸıälistener¶Ë¿ÚºÅµÄ²½Ö裺
1. Ê×ÏÈÐèҪֹͣlistener, ʹÓÃÃüÁîlsnrctl stop
2. listenerÍ£Ö¹ÒԺ󣬵½ÄãµÄ$ORACLE_HOME/network/adminÏÂÕ ......

ORACLE µÝ¹éɾ³ýÊý¾Ý

Êý¾Ý¿âÉè¼Æ£º
CREATE  TABLE  ADVERTISE_CATEGORY
(
       CATEGORY_ID       NUMBER PRIMARY KEY,  --½ÚµãID 
       CATEGORY_NAME     VARCHAR2(500),   &nb ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ