File tree Expand file tree Collapse file tree 2 files changed +10
-14
lines changed Expand file tree Collapse file tree 2 files changed +10
-14
lines changed Original file line number Diff line number Diff line change 18
18
* Install Oracle Express (Ubuntu)
19
19
20
20
``` bash
21
- sudo dpkg -i oracle-xe_10 .2.0.1 -1.0_i386.deb
21
+ sudo dpkg -i oracle-xe_11 .2.0.3.0 -1.0_i386.deb
22
22
sudo apt-get install alien
23
- sudo alien oracle-instantclient-basiclite-10.2.0.5-1.i386.rpm
24
- sudo alien oracle-instantclient-devel-10.2.0.5-1.i386.rpm
25
- sudo alien oracle-instantclient-sqlplus-10.2.0.5-1.i386.rpm
26
- sudo dpkg -i oracle-instantclient-basiclite_10.2.0.5-1.i386.deb
27
- sudo dpkg -i oracle-instantclient-devel_10.2.0.5-1.i386.deb
28
- sudo dpkg -i oracle-instantclient-sqlplus_10.2.0.5-1.i386.deb
23
+ sudo alien oracle-instantclient11.2-*
24
+ sudo dpkg -i oracle-instantclient11.2-* .deb
29
25
sudo /etc/init.d/oracle-xe configure
30
26
```
31
27
32
28
* Open http://localhost:9999/apex/ change 9999 to the port you configured. Log-in with "sys" and the password.
33
29
* Create a user called "test" with password "test" and give all accesses.
34
30
35
31
``` bash
36
- sudo vi /etc/ld.so.conf.d/oracle.conf -- add this line /usr/lib/oracle/10.2.0.5 /client/lib/
32
+ sudo vi /etc/ld.so.conf.d/oracle.conf -- add this line /usr/lib/oracle/11.2 /client/lib/
37
33
sudo ldconfig
38
34
39
35
export ORACLE_SID=test
40
- export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0 /server
41
- export OCI_INCLUDE_DIR=/usr/include/oracle/10.2.0.5 /client/
42
- export OCI_LIB_DIR=/usr/lib/oracle/10.2.0.5 /client/lib/
36
+ export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/11.2 /server
37
+ export OCI_INCLUDE_DIR=/usr/include/oracle/11.2 /client/
38
+ export OCI_LIB_DIR=/usr/lib/oracle/11.2 /client/lib/
43
39
sqlplus test@XE
44
40
```
45
41
Original file line number Diff line number Diff line change @@ -16,15 +16,15 @@ def configure(conf):
16
16
conf .env .append_unique ('CXXFLAGS' , ['-D_FILE_OFFSET_BITS=64' ])
17
17
conf .env .append_unique ('CXXFLAGS' , ['-D_LARGEFILE_SOURCE' ])
18
18
19
- oci_include = environ .get ("OCI_INCLUDE_DIR" , "/usr/include/oracle/10.2.0.5 /client/" )
19
+ oci_include = environ .get ("OCI_INCLUDE_DIR" , "/usr/include/oracle/11.2 /client/" )
20
20
if oci_include :
21
21
conf .env .append_unique ('CXXFLAGS' , [ '-I' + oci_include ])
22
22
23
- oci_lib = environ .get ("OCI_LIB_DIR" , "/usr/lib/oracle/10.2.0.5 /client/lib/" )
23
+ oci_lib = environ .get ("OCI_LIB_DIR" , "/usr/lib/oracle/11.2 /client/lib/" )
24
24
if oci_lib :
25
25
conf .env .append_unique ('LINKFLAGS' , [ '-L' + oci_lib ])
26
26
27
- conf .env .append_unique ('LINKFLAGS' , ['-locci' , '-lclntsh' , '-lnnz10 ' ])
27
+ conf .env .append_unique ('LINKFLAGS' , ['-locci' , '-lclntsh' , '-lnnz11 ' ])
28
28
conf .check (header_name = "occi.h" , errmsg = "Missing include files for OCI" , mandatory = True )
29
29
conf .check_cxx (lib = "occi" , errmsg = "Missing libocci" , mandatory = True )
30
30
You can’t perform that action at this time.
0 commit comments