09-09-2013
Using dbms_pipe with C++ to perform daabase operation
I am getting two result: string and int in c++ code. That I want to store into database. The request which generates result is very frequent. So each time performing db operation to store the result is costly for me.
So how this can be achived using dbms_sql? I dont have any experience and how to start with it. I did google but not clue.
So fo I need to set environment,software or library? I am working in linux.
I could not find any such example on web!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I would appreciate if anyone knows how to perform adding to date.
As for normal date, i can easily plus with any number.
But when it comes to month end say for example 28 Jun, i need to perform a plus with number 3, it will not return 1 Jul.
Thanks in advance for your help. (4 Replies)
Discussion started by: agathaeleanor
4 Replies
2. Programming
So, I have a 'task' to create communication channel between Oracle db (11gR2 on AIX) and some client wich is choosed to be a .net client (.net framework 3.5).
we created a pipe on client (.net) side using:
System.IO.Pipes.NamedPipeClientStream pipeClient = new... (2 Replies)
Discussion started by: bongo
2 Replies
3. Shell Programming and Scripting
I have a txt file having rows and coulmns, i want to perform some operation on a specific coulmn starting from a specific line.
eg:
50.000000 1 1 1
1000.00000
1000.00000
50000.000
19
19
3.69797533E-07 871.66394 ... (3 Replies)
Discussion started by: shashi792
3 Replies
4. Shell Programming and Scripting
I have a txt file with several columns and i want to peform an operation on two columns and output it to a new txt file .
file.txt
900.00000 1 1 1
500.00000
500.00000
100000.000
4
4
1.45257346E-07 899.10834 ... (4 Replies)
Discussion started by: shashi792
4 Replies
5. Shell Programming and Scripting
I am trying to enter a third column in this file, but the third column should that I call "Math" perform a some math calculations based on the value found in column #2.
Here is the input file:
Here is the desired output:
Output
GERk0203078$ Levir Math
Cotete_1... (5 Replies)
Discussion started by: Ernst
5 Replies
6. Shell Programming and Scripting
Sorry, about this thread - I solved my own problem! Thanks for taking a look.
edit by bakunin: no problem, but it would have been a nice touch to actually tell us what the solution was. This would have been slightlich more educating than just knowing that you found it.
I changed your title to... (0 Replies)
Discussion started by: Blue Solo
0 Replies
7. Shell Programming and Scripting
Hi All,
I want to display the distinct values in the file and for each distinct value how may occurance or there.
Test data:
test1.dat
20121105
20121105
20121105
20121105
20121106
20121106
20121106
20121105
I need to display the output like
Output (2 Replies)
Discussion started by: bbc17484
2 Replies
8. Shell Programming and Scripting
Hi All,
I am using an awk script as below:
awk -F'|' 'BEGIN{OFS="|";} { if ($1==$3 && $3==$7 && $7==$13 && $2==$6 && $6==$11 && $15-$14+1==$11) print $0"|""TRUE"; else print $0"|""FALSE"; }' tempfile.txt
In above script, all conditions are being checked except the one which is... (4 Replies)
Discussion started by: angshuman
4 Replies
9. Shell Programming and Scripting
Have three files. Any other approach with regards to file concatenation or splitting, etc is appreciated
If column55(billngtype) of file1 contains YMNC or YPBC then pick the value of column13(documentnumber). Now find this documentnumber in column1(Billdoc) of file2 and grep the corresponding... (4 Replies)
Discussion started by: as7951
4 Replies
10. UNIX for Beginners Questions & Answers
Hi,
I am trying to generate a data of following order:
4 0 1 642 643
4 642 643 1283 1284
4 1283 1284 1924 1925
4 1924 1925 2565 2566
4 2565 2566 3206 3207
4 3206 3207 3847 3848
4 3847 3848 4488 4489
4 4488 4489 5129 5130
----------------------
4 1 2 643 644
4 643 644 1284... (6 Replies)
Discussion started by: SaPa
6 Replies
LEARN ABOUT OPENSOLARIS
ldap_delete
ldap_delete(3LDAP) LDAP Library Functions ldap_delete(3LDAP)
NAME
ldap_delete, ldap_delete_s, ldap_delete_ext, ldap_delete_ext_s - LDAP delete operation
SYNOPSIS
cc[ flag... ] file... -lldap[ library... ]
#include <lber.h>
#include <ldap.h>
int ldap_delete(LDAP *ld, char *dn);
int ldap_delete_s(LDAP *ld, char *dn);
int ldap_delete_ext(LDAP *ld, char *dn, LDAPControl **serverctrls,
LDAPControl **clientctrls, int *msgidp);
int ldap_delete_ext_s(LDAP *ld, char *dn, LDAPControl **serverctrls,
LDAPControl **clientctrls);
DESCRIPTION
The ldap_delete_s() function is used to perform an LDAP delete operation synchronously. It takes dn, the DN of the entry to be deleted. It
returns an LDAP error code, indicating the success or failure of the operation.
The ldap_delete() function is used to perform an LDAP delete operation asynchronously. It takes the same parameters as ldap_delete_s(),
but returns the message id of the request it initiated. The result of the delete can be obtained by a subsequent call to
ldap_result(3LDAP).
The ldap_delete_ext() function initiates an asynchronous delete operation and returns LDAP_SUCCESS if the request was successfully sent
to the server, or else it returns a LDAP error code if not (see ldap_error(3LDAP)). If successful, ldap_delete_ext() places the message
id of the request in *msgidp. A subsequent call to ldap_result(), can be used to obtain the result of the add request.
The ldap_delete_ext_s() function initiates a synchronous delete operation and as such returns the result of the operation itself.
ERRORS
ldap_delete_s() returns an LDAP error code which can be interpreted by calling one of ldap_perror(3LDAP) functions. ldap_delete() returns
-1 if something went wrong initiating the request. It returns the non-negative message id of the request if things were successful.
ATTRIBUTES
See attributes(5) for a description of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|Availability |SUNWcsl (32-bit) |
| |SUNWcslx (64-bit) |
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO
ldap(3LDAP), ldap_error(3LDAP), attributes(5)
SunOS 5.11 27 Jan 2002 ldap_delete(3LDAP)