Oracle Pro*C Cursor Primer Tutorial

Oracle Pro*C Cursor Primer Tutorial

Oracle Pro*C Cursor Primer Tutorial

Oracle databases are great in design and in their range of software tools. The SQL is great and their command line tool SQL*Plus makes the creation of procedures around a job, especially reporting type jobs, very easy. Oracle SQL Developer is a great user-friendly application to enhance the Oracle suite of software to help maintain Oracle databases. You can do reports straight from a view of the database with ordinary SQL and if it asks for more drilling down, Oracle has this great procedural SQL language called PL/SQL. For fast speeds as well, add Pro*C (Pro*C++ these days) into the mix. Pro*C(++) embeds SQL code into your C(++) code making use of cursors and other database smarts. Oracle is such a solid database, different arrangements of which work with large and small amounts of computing “grunt”.

This tutorial shows you Pro*C and the use of a cursor to analyze an SQL SELECT statement’s data. We use Visual Studio 2010 Express on Windows and create a C++ project which supports C code.

Below is a bit of Oracle history.

Oracle Corporation is an American multinational computer technology corporation headquartered in Redwood City, California, The United States. The company specializes in developing and marketing computer hardware systems and enterprise software products – particularly its own brands of database management systems. Oracle is the third-largest software maker by revenue, after Microsoft and IBM.[3]

The company also builds tools for database development and systems of middle-tier software, enterprise resource planning software (ERP), customer relationship management software (CRM) and supply chain management (SCM) software.

Larry Ellison, a co-founder of Oracle Corporation, has served as Oracle’s CEO throughout its history. He also served as the Chairman of the Board until his replacement by Jeffrey O. Henley in 2004. On August 22, 2008, the Associated Press ranked Ellison as the top-paid chief executive in the world.[4][5]

Let’s see Oracle link and include directory requirements when used to interface Pro*C to Visual Studio 2010 Express on Windows within this tutorial.

This tutorial builds on the install which happened during Oracle Install PL/SQL Primer Tutorial.

Link to Oracle information … from Wikipedia from which quote above comes.
Link to Oracle home … Home of Oracle.
Link to Oracle Pro*C … information.

Download Oracle Pro*C .c programming code and rename to … Pro-C_Cursor.c as required.
Download Oracle Pro*C .h programming code and rename to … Pro-C_Cursor.h as required.

My personal experience writing Pro*C in a commercial environment goes back a bit and you will see how Pro*C has changed a lot by examining links at this webpage. In those days you would write .pc files of code, which would be put through a precompiling process by proc.exe, but none of this happened getting this tutorial together interfacing to Visual Studio 2010 Express by Microsoft. Back then the way Pro*C utilized embedded SQL was very clear.

Two great websites for research on this topic are How to Run C Program in Visual Studio and How do I compile one of C/C++ Oracle Examples ? (Windows) … thanks a lot! The implication of the first is that, yes, you can write C in a Visual Studio C++ project if you arrange that project the correct way.

If this was interesting you may be interested in this too.

This entry was posted in Database, eLearning, Tutorials, Visual Studio and tagged , , , , . Bookmark the permalink.

13 Responses to Oracle Pro*C Cursor Primer Tutorial

  1. anal kratom says:

    I‘¦ll correct away grasp your rss feed as I canÒ€ℒt in finding your email subscription hyperlink or e-newsletter service. Do youÒ€ℒve any? Please let me understand so that I may subscribe. Thanks.

  2. This can be basically a good affecting approach to this certain point. Thanks, I’m definitely happy you shared your thoughts in addition to techniques and I find that i’m in agreement. I unquestionably appreciate your quite clear writing additionally , the effort you’ve spent with this posting. A terrific quite a few thanks for that great function also pretty great luck together with your web web-site, I’m awaiting new subjects within the future.

  3. Get acquainted with other people together with family members better regardless that these kind of shows, it truly is bound to enable you to consider carefully.

  4. Wow, suprisingly I never knew this. Maintain up with good posts.

  5. Amazing weblog! I located it even though browsing on Yahoo News. Do you might have any suggestions on how to get listed in Yahoo News? IÒ€ℒve been trying for a whilst but I never appear to get there! Cheers

  6. Responsive website development is essentially something put to use for speech communications. Further more, it happens to be used by structuring wonderful settings and also pics to add more convenience to your site. This method offers your main site ideal to unique browser’s programs display screen because of flexible elements during organizing a website.

  7. Some of the alternatives to consider if you prefer to download your favorite shows rather than streaming the video, or if you live overseas, include Fast TV Downloads. Once you’re a member, you can search for and download virtually any tv show and then you can just watch it whenever you like without any sort of buffering problems. What’s more, if you have a laptop, you don’t even need to be at home to download, because you can grab shows as long as you’re connected to the internet.

  8. You have observed quite intriguing details ! ps decent internet site.

  9. Eric Skinner says:

    magnificent post, very informative. I wonder why the other specialists of this sector don’t realize this.You must continue your writing. I am sure, you have a huge readers’ base already!

  10. PureLocal | Australian Business Directory https://www.purelocal.com.au PureLocal is a hugely popular Australian business directory advertising the opening hours , customer reviews , addresses & phone numbers of over 100000 …

  11. HIFU says:

    Good info. Lucky me I found your blog by accident (stumbleupon). I have bookmarked it for later!

  12. of course like your web-site however you need to take a look at the spelling on quite a few of your posts. Many of them are rife with spelling problems and I to find it very troublesome to tell the truth then again I’ll definitely come back again.

  13. “You made some decent points there. I looked on the internet for the subject and found most people will approve with your website.”

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>