oracle 11gr2 即時客戶端配置(windows)

字號:


    1、先下載適合自己系統(tǒng)的即時客戶端,可通過下面的地址下載。
    http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html
    2、直接解壓到你想要存放的目錄中,如:c:instantclient_11_2
    3、編輯環(huán)境變量:
    tns_admin 設置為 c:instantclient_11_2
    oracle_home 設置為 c:instantclient_11_2
    4、編輯連接配置文件 tnsnames.ora,該文件需要自行在即時客戶端目錄(c:instantclient_11_2)中創(chuàng)建。在該文件內(nèi)輸入如下內(nèi)容:
    mydb =
    (description =
    (address_list =
    (address = (protocol = tcp)(host = 192.168.3.250)(port = 1521))
    )
    (connect_data =
    (server = dedicated)
    (service_name = mydb)
    )
    )
    mydb:是數(shù)據(jù)庫實例名
    192.168.3.259:是數(shù)據(jù)庫的 ip 地址
    1521:是數(shù)據(jù)庫的端口
    5、然后你就可以使用 plsql developer 和 toad 這類軟件來管理 oracle 數(shù)據(jù)庫了。