creating multiple procedures at once

When I try to create multiple procedures at once

All procedures are stored in the first procedure


When I run the following script:


------------------------------------------------------------------------------------
create or replace
PROCEDURE CREATE_ITEM
(Type % items.item_id ITEM_id,
ITEM_DESC items.item_description % TYPE,
ITEM_COST items.item_cost % TYPE,
ITEM_QUAN items.item_quantity % TYPE)
AS

BEGIN

If (ITEM_QUAN > = 0)
THEN

insert into point values
(upper (item_id) |) LPAD(seq_item_id.nextval, 4, '0'), upper (ITEM_DESC), ITEM_COST, ITEM_QUAN);

DBMS_OUTPUT. PUT_LINE (ITEM_DESC |) 'has been saved');

on the other
DBMS_OUTPUT. Put_line ('quantity should be 0 or more!");
end if;
END CREATE_ITEM;


-------------------------------------------------------------------------------------------------------

CREATE OR REPLACE PROCEDURE CREATE_ORDER
(customer_id customer.customer_id % TYPE)
AS
BEGIN
insert into orders values
(seq_order_id.nextval, 0, customer_id, sysdate, 1);
END CREATE_ORDER;

------------------------------------------------------------------------------------------------------

It creates the "CREATE_ITEM" procedure and store the entire script of...

Is there a solution for this problem?


concerning

Hello

Place a slash
/
between the two procedures on its own line.
SQL * need it as well.

Kind regards
Dermot.
SQL development team

Tags: Database

Similar Questions

  • How to remove multiple tags at once?

    When I opened display all bookmarks, I have a long list of tags - although I'm not there. The only way I found to remove is one at a time. Is it possible to remove multiple tags at once?

    Thank you!

    Have you tried to select the main tags folder in the left pane of the library and select several or all the tags in the right pane?

    You can remove all of the tags selected via the context menu.

  • How can I do the following to happen: Browse multiple sites at once, simply and easily. Each new site appears as a new tab.

    A tab open, when I click on a bookmark, the browser IS NOT open it in a new tab. It open in the same tab, replacing the old site.

       In FEATURES it says:
    

    «Browse multiple sites at once, simply and easily.» Each new site appears as a new tab.

       I wish it would.
    

    Install one or both of these modules.

    In addition, see How to set the home page which explains how to open several sites such as your homepage.

  • Why my photo album create multiple folders and duplicate my photos in folders?

    Why my photo album create multiple folders and duplicate my photos in folders?

    Can you give us more details about your problem? When this happens? It's an update of iOS for a newer version?

  • How can I create multiple fronts for a single diagram?

    Hello

    I developed a VI with several controls and indicators that should run on computers with a screen from 800 x 600 to 1680 x 1050 resolutions. The problem I have is that the façade don't is not properly for this range of resolutions by checking the options in 'Properties of the VI' option. Is there a way to create multiple panels before in various sizes for my diagram and select the façade appropriate in accordance with the resolution of the screen programmatically?

    See the attached Zip file.

    I have two different facades.  Either one open and run it.  They call MainCode.vi that takes the references which is past and register for events.  From there on, he does all the work of the code that you would put in your façade .vi.

    In this way each façade can be arranged however you want for each screen resolution.

  • Create a procedure SQL with SQL toolkit

    Hello

    I use the SQL Toolbox to get data from a MySQL database (using ODBC connectors).

    I would like to automatically create a procedure on my DB when lauching my application software, so that I do not know there is when I use it.

    But I can't figure out how to do with the SQL Toolbox.

    Indeed, you try to run this script (which works by operating on MySQL workbench) returns the following error:

    DELIMITER $$

    CREATE DEFINER='indus'@'%' PROCEDURE ' FPY'(datetime IN START_DATETIME, IN END_DATETIME datetime)
    BEGIN
    CREATE a temporary table ListingUUT
    (
    UUT_SERIAL_NUMBER VARCHAR (127).
    TEST_COUNTER INT,
    DateTime TEST_TIME,
    UUT_STATUS VARCHAR (32)
    );

    CREATE a temporary table Stat_FPY
    (
    TESTED INT,
    TESTED_ONCE INT,
    REPORT / FLOAT
    );

    INSERT INTO Stat_FPY VALUES (0,0,0).
    INSERT INTO ListingUUT
    (
    SELECT
    UUT_SERIAL_NUMBER, SUM (1), START_DATE_TIME, UUT_STATUS
    OF booster_results.uut_result
    WHERE START_DATE_TIME BETWEEN START_DATETIME AND END_DATETIME
    UUT_SERIAL_NUMBER GROUP
    ORDER BY DESC START_DATE_TIME
    )
    ;

    END

    -Online error-2147217900 took place at NI_Database_API.lvlib:Conn Execute.vi-> Untitled 1

    Possible reasons:
    ADO error: 0x80040E14
    Exception occurred in the Microsoft OLE DB provider for ODBC drivers: [MySQL] [ODBC 5.2.a Driver] [mysqld - 5.6.10 - log] you have an error in your syntax SQL; consult the manual for your version of the MySQL server for the right syntax to use near ' DELIMITER $$

    CREATE DEFINER='indus'@'%' PROCEDURE ' FPY '(IN START_DATETIME datet' à la ligne 1 en NI_Database_API.lvlib:Conn Execute.vi-> sans titre 1)

    An idea so that I can create the procedure?

    Finally, give up on the creation of the procedure with SQL Toolkit functions.

    In fact using exec.vi system to address directly the command-line mysql server...

  • How or can I create multiple new folders instead of doing one at a time?

    original title: create multiple new folders

    How or can I create multiple new folders instead of doing one at a time?

    The number of cases, where you want to create, and what you want to call them?

    You can create a group of folders by entering commands in a command prompt window.  For example, to create a folder for each day of the week in C:\Users\Public:

    CD /d c:\users\public
    for %d in (Mon, Mar, sea, game, Fri, sat, Sun) do mkdir %d
       Boulder computer Maven
    Most Microsoft Valuable Professional

  • How to fax multiple pages at once with the HP 6500 has more

    How to fax multiple pages at once with the HP 6500 has more.

    I don't know why I can't do this, it sends do not ask if you need to scan another page.

    Your device contains a document feeder, the sending of several pages of the Scanner glass is not supported.

    Simply place the pages face up on top of the document feeder and send the fax, as shown below:

    http://support.HP.com/us-en/document/c02299537

  • HP 15-p097tx: how to create a recovery media once more

    Is their any option to create recovery media once more? If not, then how can I get my laptop back if it becomes a problem in the future?

    This is my description of the product:

    HP 15-P097TX

    Windows 8.1 (64-bit)

    Hello mdja,.

    What do you mean by "creating a media recovery once more?

    Ask yourself how to create the media for the first time or you already have a set and need a 2nd set is made?

    IF for the first time, go to this link c04399755 and start on page 55 of the manual. It will explain how to create media and how to perform a restore.

    You can also go to this link for more info: HP computers - create a recovery Image on disk, or save a recovery Image on a Flash drive (Windows 8) | HP® support

    If you have already created a set of media, no matter if its were DVD or a USB key, you cannot create a 2nd set according to the HP license agreement.

    IF you need a 2nd set of media, you will need to buy only from HP directly for a small fee.

    Contact HP worldwide | HP® official site

  • I'm looking for a viewer that will allow me to view multiple PDFs at once

    Original title:

    PDF display

    I'm on windows seven. I'm looking for a viewer that will allow me to view multiple PDFs at once. I need to change that I just need to visualize. I'm talking about ten to twenty at the time who were georeferenced next to each other.

    Adobe Reader allows you several PDF to be open both for the display.

  • Close multiple sheets at once

    I want to have a similar effect in the file selector. It shows a new worksheet for each hierarchy of folder, you select, but when you click on cancel all leaves are closed at the same time.

    I have a workaround where I call a closeSheet() on a sheetBelow property, it works but causes the entire screen turn grey for a short moment. The file picker does not have this, so I thought there may be a better way to do this.

    had another idea:
    the use of the pages with a dismissAction and a back custom with bb_action_file icon button almost gives the look and feel of the file picker.
    and I'll just use navigationPane.navigateTo to close multiple pages at once.

  • BPEL is create multiple instances of a single HTTP OSB call

    Hello

    Here, I describe how looks like my flow of integration.


    (1) proxy OSB service calls service BPEL (HTTP protocol for help)

    (2) BPEL called two services to OSB using HTTP calls (these two OSB services will insert the data into two tables)

    (3) according to my testcase an OSB service should be managed and second service OSB must fail, so any integration does not work as expected

    (4) but the second OSB service takes 2 minutes when inserting data into the database

    (5) in 2 minutes BPEL is creating an instance more

    How to stop creating multiple instances.

    Thank you and best regards,

    Harsha.

    Automatic recovery is enabled by default in bpel, you can try catch the fault. You can also change the value of MaxRecoverAttempt please go through this link: https://svgonugu.wordpress.com/2013/05/08/auto-recovery-feature-in-bpel/

    Kind regards

    Anshul

  • Hi, I created the procedure and its code is / / DELETE FROM <? = odiRef.getObjectName ("L", "TRG_SALES", "ORACLE_ORCL_LOCAL_SALES", "", "D")? > / / and when I'm running, the error appeared //com.sunopsis.tools.core.exception.SnpsSimpleMessageExcepti

    Hi, I created the procedure and its code is / / DELETE FROM <? = odiRef.getObjectName ("L", "TRG_SALES", "ORACLE_ORCL_LOCAL_SALES", "", "D")? > / / and when I'm running, the error appeared.

    com.sunopsis.tools.core.exception.SnpsSimpleMessageException: ODI-17517: error in the interpretation of the task.

    Task: 1

    java.lang.Exception: the application script threw an exception: com.sunopsis.tools.core.exception.SnpsSimpleMessageException: Exception getObjectName ("L", "TRG_SALES", "ORACLE_ORCL_LOCAL_SALES", "DEVELOPMENT", "D"): SnpLSchema.getLSchemaByName (): SnpLschema is no information OSB: Delete_Tar_Sales on line: column 0: columnNo

    at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.transform(SnpCodeInterpretor.java:489)

    at com.sunopsis.dwg.dbobj.SnpSessStep.createTaskLogs(SnpSessStep.java:737)

    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:465)

    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2128)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ 2.doAction(StartSessRequestProcessor.java:366)

    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)

    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 0 (StartSessRequestProcessor.java:292)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:855)

    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)

    to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:82)

    at java.lang.Thread.run(Thread.java:662)

    Caused by: java.lang.Exception: the application script threw an exception: com.sunopsis.tools.core.exception.SnpsSimpleMessageException: Exception getObjectName ("L", "TRG_SALES", "ORACLE_ORCL_LOCAL_SALES", "DEVELOPMENT", "D"): SnpLSchema.getLSchemaByName (): SnpLschema is no information OSB: Delete_Tar_Sales on line: column 0: columnNo

    at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.transform(SnpCodeInterpretor.java:476)

    ... 11 more

    Caused by: org.apache.bsf.BSFException: the application script threw an exception: com.sunopsis.tools.core.exception.SnpsSimpleMessageException: Exception getObjectName ("L", "TRG_SALES", "ORACLE_ORCL_LOCAL_SALES", "DEVELOPMENT", "D"): SnpLSchema.getLSchemaByName (): SnpLschema is no information OSB: Delete_Tar_Sales on line: column 0: columnNo

    at bsh.util.BeanShellBSFEngine.eval (unknown Source)

    at bsh.util.BeanShellBSFEngine.exec (unknown Source)

    at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.transform(SnpCodeInterpretor.java:471)

    ... 11 more

    Text: REMOVE OF <? = odiRef.getObjectName ("L", "TRG_SALES", "ORACLE_ORCL_LOCAL_SALES", "", "D")? >.

    at com.sunopsis.dwg.dbobj.SnpSessStep.createTaskLogs(SnpSessStep.java:764)

    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:465)

    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2128)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ 2.doAction(StartSessRequestProcessor.java:366)

    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)

    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 0 (StartSessRequestProcessor.java:292)

    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:855)

    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)

    to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:82)

    at java.lang.Thread.run(Thread.java:662)

    If you do this in a procedure, use the following syntax:

    <%=odiRef.getObjectName("L", "TRG_SALES", "D")%>

    and set the relevant logical schema in the options on the target tab of the procedure. Also, make sure you only select the correct technology type in the options on the target tab.

  • Is there a way to create multiple BQY output to one of the Job file?

    Hello

    I use the EPM11.1.2.3.501 version.

    BQY report because of the large amount of data, it is difficult to use WebClient.

    Then share on a quarterly basis.

    However,.

    If change is to occur, there are difficulties must edit each file.

    For example,.

    Save the task BQY for 4th quarter 2014, 2014 3 q, 2nd quarter of 2014, 2014-1 q.

    When you run the task, the output of the work file is created.

    If the work file is changed, you must change all four files.

    This will not be growing creations.

    Is there a way to create multiple BQY output to one of the Job file?

    Please help me.

    Thank you

    It is not possible to have several BQY out in a work file.

    Thank you

    KK

  • Click and drag the shape tool creates multiple instances (w / photos)

    When I click on and drag a shape tool, illustartor creates multiple instances of the object, such as a card when you earn solitare.

    No idea what could cause this?

    Is your tilde ~ key down, or you have any plug ins installed that may be corrupt you system?

Maybe you are looking for

  • Tecra A11 - Compatible to express port replicator?

    Hey people, does anyone know if a Tecra A11 can be used with version PA3508E of the Express duplicator? Cannot afford the new while I'm between jobs, and I saw one of these 2nd hand on ebay.

  • Problems with the IP settings on XP pc wireless network

    I have (part time) a wireless network to recently set up. Router is connected to a pc windows 7, and there is a XP machine with a USB adapter as well. The PCs are turned on, and the XP shows a wireless connection with a 'very good' signal. When I try

  • A way to keep active Wifi when the phone screen crashes?

    I noticed that, although my wifi signal is lower than we should, it is not randomly drop out. He does, however, is drop out whenever the phone screen will Dim and locks (IE, home struck and then slide to unlock). It's incredibly annoying! Is it possi

  • DVD with multiple files

    I have a disc of class to graduation of my granddaughter (5th to 6th grade) In the Media Player component it lkooks like this: ------------------------------------- Unknown DVD title one ------------------------------------ Chapter 1 Chapter 2 Chapte

  • Pre 3 WebOS bugs

    I'm lucky enough to be the owner of a smartphone Pre 3 and, while I generally enjoy the experience, I've already fallen on what appears to be 2 bugs within a week or so to own the handset. 1. it is not possible to change the order of your contacts in