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

oracle 10g em¡¢isqlplus·ÃÎʲ»Á˵Ľâ¾ö·½·¨£¨»ã×Ü£©

oracle 10g em¡¢isqlplus·ÃÎʲ»Á˵Ľâ¾ö·½·¨£¨»ã×Ü£©
oracle 10g em¡¢isqlplusµÄ¹ÜÀí
Èç¹ûweb·½Ê½µÄem£¬isqlplus·ÃÎʲ»ÁË¡£
1. ¼ì²éÖ÷»úÃû/IP¡¢¶Ë¿ÚÊÇ·ñÕýÈ·
°²×°Ê±µÄÖ÷»úÃû/IP¡¢¶Ë¿Ú¼Ç¼ÔÚ$ORACLE_HOME/install/portlist.ini ÎļþÖС£
ȱʡÊÇ£º
Ò»°ãÓû§                   http://ip:5560/isqlplus
DBAÓû§                   http://ip:5560/isqlplus/dba
EM Database Control http://ip:1158/em/
2. ¿´em, isqlplus·þÎñÊÇ·ñÆðÆô¶¯£¬×´Ì¬ÊÇ·ñÕý³£
µ±È»Oracle°²×°Ê±£¬ÒªÑ¡Ôñ°²×°ÁË“Oracle Enterprise ManagerÅäÖÃÊý¾Ý¿â”
ÆäËüÎÊÌ⣺
3. »»ÁËipÐèÒªÖؽ¨em£¬ÒÔÏÂÊÇemµÄÏà¹ØÃüÁî:
´´½¨Ò»¸öEM×ÊÁÏ¿â
emca -repos create
Öؽ¨Ò»¸öEM×ÊÁÏ¿â
emca -repos recreate
ɾ³ýÒ»¸öEM×ÊÁÏ¿â
emca -repos drop
ÅäÖÃÊý¾Ý¿âµÄ Database Control
emca -config dbcontrol db
ɾ³ýÊý¾Ý¿âµÄ Database ControlÅäÖÃ
emca -deconfig dbcontrol db
ÖØÐÂÅäÖÃdb controlµÄ¶Ë¿Ú£¬Ä¬È϶˿ÚÔÚ1158
emca -reconfig ports
emca -reconfig ports -dbcontrol_http_port 1160
emca -reconfig ports -agent_port 3940
ÏÈÉèÖÃORACLE_SID»·¾³±äÁ¿ºó,Æô¶¯EM console·þÎñ
emctl start dbconsole
ÏÈÉèÖÃORACLE_SID»·¾³±äÁ¿ºó,Í£Ö¹EM console·þÎñ
emctl stop dbconsole
ÏÈÉèÖÃORACLE_SID»·¾³±äÁ¿ºó,²é¿´EM console·þÎñµÄ״̬
emctl status dbconsole
ÅäÖÃdbconsoleµÄ²½Öè
emca -repos create
emca -config dbcontrol db
emctl start dbconsole
ÖØÐÂÅäÖÃdbconsoleµÄ²½Öè
emca -repos drop
emca -repos create
emca -config dbcontrol db
emctl start dbconsole
4. oem´ò²»¿ªµÄÎÊÌâ
ä¯ÀÀÆ÷ÊäÈëµØÖ·http://******:5500/em´ò²»¿ªÍøÒ³°æµÄoem£¬µ«ÊÇisqlplus¿ÉÒÔ´ò¿ª£¬µÇ½µ½·þÎñÆ÷ÉÏemctl status dbconsole, ÏÔʾ***is not running. ºóemctl status dbconsole, °ëÌìûÓз´Ó¦£¬²»µÃÒÑctrl+cÍ£Ö¹Ö®¡£ºóÓÖ³¢ÊÔ¶àÖÖ°ì·¨£¬Ê¼ÖÕÎÞЧ¡£×îºóÖ»ÄÜÑ¡Ôñrecreate em ×ÊÁϿ⣨Óöµ½Ò»´Î£¬²åÉÏÍøÏß¼´»Ö¸´Õý³££¬²»ÖªºÎ¹Ê£¿£©£º
Öؽ¨em×ÊÁϿ⣺
oracle@localhost ~]$ emctl status dbconsole
TZ set to PRC
OC4J Configuration issue. /oracle/10gR2/oc4j/j2ee/OC4J_DBConsole_localhost.l


Ïà¹ØÎĵµ£º

SELECT ... FOR UPDATE£¨WAIT/NOWAIT£©ÃüÁîÓëORACLEËø

oracleËøµÄÅŶӻúÖÆ£º
 
 
 
ÇëÇóËø¶¨ÐèÒªÅŶӡ£Èç¹ûij¸ö»á»°ÇëÇóÒ»¸öËø¶¨£¬µ«ÊÇÓÉÓÚÆäËû»á»°ÒѾ­Ëø¶¨ÁËÖ¸¶¨¼Ç¼»ò¶ÔÏó¶øÎÞ·¨»ñµÃËùÐèµÄËø¶¨£¬ÄÇôÕâ¸ö»á»°½«»áµÈ´ý¡£´Ëʱ£¬¿ÉÄܶà¸ö»á»°¶¼Ôڵȴý·ÃÎÊÏàͬ¼Ç¼»ò¶ÔÏó£¬ÔÚÕâÖÖÇé¿öÏ£¬ORACLE»á¸ú×ÙÕâЩ»á»°ÇëÇóËø¶¨µÄ˳Ðò¡£
 
 
 
Èç¹û ......

oracle ³¹µ×ɾ³ý

  ºÜ¶àÅóÓÑÖ»ÓÃÁËoracleµÄɾ³ý£¬µ«ºÜ¶àÇé¿öÏ£¬Ëû»á·¢ÏÖÖØа²×°Ê±£¬µãÁËÏÂÒ»²½°²×°½çÃæ¾ÍÏûʧÁË£¬ÍùÍùÎÞÄÎÏÂÖ»ºÃÖØװϵͳ£¬ÆäʵֻÊÇÄãÊý¾Ý¿âûɾ¸É¾»£¬É¾¸É¾»¾Í²»»á³öÏÖÕâÖÖÇé¿öÁË¡£
    ʵÏÖ·½·¨£º
    1¡¢ ¿ªÊ¼£­£¾ÉèÖã­£¾¿ØÖÆÃæ°å£­£¾¹ÜÀí¹¤¾ß£­£¾·þÎñ Í£Ö¹ËùÓÐOracle·þÎñ¡£
&n ......

OracleÖеÄdecode

ÉÏһƪÎÄÕÂдÁËÒ»¸öoracleµÄÒ»¸öÐÐתÁеÄÀý×Ó£¬ÀïÃæÓõ½ÁËoracleÖÐÖØÒªµÄº¯Êý decode,ÕâƪÎÄÕ¾ÍÀ´¼òµ¥µÄѧϰÕâ¸öº¯Êý
DECODEº¯ÊýºÍÎÒÃÇÓïÑԽṹÖеÄÌõ¼þÓï¾ä£¨IF£©ÏàËÆ¡£Ëü½«ÊäÈëÊýÖµÓ뺯ÊýÖеIJÎÊýÁбíÏà±È½Ï£¬¸ù¾ÝÊäÈëÖµ·µ»ØÒ»¸ö¶ÔÓ¦Öµ¡£
DECODEº¯ÊýÏ൱ÓÚÒ»Ìõ¼þÓï¾ä(IF).Ëü½«ÊäÈëÊýÖµÓ뺯ÊýÖеIJÎÊýÁбíÏà±È½Ï£¬¸ù¾ÝÊ ......

oracle ÖеÄINTERVAL º¯ÊýÏê½â

INTERVAL YEAR TO MONTHÊý¾ÝÀàÐÍ
OracleÓï·¨:
INTERVAL 'integer [- integer]' {YEAR | MONTH} [(precision)][TO {YEAR | MONTH}]
¸ÃÊý¾ÝÀàÐͳ£ÓÃÀ´±íʾһ¶Îʱ¼ä²î, ×¢Òâʱ¼ä²îÖ»¾«È·µ½ÄêºÍÔÂ. precisionΪÄê»òÔµľ«È·Óò, ÓÐЧ·¶Î§ÊÇ0µ½9, ĬÈÏֵΪ2.
eg:
INTERVAL '123-2' YEAR(3) TO MONTH   & ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ