Export of data from a RDBMS Table to an another RDBMS Table using functions of the ODI

Hello
I am facing a problem while exporting a RDBMS table data to an another RDBMS Table using user ODI functions.
Name:-User_Func
Group:-training
Syntax:-User_Func($(SrcField))

Implementation syntax: -.

(CASE
WHEN $(SrcField) > 40000 THEN 'HIGH '.
WHEN $(SrcField) BETWEEN 30000 AND 40000 THEN 'AVERAGE '.
OTHER "LOW".
)
Technology:-Oracle

To map the column RANK of my TARGET_EMPTABLE I write
User_Func (SRC_TABLENAME. SALARY)
using the Expression Editor.
I got the following error

ODI-1227: task failed ODI_FUNC_INTERFACE (export) on the source of ORACLE Source_DataServer connection.
Caused by: java.sql.SQLSyntaxErrorException: ORA-00905: lack of keyword

at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)
at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:947)
at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1283)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1441)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3823)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1671)
at oracle.odi.query.JDBCTemplate.executeQuery(JDBCTemplate.java:189)
at oracle.odi.runtime.agent.execution.sql.SQLDataProvider.readData(SQLDataProvider.java:89)
at oracle.odi.runtime.agent.execution.sql.SQLDataProvider.readData(SQLDataProvider.java:1)
at oracle.odi.runtime.agent.execution.DataMovementTaskExecutionHandler.handleTask(DataMovementTaskExecutionHandler.java:70)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:558)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:464)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)
to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ 2.doAction(StartSessRequestProcessor.java:366)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)
to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 0 (StartSessRequestProcessor.java:292)
to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:855)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:82)
at java.lang.Thread.run(Thread.java:619)
and in the code tab is: -.

Select
SRC_FUNC_TABLE. E_NUMBER E_NUMBER,
SRC_FUNC_TABLE. E_NAME E_NAME,
SRC_FUNC_TABLE. E_LOC E_LOC,
(CASE
WHEN SRC_FUNC_TABLE. E_SAL > 40000 THEN 'HIGH '.
WHEN SRC_FUNC_TABLE. E_SAL BETWEEN 30000 AND 40000 THEN 'AVERAGE '.
OTHER "LOW".
) E_GRADE
of SOURCE_SCHEMA. SRC_FUNC_TABLE SRC_FUNC_TABLE
where (1 = 1)


Help, please

Anindya Chatterjee wrote:
Hello
I am facing a problem while exporting a RDBMS table data to an another RDBMS Table using user ODI functions.
Name:-User_Func
Group:-training
Syntax:-User_Func($(SrcField))

Implementation syntax: -.

(CASE
WHEN $(SrcField) > 40000 THEN 'HIGH '.
WHEN $(SrcField) BETWEEN 30000 AND 40000 THEN 'AVERAGE '.
OTHER "LOW".
)

Your syntax of the CASE statement is not correct
Missing END keyword
It should be

(CASE
WHEN $(SrcField) > 40000 THEN 'HIGH '.
WHEN $(SrcField) BETWEEN 30000 AND 40000 THEN 'AVERAGE '.
OTHER "LOW".
END)

Technology:-Oracle

To map the column RANK of my TARGET_EMPTABLE I write
User_Func (SRC_TABLENAME. SALARY)
using the Expression Editor.
I got the following error

ODI-1227: task failed ODI_FUNC_INTERFACE (export) on the source of ORACLE Source_DataServer connection.
Caused by: java.sql.SQLSyntaxErrorException: ORA-00905: lack of keyword

at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)
at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:947)
at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1283)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1441)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3823)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1671)
at oracle.odi.query.JDBCTemplate.executeQuery(JDBCTemplate.java:189)
at oracle.odi.runtime.agent.execution.sql.SQLDataProvider.readData(SQLDataProvider.java:89)
at oracle.odi.runtime.agent.execution.sql.SQLDataProvider.readData(SQLDataProvider.java:1)
at oracle.odi.runtime.agent.execution.DataMovementTaskExecutionHandler.handleTask(DataMovementTaskExecutionHandler.java:70)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2913)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2625)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:558)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:464)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)
to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ 2.doAction(StartSessRequestProcessor.java:366)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)
to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 0 (StartSessRequestProcessor.java:292)
to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:855)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:82)
at java.lang.Thread.run(Thread.java:619)
and in the code tab is: -.

Select
SRC_FUNC_TABLE. E_NUMBER E_NUMBER,
SRC_FUNC_TABLE. E_NAME E_NAME,
SRC_FUNC_TABLE. E_LOC E_LOC,
(CASE
WHEN SRC_FUNC_TABLE. E_SAL > 40000 THEN 'HIGH '.


WHEN SRC_FUNC_TABLE. E_SAL BETWEEN 30000 AND 40000 THEN 'AVERAGE '.
OTHER "LOW".
) E_GRADE
of SOURCE_SCHEMA. SRC_FUNC_TABLE SRC_FUNC_TABLE
where (1 = 1)

Help, please

Tags: Business Intelligence

Similar Questions

  • What is the best strategy to migrate data from Windows to one Mac to another? I use Parallels Desktop to run Windows on my current Mac but want to use Bootcamp on my new.

    What is the best strategy to migrate data from Windows to one Mac to another? I use Parallels Desktop to run Windows on my current Mac but want to use Bootcamp on my new.

    If it is only the data (not apps) I use Dropbox. It turned out to be the best way to move things between the side Mac and the bootcamped Windows of my iMac side. I don't see why it would not work to move data from a virtual machine installation of Win to a BootCamp installation.

  • I want to loop through the data from two different tables using for loop where the query should be replaced at runtime, please help me

    I have the data into two table with the structure of similar column, I want to loop through the data in these two tables

    based on some condition and runtime that I want to put the query in loop for example, the example is given, please help me

    create table ab (a number, b varchar2 (20));

    Insert into ab

    Select rownum, rownum. "" sample "

    of the double

    connect by level < = 10

    create table bc (a number, b varchar2 (20));

    Insert into BC.

    Select rownum + 1, rownum + 1 | "" sample "

    of the double

    connect by level < = 10

    declare

    l_statement varchar2 (2000);

    Boolean bool;

    Start

    bool: = true;

    If it is true, then

    l_statement: =' select * ab ';

    on the other

    l_statement: =' select * from bc';

    end if

    I'm in execute immediate l_statement - something like that, but I don't know

    loop

    dbms_output.put_line (i.a);

    end loop;

    end;

    Something like that, but this isn't a peace of the code work.

    Try this and adapt according to your needs:

    declare

    l_statement varchar2 (2000);

    c SYS_REFCURSOR;

    l_a number;

    l_b varchar2 (20);

    Boolean bool;

    Start

    bool: = true;

    If it is true, then

    l_statement: = "select a, b, AB;

    on the other

    l_statement: = "select a, b from bc;

    end if;

    --

    Open c for l_statement;

    --

    loop

    extract the c in l_a, l_b;

    When the output c % notfound;

    dbms_output.put_line (l_a |') -' || l_b);

    end loop;

    close c;

    end;

    /

  • creating table using joins in the subquery

    can we create a table using joins in the subquery?
    Like this
    create table emp in select * from employee e, Department d
    where d.department_id = e.department_id
    ??
    We can?

    987018 wrote:
    We can?

    Yes, as long as you column alias names common to both tables to make them unique.

    SY.

  • Export of data from text to MicroSoft Acess via SQLExec

    I was able to export numberical data in a Microsoft Access (mdb) database.  However, I have problems of export of text from a datamember data.  I use the SQLExec object to achieve this.

    Here is the general syntax of SQLExec I put in place for the text values:

    "INSERT INTO test (column1) VALUES('"&(text(\\.\Process1\TEXTENTRY.value,"0")& "')

    The value of the datamember TEXTENTRY will matter in the mdb file, column1 if it is digital.  Not if it is alpha-numeric.  The column is implemented for the text format.

    However, I am unable to import 'fixed' characters (not datamember text) to the database that is to say:

    "INSERT INTO test VALUES ('hello') (column1) the result is Hello will be in Column1.

    Please notify.

    Thank you!

    The text() function converts the digital text, so you do not need.

    Try the VALUE ('"' & TEXTENTRY &" ' ")

  • How to export data from one Windows a/c to another on the same PC account?

    I had to open a new Windows a/c since my original one would not keep my browsing history despite a number of tweaks and fixes.

    The new account history that is well preserved, BUT how do I export all my data (music, docs... the whole damned much!) of the original a/c to the new?

    Would appreciate any help people!

    Graham

    Hi Graham,

    You can transfer data from the other user account to a new user account by using the article "difficulty a user profile is corrupted.

    Difficulty a user profile is corrupted: http://Windows.Microsoft.com/en-us/Windows7/fix-a-corrupted-user-profile

    Let us know if you need assistance with any windows problem. We will be happy to help you.

  • retrieve data from an oracle table

    Hello

    I downloaded a piece of data in xml format in oracle and successful upload but trying to retrieve the data it reterieve 0 records. Oracle version is given below:

    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    create table temp_loading_lob(
                                            xml_id varchar2(3),
                                            q_clob CLOB
                                             )
    nologging
    
    
    create table temp_loading_xml
    nologging as
    select xml_id,xmltype( q_clob) q_xml
    from temp_loading_lob;
      
    XMl Data
    
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <Root xmlns="http://www.w3.org/2000/10/XMLSchema">
         <Accounts ApplicationVersion="7.2.1.6 (10-02-2012)" Database="Q" DateExported="20120813">
              <Account AccountID="QF8AA000">
                   <AccountName>124 On Brunswick Bed &amp; Breakfast</AccountName>
                   <Addresses>
                        <Address AddressID="aQF8AA000YMY">
                             <Description>Physical</Description>
                             <Address1>124 Brunswick Drive</Address1>
                             <Address2>Brunswick Park - RD 4</Address2>
                             <Address3></Address3>
                             <Suburb></Suburb>
                             <City>Rotorua</City>
                             <Postcode></Postcode>
                        </Address>
                        <Address AddressID="aQF8AA000WXX">
                             <Description>Postal</Description>
                             <Address1>PO Box 7365</Address1>
                             <Address2></Address2>
                             <Address3></Address3>
                             <Suburb>Te Ngae</Suburb>
                             <City>Rotorua</City>
                             <Postcode>3042</Postcode>
                        </Address>
                   </Addresses>
    </Accounts>
    </Account>
    </Root>
    
    Query used to reterive data 
    
    select po.*
    from temp_loading_xml p,
         XMLTable('/Accounts/Account'
                   PASSING p.q_xml
                   COLUMNS
                      AccountID varchar2(20) PATH '@AccountID'
                      ,AccountName varchar2(20) PATH 'AccountName'                  
                                  )po
    I am trying to catch my mistake but impossible to repair. Any help will be ge greatly appretiated. How can I close my thread?

    Best regards
    Zaid

    Mark the thread as 'Response' (as you already have) and choose 'Useful' or 'Correct' (or no) for the positions in question.

  • How to get data from a database table and insert into a file

    Hello
    I'm new to soa, I want to create an xml with the data from database tables, I'll have the xsd please suggest me how to get the data in the tables and insert in a file
    concerning

    in your bpel process, you can use the db adapter to communicate with the database.
    with this type of adapter, you can use stored procedures, selects, etc to get the data from your database into your bpel workflow.

    When did it call in your bpel to the db adapter process it will return an output_variable with the contents of your table data, represented in a style of xml form.

    After that, you can use the second card (a file synchronization adapter) to write to the content of this variable in output to the file system

  • Java code to extract data from a custom table to form

    I need to transfer data from one table to the form. Please provide the java method to do this. The table has 4 columns. I need to fill in all the data form as level. It will be a great help if sombody can provide the same java code and the logic of xpress to achieve the same.

    Please refer to the documentation for the com.waveset.util.JdbcUtil API. The class has functions for the features you need.

  • Download data from an external table with a where clause clause

    Hello

    How can I insert data in an external table into a table already created in the database where person_id = person - _id on the external table?

    Example:

    External table
    XX_EXTERNAL_TBL (Person_id, emp_number, emp_name)
    Internal table
    XX_SQL_LOADER_TEST (Person_id, emp_number, emp_name)
    ID of the person already exists on the inner table (want only the last column to import where the ID of the person are the same)


    Thank you

    You talk of * 'Update' * (Fanfarrias y tambores)

    Update XX_SQL_LOADER_TEST SLT
    Set emp_number = (SELECT emp_number from XX_EXTERNAL_TBL WHERE AND.) Person_id = HI. PERSON_id)
    , emp_name = (SELECT XX_EXTERNAL_TBL emp_name AND where AND.) Person_id = HI. PERSON_id)

  • How to create views of data from different databases tables in2

    Using Oracle 10.2 g

    I have 2 databases Gus and the haggis on schema Comqdhb.

    Glink indicates a link of database between Haggis and Gus

    In Gus, there is school that contains columns with same name upn, grade, subject, student of tables...

    STUDENT
    UPN
    academicYear

    Object

    Object

    GRADE
    examlevel
    grade

    SCHOOL
    SN

    In HAGGIS raising tables, grade, teacher containing columns upn... desc below.

    STUDENT
    UPN

    GRADE
    grade
    UPN
    academicyear
    level



    Create views in your database HAGGIS who join their all the qualities of the review. You should have a point of view that will produce the following relationship:
    examGrade (upn, subject, examlevel, sn, rank, academicYear)

    So I need to create a view that gets the data from the tables in the databases.

    create view as examGrade (upn, subject, examlevel, sn, rank, academicYear) like some s.upn


    But I don't get the selection of a column of 2 tables in different databases

    I mean if I said

    Select the UPN in comqdhb.student@glink,comqdhb.student;
    Select the upn name in comqdhb.student@glink,comqdhb.student
    *
    ERROR on line 1:
    ORA-00918: column ambiguously defined

    Help me, thank you.

    Hello

    Rider wrote:
    The issue is that I can't understand that I should create the view by the union of the haggis and the two gus data or only haggis.
    the reason I believe I need to combine the two is mentioned * "" create views in your database schema HAGGIS who join their all the qualities of the review. ". *
    By the mention of creating views and who join their all the qualities of the review, it probably means to obtain the data of the GUS and HAGGIS.

    This is my interpretation of the assignment, too.
    If you ask just the tables on Gus, you will get the ranks of three of the four schools: it's not all examination classes.
    If you ask just the tables on Haggis, you will get the ranks of any of the four schools: it's not all examination classes.

    2nd prob is that if have decided to create a view that gets the data from these two gus and therer haggis would be a lot of duplication involved due to the cross product

    Why would there be "repetition involved due to the cross-product"?
    If the quuery of Gus produces 100 lines, the request of product Haggis 30 rows, then the UNION of the two will have 100 + 30 = 130 lines (assuming, as you say, each student is at school only one).

    the query I wrote is

    Create view examGrade (upn, subject, examlevel, sn, rank, academicYear)
    as
    Select distinct s.upn as upn, g.subject as topic,
    g."LEVEL" as examlevel, g.grade as rank, to_number (g.academicyear) as academicyear
    of s comqdhb.student, comqdhb.grade g
    s.UPN, sb.subject, g.elevel, g.grade, s.acyr select Union
    of comqdhb.subject@glink sb,comqdhb.student@glink s,comqdhb.gradevalues@glink g;

    You should not write, not to mention not formatted zip code. I have a little time I can devote to answering questions in the forum. Do you want me
    b spend this time formatting your code, so I can understand the question, and no time to answer, or
    b spend only a little time reading understanding your code and spend most of my time to help you?
    I would prefer (b), but the choice is yours.
    See the statement that I posted in my last post for an example of the formatted code. You see how it appears in a box with a police fixed-width, and multiple spaces are printed? This is because I typed {code} (all small letters), before and after the section I wanted formatted.

    At least put each table in the FROM clause on a separate line, so it is easy to know if you have enough join conditions.
    If you have N tables in the FROM clause, you almost always have at least N-1 join conditions that specify how the tables are linked together. For example, if talk you about two tables, quality and student, you expect to see a join condition that tells you when you have data in a table, how to find related data in the other table, such as

    g_gus.upn = s_gus.upn
    

    No no no join conditions will cause "repetition involved due to the cross product.

    I downloaded my info here
    http://www.upload4free.com/download.php?file=44201983-School_ExamGrades.PDF


    http://www.upload4free.com/download.php?file=184648736-ExamGrades_Case_Study_2008FINAL.PDF

    Sorry, if there is data as long as you can't post here, there is much too much for me to read.
    Make a sample set, containing a few (maybe five) students and a few shades of each student. It is fine to copy a few lines of your actual data.

    That's all the time I have for today. I can't wait to get the data and formatted requests.

  • Using the calendar function to select and read data from MS access tables?

    Hello

    I woke up in the learning of database in no time. I'm using Labview 9 to create a table based on DDMMYY hhmmss format. I can write data to the table in access. The picture will be 24 hours before a new table will be created. However, I find that this concept is not very gd as time goes by, I'll have a lot of paintings for example after 6 months.

    1.I would like to create a calendar (similar to the system clock) in labview, through which the user can click and select, which will then open and retrieve the data. Inorder to do I think I need to create queries and the relationship in MS Access? can any1 advice? Please give as much detail as possible.

    2.i can access data and display in labview. However, I want to display the data and plot in the chart. For instance, coloum b, c and trace on the graph in a proceeding for the analyst.

    3. how to generate a report to an email in a file to document the daily data inserted. I can do it in labview?

    Any help would be much appreciated.  If you have examples of code and don't mind not to share, I would be very grateful.

    Thanks 1million


  • The question of performance - cached data from a large table

    Hi all

    I have a general question about caching, I use an Oracle 11 g R2 server.

    I have a large table on 50 million lines, which is very often consulted by my application. Some query runs slowly and some are ok. But (of course) when the data in the table is already in the cache (so basically when a user asks the same thing twice or several times) it works very quickly.

    Does anyone have any recommendations on the caching of data / table of this size?

    Thank you very much.

    Chiwatel wrote:

    With the best formatting (I hope), I'm sorry, I'm not used to the new forum!

    Hash value of plan: 2501344126

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

    | ID | Operation | Name | Begins | E - lines. E - bytes | Cost (% CPU). Pstart. Pstop | A - lines.  A - time | Pads | Bed |  OMem |  1Mem | Used Mem.

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

    |  0 | SELECT STATEMENT |                    |      1.        |      |  7232 (100) |      |      |  68539 | 00:14:20.06 |    212K |  87545 |      |      |          |

    |  1.  SORT ORDER BY |                |      1.  7107 |  624K |  7232 (1) |      |      |  68539 | 00:14:20.06 |    212K |  87545 |  3242K |  792KO | 2881K (0) |

    2.  NESTED LOOPS |                |      1.        |      |            |      |      |  68539 | 00:14:19.26 |    212K |  87545 |      |      |          |

    |  3.    NESTED LOOPS |                |      1.  7107 |  624K |  7230 (1) |      |      |  70492 | 00:07:09.08 |    141K |  43779 |      |      |          |

    *  4 |    INDEX RANGE SCAN | CM_MAINT_PK_ID |      1.  7107 |  284K |    59 (0) |      |      |  70492 | 00:00:04.90 |    496.    453.      |      |          |

    |  5.    RANGE OF PARTITION ITERATOR.                |  70492 |      1.      |    1 (0) |  KEY |  KEY |  70492 | 00:07:03.32 |    141K |  43326 |      |      |          |

    |*  6 |      INDEX UNIQUE SCAN | D1T400P0 |  70492 |      1.      |    1 (0) |  KEY |  KEY |  70492 | 00:07:01.71 |    141K |  43326 |      |      |          |

    |*  7 |    TABLE ACCESS BY INDEX ROWID | D1_DVC_EVT |  70492 |      1.    49.    2 (0) | ROWID | ROWID |  68539 | 00:07:09.17 |  70656 |  43766 |      |      |          |

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

    Information of predicates (identified by the operation identity card):

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

    4 - access("ERO".") MAINT_OBJ_CD '= 'D1-DEVICE' AND 'ERO'." PK_VALUE1 "=" 461089508922")

    6 - access("ERO".") DVC_EVT_ID '=' E '. ("' DVC_EVT_ID")

    7 filter (("E". "DVC_EVT_TYPE_CD"= "END-GSMLOWLEVEL-EXCP-SEV-1" OR "E" " DVC_EVT_TYPE_CD "=" STR-GSMLOWLEVEL-EXCP-SEV-1'))

    Your user name has run a query to return the lines 68 000 - what type of user is, a human being cannot cope eventually with that a lot of data and it's not entirely surprising that he might take a long time to return.

    One thing I would check is if you still get the same execution plan - Oracle here estimates are out by a factor of about 95 (7 100 vs 68 500 returned planned lines) may be a part of your change in the calendar refers to plan changes.

    If you check the numbers you will see about half your time came to survey the unique index, and half visited the table. In general, it is hard to beat Oracle to cache algorithms, but the indexes are often much smaller than the paintings they cover, so it is possible that your best strategy is to protect this index at the expense of the table. Rather than trying to create a cache to KEEP the index, however, you MIGHT find that you get some advantage to create a cache of RECYCLING for the table, using a small percentage of available memory - the goal is to arrange things so that the table blocks that you revisit do not grow the index blocks that you will come back to memory.

    Another detail to consider is that if you visit the index and the table completely random (for 68 500 sites), it is possible that you find yourself re-reading blocks several times during the visit. If you order the intermediate result set of driving all table first you find you're walk the index and the table in the order and that you don't have to reread all the blocks. It's something that only you can know, however.  The code will have to change to include a view of inline with a dash of no_merge and no_eliminate_oby.

    Concerning

    Jonathan Lewis

  • Display data from multiple related tables

    I am trying to publish data of a single form in 3 separate tables related by primary and forign key (all one to many relationships).

    I'm just a beginner, but it seemed simple to me in any case. I spent several days trying to make it work, Nada!

    The form breaks down into 3 insert statements

    If ((isset($_POST["MM_insert"])) & & ($_POST ["MM_insert"] == "Record driver")) {}
    $insertSQL = sprintf ("INSERT INTO race_database (association, district, event_name, event_date, event_location, open_registration, close_registration, first_boat_cost, add_boat_cost, additional_info) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)',
    GetSQLValueString ($_POST ['association'], "text").
    GetSQLValueString ($_POST ['district'], "text").
    GetSQLValueString ($_POST ['event'], "text").
    GetSQLValueString ($_POST ['event_date'], 'day'),
    GetSQLValueString ($_POST ['event_location'], "text").
    GetSQLValueString ($_POST ['open_registration'], 'day'),
    GetSQLValueString ($_POST ['closed_registration'], 'day'),
    GetSQLValueString ($_POST ['first_boat_cost'], "int").
    GetSQLValueString ($_POST ['add_boat_cost'], "int").
    GetSQLValueString ($_POST ['additional_info'], "text"));

    @mysql_select_db ($database_RTP_1080, $RTP_1080);
    $Result1 = mysql_query ($insertSQL, $RTP_1080) or die (mysql_error ());
    }

    If ((isset($_POST["MM_insert"])) & & ($_POST ["MM_insert"] == "Record driver")) {}
    $insertSQL = sprintf ("INSERT INTO driver_database (first_name, last_name, address, city_town, zip_code, 'State', phone_number, mobile_number, e_mail, association_number) VALUES (%s, %s %s %s, %s, %s, %s, %s, %s, %s, now())", ")
    GetSQLValueString ($_POST ["firstname"], "text").
    GetSQLValueString ($_POST ['name'], "text").
    GetSQLValueString ($_POST ['address'], "text").
    GetSQLValueString ($_POST ['citytown'], "text").
    GetSQLValueString ($_POST ['PostalCode'], "int").
    GetSQLValueString ($_POST ["State"], "text").
    GetSQLValueString ($_POST ["'phonenumber"], "int").
    GetSQLValueString ($_POST ['mobile'], "int").
    GetSQLValueString ($_POST ['email'], "text").
    GetSQLValueString ($_POST ['associationnumber'], "text"));

    @mysql_select_db ($database_RTP_1080, $RTP_1080);
    $Result1 = mysql_query ($insertSQL, $RTP_1080) or die (mysql_error ());
    }

    If ((isset($_POST["MM_insert"])) & & ($_POST ["MM_insert"] == "Record driver")) {}
    $insertSQL = sprintf ("INSERT INTO boat_database (boat_class, main_frequency, alt_frequency, high_points) VALUES (%s, %s, %s, %s, %s, now())", ")
    GetSQLValueString ($_POST ['boatclass'], "text").
    GetSQLValueString ($_POST ['mainfreq'], "text").
    GetSQLValueString ($_POST ['altfreq'], "text").
    GetSQLValueString (isset($_POST['highpoints'])? ('true': ' ', 'set', '' Y' ",""n" ").
    GetSQLValueString ($_POST ['cost'], "int"));

    @mysql_select_db ($database_RTP_1080, $RTP_1080);
    $Result1 = mysql_query ($insertSQL, $RTP_1080) or die (mysql_error ());
    }

    The relationships are shown here

    relations.jpg

    My best results are that I have data in the first table, but none in the two tables joined.

    I'm asuming it has to do with the way im insert the data, but after some research, I've seen others have had similar problems, what I did not understand.

    I'm sure that this is a problem common just need advice.

    Thank you

    Greg

    The following will illustrate how to insert the data into the database using username as the relationship between two tables

    If ((isset($_POST["MM_insert"])) & ($_POST ["MM_insert"] == "form1")) {}

    $insertSQL = sprintf ("INSERT INTO users (username, UserFirstName UserLastName) VALUES (%s, %s, %s)',

    GetSQLValueString ($_POST ["UserID"], "int").

    GetSQLValueString ($_POST ['UserFirstName'], "text").

    GetSQLValueString ($_POST ['UserLastName'], "text"));

    @mysql_select_db ($database_myConnection, $myConnection);

    $Result1 = mysql_query ($insertSQL, $myConnection) or die (mysql_error ());

    $insertSQL = sprintf ("INSERT INTO user_address (UserAddressID, UserID, street, town) VALUES (%s, %s, %s, %s)',

    GetSQLValueString ($_POST ['UserAddressID'], "int").

    GetSQLValueString (LAST_INSERT_ID(), 'int'), / / ID of the table 1 value

    GetSQLValueString ($_POST ['street'], "text").

    GetSQLValueString ($_POST ['city'], "text"));

    @mysql_select_db ($database_myConnection, $myConnection);

    $Result1 = mysql_query ($insertSQL, $myConnection) or die (mysql_error ());

    }

    GRAMPS

  • Inserting data in several related tables using the database

    Hello world
    I'm working on a BPM application using Oracle BPM 11.1.1.5.0 and JDeveloper 11.1.1.5.0.

    In my database, I have two tables, loan and guarantee that are related by a field named employeeID (PK on loan) and FK in warranty.
    Each line can have several lines of guarantee.

    At this point, I'm doing an entry form for the user to insert data in the two tables.

    I did successfully before with a single table that has no relations.

    The way I'm doing here is, after the creation of the database successfully adapter, a type of LoanCollection is created in the types module, which can be used to create business objects and data objects of.

    The problem is when I create an object of type loanCollection process data and then create a UI generated automatically on that basis, only the fields in the primary table (the Table of loan) appear in the form.
    On the other hand, if I create a business object based on the LoanSchema, the form for all of the two tables is created automatically (the loan as a form, the guarantee in a table), but then, when I try to access it in the section processing service mission which calls the database adapter, I have no access to such.
    In fact, the only type which can be used in the service task is the process based on the loanCollection data object.

    To summorize, I have to use the type of business for my UI object to include all the fields in both tables, so I have to use the data object from the collection process in the transformation of service task dialog box.
    And I can't find a way to map to another.

    Can someone help me with this please?
    Thank you very much

    Try to follow these steps.

    1. create a new module in your catalogue our BPM project management section
    2. in this new module create 3 Business Objects - (LoanBusinessObject, GuaranteeBusinessObject and GuaranteeArrayBusinessObject)
    3. Add the attributes appropriate to the LoanBusinessObject and the GuaranteeBusinessObject so that they mimic your database tables, then to the GuaranteeArrayBusinessObject add an array of type attribute GuraranteeBusinessObject
    4. now you need to create two process data objects, type loanProcessObject LoanBusinessObject and type guaranteesProcessObject GuaranteeArrayBusinessObject
    5. as inputs to your human task adds the loanProcessObject and guaranteesProcessObject, these should now be available in your data controls and can be used to auto generate the form
    6. in your dbadapter you'll then use XSL Transformation and use for each so that it will write the data to the ready table and all the line items of warranty for the warranty table.

Maybe you are looking for

  • automatic login will not work

    Hello. I keep getting the log on screen, even when I turn on connect automatic. fixes for this?  I want to bypass the login screen. Thanks for your help. evarita

  • Re: Forgotten password on the Satellite L300

    really hope someone can help. my daughter (12!) has the laptop above and set a password, she now can not remember :-/! When you start the laptop, the only option is for her to enter his password in his profile. There is no user "admin" or "invited" o

  • problem with utorrent turbo booster

    changed title: program compatibility Application Applications App Apps game games Legacy Crash crashes Hang hangs I recently downloaded a copy of utorrent turbo booster and since I was doing a pop up window asking me to sign up for the program, even

  • User names found using the command run "control userpasswords2" do not match my user accounts

    Hello, on the #4 computer, when I use the command run, I get a list of 4 users. A, B, C, and comments.When I look in Control Panel I see 4 users, A, C, D and comments.When I go to C\:Users I see B, C, D and comments.I have problems with this computer

  • WIN8 connection keyboard

    I did an upgrade of Win8 in my laptop with my hotmail account and everything went smoothly. But when I rebooted after one day, I was unable to connect with bad view password. After a lot of testing, I was able to find the keyboard on the screen, usin