当前位置: 技术问答>linux和unix
solaris 10 下用OCCI操作oracle 10g链接出错!!!
来源: 互联网 发布时间:2016-08-19
本文导语: 程序: #include #include #include #include #include #include #include #include using namespace oracle::occi; using namespace std; int main() { Environment *env; Connection *conn; string userName = "system"; string password = "omc...
程序:
#include
#include
#include
#include
#include
#include
#include
#include
using namespace oracle::occi;
using namespace std;
int main()
{
Environment *env;
Connection *conn;
string userName = "system";
string password = "omcdb";
string database = "192.168.20.223/omcdb";
env=Environment::createEnvironment(Environment::OBJECT);
conn=env->createConnection(userName,password,database);
cout
#include
#include
#include
#include
#include
#include
#include
#include
using namespace oracle::occi;
using namespace std;
int main()
{
Environment *env;
Connection *conn;
string userName = "system";
string password = "omcdb";
string database = "192.168.20.223/omcdb";
env=Environment::createEnvironment(Environment::OBJECT);
conn=env->createConnection(userName,password,database);
cout