Version of 5.0.2.00.07(online à APEX) - error in the execution of a stored procedure through anonymous block

DECLARE

the stored procedure varchar2 (25);

BEGIN

-DBMS_OUTPUT. Put_line ("enter the name of the procedure :'||: procname");

the stored procedure: =: procname;

DBMS_OUTPUT. Put_line (' procedure :'|| stored procedure);

stored procedure.

END;

: procname is a variable binding in the apex to switch the running value.

apex-bind_var.png

This is the error I get

ORA-06550: line 7, column 2:

PLS-00221: "STORED procedure" is not a procedure or is not defined

ORA-06550: line 7, column 2:

PL/SQL: Statement ignored

5the stored procedure: =: procname;

6 DBMS_OUTPUT. Put_line (' procedure :'|| stored procedure);

7. the stored procedure.

8 END;

SmtWtL wrote:

DECLARE

the stored procedure varchar2 (25);

BEGIN

-DBMS_OUTPUT. Put_line ("enter the name of the procedure :'||: procname");

the stored procedure: =: procname;

DBMS_OUTPUT. Put_line (' procedure :'|| stored procedure);

stored procedure.

END;

: procname is a variable binding in the apex to switch the running value.

This is the error I get

ORA-06550: line 7, column 2:

PLS-00221: "STORED procedure" is not a procedure or is not defined

ORA-06550: line 7, column 2:

PL/SQL: Statement ignored

5. the stored procedure: =: procname;

6 DBMS_OUTPUT. Put_line (' procedure :'|| stored procedure);

7. the stored procedure.

8 END;

What you're trying to achieve?

Bind variables cannot be used for the dynamic execution of stored programs. Dynamic SQL using lexical rather than bind substitution must be used to run when the program name is not known until execution of the programs.

declare
  sproc varchar2(25);
begin
  sproc := :procname;
  dbms_output.put_line('procedure:'||sproc);
  execute immediate 'begin ' || sproc || '; end;'; -- DO NOT DO THIS!
end;

It is a fundamental design flaw and a security disaster. It's stops essential compilation controls is performed and is open to attack by SQL injection and other security vulnerabilities. There is no good reason to do this.

Tags: Database

Similar Questions

  • Why Firefox does not start the meeting online Lync more when the update to version 21.0?

    The 20 version worked well. The only and only choice now is "get out me of here." Renew the certificate, but even "I understand the risks" has not helped in version 21. Now, I have to run IE to get the open online dating.

    Hello Seppva, please try this: enter Subject: config in the bar firefox address (confirm the message information where it appears) & search for the preference named plugins.load_appdir_plugins. Double-click it and change its value to true (a restart of the browser may be needed later for the change to take effect).

    some information on the issue are explained in http://www.ghacks.net/2013/05/15/why-you-may-have-lost-access-to-plugins-or-extensions-in-firefox-21/

  • I, go, to, school, home, art, Institute, Pittsburgh, online, year, I, need, the, full, version, to be cloud creative teenager, My, reference, the number, your, company, East, 0186952372, I, again, can not, issue work, Creative, cloud, to, this, new, compu

    I, go, to, school, home, art, Institute, Pittsburgh, online, year, I, need, the, full, version, to be cloud creative teenager, My, reference, the number, your, company, East, 0186952372, I, again, can not, issue work, Creative, cloud, to, this, new, computer, my

    Hello

    I checked with your Adobe ID on the forums that there is no active subscriptions to this topic, please use the e-mail address to which you traded your redemption code and try again.

    Use the link below to install Adobe Creative cloud on the new system.

    Download and install Adobe Creative Cloud apps

    Kind regards

    Bani

  • I accidentally bought a student Adobe Acrobat X1Pro version and want to upgrade to a full version. How can I do this online?

    I accidentally bought a student Adobe Acrobat X1Pro version and want to upgrade to a full version. How can I do this online?

    Hi Kyneton,

    There is no difference between the features of the student of 11 Acrobat pro version and complete.

    The only difference is the student version is provided with a discount to students while others who are not students / teachers are not eligible for this discount.

    In fact, you should feel fortunate to have acquired Acrobat at a reduced price

    If you are not a student and you have purchased the software, then you must return the software and order a new one detail.

    You can contact our support chat for this team: get help with orders, refunds and exchanges

    Kind regards

    Rave

  • Pogo & bridge base online sites, kicked by the window javascript without error message or of wrnings; requiring reloading. IT OFTEN!

    Since June and all 3 or 4 FF updates; I got updates Java, Adobe Flash, of big Windows 7 and my Avast antivirus program. Since then, I had a lot of problems with the bridge Pogo.com and Bridge Base Online game; When I used 2 power play games. Now, I can't even finish a game without being launched.

    I created new profiles; replaced new facilities of all of these programs (including FF) and even went to earlier versions. None of them has solved the problems. I also made sure to do Mode without failure and turned FF parts or disable, as suggested in all the troubleshooting tips, etc. Also the same for other programs. Everything indicates that the errors in the Javascripts. on these sites or in their or FF. I'll go to IE and try to use it again. I hate it but no choice, up to what something is fixed.

    Worked! Very useful! Already transmitted person-to-person on Pogo!

    Thank you very much.

    Wolverine655

  • When I enter an apostrophe when online, it still shows the quick search box, and then I can not type more

    original title: quick search

    When I enter an apostrophe when online, it still shows the quick search box, and then I can not type more

    Hello

    1. it occurs when you use a particular application or all applications?
    2 have you tried to use a different keyboard?

    Method 1.
    Check what happens when you use the on-screen keyboard. If it works fine here so you can check using another keyboard.
     
     
    Method 2.
    If the problem persists using a keyboard screen ion then run the sfc scan and check.
    Use the (SFC.exe) System File Checker tool to determine which file is causing the problem and then replace the file.
     
    To do this, follow these steps:
    a. open an elevated command prompt. To do this, click Start, click programs, accessories principally made, right-click Guest, and then click Run as administrator. If you are prompted for an administrator password or a confirmation, type the password, or click on allow.
    b. type the following command and press ENTER:
    sfc/scannow

    The sfc/scannow command. analyzes all protected system files and replaces incorrect versions with appropriate Microsoft versions.
     
    More information on SFC scan found in this document:
    http://support.Microsoft.com/kb/929833
     
     
     
    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • After the execution of Windows 7 for 2 years that I now have a windows message facility is illeagal. Tried to reinstall windows, but the message is cannot install a previous version

    After the execution of Windows 7 for 2 years that I now have a windows message facility is illeagal. Tried to reinstall windows, but the message is cannot install a previous version

    Diagnostic report (1.9.0027.0):
    -----------------------------------------
    Validation of Windows data-->

    Validation code: 0x8004FE21
    Code of Validation caching online: 0x0
    Windows product key: *-* - M892G - 84D7W-VYVVB
    Windows product key hash: 8URszDmqchXk0nyLWXx2jditWJE =
    Windows product ID: 00359-030-0078141-85521
    Windows product ID type: 5
    Windows license type: retail
    The Windows OS version: 6.1.7601.2.00010300.1.0.003
    ID: {656CCD50-41C9-41C3-968E-D29BBD46AA74} (1)
    Admin: Yes
    TestCab: 0x0
    LegitcheckControl ActiveX: N/a, hr = 0 x 80070002
    Signed by: n/a, hr = 0 x 80070002
    Product name: Windows 7 Home Premium
    Architecture: 0x00000000
    Build lab: 7601.win7sp1_gdr.120330 - 1504
    TTS error:
    Validation of diagnosis:
    Resolution state: n/a

    Given Vista WgaER-->
    ThreatID (s): n/a, hr = 0 x 80070002
    Version: N/a, hr = 0 x 80070002

    Windows XP Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    File: No.
    Version: N/a, hr = 0 x 80070002
    WgaTray.exe signed by: n/a, hr = 0 x 80070002
    WgaLogon.dll signed by: n/a, hr = 0 x 80070002

    OGA Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    Version: 2.0.48.0
    OGAExec.exe signed by: Microsoft
    OGAAddin.dll signed by: Microsoft

    OGA data-->
    Office status: 100 authentic
    Microsoft Office XP Professional - 100 authentic
    OGA Version: Registered, 2.0.48.0
    Signed by: Microsoft
    Office Diagnostics: 025D1FF3-364-80041010_025D1FF3-229-80041010_025D1FF3-230-1_025D1FF3-517-80040154_025D1FF3-237-80040154_025D1FF3-238-2_025D1FF3-244-80070002_025D1FF3-258-3_E2AD56EA-765-d003_E2AD56EA-766-0_E2AD56EA-134-80004005

    Data browser-->
    Proxy settings: N/A
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Win32)
    Default browser: C:\Program may Explorer\IEXPLORE.exe
    Download signed ActiveX controls: fast
    Download unsigned ActiveX controls: disabled
    Run ActiveX controls and plug-ins: allowed
    Initialize and script ActiveX controls not marked as safe: disabled
    Allow the Internet Explorer Webbrowser control scripts: disabled
    Active scripting: allowed
    Recognized ActiveX controls safe for scripting: allowed

    Analysis of file data-->
    [File mismatch: C:\Windows\system32\sppobjs.dll[6.1.7601.17514], Hr = 0x800b0100
    [File mismatch: C:\Windows\system32\sppc.dll[6.1.7601.17514], Hr = 0x800b0100
    [File mismatch: C:\Windows\system32\sppcext.dll[6.1.7600.16385], Hr = 0x800b0100
    [File mismatch: C:\Windows\system32\sppwinob.dll[6.1.7601.17514], Hr = 0x800b0100
    [File mismatch: C:\Windows\system32\slc.dll[6.1.7600.16385], Hr = 0x800b0100
    [File mismatch: C:\Windows\system32\slcext.dll[6.1.7600.16385], Hr = 0x800b0100
    [File mismatch: C:\Windows\system32\sppuinotify.dll[6.1.7601.17514], Hr = 0x800b0100
    [File mismatch: C:\Windows\system32\slui.exe[6.1.7601.17514], Hr = 0x800b0100
    [File mismatch: C:\Windows\system32\sppcomapi.dll[6.1.7601.17514], Hr = 0x800b0100
    [File mismatch: C:\Windows\system32\sppcommdlg.dll[6.1.7600.16385], Hr = 0x800b0100
    [File mismatch: C:\Windows\system32\sppsvc.exe[6.1.7601.17514], Hr = 0x800b0100
    [File mismatch: C:\Windows\system32\drivers\spsys.sys[6.1.7127.0], Hr = 0x800b0100
    [File mismatch: C:\Windows\system32\systemcpl.dll[6.1.7601.17514], Hr = 0x800b0100
    [File mismatch: C:\Windows\system32\user32.dll[6.1.7601.17514], Hr = 0x800b0100

    Other data-->
    Office details: {A9BF75C2-FBF3-4795-953B-E259BD0C2131}1.9.0027.06.1.7601.2.00010300.1.0.003x 32*-*-*-*-VYVVB00359-030-0078141-855215S-1-5-21-1580701254-2691487138-3117158855HP-Pavilion,FK484AAR-ABA m9400tAmerican Megatrends Inc.. 5.33 20081107000000.000000 + 0009CE93307018400FA04090409Eastern Standard Time(GMT-05:00)03HPQOEMSLIC-CPC100100Microsoft Office XP Professional10roTAwuyn2K8JnfnZ5p70qCWUSww =54186-640-4025656-1742314 97728824C57890A

    Content Spsys.log: 0 x 80070002

    License data-->
    The software licensing service version: 6.1.7601.17514

    Name: Windows 7 HomePremium edition
    Description: operating system Windows - Windows (r) 7, retail channel
    Activation ID: 2e7d060d-4714-40f2-9896-1e4f15b612ad
    ID of the application: 55c92734-d682-4d71-983e-d6ec3f16059f
    Extended PID: 00359-00170-030-007814-01-1033-7600.0000-3102009
    Installation ID: 010516027730660442597094592351394511091775644602024082
    Processor certificate URL: http://go.microsoft.com/fwlink/?LinkID=88338
    Machine certificate URL: http://go.microsoft.com/fwlink/?LinkID=88339
    Use license URL: http://go.microsoft.com/fwlink/?LinkID=88341
    Product key certificate URL: http://go.microsoft.com/fwlink/?LinkID=88340
    Partial product key: VYVVB
    License status: licensed
    Remaining Windows rearm count: 5
    Trust time: 10-02-2012 17:32:36

    Windows Activation Technologies-->
    HrOffline: 0x8004FE21
    HrOnline: n/a
    Beyond: 0x000000000001EFF0
    Event timestamp: 10:1:2012 07:16
    ActiveX: Registered, Version: 7.1.7600.16395
    The admin service: recorded, Version: 7.1.7600.16395
    Output beyond bitmask:
    Altered the file: %systemroot%\system32\sppobjs.dll
    Altered the file: %systemroot%\system32\sppc.dll|sppc.dll.mui
    Altered the file: %systemroot%\system32\sppcext.dll|sppcext.dll.mui
    Altered the file: %systemroot%\system32\sppwinob.dll
    Altered the file: %systemroot%\system32\slc.dll|slc.dll.mui
    Altered the file: %systemroot%\system32\slcext.dll|slcext.dll.mui
    Altered the file: %systemroot%\system32\sppuinotify.dll|sppuinotify.dll.mui
    Tampered files: Check %systemroot%\system32\slui.exe|slui.exe.mui|COM
    Altered the file: %systemroot%\system32\sppcomapi.dll|sppcomapi.dll.mui
    Altered the file: %systemroot%\system32\sppcommdlg.dll|sppcommdlg.dll.mui
    Altered the file: %systemroot%\system32\sppsvc.exe|sppsvc.exe.mui
    Altered the file: %systemroot%\system32\drivers\spsys.sys

    --> HWID data
    Current HWID of Hash: LAAAAAEAAAABAAEAAQABAAAAAgABAAEA6GFOQjaxCJyw9OJsCMr4P8RozDE =

    Activation 1.0 data OEM-->
    N/A

    Activation 2.0 data OEM-->
    BIOS valid for OA 2.0: Yes
    Windows marker version: 0x0
    OEMID and OEMTableID consistent: Yes
    BIOS information:
    ACPI Table name OEMID value OEMTableID value
    HPQOEM APIC-SLIC-CPC
    FACP SLIC-CPC HPQOEM
    HPET SLIC-CPC HPQOEM
    MCFG SLIC-CPC HPQOEM
    LASRYVITRAGE HPQOEM SLIC-CPC
    GSCI HPQOEM SLIC-CPC
    SLIC SLIC-CPC HPQOEM
    SSDT HPQOEM SLIC-CPC

    Have you tried to restart by phone?

    How to activate Windows 7 manually (activate by phone)
     
    1) click Start and in the search for box type: slui.exe 4
     
    (2) press the ENTER"" key.
     
    (3) select your "country" in the list.
     
    (4) choose the option "activate phone".
     
    (5) stay on the phone (do not select/press all options) and wait for a person to help you with the activation.
     
    (6) explain your problem clearly to the support person.
     
    http://support.Microsoft.com/kb/950929/en-us
    ----------------------
    Have you installed a new hardware or software since you started facing this problem?

    Do you have any software installed record cleaning? If so, uninstall it, registry software is known to tamper with Windows activation technologies.

    What Antivirus utility you installed?

    What's your date and time correct?

  • Hello, when installing Adobe Creative cloud, you get the error: program stopped working "Adobe Creative Cloud" Windows can check online for a solution to fix this error on the Internet. The next step is really for a solution online

    Hello, when installing Adobe Creative cloud, you get the error: program stopped working "Adobe Creative Cloud" Windows can check online for a solution to fix this error on the Internet. The next step really is to get an online solution and close the program, close the program. Signature of the problem:

    Problem event name: BEX

    Application name: Cloud.exe Creative

    Application version: 3.4.3.189

    The timestamp of the application: a 56702, 75

    The name of the module with the error: StackHash_0a9e

    Version of the module with the error: 0.0.0.0

    The module of time with error stamp: 00000000

    The exception of compensation: 00000000

    Exception code: c0000005

    Exception data: 00000008

    OS version: 6.1.7601.2.1.0.768.2

    Language code: 1049

    Additional information 1: 0a9e

    More information 2: 0a9e372d3b4ad19135b953a78882e789

    Additional information 3: 0a9e

    Additional information 4: 0a9e372d3b4ad19135b953a78882e789


    uninstall all cc on your computer.

    clean a http://www.adobe.com/support/contact/cscleanertool.html

    Restart your computer

    suspend your antivirus/antimalware

    Right-click on the file to install the desktop application, and then click "Run as Administrator".

  • Since Acrobat Reader downloaded DC I can't sign my PDF documents. It does not give me the option more and yes I am connected. On the old version, I got no problem with clicking on "signature" and draw the area where I needed my signature, put passw

    Since Acrobat Reader downloaded DC I can't sign my PDF documents. It does not give me the option more and yes I am connected. On the old version, I got no problem with clicking on "signature" and draw the area where I needed my signature, put the password and "POOF" my signature would be there. With this new version, it won't do that or give me the option. The online help is useless. I need to explain to me how connect you as I used too?

    Hi nicholass35183848,

    I assumed that you had a digital signature created in your player application of old and whenever you use to fill out a pdf with a signature field signed you it. But in order to draw and then sign you must use Acrobat Pro DC no DC drive.

    Thank you

    Abhishek

  • Clearing Online redo logs on the physical standby of the target

    Hello

    Version 11202.

    Primer on computer a.
    Watch on computer b.

    Later note: 11.2 Data Guard physical standby failover best practices using SQL * Plus [1304939.1 ID].
     
    Online redo logs on the target physical standby need to be cleared before that standby database can become a primary database. 
    And later:
     
    On the target physical standby run the following query to determine if the online redo logs have not been cleared... 
    (1) I did not understand where I have to run the query. On computer A, computer B or?
    2)
     
             Online redo logs on the target physical standby need to be CLEARED 
            
    Which means that it must be DELETED? Does transaction could be lost by running the command of compensation?

    Thank you

    Hello again;

    I would NOT use a script. The reason is that you are not sure what "switchover_status" will be returned by the database of v$.

    Oracle a broker data available for a quick pass, but I'm from the old school and I want to see how thing works in SQL for awhile first.

    Best regards

    mseberg

  • iPhone without facetime is available on online stores, is it the real... ?

    iPhone without facetime is available on online stores, is it the real... ?

    If the phone was intended for a market where, FaceTime is forbidden, Yes.

  • Y at - it a new version of Firefox, as of 16/11/15? Noticed on the Internet, however my 42.0 version shows that this is the last update?

    Took me to warn me, but I did 2 controls and it shows that the 42.0 version is up to date?

    42 of Firefox is the latest version.

  • Trying to access the electronic books in the library of our audience. Downloaded the software, but I get an error saying: the current version of the security of MP's 2.5.0.0 and I need 2.

    Trying to access the electronic books in the library of our audience. Downloaded the software, (Overdrive Media Console) but I get an error saying: the current version of the security of MP's 2.5.0.0 and I need 2.5.0.1. How to do only what I can read ebooks? People have suggested using IE, but I prefer to much HELP Firefox!

    Try to update the media player while using Internet Explorer. Windows Updates site uses ActiveX to perform "duties. Firefox does not support ActiveX.

  • In the latest version of MF, there is a missing button, who was in the previous version: between backward/forward buttons and the bar hits there was little flash, who showed a few recent pages I just went through. How can I restore it?

    In the latest version of MF, there is a missing button, who was in the previous version: between backward/forward buttons and the bar hits there was little flash, who showed a few recent pages I just went through. How can I restore it?

    If you mean the drop marker so you can always get history buttons front and rear, if necessary by left clicking and for a second, or by right-clicking on them.

    If you want to continue the brand drop there too there is that Extension to https://addons.mozilla.org/en-US/firefox/addon/backforward-dropmarker/

    Also the abbreviation for Firefox is Fx

  • Friends hahaha... I'm unable to re - activate my iPhone 5 years after updating to the latest version of OS i forgot my Apple ID. I know the password ID Apple and iPhone lock code. Also its my fingerprint reading. Unfortunately the option "Find my iPhone"

    Friends hahaha... I'm unable to re - activate my iPhone 5 years after updating to the latest version of OS i forgot my Apple ID. I know the password ID Apple and iPhone lock code. Also its my fingerprint reading. Unfortunately, option "Find my iPhone" is active... Could someone advise me please how can I reactivate my iPhone in this scenario?

    https://iforgot.Apple.com/password/verify/appleid#! & section = appleid

Maybe you are looking for

  • Good work of the fn in Satellite L30.

    Sorry for the inconvenience. I have the Satellite L30. A month ago the fn began to malfunction. ("Upside down").Codes 'Fn' (the blue keyboard color) of all key works when you press the Fn key does not work. But the correct values of the key works onl

  • Screw of PID can work in a loop of consumer?

    Hi all I'm working on the proportional valves with PID control. To do this, I have prepared a vi based on a design of producer-consumer model, however, it does not work. When I use a while loop incorporated all daq reading, writing and control tasks,

  • Can I change the background color in the picture and Fax Viewer?

    I would like to make the bottom of the picture and fax viewer to black instead of white. The slide show has a nice black background. Is this possible?

  • HP OfficeJet 6500 a Plus E710-n do not recognize ink levels.

    I have some HP 920 ink cartridges refilled at Costco.  Everything works well except the ink level view.  The printer is unable to meet the new levels of ink.  Is it possible to do a "Hard Reset" of the printer to choose charged cartridge levels?  As

  • AnyConnect VPN log in failure

    Today, we had a very disturbing failure.  We have a private network fully functional virtual on our device of Adaptive Security ASA 5510 8.2 (5) running.  I was installing a new user on a computer of Windows 7 Professional 64 bit using FireFox instea