½â¾öOracle 9iºÍTomcat¶Ë¿Ú³åÍ»(תÔØ)
·½°¸Ò»£º
ÐÂ×°ÁËϵͳºó£¬·¢ÏÖÔÚµ÷ÊÔ³ÌÐòʱTOMCATÌáʾ8080¶Ë¿ÚÒѱ»Õ¼Óã¬ÓÚÊÇÔËÐÐNETSTAT -ANO²é¿´¶Ë¿ÚʹÓÃÇé¿ö£¬·¢ÏÖ8080¶Ë¿Ú±»ORACLEµÄ¼àÌýÆ÷¸øÕ¼ÓÃÁË£¬ÓÚÊǽáºÏÉÏÍø²éµ½·½·¨£¬½«ORACLE XDBµÄHTTP·þÎñ¶Ë¿Ú¸Ä³É8081£¬ÎÊÌâ½â¾ö¡£
×ܽáһϿɽâ¾öµÄ·½·¨£º
Ò»¡¢¸ü¸ÄTOMCATµÄĬÈ϶˿Ú
Ïà¹ØÎļþ£º"TOMCAT ROOT"confserver.xml
¶þ¡¢Ê¹ÓÃsysµÇ¼Oracle£¬ÀûÓÃdbms_xdbÐ޸Ķ˿ÚÉèÖÃ
SQL> call dbms_xdb.cfg_update(updateXML(
2 dbms_xdb.cfg_get()
3 , '/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port/text()'
4 , 8081))
5 /
ÔËÐÐÍêºóÌáʾ£ºCall completed.
½Ó×Å
SQL> COMMIT;
Ìáʾ£ºCommit complete.
SQL> EXEC dbms_xdb.cfg_refresh;
Ìáʾ£ºPL/SQL procedure successfully completed.
Èý¡¢Ê¹ÓÃEnterprise Manager Console£¬Ñ¡ÔñÊý¾Ý¿â——XML Êý¾Ý¿â——ÅäÖ㬸ü¸Ähttp-portµÄĬÈÏֵΪ8081¡£
·½°¸¶þ£º
°²×°OracleÊý¾Ý¿âºó£¬µ±ÎÒÃÇ·ÃÎÊ8080¶Ë¿Úʱ£¬»áµ¯³öÒ»¸öXDB´°¿Ú£¬ÒªÇóÊäÈëÓû§ÃûºÍÃÜÂë¡£ÕâÑù½«ºÍÎÒÃDZ¾µØһЩʹÓøö˿ڵÄÓ¦ÓóåÍ»£¬±ÈÈçtomcat¡¢jbossµÈ£¬ËäÈ»ÕâЩ¶Ë¿ÚÊÇ¿ÉÒÔÐ޸ĵģ¬µ«×ÜÊDz»Ë¬oracleÒ»Ö±Õ¼ÓÃÕâ¸ö¶Ë¿Ú¡£
OracleÊý¾Ý¿â¿ÉÒÔʹÓÃTCPÐÒéͨ¹ý8080¶Ë¿Ú½øÐÐÁ¬½Ó£¬ËùÒÔÕ¼ÓÃÁË8080¶Ë¿Ú¡£
ҪȡÏûÕ¼Ó㬿ÉÒÔ´ò¿ªOracle°²×°Ä¿Â¼ÏµÄdatabaseĿ¼ÄÚµÄSPFILE[SIDÃû].ORAÎļþ½øÐÐÐ޸ġ£Õâ¸öÎļþÊÇOracleµÄÆô¶¯ÅäÖÃÎļþ¡£
°ÑÆäÖеÄ*.dispatchers='(PROTOCOL=TCP) (SERVICE=or9iXDB)'ÕâÒ»ÐÐÈ¥µô¼´¿É¡£
È»ºóÖØÆô¼ÆËã»ú£¬»òÕßÔÚ·þÎñÖÐÖØÆôOracleService[SIDÃû]Õâ¸ö·þÎñ¡£ÖØÆôºó¿ÉÄÜÎÞ·¨Ê¹ÓÃEnterprise Manager ConsoleºÍÆäËû¿Í»§¶ËÁ¬½Ó£¬ÕâʱÇëʹÓÃOracleµÄConfiguration and Migration Tools/Net Configuration Assistant¹¤¾ßɾ³ý¼àÌýÆ÷£¬È»ºóн¨Ò»¸ö¼àÌýÆ÷£¬ÖØÆô¼àÌýÆ÷¡£
ʹÓÃConfiguration and Migration Tools/Net Manager¹¤¾ß£¬½«·þÎñÃüÃûɾ³ý£¬È
Ïà¹ØÎĵµ£º
ËäȻѧϰJavaºÜ¾ÃÁË£¬×Ô¼ºÒ²Á¬½Ó¹ýһЩÊý¾Ý¿â£¬±ÈÈçmysqlÖ®ÀàµÄ£¬Èç½ñÄØ£¬Ò²Ñ§Ï°ÁËÒ»¶Îʱ¼äµÄOracle£¬È»¶øÄØ£¬½ñÌìÊÇÎÒµÚÒ»´ÎÁ¬½ÓOracle£¬ºÙºÙ£¬Ó¦¸Ã»¹²»ËãÌ«³Ù°É¡£
½ñÌìÄØ£¬Óе㱿׾£¬´ó¼ÒĪЦ£¡
ÎÒÕâÊÇÒ»¸ö²éѯÀý×Ó
Ê×ÏÈ£¬Ô ......
http://www.haoxiai.net/shujuku/Oracle/111145.html
Ò»¡¢Êý¾Ý¿âÃû
ʲôÊÇÊý¾Ý¿âÃû
Êý¾Ý¿âÃû¾ÍÊÇÒ»¸öÊý¾Ý¿âµÄ±êʶ£¬¾ÍÏñÈ˵ÄÉí·ÝÖ¤ºÅÒ»Ñù¡£ËûÓòÎÊýDB_NAME±íʾ£¬Èç¹ûһ̨»úÆ÷ÉÏ×°Á˶àÈ«Êý¾Ý¿â£¬ÄÇôÿһ¸öÊý¾Ý¿â¶¼ÓÐÒ»¸öÊý¾Ý¿âÃû¡£ÔÚÊý¾Ý¿â°²×°»ò´´½¨Íê³ÉÖ®ºó£¬²ÎÊýDB_NAME±»Ð´Èë²ÎÊýÎļþÖ®ÖС£¸ñʽÈçÏ£º
DB_NAME=m ......
sysdate+(5/24/60/60) ÔÚϵͳʱ¼ä»ù´¡ÉÏÑÓ³Ù5Ãë
sysdate+5/24/60 ÔÚϵͳʱ¼ä»ù´¡ÉÏÑÓ³Ù5·ÖÖÓ
sysdate+5/24 ÔÚϵͳʱ¼ä»ù´¡ÉÏÑÓ³Ù5Сʱ
sysdate+5 ÔÚϵͳʱ¼ä»ù´¡ÉÏÑÓ³Ù5Ìì
add_months(sysdate,-5) ÔÚϵͳʱ¼ä»ù´¡ÉÏÑÓ³Ù5ÔÂ
add_months(sysdate,-5*12) ÔÚϵͳʱ¼ä»ù´¡ÉÏÑÓ³Ù5Äê
ÉÏÔÂÄ©µÄÈÕÆÚ£ºselect last_day(add_mon ......
Ò»:oracle°æ±¾½éÉÜ:
oracle8
oracle8i ±íʾ´Ëʱoracle¹«Ë¾½ø¾ü»¥ÁªÍø,i´ú±íInternet
oracle9iºÍoracle8iÀàËÆ
oracle10g°üÀ¨ÏÖÔÚµÄ11gʹÓÃÁËÍø¸ñ¼ÆËã,g´ú±ígrid.
¶þ:oracle10g·þÎñ½éÉÜ:
OracleDBConsoleorcl Õâ¸öÊDzÉÓÃä¯ÀÀÆ÷ʹÓõÄoracleÆóÒµ¹ÜÀíÆ÷ (Ò²¾ÍÊÇÄã°²×°µ¯³öµÄÄǸöÍøÒ³)
OracleOraDb10g_home1iSQ ......
sqlÓï¾äÈçÏÂ:
select * from userdb40.numservice where ServiceNumber =88880068
and applytime <= to_date('2009-12-26 10:41:44','yyyy-MM-dd HH24:mi:ss')
select to_date('2007-06-28 19:51:20.0','yyyy-MM-dd HH24:mi:ss') from dual; ......