一段简单的ProC连接Oracle的代码
strcpy(username,"lbc1"); strcpy(password,"lbtux"); strcpy(connect_string, "lbc1");
EXEC SQL CONNECT :username IDENTIFIED BY :password USING :connect_string; if ( sqlca.sqlcode < 0 ) { return -1; } }