ORACLE Pro*C 远程接续一问?# Database - 数据库
k*u
1 楼
char username[10] = "scott";
char password[10] = "tiger";
char db_name[10] = "oracle1";
char db_string[20] = "NYNON";
/* connect to the non-default database using db_name */
EXEC SQL CONNECT :username IDENTIFIED BY :password
AT :db_name USING :db_string; ...
解释:
The host variable db_string contains the Net8 syntax for connecting
to a non-default database at a remote node.
俺还是不太懂db_string如何设了,db_string与Net8的那个设置文件的那些项目有关,
请各位高高手帮帮忙,谢谢!
char password[10] = "tiger";
char db_name[10] = "oracle1";
char db_string[20] = "NYNON";
/* connect to the non-default database using db_name */
EXEC SQL CONNECT :username IDENTIFIED BY :password
AT :db_name USING :db_string; ...
解释:
The host variable db_string contains the Net8 syntax for connecting
to a non-default database at a remote node.
俺还是不太懂db_string如何设了,db_string与Net8的那个设置文件的那些项目有关,
请各位高高手帮帮忙,谢谢!