Oracle Call Interface Code (OCI)
Does anyone know a good source of example code or tutorials for OCI (Oracle 8i)?
(Have already looked at the demo code and the docs, which aren't overly helpful.)
null
quit wasting your time with the oci
& check this out
http://home.sprynet.com/~skuchin/home.htm
c++ wrapper for the oci thats really easy
to use with excellent examples
null
Similar Messages
-
Need suggestion for a topic in Oracle Call Interface
Dear All,
I am kiran working as a TSE for EAI project.
I need a small clarification with respect to Oracle Call Interface.
My problem is as follows:
"I am doing a delete transaction in my application and not committing it, but when my program is killed externally, I observed that the transactions are being committed.
I thought it is a very strange behavior, as an aborted transaction should be rolled back.
But my PL told me that it the behavior OCI and got nothing to do with our application."
Now My question is, whether can we stop/(switch off) that auto commit option for OCI( Oracle Call Interface.
Awaiting for an earlier response.
Any kind of help is highly appreciated.
Thanks in advance,
KiranHere is some information from Oracle's documentation (Oracle Call Interface Programmer's Guide.
Commit or Rollback
An application commits changes to the database by calling OCITransCommit(). This call uses a service context as one of its parameters. The transaction is associated with the service context whose changes are committed. This transaction can be explicitly created by the application or implicitly created when the application modifies the database.
Note:
Using the OCI_COMMIT_ON_SUCCESS mode of the OCIExecute() call, the application can selectively commit transactions at the end of each statement execution, saving an extra round trip.
To roll back a transaction, use the OCITransRollback() call.
If an application disconnects from Oracle in some way other than a normal logoff, such as losing a network connection, and OCITransCommit() has not been called, all active transactions are rolled back automatically. -
Trying to run SQLPlus: Unable to initialize Oracle call interface (again)
Dear all
I am trying to install Oracle Instant Client on my powerpc-32bit running Linux. I just obtained these packages:
instantclient-basic-linuxppc32-10.2.0.2-20060327.zip
instantclient-sqlplus-linuxppc32-10.2.0.2-20060327.zip
According to the document <http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ape.htm> these two are enough for me to use.
I also followed the instruction on the document, by:
1. Extract everything to /usr/local/instantclient_10_2/
/usr/local:$ unzip instantclient-basic-linuxppc32-10.2.0.2-20060327.zip
/usr/local:$ unzip instantclient-sqlplus-linuxppc32-10.2.0.2-20060327.zip
2. export variables:
$ export LD_LIBRARY_PATH=/usr/local/instantclient_10_2/
$ export SQLPATH=/usr/local/instantclient_10_2/
$ export NLS_LANG=AMERICAN_AMERICA.UTF8
$ export PATH=/usr/local/instantclient_10_2:$PATH
($LD_LIBRARY_PATH and $SQLPATH was empty before I do the above.)
(I didn't set $ORACLE_HOME because the document didn't require me to do so when I install sqlplus/oracle-client-basic from zip files. However I do tried to set it, doesn't help either.)
3. run:
$ sqlplus jxpado/[email protected]/XEXDB
SP2-1503: Unable to initialize Oracle call interface
SP2-0152: ORACLE may not be functioning properly
I looked up causes of SP2-1503:
Check that the Oracle environment or registry entries are consistent and correct.Yes. Environment is correct (only 3 variables);
If using the SQL*Plus Instant Client make sure the SQL*Plus
and Oracle libraries are from the same release. Yes, as you can tell from package zip file names.
Make sure you have read access to the libraries.True. I am very sure I have read access to all files there.
So what can I do here? I tried to follow instructions as clear / complete as possible.
I am sure sqlplus didn't even try to connect to the server at gtz.ods.org because I put a network traffic listener there to monitor access to the server.
Message was edited by:
user609663Unfortunately there's a bunch of possible reasons for this error combination. I recommend you search metalink for SP2-1503 to get a list.
Werner -
Hello,
We are unable to connect to sqlplus on our Linux server.
Errors:
SP2-1503: Unable to initialize Oracle call interface
SP2-0152: ORACLE may not be functioning properly
Thanks..user8969 wrote:
Hello,
We are unable to connect to sqlplus on our Linux server.
Errors:
SP2-1503: Unable to initialize Oracle call interface
SP2-0152: ORACLE may not be functioning properly
Thanks..I've not seen this, but looks like you don't have all your environment correctly set. PATH, ORALCE_HOME, LD_LIBRARY_PATH, etc. -
P2-1503: Unable to initialize Oracle call interface
version 10.2 on windows, any idea?
E:\>sqlplus /nolog
SP2-1503: Unable to initialize Oracle call interface
SP2-0152: ORACLE may not be functioning properlyE:\>set
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\agulzar\Application Data
ASSISTANTS_COMMON_CLASSPATH=E:\oracle\product\10.2.0\assistants\jlib\assistantsC
ommon.jar
BALISHARE_CLASSPATH=E:\oracle\product\10.2.0\jlib\share.jar
CANDLE_HOME=C:\IBM\ITM
CLASSPATH=E:\oracle\product\10.2.0\jdk\jre\lib\rt.jar;E:\oracle\product\10.2.0\j
dk\jre\lib\i18n.jar;E:\oracle\product\10.2.0\assistants\dbca\jlib\dbca.jar;E:\or
acle\product\10.2.0\assistants\jlib\assistantsCommon.jar;E:\oracle\product\10.2.
0\jlib\ewt3.jar;E:\oracle\product\10.2.0\jlib\ewtcompat-3_3_15.jar;E:\oracle\pro
duct\10.2.0\jlib\share.jar;E:\oracle\product\10.2.0\jlib\swingall-1_1_1.jar;E:\o
racle\product\10.2.0\jlib\oracle_ice5.jar;E:\oracle\product\10.2.0\jlib\help4.ja
r;E:\oracle\product\10.2.0\jlib\jewt4.jar;E:\oracle\product\10.2.0\jlib\kodiak.j
ar;E:\oracle\product\10.2.0\lib\xmlparserv2.jar;E:\oracle\product\10.2.0\jlib\or
ai18n.jar;E:\oracle\product\10.2.0\jlib\orai18n-mapping.jar;E:\oracle\product\10
.2.0\jlib\orai18n-utility.jar;E:\oracle\product\10.2.0\jlib\orai18n-collation.ja
r;E:\oracle\product\10.2.0\jlib\netcfg.jar;E:\oracle\product\10.2.0\jlib\ojmisc.
jar;E:\oracle\product\10.2.0\jlib\oraclepki103.jar;E:\oracle\product\10.2.0\jlib
\ldapjclnt10.jar;E:\oracle\product\10.2.0\jlib\opm.jar;E:\oracle\product\10.2.0\
jdbc\lib\classes12.zip;E:\oracle\product\10.2.0\jlib\srvm.jar;E:\oracle\product\
10.2.0\jlib\srvmhas.jar;E:\oracle\product\10.2.0\jlib\srvmasm.jar;E:\oracle\prod
uct\10.2.0\classes;E:\oracle\product\10.2.0\jlib\oemlt-10_1_0.jar;E:\oracle\prod
uct\10.2.0\jlib\emca.jar;E:\oracle\product\10.2.0\sysman\jlib\emCORE.jar;E:\orac
le\product\10.2.0\oc4j\j2ee\home\oc4j.jar;E:\oracle\product\10.2.0\oc4j\j2ee\hom
e\db_oc4j_deploy.jar;E:\oracle\product\10.2.0\jlib\emConfigInstall.jar;E:\oracle
\product\10.2.0\oui\jlib\OraInstaller.jar
CLIENTNAME=WMSTUTCTX02
ClusterLog=C:\WINDOWS\Cluster\cluster.log
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
COMPUTERNAME=WMSTUTGIS02
ComSpec=C:\WINDOWS\system32\cmd.exe
DBCA_CLASSPATH=E:\oracle\product\10.2.0\assistants\dbca\jlib\dbca.jar
EM_CLASSPATH=E:\oracle\product\10.2.0\classes;E:\oracle\product\10.2.0\jlib\oeml
t-10_1_0.jar;E:\oracle\product\10.2.0\jlib\emca.jar;E:\oracle\product\10.2.0\sys
man\jlib\emCORE.jar;E:\oracle\product\10.2.0\oc4j\j2ee\home\oc4j.jar;E:\oracle\p
roduct\10.2.0\oc4j\j2ee\home\db_oc4j_deploy.jar;E:\oracle\product\10.2.0\jlib\em
ConfigInstall.jar
EWT_CLASSPATH=E:\oracle\product\10.2.0\jlib\ewt3.jar;E:\oracle\product\10.2.0\jl
ib\ewtcompat-3_3_15.jar
FP_NO_HOST_CHECK=NO
GDK_CLASSPATH=E:\oracle\product\10.2.0\jlib\orai18n.jar;E:\oracle\product\10.2.0
\jlib\orai18n-mapping.jar;E:\oracle\product\10.2.0\jlib\orai18n-utility.jar;E:\o
racle\product\10.2.0\jlib\orai18n-collation.jar
HELP_CLASSPATH=E:\oracle\product\10.2.0\jlib\help4.jar;E:\oracle\product\10.2.0\
jlib\jewt4.jar
HOMEDRIVE=W:
HOMEPATH=\
HOMESHARE=\\wmstutfpcb\itdata\users\agulzar
I18N_CLASSPATH=E:\oracle\product\10.2.0\jdk\jre\lib\i18n.jar
ICE_BROWSER_CLASSPATH=E:\oracle\product\10.2.0\jlib\oracle_ice5.jar
INSTALLER_CLASSPATH=E:\oracle\product\10.2.0\oui\jlib\OraInstaller.jar
JAVA_HOME=C:\java\java5_01\jdk
JDBC_CLASSPATH=E:\oracle\product\10.2.0\jdbc\lib\classes12.zip
JRE_CLASSPATH=E:\oracle\product\10.2.0\jdk\jre\lib\rt.jar
KODIAK_CLASSPATH=E:\oracle\product\10.2.0\jlib\kodiak.jar
KUIFILEPATH=C:\IBM\ITM\bin\xml
LIBPATH=C:\IBM\ITM\bin\dll;C:\IBM\ITM\TMAITM6;C:\IBM\ITM\InstallITM
LOGONSERVER=\\WMSTUTDC01
NETCFG_CLASSPATH=E:\oracle\product\10.2.0\jlib\netcfg.jar;E:\oracle\product\10.2
.0\jlib\ojmisc.jar;E:\oracle\product\10.2.0\jlib\oraclepki103.jar;E:\oracle\prod
uct\10.2.0\jlib\ldapjclnt10.jar;E:\oracle\product\10.2.0\jlib\opm.jar
NLSLANG=AMERICAN_AMERICA.UTF8
NLSPATH=C:\Program Files (x86)\IBM\SCM\msg\%L\%N.cat;C:\Program Files (x86)\IBM\
SCM\msg\C\%N.cat
NUMBER_OF_PROCESSORS=4
OH=E:\oracle\product\10.2.0
ORACLE_HOME=E:\oracle\product\10.2.0
ORACLE_SID=ARCSERVP
OS=Windows_NT
Path=E:\oracle\product\10.2.0\BIN
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PERL5LIB=E:\oracle\product\10.2.0\perl\5.8.3\lib\MSWin32-x86;E:\oracle\product\1
0.2.0\perl\5.8.3\lib;E:\oracle\product\10.2.0\perl\5.8.3\lib\MSWin32-x86;E:\orac
le\product\10.2.0\perl\site\5.8.3;E:\oracle\product\10.2.0\perl\site\5.8.3\lib;E
:\oracle\product\10.2.0\sysman\admin\scripts;
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=EM64T Family 6 Model 15 Stepping 6, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0f06
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
PROMPT=$P$G
SCM_CLIENT_INST_DIR=C:\Program Files (x86)\IBM\SCM\client
SCM_HOME=C:\Program Files (x86)\IBM\SCM
SDEHOME=E:\ArcGIS\ArcSDE\ora10gexe\
SESSIONNAME=RDP-Tcp#14
SRVM_CLASSPATH=E:\oracle\product\10.2.0\jlib\srvm.jar;E:\oracle\product\10.2.0\j
lib\srvmhas.jar;E:\oracle\product\10.2.0\jlib\srvmasm.jar
SWING_CLASSPATH=E:\oracle\product\10.2.0\jlib\swingall-1_1_1.jar
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\agulzar\LOCALS~1\Temp\3
TISDIR=C:\Program Files (x86)\IBM\SCM\codeset
TMP=C:\DOCUME~1\agulzar\LOCALS~1\Temp\3
TNS_ADMIN=E:\oracle\product\10.2.0\NETWORK\ADMIN
TSM=C:\Program Files\Tivoli\TSM\baclient\dsmc.exe
USERDNSDOMAIN=WILLIAMS.COM
USERDOMAIN=WILLIAMS
USERNAME=agulzar
USERPROFILE=C:\Documents and Settings\agulzar
windir=C:\WINDOWS
XMLPARSER_CLASSPATH=E:\oracle\product\10.2.0\lib\xmlparserv2.jar -
SP2-1503: Unable to initialize Oracle call interface
Hello All,
I have installed Oracle 10g R1 on my new HP laptop with OS as Windows 7 and the installation was successful.
But, unfortunately while trying to connect to the DB with the sqlplus /nolog command, the below error is re- occuring
SP2-1503: Unable to initialize Oracle call interface
SP2-0152: ORACLE may not be functioning properly.
Please, let me know if this is an oracle bug and suggest me if i need to install an upgrade patch.
Regards,
OracleHi.. from oracle metalink
Oracle Database releases "9iR2 (9.2.0.x), 10gR1 (10.1.0.x), 10gR2 (10.2.0.x) and 11gR1 (11.1.0.x)" are not Certified/Supported to install/run on Microsoft Windows 7.
"Microsoft Windows 7" certification will begin with "Oracle Database 11gR2 (11.2.0.x)". That means, Oracle Database 11gR2 will be the first Oracle Database product certified/supported to install/run on "Microsoft Windows 7".
*T -
[sqlplus] - SP2-1503: Unable to initialize Oracle call interface
Hello,
I've just reinstall an new Oracle DB 10.2.0.1.0 and when i type SQLPLUS i've this error:
$sqlplus /nolog
SP2-1503: Unable to initialize Oracle call interface
SP2-0152: ORACLE may not be functioning properly
what's hapening ???
thanks for your help.found !!
it's a stupid and strange error.... because i re-use my old settings and it's worked.
now i remove the last '/' on $ORACLE_HOME path... and all works fine.
thanks... -
Hi,
I didn't find the OCI lib on the Oracle 8.0.5/Linux cdrom. does
anybody know if Oracle has planed to port it on this plateform?
Thanks
Raphal
nullIf the original SQL statement did not require a bind it
should not require a bind when moving to OCI 9i
(this is a property of the statement and not
of the OCI version).
There should be no issues with reusing a statement
handle after allocation. I think that they are reusable
as long as you do StmtPrepare and any necessary
define/bind for any new statements, i.e.:
OCIHandleAlloc (stmthp, ... OCI_HTYPE_STMT);
OCIStmtPrepare (stmthp, sqlstmt1,...);
/* optional bind/defines */
OCIStmtExec (stmthp, ...);
OCIStmtPrepare (stmthp, sqlstmt2,...);
/* optional bind/defines */
OCIStmtExec (stmthp, ...);
As for the kghalo error, you may want to confirm that
the stmtp is being allocated correctly, with
OCIHandleAlloc. If this doesn't fix your problem,
it might be helpful to post a code snippet here. -
OCCI :Oracle C++ Call Interface
hello
i have a project that turn about : get a connection between a program C++ and an oracle database , so i use OCCI : oracle C++ call Interface
i worke with Visual C++/Borland C++ and oracle release 9.2
i built and compile my program withount any problem, but whene i execute it i have this message :
Loaded 'ntdll.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found.
Loaded 'C:\oracle\ora92\bin\oraocci9.dll', no matching symbolic information found.
Loaded 'C:\oracle\ora92\bin\ORACORE9.DLL', no matching symbolic information found.
Loaded 'C:\oracle\ora92\bin\ORANLS9.DLL', no matching symbolic information found.
Loaded 'C:\oracle\ora92\bin\ORAUNLS9.DLL', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\msvcrt.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\wsock32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\ws2_32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\ws2help.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\advapi32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\rpcrt4.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\ole32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\gdi32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\user32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\winmm.dll', no matching symbolic information found.
Loaded 'C:\oracle\ora92\bin\orageneric9.dll', no matching symbolic information found.
Loaded 'C:\oracle\ora92\bin\oracommon9.dll', no matching symbolic information found.
Loaded 'C:\oracle\ora92\bin\oraclient9.dll', no matching symbolic information found.
Loaded 'C:\oracle\ora92\bin\oravsn9.dll', no matching symbolic information found.
Loaded 'C:\oracle\ora92\bin\orawtc9.dll', no matching symbolic information found.
Loaded 'C:\oracle\ora92\bin\orannzsbb9.dll', no matching symbolic information found.
Loaded 'C:\oracle\ora92\bin\oran9.dll', no matching symbolic information found.
Loaded 'C:\oracle\ora92\bin\oranl9.dll', no matching symbolic information found.
Loaded 'C:\oracle\ora92\bin\oranldap9.dll', no matching symbolic information found.
Loaded 'C:\oracle\ora92\bin\oraldapclnt9.dll', no matching symbolic information found.
Loaded 'C:\oracle\ora92\bin\orancrypt9.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\oleaut32.dll', no matching symbolic information found.
Loaded 'C:\oracle\ora92\bin\oratrace9.dll', no matching symbolic information found.
Loaded 'C:\oracle\ora92\bin\oranro9.dll', no matching symbolic information found.
Loaded 'C:\oracle\ora92\bin\oranhost9.dll', no matching symbolic information found.
Loaded 'C:\oracle\ora92\bin\oranoname9.dll', no matching symbolic information found.
Loaded 'C:\oracle\ora92\bin\ORANCDS9.DLL', no matching symbolic information found.
Loaded 'C:\oracle\ora92\bin\orantns9.dll', no matching symbolic information found.
Loaded 'C:\oracle\ora92\bin\oranms.dll', no matching symbolic information found.
Loaded 'C:\oracle\ora92\bin\oranmsp.dll', no matching symbolic information found.
Loaded 'C:\oracle\ora92\bin\ORAPLS9.DLL', no matching symbolic information found.
Loaded 'C:\oracle\ora92\bin\ORASLAX9.DLL', no matching symbolic information found.
Loaded 'C:\oracle\ora92\bin\ORASNLS9.DLL', no matching symbolic information found.
Loaded 'C:\oracle\ora92\bin\ORASQL9.DLL', no matching symbolic information found.
Loaded 'C:\oracle\ora92\bin\ORAXML9.DLL', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\msvcirt.dll', no matching symbolic information found.
Loaded 'C:\oracle\ora92\bin\ORAXSD9.DLL', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\msvcp60.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\secur32.dll', no matching symbolic information found.
Loaded 'C:\oracle\ora92\bin\orantcp9.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\mswsock.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\hnetcfg.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\wshtcpip.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\netapi32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\netapi32.dll', no matching symbolic information found.
First-chance exception in OCCI.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
First-chance exception in OCCI.exe (ORAOCCI9.DLL): 0xC0000005: Access Violation.
First-chance exception in OCCI.exe (ORAOCCI9.DLL): 0xC0000005: Access Violation.
The program 'C:\Program Files\Microsoft Visual Studio\MyProjects\OCCI\Debug\OCCI.exe' has exited with code 0 (0x0).
when i use Borland C++
i have anothor message:
unable to open execptio.h
i don't have this header file
please help meYou may want to post this on a database forum. This forum is dedicated to Oracle TopLink which connects to the database using JDBC.
Doug -
Oracle C++ Call Interface
All of my company's software is coded in C++.
Does the Oracle C++ Call Interface offer a bridge to allow Oracle Datawarehousing then thus implementation of ERP?
ThanksNot sure what you are after...
http://st-doc.us.oracle.com/11/112/appdev.112/e10764/introduction.htm#i430767
Cheers
David -
New discussion forum for OCCI (Oracle C++ Call Interface)
Hi all,
let us use the new discussion forum 'Oracle C++ Call Interface' for all discussions regd. OCCI.You may want to post this on a database forum. This forum is dedicated to Oracle TopLink which connects to the database using JDBC.
Doug -
Calling Interfaces T codes & BAPI
Hi Gurus,
Im new to the EPA. calling interfaces from SAP R/3 system into portal. Those interfaces have same functionality in T Code & BAPI. We can call those interfaces into portal like transactional Ivies and developing application in WebDynpro. In which scenario T code & WebDynpro application are using ? In performance concern which is good?
Regards,
PriyaHi Priya,
When you want to get the functionality from R/3 like Sales Order List , you create Adaptive RFC in WebDynpro applications as Models and deployed into server. Finally transactional iView is created for this application and assinging to Page and then Page to Workset and workset to Role.
Person who has this role can access the Iview (SO List).
End user who doesn't have R/3 but have Portal, can access Sales Order List from the portal itself.
If it helps you award points.
Cheers
Venkat. -
Error occurs when call interface and database is changed
hi, experts,
I have modified the RPD
I change the database from "Oracle 9i" to "Oracle 10g R2/11g"
changed the call interface of connection pool from "OCI 8i/9i" to "OCI 10g/11g"
after the change,
I got this error on one table on dashboard
Odbc driver returned an error (SQLExecDirectW).
Error Details
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 46008] Internal error: File .\Src\SQOIGeneratorBuiltIn.cpp, line 3403. (HY000)
SQL Issued: SET VARIABLE xxxxxxxxxxxx = xxxx ;SELECT xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
the table includes RANKs.
any patches for .\Src\SQOIGeneratorBuiltIn.cpp????
any alternatives ?
thank you very much!I use a trick to work around
in the columns for ranks, change to
rank (xxx) +1 -1
then no error occurs -
Oracle C Interface for Oracle XE beta
Hi All,
I'm not entirely sure if this is the proper place to post this, but I'll give it a go anyway.
I've managed to install the Oracle XE database on my Linux box, which was fairly simple and painless (Kudos to Todd). Now, I've managed to define a user, a table, the proper privileges and the proper connections I need.
Now, I would like to connect from my application into the XE via a C/C++ interface. I've downloaded the Programmers Guide (all 1570 pages of it) - I got a serious headache from it.
Can anyone please point me in a direction where I can find information about utilizing OCI in a productive manner, preferably with some sample code that an "Oracle" newbie can figure out?
Regards,
Nir Simionovichpreferably with some sample code that an "Oracle" newbie
can figure out?You can find a few OCI sample programs here:
http://www.oracle.com/technology/sample_code/tech/oci/index.html
If you are writing a C++ application, use OCCI which is the C++ interface.
http://www.oracle.com/technology/tech/oci/occi/index.html
OCCI sample programs are here:
http://www.oracle.com/technology/sample_code/tech/occi/index.html
Rgds.
Amogh -
Any risks if call interface and database not matched?
hi experts,
are there any risks if the call interface of connection pool and database (in physical layer) matched ?
for example,
the call interface of connection pool (in physical layer) is selected to "OCI 10g/11g"
the database (in physical layer) is selected to "Oracle 10g R2/11g"
the oracle client on my local computer is "Oracle - OraClient10g"
and the database version is "9.2.0.7.0" (select * from nls_database_parameters where parameter = 'NLS_RDBMS_VERSION'; )
thank you very much!There shouldn't be a problem, the OCI is backward compatible.
regards
John
http://obiee101.blogspot.com
Maybe you are looking for
-
How do i get this put right?
I hope this post is in the correct area of the forum as I technically do not have a problem with speed...............but i do Confusing i know I shall try explain. I was with another ISP on ADSL max until 2 days ago but I noticed that BT were upgr
-
My iPhone 5 is not recognized on any PC, wont charge by USB in PC either
My iPhone 5 is not recognized on my PC w/ Windows 7, nor Windows 8. It does not charge while plugged into either computer, but it does charge when plugged into the wall! I tried uninstalling, downloading a new copy and installing iTunes on both PCs.
-
Unable to create new entry in table that has no primary key
Hi I have a table which is required to have no primary key (except mandt). After i generate table maintanance, when I go to create new entries, the table control to enter the new values does not appear. When I click on edit->new entries, it goes b
-
I don't know if I have typed them right! urldecode or urlencode, how and when should they be used in JSP?
-
Does Oracle Framework ToolBox Tutorial supported by 11.5.9?
Hi guys, We have 11.5.9 instance and now we want to make an internal training with the tutorial sample. I have downlload the patch: FWK.H (11.5.9 or 11.5.10 base release) You need JDeveloper from Patch 4045639 (9IJDEVELOPER WITH OA EXTENSION ARU