Query on Creating and Populating I$ table on different condition

Hi,
I have a query on creating and populating I$ table on different condition.In which condition the I$ table is created??And These condition are mentioned below:
1)*source and staging area* are on same server(i.e target is on another server)
2)*staging area and Target* are on same server(i.e source is on another server)
3)*source,staging area and Target* are on *3 different* server
4)source,staging area and Target are on same server
Thanks

I am not very much clear about your question. Still trying my best to clear it out.
In your all above requirement I$ table will be created.
If staging same as target ( One database,one user) then all temp tables will be created under this user
If staging is different than target ( One database,two user (A,B)) then all temp tables will be created under this user A (lets consider) and data will be inserted to the target table that is present in user B
If staging is different than target ( Two database,two user (A1,A2), not recommended architecture) then all temp tables will be created under this user A1 (database A1) and data will be inserted to the target table that is present in user A2 (database A2)
If source,staging,target will under one database then No LKM is required,IKM is sufficient to load the data into target. Specifically for this you can see one example given by Craig.
http://s3.amazonaws.com/Ora/ODI-Simple_SELECT_and_INSERT-interface.swf
Thanks.

Similar Messages

  • How to create and edit anomalous tables in DIAdem? Such as the example list.

    How to create and edit anomalous tables in DIAdem?
    Can the tables  be edited as in MS Word?
    帖子被yangafreet在08-21-2007 10:28 PM时编辑过了
    Attachments:
    table example.doc ‏26 KB

    Hi yangafreet,
    There is no way I know of to create a DIAdem table that looks like the table in your Word document.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Create a View from tables of different schemas

    hi all,
    can u pls give solution to create a View from tables of different schemas.
    i have to bring data from one DB Server A,
    which contains different schemas and tables in the schemas...
    i need to insert that data in another DBServer B.
    i made a procedure for this...
    but when the connection fails from A, then i could not get data...
    please suggest some solution..
    thanks,
    neelima

    I don't know what database system you use, but in the most I know it is done that way:
    SELECT
    A.COL1,A.COL2.....
    FROM
    SCHEMA_NAME.TABLENAME A,
    SCHEMA_NAME.TABLE_NAME B
    WHERE
    A.COL1 = B.COL2
    ...

  • SAP Query (SQ01) - create and save queryies

    Hi Expert;
    We wanted to implement SAP query reporting (SQ01) tool, and already developed custom HR infoset and user groups and transported to QAS.  We experienced the problem that we can not directly "save" any queries in SQ01. We pretty much have the client opened up and set at "Changes without automatic recording".  But keep getting a "transport object create" dialog upon "save" query.  But in Adhoc (PQAH), we don't encounter same problem.    We wanted our users be able to create and save any queries directly without creating any local objects. Is there another setting that needs to be set? 
    Thanks for any information that you can provide.  Points will be awarded.
    Helen

    Hello Helen,
    in SQ01 you can save queries like in HR Ad Hoc Query (or Infoset query as it is called outside HR).
    However this is only possible in the "Standard Area" not in the "Global Area". However as Ad Hoc Query is based on the SQ0x basics it only hides this effect.
    If you are doing HR specifics you should consider the documetnation on the special HR switches:
    http://service.sap.com/~form/sapnet?_SHORTKEY=01200252310000076208&
    In general if you are new to the topic you should consider the courses BC407 for Query Basics and HR580 for reporting in HR.
    Also to get a feeling for the different types of reporting with the InfoSet Query you can look at the following documentation:
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/a8/2e7237a323427ee10000009b38f8cf/frameset.htm
    HR Reporting Tools -> Sap Query -> InfoSet Query -> Calling InfoSet Query.
    Or you can book a special training if you need a contact let me know your email adress
    Best regards,
    Michael

  • How to create and user Temporary Table ( Urgent Please )

    i want to use temporary table in Oracle, how can i use it in Stored procedure, Please explain it with any Example, Please also clear that If more then one user can access the same stored procedure then what will be behavior of Temporary table, is it manage for its session, i want to manage it on every session. when store procedure call temporary table create and when finish then demolished.

    It depends on what you mean by a temporary table. If you are coming form a Sybase/Sql Server background where you would do something like:
    SELECT * INTO #my_temp
    FROM some_table
    WHERE some_condition
    GO
    UPDATE #my_temp
    SET some_column = some_calculated_value
    GO
    SELECT *
    FROM #my_temp
    WHERE some_other_conditionthen you could use in-line views instead of the temporary table.
    SELECT col1,col2,some_calculated_value
    FROM (SELECT *
          FROM some_table
          WHERE some_condition)
    WHERE some_other_conditionYou should be able to do this directly in a stored procedure, as long as you have some way to process or return the result set.
    If your processing is so complex that you cannot do it in straight SQL (and remember, Oracle handles multi-table joins much better that Sybase and SQL Server), then you need to look at Global Temporary Tables.
    You would declare a Global Temporary Table outside of the stored procedure (that is create it once and use it over and over), then use it in you stored proc just as you would a regular table. When you create the table, you have a choice of creating it as:
    ON COMMIT PRESERVE ROWS which means that any data you put in the table will persist for the length of your session, or
    ON COMMIT DELETE ROWS which will empty the table every time you issue a commit;
    The rows in the GTT are visible only to the session that put them there, and are removed when that session ends at the latest.
    HTH
    John

  • Faces: programmatically creating and populating iterator in a backing bean?

    Rather than relying on bindings in pageDefs, I'm attempting to create and populate a JUIterator binding in a backing bean. The goal is to allow the backing bean accessible to any web page as a session bean without having to hard code the iterator in every page's pageDef file.
    I haven't had any success on finding a demonstration showing how to do this programmatically and have come up with the following code as a hack:
    DCDataControl dataControl = bindingContainer.findDataControl("AppModuleDataControl");
    ApplicationModule appModule = dataControl.getApplicationModule();
    JUIteratorBinding iterator = new JUIteratorBinding(appModule, "SingleRowView1", "SingleRowView1Iterator");
    bindingContainer.addIteratorBinding(iterator);
    iterator.setRangeStart(0); // Exception raised here
    iterator.setRangeSize(1); // Or here
    iterator.executeQuery();  // Or here
    Row row = iterator.getCurrentRow();Note the SingleRowView1 is a VO exposed through my ADF BC AppModule and returns a single row and column.
    At the appropriate line marked "Exception raised here" an exception is thrown. On this line and the next 2 lines, it doesn't matter if I comment out one or the other, any 3 will raise an exception showing I've a problem with the iterator setup I guess?
    Anybody any hints on how we would construct the iterator dynamically? Do I have to create the individual attributes for the iterator? Have I not done something in correctly creating the iterator?
    Any help appreciated.
    Regards,
    CM.

    Chris,
    I don't have an answer for you but in JDeveloper 11 templating allows you to create a pagedef file that then is inherited by all pages. So chances are that what you build today is no longer needed tomorrow
    Frank

  • Appending files from server node and populating custom table

    Hello Experts-
    I am trying to a built a report for portal KM activity. In EP i have set a command which writes the user  activity in KM  to a txt file and its written to each node on the cluster to the following directory.
    /usr/sap/<SID>/J[C]<instance_#>/j2ee/cluster/server<number>/portalActivityTraces
    I am not very well versed in UNIX scripting to append these text files.
    Can any one suggest me the best way to append all these files and how to access them.
    I have XI developer access. What kind of other access would i need for me to get the collection of files and then parse it and populate a table.
    I have gone through the documentation below. It uses UNIX scripting. I want to use XI for this. Please let me know if any one have any thoughts on this.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e07edaa8-70ae-2b10-2390-f068636c8b1e?quicklink=index&overridelayout=true
    Thanks,
    Raj

    Hi,
    You have to use FTP for this. XI has capability to pick file from any remote location by using transport protocol as FTP in Sender File Adapter. Once you get the user id, password, dir path & file name from AIX then XI will pick the file from your AIX source location.
    Regards,
    Sarvesh

  • How to create a view on tables with different keys?

    I have to create a View on:
    Z3PVR: Transparent Table
    BSEG: Cluster Table
    CKIS: Transparent Table
    BKPF: Transparent Table
    RV61A: Structure
    T001: Transparent Table
    All the tables have different "Key Fields" and the structure has no "Key Fields". When i create the view, what do I mention in the "JOIN FIELDS" tab. and how do i create the view with the structure?
    Please advise.

    How to create a view on a Non-Transparent Tables.
    how to create view?
    HELP.. How to create a view with the tables with ALV

  • How to export tables on different condition

    HI,
    i want to use export backup of my oracle 10g database, where i want to full export of some tables and some tables with
    "QUERY" parameter.so how can i make this script where some table are full exported and some based on condition.
    conditions defined in query paramter is diffrent for one table to another.
    so if is it possible how can i do this ?
    thanks

    Hi,
    Yes, this is possible. When you specify the query, you can do it 2 ways:
    query="where x=123"
    or
    query=scott.emp:"where x=123"
    The first will be applied to all tables, the second will be applied to only scott.emp. You can have many queries like the second, but only 1 like the first.
    expdp user/password query="where x=123" query=scott.emp:"where name like 'Dean%'" query=user5.table6:"where salary>100000"
    would apply
    "where name like 'Dean%" to scott.emp
    "where salary>100000" to user5.table6
    "where x=123" to all other tables since no table was specified.
    If you wanted all other table to use no query, then just make sure every query has a table name specified. They will be used for only those tables and all other tables won't use any query.
    Hope that helps
    Dean

  • Create and insert into table from Oracle to MS SQL server.

    Hello,
    Oracle Database 11g and Red hat 5
    I have a very different kind of issue. I am handling the ORACLE db(remote db with all the important data). On the other side their is a MS SQL server db(local db with some testing data in it). All the users will access the ORACLE db for the actual processing but for sometime they need to apply some of their own concepts. So they will transfer the data from ORACLE to MS sql server.
    I want to create a code in ORACLE db like a procedure , which will create a table in MS sql server , insert data into it,Also create some metadata table to keep some of my table's info on MS SQL serve db,If the table is present it should append the data, .... like many things ...
    Overall my question is , how can i write a code to make these operation on a remote db, that to these operations are DDL and on MS SQL Server(Non-Oracle) ???
    Please guide me with some ideas or solutions ...
    Also provide if you have some good links to study ...
    thanks in advance.

    I'm not sure why you never visit http://tahiti.oracle.com prior to asking any question. Is it forbidden in your locale? Are you afraid of it? Will your salary be decreased when you visit the documentation?
    http://www.oracle.com/pls/db111/search?word=sql+server&partno=
    should provide sufficient information.
    Your doc question must be considered a violation of Forum Etiquette and an abuse of this forum.
    Sybrand Bakker
    Senior Oracle DBA

  • Creating and accessing a Table control using  CL_TABLE_VIEW_MM

    Hi everybody.,
            I am new to Module Pool Programming using Abap Object Oriented Programming .I need to create a Table Control in my Screen .I debugged the standard ME21n Tracsaction and found that it used class  CL_TABLE_VIEW_MM  .How can i make use of this class effictively for my Custom Program .Guide me on this .
    Regards.,
    S.Sivakumar

    solved myself

  • Create and access a table OUTSIDE SAPR3 schema

    Hi Gurus,
    Can you please help me how do I create a table outside SAPR3 schema in the same database, I have a user schema TEST in the sap database (Using SAPR3 4.6C). If any tcode does that? Or I need to use oracle sqlplus.
    HOW an ABAP progroam can access and manipulate the data available in this TEST schema?
    Reference to some SAP NOTE will be highly helpfull.
    Regards,
    Soumen.

    >
    Soumen Chattopadhyay wrote:
    > Dear Fiedel and Eric,
    Fiedel, Who?
    >
    > Thank you both for your suggestion,
    > me and my team are are checking up according to your idea....
    >
    > Actually, I do need to integrate one plant machinery equipment which has the backend database in MS SQL server and our SAP is using the backend Oracle and running on Linux.
    Very good, now we are getting more information.
    The data is NOT on the oracle database but outside.
    In this case DBCON (from DB+CONnection) can help
    >
    > As per the need of  business data need to be exchanged between these two.
    >
    > If you have may I request you to share some more information e.g. snotes on DBCO?
    >
    Very easy, follow my mantra (Top right box-Search functionality is very useful, also sap notes search)
    Lets chew this a little:
    117261     Multiconnect and DB procedure enhancements for 4.0B
    323151     Several DB connections with Native SQL
    738371     Creating DBCON multiconnect entries for SQL Server
    178949     MSSQL: Database MultiConnect with EXEC SQL
    >
    > But , why DBCON is not the right choice, Fiedel can U thow some more light?
    Lets see, in your first request you wanted to access to a different schema in the same database.
    you have the licence issues and DBCON is "overkill" (even when it can work) You would be connecting to yourself with a different usser.
    Probably it is easier to create synonyms at DB level and provide proper authorizations.
    In your second request the DBCON makes much more sense.
    You want to access to a different (external) DB. That is the reason DBCON exist.
    Now we have a little "issue". I'm not Windows/SQL expert, but, in order to connect to an external DB you need the SAP library "dbslib" (I think dbsmsslib is the correct name for the SQL server)
    Unfortunately, SQLServer is a Windows only program and this library is only available for Windows.
    To use it (use DBCON) you will have to install an AS on a windows machine and configure the DBCON on this server and execute the program to exchange data from this AS alone (if you execute it from another one it will fail because it does not find the dbslib)
    As mentioned, not much experience with non "real" Operating Systems, so perhaps someone else has more information.

  • Case to query multiple values and return single value to different table

    Hi this is my first table:
    with Table_1
    as
          select 'CAR' Object, 2000 Policy    from dual
          union all
          select 'BIKE' Object, 2000 Policy  from dual
          union all
          select 'HOUSE' Object, 2000 Policy  from dual
          union all
          select 'MOBILE' Object, 2000 Policy  from dual
          union all
          select 'MONEY' Object, 2000 Policy  from dual
          union all
          select 'CREDIT' Object, 2000 Policy  from dual
          union all
          select 'SCOOTER' Object, 2001 Policy    from dual
          union all
          select 'BIKE' Object, 2001 Policy  from dual
          union all
          select 'BEACH' Object, 2001 Policy  from dual
          union all
          select 'HOUSE' Object, 2001 Policy  from dual
          union all
          select 'MONEY' Object, 2001 Policy  from dual
          union all
          select 'CREDIT' Object, 2001 Policy  from dual
          union all
          select 'DOOR' Object, 2002 Policy    from dual
          union all
          select 'BIKE' Object, 2002 Policy  from dual
          union all
          select 'GARDEN' Object, 2002 Policy  from dual
          union all
          select 'MOBILE' Object, 2002 Policy  from dual
          union all
          select 'MONEY' Object, 2002 Policy  from dual
          union all
          select 'CREDIT' Object, 2002 Policy  from dual
    select * from Table_1I need to Query the object column of table_1 for CAR or HOUSE and if they are present then returns 'Y' otherwise 'N'. This table_1 will link to table_2 via Policy and the result will be table_3
    with Table_2
    as
          select '21' AGE, 2000 Policy  from dual
          union all
          select '22' AGE, 2001 Policy from dual
          union all
          select '27' AGE, 2002 Policy from dual
    select * from Table_2
    with Table_3
    as
          select '21' AGE, 2000 Policy, 'Y'  Many_Obj    from dual
          union all
          select '22' AGE, 2001 Policy,  'Y' Many_Obj from dual
          union all
          select '27' AGE, 2002 Policy,  'N' Many_Obj from dual
    select * from Table_3Thanks in advance
    Banner:
    Oracle Database 11g Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    "CORE 11.2.0.2.0 Production"
    TNS for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    !

    Thanks for the insert statements.
    Here is one way
    with Table_1
    as
          select 'CAR' Object, 2000 Policy    from dual
          union all
          select 'BIKE' Object, 2000 Policy  from dual
          union all
          select 'HOUSE' Object, 2000 Policy  from dual
          union all
          select 'MOBILE' Object, 2000 Policy  from dual
          union all
          select 'MONEY' Object, 2000 Policy  from dual
          union all
          select 'CREDIT' Object, 2000 Policy  from dual
          union all
          select 'SCOOTER' Object, 2001 Policy    from dual
          union all
          select 'BIKE' Object, 2001 Policy  from dual
          union all
          select 'BEACH' Object, 2001 Policy  from dual
          union all
          select 'HOUSE' Object, 2001 Policy  from dual
          union all
          select 'MONEY' Object, 2001 Policy  from dual
          union all
          select 'CREDIT' Object, 2001 Policy  from dual
          union all
          select 'DOOR' Object, 2002 Policy    from dual
          union all
          select 'BIKE' Object, 2002 Policy  from dual
          union all
          select 'GARDEN' Object, 2002 Policy  from dual
          union all
          select 'MOBILE' Object, 2002 Policy  from dual
          union all
          select 'MONEY' Object, 2002 Policy  from dual
          union all
          select 'CREDIT' Object, 2002 Policy  from dual
    Table_2
    as
          select '21' AGE, 2000 Policy  from dual
          union all
          select '22' AGE, 2001 Policy from dual
          union all
          select '27' AGE, 2002 Policy from dual
    SELECT
         age,
         policy,
         Many_Obj
    from
    SELECT
         t2.age,
         t2.policy,
         CASE
              WHEN SUM(
                        CASE
                             WHEN t1.object IN ('CAR','HOUSE')
                             THEN 1
                             ELSE 0
                        END) over( PARTITION BY t2.age,t2.policy) > 0
              THEN 'Y'
              ELSE 'N'
         END Many_Obj,
         row_number() over (PARTITION BY t2.age,t2.policy order by 1) rn
    FROM
         Table_1 t1,
         Table_2 t2
    WHERE
         t1.policy = t2.policy
    where rn = 1;
    AGE POLICY                 MANY_OBJ
    21  2000                   Y       
    22  2001                   Y       
    27  2002                   N        I would advise you to spend some time learning analytic questions and using CASE expressions.

  • Creating and Displaying a Table in Cyrstal Reports X

    I'm wondering if it is possible to create a table that will allow grouping of date and have the titles of each grouping across the top of a table in Crystal Reports.
    I want dates across the top. And Site Location down the side. It's easy enough to group down the side. But I can not fathom how to have the field populate across the top and allow grouping like in a table.
    Is this possible?

    Daniel,
    I did a couple of reports similiar to what you are referring to with Cross-tab reports.
    Hope that helps, if not let me know.

  • Problem trying to create and manage external tables

    Hello guys,
    I am having problems having created my external tables trying to select from them. I created the table thus:
    create table job_ext
    (job_id number(3),
    FUNCTION varchar2(30) )
    organization external (type oracle_datapump default directory test_dir
    access parameters (records delimited by newline fields delimited by "~" (job_id number(3) ,
    FUNCTION varchar2(30) ) )
    location ('testdump.lst')
    but on running select * from job_ext, I get the error
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-00554: error encountered while parsing access parameters
    KUP-01005: syntax error: found "identifier": expecting one of: "logfile, nologfile, version" etc..
    KUP-01008: the bad identifier was: records
    KUP-01007: at line 1 column 1
    ORA-06512: at "SYS.ORACLE_DATAPUMP", line 19
    ORA-06512: at line 1
    what am I not doing right.
    Secondly, I wish to ask if an directory object is created, will it be visible on the OS file system?? I am using Oracle 10g complete reference for study but it does not throw light on this.
    thanks

    Hi,
    It looks like you may need to grant permissions to the target directory.
    The ORA-29913 error can also happen in external tables when you don't grant read and write permissions to the directory:
    CREATE OR REPLACE DIRECTORY extdir AS '/u01/app/oracle./extdir';
    GRANT READ ON DIRECTORY extdir TO myowner;
    GRANT WRITE ON DIRECTORY extdir TO myowner;
    Also, see BUG 5172459 (MetaLink Note:373168.1)
    The problem is that the message file for external tables oin not the English version. These steps will address the issue:
    1. cd $ORACLE_HOME/rdbms/mesg
    2. cp KUP<lang>.msb KUP<lang>.msb.BAK
    3. cp kupus.msb KUP<lang>.msb
    http://www.dba-oracle.com/t_ora_29913_external_table_error.htm

Maybe you are looking for

  • New macbook pro 2010 gray screen after 10 min use..

    macbook pro 2010 freeze. Hello, i had the new macbook pro, i use whit a 25" HP scren LCD whit the dva TO vga, is imposible to use because the computer goes to green screen every 10 minutes. i think this is a nvida graphis problem, does anobody have i

  • Can't send mail with mail app.

    Hi everyone When i click "send" the message goes to the draft folder and it stays there. If i try "reply" nothing happens. And with "forward" a new window pops up but i can't send it anyway. It's not a network problem. When i try to write a message t

  • No hyperlinks in tables?

    I created several hyperlinks to external sites and all worked well. Then I copied the text and pasted it into a table, and while the text didn't visibly change, the links were gone. Back to the table, select the text and try to turn them into links a

  • Equium M40X silver top marks too easily

    My new M40X has a silver coloured lid/screen top that marks if you so much as look at it. It had a plastic transparent cover but that was ugly and peeled off. It is daft to make something so easily scratched when it is a portable device. Otherwise it

  • Problem in Smartform report

    Hi All, we have developed a smartform report. This is a production report of various units/shops. In the report format, left most side are the fixed units/shops. There are some fixed heading parameters. For each unit/shop the values for each unit wil