???OCCI????Linux??Oracle?????
???????????? ???????[ 2014/4/9 10:39:56 ] ??????????????? ???? ?????
???????AddOcci????????
???????AddOcci???????
//ListOcci.cc
#include <iostream>
#include <string>
#include <occi.h>
#pragma comment(lib??"oci.lib")
#pragma comment(lib??"ociw32.lib")
#pragma comment(lib??"oraocci10.lib")
using namespace std;
using namespace oracle::occi;
/*******************************
*???????????
*******************************/
int main()
{
Environment *env = Environment::createEnvironment(Environment::OBJECT);
string username = "hahaya";
string userpass = "hahaya";
string connstr = "192.168.0.6:1521/orcl";
Connection *conn = env->createConnection(username?? userpass?? connstr);
Statement *st = conn->createStatement();
st->setSQL("select * from user_info");
ResultSet *rs = st->executeQuery();
while(rs->next())
{
cout << "user id:" << rs->getInt(1) << "user name:" << rs->getString(2) << endl;;
}
st->closeResultSet(rs);
env->terminateConnection(conn);
Environment::terminateEnvironment(env);
return 0;
}
|
???????ListOcci????
???????DelOcci?????
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
Linux??????DDR????????????Linux?????????????????豸??????????linux???в???????????м??????????????????????????Linux????Linux??DNS????????????γ???????????Linux?????????????Linux????(???)????????Linux ????????????????????????????????Windows???У?Linux???????Linux????????????????Linux iommu??vfio???????Linux????ε???TCP???????Linux?????????????СLinux?·???????????Linux???Jexus?й?Asp.Net Core??ó???Linux?????????Щ??
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????