The connection string as follows:
The Provider=OraOLEDB. Oracle. 1; User ID=% s. Password=% s. The Data Source=% s. Persist Security Info=False
Win2012 server jacket is 12 c service side, I was written in c + + the demo, the younger brother is oracle novice, consult expert to solve!
CodePudding user response:
Tnsname. Ora match?CodePudding user response:
Matching, under up sqlplus connection can be, but not in the c + + programCodePudding user response:
The oracle ODBC driver not installed?Or did not add the bin directory of oracle client to PATH
Can also keep the oracle client bin under all of the DLL copied to your exe directory,
Note that the directory does not allow to appear in Chinese, the blank space and other special characters
CodePudding user response:
I also feel there is no contact driver, but I used in the connection string is above the oledb, go should not be an ODBC driver