Jeg har en linux debian server, hvor jeg default har auto installeret en Oracle XE 10g. Nu skal jeg have php, op og køre mod oracle, men jeg kan ikke funde ud af hvor det OraHome1 ligger. Umiddelbart vil jeg tro at det skulle ligge i /usr/lib/oracle - men det gør det ikke umiddelbart.
Nogle der har erfaringer eller idéer til det.. ;-)
Du vil typisk kunne finde informationen i /etc/oratab.
Alternativt kan du grep'e efter informationen i [...]/oraInventory/logs/*.log - men det kræver at du ved hvor Oracle Installer har smidt sine log-filer så den løsning bider måske sig selv i halen...
Tusind tak for jeres besvarelser. Ingen af delene eksiterer.
Jeg har i midlertid hentet php-pear, derefter basic og SDK fra Oracle og derefter "pecl install oci8" - hvilket resulterere: root@s1:~# pecl install oci8 downloading oci8-1.2.4.tgz ... Starting to download oci8-1.2.4.tgz (99,687 bytes) .................done: 99,687 bytes 10 source files, building running: phpize Configuring for: PHP Api Version: 20041225 Zend Module Api No: 20050922 Zend Extension Api No: 220051025 Please provide the path to ORACLE_HOME dir. Use 'instantclient,/path/to/instant/client/lib' if you're compiling against Oracle Instant Client [autodetect] : instantclient,/opt/oracle/instantclient/instantclient_11_1 building in /var/tmp/pear-build-root/oci8-1.2.4 running: /tmp/tmpQWDRc0/oci8-1.2.4/configure --with-oci8=instantclient,/opt/oracle/instantclient/instantclient_11_1 checking for egrep... grep -E checking for a sed that does not truncate output... /bin/sed checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking whether gcc and cc understand -c and -o together... yes checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... sparc64-unknown-linux-gnu checking host system type... sparc64-unknown-linux-gnu checking target system type... sparc64-unknown-linux-gnu checking for PHP prefix... /usr checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext checking for PHP extension directory... /usr/lib/php5/20051025 checking for PHP installed headers prefix... /usr/include/php5 checking for re2c... re2c checking for re2c version... 0.9.12 (ok) checking for gawk... no checking for nawk... nawk checking if nawk is broken... no checking for Oracle (OCI8) support... yes, shared checking PHP version... 5.1.2, ok checking Oracle Instant Client directory... /opt/oracle/instantclient/instantclient_11_1 checking Oracle Instant Client SDK header directory... /opt/oracle/instantclient/instantclient_11_1/sdk/include checking Oracle Instant Client version... configure: error: Link from /opt/oracle/instantclient/instantclient_11_1/libclntsh.so to libclntsh.so.11.1 not found ERROR: `/tmp/tmpQWDRc0/oci8-1.2.4/configure --with-oci8=instantclient,/opt/oracle/instantclient/instantclient_11_1' failed root@s1:~#
Nogle gode bud, på hvad jeg kan gøre? På forhånd tak ;-)
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.