Not getting Result please Help

Hi All
query_string VARCHAR2(2000);
query_string are EMPNO,ENAME
for rec1 in (SELECT query_string FROM p_table_name ) loop
utl_file.put_line(v_file, rec1.result1);
END LOOP;
not getting Result please Help
Regards

You may look at this:
michaels>  DECLARE
   cur            sys_refcursor;
   query_string   VARCHAR2 (2000) := '';
   p_table_name   VARCHAR2 (30)   := UPPER ('emp');
   p_stmt         LONG;
BEGIN
   FOR c IN (SELECT ROWNUM rn, column_name, COUNT (*) OVER () cnt
               FROM user_tab_cols
              WHERE table_name = p_table_name AND hidden_column = 'NO')
   LOOP
      query_string :=
         query_string || c.column_name
         || CASE
            WHEN c.rn != c.cnt
               THEN ' || ''|'' || '
         END;
   END LOOP;
   p_stmt := 'select ' || query_string || ' FROM ' || p_table_name;
-- DBMS_OUTPUT.put_line (p_stmt);
   OPEN cur FOR p_stmt;
   FOR rec1 IN (SELECT EXTRACTVALUE (t.COLUMN_VALUE, '/ROW//text()') result1
                  FROM TABLE (XMLSEQUENCE (cur)) t)
   LOOP
      /*  replace with utl_file in case ... */
      DBMS_OUTPUT.put_line (rec1.result1);
   END LOOP;
   CLOSE cur;
END;
7369|SMITH|CLERK|7902|17-DEC-80|800||20
7499|ALLEN|SALESMAN|7698|20-FEB-81|1600|300|30
7521|WARD|SALESMAN|7698|22-FEB-81|1250|500|30
7566|JONES|MANAGER|7839|02-APR-81|2975||20
7654|MARTIN|SALESMAN|7698|28-SEP-81|1250|1400|30
7698|BLAKE|MANAGER|7839|01-MAY-81|2850||30
7782|CLARK|MANAGER|7839|09-JUN-81|2450||10
7788|SCOTT|ANALYST|7566|19-APR-87|3000||20
7839|KING|PRESIDENT||17-NOV-81|5000||10
7844|TURNER|SALESMAN|7698|08-SEP-81|1500|0|30
7876|ADAMS|CLERK|7788|23-MAY-87|1100||20
7900|JAMES|CLERK|7698|03-DEC-81|950||30
7902|FORD|ANALYST|7566|03-DEC-81|3000||20
7934|MILLER|CLERK|7782|23-JAN-82|1300||10
PL/SQL procedure successfully completed.

Similar Messages

  • Hi, i just updated my iphone 3gs to iso5 now it will not activate ive ''try again'' alot but not getting anywere please help!!

    hi, i just updated my iphone 3gs to iso5 now it will not activate ive pressed ''try again'' alot but not getting anywere please help! i need my phone for work not had it too long and really annoyed lol thanks,

    Sorry, but Apple does not provide a downgrade path for iOS.
    Because downgrading is unsupported by Apple we cannot discuss it on these forums, but you can use Google to find information on how to install an older version of iOS on any device.
    Note that you will void the warranty and loose official support by Apple.
    Feel free to let Apple know at http://www.apple.com/feedback
    Anyway, give a try resetting all your settings:
    Settings > General > Reset > Reset All Settings

  • PDF File not getting generated - PLEASE HELP

    I have a jsp in a portlet from where in I call another jsp to generate a PDF file on the fly. IT is not working I have tried all sorts of stream please help.
    Calling JSP (Portlet)
    <tr>
    <td><netui:anchor href="print.jsp" target="new">Print
    </netui:anchor>
    </td>
    Called JSP, print.jsp:
    try {
    ServletOutputStream outStream = (ServletOutputStream)response.getOutputStream();
    outStream.write("BINARY OUTPUT".getBytes());
    outStream.println("PRINTLN OUTPUT--"+request.getParameter("empID"));
    outStream.flush();
    outStream.close();
    } catch {}
    As you can see I am just trying to Write some string in the print.jsp
    The word opens up but nothing is WRITTEN in it. Have tried all the OutputStreams. Please help why is it not getting printed even if set proper headers.

    There are some issues with this PDF file.  It's not tagged but even still it has some real problems.  I checked the file to see what created it and it was something called "Wine Postscript Driver" and the PDF Producer was "GPL GhostScript 9.10"  When you check the file in Preflight then you will begin to understand that this is a poorly created PDF file.  Here is a bit of the PDF Syntax report:

  • HT4623 i have iphone 4 with 4.3.2 version, i want to upgrade the software. but my phone is not getting synchronised on itunes and not getting detected. please help me

    i have an iphone 4 with 4.3.2 version, i want to upgrade the software. but my phone is not getting synchronised on itunes and not getting detected. also there is no update software tab under settings.please help me

    If your phone isn't being recognized by your computer, you need to follow the steps in this article to resolve that
    Also, some basic isolation needs to be done. Does it show up in itunes on any other computers? do you have other cords you can test with to see if it might be the cord? if the phone doesn't show up on any computers, it's likely your phone has a hardware issue
    http://support.apple.com/kb/TS1538?viewlocale=en_US is the article to use if you want to concentrate on trying to get a particular computer to recognize your phone

  • HT3887 my bluetooth says 'Not Available' how do i get it to work again. I have restarted the computer several times and have replaced the batteries in both the keyboard and mouse and yet it still is not working! please help

    my bluetooth says 'Not Available' how do i get it to work again. I have restarted the computer several times and have replaced the batteries in both the keyboard and mouse and yet it still is not working! please help

    I have had the same problem. It was cured by turning computer off and/or restarting it. I am not sure  if once was enough. I think shutting down must cut out whatever it is that blocks bluetooth. Good luck

  • I just got the iPhone 5 and noticed that the message alerts will only alert once . I have it set up as 3 times and its not working . Please help. I'm running 6.0.2 and I really starting to get ****** off with apple products

    I just got the iPhone 5 and noticed that the message alerts will only alert once . I have it set up as 3 times and its not working . Please help. I'm running 6.0.2 and I really starting to get ****** off with apple products

    Instead of getting annoyed, read the User's Guide and try basic troubleshooting.

  • I try to download the OS X Mountain Lion, and I keep getting an error saying, "The product distribution file could not be verified. It may be damaged or was not signed." Please Help!

    I try to download the OS X Mountain Lion, and I keep getting an error saying, "The product distribution file could not be verified. It may be damaged or was not signed." Please Help!

    If you have Intego VirusBarrier X6 installed
    1. Open /Applications/VirusBarrier X6.
    2. Click on the "Surf" button.
    3. Click on the "Ad Banner Filter" tab.
    4. Click "OFF" next to "Banner advertisement filter".
    5. Start the computer in Safe Boot, then restart the computer into normal mode.
    If don't not have Intego Virus Barrier installed
    1. Verify that the date and time is correct on the computer.
    2. Safe Boot once, then restart normally, then try downloading again.
    3. Try with a different user account if the issue persists
    If the issue persists
    Install Lion onto an empty partition (internal or external).
    Note: You can Use Disk Utility to live partition the internal drive and create a second partition large enough to install Lion.
    Start from the clean installation of Lion.
    Download Mountain Lion from the Mac App Store. Note that the original startup disk can be set as the destination for Mountain Lion during the installation process.

  • I'm getting an error message on Windows 8.  Missing apple application support.  Itunes will not install.  Please help!!, I'm getting an error message on Windows 8.  Missing apple application support.  Itunes will not install.  Please help!!

    I'm getting an error message on Windows 8.  Missing apple application support.  Itunes will not install.  Please help!!, I'm getting an error message on Windows 8.  Missing apple application support.  Itunes will not install.  Please help!!

    You probably need to either uninstall and reinstall itunes or to download the apple application support by itself
    you can download the itunes http://www.apple.com/itunes/ here
    then to do a complete uninstall / reinstall follow these instructions http://support.apple.com/kb/ht1923
    you could also use 7zip to extract the individual installer for apple application support from the itunes setup file http://www.7-zip.org

  • After stopping FF when I restart it , I get a pop up displaying Firefox already running but not responding. Please Help?

    After stopping FF when I restart it , I get a pop up displaying Firefox already running but not responding. Please Help?

    There are several possible causes, see [[Firefox is already running but is not responding]].

  • When i want delete music in my ipad i make sync in itunes without music but the music not remove from ipad i get problim please help me my email

    when i want delete music in my ipad i make sync in itunes without music but the music not remove from ipad i get problim please help me my email

    hi i think you can used itools is very esye for add and delete eny thing that is link http://www.itools.cn/multi_lang_pc_download.htm

  • I've just updated my iPhone to the new iPhone OS and now it won't work and iTunes won't recognise that it's there.  I've uninstalled iTunes and reinstalled twice and it's not working.  Please help.

    I've just updated my iPhone to the new iPhone OS and now it won't work and iTunes won't recognise that it's there.  I've uninstalled iTunes and reinstalled twice and it's not working.  Please help.

    I have not had wifi since November when I upgraded to the newest IOS version.  I called the Apple help line and they told me some things to do and I tried them all and they worked for a few hours and then wifi shut off again.  I kept doing what they told me and it worked for a couple more days and then I could never turn it on again.  My blue tooth doesn't work either.  I had to actually increase my data usage with AT&T becuase of this.  When I did that in December I went to the Apple store and was told that it is a hardware issue and since my phone is out of warranty I would have to pay for a new phone because they could not fix the issue.  My upgrade isn't up until June 2014 so not only do I have to wait for the upgrade and I am not paying for a new phone but I have to pay $10 plus extra a month on my cell phone bill because I was going over on my Data!!!  I have been beyond upset about this and Apple is not doing anything about this nor did they offer up some way to resolve the issue because obviously it is not just some rare incident if several people are having this issue.  Who knows how many people out there have had this issue and have not said anything about it.  Now there is a newer update that I can't do because it requires wifi in order to download.
    June can not get here fast enough and I may not go back to Iphone after dealing with this for so long with no help from Apple.

  • Ever since the last IOS update, my Iphone 5c has been acting weird. The time is always off; It says that its 9:30 in the morning when it's actually 2pm. I try to fix it, but it just goes back to not working. Please help!!

    I go to settings and switch "Automatic time" off and then back on. It works for a while, but then just goes back to being off. I've tried manually setting the time, but it just goes back to what it was before. If I send a text, it sends and then disapears. I can't see what I wrote! I went in to Apple to try and get it fixed, but they just restored my phone. It's still not working. Please help!

    It's not hacker or a virus. You are experiencing what a number of users of iOS 5 are experiencing now - sluggish or less than perfect iPad performance. It seems that for some of us - memory management has gotten a little out of whack with this most recent update. Some of the basic troubleshooting steps that you can try are ....
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    Close apps in the recents tray. Go to the home screen first by tapping the home button. Quit/close open apps by double tapping the home button and the task bar will appear with all of you recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner to close the apps. Restart the iPad. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    If you have Safari crashing issues - Go to Settings>Safari>Clear History, Cookies and Data. Restart the iPad. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    None of these steps should be necessary as part of your daily routine - the iOS is supposed to handle all of this without any user input. Once again - for some of us - the iOS is letting us down.
    Until Apple releases another update that resolves this issue for the "few" that suffer, keep these steps in mind and use them as needed.

  • Brand new Mac user help please! How do you connect a 17" monitor to the MacBook? I have the monitor plugged into the Mac, but the F8 that I am used to with PC does not work. Please help. Thanks.

    Brand new Mac user help please! How do you connect a 17" monitor to the MacBook? I have the monitor plugged into the Mac, but the F8 that I am used to with PC does not work. Please help. I am getting lots of spelling errors as the MacBook laptop screen is too small. Thank you so much! .

    Contentmom6 wrote:
    Brand new Mac user help please! How do you connect a 17" monitor to the MacBook? I have the monitor plugged into the Mac, but the F8 that I am used to with PC does not work.
    Normally, you just connect the monitor to the MacBook using a VGA adaptor that you can buy from an Apple Store.  Now try System Preferences > Displays > Detect Displays.  You should now be able to select a display mode for the monitor.  If it still doesn't work, then I'd check that everything is properly connected.  I've had problems with colours disappearing due to a faulty connection in the VGA adaptor.
    Bob

  • I have a 4s with ios 6 but when I place a call I can't hear the person I' m calling, the volume is high but it's not working. Please help.

    I have a 4s with ios 6 but when I place a call I can't hear the person I' m calling, the volume is high but it's not working. Please help.

    I have taken it back to the Apple store genius bar, but they say they don't see anything wrong. Well unless you use it all day and experience the problems when they happen, you wont see anything wrong. But there are lots wrong with it. But this would be the same store as I purchased the phone. And they backed up my old Iphone 4, but were not able to get anything to load back onto my new phone. So, I lost pretty much everything. But over time, some of my contacts have started showing up, although i am still missing over 800 of them.

  • TS3682 i earsed my iphone frome icloud and it didn't never work it still loading for 3 hours and still not working ? please help me so fast

    i earsed my iphone frome icloud and it didn't never work it still loading for 3 hours and still not working ? please help me so fast

    First man up and admit, that itunes does not suggest, but tells you that update is available and you made a
    decision to download and update. Once you man up - think if you still under warranty. If that is not security
    software according to the link provided, it is hardware. So second try another network, may be your network
    has additional security or firewall. And third decide if it worth to you pay 149 for that phone or get it replaced.
    Unless your 3gs under warranty.

Maybe you are looking for

  • I get a 'check activation' error, but my computer is authorized

    using DE 3.0 on a windows I get a "Check Activation" error when I try to open a file. My computer is authorized suggestions?

  • Ordering a Retina Display 15" MBP but have Some ?? Before I Order

    Is the turbo boost something that brings the installed processor up to the stated speed and really works as if that processor was installed?  why not just have the higher processor available for install? Is there anyway to get the Samsung Display opp

  • Hyperlink in table cell possible?

    Hello experts, is it possible to have a table that contains hyperlinks? If so, how? I've tried to configure a column as Action: System action: Hyperlink; Apply to: Self; Hyperlink address: "http://localhost/", but the column doesn't react to clicks.

  • Complex SQL Query in BPEL DB Adapter

    Hi, Is it possbile to write a complex query in BPEL DB Adapter using "Custom SQL Query"? I would like to write an IF ELSE condition in the DB Adapter similar what is given below.. IF((SELECT COUNT(*) FROM F5898001 WHERE CT58SRCNME = 'CA_TEST' AND CTJ

  • IW31/32/33 - Maintain Order Text

    Dear All, I am creating one Order using IW31. I have written one FM to change the long text of the item. I used SAVE_TEXT also I tryed to commit that with COMMIT_TEXT. The text is getting saved in  table STXH, but when I opend the same order in IW32