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

±£´æjava¶ÔÏóµ½Êý¾Ý¿â£¬²¢´ÓÊý¾Ý¿â¶Á³öÉú³ÉÓû§½çÃæ



ÏòÊý¾Ý¿â±£´æ¶ÔÏ󣬲ÉÓÃObjectOutputStreamÏòÊý¾Ý¿âÖ±½ÓдÈë
/**
 * Title: AF
 * Description: ÏòÊý¾Ý¿âÖÐдÈë¶ÔÏó²âÊÔ³ÌÐò
 * Copyright: Copyright 2009 ufgov, Inc.
 * Company: ufgov
 * ´´½¨Ê±¼ä: 2009-10-29
 * @author ÁõÓÀΰ(manlge)
 * @version 1.0
 */
public class WriteObjectToBlob {

  /*
   * ½¨±ísql
   * CREATE TABLE "AF"."TABLE2" ("NAME" VARCHAR2(36) NOT NULL, "DATA"  BLOB NOT NULL) TABLESPACE "AF"
   */

  public static Connection getConnection(String host, int port, String dataBaseName,
    String userName, String password) throws Exception {
    String url = String.format("jdbc:oracle:thin:@%s:%s:%s", host, port,
      dataBaseName);
    String driver = "oracle.jdbc.driver.OracleDriver";
    Class.forName(driver);
    Connection con = DriverManager.getConnection(url, userName, password);
    return con;
  }

  /**
   * @param args
   * @throws SQLException
   * @throws ClassNotFoundException
   */
  public static void main(String[] args) throws Exception {
    Connection connection = getConnection("localhost", 1521, "ORCL", "AF", "1");
    System.out.println(connection);
    connection.setAut


Ïà¹ØÎĵµ£º

javaÈëÃÅ

 Javaѧϰ´ÓÈëÃŵ½¾«Í¨ 
Ò»¡¢ JDK (Java Development Kit) 
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲôJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJ ......

Flex+JavaÁ¬½ÓSQLServerÊý¾Ý¿â

 Ê×ÏÈ£¬×öÒ»µã˵Ã÷¡£FlexÊDz»ÄÜÖ±½ÓÁ¬½ÓÊý¾Ý¿âµÄ£¬ÕâÒ»µã´ó¼ÒÐèÒªÖªµÀ£¬ËüÖ»Äܼä½ÓµØÁ¬½ÓÊý¾Ý¿â¡£FlexÖÐÌṩÁËÈýÖÖ·½Ê½£ºHttpService£¬WebService ºÍRemoteObject¡£ÆäÖÐHttpService¿ÉÒÔÖ±½Ó»ñÈ¡XMLÖеÄÊý¾Ý£¬»¹¿ÉÒÔͨ¹ýJSP,ASPÒÔ¼°PHP¶ÁÈ¡Êý¾Ý¿âÖеÄÊý¾Ý£¬Õâ¸ö±È½Ï¼òµ¥£¬¶øÇÒÍøÉÏÒ²ÓкܶàÀý×Ó£¬ÎҾͲ»¶à˵ÁË¡£WebServi ......

java¿ª·¢ÖеÄÐéÄâ»úÄÚ´æÎÊÌâ

          ×î½üÔËÐгÌÐò£¬ÀÏÊÇÓöµ½ÄÚ´æÒç³öµÄÎÊÌ⣬Out of Memory(ϵͳÄÚ´æ²»×ã)µÄÒì³£¡£×Ðϸ²é×ÊÁÏ£¬ºÃºÃѧϰÁËÒ»ÏÂÐéÄâ»úµÄ¼¸Ö»£¬²ÅÖªµÀ£¬ÕâÊÇÒòΪJavaÐéÄâ»úĬÈÏ·ÖÅäµÄÄÚ´æÖ»ÓÐ64M£¬Èç¹ûÓ¦ÓõıȽϴ󣬳¬³öÁË64M£¬JavaÐéÄâ»ú¾Í»áÅ׳öOutOfMemoryError£¬²¢Í£Ö¹ÔËÐС£ËùÒÔ£¬ ......

Javaµ÷ÓÃOracleÊý¾Ý¿âµÄ·ÖÒ³´æ´¢¹ý³Ì

 ×î½üÏîÄ¿½ø¶È±È½Ï»ºÂý£¬³õ²½Ñо¿ÁËÒ»ÏÂOracleµÄ´æ´¢¹ý³Ì£¬½«´úÂëÌù³öÀ´¡£
 Ê×ÏÈÏÈÌù³öÀ´OracleµÄ·ÖÒ³·ÖÒ³´æ´¢¹ý³Ì´úÂë°É¡£
 1.ÕâÊÇ°üµÄ´úÂë
 create or replace package DB_Oper is
  -- Author  : LIUBING
  -- Created : 2009-10-28 15:01:30
  -- Purpose : ²âÊÔOracleµ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ