Oracle Instant Client and OUT Parameter of custom type in Stored Procedures
Hi @ all!
I try to set up a simple client application, that calls a stored procedure via Instant Client from C#.
The stored procedure and assiciated types looks like this:
TYPE MYVALUE AS OBJECT
Id INTEGER,
value FLOAT
TYPE MYVALUELIST AS TABLE OF MYVALUE;
PROCEDURE ReadValues( ID IN INTEGER,
RESULTSET OUT MYVALUELIST)
IS
...I created an Oracle Command executing this SP and added OracleParameters for ID and (where I got stuck) the RESULTSET.
Is it possible to pass a parameter with a custom type from C# in some way?
I already tried it as a function with SELECT * FROM TABLE(ReadValues(1));
With my parameter RESULTSET as the RETURN type. But since I use DML within the procedure, this does not work inside of a query...
Any suggestions?
Thanks in advance!
Hi Greg!
Sorry, I misunderstood the forum topic then. =(
Anyway, in the example you provided in the link, this is nearly exactly my situation. But there the Oracle.DataAccess.Client is used, where the OracleDBType can be called to initialize an object of type person. I use the instant client libraries called by using System.Data.OracleClient. There is only the OracleType enum, that does not contain an object or something similar.
So I do it right now after trying a bit with a ref cursor parameter and an OracleDataAdapter - the ref cursor is passed back from Oracle as a DataReader, so die DataAdapter is able to use it for a .Fill():
OracleCommand cmd = new OracleCommand();
cmd.Parameters.Add("RESULTSET", OracleType.Cursor).Direction = ParameterDirection.Output;
OracleDataAdapter odr = new OracleDataAdapter(cmd);
DataTable result = new DataTable();
odr.Fill(result);Within my stored procedure I just added the following OUT parameter:
PROCEDURE ReadValues( ID IN INTEGER,
RESULTSET OUT sys_refcursor)
IS
currentlist MYVALUELIST;
... [Adding elements to that list] ...
OPEN resultset for select * from TABLE(currentlist);It works now, but I don't like that solution that much since I'm always afraid that there are lots of opened cursors idyling around. Do I have to close this one explicitly after filling my table by the DataAdapter?
Regards
Similar Messages
-
Oracle instant Client and memory
Hello everybody,
I have just installed the Oracle Instant Client on my Linux server (Redhat distibution), I recompiled PHP (4.4.2 version) with the oci8 extensions and I reboot Apache (1.3.34 version)...
In short, the installation of OIC goes perfectly (No error messages...), and I can request a remote Oracle server from a PHP file. (All this, for one PHP script that I use only once a day, to load data in a MySQL table).
However, since I installed the OIC, my Apache processes exceeds the 200 MB and my server has a commit memory more than 2GB (sometimes it goes until 5GB).
Is it a problem that can come from the OIC ? Maybe, a parameter could fix that problem ?
Thx in advance.
MaatIf you can't upgrade from PHP4, you should upgrade at least the OCI8
extension. All PHP 4 releases have a very, very old version of OCI8.
Steps to upgrade are given in the free Underground PHP and Oracle Manual
The Instant Client Basic package uses a chunk of (shareable) memory
for all its NLS data. The Instant Client Lite package uses a smaller
footprint.
Make sure you know what you are measuring and whether what you are
seeing actually has an effect on performance.
-- cj -
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 -
How to register OUT param to RECORD type for STORED PROCEDURE???
hi
i have a SP like this
CREATE OR REPLACE PACKAGE P1 AS
TYPE g_con_ref_cursor is REF CURSOR ;
TYPE g_con_error IS RECORD
error_code NUMBER,
error_desc varchar2(2000)
PROCEDURE PROC_CURSOR
(i_str_userid IN VARCHAR2,
o_cur_ref_cur OUT g_con_ref_cursor,
o_rec_error OUT g_con_error,
o_num_status OUT NUMBER);
END;and now i am trying to call this SP using my java program
i am able to register the out put params for 2nd and 4 th variable
my doubt is how i can register the output param for 3rd (g_con_error) which is of record type
and how i can get result from this ????
my java program is like this
Connection connection = DatabaseHelper.prepareConnection();
CallableStatement proc = connection.prepareCall("{ call P1.PROC_CURSOR(?, ?, ?, ?) }");
proc.setString(1,"jn26557");
proc.registerOutParameter(2,oracle.jdbc.driver.OracleTypes.CURSOR);
proc.registerOutParameter(3,???,????); //HOW TO SET THIS ?????
proc.registerOutParameter(4,oracle.jdbc.driver.OracleTypes.NUMERIC);
proc.execute();plz help me in this
i have no idea how to do it
any help would be appreciated
Thanks in advance
Jaya Prakash NalajalaYou might give a try using:
proc.registerOutParameter(3, java.sql.Types.REF, "RECORD"); -
Request: enable use of sql*plus via Oracle Instant Client.
hi,
great project....
I've just installed Raptor release 3 on top of oracle instant client, and it seems to be running fine. my sql*plus from the instant client functions from the command line, but the sql*plus menu item in the tools menu is grayed out.
review of the help files say's that oracle_home must be set, but instant client does not need an oracle_home. (uses tns_admin instead).
is there a work around for this? (other than loading the full oracle client w/ it's sql*plus)
thanks
GTThe SQL*Plus menu item does not seem to be correctly detecting the current connection context. I'm filing this as a bug to be fixed before we ship. In the current version, however, you can enable the menu item by ensuring first that the connection is selected in the Connections navigator.
When the menu is invoked, you will be prompted for the location of the SQL*Plus executable. On Windows, this should just be the path to sqlplus.exe (or sqlplusw.exe). On Unix platforms, you should include 'xterm' or an equivalent in order to ensure that SQL*Plus invokes in a window.
- John
Raptor Development Team -
Solaris PHP 5.2.12 Oracle Instant Client Error
We are testing a Oracle Solaris Express 11 Server with the standard Apache and PHP installation. But we need the Oracle Instant client and the oci8 module enabled for our company applications.
We did this by using ./pecl install oci8 in /usr/php/5.2/bin. We set the LD_LIBRARY_PATH in /etc/apache2/2.2/envvars
a 32bits solaris (x86) version of the Oracle Instant Client 11.2 is installed in /opt/oracle/instantclient_11_2 with the symbolic link made.
envvars:
LD_LIBRARY_PATH=/opt/oracle/instantclient_11_2
ORACLE_HOME=/opt/oracle/instantclient_11_2
ORACLE_BASE=/opt/oracle/instantclient_11_2
he oci8 module installed and php loads it.
phpinfo(); output:
oci8
OCI8 Support enabled
Version 1.4.6
Revision $Revision: 313688 $
Active Persistent Connections 0
Active Connections 0
Oracle Run-time Client Library Version 11.2.0.2.0
Oracle Instant Client Version 11.2
Temporary Lob support enabled
When we first view a site there is no problem but very randomly we get the following error:
OCIEnvNlsCreate() failed. There is something wrong with your system - please check that LD_LIBRARY_PATH includes the directory with Oracle Instant Client libraries*
but when we use echo getenv("LD_LIBRARY_PATH"); in php the output is "/opt/oracle/instantclient_11_2"
now the strange this is as randomly as it appears it disappears we can load the web-page without problems and after a couple of clicks the error is back. if we wait a coupe of seconds you can reload the page and it loads normaly.
The error appears to be random and we get it over and over agian, it comes and goes after a cpl of pages are viewed. It seems to appear more when there are multiple users browsing on the website.
Is there a fix for this? is this an known bug? It seems strange the instant client works some times and fails a second later without a change in the system.
Hope someone can help us.
Edited by: user10978378 on Sep 3, 2011 4:20 AMSolved it by compiling apache 2.2.20 into 64bits using:
CFLAGS="-m64" CXXFLAGS="-m64" LDFLAGS="-m64" ./configure enable-so enable-cgi enable-info enable-rewrite enable-deflate enable-ssl
and compiling php 5.3.8 into 64bits:
CFLAGS="-m64" CXXFLAGS="-m64" LDFLAGS="-m64" ./configure with-apxs2=/usr/local/apache2/bin/apxs with-gd with-zlib disable-ipv6 with-jpeg-dir=/usr/ with-png-dir=/usr/ with-freetype-dir=/usr/ with-pear with-openssl with-oci8=instantclient,/opt/oracle/instantclient_10_2
and using the 10.2.0.4 instant client.
there might be a bug in the 11.x ones, they dont seem to work on Oracle Solaris 11. -
Hello
I have Oracle 10.1.0 enterprise database installed on a Windows 2003 server.
I have another machine that has Fedora Core 5 installed on it. I downloaded:
Apache 2.2.3
Php 5.1.6
OracleInstantClient 10.1.0.5 (base and skdk packages) from technet.oracle.com
I created a directory called /usr/lib/instantclient10_1 in which I unzipped
the files for the Oracle Instant Client and the SDK into /usr/lib/instantclient10_1.
So inside /usr/lib/instantclient10_1 I have:
all the unzipped filed from the base for the instant client as well as
a directory called sdk with files inside this subdirectory.
I compiled and installed Apache.
I then tried to configure php using the instantclient with the configure option
--with-oci8=instantclient/usr/lib/instantclient10_1
The first time I did this I got the error: "link from
/usr/lib/instantclient10_1/libclntsh.so to libclntsh.so.10
not found"
Well I had the libclntsh.so.10 but no such link. So I did the following:
ln -s libclntsh.so.10.1 libclntsh.so
I assume this was OK to do but I found it strange that I had to do this.
Question #1 - why should I have to do this?
I then tried to configure php again but got an error that I paste in from
the debug.log. From this debug log you can see the configure options I gave for
php as well as the error. It says "cannot find -lirc". Now I did put into
/etc/ld.so.conf the line /usr/lib/gaim since that is where libirc.so is and ran
ldconfig but it still complained. When I copied libirc.so into /usr/lib it then said there were
lots of errors in that libirc.so. The only item in the configure options depending on lirc is
the with-oci8. Why does with-oci8 depend on lirc?
I also tried the above on Red Hat AS 4.0 and got the same errors.
Question #2 -- what do I do?
Thank You
Gail Lange
Here is the debug.log in the case when libirc.so is just in /usr/lib/gaim:
CONFIGURE: './configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--enable-track-vars'
'--enable-inline-optimization' '--with-gd' '--with-zlib' '--enable-debug'
'--with-oci8=instantclient,/usr/lib/instantclient10_1' '--enable-sigchild'
CC: gcc
CFLAGS: -I/usr/include -g -O2
CPPFLAGS:
CXX:
CXXFLAGS:
INCLUDES: -I/usr/include/libxml2 -I/home/gail/php/php-5.1.6/ext/date/lib
-I/usr/lib/instantclient10_1/sdk/include
LDFLAGS: -L/usr/lib -Wl,-rpath,/usr/lib/instantclient10_1 -L/usr/lib/instantclient10_1
LIBS: -lpng -lz -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm -ldl -lm -lnsl
-lirc -lclntsh -lxml2 -lz -lm
DLIBS:
SAPI: apache2handler
PHP_RPATHS: /usr/lib/instantclient10_1
uname -a: Linux localhost.localdomain 2.6.15-1.2054_FC5smp #1 SMP Tue Mar 14 16:05:46 EST 2006
i686 i686 i386 GNU/Linux
gcc -o conftest -I/usr/include -g -O2 -L/usr/lib -Wl,-rpath,/usr/lib/instantclient10_1
-L/usr/lib/instantclient10_1 conftest.c -lpng -lz -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm
-lxml2 -lz -lm -ldl -lm -lnsl -lirc -lclntsh -lxml2 -lz -lm 1>&5
conftest.c: In function 'main':
conftest.c:3: warning: incompatible implicit declaration of built-in function 'exit'
/usr/bin/ld: cannot find -lirc
collect2: ld returned 1 exit status
ThanksTo be perfectly honest, I'm not sure. Everything I could find on it had to do with IRC or some kind of remote control thing (for controlling audio/media players). Maybe if Ivan stops by he'll know what it means... he knows quite a lot about the inner workings of many of these libraries.
http://us3.php.net/install.unix was the most useful info I could find.
There's also this thread:
Cannot find ld -lirc PHP Linux
~Jer -
Oracle API - Standard IN and OUT parameter
Hi,
I need to use the standard Oracle API to load bulk data into required table in Oracle HRMS. However, I am confuse on the IN and OUT parameter. For example the below standard Oracle API:
procedure Create_category
(p_validate in boolean default false
,p_effective_date in date
,p_business_group_id in number
,p_category in varchar2
,p_type in varchar2
,p_description in varchar2
,p_parent_cat_usage_id in number
,p_synchronous_flag in varchar2
,p_online_flag in varchar2 default null
,p_attribute_category in varchar2 default null
,p_attribute1 in varchar2 default null
,p_attribute2 in varchar2 default null
,p_attribute3 in varchar2 default null
,p_attribute4 in varchar2 default null
,p_attribute5 in varchar2 default null
,p_attribute6 in varchar2 default null
,p_attribute7 in varchar2 default null
,p_attribute8 in varchar2 default null
,p_attribute9 in varchar2 default null
,p_attribute10 in varchar2 default null
,p_attribute11 in varchar2 default null
,p_attribute12 in varchar2 default null
,p_attribute13 in varchar2 default null
,p_attribute14 in varchar2 default null
,p_attribute15 in varchar2 default null
,p_attribute16 in varchar2 default null
,p_attribute17 in varchar2 default null
,p_attribute18 in varchar2 default null
,p_attribute19 in varchar2 default null
,p_attribute20 in varchar2 default null
,p_data_source in varchar2 default null
,p_start_date_active in date
,p_end_date_active in date default null
,p_category_usage_id out nocopy number
,p_object_version_number out nocopy number
,p_comments in varchar2 default null
Appreciate clarification on the below:
1. What does the standard IN and OUT parameter mean?
2. Is there any other parameter besides IN and OUT?
My objective is to identify what are the mandatory/required/optional fields based on the API's parameters.
Thanks and Regards,
SCHi;
All APIs are listed in Oracle Integration Repository. I suggest check below notes:
http://irep.oracle.com/index.html
API User Notes - HTML Format [ID 236937.1]
R12.0.[3-4] : Oracle Install Base Api / Open Interface Setup Test [ID 427566.1]
Oracle Trading Community Architecture API User Notes, June 2003 [ID 241320.1]
Technical Uses of Customer Interface and TCA-API [ID 269121.1]
Pelase also check below:
Api's in EBS
Re: Api's in EBS
http://sairamgoudmalla.blogspot.com/2009/05/script-to-find-oracle-apis-for-any.html
API
Fixed Asset API
List of API
Re: List of APIs
Oracle Common Application Components API Reference Guide
download.oracle.com/docs/cd/B25284_01/current/acrobat/jta115api.pdf
List of APIs and open interface R12
Re: List of APIs and open interface R12
Regard
Helios -
Windows 7, Oracle DB, Instant Client and VBScript
I'm trying to to connect to a Oracle database via vbs on a Windows 7 machine using the instant client. I get an error [Oracle][ODBC][Ora]Ora-12560: TNS:protocol adapter error Code 80004005. Script still works fine in XP using the Microsoft ODBC for oracle. I've setup the system dsn, and added tns_admin option to the system environmental path. Here's the connection line
psconn.Open "DRIVER={Oracle in instantclient_11_2};SERVERNAME=192.168.50.1:1521/PSPRODDB;User Id=user;Password=pass;"
I've tried 32 bit instant client and the 64 bit and get the same messages with both. Any suggestions?12560 means you didnt supply a tnsnames alias, and a database was not found in that home.
Try this:
"DRIVER={Oracle in instantclient_11_2};DBQ=192.168.50.1:1521/PSPRODDB;uid=user;pwd=pass;"
Using Oracle ODBC Driver
Hope it helps,
Greg -
CR 2008 and ODBC connection using Oracle Instant Client driver?
Two questions.
I'm creating CR 2008 report using an ODBC connection. The ODBC driver is the Oracle Instant Client (version 10.2, I think.)
When I define the connection, I see only a few tables. I do not see the Tables, Views, Qualifiers tree that I see with a normal Oracle Server connection.
Does anybody know why this happens? Is there a CR ODBC driver that works better?
Second question: I have a .NET application that is pointing the report to another Oracle DB. In my db, table names are not unique -- each user has the same set of tables. I find that when the .net applciation sets the datasource, I get connected to the first table with a given name; I do not get the table scoped by the logon user.
In the .net application, how do I scope the table name to a particular user.
Any info helps. Thanks.
TimHi Tim,
Below are the replies to your questions:
Answer 1: Please try the below steps:
- Make sure that in File->Options->Database Tab in the Data Explorer section the corresponding checkboxes are checked for tables, views,system tables,synonyms and stored procedures and the Table name LIKE and Owner LIKE boxes are blank.
- Please try with OLEDB connection and check the results.
- You can also refer to this SAP note no# 1215994, the link to which is given below:
[https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3132313539393426]
Answer 2: If you are using RAS SDK only then you would be able to change table name. Please let us know if you are using RAS.
If you are using RAS with Java please post your query in the Java forum else if you are using Visual Studio/.NET then please post your question in .NET Forum.
Please update with the results.
Thanks! -
Difference between instant client and full oracle client
Everyone,
I had read the below lines from a goldengate pdf. Someone please explain me what is the difference between instant client and full oracle client?
What is the use of XDK libraries.?
" The full Oracle client must be used with GoldenGate so that the GoldenGate programs
have access to the Oracle XDK libraries. Do not use Oracle Instant Client, which lacks
those libraries. You can download the full client from Oracle’s website."
Regards,
SAKTHiThe dealio is this:
When you install client software, you have several options as to the degree of what you get/install. The big chicken dinner is administrator, so you get all kinds of extra features, add-ons, libraries, utilities, etc. At the hard candy Christmas end is instant client, and that has just enough functionality to, as you may surmise by now, connect a client and that's about it. Various libraries have functionality built in to do whatever extra is required. An example is FAN, or fast application notification, used in Data Guard failover. A FAN API (Java) will detect a failover and re-direct a client connection to the new primary. What GG uses XDK for (specifically) isn't of importance to a user, just the fact that it is available for connecting to Oracle is. -
NLS_LANG with Instant Client and MS Access
Hello Everybody.
Recently I downloaded Oracle Instant Client 10.1.0.3. I made a custom instalation for my little Access (ODBC)application.
In the begining the installation had not any other configuration than PATH Environment variable and ODBC basic DLL paramaters. That configuration worked very well for some minutes, until I realized that some rows in my linked tables appeared as #DELETED.
I made a little web-based investigation on the Microsoft and Oracle web site and I arrived to the NLS_LANG parameter. I realized it was my problem because I have Latin American characters in my rows and those rows were the "#DELETED" row I saw in my tables.
I did "select * from NLS_DATABASE_PARAMETERS" and that command showed AMERICAN and WE8DEC as NLS_CHARACTERSET.
I set the NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1 and the problem disapeared.
My question is: Is that the correct configuration in this case?
PD:I'am using Win XP Pro in Spanish.
ThanksHi,
>>then I use Oracle Instant Client
It's possible that maybe a NLS environment variables configuration problem ... For more information, I advise you to take a look at [url http://www.oracle.com/technology/tech/globalization/htdocs/nls_lang%20faq.htm] NLS_LANG FAQ
Cheers
Legatti -
Oracle Instant Client is a memory hog?
Hi all,
I am having (potentially) an issue that I need to confirm with folks out there. I am not a DBA - I have a decent understanding of SQL and have been exposed to several RDBMS's, but this is my first time developing in PHP specifically with Oracle in mind.
First, my setup (note this is for development, not production; ultimately, the final deployed environment will be 2 high-end SPARC servers (one for web, one for db)):
1. DEV: Webserver running Solaris 10, Apache 2.0.52 and PHP 5.1.2 and Oracle Instant Client v.10.1.0.3 (note all versions except PHP haven been dictated by the customer). PHP is compiled with apxs2, postgres, sqlite-utf8 and oracle support (hooked into instant client).
2. DEV: DB server running Oracle 10g on Windows 2003. Using stock configuration.
I have a PHP application using AdoDB for abstraction and Smarty for templating; also using Fusebox.
The whole setup as described above works flawlessly. I notice that the apache process(es) usually sit between 20-25M given the LoadModule configuration in Apache, and the extensions being loaded in PHP. Whenever I make connection to postgres, or sqlite, the processes stay within the described memory usage patterns above (so 20-25M).
However, whenever I attempt making a connection using the Oracle Instant Client (using either native OCI8 or adoDB calls, using both persistent and non-persistent connections), the Apache process jumps from a meager 20-25M to 85M+... I don't even have to do a select - just the very action of establishing the connection results in this jump in memory usage.
What I need to know is - is this normal? Is it normal for the client to have this size of a footprint on memory? If so, I need to ensure that the final deployed environment is capable of handling these kinds of jumps. If this is NOT normal, well, heck folks, I need some friendly pointers.
Any and all help would be greatly appreciated.
Thanks,I emailed the OCI team and got this:
'Basically, the data shared library, which is about 85MB, gets mapped to the process
virtual address when it is initially loaded by dlopen(). However, only the pages needed
by the application are actually mapped to the physical memory, and they get swapped
out by OS unless re-used. The data shared library is loaded as a shareable read-only
const data. Therefore, a process memory map should show that it is shared among all
Apache processes.'
Some linking quirks on various platforms were ironed out pretty early, but on Solaris, if
you have metalink access, check out bug 4304233 .
There is an Instant Client forum at Instant Client
-- cj -
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'.
Maybe you are looking for
-
Problem of installing biomedical startup kit 3
hi. I have installed labview 8.6, runtime engine and biomedical startup kit 3 on Windows 8.1. Why can I not find the biomedical kit on functions panel in labview8.3? I also installed labview 2012, but cannot find either. please help me with that.
-
No modem configurations were found
An icon that looks like a telephone sending messages to aliens in outer space just appeared on my menubar. When I click it, it has two menu items, the second is a link to "Open Network Preferences..." and the first is a disabled item that reads, "No
-
Migrating queries from 3.5 to 7.0
hi, we are in the process of migrating from BW 3.5 to BI 7.0. i would like to know, what are the steps to be executed to migrate queries from 3.5 to 7.0.
-
Routing (chaining) failure
Hi Folks! I'm seeing a Routing (chaining) failure every time the localhost tries to download CRL updates from the Internet. I checked the System Policy and it has an enabled rule from localhost to All Networks for CRL updates. This is the first entry
-
Psychedelic screen artifacts during video
During video playback, the pod started "messing up" the image. At first, it was the centers of the letters on the beginning credits blacking out. Then, areas of solid black were being replaced by pink and purple -- well, this video was encoded as gra