insert value if pop up of master table

Hi friends,

can I insert value into the main table while pop up

for example. If I add a new user and insert personal information from the user when I select user state then I can not find corressponding city so at this point I want to add the city to the corressponding state using pop-up.

How is this Possible.

Hello

I used STATE_CODE for my section of the State. For page 2, page 3 (popup) and P2_STATE_CODE, it's P3_STATE_CODE. The page 3 is in fact based on a select list of:

SELECT STATE_NAME d, STATE_CODE r
FROM STATES
ORDER BY 1

but as it is an element "display text (" based LOV, saved state), you will see the State indicated on page 2.

The value of P3_STATE_CODE is passed in the call to javascript:

function callNewCityPopup ()
{
 var statecode = document.getElementById('P2_STATE_CODE').value;
 var url;
 url = 'f?p=&APP_ID.:3:&APP_SESSION.::::P3_STATE_CODE:' + statecode;
 w = open(url,"winLov","Scrollbars=0,resizable=0,width=300,height=200");
 if (w.opener == null)
 {
  w.opener = self;
 }
 w.focus();
}

You will need to go through the instructions and change what either the table and field names do not match what you have.

Andy

Tags: Database

Similar Questions

  • Gears - error when you try to insert values into a table with multiple columns

    Hello

    I started playing with the gears and SQlLite today and I get an error when I try to insert values into a table with multiple columns.

    I have:

    var db = google.gears.factory.create('beta.database');
        db.open('developerSet');
        db.execute('create table if not exists Developers (DeveloperName text, DeveloperAge int)');
    
        var devName = "Davy"
        var devAge = 32;
    
        try {
            db.execute('insert into Developers values (?, ?)', [devName, devAge]);
            alert('success');
        }
        catch (e) {
            alert(e);
        }
    

    I get the error:

    net.rim.device.api.database.DatabaseException; insert into developers values (?,?): SQL logic error or missing database.

    I use this reference: http://code.google.com/apis/gears/api_database.html

    Everything works if I have only one field as:

    var db = google.gears.factory.create('beta.database');
        db.open('developerSet');
        db.execute('create table if not exists Developers (DeveloperName text)');
    
        var devName = "Davy"
        var devAge = 32;
    
        try {
            db.execute('insert into Developers values (?)', [devName]);
            alert('success');
        }
        catch (e) {
            alert(e);
        }
    

    I use the plug-in Visual Studio 2.0 for 2008 that are running Windows XP SP and Simulator 2.13.0.56

    Thank you

    Davy

    Yes, a SQLite database will persist between battery pulls.  The database is registered either to internal MEM or removable media (not the device memory), depending on which is available on your device.

    In general, its not considered a best practice to remove your table as soon as it is empty and re - create it again when you want to add data.  This adds extra overhead fresh for the final, delete and insert first for a given table.  Instead, define and finalize your drawing before you create your table.  Once created, review the static schema.

    That being said, for development purposes, it may be easier to provide an easy way to drop your tables while you develop your schema.

    See you soon,.

    Adam

  • Procedure with the DML statements that insert values from 1 to 100 in only one table and it is matching word equivalent in the other

    Can someone help me create a procedure with the DML statements that insert values from 1 to 100 in a table "abc" and the procedure must connect the numbers into words in another table "xyz" without doing a commit explicitly. "."

    Currently on trial...

    SQL > create table abc (num number);

    Table created.

    SQL > create table xyz (num varchar2 (100));

    Table created.

    SQL > ed
    A written file afiedt.buf

    1. insert all
    2 values of 1 = 1 then in abc (num) (l)
    3 when the values of 1 = 1 then in xyz (num) (to_char (to_date(l,'j'), 'jsp'))
    4 * Select the level from dual connect by level<=>
    SQL > /.

    200 rows created.

    And the result...

    SQL > select * from abc;

    NUM
    ----------
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    ..
    ..
    ..
    98
    99
    100

    100 selected lines.

    SQL > select * from xyz;

    NUM
    ----------------------------------------------------------------------------------------------------
    one
    two
    three
    four
    five
    six
    seven
    eight
    nine
    ten
    Eleven
    twelve
    ..
    ..
    ..
    98
    Nineteen eighty
    Cent

    100 selected lines.

  • table name not valid error when inserting values into a table

    I use the following statement to insert values into a table:

    curs. Execute ("INSERT INTO _ * '%s' * _ VALUES ((SELECT MAX (REC_ID) + 1 OF GSAP_MSG_IN), (SELECT MAX (gsap_msg_id) + 1 OF GSAP_MSG_IN), 'SHELLSAP', sysdate, '%s', EMPTY_BLOB(), 1, SYSDATE, EMPTY_BLOB (), SYSDATE)" %(*table_name*,file_extension)) ")

    whence table_name the following statement

    table_name = ' config.staging_db_tablesNames ['in_msgs]

    as I created a configuration file for all parameters that can change. The value of the table in the audit using a print command is correctly, but when put in the query above to run the insert statement gives an error. The following is the summary of comprehensive performance where you can see the table name as

    $ python gsapscnr.py
    Vote for the data files in/home/mh/inbox /...

    GSAP_MSG_IN
    Traceback (most recent call changed):
    File "gsapscnr.py", line 147, in it?
    poll_for_data()
    File "gsapscnr.py", line 86, in poll_for_data
    Sorter = load_details_first)
    File "gsapscnr.py", line 42, survey
    curs. Execute ("INSERT INTO '%s' VALUES ((SELECT MAX (REC_ID) + 1 OF GSAP_MSG_IN), (SELECT MAX (gsap_msg_id) + 1 OF GSAP_MSG_IN), 'SHELLSAP', sysdate, '%s', EMPTY_BLOB(), 1, SYSDATE, EMPTY_BLOB (), SYSDATE)" %(table_name,file_extension)) ")
    cx_Oracle.DatabaseError: ORA-00903: invalid table name

    Can anyone help with this problem please. I'm passing the value of the table in a bad way. Also if anyone can suggest a good tutorial for paythong programming using cx_Oracle.

    Concerning

    Print the SQL string that you establish, cut and paste it this output in SQL * more and see if it runs. This may show you that you should remove the single quotes around the name of the table %s in the Python file.

  • [Insert values in table with the output values of the procedure]

    Hello

    I wrote the following procedure

    <>PROCEDURE
    create or replace procedure experience is
    cursor curexp is e.employee_id, trunc (months_between (jh.end_date, jh.start_date)) select exp, e.first_name, e.last_name, d.department_name, l.city, c.country_name, l.street_address
    e employees, job_history jh, departments d, places the country c
    where e.employee_id = jh.employee_id
    and e.department_id = d.department_id
    and d.location_id = l.location_id
    and l.country_id = c.country_id;

    v_result curexp % rowtype;

    Start
    Open curexp;
    loop
    extract the curexp in v_result;
    When the output curexp % notfound;
    dbms_output.put_line (v_result.employee_id |) ' '|| v_result.exp | ' '|| v_result.first_name | v_result.last_name);
    end loop;
    end;
    < / procedure >

    to get the values as below
    < output >
    101 NeenaKochhar 49
    101 NeenaKochhar 40
    102 66 LexDe Haan
    114 DenRaphaely 21
    122 PayamKaufling 11
    176 helenethibaut 9
    176 helenethibaut 11
    200 JenniferWhalen 69
    200 JenniferWhalen 53
    201 MichaelHartstein 46
    < / output >
    After that, I created a table as below
    < table >
    create table exp_recored (employee_id number, number of exp_mon, name varchar2 (20))
    < /table >
    Now I want to insert values in the table above

    I tried like below
    < Insert >
    Start
    insert into exp_recored (employe_id, exp_mon, name) values (experience);
    end;
    < / insetr >
    but I got error like below

    PL/SQL: ORA-00947: not enough values

    Could someone tell me please on the above point

    Thank you
    Thelak

    thelakbe wrote:
    Hello

    I tried too

    During this operation
    Start
    insert into exp_recored (employe_id, exp_mon, name) values (v_result.employee_id, v_result.exp, v_result.first_name | v_result.last_name);
    end;

    I got the below error

    PL/SQL: ORA-00984: column not allowed here

    You can try this?

    CREATE OR REPLACE
    PROCEDURE experience
    IS
      CURSOR curexp
      IS
        SELECT e.employee_id,
          TRUNC(months_between(jh.end_date,jh.start_date)) exp,
          e.first_name,
          e.last_name,
          d.department_name,
          l.city,
          c.country_name,
          l.street_address
        FROM employees e,
          job_history jh,
          departments d,
          locations l,
          countries c
        WHERE e.employee_id=jh.employee_id
        AND e.department_id=d.department_id
        AND d.location_id  =l.location_id
        AND l.country_id   =c.country_id;
      v_result curexp%rowtype;
    BEGIN
      OPEN curexp;
      LOOP
        FETCH CUREXP INTO V_RESULT;
        EXIT WHEN CUREXP% NOTFOUND;
    
        INSERT INTO EXP_RECORED (EMPLOYEE_ID,EXP_MON,NAME)
        VALUES (V_RESULT.EMPLOYEE_ID,V_RESULT.EXP,V_RESULT.FIRST_NAME||V_RESULT.LAST_NAME);
      END LOOP;
    
      COMMIT;
    END;
    
  • API to insert values into the table of apps

    Hello

    I created a table with front end applications. Creating columns and rows. Now, I want to insert values in different columns of the corresponding lines.
    Can you get it someone please let me know the API that I can use here to insert the column values?

    Kind regards!

    If you want to insert data in the standard table oracle, then you must use the api instead, then apply the insert statement, this api oracle used to check the validation of the company etc.

    Regarding the concern with regard to insert the date as you said, this is why you should use this api 'PAY_USER_COLUMN_INSTANCE_API' to insert data in pl/sql script.

  • Insert values into a table from another table without duplicates

    Hello

    I have a table with a field called ID; This field has duplicate values of ID.

    Then I have an empty table B (with the same fields of the table A) and I want to insert the values of the ID (on the table) without duplicates.

    Can you help me?


    Thank you much in advance.

    Hello

    If your table has duplicate values, then you cannot add a UNIQUE constraint. In this case, you will need to use a roundabout way or remove duplicates before imposing the constraint. Hope it answers your question.

    see you soon

    VT

  • How to insert values into a view created on multiple tables

    Hi all

    My goal for insert values in a view
    So for this I created a trigger
    then I tried to insert the value in the view, im getting as inserted row, but the value is not getting inserted

    Here are the steps I followed:


    SQL > create table (x int primary key)
    2.

    Table created.

    SQL > create table b (x references a, varchar2 (30)) y
    2.

    Table created.

    SQL > insert into a values (1)
    2.

    1 line of creation.

    SQL > insert into b values (1, 'One')
    2.

    1 line of creation.

    SQL > create or replace view v
    2 as
    3 select a.x, b.x as b_x, a y, and b where a.x = b.x
    4.

    Created view.

    SQL > select * from v
    2.

    X B_X Y
    ---------- ---------- ------------------------------
    1 1 a

    SQL > create or replace trigger v_t
    2 instead of inserting it on v
    3 for each line
    4 start
    case 5: old.x <>: new.x then
    6. Insert in a values(:new.x);
    7 end if;
    case 8: old.b_x <>: new.b_x then
    9 insert into b values (:new.b_x,:new.y);
    10 end if;
    11 * end;
    SQL > /.

    Trigger created.

    SQL > insert into v values (20,20, 'Twenty')
    2.

    1 line of creation.

    SQL > select * from v
    2.

    X B_X Y
    ---------- ---------- ------------------------------
    1 1 a


    Can anyone suggest me a valid query to insert data into a view that is created on several tables.

    Thanks in advance,
    Shalini

    Hi Shalini,

    You don't need the code if in your trigger.
    That's more like code when you update, you don't compare OLD and insert the NEW values on.

    MHO%xe> create table a(x int primary key);
    
    Tabel is aangemaakt.
    
    Verstreken: 00:00:00.11
    MHO%xe>
    MHO%xe> create table b(x references a,y varchar2(30));
    
    Tabel is aangemaakt.
    
    Verstreken: 00:00:01.09
    MHO%xe>
    MHO%xe> insert into a values(1);
    
    1 rij is aangemaakt.
    
    Verstreken: 00:00:00.01
    MHO%xe>
    MHO%xe> insert into b values(1,'One');
    
    1 rij is aangemaakt.
    
    Verstreken: 00:00:00.06
    MHO%xe>
    MHO%xe> create or replace view v as
      2  select a.x
      3  ,      b.x as b_x
      4  ,      y
      5  from   a
      6  ,      b
      7  where  a.x = b.x;
    
    View is aangemaakt.
    
    Verstreken: 00:00:01.07
    MHO%xe>
    MHO%xe> select * from v;
    
             X        B_X Y
    ---------- ---------- ------------------------------
             1          1 One
    
    Verstreken: 00:00:00.04
    MHO%xe>
    MHO%xe> create or replace trigger v_t
      2  instead of insert on v
      3  for each row
      4  begin
      5      insert into a values(:new.x);
      6      insert into b values(:new.b_x,:new.y);
      7  end;
      8  /
    
    Trigger is aangemaakt.
    
    Verstreken: 00:00:01.64
    MHO%xe>
    MHO%xe> insert into v values(20,20,'Twenty');
    
    1 rij is aangemaakt.
    
    Verstreken: 00:00:00.06
    MHO%xe>
    MHO%xe> select * from v;
    
             X        B_X Y
    ---------- ---------- ------------------------------
             1          1 One
            20         20 Twenty
    
  • How to insert values of array of String in BPM

    Hello

    I have defined an array of strings in the business object, created a data object and want to fill/insert values inside. I searched a lot of messages and tried several options but no luck.

    My BO:

    " < xs: Schema targetNamespace = ' http://xmlns.Oracle.com/BPM/bpmobject/TestTypes/SimpleArrayBO "elementFormDefault ="qualified"xmlns =" http://xmlns.Oracle.com/BPM/bpmobject/TestTypes/SimpleArrayBO "" xmlns: XS = " http://www.w3.org/2001/XMLSchema " xmlns:bpmo =" http://xmlns.Oracle.com/BPM/bpmobject/ " > ""

    < name XS: complexType = "SimpleArrayBOType" >

    < xs: SEQUENCE >

    < name XS: ELEMENT = "attr1" nillable = "true" type = "xs: String" maxOccurs = "unbounded" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < xs: element name = "SimpleArrayBO" type = "SimpleArrayBOType" / >

    < / xs: Schema >

    Add a script task and tried different ways to fill in the values.

    Basic ['a', 'b'] also fails with the error expected "-result tree fragment" rather than "string".

    How to manually enter the values?

    Thank you

    Chandra

    Because your input is coming from a few strings and not a table, you can just add a Script activity to your process and to define table of your target XSD using XML.

    To do this, you must add a Script to the activity-> in the "Application" tab click on 'Data Associations'-> dragging the "Expression" icon above your target object on the right side (not the table but the table parent)-> open the XPath expression box in the Middle-> click 'XPath Exp' in the drop-down list at the top.

    I used your XSD to create the XML file for the logic below:

    oraext:ParseXml (concat ('))

    http://www.w3.org/2001/XMLSchema-instance '.

    "" xsi: schemaLocation = "http://xmlns.oracle.com/bpm/bpmobject/TestTypes/SimpleArrayBO xsd/mySimpleArray.xsd.

    xmlns ="http://xmlns.oracle.com/bpm/bpmobject/TestTypes/SimpleArrayBO" >. "

    ', bpmn:getDataObject('string1') '

    ', bpmn:getDataObject('string2') '

    '))

    When I 'bpmn:getDataObject('...')', you should rather to insert your data object variables both your process chain.

    Hope it gets you going,

    Dan

  • ORA-01401: inserted value too large for column

    I have a table.the structure is as below.

    SQL > desc IDSSTG. FAC_CERT;

    Name                                      Null?    Type

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

    FAC_CERT_SK NOT NULL NUMBER (38)

    LOB_BYTE_CD_SK NUMBER (38)

    SRC_CRDTL_ID_STRNG VARCHAR2 (20)

    PROV_CRDTL_SK NOT NULL NUMBER (38)

    LAB_SPCL_TYP_CD_SK NUMBER (38)

    FAC_CERT_ID NOT NULL VARCHAR2 (20)

    DATE OF FAC_CERT_EFF_DT

    FAC_CERT_EFF_DT_TXT NOT NULL VARCHAR2 (10)

    DATE OF FAC_CERT_END_DT

    FAC_CERT_END_DT_TXT VARCHAR2 (10)

    UPDT_DT                                            DATE

    UPDT_DT_TXT VARCHAR2 (10)

    SS_CD NOT NULL VARCHAR2 (10)

    ODS_INSRT_DT NOT NULL DATE

    ODS_UPDT_DT NOT NULL DATE

    CREAT_RUN_CYC_EXEC_SK NOT NULL NUMBER (38)

    LST_UPDT_RUN_CYC_EXEC_SK NOT NULL NUMBER (38)

    LAB_SPCL_TYP_CD VARCHAR2 (10)

    LOB_BYTE_CD VARCHAR2 (10)

    BUS_PRDCT_CD VARCHAR2 (20)

    I need set the value of a column to a default value.

    SQL > alter table IDSSTG. FAC_CERT change (FAC_CERT_EFF_DT_TXT default, TO_DATE('01010001','MMDDYYYY'));

    ALTER table IDSSTG. FAC_CERT change (FAC_CERT_EFF_DT_TXT default, TO_DATE('01010001','MMDDYYYY'))

    *

    ERROR on line 1:

    ORA-01401: inserted value too large for column

    Please notify.

    Kind regards

    VN

    ALTER table IDSSTG. FAC_CERT change (default FAC_CERT_EFF_DT_TXT ' 01010001');

  • How to set the value of a column in a table according to another column?

    Hello world!

    I use Apex 4.1.
    My question is how can I set the value of a column in a table according to another column?
    I have a table and when I insert the value in the column content, I want to change this value in the note column with the note, which is generated with pl/sql function (function of string returned if the typed value is in the range).

    I tried to use javascript as
     $('input[name=f02]').live('change', function(){
    if($(this).val()!='1'){
    $('input[name=f03]').val("test")}
    }); 
    for the development of the column note to test if the value typed in the content of the column is not 1, but this code assigns the value to all the lines and I need to set only the specified line.

    Can someone give me a hint in any way to do this if possible?

    Kind regards
    drama9346

    You will need create a process on your page type PLSQL and develop this process "we demand" of the page. In this process, you can run the PLSQL you need. That is to say to retrieve the note value as described in your PC:

    and when I insert the value in the column content, I want to change this value in the note column with the note, which is generated with pl/sql function (function of string returned if the typed value is in the range).

    In this process, you must provide a return value of the call, and you can do this by using htp.p. Example:

    DECLARE
       --putting x01 in a var to simplify
       l_test_var VARCHAR2(200) := apex_application.g_x01;
       l_return VARCHAR2(200);
    BEGIN
       -- a simplistic test
       IF LENGTH(l_test_var) BETWEEN 10 AND 20 THEN
          l_return := 'String is between 10 and 20';
       END IF;
    
       --this will write l_return to the buffer, and the ajax callback will receive this
       htp.p(l_return);
    END;
    

    And the code that I wrote above, which is javascript, would need to go where your current code is that binds to the onchange event. The result should be that, when a change is made to this element, an ajax request is made on the server. When the call is finished, it will be the value returned in the item you want.

  • Insert values - with something! (sequences of several stages?)

    I have a table with 4 columns I need to fill with values. Values are a repeating pattern that is different from one column to the other.

    Column 1: has the values starting with 1 and ending with 10, repeating 16200 times. It is easy to code, by creating a sequence and use:

    CREATE SEQUENCE "UNITEST". "' SEQPLOCATION ' MINVALUE MAXVALUE 1 10 1 INCREMENT START WITH 11 9 ALL CACHE CYCLE;

    Column 2 is a little more complicated. First value is 1, and it is increased by 1 each time changing the values in column 1 to 1, column 2 values up to 100, then she goes back to 1 and so on and so forth.
    Column 3 adds to the complexity. Starts with 1 and repeat this value until the values in column 2 back to 1. When this happens, value that changes of rank 2 and so on until it reaches 27. Then he returned to 1.
    Column 4 begins with 1 as the first value and keeps it until it restores the value of column 3 of 27 1. When this happens, value of column 4 of this line becomes 2 and so on until it reaches 6.

    In total, we have 10 * 100 * 27 * 6 = 162000 lines.

    The structure is below:

    C1 C2 C3 C4 ROWNUM
    1 1 1 1 1
    2 1 1 1 2
    . . . .
    . . . .
    10 1 1 1 10
    1 2 1 1 11
    . . . .
    . . . .
    10 100 1 1 1000
    1 1 2 1 1001
    . . . .
    . . . .
    10 100 27 1 27000
    1 1 1 2 27001
    . . . .
    . . . .
    10 100 27 6 162000

    Is it possible to automatically insert all these value within these constraints in the table? I have values in a XLS (very simple to add them here) but I want to free myself from imports and to have everything in the DB.

    Thank you in advance for the answers!

    Try something like that.
    Probably, you will need to adjust the rules since I couldn't do everything correctly.

    select c1, c2, c3, c4
    from dual
    model
    dimension by (1 n)
    measures(1 c1, 1 c2, 1 c3, 1 c4)
    rules (
    c1[for n from 1 to 162000 increment 1]=mod(cv(n)-1,10)+1
    ,c2[n] order by n=
    case
    when c2[cv(n)-1]=100 then 1
    when c1[cv(n)]=1 and c1[cv(n)-1]!=1 then nvl(c2[cv(n)-1] + 1, 1)
    else nvl(c2[cv(n)-1], 1)
    end
    ,c3[n] order by n=
    case
    when c3[cv(n)-1]=27 then 1
    when c2[cv(n)]=1 and c2[cv(n)]!=1 then nvl(c3[cv(n)-1]+1,1)
    else nvl(c3[cv(n)-1], 1)
    end
    ,c4[n] order by n=
    case
    when c4[cv(n)-1]=6 then 1
    when c3[cv(n)-1]=27 then nvl(c4[cv(n)-1]+1, 1)
    else nvl(c4[cv(n)-1], 1)
    end
    )
    

    It will take time (approximately 2 Min) but I'll finish ;-)

    Published by: chris227 on 09.10.2012 12:37
    correction

  • Reg: inserting values using procedures in odi

    Hello

    Hello everyone, I have a requirement like values are inserted into the table of DBMS using the odi procedure very.

    I use this procedure in a package, this package including refresh variables so that it runs several times using County.

    I'm trying to insert values into the table, the table is empty. so when I am trying to run this package I get error like

    This

    ODI-1228: Dailyfileloads task (procedure) insertion fails on the target of ORACLE DSS_ORACLE connection.
    Caused by: java.sql.SQLSyntaxErrorException: ORA-00917: Missing comma

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:457)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:889)
    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:476)
    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:204)
    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:540)
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)
    at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1079)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1466)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3752)
    at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3937)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1535)
    at oracle.odi.runtime.agent.execution.sql.SQLCommand.execute(SQLCommand.java:163)
    at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:102)
    at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:1)
    at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2906)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2609)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:537)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:453)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1740)
    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ 2.doAction(StartSessRequestProcessor.java:338)
    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:214)
    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:272)
    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 0 (StartSessRequestProcessor.java:263)
    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:822)
    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:123)
    to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:82)
    at java.lang.Thread.run(Thread.java:662)

    I'm not able to solve this please help me.

    Code of procedure like this: insert into dailyload_apmstr (FILENAME) values (DSS. #sample);

    Kind regards
    Sri

    Can you please close the thread marking the answers that help complete or correct

  • question by inserting values shuttle

    Hello

    I created two shuttles in one page, and I want to insert values into a table.

    The following code works in my pl/sql testing and she correctly inserted 4 records.

    port_account_id Username
    8 name1
    24 name1
    8 name2
    name2 24

    But, when I put them in the code at the APEX, it gives an error. It introduced the 4 reviews as in PL/SQL, but it also tries to insert more than one extra record by inserting * 08:24 * to my domain PORT_ACCOUNT_ID and name1:name2 in the user name field.

    As a result, I get an error: ORA-20507: numeric value invalid 08:24 for the PORT_ACCOUNT_ID column

    Can someone advise please any problem see you here?

    Thank you!
    LC


    DECLARE
    l_selected_account apex_application_global. VC_ARR2;
    l_selected_username apex_application_global. VC_ARR2;


    BEGIN
    l_selected_account: = APEX_UTIL. STRING_TO_TABLE (8:24 '); --(:P3_PORT_ACCOUNT_ID);
    l_selected_username: = APEX_UTIL. STRING_TO_TABLE ("name1:name2"); --(:P3_USERNAME);

    FOR 1.l_selected_username.count U in LOOP
    FOR 1.l_selected_account.count A IN LOOP
    -dbms_output.put_line (l_selected_username (U) |) "account: ' |" l_selected_account (A));
    INSERT INTO PTCS_BUDGET_CONFIRM
    (PORT_BUDGET_CONFIRM_ID, USERNAME, PORT_ACCOUNT_ID, EMAIL_DATE)
    (Select PTCS_BUDGET_CONFIRM_SEQ.nextval, l_selected_username (U), l_selected_account (A), sysdate
    Double);
    END LOOP;
    END LOOP;


    END;

    Is it possible that you have another process (processing of automatic line) who performs the additional insert?

  • Insert values over a select query

    Hi all, I have a simple question:
    I need to insert values into a table of two select statements.

    There is what I need to accomplish:
    I need monitor cursors open on a database, so:
    I created the following table:
    O_CURSORS
    Cols: TOTAL (number 5), the USER (VARCHAR2 (20), DATE (TIMESTAMP)
    I think that some queries like the following should work, but unfortunately, this isn't.
    insert into O_CURSORS (total,user,date)
    values (
    (select a.value, s.username from v$sesstat a, v$statname b, v$session s where a.statistic# = b.statistic#  and s.sid=a.sid and b.name = 'session cursor cache count'),
    (select sysdate from dual)
    )
    This statement does not work, the message is
    "Not enough values.
    If I modify as follows the declaration, it works fine
    insert into O_CURSORS (total,user)
    (
    (select a.value, s.username from v$sesstat a, v$statname b, v$session s where a.statistic# = b.statistic#  and s.sid=a.sid and b.name = 'session cursor cache count'),
    )
    Any advice would be much appreciated!

    Thanks in advance.

    You must not select sysdate double; It can be a part of any select statement. Simply include sysdate in your first query:

    INSERT INTO O_CURSORS (total,user,date)
    SELECT a.value, s.username, SYSDATE
    FROM v$sesstat a,  v$statname b,   v$session s
    WHERE a.statistic# = b.statistic#
      AND s.sid=a.sid and b.name = 'session cursor cache count'
    

    You will also notice that I elimiated keyword VALUES and just use a SQL statement to satisfy the INSERT statement.

    Published by: user13640471 on February 21, 2011 13:17

    Published by: user13640471 on February 21, 2011 13:18

Maybe you are looking for

  • Process of fitness

    Hi all! I currently have a version in early 2013 of the MacBook Pro 15 inch retina. I have the latest version of Mac OS X and recently found myself interesting in my entirely wiping system. Recently, I realized that my HD is striking close to capacit

  • Update CPU i7 in TouchSmart 600-1265qd at the 4th gen i7

    I would like to upgrade the CPU (Core i7 70QM) for a 4th gen i7 in my TouchSmart 600-1265qd.  Is it possible and that the models?  Sorry, I posted this under the wrong title.  Thanks for the help.

  • Cannot install updates error Code: 0x52F - Windows XP

    Microsoft community, For Windows XP, these updates will not apply: Update of security for Word Viewer (KB2817361)Update for Office 2003 (KB2817421) securityError code: 0x52F * Barf *, I hate contributing to online communities, but it is really annoyi

  • keyboard can't type double letters

    I have a DELL Inspiron 1570. My keyboard wil type OK as long as I don't have to type two of the same letters. I can't back off even more than once. I tried to restart my computer and it stil does not work. I don't see anything else to do.

  • Mouse replacement for the Comfort Keyboard 5000

    I lost the mouse to my Wireless Comfort Keyboard 5000. REF. model 1394 MS X 820926-001 A Microsoft wireless mouse will not work? Thank you.