If it is possible to pass the variable of type table in sceduler.

Hello

need to schedule a task to call a procedure but procedure a array as a parameter.

Let me know we can pass the type of object as a parameter in the Scheduler.

procedure definition: procedure (number, varchar2, ch. pakage.table_type b)

I don't think that you can do with a PL/SQL type in a package, but you can do it with a SQL type, as shown below.

Scott@orcl12c > test_tab CREATE TABLE

2 (col1 NUMBER,

VARCHAR2 (30) 3 col2.

col3 4 VARCHAR2 (30))

5.

Table created.

Scott@orcl12c > CREATE or REPLACE TYPE table_type AS TABLE OF VARCHAR2 (30);

2.

Type of creation.

Scott@orcl12c > test_proc CREATE OR REPLACE PROCEDURE

2 (a NUMBER;

3B VARCHAR2,

4 c. table_type)

5 AS

6 BEGIN

7 BECAUSE I have 1... c.COUNT LOOP

8 INSERT INTO test_tab (col1, col2, col3) VALUES (a, b, c (i));

9 END OF THE LOOP;

10 END test_proc;

11.

Created procedure.

Scott@orcl12c > SHOW ERRORS

No errors.

Scott@orcl12c > START

2 DBMS_SCHEDULER. CREATE_JOB

3 (job_name-online 'test_job',

job_type 4-online "procedure_stockee."

5 job_action-online 'test_proc. "

6 number_of_arguments-online 3);

7 DBMS_SCHEDULER. SET_JOB_ARGUMENT_VALUE

8 (job_name-online 'test_job',

argument_position 9-online 1.

argument_value 10-10 online);

11 DBMS_SCHEDULER. SET_JOB_ARGUMENT_VALUE

12 (job_name-online 'test_job',

13 argument_position-online 2

14 argument_value-online 'test');

15 DBMS_SCHEDULER. SET_JOB_ANYDATA_VALUE

16 ("test_job", 3, sys.anydata.convertCollection (table_type ("Oracle", "database")));

17 DBMS_SCHEDULER. SELECT ("test_job");

18 END;

19.

PL/SQL procedure successfully completed.

Scott@orcl12c > DBMS_LOCK EXEC. SLEEP (5)

PL/SQL procedure successfully completed.

Scott@orcl12c > SELECT * FROM test_tab

2.

COL1 COL2 COL3

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

10 test Oracle

test 10 database

2 selected lines.

Tags: Database

Similar Questions

  • Possible to change the variable cpQuizInfoPassFail through advanced actions?

    Is it possible to change the variable cpQuizInfoPassFail through advanced actions? I do not see this or the other quizzing variable when I try to create an advanced action and change by entitlement or expression. Let me explain what I want to accomplish, I ask the wrong question. I have a training project, with that I need to include a post test. I don't really like the captivate quizzes. I want the post-test to play as a ride on jeopady where the user chooses issues category and gets points if the user answers correctly. For this I must ask questions on a game board and (from what I can fig) you cannot have multiple questions on the same page. I'm building the quiz with my own custom variables and coded so that the program jumps to a page of the certificate if the user gets more than 84 points. THA all works very well. But I have to be able to tell the database that the program will connect with the user has passed the quiz. I thought I could do this if I assign the value 1 to the variable cpQuizInfoPassFail. Is there a way to do this? Thanks in advance for any help,

    Doug Jackson

    Hi Doug,.

    I don't see the version you are using. Each interactive object can be marked, has a report following properties in the control panel (if you use CP5 or CP5.5) or a tab in the Properties dialog box reports, if you use a different version. You must add a score (default value is normally 1 point) and make sure you add it to the total score.

    If you want to make me a glance, post your file on acrobat.com (free, use your Adobe ID), share and publish. You will have a link that you can copy into a private message to me.

    Lilybiri

  • How to pass the variable in the table?

    Hello. I try to pass the variable created in RTF and after I enter in the table.

    In RTF:

    <? xdoxslt:set_variable($_XDOCTX,_'var',500)? >

    After the table:
    chart:
    .....................
    < DataValues >
    < RowData >
    [< xsl: for each groupe-select=".//ROW[Edad16]" group by = "Edad16" xmlns: xsl = "http://www.w3.org/1999/XSL/Transform" > ".
    < cell >
    xdoxslt:get_variable($_XDOCTX,_'var')
    < / cell >
    < / xsl: for each group->
    < / RowData >
    < RowData >
    [< xsl: for each groupe-select=".//ROW[Edad16]" group by = "Edad16" xmlns: xsl = "http://www.w3.org/1999/XSL/Transform" > ".
    < cell >
    50
    < / cell >
    < / xsl: for each group->
    < / RowData >
    < / DataValues >
    < / LocalGridData >
    < / chart >

    And it isn´t work :-(

    Any ideas?

    Hi, Benito,.

    It wil work

     
    
  • Value data named to bind variables of Type table

    Hello

    I have a display object with a query that has a where clause, clause which use 'en' (e.g. Select projTitle PROJECT where PROJID in: projIds)

    'projIds' is a variable of type table of liaison.

    I'm moving in that variable binding expects (an array of projIds that can be used by the sql statement), and I did not. I'm calling a method in the bean to support the named child tag data from the action tag in the pageDef file links section.

    Can you give me the proper syntax and object Array as this variable binding will accept, please? Maybe I used the wrong NDType? I found a couple of different options, but none that I can make it work.

    The page definition file:

    < action IterBinding = "ProjPendingApprovalByApproverVO1Iterator" id = "loadPendingApproval".

    InstanceName = "SystemAMDataControl.RooProjIdArrayt.ApprovalAM1.ProjPendingApprovalByApproverVO1"

    DataControl = "SystemAMDataControl" RequiresUpdateModel = "true" Action = "executeWithParams" >

    < NamedData NDName = 'PROJID"NDValue =" #{dashboard.projIdArray} "NDType="oracle.jbo.domain.Array"/ >"

    < / action >

    Application of VO:

    SELECT ProjectEO.PROJ_ID,

    ProjUtnDtlEO.UTN_TYPE,

    ProjectEO.PROJ_SHORT_DESC,

    ProjUtnDtlEO.PROJ_DTL_ID,

    ProjectEO.PROJ_OWNER,

    VEmployeeInfoEO.FIRST_NAME,

    VEmployeeInfoEO.EMPLOYEE_ID,

    VEmployeeInfoEO.FIRSTNAMELASTNAME,

    VEmployeeInfoEO.LAST_NAME,

    VEmployeeInfoEO.LASTNAMEFIRSTNAME,

    ProjApprovalDecisionDtlEO.PROJ_APPROVAL_DECISION_DTL_ID,

    ProjApproverEO.PROJ_APPROVER_ID,

    ProjApproverEO.APPROVER_LEVEL,

    ProjApproverEO.APPROVER_NUMBER,

    ProjApproverEO.APPROVER_ROLE,

    ProjApprovalDecisionDtlEO.COMMENTS,

    ProjApprovalDecisionDtlEO.PROJ_APPROVAL_DECISION_ID,

    ProjApprovalDecisionDtlEO.LASTUPDATEDBY,

    ProjApprovalDecisionDtlEO.APPROVEDDATE,

    ProjectEO.SYS_STATUS,

    ProjApproverEO.LASTUPDATEDBY AS LASTUPDATEDBY1,

    ProjApprovalDecisionDtlEO.PROJ_APPROVAL_TYPE_ID,

    ProjStatusLkpEO.STATUS_DESC,

    ProjStatusLkpEO.PROJ_STATUS_ID,

    ProjectEO.PROJ_CATEGORY_ID,

    STRING. APPROVAL_DESC

    OF PTS. ProjectEO PROJECT,

    PTS. PROJ_UTN_DTL ProjUtnDtlEO,

    PTS. V_EMPLOYEE_INFO VEmployeeInfoEO,

    PTS. PROJ_APPROVAL_DECISION_DTL ProjApprovalDecisionDtlEO,

    PTS. PROJ_APPROVER ProjApproverEO,

    PTS. PROJ_STATUS_LKP ProjStatusLkpEO,

    PTS. Channel PROJ_APPROVAL_CHAIN_LKP

    WHERE ((ProjectEO.PROJ_ID = ProjUtnDtlEO.PROJ_ID (+))

    AND (ProjectEO.PROJ_ID = ProjApprovalDecisionDtlEO.PROJ_ID))

    AND (ProjectEO.PROJ_ID = ProjApproverEO.PROJ_ID)

    AND (ProjectEO.SYS_STATUS = ProjStatusLkpEO.SYS_STATUS)

    AND (ProjectEO.PROJ_OWNER = VEmployeeInfoEO.EMPLOYEE_ID)

    AND (ProjApprovalDecisionDtlEO.PROJ_APPROVER_ID = ProjApproverEO.PROJ_APPROVER_ID)

    and PROJAPPROVEREO. PROJ_APPROVAL_CHAIN_ID = STRING. PROJ_APPROVAL_CHAIN_ID

    AND (ProjApprovalDecisionDtlEO.PROJ_APPROVAL_DECISION_ID = 0)

    and PROJAPPROVEREO. APPROVER_LEVEL <>2

    and PROJAPPROVEREO. PROJ_ID in: PROJID

    Thank you!


    Please refer to http://www.jobinesh.com/2010/09/using-bind-variable-for-sql-statements.html?m=1 for an example of this.

    Timo

  • is it possible to pass the value of the variable validation function return Boolean message?

    Selection_012.pngSelection_013.png

    Assume that L_BATCH_NAME is the name of the variable which will receive the value as

    declare

    l_batch_name: = "NA";

    BEGIN

    L_BATCH_NAME: = FUNCTION (PARAMETERS);

    IF CONDITION > 0

    THEN

    RETURN FALSE;

    ON THE OTHER

    RETURN TRUE;

    END IF;

    END;

    Hi Reema,

    ReemaPuri wrote:

    Assume that L_BATCH_NAME is the name of the variable which will receive the value as

    declare

    l_batch_name: = "NA";

    BEGIN

    L_BATCH_NAME: = FUNCTION (PARAMETERS);

    IF CONDITION > 0

    THEN

    RETURN FALSE;

    ON THE OTHER

    RETURN TRUE;

    END IF;

    END;

    1. create a hidden item I say P1_HIDDEN_ITEM

    2 type the error message for this element in your process of

    declare
    l_batch_name:='NA';
    
    BEGIN
    :P1_HIDDEN_ITEM := FUNCTION(PARAMETERS);
    IF CONDITION > 0
    THEN
    RETURN FALSE;
    ELSE
    RETURN TRUE;
    END IF;
    END;
    

    3 and refer to this element hidden in the error message.

    Record for the batch '||&P1_HIDDEN_ITEM.||' already exists.
    

    Kind regards

    Jitendra

  • Is it possible to rename the variable loop for I?

    I do a lot of work with 2D arrays.  Sometimes, it would be useful when browsing the tables for one of the index named i and the other named j.  Is it possible to change the name of the variable increment other than what actually in another variable?

    Thnaks.

    Hummer1,

    As already said, there is no way to change the image of the final iteration.  However, you can add a description to the wire.  Click with the right button on the wire, then select "Description and Tip", type the name/description you want in the box.  Now you can move your mouse over the wire, and the description will appear in the context-sensitive Help window.  I hope this helps.

    Chris M

  • @HspNumToString () cannot pass the variable as a parameter?

    Hi all

    I create a rule that uses @HspNumToString () and pass a variable as a parameter.

    But it gives error on validation below the code associated with the @HspNumToString function.

    Var itemCounter = 1;

    ...

    DIFFICULTY ({UserEntity}, {period}: Dec,@MEMBER (@CONCATENATE ("Item", @HspNumToString (itemCounter))))

    ...

    ENDFIX

    and the error message is:

    "Error: formula [statement of DIFFICULTY] (line 97) parse error: invalid object type rule.

    IF I move a number as a parameter to @HspNumToString (), for example @HspNumToString (2) then the rule will be valid.

    Any suggestion?  Calculation Manager version is 11.1.2.4.001

    Best regards, Brian

    Hello

    I'm afraid that's how it is. You cannot use variables of calculation in trouble.

    Instead, you can set a static member of this dimension (i.e. "no element") and by your use of calculation an operator cross dimensional to calculate the item desired.

    See you soon,.

    Alp

  • by passing the variable char in the sliders

    HI I try to move the tank for the cursor variable, but it is not taking, if I hardcode the values of the slider that he takes

    Here's detailed... any body can say why it is not taken and tell me how to pass the values through it...

    declare
    v_Name tank (6);
    cursor c1 (c_name tank) is
    Select name, parent, child, relationship status
    First name = '% '.
    Connect prior parent child =
    Union
    Select name, parent, child, relationship status
    First name = '% '.
    connect by prior child = parent
    order by 2;
    v_c1 c1% rowtype;
    Start
    v_Name: = ('A');
    Open c1 (v_name); - here the value of v_name does not... If like hard-code open c1('c'); then work... I need to pass - value not hardcode
    Fetch c1 in v_c1;
    dbms_output.put_line (v_Name);
    dbms_output.put_line (' name ' |' parent ' |' child ' | ' status "");
    While c1%
    loop
    dbms_output.put_line (v_c1.name |) » '|| v_c1.parent | | » '|| v_c1. Child | | » '|| v_c1. Status);
    Fetch c1 in v_c1;
    end loop;
    Close c1;
    en

    Try it with a varchar2 variable (6)

    declare
    v_name varchar2(6) ;
    cursor c1(c_name varchar2) is
    select name, parent,child,status from relation
    start with name='%'
    connect by prior parent=child
    union
    select name, parent, child , status from relation
    start with name='%'
    connect by prior child=parent
    order by 2;
    v_c1 c1%rowtype;
    begin
    v_name :=('A');
    open c1(v_name);---Here the v_name value is not taking.. if hardcode like open c1('c') ; then working.. i need to pass -- value not hardcode
    fetch c1 into v_c1;
    dbms_output.put_line(v_name);
    dbms_output.put_line('name '||'parent '||'child '||'status ');
    while c1%found
    loop
    dbms_output.put_line(v_c1.name||' '||v_c1.parent||' '|| v_c1.child||' '||v_c1.status);
    fetch c1 into v_c1;
    end loop;
    close c1;
    end
    
  • How to pass the variable to bind page ADF view object

    Would appreciate your help on this.
    Set up a view with a variable binding object: param1 in where clause.
    I want to pass the value of the variable to link from a page of the ADF (.jspx)

    I know that one Option using executeWithParams() method binding in the ADF page.
    But, I want to pass a pageFlowScope parameter (which is already set when loading the page) to the variable binding VO, and the VO should also display the results filtered on the page the first time itself.

    Could someone help me understand with a code, how to achieve the same. (Is there a groovy expression to access the param pageflowscope?)

    Thank you

    Published by: user5381160 on August 12, 2010 20:01

    You should also consider dragging operation executeWithParams on your workflow and of wiring to occur before your page instead of in the definition on the page itself - so it is more clear what is happening and is the approach recommended for 11 g applications. When drag-and you - drop operation, you can use the dialog box bind the parameter to your page flow - scope variable by providing the good EL there.

    There is no expression Groovy in the model layer to access the workflow variable scope page (which is in the controller layer) because this would violate the separation of concerns inherent in an MVC application.

    John

  • How to pass the variable in the lov using like operator SQL

    Hello.
    I want to use a lov I pass a variable using like operator.
    my query is
    Select empno, name of the table where empno as ': ed %';

    I want to show a % or B empno % so my empno is A001 to A199 AND B001 to B199
    How can I do this?


    regards

    Set the property default_where to the block and run the query

    set_block_property ('myblock ', default_where,' like upper (Ename)' |: mybind |) » %');

  • The possibility of declaring the variable on request?

    Hello

    With the help of Oracle 9i. I'm new to the PL/SQL (coming from c#), I would like to know if it is possible to declare a variable around the where it is used. For example, in the execution of the procedure block, suppose I want to do:

    .. existing code...

    vTest whole;
    vTest: = 123;

    .. existing code (continued)...

    In doing so, the procedure could not compile. The only way I know to date is to declare the whole vTest. in the declaration block. Can you please let me know how to declare the variable in the body of the procedure?

    Thanks in advance.

    It is technically possible, but I wouldn't recommend it (I personally do not like this approach a LOT).

    ME_XE?create or replace procedure testin  2  as  3  4     vparamone   number default 123;  5  6  begin  7  8     declare  9        vparamtwo   number default 456; 10     begin 11        vparamone   := vparamtwo; 12     end; 13     dbms_output.put_line(vparamone); 14  end; 15  /
    
    Procedure created.
    
    Elapsed: 00:00:00.29ME_XE?exec testin;456
    
    PL/SQL procedure successfully completed.
    
    Elapsed: 00:00:00.01ME_XE?
    
  • How to pass the variable to a swf into another swf

    I declared a variable in the one.fla file

    I open another file swf on a button.

    the code is as follows

    name = 'personName ';

    myButton.onRelease = function () {}

    trace ("liberation" + name);     personName

    loadMovie ("mainPage.swf", _root);

    _root.loadMovie ("mainPage.swf");

    }

    I want the variable 'name' of access to another swf file. IE (mainPage.swf)

    How do I do that?

    You want to use the MoveClipLoader class (using loadClip() and addListener methods) rather than loadMovie so that you can wait for the file to load before you try to access anything in it.  You can create an empty movieclip to load the SWF in, and in this way the loaded file can be targeted using the empty movieclip instance name.

  • by passing the variables or targeting aray instance



    I can enter the variable in Pages.as now, but the charger will not "recharge" hen is click on the button...

    Stayed in it for too long and could use some help. Thanks in advance to anyone out there with a bone to throw away a newbie.

    God is in the details.

  • How to pass the value of the variable record type in the procedure

    Hai All

    My Question is

    I have a table named Emp and the structure

    ID Varchar2 (25)

    Name varchar2 (25)

    Number of salary


    And now, I created a folder named Rec_Emp

    Like this

    Type Rec_emp is made
    (Rec_Id varchar2 (25),)
    rec_name varchar2 (25).
    Number of Rec_salary);
    rec_emp emp_record;


    I created a SQL type

    Now how to pass the value type in the procedure


    Thanks and greetings
    SrikkanthM

    You are looking for something like this

    create table my_emp (id integer, name varchar2(100), sal number)
    /
    create type my_emp_obj as object(id integer, name varchar2(100), sal number)
    /
    create or replace procedure insert_into_my_emp(pEmp_Obj in my_emp_obj)
    as
    begin
      insert into my_emp (id, name, sal) values(pEmp_obj.id, pEmp_Obj.name, pEmp_obj.sal);
    end;
    /
    begin
      insert_into_my_emp(my_emp_obj(1,'karthick',1000));
    end;
    /
    select * from my_emp
    /
    
  • Passing a variable of type CHAR to to_date

    I'm loading and transforming data inherited from main frame that stores dates in a numeric field in Julian, about a date format format Oracle RRDDD. A date between 2000 and 2009 down the 0 key s, for example in 2009, giving a data as 931, which could be 1 January 1993 or January 31, 2009. I can stuff a zeros to the number field to give me "0931" in a char field that my top_date Oracle interprets as January 31, 2009 with the correct mask "RRDDD." BUT, I can't find a way to spend my character sting ' 0931 "which is a variable to my my Oracle to_date, who seems to want the bounding apostrophes, even a character variable:"

    Thus

    my_Julian_date = 345 - East February14, 2003, leading 0 is not available from source inherited |

    |

    SELECT TO_DATE('00345', 'RRDDD') FROM DUAL returns OK 14 February 03 |

    SELECT TO_DATE(345, 'RRDDD') FROM DUAL returns 14_FEB-03 OK too.

    |

    But if I put my date as character in a variable |

    DECLARE my_date VARCHAR2 (5);                                                                                         |

    BEGIN                                                                                                                                       |

    my_date: = '00345';                                                                                                           |

    SELECT TO_DATE (my_date, "RRDDD" "")... fail to read my_date |          / * Please ignore that this DOUBLE selection does not work * /.

    SELECT TO_DATE ('| my_date |) "," RRDDD ")... |"            / * with the variable my_date, the question is to_date accepts a variable value * /.

    How can you pass a varchar2 or char VARIABLE with a VALUE like '00345' to TO_DATE?

    Hi, I think I found a solution, having abandoned my convoluted case statement and go with something much simpler. Here it is:

    Select cit_warr_tm_py_ky, iss_dte,.

    () my_to_date2

    LPAD)

    To_CHAR (iss_dte),

    5, '0')

    ) as My_Date

    OF sats_common_data_v

    order by My_Date;

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

    Before I spent the legacy of Julian date as a number, but here I convert it to VARCHAR type and changed my my_to_date UDF to

    accept the varchar2 instead of the parameter number parameter

    And, my my_to_date2 function:

    create or replace FUNCTION 'MY_TO_DATE2')

    p_in_date IN VARCHAR2)

    RETURN DATE IS

    date of rtn_date;

    BEGIN

    rtn_date: = null;

    Start

    rtn_date: = TO_DATE (p_in_date, 'RRDDD');

    exception: when others then rtn_date: = Null;

    end;

    RETURN rtn_date;

    END my_to_date2;

Maybe you are looking for

  • I lost my notes

    I lost my notes of iphone5. Gmail has a few other notes, but one I used more is lost. Is it possible to get it back?

  • HP Envy 17-k207na: problem with lan port even when installation of official drivers...

    I downloaded the driver from Realtek LAN (LAN) fromthis site and always when plug you my cable to the pc it says limited conectivit that I tried on another pc with cable it works internet. -.-

  • Best practices - dynamic distribution of VI with LV2011

    I'm the code distribution which consists of a main program that calls existing (and future) vi dynamically, but one at a time. Dynamics called vi have no input or output terminals. They run one at a time, in a subgroup of experts in the main program.

  • Problems with Windows Update

    VIRUS ON THE INTERNET, COMPUTER HACKING, INTERNET INTERNET CONNECTION AND CONNECTION PIRACY GET STOPPED DURING THE UPDATE OF WINDOWS WITH WINDOWS GENIUINE EVEN. WHY? I'VE HAD LONG IMPORTANT PROGRAM FILES IN MY LAPTOP BUT WHEN I UPDATED WINDOWS UPDATE

  • HP AiO b109a printer range: reinstall

    I get a message 'to use HP printing with this version of windows software, reinstall', but my installation disc is only for XP, Vista, Windows7. I tried the program but can not get anywhere. the printer does not print, but I can't have preferences. I