Having trouble selecting from a table function

Need a function to return an array in the following format:
WEEK_NBR               START_DATE END_DATE  
---------------------- ---------- --------- 
0                      29-JAN-09  25-NOV-09 
1                      26-NOV-09  02-DEC-09 
2                      03-DEC-09  09-DEC-09 
3                      10-DEC-09  16-DEC-09 
6                      26-NOV-09  16-DEC-09 
7                      29-JAN-09  16-DEC-09 
The following error after the selection of a function that returns the table:
select * from table(get_cwsr_ranges)
Error from the 1 in the command line:
Select * from table (get_cwsr_ranges)
Error report:
SQL error: ORA-06504: PL/SQL: return variables of the game results or the query types do not match
ORA-06512: at "GET_CWSR_RANGES", line 23
06504 00000 - "PL/SQL: return of the variable result set or query types do not match.
* Cause: Numbers or types of columns in a query is not declared
return type of a variable result is defined or declared two result types
Set of variables do not match.
* Action: Change the program or the declaration statement. Verify that the query variable
actually we want during execution.
>

DDL:
CREATE TYPE typ_date_range AS OBJECT
       (week_nbr                number,
        start_date              date,
        end_date                date   
      );
/

 CREATE TYPE typ_tbl_date_ranges AS TABLE OF typ_date_range;
/


CREATE OR REPLACE FUNCTION get_cwsr_ranges()
RETURN typ_tbl_date_ranges PIPELINED IS
v_dates_table  typ_tbl_date_ranges;

p_cursor     sys_refcursor;
rec  typ_date_range := typ_date_range(NULL,NULL,NULL); 

BEGIN
       
     open p_cursor for
     with sample_data as 
     (
         select 0 as  week_nbr , '29-JAN-09' as  start_date , '25-NOV-09' as end_date from dual union all                                         
         select 1 as  week_nbr , '26-NOV-09' as  start_date , '02-DEC-09' as end_date from dual union all                                         
         select 2 as  week_nbr , '03-DEC-09' as  start_date , '09-DEC-09' as end_date from dual union all                                         
         select 3 as  week_nbr , '10-DEC-09' as  start_date , '16-DEC-09' as end_date from dual union all                                         
         select 6 as  week_nbr , '26-NOV-09' as  start_date , '16-DEC-09' as end_date from dual union all                                         
         select 7 as  week_nbr , '29-JAN-09' as  start_date , '16-DEC-09' as end_date from dual  
   )
   select * 
   from sample_data;
    
LOOP
    FETCH p_cursor INTO rec;
    EXIT WHEN p_cursor%NOTFOUND;
    PIPE ROW(Rec);
END LOOP;
CLOSE p_cursor;
RETURN;

END get_CWSR_Ranges;
Any suggestions?
create or replace FUNCTION get_cwsr_ranges
RETURN typ_tbl_date_ranges PIPELINED
IS

BEGIN

  for rec in
  (
     with sample_data as
     (
         select 0 as  week_nbr , to_date('29-JAN-09', 'dd-mon-yy') as  start_date , to_date('25-NOV-09', 'dd-mon-yy') as end_date from dual union all
         select 1 as  week_nbr , to_date('26-NOV-09', 'dd-mon-yy') as  start_date , to_date('02-DEC-09', 'dd-mon-yy') as end_date from dual union all
         select 2 as  week_nbr , to_date('03-DEC-09', 'dd-mon-yy') as  start_date , to_date('09-DEC-09', 'dd-mon-yy') as end_date from dual union all
         select 3 as  week_nbr , to_date('10-DEC-09', 'dd-mon-yy') as  start_date , to_date('16-DEC-09', 'dd-mon-yy') as end_date from dual union all
         select 6 as  week_nbr , to_date('26-NOV-09', 'dd-mon-yy') as  start_date , to_date('16-DEC-09', 'dd-mon-yy') as end_date from dual union all
         select 7 as  week_nbr , to_date('29-JAN-09', 'dd-mon-yy') as  start_date , to_date('16-DEC-09', 'dd-mon-yy') as end_date from dual
    )
   select typ_date_range(week_nbr, start_date, end_date) the_type
   from sample_data
  )
  loop
    pipe row (rec.the_type);
  end loop;

END get_CWSR_Ranges;

and then...

select *
from table(cast(get_cwsr_ranges as typ_tbl_date_ranges))

Published by: Tubby on December 26, 2009 19:05

Remove the implicit conversion using explicit TO_DATE... you should always do :)

Tags: Database

Similar Questions

  • To create an interactive report in the apex by selecting from multiple tables

    Hi, I am creating an interactive report by selecting from multiple tables.

    SELECT w.FIRST_NAME as name, w.SURNAME as name, i.ROAD Road, i.DATE_OF_INC as DATE_OF_INC, S.STATEMENT as a STATEMENT OF Declaration

    JOIN THE

    WITNESS w

    ON w.witness_id = s.FK1_WITNESS_ID

    JOIN THE

    Incident I have

    WE

    i.incident_no = w.FK1_INCIDENT_NO

    JOIN THE

    user_station ps

    ON ps.station_id = i.nearest_station_id

    JOIN THE

    the user in.

    WE

    in. STATION_ID = ps.station_id

    WHERE po.officer_id = 1

    by I continue to encounter this error "the report query requires a unique key to identify each row. The supplied key cannot be used for this query. Please change the report attributes to define a unique key column. "ORA-01445: cannot select ROWID from where sample, a join without key preserved table view '

    So I googled around and found that in the attibutres tables report, I need to change the "LINK" COLUMN so first, I changed "Link to custom target", but the report is so I changed it to "Exclude link Clolumn" again, the report didn't report and I STILL got a blank page with only the tabs.

    I wonder you can not create a report by selecting from multiple tables?

    If you can please I need your help.

    Thank you

    You can, but in this case, it might be easier to build your report tables that are joined Oracle views and then build your report out of the newly built sight...

    Or wrap a selection around your selection with joins, and then make the where clause on the external selection...

    Thank you

    Tony Miller
    Software LuvMuffin
    Ruckersville, WILL

  • SELECT from two tables

    Hello, I have a problem writing to a specific SELECT statement and I hope you can help me.

    I have two tables:

    Customer:

    -Integer ID (PK)
    -Name_SecondName varchar (20)
    -Char sex
    -Full scale

    Investments:

    -Integer ID (PK)
    -Whole amount
    -Interest Numeric (3.2)
    -Client_ID (FK)


    My job is to display a number of men and a few women who have at least a $ 1000 investment. I'll jump to add data to the table, my point is simply to find a correct interpretation of the SQL query. Right now I have this:

    SELECT COUNT (DISTINCT Client_ID), COUNT (DISTINCT Client_ID)
    SOME customers JOIN investments
    WE Clients.ID = Investments.Client_ID
    WHERE amount > 1000;

    Of course, it displays twice the number of clients thanks to an investment of more than $ 1000. But how do I specify that the first indictment counts men (sex = am') and second - women (sex = 'F')? Can someone help me?

    Published by: 934019 2012-05-13 12:10

    Hello

    Here's a way to do

    SELECT       COUNT (DISTINCT CASE WHEN c.gender = 'M' THEN c.client_id END)     AS men
    ,       COUNT (DISTINCT CASE WHEN c.gender = 'F' THEN c.client_id END)     AS women
    FROM       clients       c
    JOIN       investments       i  ON       c.client_id  = i.client_id
    WHERE       i.amount       >= 1000
    ;
    

    This query will work in Oracle 8.1 or more.
    Since you have Oracle 11, you can also use the SELECT... Function pivot, but in this case, it's more complicated. That's because what to CHOOSE... PIVOT includes automatically by each column that is not involved in the pivot. (In this case, this means that all except sex and client_id columns.) Often, you do sort of a subquery to get the dynamic no cross data, so it is easy to include only the relevant columns. In this case, however, you need not any kind of subquery, so you should add a fair to exclude the additional columns if you want to use SELECT... PIVOT.

    As you say in your original post, this account of customers who have any single investment of 1000 or more. In your last post, you posted a query that looks for investments of more than 15,000. You can change the WHERE clause to say

    WHERE       i.amount       >  15000
    

    but which would produce 0 men and 0 women, given that all of the amounts in the sample data are 10000.

    934019 wrote:
    Is it possible to display the entire word 'Genre' and not only "G"?

    Sure.

    SQL * automatically sizes string columns to their maximum size. Since between the sexes are defined as CHAR (1), its maximum size is 1 character, then SQL * Plus allocates only 1 space for her, truncate the heading after 1 character. You can explicitly set the width on anything it is large enough to show the entire title, like this:

    COLUMN  gender  FORMAT  A6
    

    Include this command before you run the query. Then, SQL * Plus uses 6 places to display the sex, so there will be place for all 6 characters in the heading.

  • Select from another table, when the query returns no result

    Hello

    I have a question where I'm supposed to retrieve the address of an account id-based billing. However, the table of billing may not have an address. There is a table of addresses that always has an address for an account. If the billing address exists, it should be used, so I can't use the address table. Is it possible in a select statement to query to the billing address and if it does not exist, use the address table.

    SELECT * FROM accounts a, b billings WHERE a.accountid = b.accountid

    Any help will be greatly appreciated.

    Thank you.

    user10407139 wrote:
    Hello

    I have a question where I'm supposed to retrieve the address of an account id-based billing. However, the table of billing may not have an address. There is a table of addresses that always has an address for an account. If the billing address exists, it should be used, so I can't use the address table. Is it possible in a select statement to query to the billing address and if it does not exist, use the address table.

    SELECT * FROM accounts a, b billings WHERE a.accountid = b.accountid

    Any help will be greatly appreciated.

    I think you need to explain more clearly if

    -you only have a couple of "billing" columns which is empty and in this case, you want to use the columns from the table 'accounts '.

    - or you have a join with another table that doesn't return data, for example a foreign key "address_id" "billing" is zero and therefore the join to other tables 'address' will return all the data

    In the first case, you have already been provided with some examples here, how to use NVL or similar functions to achieve, even if the first post first evaluates the information of 'accounts' and if it is white using information from "billing". According to your description you need the other way around. The second post a subquery recursive useless in my opinion.

    In the latter case, you should probably use an "outer" join so that the data in your table "bills" are returned, even if the join to another table is not at all the lines.

    SELECT
    NVL(AD1.ADDRESS_ATTR1, AD2.ADDRESS_ATTR1) as ADDRESS_ATTR1,
    NVL(AD1.ADDRESS_ATTR2, AD2.ADDRESS_ATTR2) as ADDRESS_ATTR2,
    NVL(AD1.ADDRESS_STREET, AD2.ADDRESS_STREET) as ADDRESS_STREET,
    ...
    FROM accounts a
    INNER JOIN billings b
    ON a.accountid = b.accountid
    LEFT OUTER JOIN address ad1
    ON b.address_id = ad1.address_id
    INNER JOIN address ad2
    ON a.address_id = ad2.address_id;
    

    In this way you pick up the address stored in the "invoices" table, if it existed, otherwise you pick up the address assigned to the "accounts" table I used an inner for the second address join join because you said that the account always has an assigned address.

    Kind regards
    Randolf

    Oracle related blog stuff:
    http://Oracle-Randolf.blogspot.com/

    SQLTools ++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676 /.
    http://sourceforge.NET/projects/SQLT-pp/

  • Select from different tables based on results

    How to do this in a select

    4 paintings

    T3 and t4 are identical in structure, but different data

    Select the id of the t1

    If exist in select t2 id

    Then select the data on t3

    on the other

    Select the data on t4

    create table t1 (ID);

    create table t2 (ID);

    create table t3 (varchar2 (10) col1, col2 varchar2 (10));

    create table t4 (varchar2 (10) col1, col2 varchar2 (10));

    Insert into t1 values (1);

    Insert into t1 values (2);

    Insert into t2 values (1);

    Insert into t3 values('DATA1','DATA2');

    Insert into t4 values('DATA3','DATA4');

    commit;

    Ive had the values 1 and 2 in t1. ID = 1 exist in t2, for this record, I want I want the values of t3 but where id = 2, the t4 values.

    Possible in a select?   Ive been playing with case statement but not anywhere near him

    Try this

    Select *.

    T3

    where exists (select 1 from T1 t where t.id in (select t2.id T2))

    ----

    Union of all the

    ----

    Select *.

    T4

    where does not exist (select 1 from T1 t where t.id in (select t2.id T2))

    -----

    Ramin Hashimzade

  • Select from several tables

    I have 3 tables in my database...

    Table1 with one column

    Table1:
    table1_id
    11
    12
    13
    14

    Table2 with a single column

    Table2
    table2_id
    21
    22
    23
    24

    Table 3 with 2 primary foreign keys of table1 and table2

    Table 3
    table1_id table2_id
    11 21
    11 22
    12 23
    12 24
    13 21
    14 22


    I want a select statement that selects everything in table2 where the specified table1_id is not in the list of the table1_id in table 3

    for example if I want the list of 11 IDs it should return (23, 24)

    I came up with the following, but it didn't work

    Select table2_id
    of tabel3 c, table2 b
    where table1_id <>11 and c.table2_id = b.table2_id


    I know that my explanation is not clear...
    but any effort will be appreciated

    That should do it. I have not create the tables, therefore not tested.

    SELECT t3.table2_id
    FROM   table_2 t2
           INNER JOIN table3 t3
           ON t2.table2_id = t3.table2_id
    MINUS
    SELECT t3.table2_id
    FROM   table_1 t1
           INNER JOIN table3 t3
           ON t1.table1_id = t3.table1_id
    
  • Select from the table on the highest priority

    I have a table TAB1, who has, among other things, the 2 fields. FIELD1 is a non-unique ID and FIELD2 is a two character code. For example:

    123, AA
    123, AZ
    124, BB
    124, BY

    I also have a second table TAB2 that contains 3 fields. Field1 + Field2 are two character codes and FIELD3 is an integer used as a priority. Tab2 is used as a translation table. For example:

    AA, OO, 1
    AZ, O2, 2
    BB, OQ, 3
    BY, P9, 4

    What I would do is for each ID of TAB1, select the code of the TAB2 translation with the highest priority.

    Any help appreciated.

    Thank you

    user12141187 wrote:
    What I would do is for each ID of TAB1, select the code of the TAB2 translation with the highest priority.

    Assuming that 1 is the highest priority and 4 is the lowest:

    select  field1, field2 From
      ( Select
        t1.field1,t2.field2 ,rank() over(partition by t1.field1 order by t2.priority) rn
        from
        Tab1 T1,Tab2 T2
        where
        t1.field2 = t2.field1
      )
    where rn = 1
    

    Vivek L

  • Open sys_refcursor to select from the table variable?

    Hello

    I have a challenge for you! :-)

    I have a procedure that has a lot of logic to determine which data should be loaded into a table variable. Because of various constraints of the application, I can't create a global temporary table. Instead, I would like to create a table variable and fill with stuff that I go through the procedure.

    The final outcome of the procedure is that I must be able to pass the results as a sys_refcursor. It is a requirement that is beyond my control as well.

    Is there a way to do this kind of work of the procedure?

    Create Or Replace procedure Xtst
    (
    Mu_Cur in the Sys_Refcursor
    )
    Is
    Type Xdmlrectype is Record (Col1 Varchar2 (66));
    Type Xdmltype is Table of Xdmlrectype;
    RTN Xdmltype;
    Begin
    Internal_Id Select Bulk collect into Rtn of Zc_State;
    Open mu_cur to select table col1 (rtn);
    end;
    /
    ---
    11/42 PLS-00642: types of local collections not allowed in SQL queries
    11/36 PL/SQL: ORA-22905: cannot access the rows of a table not nested element
    11/19 PL/SQL: statement ignored
    Display errors;

    Not something I would personally like to implement.

    But for educational purposes only of course...

    create table this_will_be_gross
    (
       column1 number,
       column2 varchar2(30)
    
    );
    
    insert into this_will_be_gross values (1, 'begin the ugliness');
    insert into this_will_be_gross values (2, 'end the ugliness');
    
    variable x refcursor;
    
    ME_XE?
    declare
       Rtn sys.ODCIVARCHAR2LIST;
    BEGIN
       SELECT
          column1 || '-' || column2 Bulk Collect
       INTO
          Rtn
       FROM
          this_will_be_gross;
    
       OPEN :x FOR
       SELECT
          regexp_substr (column_value, '[^-]+', 1, 1) as column1,
          regexp_substr (column_value, '[^-]+', 1, 2) as column2
       FROM TABLE(CAST(rtn AS sys.ODCIVARCHAR2LIST));
    end;
     17  /
    
    PL/SQL procedure successfully completed.
    
    Elapsed: 00:00:00.09
    ME_XE?
    ME_XE?print :x
    
    COLUMN1                        COLUMN2
    ------------------------------ ------------------------------
    1                              begin the ugliness
    2                              end the ugliness
    
    2 rows selected.
    
    Elapsed: 00:00:00.11
    

    In the above example I have "know" that a hyphen was a safe character to use to break my data items (as could not find anywhere in the data itself).

    I strongly encourage you don't not to implement something like this. I know it's tempting when you work in harsh environments where it may take a serious battle to get structures such as temporary tables or the SQL Types created, but it is really the right way to do it.

  • SELECT from the table during a TRUNCATION operation...

    Nice day

    Environment: Oracle 10 g 2 EE on AIX and Crystal Reports/Crystal Enterprise (XI 3.1)

    We have a table that is refreshed every 10 minutes throughout the day and night. Users run reports against the table pretty well any time they want. The table is updated through OWB by using the TRUNCATE/INSERT that first truncates the table and then reloads the entire table.

    Opportunities random when the user runs the report at the same time as the update of the table, the user gets an error message from Crystal as follows:

    Error in the file ~ tmp23206abf4faed20.rpt: impossible to extract the data from the database. Details: [database vendor Code: 8103]

    In other cases, which is the one that I expect, the user sees a report empty and all simply of runs again the report. The report only takes a few seconds.

    This error could be due to the Crystal report trying to get the data in the table at the EXACT time that the table is truncated?

    Other thoughts are welcome!

    Thank you very much!

    -gary

    Hi Gary,.

    This behavior is described in MOS 170185.1

    Concerning
    Peter

  • Select from the table where the last character of the string is numeric

    Hello
    I have a table of STREETS with a field called ADDRESS. I want to select all the records in streets where the last character in the address is a number.
    Select ADDRESS of STREETS where regexp_like (substr (address,?,?,), '[0-9]');
    --? means that I don't know what to put here!

    I don't know if substr is the best approach to do this, because I want only the last character and the records are of different lengths.

    Thank you!

    Hello

    If you want to use regular expressions:

    WHERE     REGEXP_LIKE ( address
                  , '[0-9]$'
                  )
    

    You can get the same results, no doubt more effectively, without regular expressions:

    WHERE     INSTR ( '0123456789'
               , SUBSTR (address, -1)
               )     > 0
    
  • Having trouble downloading from the old computer, load up on the new computer.

    I need help. Just bought a used computer and I am trying to download some of the info on my old computer (WINDOWS 7) to a flash drive.
    My son started the process, but had to go. When I'm home, there was a message window that says something could not be completely down and I wanted to jump, try again or delete.
    I chose to ignore it, then the window came again and I chose ignore. Then closed the message window and I think that the computer quit downloading.
    Now I don't know where I stand on the load down. Are we doing or is there more to load and I don't know what to do.
    When I plugged the flash back in the context menu on the screen offered only import options, no download option.

    Sound in full download
    You must download the file again

  • Select local (tmp) Table in function-&gt; Table not found

    Hello

    I want to create a cursor that selects from a Table that does not exist in the database.

    I have create this table in local table (what is that called? nested table?).

    Not shown in the code but I want to fill this local array later.

    After completing my cursor is going to use this full table.

    When trying to launch I get the error Table or view does not exist in the 'FROM T1 TempTab_var;"my slider.

    This is my simplified code:

    CREATE OR REPLACE FUNCTION PC_RL_MTA_PMT
    RETURN PC_RL_MTA_TYPE_PMT
    IS
    result_out PC_RL_MTA_TYPE_PMT;
    
      TYPE TempTab_record_type IS RECORD
        (ID int);
    
      TYPE TempTab_type IS TABLE OF TempTab_record_type
              INDEX BY BINARY_INTEGER;
    
      TempTab_var TempTab_type;
      
      
      CURSOR TempCursor3_var IS
        SELECT    ID AS ID_var
        FROM    TempTab_var T1;
    
    BEGIN
    RETURN result_out;
      
    END PC_RL_MTA_PMT;

    Any ideas what is wrong?

    Thank you very much in advance.

    And another example of my library of examples, just for you troubleshoot...

    SQL > CREATE or REPLACE TYPE AS OBJECT num_descript (num number, descript varchar2 (30))
    2.

    Type of creation.

    SQL > CREATE or REPLACE TYPE tbl_num_descript AS TABLE OF THE num_descript
    2.

    Type of creation.

    SQL > CREATE or REPLACE PACKAGE AS-reftest
    2 FUNCTION pipedata (number p_choice) tbl_num_descript RETURN PIPELINED;
    3 END;
    4.

    Package created.

    SQL > CREATE or REPLACE PACKAGE BODY AS-reftest
    2 FUNCTION pipedata (number p_choice) tbl_num_descript RETURN PIPELINED IS
    3 v_obj num_descript: = num_descript (NULL, NULL);
    4 v_rc sys_refcursor;
    5 BEGIN
    6. IF p_choice = 1 THEN
    7 v_rc OPEN to SELECT empno as num, ename like descript FROM emp;
    8 ELSIF p_choice = 2 THEN
    9 OPEN v_rc to SELECT deptno as num, dname as descript OF THE Department;
    10 END IF;
    11 LOOP
    12 FETCH v_rc INTO v_obj.num, v_obj.descript;
    EXIT 13 WHEN v_rc % NOTFOUND;
    14 PIPE ROW (v_obj);
    15 END LOOP;
    16 v_rc NARROW;
    RETURN 17;
    18 END;
    END 19;
    20.

    Package body created.

    SQL > select * from table (reftest.pipedata (1));

    DESCRIPT NUM
    ---------- ------------------------------
    7369 SMITH
    7499 ALLEN
    7521 WARD
    7566 JONES
    7654 MARTIN
    7698 BLAKE
    7782 CLARK
    7788 SCOTT
    KING 7839
    7844 TURNER
    7876 ADAMS
    JAMES 7900
    7902 FORD
    7934 MILLER

    14 selected lines.

    SQL > select * from table (reftest.pipedata (2));

    DESCRIPT NUM
    ---------- ------------------------------
    10 ACCOUNTING
    SEARCH 20
    30 SALES
    40 OPERATIONS

  • DB connectivity Kit: syntax error in a SELECTION of data from joined tables

    Hello everyone

    I'm putting in labview a SQL query on joined tables.

    As an example I take a database to store the data of basketball 2on2 matches, which tables are

    corresponds to (matchId, Thomas, teamB)

    teams (teamId,PlayerAname, PlayerBname, nationality)

    nationalities (NatId, natName)

    To get an array of result with the game as well as the names of player as well as their nationality, I use this query on MySQL (which works on command line interface)

    SELECT MatchID,
    T1. PlayerAName, t1. PlayerBName, n1.natName,
    T2. PlayerAName, t2. PlayerBName, n2.natName
    MATCHES m
    INNER JOIN teams t1 ON t1.teamID = m.teamA
    INNER JOIN teams t2 ON t2.teamID = m.teamB
    INNER JOIN nationalities L1 ON n1.natID = t1.nationality
    INNER JOIN nationalities n2 ON n2.natID = t2.nationality

    When I put it in labview, using the block 'select data', I get a syntax error as shown in the attached screenshot.

    Am I something mistanking using the JOIN examples statements or aliases?

    Thanks in advance!

    The select VI is designed to be a simple way to select from a table. I doubt that he can do joins (and would not certainly need the 'FROM', even if it can). What you can do instead calls the query execute VI and give him the complete SQL query. I don't remember if it returns the data in the recordset object, so you must do so separately.

  • How to read/select only the records from a table with non-English characters

    Hello
    I need to find all records in a table with non-English (mainly Chinese) characters in at least one of the varchar2 columns. Let me kow if someone knows a way by which it can be done using SQL/PLSQL.

    Best regards
    Imran
    select * from your table
    where your_column != convert(your_column, 'UTF8', 'US7ASCII)
    

    Replace UTF8 with your database character set

    Published by: thtsang on October 15, 2009 03:53 - unequal sign change of! =

  • Load data from one table into another table of 2 different schemes

    Hello

    We have a requirement to insert data into a table in a schema of a table that is in other schemas in ODI.

    We are able to do so by creating interfaces and mappings. But we now expect to do using SQL instead of ODI interfaces.

    Is it possible to do this using the SQL statements we have source and target data sources defined in ODI.

    should be like "Insert into src.table select * from tar.table'"

    Thank you...

    Hello

    If you try to load a db to another db using sql (sql free hand) instead of interfaces instructions.

    It is possible using procedures odi too.

    1. Select the project (designer navigator) odi mode

    2. create the new procedure. Then add the command.

    in this command on the source command on the tabs of the target.

    Enter the sql statements. See the screenshots below...

    I think this will help for you,

    Thank you best regards &,.

    A.Kavya

Maybe you are looking for