0

Oracle DB に接続するとエラーが発生します。ODBC DRIVER を使用して接続文字列ステートメントを使用しています。orcle db からデータを取得し、それをコントロールにバインドしたいと考えています。Oracle クライアントが私のマシンにインストールされています。

my db name is PINDB it's in another server. Not in localhost. 
am creating oracle driver named as obdialer il localhost
local host ip adress is 10.103.1.166
the DB is placed in this server (IP 172.23.6.217)
user id is RAM 
password is RAM 

in my programme am using the connection string as like this.

code
----
conn.ConnectionString = ("Driver ={Microsoft ODBC for Oracle};server=172.23.6.217.PINDB;Uid =OEARENEWAL;Pwd =OEARENEWAL;Persist Security Info=False;Trusted_Connection=Yes")
try
  con.open()
  ----------
  ----------
 catch ex as exception
    msgbox(ex.message)
 end try



i didnt get any error and also the values are not bind to that particular control.
pls help me to correct the error in connectionstring. 
4

1 に答える 1

0

この例によると、接続文字列は基本的に正しいですが、最後の 2 つのプロパティを削除してみてください。ユーザー名とパスワードを指定した場合、信頼できる接続ではありません。

conn.ConnectionString = "Driver={Microsoft ODBC for Oracle};server=172.23.6.217.PINDB;Uid=OEARENEWAL;Pwd=OEARENEWAL"
于 2012-06-08T07:12:20.663 に答える