How to perform the procedure

Hello

create or replace type PPT_TYPE

AS

object

(

PPT_SYMB_CODE VARCHAR2 (10 BYTE),

PPT_BATE_CODE VARCHAR2 (1 BYTE),

DATE OF PPT_ASSESS_DATE,

PPT_PRICE NUMBER (18.6).

PPT_CORRECTED VARCHAR2 (1 BYTE),

PPT_MODIFIED_BY VARCHAR2 (30 BYTE),

DATE OF PPT_MODIFIED_DATE);

create or replace type PPT_TABLE_TYPE as the PPT_TYPE table;

create or replace PROCEDURE proc_ins_test (P_PPT_TAB IN PPT_TABLE_TYPE)

as

.

.

.

.

.

end proc_ins_test;

How to run the above procedure?

Kind regards

Fame

Ago

Got it, thanks for all.

DECLARE

P_PPT_TAB DDM. PPT_TABLE_TYPE;

BEGIN

P_PPT_TAB: is PPT_TABLE_TYPE (PPT_TYPE('ENCOC34','u','29-JAN-15','60100','N','MDD','24-FEB-15'));.

() proc_ins_test

P_PPT_TAB-ONLINE P_PPT_TAB

);

END;

Tags: Database

Similar Questions

  • How to perform the procedure of the schema A b schema?

    Hello...

    I have a doubt... Please specify it.

    There are 2 tables and procedure on the tables in A schema.
    How to perform this procedure in the diagram B?

    I have to give privileges?

    Thank you
    SAI

    Hello

    You must grant execute on the package in plan a plan b. You then Norman to either create a synonym in plan B or the fully qualified name of the call, for example

    exec schemea.my_package;

  • How to perform the procedure in the SQL worksheet?

    Hi, anyone knows, how I can execute procedure here?

    I try to EXEC sec_roles, EXEC security_admin.sec_roles, EXECUTE - there's a SQL statement error. When I use the CALL - there is no such procedure (I have execute privileges).

    Although in SQLPlus EXEC works, but there are problems with the standard SQL commands (each of them '2' returns any content is).

    Any ideas?

    Concerning
    Krzysztof

    EXEC procedure (parameters) is a plu sql (and some others) shortcut for

    BEGIN
       procedure(parameters);
    END;
    

    So try that and then pressing / on anything in the sql worksheet that makes a statement in execution.

    Note that if your procedure has defined parameters as OUT or IN OUT, you need to provide a variable to accept the returned values.

    John

  • How to perform the procedure packed (with some param) in TOAD for Oracle

    Hello.

    Could you help me
    How to run the packaged procedure with parameters in TOAD to Oralce...

    Thank you...

    Use anonymous PL/SQL block to run it.

    For example.

    DECLARE
       ;
    BEGIN
      .();
    END;
    
  • How to perform the procedure with parameters of type collection

    Hello

    I have the setting as the procedure
     PROCEDURE addGroup (
        Id IN NUMBER,
        sId IN NUMBER,
        gIds IN NUMBERLIST)
    CREATE OR REPLACE TYPE NUMBERLIST AS TABLE NUMBER;
    /





    could you help me by asking this type as a parameter the procedure...

    Thank you

    This is the type:

    SQL> create or replace type NUMBERLIST is table of number;
      2  /
    
    Type created.
    

    This is the procedure:

    SQL> create or replace PROCEDURE addGroup (
      2      Id IN NUMBER,
      3      sId IN NUMBER,
      4      gIds IN NUMBERLIST)
      5  is
      6  begin
      7    null;
      8  end;
      9  /
    
    Procedure created.
    

    And you call it this way:

    SQL> declare
      2  n numberlist := numberlist(1,2,3,4);
      3  begin
      4    addGroup(1,2,n);
      5  end;
      6  /
    
    PL/SQL procedure successfully completed.
    

    Max
    [My Italian blog Oracle | http://oracleitalia.wordpress.com/2010/01/23/la-forza-del-foglio-di-calcolo-in-una-query-la-clausola-model/]

  • Satellite P100-188: how to perform the procedure for recovery of the product?

    Hello

    I just had a bit of trouble to install a piece of software that, in the end I could settle with a system restore. This process was worried at the time that I could not get the software uninstalled properly (I had to download a program from the machine to uninstall!)

    At one point, I considered the restoration of my laptop Satellite P100-188 with the product recovery disc, the thing is I never did this before and I was wondering if someone could tell me the best sequence for later use.

    I have a standard Windows Media Center Edition OS, a recovery disk of the product, a disk Express Media Player and a CD of Drivers and tools that I created when I got the laptop.

    I have a feeling telling to restore Express Media Player before Windows, is does that mean that I have to insert this disc, install Express Media Player, then insert recovery disk product to install Windows?

    The Express Media Player disc formats the drive? It's not clear to me and I don't want to run into problems when I finally don't have to reinstall my operating system.

    I searched this forum to see if this information was already posted and could not find all the relevant information, all I can find are problems with the help of recovery and lack of discs discs.

    If it has been posted before could you provide me a link and I'm sorry again calls for data.

    Hello Gary

    If you want to have own OS preinstalled, the best solution is to use supplied recovery media. If the Express media player works well the leave it as it is and use the recovery DVDs only for clean operating system installation. All that s!

    Tools and Utilities CD can be used if you need to reinstall Toshiba designed tools or if you want to install your own operating system by using the facilities of Microsoft CD. If you have any other questions please post again.

  • turn off text while performing the procedure

    Hello

    Oracle9i

    How to disable the text while performing the procedure below?

    15 old: Procedure_name(&var1);
    15 new: Procedure_name(&var2);

    Concerning

    Use SET CHECK TURNED off.
    It won't make any difference in the results you get, but it's just for you to see which variable is getting replaced by what value.

  • How to call the procedure type table

    Hi I have the below requirement

    Created in the sub table type

    CREATE or REPLACE the TYPE char_type IS the TABLE OF VARCHAR2 (4000);

    create or replace procedure test_proc_type (p_type char_type) is

    Start

    I'm looping 1.p_type.count

    dbms_output.put_line (p_type (i));

    end loop;

    end;

    How to call the procedure with parameter as a type!

    SQL> create or replace type  char_type as table of varchar2(4000)
      2  /
    
    Type created.
    
    SQL> create or replace procedure test_proc_type (p_type char_type)
      2  is
      3  begin
      4    for i in 1..p_type.count loop
      5      dbms_output.put_line (p_type(i) ) ;
      6    end loop;
      7  end;
      8  /
    
    Procedure created.
    
    SQL> set serveroutput on
    SQL>
    SQL> exec test_proc_type(char_type('A','B','C','D','E'))
    A
    B
    C
    D
    E
    
    PL/SQL procedure successfully completed.
    
    SQL>
    
  • How to perform the customization & personalization in ADF? Any body set good example demonstration...

    How to perform the customization & personalization in ADF? Any body set good example demonstration...

    Hello

    If you want to know the customization & personalization demo, you go through the following link...

    Oracle JDeveloper 11g Release 2 tutorials - customization and customize an Application

    I think that his may be useful for you.

    Thank you

    MAGO

  • Perform the procedure on oracle apex online

    Hi all


    CREATE OR REPLACE PROCEDURE TEST_PROC
    AS
    V_FNAME EMPLOYEES. FIRST_NAME % TYPE;
    BEGIN
    SELECT FIRST_NAME FROM V_FNAME OF EMPLOYEES
    WHERE NAME = 'JOHN ';
    DBMS_OUT. PUT_LINE (V_FNAME);
    END;
    I did this procedure on the http://apex.oracle.com/ sql worksheet on my account.

    When I gave TEST_PROC RUN; and CALL TEST_PROC; order for providing this procedure I get ORA-00900 following error: invalid SQL statement.

    Please tell how I can perform this procedure.

    Thanks in advance.

    concerning

    Neeraj

    Calls to PL/SQL must be made using anonymous PL/SQL code blocks. For example

    begin
      Test_Proc;
    end;
    

    There is no server EXECUTE command (some customer support this as a sales order, wraps the content to run in an anonymous PL/SQL block and then use it to call the database).

  • How to call the procedure Oracle in ODI

    Hello

    I use ODI 10 g.

    Before you run the interface in a package, I wanted to place my procedure.

    I created the procedure in d/b (target)

    CREATE OR REPLACE PROCEDURE TEST_MY_NEW_PROCE
    AS
    BEGIN
    REMOVE FROM EMPLOYEE_TABLE
    WHERE EMPLOPYEE_ID LIKE '% P ';
    COMMIT;
    END;
    /

    The procedure works well in the target database.

    Now, before the execution of my interface, I want to run this procedure in my package. So can some please help me how to call this oracle (creation in target schema) ODI procedure and run it.

    Thank you.

    Hi, GRK,.

    You can create an ODI procedure, add one step, choose Oracle as technology and your target schema.
    Then just call it through a pl/sql block:

    BEGIN
     TEST_MY_NEW_PROCE;
    END;
    

    In your package, then drag this ODI procedure.

    Kind regards
    JeromeFr

  • How to perform the subtraction

    I created a mileage reimbursement form using Adobe 10 standard (Adobe X Standard).  The form has an engine Total Miles field, another field for Miles of the home port and a field that must be the difference between these two.  I do not see a calculation for the subtraction function, so my question is double.  One, how can I get the domain to perform the mathematical function and two, how do I know the field is no to enter negative numbers?  I imagine it'll be a custom script that will be loaded into the properties of the field on the tab calculation, under the area of calculation script, but I don't know what would be this script.  Any help would be appreciated.  Thanks to everyone for their help.

    Mileage Reimbursement Form Snip-it.JPG

    You can use this code as the custom calcluation code of the difference field:

    var totalMiles = + this.getField ("Total Miles Driven") .value;

    var homeMiles = + this.getField ("Home Base Miles") .value;

    var totalMiles = diff - homeMiles.

    If (diff<0) diff="">

    Event.Value = diff;

  • How to call the procedure in the process

    Hello

    I have create procedure abc.
    How can I call procedure abc in the process in the processing of the Page.
    I want to call this procedure when I press the "submit" button.

    Thank you

    Hello

    Yes, that is correct

    Kind regards
    Jari

  • How to call the procedure on the page of the ofa

    Hi all

    I have a button.when I click this button need to call the procedure and should return the values.i tried with below code.am is error.i am passing two parameters to the procedure.please suggest me where I made a mistake in the code.

    error while calling procedure.PNG

    code in am

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

    public String calprorate (String laseid, String billingid)

    {

    OADBTransaction oadbtransaction = (OADBTransaction) getTransaction ();

    OADBTransactionImpl oadbtransactionimpl = (OADBTransactionImpl) getTransaction ();

    String retValues;

    System.out.println ("number:" + laseid);

    StringBuffer str = new StringBuffer();

    Str.Append ("BEGIN");

    Str.Append (LEASE_PRORATE_PKG ".") LEASE_PRORATE_PROC1 (»);

    Str.Append ("p_lease_id = >: 1");

    Str.Append ("p_billing_id = >: 2");

    Str.Append ("P_PRORATE = >: 3");

    System.out.println ("params");

    Str.Append (»); «) ;

    Str.Append ("END");

    System.out.println ("End");

    OracleCallableStatement oraclecallablestatement =

    (OracleCallableStatement) oadbtransaction.createCallableStatement (str.toString (), 1);

    System.out.println ("Oracle");

    try {}

    oraclecallablestatement.setString(1,laseid);

    oraclecallablestatement.setString(2,billingid);

    oraclecallablestatement.setInt (1, Integer.parseInt (laseid));

    oraclecallablestatement.setInt (2, Integer.parseInt (billingid));

    System.out.println ("param");

    oraclecallablestatement.registerOutParameter (3, Types.VARCHAR);

    System.out.println("3");

    oraclecallablestatement. Execute();

    System.out.println ("exe");

    retValues = oraclecallablestatement.getString (3);

    }

    catch (System.Exception e)

    {

    System.out.println ("delivery");

    throw OAException.wrapperException (e);

    }

    Return retValues;

    System.out.println ("End");

    }

    code co:

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

    If (pageContext.getParameter ("Calc")! = null) {}

    Vo1 OAViewObject = (OAViewObject) am.findViewObject ("AddonBillingVO");

    System.out.println ("VO");

    {if(VO1!=null)}

    CNT int = vo1.getRowCount ();

    System.out.println ("count:" + cnt);

    If (cnt > 0)

    {

    RowSetIterator rs = vo1.createRowSetIterator("empIterator");

    System.out.println ("EMP");

    If (rs! = null)

    {

    While (rs.hasNext ())

    {

    AddonBillingVORowImpl line = rs.next ((AddonBillingVORowImpl));

    System.out.println ("impl");

    If (line! = null)

    {

    String laseid = row.getAttribute("LeaseId").toString ();

    System.out.println (laseid);

    String billingid = row.getAttribute("AddonBillingId").toString ();

    [Serializable] param = {}

    laseid, billingid

    };

    String newupc = (String) am.invokeMethod ("calprorate", param);

    }

    }

    Khalil.

    You can paste your spec procedure here?

    Also see: Oracle tips of Johny: OAF: sample code to call the PL/SQL of OA Framework procedure

  • How to perform the amplitude scaling (= stretching of contrast) in JavaFX

    There is an effect that can do? If this is not the case, what would be the best way to do it by hand?

    What I want is described in section 7.4 here:

    Improved image

    in JAI, it is implemented as operation "scale".

    No effective simple way (not full FX): convert the image of FX in JAI or AWT image and perform the operation that you get used to it and then convert into an image of FX.

    The other direction (FX only): use a WritableImage, to get his PixelWriter and apply the formulas as described in section 7.4

Maybe you are looking for

  • Unable to kenza link to download the Patch MS02-061 for SQL Server 2000

    original title: can not download Patch MS02-061 Hello I know this is an old patch but our new VPN software was listed as a patch that is required if SQL Server 2000 is installed.  I get out the site and I am unable to download.  Telling me that it ca

  • Vista is no longer allows Me to connect

    Several days ago the updates downloaded MS 'critical' for Vista.  He kept annoys me who the installation I have to reboot.  Finally, I told him to go ahead and I fell asleep.  The next day, I had the usual login screen waiting for me, but after enter

  • Cannot start after the blue screen "page in the nonpaged area failure."

    My sons laptop has got to me.  There the error page blue to come with "failure page in the nonpaged area." There is a chain of technical info of numbers, but this changes a little at each attempt. I tried all F8 options, without success.  I did a res

  • disable the automatic cropping

    It is also silent in the manual how to disable the auto cropping when you want to scan the Photosmart C4780 witn. Any clue? Thanks in advance

  • Windows install 3.1 for Windows 7

    I'm trying to run an update for Quickbooks and have received an error message indicating that I have to re - install Windows Installer 3.1.  I can't reinstall it from the original disks of QB, nor what I can from the Microsoft Website.  anyone having