1752717 Members
5828 Online
108789 Solutions
New Discussion юеВ

Re: Pro*C

 
Debasis Mishra
Occasional Advisor

Pro*C

I have a file a.pc
How i will compile and excute this pro*c file?
6 REPLIES 6
SANTOSH S. MHASKAR
Trusted Contributor

Re: Pro*C

Is it Oracle? Which version?

-Santosh
Peter Godron
Honored Contributor

Re: Pro*C

Debasis,
as a start look at the demo_proc.mk program in the precomp directory.

Thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=963168 has some useful links as well.
Peter Godron
Honored Contributor

Re: Pro*C

Debasis,
the general steps are:
ProC -> C
This step replaces all the SQL commands into code which the C compiler can handle.

After this the process is as normal C-> Obj, Obj -> Executable.

You can execute your executable from the command line: ./program parameter1 parameter2
or call it as an external function.
Julio Yamawaki
Esteemed Contributor

Re: Pro*C

Hi,

Go to $ORACLE_HOME/precomp/demo and issue:
make -f ins_precomp.mk a.pc
to compile a.pc program.
To execute: ./a
Use oracle user.

Regards,
Peter Godron
Honored Contributor

Re: Pro*C

Debasis,
can you please update with your progress.
Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#28

You have awarded 0 points to 20 responses.
Debasis Mishra
Occasional Advisor

Re: Pro*C

yes i got solution. thanks for help.