Oracle 9i Client AIX only, tnsnames connection to Oracle 8i HP/UX Server
I am having problems with the TNSNAMES connection when trying to execute SQLPlus. Are there any known gotchas on setting up the TNSNAMES.ORA, SQLNET.ORA, and LISTENER.ORA files?
Yes, you have to get it right ;)
What kind of problems? (steps taken, error codes/messages, etc.)
Does your tnsnames.ora on the AIX side seem to match what the listener on HP/ux listens for?
Similar Messages
-
Oracle OCI CLIENT 11g is not connecting with PHP & Apache on Fedora
Dear all... we are facing following issue... similar to other but not able to resolve ...
Warning: oci_connect() [function.oci-connect]: OCIEnvNlsCreate() failed. There is something wrong with your system - please check that LD_LIBRARY_PATH includes the directory with Oracle Instant Client libraries in /var/www/html/waseem2.php on line 2
our PHPinfo(); is showing following the OCI8 Extenstion Enabled
PHP Version 5.2.9
System Linux localhost.localdomain 2.6.27.5-117.fc10.i686 #1 SMP Tue Nov 18 12:19:59 EST 2008 i686
Build Date Apr 17 2009 03:29:46
Configure Command './configure' '--build=i386-redhat-linux-gnu' '--host=i386-redhat-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--enable-gd-native-ttf' '--with-t1lib=/usr' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-wddx' '--with-kerberos' '--enable-ucd-snmp-hack' '--enable-shmop' '--enable-calendar' '--without-mime-magic' '--without-sqlite' '--with-libxml-dir=/usr' '--enable-xml' '--with-system-tzdata' '--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter' '--disable-json' '--without-pspell'
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc
Loaded Configuration File /etc/php.ini
Scan this dir for additional .ini files /etc/php.d
additional .ini files parsed /etc/php.d/dbase.ini, /etc/php.d/json.ini, /etc/php.d/ldap.ini, /etc/php.d/mbstring.ini, /etc/php.d/mysql.ini, /etc/php.d/mysqli.ini, /etc/php.d/pdo.ini, /etc/php.d/pdo_mysql.ini, /etc/php.d/pdo_sqlite.ini, /etc/php.d/zip.ini
PHP API 20041225
PHP Extension 20060613
Zend Extension 220060519
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams php, file, data, http, ftp, compress.bzip2, compress.zlib, https, ftps, zip
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, bzip2.*, zlib.*
Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
PHP Credits
Configuration
PHP Core
Directive Local Value Master Value
allow_call_time_pass_reference Off Off
allow_url_fopen On On
allow_url_include Off Off
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_globals_jit On On
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions no value no value
display_errors On On
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl On On
error_append_string no value no value
error_log no value no value
error_prepend_string no value no value
error_reporting 6143 6143
expose_php On On
extension_dir /usr/lib/php/modules /usr/lib/php/modules
file_uploads On On
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:/usr/share/pear:/usr/share/php .:/usr/share/pear:/usr/share/php
log_errors On On
log_errors_max_len 1024 1024
magic_quotes_gpc Off Off
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
mail.force_extra_parameters no value no value
max_execution_time 30 30
max_input_nesting_level 64 64
max_input_time 60 60
memory_limit 32M 32M
open_basedir no value no value
output_buffering 4096 4096
output_handler no value no value
post_max_size 8M 8M
precision 14 14
realpath_cache_size 16K 16K
realpath_cache_ttl 120 120
register_argc_argv Off Off
register_globals Off Off
register_long_arrays Off Off
report_memleaks On On
report_zend_debug On On
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 2M 2M
upload_tmp_dir no value no value
user_dir no value no value
variables_order EGPCS EGPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On
zend.ze1_compatibility_mode Off Off
apache2handler
Apache Version Apache/2.2.11 (Fedora)
Apache API Version 20051115
Server Administrator root@localhost
Hostname:Port localhost.localdomain:0
User/Group apache(48)/48
Max Requests Per Child: 4000 - Keep Alive: off - Max Per Connection: 100
Timeouts Connection: 120 - Keep-Alive: 15
Virtual Server No
Server Root /etc/httpd
Loaded Modules core prefork http_core mod_so mod_auth_basic mod_auth_digest mod_authn_file mod_authn_alias mod_authn_anon mod_authn_dbm mod_authn_default mod_authz_host mod_authz_user mod_authz_owner mod_authz_groupfile mod_authz_dbm mod_authz_default util_ldap mod_authnz_ldap mod_include mod_log_config mod_logio mod_env mod_ext_filter mod_mime_magic mod_expires mod_deflate mod_headers mod_usertrack mod_setenvif mod_mime mod_dav mod_status mod_autoindex mod_info mod_dav_fs mod_vhost_alias mod_negotiation mod_dir mod_actions mod_speling mod_userdir mod_alias mod_rewrite mod_proxy mod_proxy_balancer mod_proxy_ftp mod_proxy_http mod_proxy_connect mod_cache mod_suexec mod_disk_cache mod_file_cache mod_mem_cache mod_cgi mod_perl mod_php5 mod_proxy_ajp mod_python mod_ssl
Directive Local Value Master Value
engine 1 1
last_modified 0 0
xbithack 0 0
Apache Environment
Variable Value
LD_LIBRARY_PATH /home/zubair/instantclient_11_1_
HTTP_HOST localhost
HTTP_USER_AGENT Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.4) Gecko/2008111217 Fedora/3.0.4-1.fc10 Firefox/3.0.4
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE en-us,en;q=0.5
HTTP_ACCEPT_ENCODING gzip,deflate
HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_KEEP_ALIVE 300
HTTP_CONNECTION keep-alive
HTTP_COOKIE PHPSESSID=he50pdhvtihu74lhmjnvggfr42
PATH /sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE <address>Apache/2.2.11 (Fedora) Server at localhost Port 80</address>
SERVER_SOFTWARE Apache/2.2.11 (Fedora)
SERVER_NAME localhost
SERVER_ADDR 127.0.0.1
SERVER_PORT 80
REMOTE_ADDR 127.0.0.1
DOCUMENT_ROOT /var/www/html
SERVER_ADMIN root@localhost
SCRIPT_FILENAME /var/www/html/waseem.php
REMOTE_PORT 39529
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING no value
REQUEST_URI /waseem.php
SCRIPT_NAME /waseem.php
HTTP Headers Information
HTTP Request Headers
HTTP Request GET /waseem.php HTTP/1.1
Host localhost
User-Agent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.4) Gecko/2008111217 Fedora/3.0.4-1.fc10 Firefox/3.0.4
Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 300
Connection keep-alive
Cookie PHPSESSID=he50pdhvtihu74lhmjnvggfr42
HTTP Response Headers
X-Powered-By PHP/5.2.9
Connection close
Transfer-Encoding chunked
Content-Type text/html; charset=UTF-8
bz2
BZip2 Support Enabled
Stream Wrapper support compress.bz2://
Stream Filter support bzip2.decompress, bzip2.compress
BZip2 Version 1.0.5, 10-Dec-2007
calendar
Calendar support enabled
ctype
ctype functions enabled
curl
cURL support enabled
cURL Information libcurl/7.18.2 NSS/3.12.1.1 zlib/1.2.3 libidn/0.6.14 libssh2/0.18
date
date/time support enabled
"Olson" Timezone Database Version 0.system
Timezone Database internal
Default timezone Asia/Karachi
Directive Local Value Master Value
date.default_latitude 31.7667 31.7667
date.default_longitude 35.2333 35.2333
date.sunrise_zenith 90.583333 90.583333
date.sunset_zenith 90.583333 90.583333
date.timezone no value no value
exif
EXIF Support enabled
EXIF Version 1.4 $Id: exif.c,v 1.173.2.5.2.27 2008/12/31 11:17:37 sebastian Exp $
Supported EXIF Version 0220
Supported filetypes JPEG,TIFF
filter
Input Validation and Filtering enabled
Revision $Revision: 1.52.2.45 $
Directive Local Value Master Value
filter.default unsafe_raw unsafe_raw
filter.default_flags no value no value
ftp
FTP support enabled
gettext
GetText Support enabled
gmp
gmp support enabled
GMP version 4.2.2
hash
hash support enabled
Hashing Engines md2 md4 md5 sha1 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru gost adler32 crc32 crc32b haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5
iconv
iconv support enabled
iconv implementation glibc
iconv library version 2.9
Directive Local Value Master Value
iconv.input_encoding ISO-8859-1 ISO-8859-1
iconv.internal_encoding ISO-8859-1 ISO-8859-1
iconv.output_encoding ISO-8859-1 ISO-8859-1
json
json support enabled
json version 1.2.1
ldap
LDAP Support enabled
RCS Version $Id: ldap.c,v 1.161.2.3.2.14 2008/12/31 11:17:39 sebastian Exp $
Total Links 0/unlimited
API Version 3001
Vendor Name OpenLDAP
Vendor Version 20412
SASL Support Enabled
libxml
libXML support active
libXML Version 2.7.3
libXML streams enabled
mbstring
Multibyte Support enabled
Multibyte string engine libmbfl
Multibyte (japanese) regex support enabled
Multibyte regex (oniguruma) version 4.4.4
Multibyte regex (oniguruma) backtrack check On
mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.
Directive Local Value Master Value
mbstring.detect_order no value no value
mbstring.encoding_translation Off Off
mbstring.func_overload 0 0
mbstring.http_input pass pass
mbstring.http_output pass pass
mbstring.internal_encoding no value no value
mbstring.language neutral neutral
mbstring.strict_detection Off Off
mbstring.substitute_character no value no value
mysql
MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 5.0.84
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient
Directive Local Value Master Value
mysql.allow_persistent On On
mysql.connect_timeout 60 60
mysql.default_host no value no value
mysql.default_password no value no value
mysql.default_port no value no value
mysql.default_socket no value no value
mysql.default_user no value no value
mysql.max_links Unlimited Unlimited
mysql.max_persistent Unlimited Unlimited
mysql.trace_mode Off Off
mysqli
MysqlI Support enabled
Client API library version 5.0.84
Client API header version 5.0.77
MYSQLI_SOCKET /var/lib/mysql/mysql.sock
Directive Local Value Master Value
mysqli.default_host no value no value
mysqli.default_port 3306 3306
mysqli.default_pw no value no value
mysqli.default_socket no value no value
mysqli.default_user no value no value
mysqli.max_links Unlimited Unlimited
mysqli.reconnect Off Off
oci8
OCI8 Support enabled
Version 1.3.5
Revision $Revision: 1.269.2.16.2.38.2.32 $
Active Persistent Connections 0
Active Connections 0
Oracle Instant Client Version 11.1
Temporary Lob support enabled
Collections support enabled
Directive Local Value Master Value
oci8.connection_class no value no value
oci8.default_prefetch 100 100
oci8.events Off Off
oci8.max_persistent -1 -1
oci8.old_oci_close_semantics Off Off
oci8.persistent_timeout -1 -1
oci8.ping_interval 60 60
oci8.privileged_connect Off Off
oci8.statement_cache_size 20 20
openssl
OpenSSL support enabled
OpenSSL Version OpenSSL 0.9.8g 19 Oct 2007
pcre
PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 7.8 2008-09-05
Directive Local Value Master Value
pcre.backtrack_limit 100000 100000
pcre.recursion_limit 100000 100000
PDO
PDO support enabled
PDO drivers mysql, sqlite
pdo_mysql
PDO Driver for MySQL, client library version 5.0.84
pdo_sqlite
PDO Driver for SQLite 3.x enabled
PECL Module version 1.0.1 $Id: pdo_sqlite.c,v 1.10.2.6.2.4 2008/12/31 11:17:42 sebastian Exp $
SQLite Library 3.5.9
posix
Revision $Revision: 1.70.2.3.2.22 $
Reflection
Reflection enabled
Version $Id: php_reflection.c,v 1.164.2.33.2.55 2008/12/31 11:17:42 sebastian Exp $
session
Session Support enabled
Registered save handlers files user
Registered serializer handlers php php_binary wddx
Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 Off Off
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_httponly Off Off
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 1000 1000
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.hash_bits_per_character 5 5
session.hash_function 0 0
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /var/lib/php/session /var/lib/php/session
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid 0 0
shmop
shmop support enabled
SimpleXML
Simplexml support enabled
Revision $Revision: 1.151.2.22.2.46 $
Schema support enabled
sockets
Sockets Support enabled
SPL
SPL support enabled
Interfaces Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject
Classes AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, EmptyIterator, FilterIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RegexIterator, RuntimeException, SimpleXMLIterator, SplFileInfo, SplFileObject, SplObjectStorage, SplTempFileObject, UnderflowException, UnexpectedValueException
standard
Regex Library Bundled library enabled
Dynamic Library Support enabled
Path to sendmail /usr/sbin/sendmail -t -i
Directive Local Value Master Value
assert.active 1 1
assert.bail 0 0
assert.callback no value no value
assert.quiet_eval 0 0
assert.warning 1 1
auto_detect_line_endings 0 0
default_socket_timeout 60 60
safe_mode_allowed_env_vars PHP_ PHP_
safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH
url_rewriter.tags a=href,area=href,frame=src,input=src,form=fakeentry a=href,area=href,frame=src,input=src,form=fakeentry
user_agent no value no value
sysvmsg
sysvmsg support enabled
Revision $Revision: 1.20.2.3.2.8 $
tokenizer
Tokenizer Support enabled
wddx
WDDX Support enabled
WDDX Session Serializer enabled
xml
XML Support active
XML Namespace Support active
libxml2 Version 2.7.3
zip
Zip enabled
Extension Version $Id: php_zip.c,v 1.1.2.49 2009/02/05 19:53:22 pajoye Exp $
Zip version 1.8.11
Libzip version 0.9.0
zlib
ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.3
Linked Version 1.2.3
Directive Local Value Master Value
zlib.output_compression Off Off
zlib.output_compression_level -1 -1
zlib.output_handler no value no value
Additional Modules
Module Name
dbase
sysvsem
sysvshm
Environment
Variable Value
TERM xterm
LD_LIBRARY_PATH /home/zubair/instantclient_11_1/
PATH /sbin:/usr/sbin:/bin:/usr/bin
PWD /
LANG C
SHLVL 2
ORACLE_HOME /home/zubair/instantclient_11_1/
_ /usr/sbin/httpd
PHP Variables
Variable Value
_REQUEST["PHPSESSID"] he50pdhvtihu74lhmjnvggfr42
_COOKIE["PHPSESSID"] he50pdhvtihu74lhmjnvggfr42
SERVER["LDLIBRARY_PATH"] /home/zubair/instantclient_11_1
_SERVER["HTTP_HOST"] localhost
_SERVER["HTTP_USER_AGENT"] Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.4) Gecko/2008111217 Fedora/3.0.4-1.fc10 Firefox/3.0.4
_SERVER["HTTP_ACCEPT"] text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
_SERVER["HTTP_ACCEPT_LANGUAGE"] en-us,en;q=0.5
_SERVER["HTTP_ACCEPT_ENCODING"] gzip,deflate
_SERVER["HTTP_ACCEPT_CHARSET"] ISO-8859-1,utf-8;q=0.7,*;q=0.7
_SERVER["HTTP_KEEP_ALIVE"] 300
_SERVER["HTTP_CONNECTION"] keep-alive
_SERVER["HTTP_COOKIE"] PHPSESSID=he50pdhvtihu74lhmjnvggfr42
_SERVER["PATH"] /sbin:/usr/sbin:/bin:/usr/bin
_SERVER["SERVER_SIGNATURE"] <address>Apache/2.2.11 (Fedora) Server at localhost Port 80</address>
_SERVER["SERVER_SOFTWARE"] Apache/2.2.11 (Fedora)
_SERVER["SERVER_NAME"] localhost
_SERVER["SERVER_ADDR"] 127.0.0.1
_SERVER["SERVER_PORT"] 80
_SERVER["REMOTE_ADDR"] 127.0.0.1
_SERVER["DOCUMENT_ROOT"] /var/www/html
_SERVER["SERVER_ADMIN"] root@localhost
_SERVER["SCRIPT_FILENAME"] /var/www/html/waseem.php
_SERVER["REMOTE_PORT"] 39529
_SERVER["GATEWAY_INTERFACE"] CGI/1.1
_SERVER["SERVER_PROTOCOL"] HTTP/1.1
_SERVER["REQUEST_METHOD"] GET
_SERVER["QUERY_STRING"] no value
_SERVER["REQUEST_URI"] /waseem.php
_SERVER["SCRIPT_NAME"] /waseem.php
_SERVER["PHP_SELF"] /waseem.php
_SERVER["REQUEST_TIME"] 1253301146
_ENV["TERM"] xterm
_ENV["LD_LIBRARY_PATH"] /home/zubair/instantclient_11_1/
_ENV["PATH"] /sbin:/usr/sbin:/bin:/usr/bin
_ENV["PWD"] /
_ENV["LANG"] C
_ENV["SHLVL"] 2
_ENV["ORACLE_HOME"] /home/zubair/instantclient_11_1/
_ENV["_"] /usr/sbin/httpd
PHP License
This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact [email protected].
Have a nice day!
Fatal error: Call to undefined function odbc_connect() in /var/www/html/waseem.php on line 20
------------------------------------------------------------------------------------------Is the problem with oci_connect or odbc_connect?
The phpinfo() output shows '--without-unixODBC' which may be a root cause. There is no 'odbc' section shown in the phpinfo() output so I wouldn't expect odbc calls to work.
But if the issue is with OCI8, then make sure that Oracle environment variables and LD_LIBRARY_PATH are set BEFORE starting Apache.
More information on OCI8 and PHP is in http://www.oracle.com/technology/tech/php/underground-php-oracle-manual.html
Also see http://wiki.oracle.com/page/PHP+Oracle+FAQ
The PHP forum on OTN is http://www.oracle.com/technology/forums/php.html -
Oracle instant client 11g doesn`t connect to database 10g
hi,
i installed a oracle instant client 11g for windows xp on my pc, because i need a odbc connection.
I don`nt know this product. I don`t find a tns.ora file, so how can i give them the right parameter for my oracle database and how can i make a odbc connection.
Is it already the right client?
Thanks in advance.
Regards
Nicolenicole4 wrote:
Hi,
now 've seen that installed this client win32_11gR2_client this isn't the instant basic client.
Should i deinstall this client?
Or how can i make there a odbc connection?
Thanks
NicoleODBC sits on top of the Oracle client. (or any other native client of a given db product).
I don't think the ODBC drivers come with the instant client, though if you can locate a 3d party odbc driver for Oracle, that should work with the instant client.
Oracle ODBC drivers do come with the full client, but even there don't install by default - at least not up through 10g. In that case you have to select 'custom installation' (which can be done after a basic run-time installation) and select 'windows components'. -
Oracle Enterprise Linux 5 w/ unixODC connect to Oracle DB 11g
Hi,
I am trying to configure our new install of Oracle Unbreakable linux (Enterprise v5) to connect to our Oracle 11g DB via ODBC. I have configured the odbc.ini and odbcinst.ini files. I have tried to do a test connection using isql. This is the error I am getting....
$ isql -v JSI
isql: symbol lookup error: /opt/oracle/product/11g/lib/libsqora.so.11.1: undefined symbol: SQLGetPrivateProfileStringW
I understand this issue is with unixODBC and the liib.... libodbcinst.so.1.0.0. However, I have not found a way to fix this. Anyhelp would be greatly appreciated on getting this working.Well I have gotten a bit further along. I was able to get a working 2.2.12 rpm. I now issue the command....
$isql -v JSI
[S1000][unixODBC][Oracle][ODBC][Ora]ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA
[ISQL]ERROR: Could not SQLConnect
Now I am getting this error.
I also know that my tnsnames.ora and linstener.ora files are correct b/c I can connect to remote Databases using sqlplus. I have downloaded a free trial of easysofts Oracle ODBC Driver and it works perfectly. So my configs should be right. My yquestion I guess is why does the Oracle supplied ODBC driver not work?
Message was edited by:
Rever75 -
Oracle Developer Suite Applications Can't connect to Oracle 8i database
Hello,
I have Oracle 8i installed on my PC.
Now I have installed Oracle Developer Suite on it.
During the installation it never asked for a Oracle home directory. It may be detecting the same.
It has created separate menus and configuration files like tnsnames.ora for this installation. The SQL * Plus version is also different, which is 10.1.0.4.2.
Now when I try to connect using usual scott/tiger authentication it gives error
ORA-12560: TNS: Protocol adapter error.
Even after correcting the tnsnames.ora file, which is installed by DS with proper service name, the problem persists.
Please help.
-SameerI have uninstalled Oracle 8i.
Removed all the services from Windows services by deleting corresponding registry entries and deleted the Oracle folder.
I have reinstalled Oracle 8i, this time i changed the name of global database to oracledb.
I channged the tnsnames.ora file from DevSuite appropriately as:
# tnsnames.ora Network Configuration File: C:\DevSuiteHome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = mscserver)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = ORACLEDB)
Still it can't login using scott/tiger authentication.
What may be the problem? Please help.
-Sameer -
ORACLE not available!problem in connecting the oracle-xe-10g.
SQL> conn
Enter user-name: chris
Enter password:
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory
SQL>Hi,
I have the same problem during XE installation on Windows 2003 R2 SP 2 Enterprise edition. I have uninstall the oracle xxe and the result still the same. Finally I uninstall the windows and start all over again, surprisingly the result still the same. FYI, we normally has no issue during installation because this is part of our system we sell to our customer which require oracle xe. This is the first time we have seen this issue.
ORA-01034 : Oracle Not available
ORA-27101 : Shared memory realm doesn't exist.
Oracle XE and listener services is started in the windows services.
if we try to do startup the following message occured.
SQL> connect /as sysdba
Connected to an idle instance.
SQL> startup
ORA-44412: XE edition memory parameter invalid or not specified
SQL>I can send you the oracle_xe log, init ora, and OpsBuildAll.log to create the database.
When we compare with the working installation, we saw that the size of oraclexe folder is less, it's just 233MB while the working one is over 1GB. After investigation, found out that the .dbf files is not avaiable in the oradata folder, i have tried to copy those files from the working one but the problem stay the same, probably there are a lot of files more missing.
Appreciate your help on this.
Thanks,
Agus -
JDBC-ORACLE CONNECTIVITY ISSUE WITYH OCI8 DRIVER using oracle 11g client..
JDBC-ORACLE CONNECTIVITY ISSUE WITYH OCI8 DRIVER using oracle 11g client..
I am getting below error when i m trying to access oracle db using oracle 11g client. It works with earlier oracle client versions. how do i resolve this. is there any issue with version of ojdbc6.jar that i am using??? I cant use thin driver since its an old application for which i dont have source files.
Apr 6, 2013 1:00:59 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:992)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:262)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:346)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at PettyCash.SysDate.getSysSubSys(SysDate.java:232)
at org.apache.jsp.PettyCash.index_jsp._jspService(org.apache.jsp.PettyCash.index_jsp:186)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Code is as follow for reference
import oracle.jdbc.driver.*;
DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
conn = DriverManager.getConnection ("jdbc:oracle:oci8:@" + database,db_user, db_pass);
eNVIRONMENT VARIABLES set are as follows:
classpath
C:\Program Files\apache-tomcat-5.5.12\common\lib\servlet-api.jar;C:\Program Files\apache-tomcat-5.5.12\webapps\ROOT\WEB-INF\lib\classes12.jar;C:\Program Files\apache-tomcat-5.5.12\webapps\ROOT\WEB-INF\lib\ojdbc6.jar;
JAVA_HOME
C:\Program Files\Java\jdk1.5.0_04
PATH
C:\Program Files\Java\jdk1.5.0_04\bin
ORACLE_HOME
D:\Oracle11\product\11.2.0\client_1\BINApr 8, 2013 5:24:06 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at org.apache.jsp.abc.index_jsp._jspService(org.apache.jsp.abc.index_jsp:280)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595) -
Installed Oracle Workflow Client but database connection fails,why?
Hi
I have installed Oracle Workflow Client (windows) but database connection using apps user (EBS R12 database) is not establishing.Getting the following error '1300:Could not load'. How can i make succesfull connection & use it?
Regards
ArizHi,
Please see these documents.
Note: 389432.1 - 2.6.x: Access the Builder errors with 1300, 1114, 1101, 333, 332, 306 & 203: Value contains leading or trailing spaces
Note: 747485.1 - Oracle Workflow Builder: Could not load from database Error
Note: 179987.1 - Workflow Builder Cannot Load Objects From Applications when the NLS_LANG is Non-American
Regards,
Hussein -
Redhat 7.3 upgrade causing problems with client connections to Oracle 8.1.7
I have recently upgraded from Redhat 7.1 to 7.3 and now my Oracle clients can no longer connect to Oracle 8.1.7. I read a note external to this forum that essentially says to reinstall Oracle.
I would really like to avoid reinsalling Oracle. I haven't had enough time to devote to determining a simpler fix. Does anyone know whether reinstalling Oracle can be avoided?
ThomasI resolved my own issue. The problem was with the 7.2 upgrade and how it treated client connections. Once I started xinetd (off by default), everything started working; imagine that.
Thomas -
Database is up and running but when I connect as oracle it's idle?
Hi experts,
I have a strange kind of problem. I installed Oracle10 on UNIX.
When I connect to the Database remotely I am on a perfect working database but when I am connected directly on the machine via Oracle user, and run SQLPLUS I am connected to an idle instance. Also I can not startup this instance because I of 'ORA-01102: cannot mount database in EXCLUSIVE mode'.
when I run SQLPLUS useing the '@' condition I am connected correctly.
I checked SID settings and so on but it looks fine. I also only have one instance installed (I hope!).
Any ideas?
Thanks
FloHi,
I run the suggested ceckes and attached you my results below:
Please note that I had to replace the hostname/passwords due to security reasons with a spaceholder. (;
oracle@] /home/oracle > cat /etc/oratab
root@<Host>_ECR: / > ps -ef | grep ECR
oracle 278554 1 0 15:04:58 - 0:00 ora_q001_ECR
oracle 319680 1 0 15:04:59 - 0:00 oracleECR (LOCAL=NO)
root 397390 1634448 0 09:19:33 pts/0 0:00 grep ECR
oracle 418028 1 0 15:04:43 - 0:00 ora_dbw0_ECR
oracle 495674 1 0 17:03:21 - 0:00 ora_dbw0_ECR
oracle 499716 1 0 15:04:43 - 0:00 ora_psp0_ECR
oracle 569560 1 0 15:04:48 - 0:00 ora_qmnc_ECR
oracle 577564 1 0 15:05:46 - 0:00 oracleECR (LOCAL=NO)
oracle 639186 1 0 Apr 21 - 0:13 /oracle/ECR/102_64/bin/tnslsnr LEAlistener -inherit
oracle 1437730 1 0 09:09:57 - 0:00 oracleECR (LOCAL=NO)
oracle 1450066 1 0 17:03:21 - 0:06 ora_pmon_ECR
oracle 1470680 1 0 15:04:43 - 0:02 ora_smon_ECR
oracle 1491084 1 0 15:04:43 - 0:10 ora_mmnl_ECR
oracle 1503234 1 0 17:03:21 - 0:00 ora_mmnl_ECR
oracle 1519658 1 0 17:03:21 - 0:00 ora_psp0_ECR
oracle 1552454 1 0 15:04:43 - 0:04 ora_mmon_ECR
oracle 1560652 1 0 15:04:43 - 0:00 ora_mman_ECR
oracle 1573098 1 0 17:03:21 - 0:00 ora_mmon_ECR
oracle 1589450 1 0 17:03:21 - 0:00 ora_smon_ECR
oracle 1605798 1 0 15:04:43 - 0:00 ora_lgwr_ECR
oracle 1609876 1 0 15:04:43 - 0:08 ora_pmon_ECR
oracle 1613844 1 0 17:03:21 - 0:00 ora_lgwr_ECR
oracle 1630416 1 0 15:04:48 - 0:00 ora_arc1_ECR
oracle 1638450 1 0 15:04:58 - 0:00 ora_q000_ECR
oracle 1646726 1 0 15:04:48 - 0:00 ora_arc0_ECR
oracle 1654972 1 0 15:06:15 - 0:13 oracleECR (LOCAL=NO)
oracle 1659008 1 0 17:03:21 - 0:00 ora_mman_ECR
oracle 1675264 1 0 09:09:22 - 0:00 oracleECR (LOCAL=NO)
oracle 1683528 1 0 17:03:21 - 0:00 ora_reco_ECR
oracle 1687780 1 0 15:04:43 - 0:00 ora_reco_ECR
oracle 1712132 1 0 17:03:21 - 0:00 ora_ckpt_ECR
oracle 1777898 1 0 15:04:43 - 0:03 ora_ckpt_ECR
=========================================================
# This file is used by ORACLE utilities. It is created by root.sh
# and updated by the Database Configuration Assistant when creating
# a database.
# A colon, ':', is used as the field terminator. A new line terminates
# the entry. Lines beginning with a pound sign, '#', are comments.
# Entries are of the form:
# $ORACLE_SID:$ORACLE_HOME:<N|Y>:
# The first and second fields are the system identifier and home
# directory of the database respectively. The third filed indicates
# to the dbstart utility that the database should , "Y", or should not,
# "N", be brought up at system boot time.
# Multiple entries with the same $ORACLE_SID are not allowed.
ECR:/oracle/ECR/102_64:N
*:/oracle/ECR/102_64:N
->When I checked oratab it had no entries, so I added the ORACLE_HOME
=========================================================
oracle@] /home/oracle > tnsping ECR_<Host>.world
TNS Ping Utility for IBM/AIX RISC System/6000: Version 10.2.0.2.0 - Production on 08-MAY-2008 09:15:26
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
/ixos/sw/config/oracle/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (Host = <Host>) (Port = 9027))) (CONNECT_DATA = (SE
RVICE_NAME = ECR_<Host>.world) (INSTANCE_NAME = ECR)))
OK (10 msec)
=========================================================
Below you can see my problem...
oracle@] /home/oracle > sqlplus system/****@ECR_<Host>.world
SQL*Plus: Release 10.2.0.2.0 - Production on Thu May 8 09:16:51 2008
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
With the Partitioning and Data Mining options
SQL> exit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
With the Partitioning and Data Mining options
oracle@] /home/oracle > sqlplus system/****
SQL*Plus: Release 10.2.0.2.0 - Production on Thu May 8 09:17:05 2008
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
ERROR:
ORA-01033: ORACLE initialization or shutdown in progress
Enter user-name: -
Hi,
1st server (DB Server)
OS : Windows 2000 Server
Oracle 8i Server (32 bit)
2nd server (Web Server)
OS : Windows 2003 SP2 (64 bit)
Oracle 9i client (32 bit)
After i installed, oracle 9i client (32 bit) in Windows 2003 SP2 (64 bit), i managed to install and configure tnsnames and connects using SQL Plus. However, i CANNOT see Oracle in ODBC.
Que 1 : Why? Why i cannot see any Oracle in ODBC? Is it because of 64 bit?
Que 2: If i installed Oracle 9i client (64 bit), will it solve the problem?
Que 3: Will my .Net software gives problem when application installed in IIS interacts with DB server???
thanks
ramauser632098 wrote:
I ahev Oracle 11.2 64 bit client installed on a Windows Server Now I have a reuqireemnt to install Oracle 11.1 32 bit for some SQL Server SSIS connectivity to Oracle.
I can install 11.1 in a separate HOME. Porblem I have is if I install 11.1, it will put 11.1 ORACLE_HOME\bin before 11.2. How can I sendure that 11.2 is before 11.1, so sqlplus is exceuting from 11.2. I do not wnat to deisntall 11.2 and then resinstall it.
Thanks.
establish the PATH variable to contain the desired order -
How to install oracle software on AIX server
Hi
I have one remote AIX 5.3 server .
On this I want to install oracle 9.2 software.
I connect by putty to get this server but How i can get graphical interface of oracle installation?
when i run run installer, that give error it can not recognize x window .
Please guide me.
Thanks.What I normally do is:
- start via the putty session (loged in with the software install user) vncserver
- give a password for the user.
- on your desktop client you startup vnc viewer (can be downloaded free from internet)
- use the machine ip/name and the earlyer given password
- you have a graphical environment on AIX
Regards, Gerwin -
Oracle instant Client and unixODBC for Linux has Error
Hi experts,
I have two Redhat EL 5. On the first Rehat(xxx.xxx.xxx.121 --> called Redhat1) I have installed Oracle 10g database server. On the second Redhat(xxx.xxx.xxx.123 --> called Redhat2) I want to connect to Oracle database server on xxx.xxx.xxx.121 via ODBC. But it does not work. Pls help me!
I have done steps as following:
Login to Redhat2 as root and type commands:
1)Install Instant Client + sqlplus
# rpm -ivh oracle-instantclient-basic-10.2.0.4-1.i386.rpm
# rpm -ivh oracle-instantclient-sqlplus-10.2.0.4-1.i386.rpm
2)Setting environment variable
# LD_LIBRARY_PATH=/usr/lib/oracle/10.2.0.4/client/lib:${LD_LIBRARY_PATH}; export LD_LIBRARY_PATH
# SQLPATH=/usr/lib/oracle/10.2.0.4/client/lib:${SQLPATH}; export SQLPATH
3)Testing connection to Redhat1(Oracle DB server) using sqlplus
# sqlplus abc/[email protected]:1521/lab2
Connected.
5)Begin to install unixODBC
# rpm -ivh oracle-instantclient-odbc-10.2.0.4-1.i386.rpm
# rpm -ivh unixODBC-2.2.11-7.1.i386.rpm
# rpm -ivh unixODBC-devel-2.2.11-7.1.i386.rpm
# rpm -ivh unixODBC-kde-2.2.11-7.1.i386.rpm
6)After installation above packages I check for existing of odbc.ini and odbcinst.ini in /etc --> ok
# ls /etc | grep odbc
odbc.ini
odbcinst.ini
7) Tar unixODBC-2.2.14-linux-x86-32.tar.gz and copy file to /usr/local/bin, /usr/local/include, /usr/local/lib
# tar -xzf unixODBC-2.2.14-linux-x86-32.tar.gz
# ls /usr/local/bin/
dltest isql iusql odbc_config odbcinst
# ls /usr/local/include
autotest.h odbcinstext.h odbcinst.h sqlext.h sql.h sqltypes.h sqlucode.h unixodbc_conf.h uodbc_extras.h uodbc_stats.h
# ls /usr/local/lib
libboundparam.la libgtrtst.la libodbccr.la libodbcinst.la libodbc.la
libboundparam.so libgtrtst.so libodbccr.so libodbcinst.so libodbc.so
libboundparam.so.1 libgtrtst.so.1 libodbccr.so.1 libodbcinst.so.1 libodbc.so.1
libboundparam.so.1.0.0 libgtrtst.so.1.0.0 libodbccr.so.1.0.0 libodbcinst.so.1.0.0 libodbc.so.1.0.0
# NLS_LANG=AMERICAN_AMERICA.UTF8; export NLS_LANG
# TNS_ADMIN=/root; export TNS_ADMIN
# ODBCINI=/etc/odbc.ini; export ODBCINI
7)Retest sqlplus to Redhad1(Oracle database server) with local tnsname
# sqlplus vonphoto/vonphoto@lab2
SQL*Plus: Release 10.2.0.4.0 - Production on Sat Mar 27 03:20:55 2010
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
8) Edit odbc.ini and odbcinst.ini
---odbcinst.ini
# Included in the unixODBC package
[Oracle 10g ODBC driver]
Description = Oracle ODBC driver for Oracle 10g
Driver = /usr/lib/oracle/10.2.0.4/client/lib/libsqora.so.10.1
Setup =
FileUsage =
CPTimeout =
CPReuse =
---odbc.ini
[ora_dns]
Driver = Oracle 10g ODBC driver
DSN = ora_dns
ServerName = xxx.xxx.xxx.121
UserID = vonphoto
Application Attributes = T
Attributes = W
BatchAutocommitMode = IfAllSuccessful
BindAsFLOAT = F
CloseCursor = F
DisableDPM = F
DisableMTS = T
EXECSchemaOpt =
EXECSyntax = T
Failover = T
FailoverDelay = 10
FailoverRetryCount = 10
FetchBufferSize = 64000
ForceWCHAR = F
Lobs = T
Longs = T
MetadataIdDefault = F
QueryTimeout = T
ResultSets = T
SQLGetData extensions = F
Translation DLL =
Translation Option = 0
DisableRULEHint = T
TraceFile = /backup/sql.log
Trace = Yes
9)Testing the driver and the data source
# odbcinst -q -d
[Oracle 10g ODBC driver]
# odbcinst -q -s
[ora_dns]
10) Test connection via ODBC from Redhat2(xxx.xxx.xxx.123) to Redhat1(xxx.xxx.xxx.121)
# isql -v ora_dns
isql: error while loading shared libraries: libreadline.so.3: cannot open shared object file: No such file or directory
I have spent 4 days to search on the internet. But it still error.
Pls help me.Apologies - thought it was a database to database connection that you were trying to create.
isql: error while loading shared libraries: libreadline.so.3: cannot open shared object file: No such file or directoryThe readline library is in package readline-4.3-13 on RHEL4 and in readline-5.1-1.1 for RHEL5 on my servers (minor version number are of course dependent on the kernel version used).
This is also not an ODBC or Oracle issue. It seems that isql is using rlwrap or similar - this requires the readline library. And possibly LD_LIBRARY_PATH to be set too. -
Oracle instant Client and unixODBC for Linux not work
Hi experts,
I have two Redhat EL 5. On the first Rehat(xxx.xxx.xxx.121 --> called Redhat1) I have installed Oracle 10g database server. On the second Redhat(xxx.xxx.xxx.123 --> called Redhat2) I want to connect to Oracle database server on xxx.xxx.xxx.121 via ODBC. But it does not work. Pls help me!
I have done steps as following:
Login to Redhat2 as root and type commands:
1)Install Instant Client + sqlplus
# rpm -ivh oracle-instantclient-basic-10.2.0.4-1.i386.rpm
# rpm -ivh oracle-instantclient-sqlplus-10.2.0.4-1.i386.rpm
2)Setting environment variable
# LD_LIBRARY_PATH=/usr/lib/oracle/10.2.0.4/client/lib:${LD_LIBRARY_PATH}; export LD_LIBRARY_PATH
# SQLPATH=/usr/lib/oracle/10.2.0.4/client/lib:${SQLPATH}; export SQLPATH
3)Testing connection to Redhat1(Oracle DB server) using sqlplus
# sqlplus abc/[email protected]:1521/lab2
Connected.
5)Begin to install unixODBC
# rpm -ivh oracle-instantclient-odbc-10.2.0.4-1.i386.rpm
# rpm -ivh unixODBC-2.2.11-7.1.i386.rpm
# rpm -ivh unixODBC-devel-2.2.11-7.1.i386.rpm
# rpm -ivh unixODBC-kde-2.2.11-7.1.i386.rpm
6)After installation above packages I check for existing of odbc.ini and odbcinst.ini in /etc --> ok
# ls /etc | grep odbc
odbc.ini
odbcinst.ini
7) Tar unixODBC-2.2.14-linux-x86-32.tar.gz and copy file to /usr/local/bin, /usr/local/include, /usr/local/lib
# tar -xzf unixODBC-2.2.14-linux-x86-32.tar.gz
# ls /usr/local/bin/
dltest isql iusql odbc_config odbcinst
# ls /usr/local/include
autotest.h odbcinstext.h odbcinst.h sqlext.h sql.h sqltypes.h sqlucode.h unixodbc_conf.h uodbc_extras.h uodbc_stats.h
# ls /usr/local/lib
libboundparam.la libgtrtst.la libodbccr.la libodbcinst.la libodbc.la
libboundparam.so libgtrtst.so libodbccr.so libodbcinst.so libodbc.so
libboundparam.so.1 libgtrtst.so.1 libodbccr.so.1 libodbcinst.so.1 libodbc.so.1
libboundparam.so.1.0.0 libgtrtst.so.1.0.0 libodbccr.so.1.0.0 libodbcinst.so.1.0.0 libodbc.so.1.0.0
# NLS_LANG=AMERICAN_AMERICA.UTF8; export NLS_LANG
# TNS_ADMIN=/root; export TNS_ADMIN
# ODBCINI=/etc/odbc.ini; export ODBCINI
7)Retest sqlplus to Redhad1(Oracle database server) with local tnsname
# sqlplus vonphoto/vonphoto@lab2
SQL*Plus: Release 10.2.0.4.0 - Production on Sat Mar 27 03:20:55 2010
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
8) Edit odbc.ini and odbcinst.ini
---odbcinst.ini
# Included in the unixODBC package
[Oracle 10g ODBC driver]
Description = Oracle ODBC driver for Oracle 10g
Driver = /usr/lib/oracle/10.2.0.4/client/lib/libsqora.so.10.1
Setup =
FileUsage =
CPTimeout =
CPReuse =
---odbc.ini
[ora_dns]
Driver = Oracle 10g ODBC driver
DSN = ora_dns
ServerName = xxx.xxx.xxx.121
UserID = vonphoto
Application Attributes = T
Attributes = W
BatchAutocommitMode = IfAllSuccessful
BindAsFLOAT = F
CloseCursor = F
DisableDPM = F
DisableMTS = T
EXECSchemaOpt =
EXECSyntax = T
Failover = T
FailoverDelay = 10
FailoverRetryCount = 10
FetchBufferSize = 64000
ForceWCHAR = F
Lobs = T
Longs = T
MetadataIdDefault = F
QueryTimeout = T
ResultSets = T
SQLGetData extensions = F
Translation DLL =
Translation Option = 0
DisableRULEHint = T
TraceFile = /backup/sql.log
Trace = Yes
9)Testing the driver and the data source
# odbcinst -q -d
[Oracle 10g ODBC driver]
# odbcinst -q -s
[ora_dns]
10) Test connection via ODBC from Redhat2(xxx.xxx.xxx.123) to Redhat1(xxx.xxx.xxx.121)
# isql -v ora_dns
isql: error while loading shared libraries: libreadline.so.3: cannot open shared object file: No such file or directory
I have spent 4 days to search on the internet. But it still error.
Pls help me.I don't understand your step 7 (the first step 7, actually).
What is that unixODBC-2.2.14-linux-x86-32.tar.gz, where did it come from, and why are you doing all that?
unixODBC should be installed after step 5.
I guess that that is the cause of your problem.
isql is not linked against readline at all on my RHEL 5 system.
Do you notice any improvement after removing the files from that tar.bz file?
Yours,
Laurenz Albe -
Exp/Imp In Oracle 10g client
Hi All,
I want to take one schema export from Oracle 10g Client. I am in new Oracle 10g.
In oracle 9i, we can using exp/imp command for Export and Import from Client itself.
I heard about in Oracle 10g, we can use Expdb/Impdb in Server only. Is there any possibility to take exp/imp in Client also.
Pls help me...
Cheers,
Moorthy.GSTo add up to expdb from oracle client
NETWORK_LINK
Default: none
Purpose
Enables an export from a (source) database identified by a valid database link. The data from the source database instance is written to a dump file set on the connected database instance.
Syntax and Description
NETWORK_LINK=source_database_link
The NETWORK_LINK parameter initiates an export using a database link. This means that the system to which the expdp client is connected contacts the source database referenced by the source_database_link, retrieves data from it, and writes the data to a dump file set back on the connected system.
The source_database_link provided must be the name of a database link to an available database. If the database on that instance does not already have a database link, you or your DBA must create one. For more information about the CREATE DATABASE LINK statement, see Oracle Database SQL Reference.
If the source database is read-only, then the user on the source database must have a locally managed tablespace assigned as the default temporary tablespace. Otherwise, the job will fail. For further details about this, see the information about creating locally managed temporary tablespaces in the Oracle Database Administrator's Guide.
Restrictions
When the NETWORK_LINK parameter is used in conjunction with the TABLES parameter, only whole tables can be exported (not partitions of tables).
The only types of database links supported by Data Pump Export are: public, fixed-user, and connected-user. Current-user database links are not supported.
Example
The following is an example of using the NETWORK_LINK parameter. The source_database_link would be replaced with the name of a valid database link that must already exist.
expdp hr/hr DIRECTORY=dpump_dir1 NETWORK_LINK=source_database_linkDUMPFILE=network_export.dmp LOGFILE=network_export.log
Maybe you are looking for
-
Absolutely turn off integrated 9400m graphics chip
Hi, Is it possible to turn off 9400m GT graphics in the new Pros? I'm looking forward to buy the one, but not sure if its good then my old one with 8600m gt 512mb. I have looked at loots of benchmarks, etc. So no need to post them here Why I'm asking
-
Apple TV and selecting iPhoto albums
I have multiple separate photo albums in iPhoto. Only two show up on the apple tv. What do I need to do to be able to select additional albums from iPhoto to play on Apple TV. Thanks
-
The hard drive icon that is displayed in the top right corner of my computer has always displayed Macintosh HD underneath it. However, today when I came home and sat down at my computer it now displays \\b\b\\ underneath it. Anyone know the reason wh
-
User-Specific Check-box is greyed out in the SAVE LAYOUT popup screen
Hi Experts, I have created a custom program and used the ALV grid. In the ALV grid I have included the Layout options menu. (Choose, Select, Save, Manage). When i try to save the layout, I cannot make it User-Specific. The User-Specific Check box is
-
Elements 10 and Fujifilm X100s raw files.
Hi! How can I make Elements 10 to open my Fujifilm X100s raw files?