1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <meta name="generator" content="Movable Type 5.2.3" />
8 <link rel="stylesheet" href="http://defaria.com/blogs/Status/styles-site.css" type="text/css" />
9 <link rel="alternate" type="application/atom+xml" title="Atom" href="http://defaria.com/blogs/Status/atom.xml" />
10 <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://defaria.com/blogs/Status/index.xml" />
12 <title>Status for Andrew DeFaria: Building Oracle 10.x for Linux</title>
14 <link rel="start" href="http://defaria.com/blogs/Status/" title="Home" />
15 <link rel="prev" href="http://defaria.com/blogs/Status/archives/000669.html" title="Installing... err... I mean building Oracle" />
16 <link rel="next" href="http://defaria.com/blogs/Status/archives/000671.html" title="UCMWB 1.2.3" />
19 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
20 xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
21 xmlns:dc="http://purl.org/dc/elements/1.1/">
23 rdf:about="http://defaria.com/blogs/Status/archives/000670.html"
24 trackback:ping="http://defaria.com/mt/mt-tb.cgi/57"
25 dc:title="Building Oracle 10.x for Linux"
26 dc:identifier="http://defaria.com/blogs/Status/archives/000670.html"
27 dc:subject="General Dynamics"
28 dc:description=" Managed to get a 10.2 sqlplus client to talk to our 9.2 database server from Solaris. Regular expressions, however, do not work. Since there is no 9.2 Oracle 64 bit client for Linux I decided to attempt to get..."
30 dc:date="2007-08-30T14:35:08-06:00" />
37 <script type="text/javascript" src="http://defaria.com/blogs/Status/mt-site.js"></script>
39 <body class="layout-one-column" onload="individualArchivesOnLoad(commenter_name)">
41 <div id="container-inner" class="pkg">
44 <div id="banner-inner" class="pkg">
45 <h1 id="banner-header"><a href="http://defaria.com/blogs/Status/" accesskey="1">Status for Andrew DeFaria</a></h1>
46 <h2 id="banner-description">Searchable status reports and work log</h2>
51 <div id="pagebody-inner" class="pkg">
53 <div id="alpha-inner" class="pkg">
55 <p class="content-nav">
56 <a href="http://defaria.com/blogs/Status/archives/000669.html">« Installing... err... I mean building Oracle</a> |
57 <a href="http://defaria.com/blogs/Status/">Main</a>
58 | <a href="http://defaria.com/blogs/Status/archives/000671.html">UCMWB 1.2.3 »</a>
62 <div class="entry" id="entry-670">
63 <h3 class="entry-header">Building Oracle 10.x for Linux</h3>
64 <div class="entry-content">
65 <div class="entry-body">
67 <li>Managed to get a 10.2 sqlplus client to talk to our 9.2 database server from Solaris. Regular expressions, however, do not work.</li>
69 <li>Since there is no 9.2 Oracle 64 bit client for Linux I decided to attempt to get the 10.2 Oracle 64 bit client installed. Managed to get a 10.2 sqlplus client to talk to our 9.2 database server from Linux! Went to build the Qt OCI portion and failed.</li>
72 <div id="more" class="entry-more">
73 <h2>Building Qt OCI</h2>
75 <p>Pat, I managed to install the Oracle Client 10.x for Linux - Will
76 had gotten a 64 bit version. I even managed to use sqlplus to connect
77 to RANCQ_RANDBS from Linux!</p>
79 <p>Now it's time to build Qt's OCI interface so that I can ultimately
80 build the Linux version of ucmwb.</p>
82 <p>Trolltech, makers of Qt, state:</p>
85 <h3>How to Build the OCI Plugin on Unix and Mac OS X</h3>
87 </p>For Oracle 10g, all you need is the "Instant Client Package -
88 Basic" and "Instant Client Package - SDK". For Oracle prior to 10g,
89 you require the standard Oracle client and the SDK packages.</p>
91 <p>Oracle library files required to build the driver:</p>
94 <li>libclntsh.so (all versions)</li>
96 <li>libwtc9.so (only Oracle 9)</li>
99 <p>Tell qmake where to find the Oracle header files and shared
100 libraries and run make:</p>
102 <h3>For Oracle version 9:</h3>
105 cd $QTDIR/src/plugins/sqldrivers/oci
106 qmake -o Makefile "INCLUDEPATH+=$ORACLE_HOME/rdbms/public $ORACLE_HOME/rdbms/demo" "LIBS+=-L$ORACLE_HOME/lib -lclntsh -lwtc9" oci.pro
110 <p>For Oracle version 10, we assume that you installed the RPM
111 packages of the Instant Client Package SDK (you need to adjust the
112 version number accordingly):</p>
115 cd $QTDIR/plugins/src/sqldrivers/oci
116 qmake -o Makefile "INCLUDEPATH+=/usr/include/oracle/10.1.0.3/client/" "LIBS+=-L/usr/lib/oracle/10.1.0.3/client/lib" oci.pro
121 <p>Unfortunately, after installing the Oracle client I didn't have a
122 /usr/include/oracle... And I didn't have a /usr/lib/oracle either. Nor
123 did I see an include directory under where I installed the Oracle
124 client (/opt/oracle). Before I ask Trolltech support what the
125 appropriate paths should be I thought I'd ask you. Perhaps I have not
126 properly installed a portion of Oracle...</p>
130 <p class="entry-footer">
131 <span class="post-footers">Posted by on August 30, 2007 2:35 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000670.html">Permalink</a>
136 <div class="trackbacks">
137 <h3 id="trackback" class="trackbacks-header">TrackBack</h3>
138 <div id="trackbacks-info">
139 <p>TrackBack URL for this entry:<br />http://defaria.com/mt/mt-tb.cgi/57</p>
141 <div class="trackbacks-content">