jdbcÁ¬½ÓOracle
ËäȻѧϰJavaºÜ¾ÃÁË£¬×Ô¼ºÒ²Á¬½Ó¹ýһЩÊý¾Ý¿â£¬±ÈÈçmysqlÖ®ÀàµÄ£¬Èç½ñÄØ£¬Ò²Ñ§Ï°ÁËÒ»¶Îʱ¼äµÄOracle£¬È»¶øÄØ£¬½ñÌìÊÇÎÒµÚÒ»´ÎÁ¬½ÓOracle£¬ºÙºÙ£¬Ó¦¸Ã»¹²»ËãÌ«³Ù°É¡£
½ñÌìÄØ£¬Óе㱿׾£¬´ó¼ÒĪЦ£¡
ÎÒÕâÊÇÒ»¸ö²éѯÀý×Ó
Ê×ÏÈ£¬ÔÚdaoÖÐдºÃÁËÁ¬½Ó£º
È»ºóдºÃÁ˲éѯҳÃ棺
ÔÙдºÃservlet£¬µ±È»ÎÒµÄbeanÊÇ֮ǰ¾ÍдºÃµÄ£¬ºÜ¼òµ¥£¬ºÜÈÝÒ×Àí½â£¬Ò²¾Í²»ÔÚÕâÀïչʾ£¬ºÙºÙ£¡
×îºóÔÙдºÃ²éѯÓï¾ä£¬µ±È»£¬Õâ¸ö¶«¶«Ò²ÊÇÔÚdaoÖÐд¡£
дÍêÕâЩ»ù±¾×¼±¸Ö®ºóÎҾͿªÊ¼µ÷ÊÔÀ²£¬ºÙºÙ¡£
µ«ÊÇ£¬µ±Í·Ò»°ô£¬ÂíÉÏÓöµ½Ò»¸ö´íÎó£º
È»ºó£¬¾ÍÊÇ·è¿ñµÄÉÏÍø²éÕÒ£¬ºÙºÙ£¬ºÃÐÄÈ˺ܶ࣬Ȼºó¾Í½â¾öÎÊÌ⣬½â¾ö²½ÖèÈçÏ£º
1¡¢Ê×ÏÈ¿´URLºÍ¶Ë¿ÚÊÇ·ñ´íÎó
¾¼ì²é£¬Oracle·þÎñÊÇ¿ªÆôµÄ£¬Êý¾Ý¿âÊÇÆô¶¯µÄ£¬ãç¿ÚÒ²ÊÇÕýÈ·µÄ£¬µ±È»IP¾Í²»ÓÃ˵À²¡£
2¡¢¼ì²éÊÇ·ñÊÇÒòΪ·À»ðǽµÄÔÒò½«¶Ë¿Ú×èÖ¹¿©£¬È»ºóÖØÆô£¬½á¹û»¹ÊÇʧ°Ü
3¡¢¼ì²éÊý¾Ý¿â¼àÌýÊÇ·ñ¿ªÆô
¿ªÊ¼ → ÔËÐÐ→ ÊäÈëCMD→ ½øÈëDOSÃüÁîÌáʾ½çÃæÇÃÈ룺
lsnrctl½øÈë
È»ºó²é¿´×´Ì¬ÊÇ·ñ¿ªÆô£ºLSNRCTL>status,µÃµ½
Õâ¾ÍÖ¤Ã÷ÁË£¬Êý¾Ý¿â¼áͦûÓдò¿ª£¬µ±È»£¬Á¬½ÓÊý¾Ý¿â¾ÍÊDz»µÃ³É¹¦µÄ£¬½ÓÏÂÀ´¾Í´ò¿ªÊý¾Ý¿â¼àÌý
ºÙºÙ£¬ÒªÊÇÏÔʾµ½ÕâÒ»²½£¬ÄÇôÁ¬½ÓÊý¾Ý¿âÒ²¾Í³É¹¦À²£¡
Ò²µ±È»À²£¬½ñÌìµÄÁ¬½Ó¾Í³É¹¦ÁË£¬ºÙºÙ£¡£¡£¡
Ïà¹ØÎĵµ£º
Oracle°²×°Íêºó£¬ÆäÖÐÓÐÒ»¸öȱʡµÄÊý¾Ý¿â£¬³ýÁËÕâ¸öȱʡµÄÊý¾Ý¿âÍ⣬ÎÒÃÇ»¹¿ÉÒÔ´´½¨×Ô¼ºµÄÊý¾Ý¿â¡£
¶ÔÓÚ³õѧÕßÀ´Ëµ£¬ÎªÁ˱ÜÃâÂé·³£¬¿ÉÒÔÓÃ'Database Configuration Assistant'Ïòµ¼À´´´½¨Êý¾Ý¿â¡£
´´½¨ÍêÊý¾Ý¿âºó£¬²¢²»ÄÜÁ¢¼´ÔÚÊý¾Ý¿âÖн¨±í£¬±ØÐëÏÈ´´½¨¸ÃÊý¾Ý¿âµÄ ......
http://episode.javaeye.com/blog/183016
±í¿Õ¼ä£º
OracleµÄUNDOTBS01.DBFÎļþÌ«´óµÄ½â¾ö°ì·¨
1¡¢.½ûÖ¹undo tablespace×Ô¶¯Ôö³¤
alter database datafile 'full_path\undotbs01.dbf' autoextend off;
2.-- ´´½¨Ò»¸öеÄС ......
oracle±í¿Õ¼ä²Ù×÷Ïê½â
Ò»¡¢½¨Á¢±í¿Õ¼ä
CREATE TABLESPACE data01
DATAFILE '/oracle/oradata/db/DATA01.dbf' SIZE 500M
UNIFORM SIZE 128k;
¶þ¡¢½¨Á¢UNDO±í¿Õ¼ä
CREATE UNDO TABLESPACE UNDOTBS02
DATAFILE '/oracle/oradata/db/UNDOTBS02.dbf' SIZE 50M
#×¢Ò⣺ÔÚOPEN״̬ÏÂijЩʱ¿ÌÖ»ÄÜÓÃÒ»¸öUNDO±í¿Õ¼ä£¬Èç¹ûÒ ......
Óû§ÃûÓë¿ÚÁîÏàͬʹµÃ¿ÚÁîÒ×ÓÚ¼ÇÒäºÍ²Â²â£¬µ«¿ÚÁîÒ²ÈÝÒ×±»ÆÆÒ룬Òò´Ë×÷ΪÊý¾Ý¿â¹ÜÀíÔ±Ó¦¸Ã¼°Ê±¼ì²éÓû§µÄÉèÖ㬱ÜÃâÓû§ÃûÓë¿ÚÁîÏàͬ£¬Ïû³ý²»°²ÒòËØ¡£
´´½¨²éѯ×Ó³ÌÐò£º
SQL> create or replace procedure sys.find_the_same as
hex_password varchar2(30);
trans_password varchar2(30);
v_username varchar2(30); ......
OracleÌṩWrap¹¤¾ß£¬¿ÉÒÔÓÃÓÚ¼ÓÃÜÄãµÄPackageµÈ.
²»¹ýÐèҪעÒâµÄÊÇ£¬¼ÓÃܺóµÄ´úÂëÎÞ·¨½âÃÜ£¬ÄãÐèÒª±£¹ÜºÃÄãµÄÔ´´úÂë¡£
ÒÔÏÂÊǸöÀý×Ó:
1.Ô´´úÂë
create or replace function get_rowid
(l_rowid in varchar2)
return varchar2
is
ls_my_rowid varchar2(200);
rowid_type number;
ob ......