How to make my program written in c + + call a procedure of a package?
Before anything, I'm sorry if the forum is not appropriate for my question ...
Firstly, could you explain what is "C ++ Call Interface (OCCI)"? Means that the Oracle libraries embed c++?
I'm asking because a client of the company, where I work, has a program written in c++ and he needs to call a procedure in my database and get values as cursor fields parameters.
I wanted you to know how best to integrate it and how it can be done.
Thanks.
Hi,
Here's a very similar and recent thread on the OCI forum:
What is the diffrence between OCI and OCCI?
Perhaps that will be some help.
Also, here's a link to the OCCI documentation on Oracle Technology Network (OTN):
http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28390/toc.htm
Regards,
Mark
Similar Messages
-
How to make a program for backgroung processing used servlet
how to make a program for backgroung processing used servlet
well i need the coding part written in servlet ,in which servlet is always ready for accepting a client request.
-
How to make my program forcefully errror
hi 2 all
how to make my program forcefully error out even i have to get data
regards
sivaHi Mate,
Just remove the quries which you execute
Thanks
Kash
www.mkashu.blogspot.com -
Hello
How to make labview program to get average value of 200 reading from multimeter (I using using loop) to read voltage from mulmeter but I like to get average value of all of 200 reding how can I do that?
Thanks
Wee
Solved!
Go to Solution.Another idea with less programming - take advantage of the "free" array that comes with a Chart - i.e. the History Data.
1) Wire your DMM data to a Chart. (You can set the chart to invisible if you don't plan on using it in the GUI).
2) Set the Chart History Length to 200 (right click on the chart, click on Chart History Length...)
3) On the block diagram, use the History Data Property Node, wire it to Mean.vi, and you're done.
Easiest running average ever.
Message Edited by Broken Arrow on 04-07-2010 11:36 AM
Richard
Attachments:
EasyAvg.jpg 8 KB -
I just got an iphone4. I downloaded a song but i don't know how to make it my ringtone for incoming call. Can someone help?
YOu can't use the whole song for a ringtone, you would have to create one 30 second or less.
YOu can download an app to create the ringtone. -
How can i find start line of any functions or procedures stored in package body?
hi
how can i find start line of any functions or procedures stored in package body?
is there any way to write a query from for example user_source?
thankshow can i find start line of any functions or procedures stored in package body?
Why? What will you do differently if a procedure starts on line 173 instead of line 254?
Tell us what PROBLEM you are trying to solve so we can help you find the best way to solve it.
If you use PL_SCOPE that info is available in the *_IDENTIFIERS views. See 'Using PL/Scope in the Advanced Dev Doc
http://docs.oracle.com/cd/B28359_01/appdev.111/b28424/adfns_plscope.htm
Try this simple sample code. The query is modified from that doc sample:
-- tell the compiler to collect the info
ALTER SESSION SET PLSCOPE_SETTINGS='IDENTIFIERS:ALL';
-- recompile the package
CREATE OR REPLACE package SCOTT.pack1 as
PROCEDURE proc1;
PROCEDURE proc2;
END;
CREATE OR REPLACE package BODY SCOTT.pack1 as
PROCEDURE proc1 IS
BEGIN
NULL;
END;
PROCEDURE proc2 IS
BEGIN
proc1;
END;
PROCEDURE proc3 IS
BEGIN
proc1;
proc2;
END;
END;
-- query the info for the package spec
WITH v AS (
SELECT Line,
Col,
INITCAP(NAME) Name,
LOWER(TYPE) Type,
LOWER(USAGE) Usage,
USAGE_ID,
USAGE_CONTEXT_ID
FROM USER_IDENTIFIERS
WHERE Object_Name = 'PACK1'
AND Object_Type = 'PACKAGE'
SELECT LINE, RPAD(LPAD(' ', 2*(Level-1)) ||
Name, 20, '.')||' '||
RPAD(Type, 20)||
RPAD(Usage, 20)
IDENTIFIER_USAGE_CONTEXTS
FROM v
START WITH USAGE_CONTEXT_ID = 0
CONNECT BY PRIOR USAGE_ID = USAGE_CONTEXT_ID
ORDER SIBLINGS BY Line, Col
LINE,IDENTIFIER_USAGE_CONTEXTS
1,Pack1............... package declaration
2, Proc1............. procedure declaration
3, Proc2............. procedure declaration
-- query the info for the package body - change 'PACKAGE' to 'PACKAGE BODY' in the query above
LINE,IDENTIFIER_USAGE_CONTEXTS
1,Pack1............... package definition
2, Proc1............. procedure definition
6, Proc2............. procedure definition
8, Proc1........... procedure call
10, Proc3............. procedure declaration
10, Proc3........... procedure definition
12, Proc1......... procedure call
13, Proc2......... procedure call -
How to make my program case - in sensitive?
Hi,
Iam writing a SELECT query in report for retrieving the address number by giving address details like street, city and post code.But my program is case sensitive such that if the user inputs either in Upper Case or Lower Case, it will not work.
For eg: suppose the city is Cape Town. If the user inputs like CAPE TOWN or cape town ( via Selection Screen ), then it won't work.
How can i make my program case- in sensitive?? please suggest..This is possible. I have done something similar to it in my search programs.
For this we need to make a subroutine. In this subroutine we first need to convert the case into upper case using
TRANSLATE string TO UPPER CASE.
then prefix and postfix this string with &,
_and if this does not work then we have to break the srting entered by the user on basis of spaces and prefix and postfix it with &. _
Now pass this string to the query and it will definitely get the result. -
How to excute a program written in other language?
How to pass some parameters to other excutable program written in other languages and to get the return value back?
http://java.sun.com/j2se/1.3/docs/api/java/lang/Runtime.html
-
How to make my program faster?
I have a program which produces two elements array. In normally the program ends in microseconds, however when I organize my program to send the array as a data to DAQ.mx write and the array will be the voltage output from my NI USB-6012 DAQ, my program ens in 40 seconds. How can I make my program faster? Is there any solution?
I have attached the normal program and with DAQ.vis.
Attachments:
step step 1.vi 15 KB
step step 2.vi 34 KBProgram 1 runs 5 times and program 2 runs 41 times per loop. the total number of inner iterations is 25 vs. 1681 for a 67x difference.
Program 1 and program 2 have no timing information, thus spin at a undefined rate.
Program 2 does single point hardware IO and also has no timing information. The speed will depend on the hardware.
Running at a hardware dependent rate is not a good idea in general, because the speed will vary with every change in hardware and is not deterministic. You don't even know what occurs first at each iteration: the input or the output.
If speed is important, what you should do is use an improved variation (Yes, use FOR loops and ramps!) of program 1 to generate the final data array, then do a single "Nchan,Nsamp" IO, running input and output synchronized hardware timed off the same clock. This way you can select any acquisition speed up the the maximum supported by your DAQ hardware. It will be fast and at an exactly defined rate as it should be!
Try it!
I am not familiar with your hardware: USB-6012. can you give a link to the product page?
LabVIEW Champion . Do more with less code and in less time . -
Help on how to make a program on Calendar of the year
I'm new to java programming.
Our teacher assigned me to make a program for a calendar of the year.
I'm confused on what to do. Could you give me some tips on how to
make a successful calendar of the year program?
What shall I study first to create an output like this....?
The program should run like this!!!!
Enter the year from 1990 to year 2050.
Enter the month of the year entered.
Then displays the calendar.
Ex.
SEPTEMBER 2002
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
Hoping that you would reply.
Thank you very much!!!Don't want to do your homework. You should think about how you might do it yourself first.
However, the class java.util.Calendar will be useful to you. Read up on that in the API docs. -
How to make a program for rebooting linux kernal
i'am using fedora core 2. i want to make a program for rebooting the kernal locally.
nkay, how about:
sudo reboot -
How to make a program restart at the click of the mouse or a key on....
How would I make a program restart at the click of the mouse or a key on the keyboard?
Yes, definitely, thats what I would want to happen but I'm not sure how to go about the coding. Would I have to use a key listener? Or would I have to construct the method from scratch?
-
How TO Make my program executable?
please list steps to make my program executable jar ??
please write steps from 0 ot the end?
thank ujar cvfm MyJar.jar MyManifest.txt -C . *.javawhere do you type that? I tried in a command console
but it didnt work...Make sure jar.exe is in your path.
and what do u mean by com.acme.MyMainClass? do I have to put the com.acme?No, you would replace it with the fully qualified name of your own class of course. You are allowed to use your own brains too. -
I want to make a program that will ask for the ID of the testing machine the first time the program is running, then will never ask for it. I'm using Labview 6.0
Hi
There are a Couple of methods you can use for this.
Method 1 -
You can create an ini file and save a boolean Key "First Instance" as True. Now In your Program you read this Key, If it is True then you can show your ID Dialog VI.If False do not run the VI. At the Conclusion of Id Dialog you can update this registry enrty to False. So In effect you have created One time Event. In fact you can save ID as another Config entry.
The Drawback and advantage is that such an INI file can be edited by someone moderately knowledgeable about the Program
Method 2
Use Unitialized Shift Register in A while Loop. Please see LV2 style Globals entry under this forum. You can read and write to this Variable and it retains the Value it last had within it.
You can read
this Global the Very first time and say if it true you display your ID Vi. If False you dont. When you display your ID Vi you can Update your Global Like Before.
If you need Example Let me Know.
Good Luck
Mache!!
Good Luck!
Mache -
How to make this program terminate?
hi,
how to make the code below stop? is is hanging because UnicastRemoteObject has registered it, and no-one has unregistered it?
thanks,
asjf
import java.rmi.*;
import java.rmi.server.*;
public class UniTest extends UnicastRemoteObject implements Remote {
UniTest() throws RemoteException {}
public static void main(String [] arg) throws Exception {
UniTest ut = new UniTest();
}having done some tests it possibly seems linked to the size of the environment
my system is a win2k machine, with sdk 1.4.1_02 from sun
if I run
java UniTest
then that terminates, but if I first run a batch file containing this
set FILL0=aaaaabbbbbcccccdddddeeeeefffffggggghhhhhiiiiijjjjjkkkkklllllmmmmmnnnnnoooooppppp
set FILL1=bbbbbcccccdddddeeeeefffffggggghhhhhiiiiijjjjjkkkkklllllmmmmmnnnnnooooopppppaaaaa
set FILL2=cccccdddddeeeeefffffggggghhhhhiiiiijjjjjkkkkklllllmmmmmnnnnnooooopppppaaaaabbbbb
set FILL3=dddddeeeeefffffggggghhhhhiiiiijjjjjkkkkklllllmmmmmnnnnnooooopppppaaaaabbbbbccccc
set FILL4=eeeeefffffggggghhhhhiiiiijjjjjkkkkklllllmmmmmnnnnnooooopppppaaaaabbbbbcccccddddd
set FILL5=fffffggggghhhhhiiiiijjjjjkkkkklllllmmmmmnnnnnooooopppppaaaaabbbbbcccccdddddeeeee
set FILL6=ggggghhhhhiiiiijjjjjkkkkklllllmmmmmnnnnnooooopppppaaaaabbbbbcccccdddddeeeeefffff
set FILL7=hhhhhiiiiijjjjjkkkkklllllmmmmmnnnnnooooopppppaaaaabbbbbcccccdddddeeeeefffffggggg
set FILL8=iiiiijjjjjkkkkklllllmmmmmnnnnnooooopppppaaaaabbbbbcccccdddddeeeeefffffggggghhhhh
set FILL9=jjjjjkkkkklllllmmmmmnnnnnooooopppppaaaaabbbbbcccccdddddeeeeefffffggggghhhhhiiiii
set FILL0=kkkkklllllmmmmmnnnnnooooopppppaaaaabbbbbcccccdddddeeeeefffffggggghhhhhiiiiijjjjj
set FILLa=lllllmmmmmnnnnnooooopppppaaaaabbbbbcccccdddddeeeeefffffggggghhhhhiiiiijjjjjkkkkk
then it doesn't?
any help would be really appreciated?
asjf
Maybe you are looking for
-
Hi All, In my scenario Proxy to Http (Sync), the message processing should be more secure. Please let me know the protocals which can be provide security (Https or digital singanture) and also let me know how this can be implemented in HTTP receiver
-
Missing parameter in Jdbc Ms access connection
hi everybody? how are you doing? i have a small problem i hope helps me get rid of it the problem is: i wrote a servlet which makes a connection to an MS access database and retreives a data. I am having an exception saying that one parameter is miss
-
I switched form droid to iphone yesterday. I used and loved Easy Money on my droid ofr 1.5 yrs. Before the switch, I saved all my data in an excel csv file on my pc. I am searching for a similar, simple money management app that will allow me to
-
Mam problem z instalacją wersji próbnej Adobe Elements 13. Przy ukończeniu instalacji pojawia się problem. W załączonym komunikacie można przeczytać: Exit Code: 7 Please see specific errors below for troubleshooting. For example, ERROR: DF016 ...
-
What´s the price for any Cisco ASA security parts?
Hello everybody, Please, I need to know the prices for the items: ASA5500X-SSD120= FS-VMW-2-SW-K9 L-ASA5525-TAM= I need to implement Cisco IPS with 2 Cisco ASA 5525X. Thank you.