Problems With CURSORS in PRO*C

Hi all,
I have a problem with cursors in proc
1. Can i declare a cursor and with in it another cursor in proc
like
EXEC SQL DECLARE emp_cursor CURSOR FOR
SELECT ........;
EXEC SQL OPEN emp_cursor;
for(;;)
EXEC SQL FETCH emp_cursor INTO :emp_structure;
EXEC SQL DECLARE dept_cursor FOR
SELECT ...............;
EXEC SQL OPEN dept_cursor;
for(;;)
EXEC SQL FETCH dept_cursor INTO :dept_structure;
EXEC SQL CLOSE dept_cursor;
EXEC SQL CLOSE emp_cursor;
2. im getting the following error after getting an result
ORA-01405: fetched column value is NULL
though i dont have any null columns.
please help me in this regard,
Thanks in Advance,
Trinath Somanchi,
Hyderabad.
null

Use Indicator variables and let me know if it solves your problem.
http://docs.jcu.edu.au/oracle/doc/server.804/a58233/dev.htm#2239

Similar Messages

  • I am having problems with my macbook pro and the dock.  About every fourth time I start the computer, the dock flashes on and off, then goes completely off and all I get is the spinning ball with brief moments of the cursor.  But the computer locks up.

    I am having problems with my macbook pro and the dock.  About every fourth time I start the computer, the dock flashes on and off, then goes completely off and all I get is the spinning ball with brief moments of the cursor.  But the computer locks up.

    Do you have Parallels installed by any chance?  There is a known problem that causes symptoms similar to this.  You do not need to actually be running Parallels at the time and nothing in ActivityMonitor would point to Parallels.  An update corrects the problem:
    http://kb.parallels.com/111541

  • How do I fix a initializing problem with my macbook pro? I only get to the blank screen with the apple logo and the "processing something"sign... it just doesn't start the system....

    How do I fix a initializing problem with my macbook pro? I only get to the blank screen with the apple logo and the "processing something" sign... it just doesn't start the system....
    Please help
    Marcelo

    If there is no loading bar, it's usually a problem with a third party kext file in OS X itself.
    You can press the power button down to force a hardware shutdown, then reboot holding the shift key down on a wired or built in keyboard, this will disable them and you go around and update your third party software.
    Gray, Blue or White screen at boot, w/spinner/progress bar
    Also take this time to backup your users files off the machine if possible.
    Most commonly used backup methods
    Sometime that won't work and you need to do more
    ..Step by Step to fix your Mac

  • After having yet another problem with my MacBook Pro and having to wipe the drive, I am now unable to sync my iPhones etc without erasing all the music on them. Is there a way around this? I have no other library!

    After having yet another problem with my MacBook Pro and having to wipe the drive, I am now unable to sync my iPhones etc without erasing all the music on them. Is there a way around this? I have no other library!
    iTunes is a mess! It couldn't find it's own libraries and I was forced to create a new one. Now I don't know where my music is or if any's missing.

    columbus new boy wrote:
    How crap is that?
    It's not crap at all.
    It's not that simple. For example, I've 3500 songs on my MacBook but don't want them all on my phone, so I have to manually select each song again???
    There has to be a solution.
    Why not simply make a playlist with the songs you want on the iPhone?
    and maintain a current backup of your computer.

  • Hi, i've just got a problem with my macbook pro: I bought it two years ago and suddenly, it stopped working. Im freaking out. No answer from the people hwo suposed to know about these problems. Any tip??

    Help!
    i had a problem with my macbook pro: on tuesday 16th (agoust, 2011) I went to a friend's house and show her some document i had in my computer, then i turned off my mac and it asked me: "there are some actualizations available, do you want to update before turn off?" i clicked on yes, waited for update and then the macbook turned off. When I got back home, I tried to turn it on again.... but nothing: it didn't sound baaaammmmm as allways, it didn't reacted. I tried again, but useless.
    The next day i went to one of these "authorized management centers", but they coudn't say anything or do anything about it. First they told me the problem was the battery, then the hard disk, then the video card... but don't. I left my mac there by two weeks, hoping they could help me, but they didn't. So I picked it up and go to other place.
    The rare thing is that i have just two years with my mac, and i didn't do anything stupid on it (didn't fall, get wet, microwave, hot, shocked, hit or anything) It just stopped working. Two times it turned on. But if not, it's the same story:
    When i pushed the button to turn on, sounds like baaaaaammmm, but then again, and again, and again, and the screen doesn't get blue or anything, it appears a foder with a "?" and then the computer turns off...
    Im wondering if this is a problem on this computers, because some of my friends told me things much like that that happened with their macbooks.
    What's going on??? why this is happening?? cn you help me?

    This article may help: A flashing question mark appears when you start your Mac.

  • I am experiencing some major problems with my MacBook Pro. I have had some issues with it turning on/off at random times, but today, when starting, I get the grey start-up screen and a recovery bar. After filling in approx 1/4 of the way, the machine dies

    I am experiencing some major problems with my MacBook Pro. I have had some issues with it turning on/off at random times, but today, when starting, I get the grey start-up screen and a recovery bar. After filling in approx 1/4 of the way, the machine dies. After starting it in recovery mode, it will not allow me to download OS X Mavericks- it says the disk is locked. Any ideas? I do not have a back-up and do not want to erase everything before I have explored my options. Help?

    try forcing internet recover, hold 3 keys - command, option, r - you should see a spinning globe
    most people will tell you to do both pram and smc resets (google) and if you still have issues, either clean install (easy) or troubleshoot (hard)

  • How to fix a problem with my book pro that has a gray screen with a folder with a question mark on it

    does any one know how to fix a problem with my book pro that has a gray screen with a folder with a question mark on it?

    Hello Mokhtary123 and welcome to Apple Support Communities,
    It will help us diagnose your problem to know the exact model, size, year built, RAM installed and OS you're running.
    But basically your system can't find the boot disk. Usually this is a symptom of a dead/dying/corrupted hard drive;
    A flashing question mark or globe appears when you start your Mac - Apple Support
    OS X Recovery
    http://support.apple.com/en-us/HT4718

  • I have a problem with my MacBook Pro is the almost of my app not working at all like a app store and terminal and other important apps please if u can help me as fast as you can cuz i don't wanna format it that's why am on Mac now not win ?

    i have a problem with my MacBook Pro is the almost of my app not working at all like a app store and terminal and other important apps please if u can help me as fast as you can cuz i don't wanna format it that's why am on Mac now not win ?

    Abdussalam.A,
    you mentioned that Terminal does not work at all for your MacBook Pro. What currently happens when you run Terminal? In what way does it not work?

  • After a startup problem with my macbook pro i put it as slave and formatted the internal Hard drive. Now i want to install OS X Mavericks from USB

    After a startup problem with my macbook pro i put it as slave and formatted the internal Hard drive. Now i want to install OS X Mavericks from USB
    How can i do that?

    What did you "put as slave?" What Mac model do you have, exactly?

  • Have a problem with my MacBook Pro.5,3 and monitor.  Intermittently, the desk top screen becomes broken up into vertical sections, which appear in the wrong order, creating a haphazard picture.    The Apple icon, usually at top left corner, appears in to

    have a problem with my MacBook Pro.5,3 and monitor.  Intermittently, the desk top screen becomes broken up into vertical sections, which appear in the wrong order, creating a haphazard picture.
    The Apple icon, usually at top left corner, appears in top right corner  in a strip including all that left hand.  When the computer is restarted, the screen goes back to normal.  But I have to move the mouse to the far left of the screen and then up until it reappears on the far right hand side of the screen so that I can hit shut down button.
    It seems to happen randomly though always on desk top and sometimes when I move mouse and computer switches on from rest mode.   My large flat screen is relatively new.
    The video card on this computer, which is approximately two years old, is Nvidia FeForce 9400M.
    Any help would be welcome as my usual source of assistance is not available and I am not well versed in workings of the Mac although I have used one for many years.

    That sounds like a Hardware problem.
    You may be able to confirm that with Apple Hardware Test, or make an appointmenst for a free Genius Bar evaluation.

  • I have problems with my macbook pro ... I recently bought "OS X Lion Mountain" but complete installation did not work ... purchases every time when I look biem appstore is still installed ... so now I have OS X version 10.8.3 ...

    I have problems with my macbook pro ... I recently bought "OS X Lion Mountain" but complete installation did not work ... purchases every time when I look biem appstore is still installed ... so now I have OS X version 10.8.3 ...

    does it say not installed or does it say "download" in app store purchases?
    if it say's download,  then it's there for future use if you need to download it again.
    see image below - i'm running Mountain Lion and it say's download in my App Store.

  • Image size problem with Retina Macbook Pro

    I exported raw images to Jpg and then resized as 1200 x 800 resolution images through "Easy batch Pro" app. When I uploaded them, they were extremely large. I've tried it several times and the result was always the same. Is it a problem with "Easy batch Pro" app, or something with Retina Display resolution? I also resized them as small size like 600x400, but the image was totally broke, and apparently had different look when I saw the original via aperture. What should I do?

    What's the problem exactly?  Call and complain.  It's up to them on how they want to handle it, but if it's something normal or minor, they'll just fix the issue under warranty and send you on your way.  That's how warranty works.  In instances where a user has had repetative failure of the same kind or others with the same system, a complete replacement was done, but those were issues that border on the "it's a lemon" idea.

  • Hello i have some problems with my macbook pro

    hello i have been having some problems with my macbook pro. for some reason it takes a very long time to turn on and once it gets to the password login it doesnt let me type the password.. but after about an hour or so it lets me log in..

    chrism15_15,
    is Mac OS X 10.6.8 what you currently have installed on your MacBook Pro? Do you still have your two grey installation DVDs which originally came in the box with your MacBook Pro?

  • I have a problem with using MacBook Pro as wifi router when connected to ethernet

    I have a problem with using MacBook Pro as wifi router when connected to ethernet. The Airport icon changes to show a laptop inside, my iPad shows connected (I think) but Safari will not operate. I tried pinging my iPad, it seems to see the iPad, but no connection to Safari or to other apps such as Good on the iPad. I have read many posting and tried repeatedly via Sharing in Systems Preferences, but no luck. Suggestions to fix, or is this a Lion problem?

    Usually this is a problem related to the domain name server address. If you open Network preferences, select your Ethernet port then click on the Advanced button then on the DNS tab. You will likely see an entry like 10.0.1.1 already listed. Click on the Add [-] button and enter 208.67.222.222 then click on the OK button and then on the Apply button.  See if this helps.
    if it does not help then repeat the above but with the Airport port.

  • HT201177 hello i have a problem with my macbook pro

    hello,i have a problem with my macbook pro its graphics are not doing gud its getting struck when iam moving to a diffrent desktop,so can u kindly tel me a solution to the problem

    Check to see how many programs you have open. CMD +Option + ESC buttons and maybe force close programs you aren't using. Remember the "red x" does not completely quit out of the program, to quit permanently use the drop down menu up top, click "application name" from drop down and than go to Quit "application name".

Maybe you are looking for