發現好貨
from 網路文章
http://oracled2k.pixnet.net/blog/post/25577280

羅伯特 發表在 痞客邦 留言(0) 人氣()

 
 
From 網路文章
http://www.hantang.com/chinese/ch_Articles/newflu1.htm

羅伯特 發表在 痞客邦 留言(0) 人氣()

這篇文章受密碼保護,請輸入密碼後查看內容。

羅伯特 發表在 痞客邦 留言(0) 人氣()

 
 
 
較慢

羅伯特 發表在 痞客邦 留言(0) 人氣()

 
 
到今天 Robert 才突然發現這個神奇的用法
Where 中竟然可以一次對到 SubQuery 回傳的兩個欄位

羅伯特 發表在 痞客邦 留言(0) 人氣()

 
 
MSN 無法儲存密碼, 一整個卡到陰...
家裡 NB 上的 MSN (Windows Live Messenger)突然無法儲存帳號密碼,
每次重開機後就會出現 example555@hotmail.com 的靈異現象
一直強烈懷疑家人不小心安裝了 Yahoo 的工具列造成的...
用了股溝大神找了一堆方法都無法解決這問題...
連徹底移除Yahoo 工具列 & MSN 也無法改善...
直到我找到這個
http://tw.myblog.yahoo.com/jw!GI3QX7qQSEMbrEERnBxXsbE-/article?mid=1059

羅伯特 發表在 痞客邦 留言(0) 人氣()

 
 
from 網路文章
http://tw.myblog.yahoo.com/jw!p30Lo06ABRX7TpiHKG4Hsjk5H.Y-/article?mid=21

羅伯特 發表在 痞客邦 留言(2) 人氣()

JDBC-Driver 的安裝方式
法一:
設定 CLASSPATH 環境變數使其包涵 JDBC-Driver JAR 檔的完整路徑
(包含 JAR 檔本身的檔名 )
法二:
不設定 CLASSPATH,而是將該檔案放置於 jdk_root/jre/lib/ext 下
ex: For Windows (因為 javac & java(javaw) 認定的 jdk_root 不一樣)
若 JDK 裝置於 C:\JDK1.4.2_17 ,則將 JAR 檔複製到
C:\JDK1.4.2_17\jre\lib\ext 下 ( for javac )
C:\Program Files\Java\j2re1.4.2_17\lib\ext ( for java )

羅伯特 發表在 痞客邦 留言(0) 人氣()

import java.awt.*;
import java.sql.*;
/** Load some drivers.  */
public class LoadDriver {
    public static void main(String[] av) {
        try {
            // Try to load the jdbc-odbc bridge driver
            // Should be present on Sun JDK implementations.
            Class c = Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
            System.out.println("Loaded " + c);
            // Try to load an Oracle driver.
            Class d = Class.forName("oracle.jdbc.driver.OracleDriver");
            System.out.println("Loaded " + d);
        } catch (ClassNotFoundException ex) {
            System.err.println(ex);
        }
    }
}

羅伯特 發表在 痞客邦 留言(0) 人氣()

 
 
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
 
public class ConnPOP {
    java.util.Properties prop = new java.util.Properties();
    /*TaiWan Operation Server*/
    String DbSID     = "TEST";
    String HostName  = "192.168.1.20";
    String username  = "TEST";
    String userpwd   = "TEST";
     
    //REMOTE ORACLE 8i THIN
    String url = "jdbc:oracle:thin:@"+ HostName + ":1521:" + DbSID;     
    Connection conDB = null;
    
 
    public Connection getConn(){
            try{
                prop.put("user",         username);
                prop.put("password",     userpwd);
                prop.put("CHARSET",     "eucksc");
                
                // Oracle 8i not pooling connection
                Class.forName("oracle.jdbc.driver.OracleDriver");            
                //取得連線
                conDB = DriverManager.getConnection(url, username, userpwd);            
                //System.out.println("DataBase connected : " + conDB.toString());
                System.out.println("DataBase connected  ");
                conDB.setAutoCommit(false);
            }
            catch(ClassNotFoundException cnfe){
                System.out.println("Driver didn't be load : " + cnfe.toString());
            }
            catch(SQLException sqle){
                System.out.println("DataBase didn't connected : " + sqle.toString());
            }
            finally{
                if(conDB == null){
                    try{
                        conDB.close(); //關閉資料庫連結
                    }
                    catch(SQLException sqle){ }
                }
            }    
            
            return conDB;
        }
    //==KOREA POP
    public Connection getConnKor(){
        try{
            prop.put("user",         "TEST");
            prop.put("password",     "TEST");
            prop.put("CHARSET",     "eucksc");
            
            // Oracle 8i not pooling connection
            Class.forName("oracle.jdbc.driver.OracleDriver");            
            //取得連線
            conDB = DriverManager.getConnection("jdbc:oracle:thin:@192.168.2.20:1521:TEST", "TEST", "TEST");            
            //System.out.println("KOREA DataBase connected : " + conDB.toString());
            System.out.println("KOREA DataBase connected ");
            conDB.setAutoCommit(false);
        }
        catch(ClassNotFoundException cnfe){
            System.out.println("Driver didn't be load : " + cnfe.toString());
        }
        catch(SQLException sqle){
            System.out.println("Kor DataBase didn't connected : " + sqle.toString());
        }
        finally{
            if(conDB == null){
                try{
                    conDB.close(); //關閉資料庫連結
                }
                catch(SQLException sqle){ }
            }
        }    
        
        return conDB;
    }
    
    
}

羅伯特 發表在 痞客邦 留言(1) 人氣()

在找尋 Windows 免費的備份機制軟體時
看到了這個, 感覺上全用上了
先記起來, 有時間再測測看
PS:  /S & /E 好像有點衝突哩

羅伯特 發表在 痞客邦 留言(0) 人氣()

這篇文章受密碼保護,請輸入密碼後查看內容。

羅伯特 發表在 痞客邦 留言(0) 人氣()

Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。