- 浏览: 1019664 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (529)
- 服务器 (8)
- jsp (1)
- java (6)
- AIX (1)
- solaris (3)
- linux学习 (53)
- javaScript (2)
- hibernate (1)
- 数据库 (74)
- sql语句 (8)
- oracle 学习 (75)
- oracle 案例 (42)
- oracle 管理 (42)
- Oracle RAC (27)
- oracle data guard (12)
- oracle 参数讲解 (14)
- Oracle 字符集 (8)
- oracle性能调优 (24)
- oracle备份与恢复 (12)
- oracle Tablespace (9)
- oracle性能诊断艺术 (1)
- oracle 11g学习 (5)
- oracle streams (1)
- oracle upgrade and downgrade (4)
- db2学习 (13)
- db2命令学习 (2)
- mysql (28)
- sql server (30)
- sql server 2008 (0)
- 工具 (10)
- 操作系统 (3)
- c++ (1)
- stock (1)
- 生活 (5)
- HADOOP (2)
最新评论
-
massjcy:
...
如何将ubuntu文件夹中文名改为英文 -
skypiea:
谢谢。。。
终于解决了。。。
Oracle 10.2.0.4(5)EM不能启动的解决方案(Patch 8350262) -
qwe_rt:
引用vi /etc/sysconfig/network 请问 ...
Linux操作系统下配置静态IP上网 -
liuqiang:
sudo killall -9 apache2
ps 和 kill 命令详解 -
dazuiba:
引用*绝杀 kill -9 PID 当使用此命令时,一定要通过 ...
ps 和 kill 命令详解
1、在http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html下载所需要的oracle instant client
2、本人操作系统版本为ubuntu,所以需要执行以下步骤才可以安装
tpc-pds-2@tpcpds2-Lenovo:~/install$ sudo apt-get install alien
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-2.6.38-8-generic linux-headers-2.6.38-8
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
debhelper html2text libmail-sendmail-perl librpm1 librpmbuild1 librpmio1 libsys-hostname-long-perl po-debconf rpm rpm-common
rpm2cpio
Suggested packages:
lsb-rpm dh-make libmail-box-perl elfutils rpm-i18n
The following NEW packages will be installed:
alien debhelper html2text libmail-sendmail-perl librpm1 librpmbuild1 librpmio1 libsys-hostname-long-perl po-debconf rpm
rpm-common rpm2cpio
0 upgraded, 12 newly installed, 0 to remove and 9 not upgraded.
Need to get 904 kB/1445 kB of archives.
After this operation, 4784 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://cn.archive.ubuntu.com/ubuntu/ natty/main html2text amd64 1.3.2a-15 [104 kB]
Get:2 http://cn.archive.ubuntu.com/ubuntu/ natty/main po-debconf all 1.0.16+nmu1 [212 kB]
Get:3 http://cn.archive.ubuntu.com/ubuntu/ natty/main debhelper all 8.1.2ubuntu4 [482 kB]
Get:4 http://cn.archive.ubuntu.com/ubuntu/ natty/main librpmio1 amd64 4.8.1-6ubuntu1 [84.8 kB]
Get:5 http://cn.archive.ubuntu.com/ubuntu/ natty/main librpmio1 amd64 4.8.1-6ubuntu1 [84.8 kB]
Get:6 http://cn.archive.ubuntu.com/ubuntu/ natty/main rpm-common amd64 4.8.1-6ubuntu1 [21.3 kB]
Fetched 860 kB in 6min 47s (2110 B/s)
Selecting previously deselected package html2text.
(Reading database ... 171360 files and directories currently installed.)
Unpacking html2text (from .../html2text_1.3.2a-15_amd64.deb) ...
Selecting previously deselected package po-debconf.
Unpacking po-debconf (from .../po-debconf_1.0.16+nmu1_all.deb) ...
Selecting previously deselected package debhelper.
Unpacking debhelper (from .../debhelper_8.1.2ubuntu4_all.deb) ...
Selecting previously deselected package librpmio1.
Unpacking librpmio1 (from .../librpmio1_4.8.1-6ubuntu1_amd64.deb) ...
Selecting previously deselected package rpm-common.
Unpacking rpm-common (from .../rpm-common_4.8.1-6ubuntu1_amd64.deb) ...
Selecting previously deselected package librpm1.
Unpacking librpm1 (from .../librpm1_4.8.1-6ubuntu1_amd64.deb) ...
Selecting previously deselected package librpmbuild1.
Unpacking librpmbuild1 (from .../librpmbuild1_4.8.1-6ubuntu1_amd64.deb) ...
Selecting previously deselected package rpm2cpio.
Unpacking rpm2cpio (from .../rpm2cpio_4.8.1-6ubuntu1_amd64.deb) ...
Selecting previously deselected package rpm.
Unpacking rpm (from .../rpm_4.8.1-6ubuntu1_amd64.deb) ...
Selecting previously deselected package alien.
Unpacking alien (from .../archives/alien_8.83_all.deb) ...
Selecting previously deselected package libsys-hostname-long-perl.
Unpacking libsys-hostname-long-perl (from .../libsys-hostname-long-perl_1.4-2_all.deb) ...
Selecting previously deselected package libmail-sendmail-perl.
Unpacking libmail-sendmail-perl (from .../libmail-sendmail-perl_0.79.16-1_all.deb) ...
Processing triggers for man-db ...
Processing triggers for doc-base ...
Processing 1 added doc-base file(s)...
Registering documents with scrollkeeper...
Setting up html2text (1.3.2a-15) ...
Setting up po-debconf (1.0.16+nmu1) ...
Setting up debhelper (8.1.2ubuntu4) ...
Setting up librpmio1 (4.8.1-6ubuntu1) ...
Setting up rpm-common (4.8.1-6ubuntu1) ...
Setting up librpm1 (4.8.1-6ubuntu1) ...
Setting up librpmbuild1 (4.8.1-6ubuntu1) ...
Setting up rpm2cpio (4.8.1-6ubuntu1) ...
Setting up rpm (4.8.1-6ubuntu1) ...
Setting up alien (8.83) ...
Setting up libsys-hostname-long-perl (1.4-2) ...
Setting up libmail-sendmail-perl (0.79.16-1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
tpc-pds-2@tpcpds2-Lenovo:~/install$ ls -l
total 58344
-rw-r--r-- 1 tpc-pds-2 tpc-pds-2 58296106 Jul 26 20:21 oracle-instantclient11.2-basic-11.2.0.2.0.x86_64.rpm
-rw-r--r-- 1 tpc-pds-2 tpc-pds-2 608014 Jul 26 20:10 oracle-instantclient11.2-devel-11.2.0.2.0.x86_64.rpm
-rw-r--r-- 1 tpc-pds-2 tpc-pds-2 831327 Jul 26 20:11 oracle-instantclient11.2-sqlplus-11.2.0.2.0.x86_64.rpm
tpc-pds-2@tpcpds2-Lenovo:~/install$ sudo alien oracle-instantclient11.2-basic-11.2.0.2.0.x86_64.rpm
oracle-instantclient11.2-basic_11.2.0.2.0-2_amd64.deb generated
tpc-pds-2@tpcpds2-Lenovo:~/install$ sudo alien oracle-instantclient11.2-devel-11.2.0.2.0.x86_64.rpm
oracle-instantclient11.2-devel_11.2.0.2.0-2_amd64.deb generated
tpc-pds-2@tpcpds2-Lenovo:~/install$ sudo alien oracle-instantclient11.2-sqlplus-11.2.0.2.0.x86_64.rpm oracle-instantclient11.2-sqlplus_11.2.0.2.0-2_amd64.deb generated
3、安装oracle包
tpc-pds-2@tpcpds2-Lenovo:~/install$ sudo dpkg -i oracle-instantclient11.2-basic_11.2.0.2.0-2_amd64.deb oracle-instantclient11.2-devel_11.2.0.2.0-2_amd64.deb oracle-instantclient11.2-sqlplus_11.2.0.2.0-2_amd64.deb
Selecting previously deselected package oracle-instantclient11.2-basic.
(Reading database ... 171928 files and directories currently installed.)
Unpacking oracle-instantclient11.2-basic (from oracle-instantclient11.2-basic_11.2.0.2.0-2_amd64.deb) ...
Selecting previously deselected package oracle-instantclient11.2-devel.
Unpacking oracle-instantclient11.2-devel (from oracle-instantclient11.2-devel_11.2.0.2.0-2_amd64.deb) ...
Selecting previously deselected package oracle-instantclient11.2-sqlplus.
Unpacking oracle-instantclient11.2-sqlplus (from oracle-instantclient11.2-sqlplus_11.2.0.2.0-2_amd64.deb) ...
Setting up oracle-instantclient11.2-basic (11.2.0.2.0-2) ...
Setting up oracle-instantclient11.2-devel (11.2.0.2.0-2) ...
Setting up oracle-instantclient11.2-sqlplus (11.2.0.2.0-2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
tpc-pds-2@tpcpds2-Lenovo:~/install$ cd /usr/lib/oracle
tpc-pds-2@tpcpds2-Lenovo:/usr/lib/oracle$ dir
11.2
tpc-pds-2@tpcpds2-Lenovo:/usr/lib/oracle$ cd 11.2
tpc-pds-2@tpcpds2-Lenovo:/usr/lib/oracle/11.2$ dir
client64
tpc-pds-2@tpcpds2-Lenovo:/usr/lib/oracle/11.2$ cd client64/
tpc-pds-2@tpcpds2-Lenovo:/usr/lib/oracle/11.2/client64$ dir
bin lib
tpc-pds-2@tpcpds2-Lenovo:/usr/lib/oracle/11.2/client64$ cd lib
tpc-pds-2@tpcpds2-Lenovo:/usr/lib/oracle/11.2/client64/lib$ ls -l
total 181492
-rw-r--r-- 1 root root 342 Sep 5 2010 glogin.sql
lrwxrwxrwx 1 root root 17 Jul 27 11:11 libclntsh.so -> libclntsh.so.11.1
-rw-r--r-- 1 root root 52439406 Sep 5 2010 libclntsh.so.11.1
-rw-r--r-- 1 root root 7898628 Sep 5 2010 libnnz11.so
lrwxrwxrwx 1 root root 15 Jul 27 11:11 libocci.so -> libocci.so.11.1
-rw-r--r-- 1 root root 1972824 Sep 5 2010 libocci.so.11.1
-rw-r--r-- 1 root root 115820762 Sep 5 2010 libociei.so
-rw-r--r-- 1 root root 164756 Sep 5 2010 libocijdbc11.so
-rw-r--r-- 1 root root 1471902 Sep 5 2010 libsqlplus.so
-rw-r--r-- 1 root root 1503279 Sep 5 2010 libsqlplusic.so
-rw-r--r-- 1 root root 2030135 Sep 5 2010 ojdbc5.jar
-rw-r--r-- 1 root root 2152051 Sep 5 2010 ojdbc6.jar
-rw-r--r-- 1 root root 298394 Sep 5 2010 ottclasses.zip
-rw-r--r-- 1 root root 66783 Sep 5 2010 xstreams.jar
tpc-pds-2@tpcpds2-Lenovo:/usr/lib/oracle/11.2/client64/lib$ pwd
/usr/lib/oracle/11.2/client64/lib
tpc-pds-2@tpcpds2-Lenovo:/usr/lib/oracle/11.2/client64/lib$ cd ..
tpc-pds-2@tpcpds2-Lenovo:/usr/lib/oracle/11.2/client64$ dir
bin lib
tpc-pds-2@tpcpds2-Lenovo:/usr/lib/oracle/11.2/client64$ cd bin
tpc-pds-2@tpcpds2-Lenovo:/usr/lib/oracle/11.2/client64/bin$ dir
adrci genezi sqlplus
tpc-pds-2@tpcpds2-Lenovo:/usr/lib/oracle/11.2/client64/bin$ ls -l
total 48
-rwxr-xr-x 1 root root 8136 Sep 5 2010 adrci
-rwxr-xr-x 1 root root 30384 Sep 5 2010 genezi
-rwxr-xr-x 1 root root 4920 Sep 5 2010 sqlplus
tpc-pds-2@tpcpds2-Lenovo:/usr/lib/oracle/11.2/client64/bin$ pwd
/usr/lib/oracle/11.2/client64/bin
4、配置环境变量
tpc-pds-2@tpcpds2-Lenovo:/usr/lib/oracle/11.2/client64$ cd ~
tpc-pds-2@tpcpds2-Lenovo:/usr/lib/oracle/11.2/client64$ vi .bashrc
export ORACLE_HOME=/usr/lib/oracle/11.2/client64
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
export PATH=$ORACLE_HOME/bin:$PATH
".bashrc" 106 lines, 3494 characters written
tpc-pds-2@tpcpds2-Lenovo:~$
oracle oci lib安装位置:/usr/lib/oracle/11.2/client64/lib
编译oci驱动要用的.h文件安装位置:/usr/include/oracle/11.2/client64/
tpc-pds-2@tpcpds2-Lenovo:/usr/lib/oracle/11.2/client64/lib$ cd /usr/include/oracle/11.2/client64/
tpc-pds-2@tpcpds2-Lenovo:/usr/include/oracle/11.2/client64$ ls
ldap.h occi.h occiControl.h oci.h ociap.h ocidem.h ocikpr.h odci.h orid.h ort.h
nzerror.h occiAQ.h occiData.h oci1.h ociapr.h ocidfn.h ocixmldb.h oratypes.h orl.h xa.h
nzt.h occiCommon.h occiObjects.h oci8dp.h ocidef.h ociextp.h ocixstream.h ori.h oro.h
tpc-pds-2@tpcpds2-Lenovo:/usr/include/oracle/11.2/client64$ cd ..
tpc-pds-2@tpcpds2-Lenovo:/usr/include/oracle/11.2$ cd /usr/lib/oracle/11.2/client64/lib
tpc-pds-2@tpcpds2-Lenovo:/usr/lib/oracle/11.2/client64/lib$ ls -l
total 181492
-rw-r--r-- 1 root root 342 Sep 5 2010 glogin.sql
lrwxrwxrwx 1 root root 17 Jul 27 11:11 libclntsh.so -> libclntsh.so.11.1
-rw-r--r-- 1 root root 52439406 Sep 5 2010 libclntsh.so.11.1
-rw-r--r-- 1 root root 7898628 Sep 5 2010 libnnz11.so
lrwxrwxrwx 1 root root 15 Jul 27 11:11 libocci.so -> libocci.so.11.1
-rw-r--r-- 1 root root 1972824 Sep 5 2010 libocci.so.11.1
-rw-r--r-- 1 root root 115820762 Sep 5 2010 libociei.so
-rw-r--r-- 1 root root 164756 Sep 5 2010 libocijdbc11.so
-rw-r--r-- 1 root root 1471902 Sep 5 2010 libsqlplus.so
-rw-r--r-- 1 root root 1503279 Sep 5 2010 libsqlplusic.so
-rw-r--r-- 1 root root 2030135 Sep 5 2010 ojdbc5.jar
-rw-r--r-- 1 root root 2152051 Sep 5 2010 ojdbc6.jar
-rw-r--r-- 1 root root 298394 Sep 5 2010 ottclasses.zip
-rw-r--r-- 1 root root 66783 Sep 5 2010 xstreams.jar
tpc-pds-2@tpcpds2-Lenovo:/usr/lib/oracle/11.2/client64/lib$ cd ..
tpc-pds-2@tpcpds2-Lenovo:/usr/lib/oracle/11.2/client64$ ls
bin lib network
5.编译QOCI驱动
tpc-pds-2@tpcpds2-Lenovo:~/qtsdk-2010.05/qt/src/plugins/sqldrivers/oci$ cd /home/tpc-pds-2/qtsdk-2010.05/qt/src/plugins/sqldrivers/oci
tpc-pds-2@tpcpds2-Lenovo:~/qtsdk-2010.05/qt/src/plugins/sqldrivers/oci$ ls
Makefile README main.cpp main.o moc_qsql_oci.cpp moc_qsql_oci.o oci.pro qsql_oci.o
tpc-pds-2@tpcpds2-Lenovo:~/qtsdk-2010.05/qt/src/plugins/sqldrivers/oci$ ls -l
total 240
-rw-r--r-- 1 tpc-pds-2 tpc-pds-2 9225 Aug 11 17:38 Makefile
-rw-r--r-- 1 tpc-pds-2 tpc-pds-2 205 Sep 10 2010 README
-rw-r--r-- 1 tpc-pds-2 tpc-pds-2 2774 Sep 10 2010 main.cpp
-rw-r--r-- 1 tpc-pds-2 tpc-pds-2 13512 Aug 11 17:38 main.o
-rw-r--r-- 1 tpc-pds-2 tpc-pds-2 2081 Aug 11 17:38 moc_qsql_oci.cpp
-rw-r--r-- 1 tpc-pds-2 tpc-pds-2 6456 Aug 11 17:38 moc_qsql_oci.o
-rw-r--r-- 1 tpc-pds-2 tpc-pds-2 289 Sep 10 2010 oci.pro
-rw-r--r-- 1 tpc-pds-2 tpc-pds-2 192320 Aug 11 17:24 qsql_oci.o
tpc-pds-2@tpcpds2-Lenovo:~/qtsdk-2010.05/qt/src/plugins/sqldrivers/oci$ rm -fr main.o moc_* qsql_oci.o Makefile
tpc-pds-2@tpcpds2-Lenovo:~/qtsdk-2010.05/qt/src/plugins/sqldrivers/oci$ ls -l
total 12
-rw-r--r-- 1 tpc-pds-2 tpc-pds-2 205 Sep 10 2010 README
-rw-r--r-- 1 tpc-pds-2 tpc-pds-2 2774 Sep 10 2010 main.cpp
-rw-r--r-- 1 tpc-pds-2 tpc-pds-2 289 Sep 10 2010 oci.pro
tpc-pds-2@tpcpds2-Lenovo:~/qtsdk-2010.05/qt/src/plugins/sqldrivers/oci$ qmake "INCLUDEPATH+=/usr/include/oracle/11.2/client64/" "LIBS+=-L/usr/lib/oracle/11.2/client64/lib -lclntsh" oci.pro
tpc-pds-2@tpcpds2-Lenovo:~/qtsdk-2010.05/qt/src/plugins/sqldrivers/oci$ make
g++ -c -m64 -pipe -O2 -fvisibility=hidden -fvisibility-inlines-hidden -D_REENTRANT -Wall -W -fPIC -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../../mkspecs/linux-g++-64 -I. -I../../../../include/QtCore -I../../../../include/QtSql -I../../../../include -I/usr/include/oracle/11.2/client64 -I. -o main.o main.cpp
g++ -c -m64 -pipe -O2 -fvisibility=hidden -fvisibility-inlines-hidden -D_REENTRANT -Wall -W -fPIC -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../../mkspecs/linux-g++-64 -I. -I../../../../include/QtCore -I../../../../include/QtSql -I../../../../include -I/usr/include/oracle/11.2/client64 -I. -o qsql_oci.o ../../../sql/drivers/oci/qsql_oci.cpp
/home/tpc-pds-2/qtsdk-2010.05/qt/bin/moc -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../../mkspecs/linux-g++-64 -I. -I../../../../include/QtCore -I../../../../include/QtSql -I../../../../include -I/usr/include/oracle/11.2/client64 -I. ../../../sql/drivers/oci/qsql_oci.h -o moc_qsql_oci.cpp
g++ -c -m64 -pipe -O2 -fvisibility=hidden -fvisibility-inlines-hidden -D_REENTRANT -Wall -W -fPIC -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../../mkspecs/linux-g++-64 -I. -I../../../../include/QtCore -I../../../../include/QtSql -I../../../../include -I/usr/include/oracle/11.2/client64 -I. -o moc_qsql_oci.o moc_qsql_oci.cpp
rm -f libqsqloci.so
g++ -m64 -Wl,-O1 -Wl,-rpath,/home/tpc-pds-2/qtsdk-2010.05/qt/lib -shared -o libqsqloci.so main.o qsql_oci.o moc_qsql_oci.o -L/home/tpc-pds-2/qtsdk-2010.05/qt/lib -L/usr/lib/oracle/11.2/client64/lib -lclntsh -lQtSql -L/home/tpc-pds-2/qtsdk-2010.05/qt/lib -lQtCore -lpthread
tpc-pds-2@tpcpds2-Lenovo:~/qtsdk-2010.05/qt/src/plugins/sqldrivers/oci$ make install
install -m 755 -p "libqsqloci.so" "/home/tpc-pds-2/qtsdk-2010.05/qt/plugins/sqldrivers/libqsqloci.so"
strip --strip-unneeded "/home/tpc-pds-2/qtsdk-2010.05/qt/plugins/sqldrivers/libqsqloci.so"
tpc-pds-2@tpcpds2-Lenovo:~$ cd /home/tpc-pds-2/qtsdk-2010.05/qt/plugins/sqldrivers/
tpc-pds-2@tpcpds2-Lenovo:~/qtsdk-2010.05/qt/plugins/sqldrivers$ ls -lt
total 49168
-rwxr-xr-x 1 tpc-pds-2 tpc-pds-2 118416 Aug 12 09:09 libqsqloci.so
-rwxr-xr-x 1 tpc-pds-2 tpc-pds-2 2071528 Sep 29 2010 libqsqlite.so
-rwxr-xr-x 1 tpc-pds-2 tpc-pds-2 460005 Sep 29 2010 libqsqlite2.so
-rwxr-xr-x 1 tpc-pds-2 tpc-pds-2 611781 Sep 29 2010 libqsqlpsql.so
发表评论
-
warning: waiting for transaction lock on /var/lib/rpm/__db.000
2012-06-06 12:03 1241故障现象:[root@localhost Mysql4.1.1 ... -
执行脚本出现bin/bash: bad interpreter: No such file or directory
2011-07-27 16:50 757错误原因之一很有可能是你的脚本文件是DOS格式的, 即每一行的 ... -
windows下编译Oracle驱动插件QOCI
2011-07-19 17:28 2382Qt帮助文档中提到的编译方法如下: How to Build ... -
NTFS格式的7个精彩问答
2011-05-11 13:53 9701、什么是NTFS? 想要 ... -
Big Endian与Little Endian区别
2010-12-19 22:44 982Big Endian与Little Endian区 ... -
杀死占用某端口的进程(windows 和 linux)
2009-12-08 20:28 7077今天启动jboss特别郁闷,老是出现什么端口被占用,注销马上启 ... -
tomcat5配置 常见数据库连接池的例子.
2008-11-06 23:53 1306给出一个tomcat5配置 常见数据库连接池的例子. 环 ...
相关推荐
"Qt连接oracle数据库所需驱动QOCI.rar"这个压缩包文件提供了在Qt环境下与Oracle数据库连接所需的驱动程序,支持32位和64位系统。以下是关于Qt、Oracle数据库连接以及QOCI驱动的详细知识点: 1. **Qt**:Qt是一个跨...
在Linux环境下使用Qt访问Oracle数据库时,通常需要编译并配置QOCI驱动程序。QOCI是Qt中用于连接Oracle数据库的驱动程序。下面将详细介绍如何在Linux环境下完成这一过程。 **步骤1:获取Qt和Oracle** - **Qt版本**: ...
在本文中,我们将深入探讨如何使用Visual Studio 2015 (VS2015) 编译Qt 5.10.1,并连接到Oracle数据库驱动器QSqLocI。这个过程对于开发者来说至关重要,因为能够实现Qt应用程序与Oracle数据库的无缝交互,尤其在32位...
Qt 4.7 版本的 Oracle 驱动是一个专为Qt应用程序设计的数据库连接组件,用于在Windows平台上与Oracle数据库系统(版本10.2.0)进行交互。这个驱动程序是针对Qt 4.7框架进行编译的,以确保与该版本的Qt库兼容性。在...
在进行Qt与MySQL数据库连接之前,首先需要了解如何搭建开发环境以及如何编译Qt与MySQL数据库之间的驱动。下面详细介绍如何分步骤搭建Qt开发环境、MySQL数据库环境,并编译Qt连接MySQL数据库驱动。 1. Qt开发环境...
5. 可能还包括配置文件和库依赖信息,帮助开发者在不同平台上正确地编译和运行包含`qoci`驱动的Qt项目。 使用`qoci`驱动进行Oracle数据库操作的关键知识点包括: 1. **配置**: 首先,开发者需要确保系统上已经安装...
综上所述,QT连接Oracle 11g数据库时,特别是对于32位系统,关键在于正确配置和获取必要的库文件,以及编译或安装适合的QOCI驱动。这个压缩包提供的文件正是为了解决这些问题,确保QT应用程序能够顺利地与Oracle...
QT的Oracle驱动QOCI-for Win32是一款专为在Windows 32位环境下运行的Qt应用程序设计的数据库连接组件。QOCI,全称Qt Oracle Call Interface,是Qt库中的一个部分,它允许开发者通过Qt框架与Oracle数据库进行交互。...
在IT行业中,数据库连接是应用程序开发中的重要环节,特别是对于使用Qt框架的开发者而言。Qt是一个功能强大的跨平台应用开发框架,广泛应用于GUI程序。然而,Qt并不包含所有类型的数据库驱动,例如IBM DB2和Oracle...
总的来说,要实现Qt在Windows环境下访问Oracle数据库,需要先编译生成QOCI驱动,然后正确安装并配置,最后通过QSQLDatabase类进行数据库交互。通过遵循上述步骤,开发者可以顺利地在Qt应用中整合Oracle数据库功能。
至此,你已经成功地在Qt5.7中编译了Oracle数据库驱动,并学会了如何在应用程序中使用它进行数据库连接。记住,对于不同操作系统和Qt版本,具体步骤可能略有差异,但基本原理保持不变。通过这个过程,开发者可以为...
在Qt中连接Oracle数据库,首先需要安装Oracle客户端库,如Instant Client,以确保系统有必要的驱动程序来与Oracle服务器通信。然后,在Qt项目中引入必要的库,例如`QODBC`模块,它是Qt对OLE DB接口的封装,使得可以...
在 Linux 下使用 QT 连接 MySQL 数据库需要安装 MySQL 客户端和 QT 的 MySQL 驱动程序。首先,需要安装 MySQL 客户端,可以使用命令 `sudo apt-get install libmysqlclient-dev` 或 `sudo apt-get install ...
通过正确配置Oracle客户端,结合易语言的数据库连接和记录集组件,开发者可以轻松地构建与Oracle数据库交互的应用程序。实践中,务必注意数据库安全,如使用预编译语句防止SQL注入,以及妥善处理连接关闭,以提高...
在CentOS 7.2上,你需要确保系统已经更新到最新版本,然后安装必要的开发工具,如`gcc`和`make`,以支持Qt和PostgreSQL的编译和配置。可以使用以下命令来安装: ```bash sudo yum update sudo yum install -y gcc ...
QT 连接 MySQL 数据库在 Linux 平台下的实现 在 Linux 平台下,使用 QT 连接 MySQL 数据库是一种常见的应用场景...本文提供了使用 QT 连接 MySQL 数据库的详细步骤和代码示例,帮助开发者快速实现 MySQL 数据库连接。
5. **编译过程**: 在VS2010中编译qoci驱动,需要安装Oracle Instant Client和必要的开发库,然后配置项目的编译环境,包括设置Oracle的包含目录和库目录。编译完成后,会生成oci-driver相关的动态链接库(DLL)文件...
在IT领域,特别是软件开发与数据库管理中,...以上步骤涵盖了在Eclipse中使用Java编程语言连接Oracle数据库的全过程,从配置JDBC驱动到执行SQL语句,再到资源的妥善处理,每一步都是构建稳定、高效数据库应用的关键。