XMLType inputstream on OCI client
Hi all, I have a problem using XMLType.createXML in java to create a XMLType to use as parameter in a stored procedure using OCI client (it works with thin client).
my environment (sorry if I missed something!):
Oracle db 11.1 on server, Java 1.6 and OCI client 11.1 on Windows on client.
In my Eclipse project I included the following jars:
\jdbc\lib\ojdbc6.jar
\jlib\orai18n.jar
\RDBMS\jlib\xdb.jar
\LIB\xmlparserv2.jar
the java code snippet for calling the stored procedure using the input stream:
public String putgetXMLInputStream(File testFile) throws SQLException, FileNotFoundException, UnsupportedEncodingException
// create the input stream from the file containing XML
InputStream br = new BufferedInputStream(new FileInputStream(testFile));
// this statement was tested with no value for "kind" parameter and with these two value too
// "oracle.xml.parser.XMLDocument.THICK"
// "oracle.xml.parser.XMLDocument.THIN"
XMLType xmlDoc = XMLType.createXML(connection, br);
// set the statement
CallableStatement cs;
cs = connection.prepareCall("{?=call MYPACKAGE.TESTUPLOAD(?)}");
cs.registerOutParameter(1, OracleTypes.VARCHAR);
cs.setObject(2, xmlDoc);
// execute the statement
cs.execute();
// return the string
return cs.getString(1);
same code with string:
public String putgetXMLString(File testFile) throws SQLException, FileNotFoundException, UnsupportedEncodingException, IOException
StringBuilder contents = new StringBuilder();
try {
//use buffering, reading one line at a time
//FileReader always assumes default encoding is OK!
BufferedReader input = new BufferedReader(new FileReader(aFile));
try {
String line = null; //not declared within while loop
* readLine is a bit quirky :
* it returns the content of a line MINUS the newline.
* it returns null only for the END of the stream.
* it returns an empty String if two newlines appear in a row.
while (( line = input.readLine()) != null){
contents.append(line);
contents.append(System.getProperty("line.separator"));
} finally {
input.close();
XMLType xmlDoc = XMLType.createXML(connection, contents.toString());
// set the statement
CallableStatement cs;
cs = connection.prepareCall("{?=call MYPACKAGE.TESTUPLOAD(?)}");
cs.registerOutParameter(1, OracleTypes.VARCHAR);
cs.setObject(2, xmlDoc);
// execute the statement
cs.execute();
// return the string
return cs.getString(1);
the java code snippet for establish the database connection (I know that with java 1.6 the registerDriver is not
required, I both tested with and without driver registering and it works in the same way):
// connection string: comment as required
// connection string for thin client
// String connectionString = "jdbc:oracle:thin:@mydbserver:1521:mydb";
// connection string for oci
String connectionString = "jdbc:oracle:oci8:@mydbserver:1521:mydb";
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Connection conn =DriverManager.getConnection( connectionString, "john", "tiger");
DatabaseMetaData meta = conn.getMetaData();
System.out.println("Driver JDBC: " + meta.getDriverVersion());
The PL/SQL called by java:
FUNCTION TESTUPLOAD (pDoc IN XMLTYPE) RETURN VARCHAR2 IS
msgout VARCHAR2(24000);
doc DBMS_XMLDOM.DOMDocument;
rootnode DBMS_XMLDOM.DOMNode;
fchild DBMS_XMLDOM.DOMNode;
attr1 VARCHAR2(20);
ns VARCHAR2(200);
BEGIN
ns := 'xmlns="http://www.myweb.it/static/xml/def/0.6/ns1.html" xmlns:si="http://www.myweb.it/static/xml/def/0.6/si.html"';
doc := DBMS_XMLDOM.newDOMDocument(pDoc);
rootnode := dbms_xmldom.makeNode(doc);
fchild := DBMS_XMLDOM.GETFIRSTCHILD(rootnode);
-- dom text
DBMS_XMLDOM.WRITETOBUFFER(rootnode, msgout);
-- attribute value
dbms_xslprocessor.valueOf(rootnode,'/DOC/@TYPENO',attr1, ns );
-- node name of rootnode first child
return '(' || attr2 || ' - ' || DBMS_XMLDOM.GETNODENAME(fchild) || ') ' || msgout;
END TESTUPLOAD;
Thus, the expected result is a returned varchar2 containing the value of the attribute as per XPath, the name of first child node
and the whole text of dom.
This work as expected connecting via OCI and Thin client if I create the XML starting from a string, and only with Thin client if
I adopt the input stream approach. If I use the input stream with OCI client, no error message is displayed, and no value are provided
for attribute or fchild name, but the dom text is returned.
I made test with different charset encoding for the original file (UTF-8, ISO-8859-1, with endofline in windows and linux style).
What I noticed is that in case of string and input stream with Thin client some kind of parsing occours: the returned text show some
special characters (i.e. double quote) replaced by html entity and the charset encoding in <?xml tag replaced with ISO-8859-1, more over
the returned xml is well indented.
I'm sure that I'm missing something :-)
Any hints?
TIA
GB
Edited by: user12844059 on 7-mag-2010 6.54
visit the javasoft.com (sun site) for tutorials and training on all of the technologies you mentioned.
after understanding them, then review the oracle java roadmap found on technet.oracle.com --> technologies --> java to get an oracle perspective.
then ask the oracle technology specific questions you have.
Similar Messages
-
JVM Crash With Oracle OCI Client
Hi
My app is running on Windows 7 64 bit, Jboss 4.2, launched from Eclipse, and runs fine when I use the Oracle thin client (10g, 32bit). However when I try to use the OCI client, I get this:
# A fatal error has been detected by the Java Runtime Environment:
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d906f21, pid=4740, tid=5656
# JRE version: 6.0_21-b07
# Java VM: Java HotSpot(TM) Client VM (17.0-b17 interpreted mode windows-x86 )
# Problematic frame:
# V [jvm.dll+0x106f21]
I'll post the contents of the log in another message because it's too long to fit here. Using the thin client is NOT an option unfortunately as the thin driver is missing some functionality that we need to use.
I've installed the Oracle client in a folder that doesn't contain spaces, or parentheses (c:\oracle\.....) and the JDK is installed in a similar directory (c:\java\...)
I've tried both 32bit and 64 bit versions of JDK1.6 and the Oracle 10g client. I have also tried mixed mode and interpreted mode JVM (Xint) with the same results.
ojdbc14.jar is in my JBoss server's lib directory, and ocijdbc10.dll is in my path (c:\windows\system32).
Anyone any ideas what's going wrong? Been trying to fix this for days now. Appreciate any help.
RichardSorted it (well, my colleague did anyway). We installed a fresh version (32 bit) JDK (6u21), the Oracle 10g (10.0.3) client (32 bit) and made sure that there were no other OCI DLLs anywhere. I had some in the JBoss bin directory which I had copied in earlier that morning and forgotten about. So, the only OCI DLLs I have now are in Oracle's installation directory. Once we removed those erroneous DLLs from the JBoss directory, the server made the connection successfully. I don't full understand why, because I was getting the error earlier without the erroneous DLLs being present too, so I think there was some additional interaction going on somewhere. One other thing that may have been important is the tnsnames.ora file I had. We found a post that said the tnsnames file generated by the installer, when it only has one entry in it, can include dodgy whitespace at the end which can cause problems. So, just to be on the safe side we added a second entry (to another DB) - maybe that was something to do with it.
So, the Oracle 10g client and OCI driver DOES work on Windows 7 64 bit (at least for me anyway) -
Oracle 8.1.5 oci client to oracle 9i database
Is is supported to use an Oracle 8.1.5 oci client to oracle 9i
database? If not, will it work?Ok,
so You can follow the migration path that I've indicated before:
"To do that, the simplest way., is to install 10g r2 software on the Win 2003 machine. Create the DB and create the same accounts of the 8i version.
On the 8i version, export all the schemas using "exp" utility, w/o using the DIRECT option.
Copy the generated dump files onto the Win 2003 machine and import them using th "imp" utility,
Analyze all the objects and that the migration is complete.
You shouldn't find any problem porting structures and code from 8i to 10g R2
No matters will occours, cause imp utility of 10g is backward compatible with 8i exp files
Hop this helps
Max -
Does OCI client result cache and oracle UCP work together?
I'm using Oracle 11.2.1.0. I've set up FCF and enabled OCI result cache on server side, so on client side, I'm using UCP for failover.
this is my datasource configuration:
<Resource name="jdbc/MyPool"
auth="Container"
factory="oracle.ucp.jdbc.PoolDataSourceImpl"
type="oracle.ucp.jdbc.PoolDataSource"
connectionFactoryClassName="oracle.jdbc.pool.OracleDataSource"
url="jdbc:oracle:oci:@dbhost:1521/myDb"
user="db_user"
password="db_password"
fastConnectionFailoverEnabled="true"
onsConfiguration=""
connectionPoolName="dbPool"
initialPoolSize="5"
minPoolSize="5"
maxPoolSize="25"
connectionWaitTimeout="10000"
inactiveConnectionTimeout="120000"
abandonConnectionTimeout="60"
validateConnectionOnBorrow="true"
sqlForValidateConnection="select user from dual"
maxStatements="30"/>
I've enabled OCI client result cache.
I use /*+ result_cache */ in my query to take advantage of the result cache.
so I execute the following scenario:
i) select /*+ result_cache */ value from myTable where id=1; (this returns a result.)
ii) update myTable to set a different value for id=1 record;
iii) run select query again; (this should return a different result. oci result cache gets updated when table changes.)
if I take out
"sqlForValidateConnection" and/or "validateConnectionOnBorrow" (i.e. disable sql validation on borrow), the 2nd query after table update doesn't show the latest result. it's still showing the old query result.
is this a bug? that UCP validation on borrow has an impact on OCI result cache function? this doesn't happen if using dbcp java connection pooling with OCI result cache.it turns out I ran the test against an oracle server that doesnt have FCF configured, nor ONS.
once i switched to a correct oracle cluster, my test passed. -
Memory leak using 10.2.0.3 OCI client on Solaris
Hi,
We are using OCI client libraries to connect our C++ program to the Oracle Database. The program does a lot of selects, inserts and SP calls.
Oracle client and Oracle server both are 10.2.0.3.
We have been observing a memory leak of 4M bytes in the C++ program every few minutes since last few days. On debugging through Purify, libumem, and Sun Studio 12, we finally managed to narrow down the problem to the Oracle client library OCI calls.
The Sun Studio leak check shows the following -
Leak #37, Instances = 157, Bytes Leaked = 655004
kpummapg + 0x00000098
kghgex + 0x00000648
kghfnd + 0x000005BC
kghalo + 0x00000A6C
kghgex + 0x000003BC
kghfnd + 0x000005BC
kghalo + 0x00000A6C
kghgex + 0x000003BC
kghfnd + 0x000005BC
kghalo + 0x00000A6C
kpuhhalo + 0x00000558
kpugdesc + 0x00000AD4
kpugparm + 0x00000374
COCIResultSet::InterpretData() + 0x000001B4
COCIResultSet::COCIResultSet(COCIStatement*,OCIStmt*,OCIError*) + 0x000000A4
COCIStatement::PrepareResult() + 0x00000190
A select is executed, a resultset is fetched and the resultset is immeidately closed. The same piece of code has been running at various production systems without any problems. Most of the other sites are either 10.2.0.4 or 9i.
On searching Metalink and various other forums, I found similar issues faced in 10.2.0.1.
Could someone advise if there are any bugs corresponding to this which have been closed. Would upgrading to 10.2.0.4 solve the problem?
Thanks.Hi,
Apparently a similar issue is being discussed over here:
Re: Memory Leak
Hope it helps.
Regards,
Naveed. -
How to supply wallet location to OCI client for SSL connection other than sqlnet.ora
I have a oracle 11g database server and I am connecting to it through OCI client in OBIEE Admin tool. This is working fine, but now the requirement is we need to connect to an SSL enabled database.
For this I had to update the sqlnet.ora under $ORACLE_HOME/network/admin in OBIEE installation and specify the wallet location where I placed the wallet containing appropriate certificates.
The above is working fine for me. But due to certain restrictions, we cannot create this sqlnet.ora. Is there a way we can pass this wallet location through some environment variables so that sqlnet.ora is not required?
If we create a jdbc connection, we can specify the wallet location through jdbc connection properties. Is there any such equivalent for OCI based connection. I dont mind how we make the wallet location available to OCI client, so long as I dont have to create a sqlnet.ora.
Any pointers is greatly appreciatedHi,
sqlnet.ora file is required if you want to set the wallet location to another directory by using the WALLET_LOCATION parameter.
If you do not want to use sqlnet.ora then you need to use the default wallet location.
The wallet is placed, by default, in $ORACLE_BASE/admin/<global_db_name>/wallet.
If this directory does not exist or ORACLE_BASE is not set, the default location is: $ORACLE_HOME/admin/<global_db_name>/wallet
Regards,
Ravi -
Hi,
I have an server in which we use Tomcat as application server and apache as web server. and also we use Oracle instant client in the same server as an OCI client. We use instant client for connection pooling.
And very frequently we are getting the below mentioned error. We suspect that this error is due to Oracle instant client.
The version of Oracle Instant client is 10.2.0.4-1 and Hardware RAM capacity is 4 GB and we have allocated 1280 MB RAM for Tomcat application.
ERROR_
kgefec: fatal error 0
OCI-21503: program terminated by fatal error
OCI-04030: out of process memory when trying to allocate 1036 bytes (koh dur heap d,kadaih image)
Errors in file :
OCI-21503: program terminated by fatal error
OCI-04030: out of process memory when trying to allocate 1036 bytes (koh dur heap d,kadaih image)
java.sql.SQLException: OCI-21503: program terminated by fatal error
OCI-04030: out of process memory when trying to allocate 1036 bytes (koh dur heap d,kadaih image)
Please suggest us with a better solution for this issue.
Regards,
Potri Raaja.M.That error means that Oracle is not allowed to allocate the memory by the operating system.
This is not a bug of Oracle; the problem must be somewhere else.
- How much memory has the process allocated when it produces this error?
- Did you set the per-process memory limits of the operating system high enough?
- Did you start the Java Virtual Machine with a sufficient maximal stack size?
If the problem only occurs after a longer runtime, you might also consider the
possibility that your code has a memory leak.
Yours,
Laurenz Albe -
Oracle 10g OCI Client Certification
we are in process of 10g RAC Certification and Customer Aksed
Would it be correct to assume that the Oracle RAC 10g Certification will include the 10g OCI client certification? I believe this will be necessary for an application to connect to the cluster.
Can any one help to answer this?as far as I know, clients connect to rac db the same way they did against a single instance
-
OCI client notification without a AQ queue
Hi Forum,
Well, put it in the simplest manner, I want to run a perl script when a Insert trigger occurs.
And I was wondering if it is possible that a OCI client be notified, when a trigger occurs, without using a AQ queue ?
I ask that because in Oracle Manuals we can find this:
An OCI application can:
* register interest in notifications in the AQ namespace and be notified when an enqueue occurs.
* register interest in subscriptions to database events and receive notifications when the events are triggered.
* manage registrations, such as disabling registrations temporarily or dropping the registrations entirely.
* post, or send, notifications to registered clients.
Hoping to hear from you soon, forum.
Pedro Campos Galvão
Edited by: user639404 on 20/Nov/2008 16:01yes, you can.
follow the oracle documentation:
Oracle Call Interface Programmer's Guide -
9. OCI Programming Advanced Topics :: Database Change Notification. -
we are in process of 10g RAC Certification and Customer Aksed
Would it be correct to assume that the Oracle RAC 10g Certification will include the 10g OCI client certification? I believe this will be necessary for an application to connect to the cluster.
Can any one help to answer this? and how we can do 10g OCI client certification?I'm not sure what you're asking...
Assuming you need to have the 10g client installed on the middle tier (if your middle tier is a J2EE application server, those folks will probably want to use Oracle's Type 4 (thin) JDBC drivers, which don't require the 10g client), yes, you can install just the 10g client. Depending on the operating system, there may be a separate client-only download or you may have to download the entire database and choose to do a client-only install.
Justin -
Configuring oracle OCI client for RAC 10.2.0.1
hi,
can any one give the links for doc for
configuraing oracle OCI client for RAC
regards
krishnaDownload from below:
http://www.oracle.com/technology/tech/dotnet/ode/index.html
Refer:
Note:374820.1 - How to Install the Oracle Database Extensions for .NET (ODE.NET) from metalink. -
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 -
Tomcat on Linux with10g using OCI Client UnsatisfiedLinkError: no ocijdbc10
I'm having some issues configuring Tomcat with a 10g JDBC driver under Linux using the OCI thick client. When I attempt to get a database connection I get the following:
java.lang.UnsatisfiedLinkError: no ocijdbc10 in java.library.path
java.lang.ClassLoader.loadLibrary(Unknown Source)
java.lang.Runtime.loadLibrary0(Unknown Source)
java.lang.System.loadLibrary(Unknown Source)
oracle.jdbc.driver.T2CConnection.loadNativeLibrary(T2CConnection.java:2854)
oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:221)
oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:343)
oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:135)
oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:78)
oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:545)
org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:107)
org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)
org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:446)
org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:512)
org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:543)
org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:564)
org.springframework.jdbc.object.SqlQuery.execute(SqlQuery.java:114)
org.springframework.jdbc.object.SqlQuery.execute(SqlQuery.java:201)
Now I've seen other instances of the above and they basically come down to making sure that the ojdbc14.jar file is in my classpath, and I thought I had that covered.
Here's everything I've done:
added ojdbc14.jar to $TOMCAT_HOME/common/endorsed
added ojdbc14.jar to $TOMCAT_HOME/common/lib
verified that ORACLE_HOME is defined: /app/oracle/product/10.1.0/client_1
verified that LD_LIBRARY_PATH is defined: /app/oracle/product/10.1.0/client_1/lib
added the following to the java commandline for Tomcat:
-Djava.library.path="$ORACLE_HOME"
the above -Djava.library.path didn't work so made the following change (which still didn't work)
-Djava.library.path="$ORACLE_HOME"/lib
my PATH variable includes both $ORACLE_HOME and $ORACLE_HOME/lib
echo $PATH:
/app/oracle/product/10.1.0/client_1:/app/oracle/product/10.1.0/client_1/lib
I have no idea what else I am missing or if my Oracle client installation is just hosed.
Any assistance would be appreciated.Use the thin driver.
no ocijdbc10 in java.library.path -
How to configure Connection pooling in 10g AS for OCI client
Oracle Version: 10.1.3.1
Operating System: HP UX B.11.23 64 bit OS
Hello everyone,
In my connection pools setting of 10g Application server Control my application currently uses JDBC thin client. I need to move to OCI driver. My application uses JDBC 3.0
Can someone please help me out with the steps?
Thanks & Regards,
Prashanthttp://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html
-
64-bit OCI client (either 9i release 2 or 10g) questions
If we limit the size of our data types during bindings, will a 64-bit client using 64-bit OCI be compatible with a 32-bit database instance?
Also, will 64-bit OCI be able to run on a non-Itanium x86 platform?
Thanks,
KyleThe reason for the second question is because:
1.) I really dont want an itanium processor (and neither do my customers)
and
2.) the oracle 9i release 2 documentation:
Table 1 System Requirements
Component
Requirement
Processor
Itanium 2 or higher
Operating System
Oracle9i for Windows is supported on the following operating systems:
Windows Server 2003 Datacenter Edition for 64-bit Itanium 2 Systems
Windows Server 2003 Enterprise Edition for 64-bit Itanium 2 Systems
Windows XP 64-bit Edition Version 2003
The reason for my confusion is that 'Windows XP 64-bit Edition Version 2003' is an x86 64-bit OS.
Maybe you are looking for
-
Custom field in General data of Travel request
Hi All, I need to add a custom field in the General data section of the travel request screen.The requirement is such that if user creates an expense report corresponding to that travel request then the same field with the value should appear.Can any
-
What's going on with iTunes? No screenshots on apps.
Recently upgraded to current version of iTunes. Now when I am looking at descriptions on apps, I don't see the screen shots? Anybody else experiencing this?
-
Multiline Processing and Agent Assignment
I have a multiline container element that I am using in a subflow. I want the subflow to execute for each line in the multiline container. The objects in the multiline element are, in fact, the agent ids. I am not sure of how to identify a single e
-
Unable to install 1.6.0_17 JRE in Linux FC12
Hi, I am having Linux FC(Fedora) 12 - 64 bit system. I am trying to install JRE 1.6.0_17, and get the following error when trying to install ( jre-6u17-linux-x64.bin). Do you agree to the above license terms? [yes or no] yes Unpacking... Checksumming
-
My MTM version is not allowing Data Driven Test Case UI to be created???
From in MTM I am able to use the UI Builder to create (R&P) a test case (standard login case) but when I then try to use the same process to create a Data Driven test case for login the screens to allow that feature are not showing up. I am using th