oracle Æô¶¯¹ÜÀíÆ÷
emctl start dbconsole ÊÇ10gµÄÆô¶¯console·þÎñµÄÃüÁî
½«OEM·þÎñÍ£Ö¹emctl stop dbconsole
emctl start dbconsoleÆô¶¯EM console·þÎñ£¬Ê¹ÓÃÇ°ÐèÒªÏÈÉèÖÃORACLE_SID»·¾³±äÁ¿
emctl stop dbconsoleÍ£Ö¹EM console·þÎñ£¬Ê¹ÓÃÇ°ÐèÒªÏÈÉèÖÃORACLE_SID»·¾³±äÁ¿
¹Ø±ÕÊý¾Ý¿âºóÓ¦¸ÃÊ×ÏÈÓÃsysdbaµÇ½,ÕâÑù¾Í½øÈëÁËsysģʽ.
SQL>connect system/system@oradb as sysdba;
--¼ÓÔØʵÀý,²»´ò¿ªÊý¾Ý¿â
SQL>startup open;
Oracle Êý¾Ý¿âµÄ¼¸¸ö¹Ø±Õ·½·¨
¡¡¡¡¶ÔÓÚORACLEÀ´½²£¬¹Ø±ÕµÄ·½·¨ÓÐÈý¸ö:
¡¡¡¡ÔÚSVRMGRLÏ¿ÉÒÔÊäÈëÈçÏÂÓï¾ä£¬¾Í¿É¹Ø±ÕÊý¾Ý¿â£¬µ«Ã¿¸öÓï¾ä¶¼ÓÐ×Ô¼ºµÄ×÷Óã¬ÓеÄÓï¾ä»¹±ØÐëÉ÷ÖØʹÓÃ
¡¡¡¡1¡¢shutdown normal (´Ó×ÖÃæ¾Í¿ÉÀí½âÕâÊÇÒ»¸öÓÃÕý³£µÄ·½Ê½À´¹Ø±ÕÊý¾Ý¿â¡£)
¡¡¡¡2¡¢shutdown immediate (Á¢¼´·½Ê½¹Ø±ÕÊý¾Ý¿â¡£)
¡¡¡¡µ±Ö´ÐÐshutdown immediateʱ£¬Êý¾Ý¿â²¢²»Á¢¼´¹Ø±Õ£¬¶øÊÇÔÚOracleÖ´ÐÐÍêÄÚ²¿µÄ±ØÒªµÄ¹¤×÷ºó²Å¹Ø±Õ£¬shutdown immediate¿ÉÒÔÍê³Éshutdown²»ÄܶÔÊý¾Ý¿â¹Ø±ÕµÄ²Ù×÷¡£½¨ÒéDBAÃdz£Óô˷½·¨¹Ø±ÕÊý¾Ý¿â
¡¡¡¡3¡¢shutdown abort (Ö±½Ó¹Ø±ÕÊý¾Ý¿â)
¡¡¡¡Õâ¸öÍ£Ö¹µÄ·½·¨²»ÍƼö£¬ÒòΪ¶ÔÓÚÕýÔÚ·ÃÎÊÊý¾Ý¿âµÄ»á»°»á±»Í»È»ÖÕÖ¹£¬¿ÉÄÜ»áÔì³ÉÊý¾Ý¿âµÄÊý¾Ý¶ªÊ§£¬²¢ÇÒÈç¹ûÊý¾Ý¿âÖÐÓдóÁ¿²Ù×÷ÕýÔÚÖ´ÐУ¬ÕâʱִÐÐshutdown abortºó£¬ÖØÐÂÆô¶¯Êý¾Ý¿âÐèÒªºÜ³¤Ê±¼ä¡£
Ïà¹ØÎĵµ£º
package com.chinacache.boss.queryservice.service.impl;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import com.chinacache.boss.queryservice.excepti ......
TO_DATE¸ñʽ(ÒÔʱ¼ä:2007-11-02 13:45:25ΪÀý)
Year:
yy two digits Á½Î»Äê ......
´ó¼ÒÔÚÓ¦ÓÃORACLEµÄʱºò¿ÉÄÜ»áÓöµ½ºÜ¶à¿´ÆðÀ´²»ÄѵÄÎÊÌâ, Ìرð¶ÔÐÂÊÖÀ´Ëµ, ½ñÌìÎÒ¼òµ¥°ÑËü×ܽáÒ»ÏÂ, ·¢²¼¸ø´ó¼Ò, Ï£Íû¶Ô´ó¼ÒÓаïÖú! ºÍ´ó¼ÒÒ»Æð̽ÌÖ, ¹²Í¬½ø²½!
¶ÔORACLE¸ßÊÖÀ´ËµÊDz»Óÿ´µÄ.
1. Oracle°²×°Íê³ÉºóµÄ³õʼ¿ÚÁî?
¡¡internal/oracle
¡¡¡¡sys/change_on_install
¡¡¡¡system/manager
......
Ò»¡¢UTL_INADDR°ü»ñÈ¡ipµØÖ·
½ñÌìÓÐÅóÓÑÔÚMSNÉÏÎÊÎÒÈçºÎ»ñµÃÒѾÁ¬½ÓÓû§µÄIPµØÖ·¡£
ÎÒÃÇÖªµÀ£¬Í¨¹ýSYS_CONTEXTº¯Êý¿ÉÒÔ»ñµÃÕⲿ·ÖÐÅÏ¢£¬µ±Ç°Óû§µÄipµÈÐÅÏ¢¿ÉÒÔͨ¹ýÈçÏÂÃüÁîÇáÒ×»ñÈ¡£º
SQL> select sys_context('userenv','host') from dual;
SYS_CONTEXT('USERENV','HOST')
------------------------------ ......
ORACLEÖÕÓÚÔÚ10GÖÐÌṩÁ˶ÔÕýÔò±í´ïʽµÄÖ§³Ö£¬ÒÔÇ°ÄÇЩÐèҪͨ¹ýLIKEÀ´½øÐеĸ´ÔÓµÄÆ¥Åä¾Í¿ÉÒÔͨ¹ýʹÓÃÕýÔò±í´ïʽ¸ü¼òµ¥µÄʵÏÖ¡£
Oracle 10gÕýÔò±í´ïʽÌá¸ßÁËSQLÁé»îÐÔ¡£ÓÐЧµÄ½â¾öÁËÊý¾ÝÓÐЧÐÔ£¬ Öظ´´ÊµÄ±æÈÏ, Î޹صĿհ׼ì²â£¬»òÕß·Ö½â¶à¸öÕýÔò×é³ÉµÄ×Ö·û´®µÈÎÊÌâ¡£
Oracle 10gÖ§³ÖÕýÔò±í´ïʽµÄË ......