0

I need to compile a Pro*C - .pc file on Ubuntu.

So far what I have realised is that I need a Pro*C compiler to translate the Pro*C - .pc file into pure / standard C code.  But I need to have Oracle DB installed for doing that.

I'm confused with the procedures on internet and some say that there's no .deb package of Oracle at all which means it is not available for Ubuntu.

Where do I get this Pro*C compiler from? Is there any better way to install it separately without installing Oracle DB or any such workaround?

2

You may look for the pre-compiler starting from here:

https://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/prod/appdev/proc/proc.htm

Note that the pre-compiler needs the connection to an Oracle DB which contains the tables you use in the queries into the .pc file(s) that you have to pre-compile.

  • ok. Does that mean, I need to compile using pro*c compiler on the same machine that the Oracle DB is hosted on? – Tyrion Dec 8 '18 at 20:26
  • 1
    Yes, or on a machine that is connected to that DB, or a machine that has a copy of the table in the DB. – Sir Jo Black Dec 8 '18 at 20:56
  • 1
    Furthermore, I remember you might use some templates. But I don't remember very good. I use pro-c, but I've remote connection (via VPN) to DB I use to develop code. In the pro-c manual should be specifications. – Sir Jo Black Dec 8 '18 at 20:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.