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

oracleÖÐClob×Ö¶ÎÖеĻسµ»»ÐÐÔÚjspÖÐչʾµÄÎÊÌâ

ÔÚ¿ª·¢¹ý³Ì³öÏÖÕâôһ¸öÎÊÌ⣺
   ±ÈÈ磺һ¸ö×Ö¶Îcontent ÀàÐÍCLOB£¬ÕâÆäÖдæµÄÓпÉÄܸ´ÖÆÕ³Ìù¹ýÀ´µÄword excel htmlÖеÄÄÚÈÝ£¬ÓÃjava½«ÕâЩÄÚÈÝ´æÈ룬´æÈëºóÓÐÌØÊâµÄ·ûºÅ ±ÈÈç»Ø³µ»»Ðеȡ£ÄÇô²»ÄÜÕý³£Õ¹Ê¾µÄÊý¾Ý¡£
   ½â¾ö·½°¸£º
   ´æÈëÊý¾ÝµÄÊǽ«Õâ¸öÊý¾ÝcontentdataÔÚjsÖнøÐÐ
  String(contentdata).replace(/&/g, "&amp;").replace(/>/g, "&gt;").replace(/</g, "&lt;").replace(/"/g, "&quot;");
html±êÇ©±àÒë´¦Àí£¨´Ë´¦ÒýÓÃÔÚExt.util.Format.htmlEncode £¬Èç¹ûÊÇextÊý¾ÝÌá½»Ö±½ÓExt.util.Format.htmlEncode£¨contentdata£©£©
ÔÚºǫ́ÓÃÌá½»ÓÃ
     Context initCtx = new InitialContext();     DataSource ds = (DataSource)JNDIUtil.lookup(initCtx) ;
     Connection conn = ds.getConnection();
     PreparedStatement ps=conn.prepareStatement("insert...values(?...)"),
     ps.setObject(5,contentdata)
     ......
  jspÖÐչʾ£ºsqlÓï¾äÖжԴË×ֶνøÐÐÕâÑùµÄ´¦Àí£ºselect REPLACE(REPLACE(content,chr(13),''),chr(10),'') content from table£»
Êä³ö£º
.....
      <tr> <td><span>&nbsp;ÄÚ ÈÝ£º</span></td><td><span id="content" >
        <% String content=rs.getClob(5)==null?"":rs.getClob(5).getSubString((long)1, (int)rs.getClob(5).length());//¶ÁÈ¡³öclobÊý¾Ý½øÐÐclobµ½×Ö·û´®µÄת»»%>
        <script>
           document.getElementById("content").innerHTML=String("<%=content%>").replace(/&amp;/g, "&").replace(/&gt;/g, ">").replace(/&lt;/g, "<").replace(/&quot;/g, '"');//½«×ª»»ºóµÄ×Ö·û´®ÔÚ½øÐÐhtml±êÇ©µÄ·´±àÒ룬£¨´Ë´¦ÒýÓÃÔÚExt.util.Format.htmlDecode £¬Èç¹ûÊÇextÊý¾ÝÌá½»Ö±½ÓExt.util.Format.htmlDecode£¨content£©£©
        </script>
  &n


Ïà¹ØÎĵµ£º

Oracle RAC Failover Ïê½â


Oracle  RAC Í¬Ê±¾ß±¸HA(High Availiablity) ºÍLB(LoadBalance). ¶øÆä¸ß¿ÉÓÃÐԵĻù´¡¾ÍÊÇFailover(¹ÊÕÏתÒÆ). ËüÖ¸¼¯ÈºÖÐÈκÎÒ»¸ö½ÚµãµÄ¹ÊÕ϶¼²»»áÓ°ÏìÓû§µÄʹÓã¬Á¬½Óµ½¹ÊÕϽڵãµÄÓû§»á±»×Ô¶¯×ªÒƵ½½¡¿µ½Úµã£¬´ÓÓû§¸ÐÊܶøÑÔ£¬ ÊǸоõ²»µ½ÕâÖÖÇл»¡£  
Oracle&nbs ......

OracleÊÓͼ[ת]

ÊÓͼµÄ¸ÅÄî
  ÊÓͼÊÇ»ùÓÚÒ»Õűí»ò¶àÕűí»òÁíÍâÒ»¸öÊÓͼµÄÂß¼­±í¡£ÊÓͼ²»Í¬ÓÚ±í£¬ÊÓͼ±¾Éí²»°üº¬ÈκÎÊý¾Ý¡£±íÊÇʵ¼Ê¶ÀÁ¢´æÔÚµÄʵÌ壬ÊÇÓÃÓÚ´æ´¢Êý¾ÝµÄ»ù±¾½á¹¹¡£¶øÊÓͼֻÊÇÒ»ÖÖ¶¨Ò壬¶ÔÓ¦Ò»¸ö²éѯÓï¾ä¡£ÊÓͼµÄÊý¾Ý¶¼À´×ÔÓÚijЩ±í£¬ÕâЩ±í±»³ÆΪ»ù±í¡£Í¨¹ýÊÓͼÀ´²é¿´±í£¬¾ÍÏñÊÇ´Ó²»Í¬µÄ½Ç¶ÈÀ´¹Û²ìÒ»¸ö(»ò¶à¸ö)±í¡£
Ê ......

ORACLEº¯Êý´óÈ«

SQLÖеĵ¥¼Ç¼º¯Êý
1.ASCII
·µ»ØÓëÖ¸¶¨µÄ×Ö·û¶ÔÓ¦µÄÊ®½øÖÆÊý;
SQL> select ascii('A') A,ascii('a') a,ascii('0') zero,ascii(' ') space from dual;
        A         A      ZERO     ......

OracleÅäÖñ¾µØNet·þÎñÃû

Ò».ÅäÖñ¾µØNet·þÎñÃûÊǸÉʲôÓõģ¿
Èç¹ûҪͨ¹ýÍøÂç·ÃÎÊOracleÊý¾Ý¿â»òÆäËû·þÎñ£¬¾Í»áÓõ½Net·þÎñÃû¡£Oracle Net
Configuration AssistantÔÊÐíʹÓÃÓɱ¾µØÃüÃû½âÎöµÄÍøÂç·þÎñÃû¡£
¶þ.ÔõÑùÅäÖñ¾µØNet·þÎñÃû£¿
1.´ò¿ª->³ÌÐò/Oracle - OraClient10g_home1/ÅäÖúÍÒÆÖ²¹¤¾ß/Net
Configuration Assistant´ò¿ªNet Co ......

oracleÍü¼Çsys/system/scottÓû§µÄÃÜÂëÔõô°ì

Ò»¡¢Íü¼Ç³ýSYS¡¢SYSTEMÓû§Ö®ÍâµÄÓû§µÄµÇ¼ÃÜÂë¡£
    ÓÃSYS (»òSYSTEM)Óû§µÇ¼¡£
   
    CONN SYS/PASS_WORD AS SYSDBA;
    ʹÓÃÈçÏÂÓï¾äÐÞ¸ÄÓû§µÄÃÜÂë¡£
    ALTER USER user_name IDENTIFIED BY newpass;
    ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ