This is a show-stopper

I'm relatively new to PL/SQL Script, trying to extract data from DB Oracle 11 g SQL * MORE.

I put all the select elements of the select query ORACLE folder as defined below.

I do not have all of the select query as its long list of items.

Appreciate your help and thank you in advance.

DECLARE

file_dir varchar2 (20): = ' / usr/tmp2;

file_name varchar2 (20): = "Emp_Data";

file utl_file.file_type.

cursor PnJD_cur is

Select the request;


SheikYerbouti PnJD_cur % rowtype;


BEGIN

PnJD_cur OPEN;

WHILE TRUE

LOOP

Look FOR PnJD_cur IN SheikYerbouti;

WHEN the OUTPUT PnJD_cur % NOTFOUND;

file: = utl_file.fopen (file_dir, file_name |'.) CSV', 'w');

UTL_FILE.put (file, SheikYerbouti);

UTL_FILE.fclose (file);

END LOOP;

CLOSE PnJD_cur;

dbms_output.put_line (file_name |'.) CSV');

END;

and run the query, and receive error below.

SheikYerbouti PnJD_cur % rowtype;

*

ERROR on line 125:

ORA-06550: line 125, column 10:

PLS-00402: alias required in the SELECTION list of the cursor to avoid duplicate column

names of

ORA-06550: line 125, column 10:

PL/SQL: Ignored Element

ORA-06550: line 131, column 22:

PLS-00320: the declaration of the type of the expression is incomplete or

Malformed

ORA-06550: line 131, column 2:

PL/SQL: SQL statement ignored

ORA-06550: line 135, column 25:

PLS-00320: the declaration of the type of the expression is incomplete or

Malformed

ORA-06550: line 135, column 2:

PL/SQL: Statement ignored

Thank you

Gaura

OK, a few basics. CREATE OR REPLACE PROCEDURE command is used to create, compile, and store the procedure in the database. It does not execute the stored procedure. We need to run it explicitly. EXEC is an API over SQL. So if you want to run a stored procedure in SQL more then Yes you can use EXEC command. On the other hand, you can put your procedure in an anonymous block and run it like this

Start

call_dump_csv;

end;

/

Your code

create or replace procedure call_dump_csv

as

number of l_rows;

Start

l_rows: = dump_csv ("select * from apps.") TB03569A where rownum<25',',','MY_FILE_DIR',>

exec call_dump_csv;

end;

is incorrect.

(1) you have the SQL more EXEC command inside a PL/SQL code.

(2) you call call_dump_csv in call_dump_csv.

The correct way is

(1) create the procedure

create or replace procedure call_dump_csv

as

number of l_rows;

Start

l_rows: = dump_csv ("select * from apps.") TB03569A where rownum<25',',','MY_FILE_DIR',>

end;

/

(2) run the procedure

Start

call_dump_csv;

end;

/

or SQL more

exec call_dump_csv

Tags: Database

Similar Questions

  • 'About this Mac'-&gt; 'Storage' shows I've got 157 GB of Apps

    'About this Mac'-> 'Storage' shows I've got 157 GB of Apps, that has exhausted most of my storage space.

    The problem is that I don't think that having many applications on my Mac. No idea why it's like this?

    BTW, the size of the folder/applications is less than

    ➜ ~ du-sh/applications

    11 G/applications

    He gets these numbers of index Spotlight. Which may indicate that your index is corrupted. You can try to rebuild:

    Rebuild the index on your Mac - Apple Support Spotlight

    .

  • I created a separate administrator account and can't get it to appear at startup.  I need to send my Macbook repair and need this ID to show when they turn on him. How do I do that?

    I created a separate administrator account and can't get it to appear at startup.  I need to send my Macbook repair and need this ID to show when they turn on him. How do I do that?

    If you added via the preferences system/users and groups, it should appear as a long time that you have set the display of connection to appear. To do this, go to System Preferences/security and privacy. Then check the check box turn off automatic connection . This should show the login screen at startup. You may need to click the lock (lower-left) icon to unlock the setting to check it out.

  • Hi, I'm Barbara, I downloaded Photoshop CC with bridge. When I started the implementation of bridge, I noticed that the name of the creator in IPTC Core indicates as BarBa; Barbara G Reed - it is not correct and I need to fix this model to show the right

    Hi, I'm Barbara, I downloaded Photoshop CC with bridge. When I started the implementation of bridge, I noticed that the name of the creator in IPTC Core indicates as BarBa; Barbara G Reed - it is not correct and I need to fix this model to show the right information that help is appreciated


    Hi bgrphoto,

    Please follow the link below and look for "edit metadata in the metadata Panel.

    Bridge help | Use metadata in Adobe Bridge

    It will be useful.

    Kind regards

    ~ Mohit

  • NIKON D5000 NAVE - Lightroom 2.6 and PSE show quite different colors of this Nikon software show

    With my Nikon D5000 DSLR camera I took recently photos of small blue flowers. I had mounted my Nikon D5000 to create for each photo a NEF file and a JPEG file (and had set my camera to use only automatic while Balance).

    I noticed that for NEF files Lightroom 2.6 (and also PSE 7, which use internal Camera RAW) shows me the blue colours of the flowers quite different from what I see with PSE for the jpeg file. I feel, that it is in Jpeg files, the blue color is close to reality; and that's with files NAVE that Lightroom and PES show a blue colour which are quite different from the reality.

    I also watched the photo files with the 'View Nx"1.3.0 NIKON software that came with my camera. With 'View Nx' colors Blue (both with NEF and Jpeg files) are very vlose than what I see with PSE 7 in the jpeg file (and quite different from what I see with LR and PSE for the.) NEF file).

    I mentioned this problem using Nikon. They suggested that the software software Nikon and Adobe use different algorithms; and Nikon algorithms are better/more fit for Nikon cameras than more generalized algorithms for Adobe that need to be supported a very large number of cameras.

    But... .it is Lightroom I want to use to process my files NAVE and PSE I want to organize my Photos. An expert in LR/Camera-RAW can help me? I would like to find a way to do with LR and PSE in my files of Photo D5000 NAVE of blue colors that are close to reality, and close this software Nikon shows me on my PC. Please note that I am far from being a professional and that I understand probably not explain complicated.

    Thank you very much in advance.

    An additional note, this is perhaps not relevant: I have used LR to convert my NEF file to a JPEG file format and looked blue in the result. Looks the same as what LR and PES show me to the. NAVE file (and seems different from the crreated the NIKON camera jpeg file).

    One of the colors on the standard "ColorChecker" target is blue-flower blue, so they would be aware of how 'far' color can be in certain situations.  Without seeing the photo in question, it is not easy to guess if there is some special circumstance that makes this particular set of photos not close to reality for you.

    Another thing that can affect the color rendering is that you have any custom-curves or any other color of active treatment in your camera, even things that the d-lighting affects a bit, but none of these processing parameters specific to the Nikon in your camera apply to format RAW Adobe conversions because Adobe has no idea how the Nikon software works.

    If you are concerned about your RAW and JPG is not the same thing, then one suggestion would be to define the Standard default camera profile in LR to your Nikon camera.  I did until I got a ColorChecker passport and was able to make my own color profiles that are even closer to what I want.

    Remember that making a profile of the camera is an art at least as much as a science in order to make some colors look more correct in various colors of lighting can make others seem less correct.  I suspect that the Adobe Standard profile is optimized for the color of skin is the best, because human perception is very sensitive to people who are just looking or not, but less able to say if a blue flower is right if they weren't really there.  I usually take pictures of nature subjects, not people and quit using the Adobe Standard once the camera-match profile those who were released a few years ago.

    If you had several models of Nikon cameras and other renderings blue flowers much better than your D5000 so this is maybe a reason to ask Adobe to take another look.  If you had not taken a JPG to compare with your FIRST, would the blue flowers look bothered you or not?

  • Hello... I m new to this error 13 shows and I need fast response

    Hello... I m at this news and here's some update for windows media player I click Update after the update when I restart the system after that songs do not play but the error is showing the error 13 and I need quick response

    Hi Munawar sultana,

    ·         What is the full error message?

    ·         What is the type of the file that you are not able to play with Windows Media Player (WMP)?

    Given that the problem occurred after the update of Windows you can run restore the system to the point when it was working fine.

     

    How to restore Windows XP to a previous state

    http://support.Microsoft.com/kb/306084

    Let us know if it helps.

  • My sound/speaker icon has disappeared from the great end of my taskbar... How can I get this back to show?

    also how do I ensure it used to disssapear again?

    Hello

    Thanks for posting in the Microsoft Community.

    If I understand correctly, you are faced with the question with its icon in the notification area.

    Let us try the following steps to retrieve the sound icon in the notification area; I'm sure this will help you to solve the problem.

    a. right-click on the taskbar, and then click Properties.

    b. click Customize under the Notification area.

    c. under Volume (speaker), select Show icon and Notifications.

    d. click Ok, click Ok to save the changes.

    e. check now the taskbar, the sound icon is displayed.

    Please reply with the status of the issue, so that we can better help you.

  • ignore this thread - USER_TAB_COLUMNS shows tables more than USER_TABLES

    PLEASE IGNORE THIS THREAD.
    It's been posted a few minutes ago.

    (I didn't know that this forum was so active the my question would disappear as soon as the first page in a few minutes.) Sorry).







    Probably a matter of newby, but how could this be possible? This is what I see in my system. Why the second query does not return table 3?

    SELECT TABLE_NAME, COLUMN_NAME
    OF USER_TAB_COLUMNS

    Table 1, column 1
    Table 1, column 2
    Table 2, column 1
    column 2 of table 2
    column 1 of table 3
    Table 3, column 2

    SELECT TABLE_NAME
    FROM USER_TABLES

    Table 1
    Table 2

    Edited by: mgro November 23, 2009 03:45

    Hello

    His car user_tables shows the list of all the tables owned by the particular user.
    And user_tab_columns displays the list of all tables and views (columns) belonged to the particular user.

    So the 3rd table could be seen in your case.

    Concerning
    Anurag

  • This health report shows Firefox works well

    Firefox version 32.03
    Since the last update, I noticed the startup time of browser has increased and if I open one or two tabs the internet GET disconnect for a few seconds.

    There is not any changes on the computer that's why I think it's strange.
    I checked the health report Firefox which I do not know is good or bad. So please advice.

    I couldn't reach the screenshot of the health report, I will join in next post after this one for reference.

    Thank you.

    Hello

    Thanks for the screenshot, Your Firefox seems to work very well, but as you say he opened a bit more slowly, please try to open Firefox in safe mode.

    Just press and hold down SHIFT and double-click the desktop icon to open Firefox in safe mode.
    Or
    Go to help > restart with add-on disabled > restart.

    You can submit a report on health with the start time of course 3-4 days to present.

  • How to separate 'bookmark this page' and 'Show bookmarks' in verse. 29.0.1?

    I have since downgraded worms. 29; Does anyone know how to split the icon star Bookmarks window? I preferred to have the bookmark this page in the address bar.

    I do not know the CTRL + shortcut D; It is more a cosmetic problem that's functionality.

    You can watch the classic extension theme restaurateur restore some features that has been lost with the arrival of the Australis style in Firefox 29.

    • You can check the settings of the extension of the CTR through the Options/preferences button on the page "Firefox/tools > Modules > Extensions.
    • You can find additional toolbar buttons and additional toolbar settings in customize (Firefox 3-bar menu button > customize)

    See also:

  • I reinstall firefox &amp; now this isn't show "zonealarm toolbar" &amp; "so think web video downloader for firefox". It was working fine before... now it does not show yet. Help, please

    I uninstalled firefox, keeping its data as it is then reinstalled, but it does not appear
    'zone alarm toolbar' & ' so think web video downloader for firefox button "...

    This has happened

    Each time Firefox opened

    == I reinstalled firefox

    Hello SPT.

    If you go to tools > Modules > Extensions, you can see the desired extension registered? They may be incompatible, or have been disabled for some reason any.

  • Unable to get list of msg sender true column. All are the same in messages from yahoo groups

    38.4 TB. I noticed then receive messages from groups of yahoo which I agree with in the list of TB message column is the same for all messages (group name - e.g. [email protected]) whicg is also the name of the recipient. So it is impossible to say who posted the message. I tried the 3rd party add-on "does not show the address ' but add the @sender column has exactly the same thing.
    I tried my old version of TB 2.0.0.24 on the same profile and message folder and this correctly displays the original sender.
    I do not know what header field to TB last gets the info From (sender) where what rules he applies for the calculation, but it is clearly not working as old tuberculosis that renders correctly the list of messages.
    It looks like the old TB gets form From (sender) X origin of the header field.
    I think that new TB must be changed or the user to give very minimal additional choices through message list columns.
    This is a show-stopper for me and I had to go back to to 2.0.0.24 so yahoo group message listss appear correctly.

    Access your address book and find where you saved this group. Then remove the name that you have registered with this group.

  • [4.0 AI2] Job export DataPump: "SNA must be all positive.

    I would like to recommend Developer SQL as user interface for the Data Pump work (since we do not have OEM).

    On export work interface, choose "view consistent export data read" fails if the RCS is > = 2147483648. I get the error "SNA must be all positive.

    While I'm here, the option 'Deadline' fails too, since the displayed date uses the local settings and the PL/SQL code generated uses the database settings!

    This is a show-stopper for recommend the tool, because I don't want exports to read compatible...

    Hey I looked at the code, and in fact, we use an int that I will have this changed. Can you clarify what your light with the date I don't see your problem...

    Thank you

  • Looking for Info and or opinions

    Hey I would like to get some feedback from you all on an issue.

    If you have applied, lets say something for virtualisation but to launch it or even to install the application, the server that the application would be installed on must be a member of a domain.

    What are you guys thoughs on it?  Would this be a show-stopper for you or would it not really of importance to you at all?

    Any comments would be great here please

    Steve Beaver

    VMware communities user moderator

    VMware vExpert 2009

    ====

    Co-author of "VMware ESX Essentials in the data center" virtual

    (ISBN:1420070274) Auerbach

    Come and see my blog: www.theVirtualBlackHole.com

    Come follow me on twitter http://www.twitter.com/sbeaver

    *Virtualization is a journey, not a project. *

    Hi Steve,.

    I think it will depend on the environment. If I had a dedicated test environment, I wouldn't mind dropping something to evaluation purposes (this is a test environment is done for, right?) - as long as he don't mess with my AD schema. If an application messes with the schema, and then you talk about a "project" to make even a simple assessment - unless I get up a virtual domain dedicated, which is, in itself, a royal pain.

    My guess is that most large customers will have a dedicated test environment that they can drop a product in. The same is not likely to be true for the SMB space, but then the SMB is not likely to be faced with control of change as a corporate customer requirements...

    Ken Cline

    VMware vExpert 2009

    VMware communities user moderator

    Blogs about: http://KensVirtualReality.wordpress.com/

  • What happened to 'bookmark this page' selection in the menu "Show bookmarks" on the right?

    Now, I have to:
    1) click the Blue Star stupid to get the menu to place my new bookmark where I choose to do instead of going to unsorted bookmarks again...
    OR
    (2) raise or having the menu bar and click on the menu choice "Bookmarks" to "bookmark this page", which shows what I would call the menu choice or sorting which allows me to access my bookmarks menu...

    .. where I wanted to go to a bookmark, AND I get to select 'choose', which is what I used to do when you add a bookmark.

    I want the selection 'bookmark this page' return on the "Show bookmarks" list on the right... where it belongs. Why everyone wants to keep hide useful tools?

    29 Firefox STINKS and I got in trouble from the beginning... and since the mistake of reset.
    I now have a record of things that I have no idea what to do what while resetting, I got "Oooops it's embarrassing, we have a problem" or something. Clues about what to do with all these 'junk' (now to me) might also be useful.

    You can press Ctrl + D if you still want to see the popup Page Bookmarked.

    The following add-on makes bookmarking easier in different ways. Among other things, he is able to remember the last folder.

Maybe you are looking for