Oracle連線字串

2021-04-08 19:09:44 字數 1316 閱讀 3068

odbc 新版本:"driver=;server=oracleserver.world;uid=username;pwd=asdasd;"

odbc 舊版本:"driver=;connectstring=oracleserver.world;uid=myusername;pwd=mypassword;"

ole db, oledbconnection (.net)

standard security:(微軟提供)

"provider=msdaora;data source=myoracledb;user id=username;password=asdasd;" 

以下由oracle提供

standard security:"provider=oraoledb.oracle;data source=myoracledb;user id=username;password=asdasd;"

trusted connection:"provider=oraoledb.oracle;data source=myoracledb;osauthent=1;"

oracleconnection (.net)

standard:"data source=myoracledb;integrated security=yes;"

僅適用於oracle 8i release 3 或更新版本

specifying username and password:"data source=myoracledb;user id=username;password=passwd;integrated security=no;"

僅適用於oracle 8i release 3 或更新版本

定義 oracleconnection:

c#:using system.data.oracleclient;

oracleconnection ooracleconn = new oracleconnection();

ooracleconn.connectionstring = "my connection string";

ooracleconn.open();

vb.net:

imports system.data.oracleclient

dim ooracleconn as oracleconnection = new oracleconnection()

ooracleconn.connectionstring = "my connection string"

ooracleconn.open()

注:摘自http://www.connectionstrings.com/

Oracle 連線字串

data source description address protocol tcp host 192.168.2.32 port 1521 connect data service name orcl user id ttss password qaz max pool size 512 ho...

資料庫連線字串 Oracle 連線字串

odbc 新版本driver server myserveraddress uid myusername pwd mypassword 舊版本driver connectstring oracleserver.world uid myusername pwd mypassword ole db,ol...

連線oracle 字串問題

連線到自己的oracle資料庫,我用的字串如 system.data.oracleclient.oracleconnection conn new oracleconnection conn.connectionstring data source description address list ...

連線字串

建立資料庫連線 sqlconnection con new sqlconnection con.connectionstring system.configuration.configurationmanager.connectionstrings con tostring 配置檔案中已經配置好連線...

Oracle資料庫連線字串

oracle資料庫連線字串 經典大全 附件官方文件 2008 11 21 13 34 odbc 新版本driver server myserveraddress uid myusername pwd mypassword 舊版本driver connectstring oracleserver.wo...