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

Similar Messages

  • 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.

  • How to export tables from development server to production server

    HI,
    Any body plz let me know how to export tables from development server to production server. what are the user names and password i need to ask my manager to do that. what are the requirements i need to ask him.
    Plz reply me ASAP.
    Thanks in advance.

    hi buddy
    first of all you should let us know the environment of production and development servers
    database versions
    and you need to have userid which has privilege to export tables of other schema. userid(owner) of the tables you want to export.
    Traditional way
    export tables in development server and then ftp to production and then import
    in the above case you should have similar database structure(tablespace etc) to avoid errors...
    if there are few tables only , you can use dblink instead of export and import...

  • How to Export Table Data to a excel sheet using OPENROWSET

    Hi Team,
    I would like to Export table data to a excel sheet by using "OPENROWSET" command in SQL Server but I am getting the
    below error message
    Column name or number of supplied values does not match table definition.
    Please help me on how to export the table data to an excel sheet by using "OPENROWSET" in SQL Server

    I know this is old so I assume you've fixed this. However, for anyone else looking at this forum, I'd recommend using a union or a table join.
    Select a.1, a.2, a.3 from a <where clause>
    union
    Select b.1, b.2, b.3 from b <where clause>
    or
    use a type of join.
    If both table selects return the same number of columns but different data just reference them as a variable like fred, and Ted
    Select fred.1, fred.2, fred.3 from (Select a.1, a.2, a.3 from a) fred
    union
    Select Ted.1, Ted.2, Ted.3 from (Select b.1, b.2, b.3 from b) Ted
    or again some type of join of these two sets
    Select * from
    (Select a.1, a.2, a.3 from a) a
    INNER JOIN (Select b.1, b.2, b.3 from b) b ON b.1 = a.1
    This would give you 6 columns of data a1-3, and b1-3
    We don't know from your description what format your spreadsheet is in. These just give you the idea. Think of the sub-selects as a Table. It's just named "fred". Once your select holds all the data you need, then export the data to the spreadsheet. Use
    the horsepower of the database before trying to do a multple update of the same spreadsheet.
    Does this give you enough to fix what you were trying to do?   

  • How to compare table in different versions?

    Hi,
    Please let me know how to comare table fields in different versions?
    Ex: I need to compare the table fields of version 4.5 with ECC6.0.
    Thank you.

    Hi,
      goto Se11 Transaction -> enter table -> display.
    Utilities ->Version -> version management
    now click on remote comparison -> enter target system.
    Regards
    Kiran Sure

  • Export table fr different server

    hi all,
    my company have 2 servers.
    how i can export table fr server 1 to server 2.
    tks in advance.

    many things:
    1. you can use dblink:
    2. you can use exp command on dos prompt to export a table from that server and make a dmp file and imp in the server where you want it to be.
    3. create a text file from the source database for the table and run sql loader to insert those records into your target table.
    HTH
    Ghulam

  • How to export tables Like WA*

    i want export table with name LIKE WA* all table starting with that name to be export how to do this is there any command? pls....

    Check the documentation. It is clearly stated that you can use a wildcard while defining the tables to be included in the export.

  • How to export table data to excel in albpm

    Hi,
    we have an requirement to export table data to excel .
    we have to create an jsp in that jsp we have to have text fileds,we have to enter data to field after that we have to click on save once u click on save that data has to enter in below table and we should provide link to export that table data to excel.
    this is our totatl requirement.can u please suggest me how to do,i dont have any idea..
    Regards,
    Sharmila
    Edited by: user12171025 on Nov 5, 2009 8:44 PM

    Hi Daniel 
    Please have a look at below docs :-
    /people/subramanian.venkateswaran2/blog/2006/08/16/exporting-table-data-to-ms-excel-sheetenhanced-web-dynpro-binary-cache
    http://wiki.sdn.sap.com/wiki/display/WDJava/ExporttoExcel(WithoutthirdpartyAPIs)
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d01854fd-1579-2c10-63ad-dd62edca2381?quicklink=index&overridelayout=true
    Regards
    Arun Jaiswal

  • How to export table xml from ID CS4

    Hi,
    Could any one clarify my below doubts.
    I have an xml file for Table. The root tag <informaltable> of the table have the attributes id="xx" and float="0". This xml file is imported into the Indesign document without any problem.  But when I export the xml from Indesign, these attributes were not exported. Only the XML tag is exported.
    Could anyone tell how to export this table root tag with its attributes.
    Thanks,
    Gopal

    Apology for bu** in, but my general practice (or for that matter mentioned scripting manual) is that
    function ProcessProduct(){
        this.name = "ProcessElements";
        this.xpath = "//B/C"; 
    should be
    function ProcessProduct(){
        this.name = "ProcessProduct";
        this.xpath = "//B/C"; 
    name of the rule and matches theRuleName,but both of them seems to be working fine here.
    Defining correctly in ruleset does the trick
    var myRuleSet = new Array (new ProcessProduct);
    Does it not matter for having the same name or I am missing something.
    --PC

  • How to export table data with coloring of cell according to value.

    Hi all,
    I am using jdeveloper 11.1.1.6
    i want to export table data with lot of formatting. like with coloring of cell according to value and so many.How to do that?

    Hi,
    like with coloring of cell according to value and so many.How to do that?
    Answer is, you can't
    Frank

  • How to join tables from different databases (DBLink/DB connection )

    Hello,
    i have an issue and i hope you could help me to solve it. My problem is: I want to create native sql select which joins two tables from different DB (both of them are ORACLE, one of them internal, another one - external). I have found several notes and posts, but without any success. Db connection exists in dbcon table, so this part of my problem has been solved.
    I would like something like that:
    select * from table1@xxx inner join table2.
    i can not split this select into two separate ones, because both tables store over 30 mln. entries and i do not want to create any copies of them.
    Br,
    dez

    Hi,
    you might need to create a DB-Link on DB level and use EXEC SQL.
    Lots of stuff on google about this, like
    Oracle DBLink ( external database )
    Volker

  • How to export table contents in xml file format through SQL queries

    hi,
    i need to export the table data in to xml file format. i got it through the GUI what they given.
    i'm using Oracle 10g XE.
    but i need to send the table name from Java programs. so, how to call the export commands from programming languages through. is there any sql commands to export the table contents in xml format.
    and one more problem is i created each transaction in two tables. for example if we have a transaction 'sales' , that will be saved in db as
    sales1 table and sales2 table. here i maintained and ID field in sales1 as PK. and id as FK in sales2.
    i get the combined data with this query,
    select * from sales1 s1, sales2 s2 where s1.id=s2.id order by s1.id;
    it given all the records, but i'm getting two ID fields (one from each table). how to avoid this. here i dont know how many fields will be there in each table. that will be known at runtime only.
    the static information is sales1 have one ID field with PK and sales2 will have one ID filed with FK.
    i need ur valuable suggestions.
    regards
    pavan.

    You can use DBMS_XMLGEN.getXML('your Query') for generating data in tables to XML format and you can use DBMS_XMLGEN.SETROWSETTAG to change the parent element name other wise it will give rowset as well as DBMS_XMLGEN.SETROWTAG for row name.
    Check this otherwise XMLELEMENT and XMLFOREST function are also there to convert data in XML format.

  • How to join tables on different databases

    In the company I work in, we've got some java applications working on two different instances which "hide" to each others (one on 10g and the other on 8i). Some decoding tables, which should common to both of them, are only present on 8i one.
    I've been told that java works 'cause it allows to connect to both of databases and then report the information on front end applications.
    The question is this: since we'll have to get reports on both of databases, is it possible to perform queries by using tools like oracle forms, oracle reports, sql developers, ... for joining the tables of the two different databases as java does? We have to get how to accede directly to the two instances for getting data from both of them for reporting activities. I remind you that we cannot use dblinks between the two databases for internal security reasons.
    Thanks in advance!

    Even java can't join between tables on two databases if the db links are not created.
    So it essentially works that it fetches the data from one db and then from another db ( using two different db connctions) and then you can utlize these data and perform some joining.
    Coming back to database world. It can be done like the usual dw approach.
    1. Connect to a third db:
    2. Get data from one database
    3. get data from other database.
    now do all the joins that you want to do

  • How to Replicate tables at different servers??? Please Help!!!

    Hi all,
    Basically i have two tables with same table structure (one is master & slave )both on different server.
    I just want to update slave table whenever Master table is updated with new records.Can this activity be scheduled???
    Could somebody guide me how to achieve this...
    Thanks in advance

    Hi,
    you could write a TRIGGER in the master table which would update the other table or you could have a procedure which you could run every hour or depending upon how frequently you want to update the other table. Every thing depnds upon how frequently the MASTER is updated, how quickly you want the information transferred to the other table ....
    http://download.oracle.com/docs/cd/B14117_01/server.101/b10739/jobtosched.htm
    Thanks

  • Selecting data from single table with different condition in single query

    Hi everybody...
    I have one table with col1, col2, col3, col4, col5... as columns.
    I want to select col1, col2, col3 with condition (x=y and a=b and c=d)
    I want to select col4, col5 with condition (x=y and a=b and m=n )
    in single query...
    Thanx for ur help

    Given this data set...
    SQL> select * from oddity
      2  /
          COL1       COL2       COL3       COL4       COL5 A X C M
             1          2          3          4          5 B Y   M
             1          2          3          4          5 A Y C N
             1          2          3          4          5 A Y D M
             1          2          3          4          5 A Y D N
             1          2          3          4          5 B Y D N
             1          2          3          4          5 B Y D U
    6 rows selected.
    SQL>The following query meets the requirements. Of course, the requirements as stated are incomplete. I ahave assumed that we select all five columns if C=D andM=N.
    SQL> SELECT decode(c, 'D', col1, '0') AS col1
      2         , decode(c, 'D', col2, '0') AS col2
      3         , decode(c, 'D', col3, '0') AS col3
      4          , decode(m, 'N', col4, '-8') AS col4
      5           , decode(m, 'N', col5, '-8') AS col5
      6  FROM oddity
      7  WHERE a = 'B'
      8  AND  x = 'Y'
      9  /
          COL1       COL2       COL3       COL4       COL5
             0          0          0         -8         -8
             1          2          3          4          5
             1          2          3         -8         -8
    SQL> Cheers, APC

Maybe you are looking for

  • Can I connect 2 bluetooth headsets at the same time to my ipad?

    My husband and I like to watch movies on our iPad when we are traveling.  I have a splitter for regular wired headphones but this year for Christmas we both got blue tooth headphones and would like to use those on the plane rather than having to use

  • Cannot view the tables in SQL developer

    Hi everybody, I just installed SQL developer and connected to my oracle DB but I am not able to see the tables..I can execute though any SQL statements... I thought of installing Oracle Client but nothig changed... what could be the reason ???

  • Stumped! Can't Get Some Audio To Play.

    I have some files that I converted with Visual Hub and I used their Apple TV 5.1 encoding. I have my Apple TV hooked up to my TV through HDMI. I recently moved and now no mater what I can't get the audio to play for those files. I have audio when I g

  • Xbox wont connect with WRT160N

    My home computer and my wife's laptop are all working fine with the wireless network. My xbox shows up on the Linksys system front page but does not have the solid green line connecting it to the router like our home computer and my wife's laptop doe

  • GNOME 3.2 beta2 available in gnome-unstable

    As promised multiple times on forums, GNOME 3.2 beta2 was just released and guess what? We got it! Shinier and full of new features, noticeable are gdm's brand new look, gnome-online-accounts, gnome-contacts, gnome-documents, epiphany web application