EXEC SQL CONNECT :username IDENTIFIED BY :password AT dblinkname1 USING :dbname; // tagB if (sqlca.sqlcode) { printf("fail to connect!\n"); return 1; } printf("connect to db successfully\n"); EXEC SQL AT dblinkname1 COMMIT WORK RELEASE; return 0; } 用Pro*C边本机的Oracle时, tagB处把"using :dbname"去掉就可以了 现在要连接LAN中的另一台机器, IP=92.168.3.38, oracle数据库名=dztl. 请教高手tagA处应该怎么写