当前位置: 技术问答>linux和unix
跪求UNIX 下C用OCI连接ORACLE方法。高手进!!!
来源: 互联网 发布时间:2015-10-18
本文导语: 本人想用OCI连接ORACLE把读出的数据写到文件里。请问如何实现。有相关资料的请发MAIL ningzr@neusoft.com谢谢 | sword MYOCILogon ( OCIEnv *envhp, OCIError *errhp, OCISvcCtx **svchp, ...
本人想用OCI连接ORACLE把读出的数据写到文件里。请问如何实现。有相关资料的请发MAIL
ningzr@neusoft.com谢谢
ningzr@neusoft.com谢谢
|
sword MYOCILogon ( OCIEnv *envhp, OCIError *errhp, OCISvcCtx **svchp,
char *username, ub4 uname_len,
char *password, ub4 passwd_len,
char *dbname, ub4 dbname_len )
{
sword status;
status = OCILogon(envhp, errhp, svchp, username, strlen (username),
password, strlen (password), "", 0);
return status;
}
char *username, ub4 uname_len,
char *password, ub4 passwd_len,
char *dbname, ub4 dbname_len )
{
sword status;
status = OCILogon(envhp, errhp, svchp, username, strlen (username),
password, strlen (password), "", 0);
return status;
}