Problem with the stored procedure

Hello everyone,
I am French and I am trying to create a stored procedure in my oracle database 10 g R2.

Here's the code I developed:

create or replace procedure recgenerator (max_row in number, min_row number) is
Start
cursor c_nume_clie is
Select nume_clie
from (select rownum rn, nume_clie of the customer)
where < = max_row and rn > rn = min_row;
r_nume_clie c_nume_clie % ROWTYPE;
Start
Open c_nume_clie;
loop
extract the c_nume_clie in r_nume_clie;
When the output c_nume_clie % NOTFOUND;
dbms_output.put_line (r_nume_clie.numero);
end loop;
close c_nume_clie;
end;
end;
/

As you can see, the point is to allow a user to select the folder he wants only. I did a slider to get this, but oracle returns me an error and I can't find the source.

Here is the oracle error:
SQL > show errors
Mistakes pour the RECGENERATOR PROCEDURE:

LINE/COL ERROR
-------- -----------------------------------------------------------------
3/11 PLS-00103: symbol 'C_NUME_CLIE' met instead of one of
following symbols:
:= . ( @ % ;

could you clarify me please?

Thank you

PaulNero

When you want to print something on the screen you should be sure that you have added your connection to DBMS output.

Go to the menu 'View'--> 'DBMS output. You can see that there is a new Dbms output window, where you can click the green sign to add your connection. Execute the statement again and you will see that the statement was printed.

Tags: Database

Similar Questions

  • Problem with the enforcement procedure

    Hi guys, I'm having some problem during the procedure call, but it will not display the errors while running.

    I post my code please guide me...

    Create Or Replace procedure Report_Main (A in Varchar2: = 1).

    As

    EmpNo Namelist;

    EmpName Namelist;

    DT Datelist;

    Begin

    Run immediately Q'[Select Distinct B.Empno, B.Empname, A.Dt From(With Qry1 As)

    (Select Rdate Report1 where Empno = "M-336" and To_Char (Rdate, 'Mm') = To_Char (Sysdate, 'Mm') And To_Char (Sysdate, 'Yyyy') = To_Char(Rdate,'Yyyy'))

    Union All

    Select the Pdt in Meeting1 where Empno = "M-336" and To_Char (Pdt, 'Mm') = To_Char (Sysdate, 'Mm') And To_Char (Sysdate, 'Yyyy') = To_Char(Pdt,'Yyyy')

    Union All

    Select D.Hdate in the Trusmart.Loginfo, says C, Holidaymastb D

    Where A.Empno ='M - 336.

    And To_Char (D.Hdate, 'Mm') = To_Char(Sysdate,'Mm')

    And A.State = C.States

    And D.Statesid = C.Statesid

    And To_Char (Sysdate, 'Yyyy') = To_Char(Hdate,'Yyyy')

    )

    Select Dt

    Of

    (Select Min_Date + (Level-1) Dt of)

    (Select Min (Rdate) Min_Date,

    Max (rdate) Max_Date

    Of Qry1)

    Connect by level < = (Max_Date - Min_Date) + 1) Qry2

    If not Exists (Select 1

    Of Qry1 Q1

    Where Q1. RDATE = Qry2.Dt)

    And Trim (To_Char (Dt, 'Day'))! = "Sunday".

    Order By Dt) A, B Empma

    Where B.Empno ='M - 336.

    Order By A.Dt].

    Bulk collect into Empno, Empname, Dt;

    If Sql % found then

    Report_Mail_Proc (Fromad = > ' <[email protected]> ', )

    Toad = > ' < [email protected] >' ,

    EmpNo = > Empno,.

    EmpName = > Empname;

    DT = > Dt);

    End If;

    Exception when No_Data_Found then

    Null;

    End;

    /

    Create Or Replace procedure Report_Mail_Proc (Fromad in Varchar2,

    Toad in Varchar2,

    Topic in Varchar2: = 'Notification of the relevant Date. "

    Message in Varchar2: = 'Dear team',.

    EmpNo in Namelist

    EmpName in Namelist

    DT in Datelist)

    As

    SMTPHost varchar (255): = "monentreprise.com";

    A Utl_Smtp.Connection;

    Begin

    A: = Utl_Smtp.Open_Connection(Smtphost,25);

    Utl_Smtp.HELO (A, SMTPHost);

    Utl_Smtp.mail (A, Fromad);

    Utl_Smtp.RCPT (A, Toad);

    Utl_Smtp.Open_Data (A);

    Utl_Smtp.write_data (, ' Date: ' |) To_Char (Sysdate, ' DD/MM/YYYY HH24:MI:SS'). Utl_Tcp.CRLF);

    Utl_Smtp.write_data (, ' from: ' |) Fromad | Utl_Tcp.CRLF);

    Utl_Smtp.write_data (, ' from: ' |) Toad | Utl_Tcp.CRLF);

    Utl_Smtp.write_data (, ' subject: ' |) Topic | Utl_Tcp.CRLF);

    Utl_Smtp.write_data (A, Utl_Tcp.CRLF);

    Utl_Smtp.write_data (, ' Date: ' |) To_Char (Sysdate, ' DD/MM/YYYY HH24:MI:SS'). Utl_Tcp.CRLF);

    Utl_Smtp.write_data (, ' from: ' |) Substr (substr(Fromad,2), 1, length (substr (Fromad, 2))-1) | Utl_Tcp.CRLF);

    Utl_Smtp.write_data (, ' from: ' |) Substr (substr(Toad,2), 1, length (substr (Toad, 2))-1) | Utl_Tcp.CRLF);

    Utl_Smtp.write_data (A, Utl_Tcp.CRLF);

    Utl_Smtp.write_data (one Message |) Utl_Tcp.CRLF | Utl_Tcp.CRLF |  Q'[here are the dates not reported my employee:]' | Utl_Tcp.CRLF);

    Utl_Smtp.write_data (A, Utl_Tcp.CRLF);

    Utl_Smtp.write_data (, ' EMPLOYEE_NAME ' |') -' ||'    EMPLOYEE_NAME ' |' -' ||'      DATE_NOT_REPORTED ' | Utl_Tcp.CRLF);

    For I In 1.Dt.Count

    Loop

    Utl_Smtp.write_data (, ' ' |) EmpNo (I) | »                '||' - '||'    '|| EmpName (I) | »                 '||' - '||'      '|| To_Char (DT (I), ' DD/mm/YYYY') | Utl_Tcp.CRLF);

    End loop;

    Utl_Smtp.write_data (A, Utl_Tcp.Crlf);

    Utl_Smtp.write_data (, ' text ' |) Utl_Tcp.CRLF);

    Utl_Smtp.write_data (A, Utl_Tcp.Crlf);

    Utl_Smtp.write_data (, ' greetings,)

    Sagar K N

    '|| Utl_Tcp.CRLF);

    Utl_Smtp.Close_Data (A);

    Utl_Smtp.quit (A);

    Exception

    While others then

    Utl_Smtp.quit (A);

    Lift;

    End;

    /

    I get the following error:

    ORA-06550: line 1, column 7:

    PLS-00201: identifier 'REPORT_MAIL' must be declared.

    ORA-06550: line 1, column 7:

    PL/SQL: Statement ignored

    When I run 'user_errors' I get no error in the respective procdedure.

    I'm not allowed to use the "Execute Immediate" statement as I've used?

    Please guide me.

    Thanks in advance.

    I'm confused.

    Depending on your error message, you have an identifier REPORT_MAIL which is not declared.  According to the code you have posted, you have such no identifier anywhere in the code.  Then, you post the error message incorrect or bad code.

    You also say that you use EXECUTE IMMEDIATE.  But the code you posted is not using EXECUTE IMMEDIATE.

    Justin

  • Report with the stored procedure Designer

    I use ColdFuiosn and MS SQL server.

    I use a procedure stored for my report using ahead of Report Builder query as follows.

    < cfquery name = "ReportQuery' datasource 'myDataSource' = >

    run MyStoredProcedure MyParam1, MyParam2

    < / cfquery >

    I'm the designer of reports ColdFusion can automatically retrieve metadata for fields in the report.

    Can you please advice how I can manually for the domain information to place on the report designer?

    Your information and help is much appreciated,

    Kind regards

    Iccsi

    I just need to create fields on the user interface of the generator of reports on the field and the parameter section,

    Thanks for your information and help,

    Kind regards

    iccsi

  • There seems to be a problem with the soft ware.  We use the CS6 for Records services and when we try to save the record, part of the record is stored. The record to be saved as an mp3 file is 70 to 100 KB but recently only 3 KB are generally

    There seems to be a problem with the software.  We use the CS6 for Records services and when we try to save the record, part of the record is stored.  Usually the recording to be saved as an mp3 file is 70 to 100 KB but recently only 3 KB are recorded.  What should I do to fix this?

    You may need to reset your preferences of hearing files stored in C:\Users\"username"\AppData\Roaming\Adobe\Audition\5.0. If you rename this folder in 5.0.bak that hearing won't find it when you open the next time if it will recreate a new settings with the default settings folder. See if hearing then works as expected.

  • Problems with the date in the procedure on Oracle 11 g

    Hi gurus,

    I have some problems with the date under Oracle 11 g format.

    Let me explain the situation:

    When I start such a request
    Select to_number (to_char (to_date('01.04.2009','dd.mm.yyyy'), 'yyyy'))
    of sys.dual

    I had as a result 2009 under the number.

    When I do the same thing in a procedure of a package like this

    my_year: = to_number (to_char (to_date('01.04.2009','dd.mm.yyyy'), 'yyyy'));

    the my_year variable contains the value 9 instead of 2009.

    Can someone explain to me what goes wrong?

    I just tested with the evolution of the variable nls_date_format of environment for the session and the database is complete without success.

    Kind regards
    Björn

    Yes, it has everything to do with your environment settings.

    SQL> set serveroutput on;
    SQL>
    SQL> declare
      2    my_date date;
      3    my_zeitstempel varchar2(32767);
      4    my_tageswechsel float;
      5  begin
      6    my_zeitstempel := '01.03.1998 07:00';
      7    my_tageswechsel := .25;
      8    my_date := to_date (substr (my_zeitstempel, 1, 10), 'dd.mm.yyyy') + my_tageswechsel +1/24;
      9    dbms_output.put_line( my_date);
     10  end;
     11  /
    01-MAR-98
    
    PL/SQL procedure successfully completed.
    
    SQL> alter session set nls_date_format = 'dd.mm.yyyy hh24:mi:ss'
      2  /
    
    Session altered.
    
    SQL> declare
      2    my_date date;
      3    my_zeitstempel varchar2(32767);
      4    my_tageswechsel float;
      5  begin
      6    my_zeitstempel := '01.03.1998 07:00';
      7    my_tageswechsel := .25;
      8    my_date := to_date (substr (my_zeitstempel, 1, 10), 'dd.mm.yyyy') + my_tageswechsel +1/24;
      9    dbms_output.put_line( my_date);
     10  end;
     11  /
    01.03.1998 07:00:00
    
    PL/SQL procedure successfully completed.
    
  • Change hard drives where the files stored, how to ensure that no problems with the catalogue

    I replaced the 3 TB drive (and readers of backup related) who hold all the image files on my Mac Pro with a 5 TB drive.

    The player has only the image on her files. The catalog and previews remain in the folder of images on my main system drive.  I formatted the new drive in an external hard drive enclosure, then used Super Duper to copy the image of the old 3 TB HD files to new hard disk 5 TB. Now, I'm ready to install the new HD 5 to in the computer and the catalog of links to it, but want to make sure you do it correctly.

    This player has 81 000 image files, catalogued in 15 "buckets", each "bucket" with about 15 cases of work, so I obviously want to make sure that I don't have to tie all these files by hand.

    What is the best method to do this, so I have no problem with the catalog know the new location of the files?

    Mac OSX 10.10.5

    Lightroom CC 2015.1

    Thank you!!

    This player has 81 000 image files, catalogued in 15 "buckets", each "bucket" with about 15 cases of work, so I obviously want to make sure that I don't have to tie all these files by hand.

    What is the best method to do this, so I have no problem with the catalog know the new location of the files?

    Instructions are here: Adobe Lightroom - find folders and files moved or missing connect the parent (as shown in Figure 4) folder, and then all subfolders will be also connected. If I understand your use of the word 'bucket' (do you really mean "parent folder"?), then you will need to do this for each of the 15 buckets.

    It would be much easier if you had a 'bucket' or parent folder and many subfolders and sub-sub-folders.

  • Recordset Paging with a stored procedure in MSSQL

    Hi all
    I have a problem with the paging recordset using a recordset of a procedure stored in MSSQL 2000.

    The page works fine without the Recordset pagination feature. That is, it returns a recordset and displays the information on the screen as expected. However, as soon as I add this feature in, the page of the database server indicating that a parameter has not been supplied to the stored procedure returns an error. I suspect that this could be to do with the refresh in the service.

    Has anyone encountered this problem before and all the ideas how to get around?

    Any help appreciated.

    Thanks in advance.

    Ben.

    Thanks for all your help. This works a treat!

    I didn't know it was possible to run a stored procedure from the behavior of the recordset object. I was under the impression that the stored procedures must be accessible by the behavior of 'command '. A new day to dawn!

    Thank you!

  • How to call the stored procedure from javascript? (Google suggest, AJAX)

    Hi I want to set up a text field so that it behaves like [Google Suggest | http://www.google.com/webhp?complete=1 & hl = en].

    I read this post .

    Now, I installed everything according to this document. But it simply doesn't. And I don't know why.

    I think that problems can fall into the following three categories:
    1. the text field and the page invoking the appropriate javascript?
    2 - is the JavaScript call the stored procedure?
    3. the stored procedure correctly returns the result formatted?

    I'm assertive for 1 and 3, but I'm not sure 2. Because I don't know how if a stored procedure has been called? Is there a PL/SQL statement that I can query in SQL * more?

    Also, I would like to know how to debug AJAX in the APEX. It involves a lot of things.

    Finally, I used APEX 3.2 and Oracle XE. I can't find file dads.conf or marvel.conf. Is ' / apex / "the virtual directory for APEX?

    Thank you very much!

    Buffalo,

    I managed to make it work on XE with APEX 3.2!
    It took more time than expected because my XE installation was still on an earlier version of the Apex and I had put it first...

    But that's what I did:
    -in the ac.js file, I changed the path ' / apex / "and I added the ac.js file to my candidacy as a static file. So as you did.
    -J' copied my request to the XE and copied my procedure on the schema that is related to my request
    -J' gave to run anonymous rights my procedure

    Now at first, it did not work...
    Then I suddenly remembered something: If you want to run a procedure through the pl/sql gateway in the XE, XE please how it is.
    Do you this by changing the APEX_030200.wwv_flow_epg_include_mod_local function!

    This is the code for the function changed for my example:

    CREATE OR REPLACE function APEX_030200.wwv_flow_epg_include_mod_local(
        procedure_name in varchar2)
    return boolean
    is
    begin
        --return false; -- remove this statement when you modify this function
        --
        -- Administrator note: the procedure_name input parameter may be in the format:
        --
        --    procedure
        --    schema.procedure
        --    package.procedure
        --    schema.package.procedure
        --
        -- If the expected input parameter is a procedure name only, the IN list code shown below
        -- can be modified to itemize the expected procedure names. Otherwise you must parse the
        -- procedure_name parameter and replace the simple code below with code that will evaluate
        -- all of the cases listed above.
        --
        if upper(procedure_name) in (
              'MATTHIASH.INCSEARCH') then
            return TRUE;
        else
            return FALSE;
        end if;
    end wwv_flow_epg_include_mod_local;
    /
    

    After that, the AJAX function worked as expected...

    HTH
    Matthias Hoys

    Published by: mhoys on August 13, 2009 15:24

  • Problem with the Oracle text markup

    Hello

    I have a problem with the Oracle text markup.

    I am looking for keywords in a text which is composed by a question and answer.
    Here is the structure of my text:
    & lt; div class = 'question' & gt;
    & lt; a & gt; the title of my question & lt; /a & gt;
    & lt; div class = "reply & gt;
    content of response
    & lt; / div & gt;
    & lt; / div & gt;

    It is possible to search those keywords in the question or answer only. For this, I use the stored procedure:

    {call CTX_DOC. MARKUP)
    index_name = >?
    textkey = >?
    text_Query = >?
    restab = >?
    query_id = >?
    startTag = >?
    (EndTag = >?)}

    _with these parameters: _

    index_name = < my index >
    textkey = < id for the search text >
    text_Query = < a query containing the keywords >
    restab = < a table SQL to store the marked text >
    query_id = < id >
    startTag = ' < span class =-"highlight\" >. "
    EndTag = "</span >.

    The markup should be done only in the place you want (question, answer, or both).
    The markup is good when I search a keyword throughout the text, in the question or answer only.
    * If I search two key words in the question or answer, the markup is bad *.

    _Example: __
    I am looking for the words "* Internet *" in question only.
    Here's the query passed to the stored procedure:
    + * text_query * = 'service & internet' INPATH (//div[@class = 'question'] / has) +.

    In the question, these words are well marked.
    In response, only the first word is marked.

    * Why the first keyword is also marked in the response while the query specifies a search in question only? *

    The same problem appears when I search for the same keywords in the response only.
    In this case, in the answer, these words are marked as well.
    In the issue, only the first word is marked.

    Thanks for your help

    Edited by: user11088931 Apr 21. 2009 06:17

    Try text_query = (service & internet) INPATH (//div/a)

    Single quotes in a query do nothing. I think that your request has been treated as

    Service & (internet INPATH (//div/a))

  • Satellite A300-1MZ - Smart tool recognize problems with the drive

    Hi all...
    I have a * a300-1mz * I * a problem with the hard drive *.

    [This | http://img96.imageshack.us/i/diskinfoe.jpg/] is the _screen to a s.m.a.r.t. pens (* Disc 3.3.0 * Info) who acknowledge some problems with the disk.

    Can I send the laptop as collateral for a free replacement of the same disc?

    Among other things, sometimes * the computer freezes * no option to manually turn off the laptop (I think it always comes from the same disk):
    the screen stays fixed and 'Win Vista' does nothing comands.
    same "ctrl + alt + delete" Task Manager does not. The disc indicator light remains lit, but itself no longer believes it works

    Hello

    > Can I send the laptop as collateral for a free replacement of the same disc?
    If the authorized service provider can notice this problem too, you can get a new HARD drive for free. The ASP will order it and swap it out. It is a free procedure if your laptop is under warranty.

    > sometimes the computer crashes
    The HARD drive is perhaps the reason for this?
    Contact a service provider authorized giving them all the details and information. They can fix that also. :)

  • Problems with the installation of recovery - Satellite A300D - BSOD

    Hello

    The laptop in question (TOSHIBA Satellite A300D) recently stopped starting (BSoD).

    So, I tried using the recovery disk, but there is no help. What happens is:
    -After about 10 minutes of waiting, the first language menu load, so I click on "next".
    - Then I again click Next and accept the message that my HARD drive will be erased
    - Then I see a cmd prompt that says "try to remove all the letters of partitions possible...". »
    -There is also a minimized command prompt that says something like "RAID failed to initialize."
    -And then nothing happens.

    Is this a hardware problem? I also tried a full installation (instead of recovery), which, even once, is simply not. None of the errors is - it just freezes.

    Any help appreciated.
    Thank you.

    It is not easy to tell what can be the problem, but if you were not able to install the OS by using two different facilities CDs/DVDs, so there must be a problem with the HARD drive.

    The warranty is still valid?
    I mean you can contact the nearest Toshiba authorized service provider and explain the situation. They can swap the HDD and again test the recovery procedure.
    Can you get somewhere 2,5 SATA HDD for testing?

  • OfficeJet Pro 8600: message "problem with the printer or ink system.

    I replaced the magenta cartridge with a new cartridge genuine HP (end of warranty 2017/01), but now get a message "problem with the printer or the ink system.

    If I restore the old cartridge I get the message that it is empty, but all the other options of the printer are available.

    Online support does not give me any result of solution but suspect there may be a manufacturing error in the new cartridge.

    Does anyone else have this problem or advice?

    Hello

    Please click HEREto access the procedure which should solve the problem.

  • Problem with the Lenovo Z510 battery indicator

    I have an old Ideapad of one year z510. Last week, the battery indicator began to stuck on 100%. So not connected, he stops suddenly without notifying me with 10% and 7% remaining notification. I tried to uninstall the Microsoft ACPI control method battery compatible from the Device Manager but no change... Anyone has an idea what should I do otherwise.

    Thank you
    Ahmed

    In response to customer relationships of unexpected problems with the performance of the batteries portable Z500 and Z510, Lenovo made an update of the firmware of battery available via download on the Lenovo Forums.

    This battery firmware is intended to solve unexpected load following symptoms when a Z500 and Z510 mobile phone is turned on:

    • Battery is dead

    • Battery is not detected

    • Battery is detected and charged 100%, but when the power is removed, the laptop turns off immediately

    • When the battery is fully charged and the AC power is removed, the battery level falls considerably less than 10 minutes

    Please note a procedure step by step for the upgrade of the firmware is included in the .zip file, found in the file "ReadMe".

    The battery firmware update can be downloaded here: https://download.lenovo.com/lenovo/content/sm/z500_z510_battery_firmware_update.zip

    Thank you

  • [Z510] Problems with the battery not charging

    I have ideapad z510 for almost a year. and now my unit still shows that it is at 0% battery. and she indicates that she battery level does not increase. and for this reason I could not use my unit when it is not plugged. What should I do about it?

    Comment to Moderator: New thread is created. The topic is edited to include the model.

    In response to customer relationships of unexpected problems with the performance of the batteries portable Z500 and Z510, Lenovo made an update of the firmware of battery available via download on the Lenovo Forums.

    This battery firmware is intended to solve unexpected load following symptoms when a Z500 and Z510 mobile phone is turned on:

    • Battery is dead

    • Battery is not detected

    • Battery is detected and charged 100%, but when the power is removed, the laptop turns off immediately

    • When the battery is fully charged and the AC power is removed, the battery level falls considerably less than 10 minutes

    Please note a procedure step by step for the upgrade of the firmware is included in the .zip file, found in the file "ReadMe".

    The battery firmware update can be downloaded here: https://download.lenovo.com/lenovo/content/sm/z500_z510_battery_firmware_update.zip

    Thank you

  • Problem with the wireless on the system tray icon.

    Original title: wireless

    not found wirreless icon in the taskbar

    Hi Amourhbone,

    Thanks for posting your question in the Microsoft Community forum.

    It seems that you have a problem with the icon on the system tray wireless.

    I imagine the inconvenience that you are experiencing. We are here to help and guide you in the right direction.
    Provide us with a few details in order to better understand the issue.

    1. which version of the operating system are you using?

    2. deal with any problem with the wireless network using Internet?

    3. do you receive any error messages?

    4. did you of recent changes on the computer before this problem?

    I suggest you try the procedure described in the article and see if it helps.

    System icons do not appear in the notification area in Windows Vista or Windows 7, you must restart the computer
    http://support.Microsoft.com/kb/945011

    Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    http://Windows.Microsoft.com/en-us/Windows7/back-up-the-registry

    Get back to us and let us know the State of the question, I'll be happy to help you. We, at tender Microsoft to excellence.

Maybe you are looking for

  • Checkboxes is not read as true when checked

    I have two worksheets that are quality books. Since they are for the two sections of the same class, they are identical. In each, there is a column of checkboxes that indicates if a certain assignment was on time. I then have an if-then statement tha

  • I seem to have some spyware downloaded on my MacBook Pro.  How can I get rid of this?

    Recently I get pop up of Web pages when I add a URL on one page... another opens as well. MacKeeper is one, but there are other institutions. I just deleted an app which I believe was called myshoppy - thinking that was the one.  But I also deleted t

  • Presario CQ70-210ED windows 7

    I have the laptop mentioned above and it was installed with WIndows 7 as a test. So far so good everyhting works. We want to test the video drivers Vista as Windows 7 drivers are not out yet (we think), but I can't find the drivers for the videoadapt

  • Help please in Outlook express 6 emails not just send receive

    Please when I try to send emails via Outlook Express 6 or number 587 or 25port error and still in the Outbox with the error can help you please

  • BlackBerry Smartphones, please allow us to change the shortcuts!

    I have the BlackBerry Bold 9700 (which I love), however, I have a small complaint, the shortcut alt + del on SMS. If you press on these you lose any of your text. Now, I often write messages that are more than two or three long texts, for then all te