643 questions
1 vote
1 answer
130 views
Oracle SQL: most efficient way (in terms of network roundtrips) to do random little and scattered writes to a LOB column
I have a table with a BLOB column. Each BLOB can be up to 1GB in size. Updates of existing persistent BLOBs usually consist of thousands (~10k) of write microchunks at random offsets of around 100 ...
0 votes
0 answers
157 views
How to call stored procedure with named parameters from Oracle Call interface?
I have a requirement to call PL/SQL stored procedure from Oracle Call interface program by passing named parameters. How to do that ? Suppose I have a procedure PROCEDURE MY_SWAP(X IN OUT NUMBER,Y IN ...
0 votes
1 answer
85 views
I am working on Windows server migration from 2008 R2 to 2019, getting oci_pconnect error when OCI module is present
I am facing a deadlock situation where when I run the extension_loaded(oci8) command through command prompt, it returns true but same the code returns false in a php function when loading the webpage. ...
1 vote
0 answers
74 views
Undefined reference to an Oracle Call Interface Function Call
I have an OCI application intended to use the OCI function calls and specifically for multi-threading. Other function calls works fine but some are not working properly. I tried checking if they are ...
0 votes
1 answer
128 views
OCIDefineArrayOfStruct() or OCIBindArrayOfStruct equivalent in PostgreSQL
I am currently working updating client side code from OCI to libq. I am aware that OCIDefineArrayOfStruct() and OCIBindArrayOfStruct() are used to improve performance by enabling multi-row, multi-...
0 votes
1 answer
283 views
oracle_fdw connect error: OCIAttrSet failed to set driver name in session handle
I encountered the error when I used below the script on Postgres 13.9 (oracle_fdw 2.4) on Windows 10 64-bit. CREATE SERVER yf FOREIGN DATA WRAPPER oracle_fdw OPTIONS (dbserver 'yf'); CREATE USER ...
1 vote
0 answers
1k views
segmentation fault when try to connect oracle 19c database using olog() function
I am using Linux8 environment and i have installed oracle 19c client. I have tried sample example of C program in which uses olog() oci function to connect to a remote database using the client. when ...
3 votes
1 answer
324 views
How do I use OCIEnvNlsCreate() to always get CHAR and NCHAR data back in UTF8 encoding?
Currently I'm using OCIEnvCreate() to create an OCI session handle to communicate with Oracle databases. I'd like to explicitly use UTF8 rather than relying on whatever client locale has been set, and ...
1 vote
1 answer
522 views
Connecting remote Oracle DB using pro*c
I want to connect to remote oracle DB using pro*c in C program. I am able to connect to the DB using oracle sql developer using, UserId : ABCD Password: abcd HostIP(Name): 123.45.67.890 (Qwerty) ...
0 votes
0 answers
427 views
Connecting oracle data base from C program using pro*c
I want to try execute SQL statement from a C program using pro*c. I have tried installing oracle Database from https://www.oracle.com/database/technologies/oracle19c-windows-downloads.html It consist ...
1 vote
0 answers
803 views
Oracle OCI error when executing stored procedure with output parameter
I am trying to execute a simple stored procedure using Oracle OCI. The stored procedure takes a string as an input and copies it to the output parameter. Below is the oracle statement that I am ...
1 vote
1 answer
372 views
How to access the dbms_output buffer from C code?
Various Oracle solutions involve PL/SQL snippets with the dbms_output package -- in particular the dbms_output.put_line(). These work with the sqlplus interpreter, but some of our code uses the C API (...
0 votes
0 answers
156 views
oracle OCI fetch data have blank characters
OCI fetch data from oracle database , the data field have a problem(actually it's not a problem) , for example: if my table defined like this: create table t_test ( text_field varchar2(35), .... ); if ...
0 votes
1 answer
393 views
Resuming Oracle Database transactions after reconnecting
I was given the job of stabilizing part of a legacy application. It is a ~20 year old C++ application that now uses an Oracle 12.2 database for persistence (even for UI code). Interaction between the ...
1 vote
1 answer
268 views
Program crashes when fetching long-raw with OCI
I'm trying to SELECT a LONG RAW column in an Oracle table using the OCI library. For reasons that go beyond the scope of this question, I prefer to fetch the data by pieces, not using a callback ...