Insert records in the W_EXCH_RATE_G table.

Hi all

Can someone help me with the following scenario.

I would like to know how to insert additional record of exchange rates in the W_EXCH_RATE_G table in the data warehouse.
I checked records in this table ate PS_RT_RATE_TBL of peoplesoft.
But I have just a flat file and I have to complete additional registration.
Can you let me know if I have to use and update the query to do the same thing or do I change the mapping in Informatica?

Thanks for the help in advance!
-Nikki

Nikki, see also my response to your similar message: -.

Change SIL_GLBalanceFact to populate the Balance_Global1_Amt column.

Please indicate if helpful/useful.
Andy.

Tags: Business Intelligence

Similar Questions

  • Insert and update the nested table

    Hello

    I created a nested table containing the following columns. I need to insert records into the nested table. And also I have to update the nested table. Please find below my table and get error message.

    Please advose...!
    SQL> create type details as object(
      2  basic number(7,2),
      3  da number(6,2),
      4  hra number(6,2),
      5  pf number(6,2),
      6  it number(6,2),
      7  gross number(7,2),
      8  ded number(6,2),
      9  net number(8,2));
     10  /
    
    Type created.
    
    SQL> create type details_t is table of details;
      2  /
    
    Type created.
    
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  create table emp_tab(empno number(4),name varchar2(10),details_tab details_t)
      2* nested table details_tab store as empl_details
    SQL> /
    
    Table created.
    
    
    SQL> ed
    Wrote file afiedt.buf
    
      1* insert into emp_tab values(&empno,'&name',details_t(details(&da,&hra,&pf,&it,null,null,null)))
    SQL> /
    Enter value for empno: 1
    Enter value for name: asdf
    Enter value for da: 120
    Enter value for hra: 130
    Enter value for pf: 120
    Enter value for it: 120
    old   1: insert into emp_tab values(&empno,'&name',details_t(details(&da,&hra,&pf,&it,null,null,null
    new   1: insert into emp_tab values(1,'asdf',details_t(details(120,130,120,120,null,null,null)))
    insert into emp_tab values(1,'asdf',details_t(details(120,130,120,120,null,null,null)))
                                                 *
    ERROR at line 1:
    ORA-02315: incorrect number of arguments for default constructor
    Can I use '&' while inserting records in the nested table? Yes / No?

    I do need to update also net gross, ded, columns... !!

    Please help me... !!

    Concerning
    A
    $ sqlplus scott/tiger
    
    SQL*Plus: Release 10.2.0.2.0 - Production on Thu Apr 21 16:18:16 2011
    
    Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
    
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    
    SQL> CREATE TYPE details AS OBJECT(
     basic NUMBER(7,2),
     da NUMBER(6,2),
     hra NUMBER(6,2),
     pf NUMBER(6,2),
     it NUMBER(6,2),
     gross NUMBER(7,2),
     ded NUMBER(6,2),
     net NUMBER(8,2));  2    3    4    5    6    7    8    9
     10  /
    
    Type created.
    
    SQL> CREATE TYPE details_t IS TABLE OF details;
      2  /
    
    Type created.
    
    SQL> CREATE TABLE emp_tab(empno NUMBER(4),name VARCHAR2(10),details_tab details_t)
     NESTED TABLE details_tab store as empl_details  2
      3  /
    
    Table created.
    
    SQL> INSERT INTO emp_tab VALUES(7001,'Saubhik',details_t(details(100,100,50,10,10,null,null,null)));
    
    1 row created.
    
    SQL> SELECT * FROM TABLE (SELECT details_tab FROM emp_tab WHERE empno=7001);
    
         BASIC         DA        HRA         PF         IT      GROSS        DED
    ---------- ---------- ---------- ---------- ---------- ---------- ----------
           NET
    ----------
           100        100         50         10         10
    
    SQL> ^C
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  UPDATE TABLE (SELECT details_tab FROM emp_tab WHERE empno=7001)
      2     emp_sal
      3*    SET emp_sal.net=emp_sal.basic+emp_sal.da+emp_sal.hra
    SQL> /
    
    1 row updated.
    
    SQL> SELECT * FRM emp_tab;
    SELECT * FRM emp_tab
             *
    ERROR at line 1:
    ORA-00923: FROM keyword not found where expected
    
    SQL> SELECT * FROM emp_tab;
    
         EMPNO NAME
    ---------- ----------
    DETAILS_TAB(BASIC, DA, HRA, PF, IT, GROSS, DED, NET)
    --------------------------------------------------------------------------------
          7001 Saubhik
    DETAILS_T(DETAILS(100, 100, 50, 10, 10, NULL, NULL, 250))
    
    SQL>
    
  • Apex 5 How do I retrieve the value inserted record in the form of DML

    Hi Experts,

    I have a DML form page which I created with the Wizard "form on a Table with the report." This form has a created apex "automatic processing line (DML) ' process that inserts, updates, and deletes the record in the TRXHIST table. This form use ROWID as a primary key column. The table TRXHIST is to have primary key as a field that uses the TRX_ID_SEQ sequence. There's a trigger on this table that deals with this sequence. Now the records are get inserted, updated and deleted and I am able to show the message with equal success.

    Now, I have a requirement to indicate problem (that will be generated over this insertion using the sequenceof TRX_ID_SEQ ) in the success message, so that the user can be noted.

    Can you please help in this.

    Thank you very much

    Thierry

    Hi Thierry,.

    1. The page element existing Pxxx_ROWID and rename it to Pxxx_TRX_ID, set the attribute column of field data.
    2. In the LMD processes change the ROWID to TRX_ID and Pxxx_ROWID to Pxxx_TRX_ID references
    3. Make sure "Return Key in Item" is defined on Pxxx_TRX_ID
    4. In your success message of process you can use & Pxxx_TRX_ID to replace the id generated recently.

    Concerning

    Patrick

  • FETCH ONE RECORD IN THE SECOND TABLE OF CORRELATED SUB QUERY

    Hi all

    I have provided the script below, I want to single fecth record in the second table in the join query,

    based on the example below, I want to go get one record of the table emp2 what matches with the emp_id of table emp1, please note emp2 may contain more record for the emp_id emp1 which respects

    all records can be selected in the table emp2.

    DROP TABLE emp1.

    CREATE TABLE emp1 (emp_id NUMBER);

    INSERT INTO emp1 VALUES (1);

    INSERT INTO emp1 VALUES (2);

    COMMIT;

    DROP TABLE emp2.

    CREATE TABLE emp2 (emp_id NUMBER, emp_name VARCHAR2 (100));

    INSERT INTO emp2 VALUES (1, 'Name1');

    INSERT INTO emp2 VALUES (2, 'Name2');

    INSERT INTO emp2 VALUES (1, 'Name3');

    INSERT INTO emp2 VALUES (2, 'Conjoint4');

    COMMIT;

    SELECT * from emp1.

    SELECT * from emp2.

    SELECT T1. EMP_ID, MIN (T2. EMP_NAME)

    FROM EMP1, EMP2 T2 T1

    WHERE T1. EMP_ID = T2. EMP_ID

    GROUP T1. EMP_ID;

    My output should be the same as the result set of query above, but I don't want this logic, please provide the solution by using a different logic, thanks in advance.

    2811876 wrote:

    Thanks for your comments :-)

    My business logic will change to 'Fetch N second timeline table', that's the reason why I asked for a different approach, if I use max, min to achieve this does not allow me to evolve dynamically.

    Although logic has not been expressed at all in your original question, so good job I asked.

    You could do something like:

    SQL > ed
    A written file afiedt.buf

    1 with emp1 (select 1 as the emp_id of union double all the)
    2. Select 2 double
    3               )
    4, emp2 (select 1 as emp_id, 'name 1' as emp_name double union all
    5. Select "name 2' Union double every 2
    6 select 1, 'name' 3' from dual union all
    7. Select 2, 'name 4' double union all.
    8 select 1, 'name 5' from dual union all '.
    9 select 2, 'name 6' from dual '.
    10               )
    11-
    12. end of test data
    13-
    14 select emp_id, emp_name
    15 of)
    16 select t1.emp_id, t2.emp_name
    17, row_number() over (partition by order of t2.emp_name t1.emp_id) rn
    emp1 t1 18
    19 join t2 emp2 (t1.emp_id = t2.emp_id)
    20       )
    21 * where rn<=>
    SQL > /.

    Enter the value for rows_required: 1
    21 Alumni: where rn<=>
    21 news: where rn<=>

    EMP_ID EMP_NA
    ---------- ------
    1 name 1
    2 name 2

    SQL > /.
    Enter the value for rows_required: 2
    21 Alumni: where rn<=>
    21 news: where rn<=>

    EMP_ID EMP_NA
    ---------- ------
    1 name 1
    1 name 3
    2 name 2
    2 name 4

  • Insert newspapers in the errors table

    Hello

    I want to insert errors in the custom error message table.
    eventhogh is runs properly but I cannot insert rows in the error table.

    This is the code.

    DECLARE
    v_status VARCHAR2 (20);
    cursor c1
    is
    Select * from all_errors
    When type = 'PROCEDURE '.
    and name = upper ('updatecourse');
    v_rec c1% rowtype;
    BEGIN
    Select the State
    in v_status
    of object
    where object_type = upper ('PROCEDURE')
    and object_name = upper ('updatecourse');
    If v_status = "INVALID" Then
    Open c1;
    loop
    Fetch c1 in v_rec;
    When exit c1% notfound;
    insert into values of error_log (owner, name, type, text) (v_rec.owner, v_rec.name, v_rec.type, v_rec.text);
    end loop;
    Close c1;
    end if;
    END;

    Please let me know what to do.

    Thank you
    Rami Reddy.

    Why a loop?

    You can manage in a simple SQL statement... (Not tested, just to give an idea). I hope that you don't have the name of this procedure in the two schemas

    insert into error_log(owner,name,type,text)
    select owner,name,type,text
    from all_errors
    where type='PROCEDURE'
    and name=upper('updatecourse')
    and 'INVALID' =
       (
       select o.status
       from all_objects o
       where o.object_type=upper('PROCEDURE')
       and o.object_name=upper('updatecourse');
       );
    
  • Add records in the target table

    Hi all
    I HAV done an interface for a simple source data transfer to the target. When I run it, the records are stored in the target table. Now, I want to launch the interface (for the same or different source table) and add the records to existing records in the target table.

    Kindly guide me, explaining how shud I do the addition in the target table.

    Thanks in advance.

    Hello

    You can use the IKM control add... it will add records...

    Thank you.

  • Insert the record in the second table by making the trigger on the first table

    I hv created 2 tables as shown below the code sql. I want to insert some record (line current value) column of the first table, next sequence value and sysdate into second table. I hv created trigger but I gave warning.
    so I want to know what is the problem in my sql code.
    Pls correct!

    SQL > create table myuser1 (u_id varchar2 (10), uname varchar2 (20), sex char(1));

    SQL > create table myuser2 (reg_no number (5), reg_date Date, u_id varchar2 (20));

    SQL > create the sequence myuser2_seq;

    SQL > alter table myuser1 add constraint pk_myuser1 key (u_id) primary;

    SQL > alter table myuser2 add constraint pk_myuser2 key (reg_no) primary;

    SQL > CREATE TRIGGER MYTRIGGER
    2 AFTER INSERT ON myuser1
    3 FOR EACH LINE
    4 BEGIN
    5 INSERT INTO myuser2 (reg_no, reg_date, u_id)
    6 VALUES (myuser2_seq.nextval, SELECT SYSDATE FROM DUAL, select u_id myuser)
    1)
    7 END;
    8.

    WARNING: Trigger created with compilation errors.

    JKMourya wrote:
    I hv created 2 tables as shown below the code sql. I want to insert some record (line current value) column of the first table, next sequence value and sysdate into second table. I hv created trigger but I gave warning.
    so I want to know what is the problem in my sql code.
    Pls correct!

    SQL > create table myuser1 (u_id varchar2 (10), uname varchar2 (20), sex char(1));

    SQL > create table myuser2 (reg_no number (5), reg_date Date, u_id varchar2 (20));

    SQL > create the sequence myuser2_seq;

    SQL > alter table myuser1 add constraint pk_myuser1 key (u_id) primary;

    SQL > alter table myuser2 add constraint pk_myuser2 key (reg_no) primary;

    SQL > CREATE TRIGGER MYTRIGGER
    2 AFTER INSERT ON myuser1
    3 FOR EACH LINE
    4 BEGIN
    5 INSERT INTO myuser2 (reg_no, reg_date, u_id)
    6 VALUES (myuser2_seq.nextval, SELECT SYSDATE FROM DUAL, select u_id myuser)
    1)
    7 END;
    8.

    WARNING: Trigger created with compilation errors.

    SELECT inside VALUES clause is NOT allowed.
    do SELECT statements before the INSERT command

  • Insert select on the same table: possible without side effects?

    I have a very large table T1 containing millions of records. I need to treat its lines and create a few new lines based on selection.

    Table T1 contains events and one of them, with the code 100, is created by the further development of other events inside the table.

    My code is as follows:

    insert /*+append */ into T1 (code,...) values (100, c1,c2,...)
    select c1,c2... from T1 where (code=20 or code=10) and <other conditions>...
    
    

    as you can see I'm extract T1 lines to insert again in T1 with a different code and I use the direct path in order to get good performance.

    My fear is: choose is made from the same table I risk data loss? In general it is a good practice? Or is it better to create another table?

    Hello

    No I don't think that there may be loss of data. But that may depend on the behavior of the application and your where clause.

    I will explain how it is treated, so you can see if it's ok:

    1. the table is locked because of the insert add, (as)

    2 lines are read by select and make compatible from the State that was at the beginning of the query - 1.

    3 rows are inserted at the end, after the high-water line

    4 columns for new lines are sorted to be merged in the index

    5. high watermark is adjusted - visible new lines and lock is released

    Note that 2. and 3. occur at the same time: rows are inserted all read.

    Note that anyone can choose in the table during the operation - they see the changes committed only - if the State 1.

    all other DML are waiting for the lock being released, and will see new ranks and then

    If you have things that prevent the direct-path insert, append the hint will be ignored. So, if you must rely on close to 1. then the best lock explicitly with table lock. But I don't think that you need.

    Kind regards

    Franck.

  • Records in the Child Table to return DBAT connector deletion and addition

    I'm trying to add a record of the child to a resource DBAT (11.1.1.5). The structure of the Table is set up like this:

    OIM_USR

    Usr_key First name Last_name

    OIM_ROLE

    USR_KEY ROLE_KEY

    Where OIM_USR is the parent, and OIM_ROLE is the child that can store multiple values per user.  The problem arises when there is already an existing value in the child table. Consider the following example for instance

    OIM_USR

    Usr_key First name Last_name
    45JohnDOE

    OIM_ROLE

    USR_KEY ROLE_KEY
    452454
    454453

    If I add another line to the role of the identity UI table Edit tab added resource role, but IOM is remove the previous two lines and then adding them back. We know that it is because the source OIM_ROLE table contains a timestamp of creation triggered update time when a row is added. If I add a line to OIM_ROW then all three are getting updates for a reason any. We can also see the history of resource shows three updates. Inserting a record of the child should not call the process of update tasks. I've attached a screenshot of the history of the resource.

    In addition, I upped the DBAT Connector logs and he showed a trace of remove:

    DELETE FROM OIM_ROLES WHERE OIM_ROLES. USR_KEY =?

    Why he deletes all children lines before an insertion?

    I think you use OOTB DBAT connector without modification. I think that's how its design to add/change/delete files. For child process also updated form, we follow the same approach.

    Are you facing any functional problem in connector DBAT to reach your use cases?

    ~ J

  • DELETE_DOC and other records in the REVCLASSES table

    Hello WebCenter content masters,


    I am facing a strange and painful problem.

    I have several documents with dDocName I got (not automatically generated). I deleted a bunch of them (about 100) using service RIDC DELETE_DOC. But when I try to check in new documents with the dDocName of these deleted items, I got an error:


    intradoc.common.ServiceException:! csServiceDataException, CHECKIN_NEW_SUB, makeNewRevClass! $ * ScriptStack CHECKIN_NEW_SUB

    3:doScriptableAction, dDocName is 638470463:doSubService, dDocName = 63847046CHECKIN_NEW_SUB, dDocName = 638470463:makeNewRevClass, dDocName = 63847046

    ...

    Caused by: intradoc.data.DataException:! csDbUnableToExecuteQuery, IrevClasses (INSERT INTO RevClasses (dRevClassID\, dDocName\, dDocCreator\, dDocCreatedDate\, dDocLastModifier\, dDocLastModifiedDate\, dDocOwner\, dDocFunction) VALUES(2894314\, '63847046'\, 'admin'\, {ts '2013-06-11 09:15:59.745'}\, 'admin'\, {ts '2013-06-11 09:15:59.745'}\, 'admin'\, ''))! $ORA - 00001: unique constraint (PRD_OCS. DDOCNAME_REVCLASSES) violated

    ...

    Caused by: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (PRD_OCS. DDOCNAME_REVCLASSES) violated

    So, I checked the REVCLASSES table and was surprised to see there are still records of deleted documents.

    Select * from documenthistory where ddocname = '63847046' order of dactiondate desc;

    24/05/13 14:13, 000000000 121467985 2172024 2172070 admin 63847046 delete Document Public

    24/05/13 14:13, 000000000 121468000 2172024 2172070 admin 63847046 remove public review

    15/05/13 02:04, 000000000 121481564 2172024 2172070 admin 63847046 Checkin Public

    Select * from revision where ddocname = '63847046';

    vacuum

    Select * from revclasses where ddocname = '63847046';

    2172070 63847046 2172024 15/05/13 02:04:41, System 455000000 15/05/13 02:04:41, 000000000 admin admin (null)

    I can't understand what has happened and cannot reproduce the problem. Normally, I delete with DELETE_DOC no more documents exist in the REVCLASSES table.

    I tried to run a Cycle of regeneration Collection, thinking it would be to clean up the database, but to no avail.

    So my question is: is it possible to sort a cleaning of the database, which would remove this kind of mistake? or do I have to manually remove these records 'ghosts'?

    Thank you for reading.

    Hello!

    You could run a check of database with the IdcAnalyze cmdlet.

    This tool checks the tables and detect inconsistencies.

    You will find in $DOMAIN_HOME/ucm/cs/bin

    If there is something wrong, it will be detected and IdcAnalyze will generate scripts to correct inconsistencies.

    Roman.

  • Insert data into the same table based on certain conditions

    Hello. I'm new to this forum.
    I have to write a stored procedure to insert data in a table MYTABLE say, having a structure like:

    Col1 Col2 Col3... TotalInstallments CurrentInstallment PaidAmount MonthYear
    I have to insert all the data that it is in the same table (MYTABLE) except change some fields based on certain conditions:

    1. if PaidAmount > 0 & & CurrentInstallment < TotalInstallment then

    CurrentInstallment = CurrentInstallment + 1

    2. in the field MonthYear I have data ex. 01/2012, 11/2012 formate(month/year)...

    So, I have to insert data by incrementing the month and year. for example:

    If currentdata is 11/2012 next data will be 12/2012

    But following will be 01, 2013
    I have to select all records that belongs to the previous month (across the field MonthYear) and put the audit on each record selected and insert data and then turns them into table (MYTABLE) even.

    How to achieve that?

    Thank you.

    978184 wrote:
    Hello. I'm new to this forum.
    I have to write a stored procedure to insert data in a table MYTABLE say, having a structure like:

    Col1 Col2 Col3... TotalInstallments CurrentInstallment PaidAmount MonthYear
    I have to insert all the data that it is in the same table (MYTABLE) except change some fields based on certain conditions:

    1. if PaidAmount > 0 & CurrentInstallment

    CurrentInstallment = CurrentInstallment + 1

    2. in the field MonthYear I have data ex. 01/2012, 11/2012 formate(month/year)...

    So, I have to insert data by incrementing the month and year. for example:

    If currentdata is 11/2012 next data will be 12/2012

    But following will be 01, 2013
    I have to select all records that belongs to the previous month (across the field MonthYear) and put the audit & on each of the selected data record and insert then turns them into table (MYTABLE).

    You can do this way:

    This is not tested, but if you can provide the example of table structure and data (IN create table and insert scripts), it can be put to the test.

    insert into your_table
    (col1, col2, col3...current_installment, month_field)
    select col1, col2, col3..,
           current_installment +
           case when paidamount > 0 and current_installment < total_installment then
            row_number() over (
                                partition by column1, column2,.. columnn      -->You may choose partition if you want the
                                                                              --Increment of Current_installment to reset after particular combination ends
                                order by primary_key        -->Order the Increment, you may choose to add more columns to order by
                              )
          else
            0                                               --> if condition is not met, then Add 0
          end curr_installment,
          add_months(to_date(month_field, 'MM/YYYY'), 1) nxt_month
      from your_table;
    
  • Domain! = Insert then in the other Table

    Hello
    I can't figure out how to create a trigger that inserts data based on cases an old.field! = new.field. If the field has been changed to
    a tbl_test table then insert this file into the other tbl_test_history of the table. It's a little different since I want to insert a record if an update
    has taken place. The update will still take place at tbl_test, but I want an insert will be held at tbl_test_history.
    CREATE OR REPLACE TRIGGER AU_INSERT_TEST_HISTORY 
      AFTER UPDATE
      ON TBL_TEST   FOR EACH ROW
    WHEN (
        OLD.Orange != NEW.Orange
     OR OLD.Apple != NEW.Apple
          )
    BEGIN
    INSERT INTO TBL_TEST_HISTORY
     (ORANGE,
      APPLE
      BANANA,
      GRAPE
    )
      select ORANGE,
             APPLE
             BANANA,
             GRAPE
    FROM TBL_TEST, TBL_TEST_HISTORY
      WHERE  TBL_TEST.PK_TEST_ID = TBL_TEST_HISTORY.PK_TEST_ID;
    END AU_INSERT_TEST_HISTORY;
    /
    I have a separate trigger that will insert records from tbl_test to tbl_test_history. This trigger compiles without error but when I
    create a record in tbl_test I have an error message. I don't know if the syntax is correct, can someone help me with this?

    My bad. I put the colon: in the when clause. They were not there in your code. I usually use an if condition, which is a little different.

    I added a NEW logic to also consider the comparison of NULL values.

    CREATE OR REPLACE TRIGGER AU_INSERT_TEST_HISTORY
      AFTER UPDATE  ON TBL_TEST
      FOR EACH ROW
    BEGIN
      if nvl(:old.ORANGE,'xxx') != nvl(:new.ORANGE,'yyy')
         OR nvl(:old.APPLE,'xxx') != nvl(:new.APPLE,'yyy')
      then
        INSERT INTO TBL_TEST_HISTORY
         (ORANGE, APPLE, BANANA, GRAPE)
        values (:new.ORANGE,
                 :new.APPLE,
                 :new.BANANA,
                 :new.GRAPE);
      end if;
    END AU_INSERT_TEST_HISTORY;
    / 
    

    In addition, you can consider making trigger a trigger AFTER INSERT or UPDATE.

    Then you would also put the values inserted early in your history table.

    Published by: Sven w. August 9, 2012 16:14

  • Error inserting line in the w_etl_run_s table

    Hello

    I'm below every time error performance DAC. I don't know why it's existing row_wid integration or integration id in the table w_etl_run_s. no idea please advise...


    Severity: ERROR
    Timestamp: 2011-07-26 10:12:36
    Node: node01_hdcbitest
    Thread: WRITER_1_ * _1
    Process ID: 11304
    A message Code: WRT_8229
    Message: Database error occurred:
    ORA-00001: unique constraint (BIDATA. W_ETL_RUN_S_P1) violated

    Database driver error...
    Function name: run
    Stmt SQL: INSERT INTO W_ETL_RUN_S (DATAMART_ID, DATASOURCE_NUM_ID, DATASRC_ID, INTEGRATION_ID, NAME, NUMERIC_ROW_ID, ROW_WID, ACTUAL_START_TS, LOAD_DT, LOAD_DT_WID, STATUS_CD) VALUES (?,?,?,?,?,?,?,?,?,?,?)
    Database driver error...
    Name of the function: Execute Multiple
    Stmt SQL: INSERT INTO W_ETL_RUN_S (DATAMART_ID, DATASOURCE_NUM_ID, DATASRC_ID, INTEGRATION_ID, NAME, NUMERIC_ROW_ID, ROW_WID, ACTUAL_START_TS, LOAD_DT, LOAD_DT_WID, STATUS_CD) VALUES (?,?,?,?,?,?,?,?,?,?,?)



    Gravity: INFO
    Timestamp: 2011-07-26 10:12:36
    Node: node01_test
    Thread: WRITER_1_ * _1
    Process ID: 11304
    A message Code: CMN_1053
    Message: Rowdata: (RowType = 0 (insert) CBC Rowid = Rowid Targ = 1 1
    DATAMART_ID (DATAMART_ID:UniChar.15 :): '1')
    DATASOURCE_NUM_ID (DATASOURCE_NUM_ID:Double :): "1.000000000000000")
    DATASRC_ID (DATASRC_ID:UniChar.15 :): '1')
    INTEGRATION_ID (INTEGRATION_ID:UniChar.30 :): "477")
    NAME (NAME:UniChar.100 :): "ETL: 26/07/2011-10:12:35 ')
    NUMERIC_ROW_ID (NUMERIC_ROW_ID:Double :): "476.0000000000000")
    ROW_WID (ROW_WID:Double :): "476.0000000000000")
    ACTUAL_START_TS (ACTUAL_START_TS:Date :): '2011-07-26 10:12:35 ')
    LOAD_DT (LOAD_DT:Date :): '2011-07-26 10:12:35 ')
    LOAD_DT_WID (LOAD_DT_WID:Double :): "20110726.00000000")
    STATUS_CD (STATUS_CD:UniChar.50 :): 'How TO')
    )

    Following a note (545761.1) Metalink notes can help:

    1 - DO NOT restart an ETL from the beginning when it fails in the middle. Difficulty regardless of the problem, then continue the series where it was stopped.
    2 - If do you restart an ETL from the beginning instead of continuing where he left off, you must first delete the record in the table w_etl_run with the status "Running" OR update this record if its status is "completed."

    If this was helpful, please mark as answered.

  • Inserting record in the database and then display on the next Page

    Hello!

    For a while since I posted here, but I've been pulling my hair out on this one.  Here's what I want to do.  I have a page that I want to be able to enter text in two form fields, then click on "Insert disc", and then on the next page, I just submit display.  For example, on the "insert.php" page I want to enter the field ID and Joe 43569 in the first name field.  Then after I click on submit (or insert record) the next page will have a text that says: "congratulations Joe, your ID is 43569.»  Have a great day! "Or something to that effect.

    I have the database mySQL, set up and insert records into it since this page works correctly.  Here is the code of my insert.php page which I think is the issue.   I'm just confused as to which should be added to the page detail.php to have this sentence appears correctly.  Is there something that should be added to the code on the page insert.php?  Something after the detail.php on that first line?

    Thank you, thank you, thank you in advance.

    Brent

    $insertGoTo = 'detail.php ';
    If (isset {}
    $insertGoTo. = (strpos ($insertGoTo, '?'))? « & » : « ? » ;
    $insertGoTo. = $_SERVER ['QUERY_STRING'];
    }
    header (sprintf ("location: %s", $insertGoTo));
    }
    ? > <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
    " < html xmlns =" http://www.w3.org/1999/xhtml ">
    < head >
    < meta http-equiv = "Content-Type" content = text/html"; Charset = UTF-8 "/ >"
    < title > Untitled Document < /title >
    < / head >

    < body >
    < do action = "<?" PHP echo $editFormAction;? ">" method = "post" name = "form1" id = "form1" >
    < table align = "center" >
    < tr valign = 'of basic">
    < td nowrap = "nowrap" align = "right" > ID: < table >
    < td > < input type = "text" name = "ID" value = "" size = "32" / > < table > "
    < /tr >
    < tr valign = 'of basic">
    < td nowrap = "nowrap" align = "right" > first name: < table >
    < td > < input type = "text" name = "lastName" value = "" size = "32" / > < table > "
    < /tr >
    < tr valign = 'of basic">
    < td nowrap = "nowrap" align = "right" > < table >
    < td > < input type = "submit" value = "Insert file" / > < table >
    < /tr >
    < /table >
    < input type = "hidden" name = "MM_insert" value = "form1" / >

    < / make >

    When you submit the form, the form fields values are passed to the query insert as variables of $_POST, but as soon as you redirect the user to another page, these variables are destroyed.

    There are two ways to preserve the values: use sessions and session variables, or add values to the end of the redirect URL query string. Using the variables of session is probably easier since you can do it at the top of the page that inserts data into the database without affecting the code of Dreamweaver Server behavior.

    Put this at the top of the current page:

    
    

    In details.php, add top of the page. You can then use $_SESSION ['ID'] and $_SESSION ['name'] to display the values.

  • Support for mandatory request - insert, select from the same table

    Hi all

    I need your help to write queries effectively.
    Oracle Version: 10.2.0.3.0
    OPERATING SYSTEM: UNIX

    I have a METRICS_TBL that is mentioned below table.

    CYCLE_DATE METRIC VALUE
    08/17/2008 COST-TV 100
    08/17/2008 COST-JOURNAL 50
    08/17/2008 COST-POSTALMAIL 25
    08/17/2008-PROD-TV 10
    08/17/2008-PROD-JOURNAL 25
    08/17/2008-PROD-POSTALMAIL 5

    Any data above, I have to add (Insert into select METRICS_TBL METRICS_TBL) at the same table with the records as mentioned below.

    2008-08-17 COSTPERPROD-TV 10
    08/17/2008-COSTPERPROD-LOG 2
    2008-08-17 COST PROD-POSTALMAIL 5

    Basically, I need to calculate the cost per product for each category. Depending on the settings available, metric should also be changed as COSTPERPROD and values should be cost/prod under each category.

    Can someone help me with the query.

    Thank you

    Something like this:

    INSERT INTO metrics_tbl
    (cycle_date, metrics, value)
    SELECT cost.cycle_date
             , 'COSTPERPROD-'||cost.mtype
             ,cost.value / prod.value
    FROM  (
       select cycle_date,substr(metrics, 1, 4) mtype, substrmetrics,instr(metrics,'-')+1) mmetric
       where substr(metrics, 1, 4) = 'PROD'
       ) prod
    INNER JOIN (   select cycle_date,substr(metrics, 1, 4) mtype, substrmetrics,instr(metrics,'-')+1) mmetric
       where substr(metrics, 1, 4) = 'COST'
       ) cost on cost.cycle_date = prod.cycle_date and cost.mmetric = prod.mmetric
    

    Ideally you would divide your METRICS column into two: one for the thing you're measuring (e.g. TV or NEWSPAPER) and the other for the metric (COST, PROD, COSTPERPROD etc.). That's what I did in the views online. Without it, it's kinda a mess and behave so, if the table becomes much more.

    HTH

    Nigel cordially

    Edited by: nthomas on January 14, 2009 15:57 - small correction SQL

Maybe you are looking for