Pro*C in my local PC.


 
Thread Tools Search this Thread
Top Forums Programming Pro*C in my local PC.
# 1  
Old 10-27-2010
Java Pro*C in my local PC.

Hi All,

I want to write Pro*C code and compile in my local PC.
I am sure my Turbo C compiler does not do that.

Please help me to know:
->What all the items I need to install?
->Is there any compiler/editor where I can write Pro*C code which converts the embedded SQL to C Struct and then build object files and project/executable?
->What database i can install.

I am looking for free product. Please help.

Thanks and Regards,
Aj
# 2  
Old 10-27-2010
Pro*C, that is an Oracle product and nobody else's. To build programs using it you need to use Oracle's precompiler to convert Pro*C programs into ordinary C programs, after which you can compile it in the compiler of your choice -- assuming it has the correct libraries, etc. Which Turbo C does not. Instead, it has this:

Image

Turbo C is a C compiler for DOS. Not "DOS prompt", but real, actual DOS programs -- 16-bit .exe or .com files which can run in a vintage 1981 IBM Personal Computer. It's missing libraries and headers that anyone these days would consider standard; it doesn't even support network sockets, let alone Oracle, and hasn't been extant for nearly twenty years. I don't know why people use it anymore.

For modern Windows alternatives I suggest things like Dev-C++, or Microsoft Visual Studio.

If you can get just the Oracle client libraries that should have Pro*C in it, you don't need the full-fledged server I think. What licenses you need to use the client I have no idea.
This User Gave Thanks to Corona688 For This Post:
# 3  
Old 10-27-2010
GNU C/C++ seems like a good choice. Oracle proc produces C/C++ from ESQL C and compiles it using the command you supply, as I recall. Sybase was simpler, just giving you a preprocessor that I wrote wrappers for, to get accurate original code line numbers on error and debug messages using # line_no "file_name" directives, so easy!

Client softeare is often free, but development tools may not be. Beyond proc, there is also open source ESQL C, JDBC and JSQL (the one of nmany that means embedded SQL in JAVA). I have even gotten lazy and just pre- or post-processed sqlplus in plain C/C++ or just sed!
This User Gave Thanks to DGPickett For This Post:
# 4  
Old 10-27-2010
So you mean in order to comile my code. I need to:
Install ORACLE Database - > ORACLE Client -> Package to get Pro*C Libraries - > Editor for writing code.

Is it right?

Thanks and Regards,
Aj
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

To run a local shell script in a remote machine by passing arguments to the local shell script

I need to run a local shell script on a remote machine. I am able to achieve that by executing the command > ssh -qtt user@host < test.sh However, when I try to pass arguments to test.sh it fails. Any pointers would be appreciated. (7 Replies)
Discussion started by: Sree10
7 Replies

2. AIX

Do I need to configure my local windows to FTP files from local windows to a UNIX AIX server?

Hi Friends, I have this script for ftping files from AIX server to local windows xp. #!/bin/sh HOST='localsystem.net' USER='myid_onlocal' PASSWD='mypwd_onlocal' FILE='file.txt' ##This is a file on server(AIX) ftp -n $HOST <<END_SCRIPT quote USER $USER quote PASS $PASSWD put $FILE... (1 Reply)
Discussion started by: rajsharma
1 Replies

3. Solaris

Makefile for PRO*C

Hi, is there anyone have any good website for creating a makefile for a PRO*C program? I have a Makefile, but don't understand what is written inside... so need to study it... pls help... (2 Replies)
Discussion started by: lsy
2 Replies

4. UNIX for Advanced & Expert Users

Pro*c

Hi All, Here is my requirement.. " previously I have one catalogue. Recently they released one new catalogue.No w I have to write a PRO*C scripts for the following Requirement.... The script was run to remove supplier cost price changes where the new cost equalled the old cost,and this... (0 Replies)
Discussion started by: user71408
0 Replies

5. Shell Programming and Scripting

For Pro*C

I have write a Pro*C file. How i will compile and excute that Pro*C file. Please tell me the command. Suppose my file name is test.pc (1 Reply)
Discussion started by: debasis.mishra
1 Replies

6. Programming

Regarding pro*c

Hi i would like learn pro*c,i need suggestion for which book is so worthful for beginners..my idea about pro*c is,using pro*c we can connect our C/C++ source with Oracle...is that correct or enything else.... Thanks in advace Sarwan (1 Reply)
Discussion started by: sarwan
1 Replies

7. UNIX for Dummies Questions & Answers

domain logon problem - FreeBSD PDC w/ win2k pro and winxp pro

this is the seventh problem i'm having with samba. for some reason, i cannot logon to the domain. i've created user accounts... and i was able to establish a connection between the samba server (my PDC) and my workstations by logging in as "root." however now when i try to logon it gives... (5 Replies)
Discussion started by: xyyz
5 Replies

8. UNIX for Dummies Questions & Answers

why i have local.profile, local.cshrc,local.login instead of .profile, .login ?

Hello again ! Thanks for response of my first question. there is my second quesiton why i have local.profile instead of .profile file ? my all files in pwd shoes local. before any file. is anybody can tell me about that ? Thanks Abid Malik (5 Replies)
Discussion started by: abidmalik
5 Replies
Login or Register to Ask a Question