Listing tables

I have a export file exp01.dmp, i am writing a shell script, i am importing the data in the exp01.dmp, before importing the data, i have to disable foreign keys, truncate the tables (whatever tables present in the export file -- HOW TO KNOW what tables are present in the export file --- so that i have to truncate ONLY THOSE tables before importing the data). After importing the data i am enabling fkeys.
truncate the tables (whatever tables present in the export file -- HOW TO KNOW what tables are present in the export file --- so that i have to truncate ONLY THOSE tables before importing the data). Appreciate your reply in this regard.....
Thanks

You could use the INDEXFILE parameter to export to extract the DDL and then parse the extracted file looking for CREATE TABLE xxx lines....
But I agree with the last post - why are you trying to load an unknown list of tables - why don't you know what they are ? What happens if you get a table that doesn't exist in the target schema ?
HTH
Jeff

Similar Messages

  • How do you display the contents of the "dial list table"?

    We are starting to make use of the Outbound Dialer functionality.  We've setup a TEST campaign with a TEST queue with TEST Agents in the queue.  We can upload contacts into the campaign but once we've done that it appears we have little or no visibility as to what is going on with the Dial List.
    So far I have been unable to find a way to display the Dial List Table to see what is going on.  Is there any easy way to do this or is it necessary to write custom SQL queries to get this information from the Database?  I have a case open with the TAC but so far they don't seem to be able to answer this nor have they offered any other tools to manage and monitor the Outbound Dialing.  (The Realtime and Historical Reports are way short of useful info, IMHO.)

    Hey Beau,
    David and Octavian are correct, if the default historical/real time reports are not enough information, you will need to do some digging into a custom SQL query.
    From the command line, queries can be run with "run uccx sql db_cra [SQL COMMAND]".
    For reference, the DB Schema Guide for the dialing list table will be your best bet in creating the query, and the queries can be run on the CLI to test the output. This can be found here:
    http://www.cisco.com/en/US/docs/voice_ip_comm/cust_contact/contact_center/crs/express_8_0/user/guide/uccx801dbschema.pdf
    Starting on page 35. This lists all of the entries and columns that can be found in the table, as well as any related tables.
    Hope this gives you a good starting point. Let me know if you have any other questions.
    Regards,
    David King

  • How to get the list of database Views modifying the DB tools list tables.vi

    Hi,
    I have a problem, I just started using LabVIEW and in particular the LabVIEW connectivity toolkit and I am lookig fgor suggestion regarding how to get the list of database Views modifying the DB tools list tables.vi...
    Thanks in advance,
    Michela

    Hi Michela,
    since the VI you want to modify is part of a Toolkit, I suggest you to copy the whole block diagram in a new VI and then save it in a new location.
    Place the DB List Tables.vi on a block diagram, double click on it and go to the tab "Window -> Show Block Diagram "
    Select "Edit -> Select All" to select the whole block diagram and select "Edit -> Copy"
    Open a new VI and select "Edit -> Paste"
    Save the new VI
    In this way you can modify everything you want without overwriting the Toolkits VIs.
    Hope this can help.
    Regards, 
    Andrea N.
    Systems Engineer ATE & RF - Mediterranean Region
    National Instruments Italy

  • How to list table name of src db?

    hi all:
    I debug a mapping ,
    1) owb warnning: can not find source;
    2) I click "edit" button;
    3) owb show a new window,I click "browser" button;
    4) I choose a source datebase link
    so owb should list table name of src db,
    but owb don't list table name of src db,why?

    Hi,
    You can get the details from table "T001K". to fulfill your requirement.
    Hence forth if you want field name : you can click on that field and then hit key "F1",  and then click on icon "Technical Information".
    Hope so this solves your problem.
    Regards,
    Joginder

  • DB Tool List Table: How to access tables which are in different SQL database ?

    Hi, All,
    I'm working on a database application (SQL server) and is evaluating the NI DB Tool kit for this project.
    One of the requirement is that I need to access tables which are in two different database
    (say Table A in DB 1 and Table B in DB 2).
    Our IT guys has linked Table A in DB1 to DB 2 and I verfied this when I use the SQL server managment studio.
    When DB 2 tables are populated, Table A from DB1 is also there. I can also do the same thing using MS Access.
    Table A in DB1 is avalaible to me enven though I only connect to DB 2.
    Here comes the problem.
    When I use DB Tool List Table.vi to access DB2, it does NOT list Table A in DB1. It only list the tables in
    the database (DB2) which I make connection to (using DB Tool Open Connection.vi with a file DSN)
    So my work around right now is to open two seperate connection to DB1 and DB2. However, this approach
    obviously creates a problem when I have to access seperate database constantly in my application.
    What would be a solution to this ? I've search the forum but only see one post that's somewhat related to
    my question. (And it was posted on 2004) Perhaps I need to alter the code in the orignial VI (DB Tool List Table.vi)??
    My IT guy told me he has not encountered this scenario since he writes codes in other enviroment such as
    VB and others, and he's always been successful by linking tables to different database. 
    I hope my question is sound and clear since I really don't know much about database terminology.
    Any comment/suggestion is much appreciated !!!
    Thanks
    Chad
    Solved!
    Go to Solution.

    To josborne:
    To answer your question:
    - Are the two databases contained on the same SQL Server instance? 
    Or are the databases on separate instances?  I assume they are on
    separate servers, otherwise this wouldn't really be an issue.  But its
    good to know because it will affect how you build your SQL statements.
    Yes they are on separate instances. 
    - Ask your IT people specifically how they "linked Table A in DB1 to
    DB 2".  I assume they used "linked servers". 
    Maybe I used the wrong terminology "linked." They created a "View of Table A (DB1)" in DB2 using the management studio.
    Here is a screen shot of that. As you can see, dbo.VISUAL_WORK_ORDER is seen under LABVIEW database in the management studio.
    I also see the same table when I make connection to database using MS Access.
    Could you elaborate on "configure your SQL statement correctly" =) ? The purpose of using LabView's took kit is so that I can do
    minimum SQL statements. Are you talking about modifying LabView's native VI (DB Tool List Table.vi) ?
    Thanks for the information. SQL is just something new to me.

  • Get data source schema - List tables has failed

    Hi, I am trying to expose tables from a SQL Azure Database to OData feed on power bi's data source setting and I got the following alert:
    Get data source schema - List tables and views has failed.  Please check Windows Event Log for Gateway Instance (InstanceName1) errors.
    Thanks in advance.

    Hi,
    Thank you for your question.
    I am trying to involve someone familiar with this topic to further look at this issue.
    In the meantime please have a check on the below link and check if it helps.
    http://whitepages.unlimitedviz.com/2013/09/power-bi-working-with-the-data-management-gateway/
    https://support.office.com/en-us/article/Create-a-Data-Source-and-Enable-OData-Feed-in-Power-BI-Admin-Center-9dbd3091-8961-4564-adf6-2a3aeff0b2b4?ui=en-US&rs=en-US&ad=US
    Regards,
    Mekh.

  • How to realize about List Table

    Hello,
              How can I realize about list table, how can I add the image logo in it ? for the details that you can follow my enclosed, I have marked with red circle drawing ,from NI example finder, that we can see, there are an image logo side by every title at the list table, how NI append it ?
    who knows ? thanks in advance.
    Attachments:
    how to realize.JPG ‏24 KB

    Hi Gilbert
    It is possible to add a cutom image to a tree control, please look at the following KB
    How Do I Load and Use Custom Symbols for My Tree Control Items?
    This should take you through the steps you need to set this up correctly.
    Regards
    JamesC
    NIUK and Ireland

  • DB Toolbox List tables - does not work properly

    Hello All
    I have two databases: one "c:\a\aa.mdb" contains some tables inside
    second "c:\a\bb.mdb" contains no table.
    When I run the list tables command from DB toolbox SEPARATELLY the tables are listed in proper way, i.e. one has tables, second does not.
    But when I build a vi which returns the table list, and call it twice the result is wrong. Both database seems to have all tables, even though the second does not contain any tables.
    I attachment you will find the packed example.
    Two databases with udl files (change if unpacked to different directory than c:\a\).
    The vi "two vi tables.vi" shows the problem. It calls "find tables.vi" to return the tables in database.
    You can see th
    at when DB List tables is called in the main vi it works fine. But when it is called two times inside the loop it returns false results.
    Can anybody comment on this.
    For those who are afraid of unpacking zip files I enclose pictures.
    thank you in advance
    Pawel
    Attachments:
    list_tables.zip ‏36 KB
    diagram.gif ‏22 KB
    front_pannel.gif ‏37 KB

    Pawel,
    I apologize for the delayed response to your first question. I am currently working on the problem in order to determine a more permanent solution. These forums are a very important resource for not only helping our customers but also for improving our products!
    With regards to your other question I believe the problem is one of data flow programming. Each table creation will take a certain amount of time to complete depending on the size and nature of the rows and columns being inserted. Unless you programmatically control the data flow, the �DB Tools Execute Query.vi� does not necessarily know when each table has been created. Since control is handed off to the database program, the �DB Tools Create Table vi� is forced to wait
    until the database program returns control.
    To programmatically control the flow of data you would need to use either a case structure with a while loop (suggested) or a sequence structure. These structures are critical in cases where execution of a previous section of code must be completed before subsequent code portions are to execute. I have attached an exaple that may prove useful.
    The wait method is actually a good way to time data flow but in this case may not be the best solution if you want your table creations to be dynamic over time (you may be forced to change the wait for larger table creations, for instance). If you know that your table creations will never change then using a wait method may be an acceptable solution.
    I hope this information helps out some. If not please post back with some sample code or more detail on your issue. Good Luck!
    Craig H.
    National Instruments
    Attachments:
    Create_Table_Example.zip ‏26 KB

  • Create tree list table for my pages

    Please, How do i populate a tree list table for my application pages for navigation if i have report1 on page number 1 and form 1 on page number 2 and how do i choose my root.

    Hi,
    Try giving the time constraint as T and the custom table in the Time cnstr. Tab. field.
    Check Infotype 0006 for reference, which has the subtype selection.
    Regards,
    Balaji. D

  • Unable to get Database Connectivity vi to List Tables of a Filemaker Pro database

    Hello Forum,
    I've been successful using my ODBC Admin to create a System DSN for a simple Filemaker Pro db on my PC running Windows XP (I wish I could delete my previous post asking for help doing that!).  Now, my LV program successfully "connects" to the db using the "DB Tools Open Connection vi".  However, I cannot get the "DB Tools List Tables" vi to give me a list of the database's tables.  LV just returns an empty string array.  However, I can accomplish other tasks such as listing the columns of a table using the "DB Tools List Columns" vi.
     Any thoughts on why I cannot list the db's tables??

    Hi NI,
    I am still getting a empty string array result when I use "DB Tools List Tables" vi.  I am running Filemaker Pro 10.0v1 and LabVIEW 8.2.  I can get other DB VIs to work just fine, namely: "DB Tools List Columns", "DB Tools Insert Data", "DB Tools Execute Query" and "DB Tools Fetch Recordset Data".  I can obviously work around not having the "List Tables" code, but it makes me wonder where I'm going wrong.
    Andy 

  • TextFormatter in list, table and tree cells

    Release 8u40 introduces the TextFormatter concept in the text input field area. It is currently a new property of the TextInputControl class.
    This is defintely a more elegant way to deal with validation than overriding "replaceText(...)".
    Shouldn't this property also be available in list, table and tree cells ?
    Are there plans to do this (before we make our own implementation) ?

    I've got exactly the same problem, +1.
    This shouldn't be to difficult to solve for 8u60 and definitely useful,
    giving access to the text input control in mutable cells could be a one-line workaround !
    Additionally, could a TextFormatter be made shareable between table/list rows
    by NOT using the value/valueConverter properties, but only the filter part in cases
    where the final desired output type is String ?

  • List tables and column names a stored procedure is querying

    Hello,
    Is there a way to list tables and column names that a stored procedure is querying, i.e, selecting from, using T-SQL?  If yes, is there a way to also show data types for the columns that a stored procedure is querying, i.e, selecting from?
    Thank you,  
    Lenfinkel

    One way to view the dependencies of an object is to use SSMS; navigate to the object, right click and select "view dependencies".  However this does not tell you what columns are being referenced by the Stored Procedure.
    One way to view what is being referenced by a stored procedure is to run something like
    select
    text
    from syscomments
    where
    id in
    (select id
    from sysobjects
    where
    name
    =[Your Object Name]
    And xtype
    in
    ('p','P')
    Please click "Mark As Answer" if my post helped. Tony C.

  • Attachement List - Table Name

    Dear All,
    we are using the attachment list in the sales order that can be reached via "Services for Objects". We are then archiving all order confirmations and they are then displayed in this attachement list. I now want to crate a report that shows me all orders where this attachements are missing. The problem is that I do not find the table where I can see the link from the archived object to the sales order.
    Can somebody help me with that?
    Thank you very much.
    best regards,
    Markus

    Hi Markus,
    Through Generic Object Services icon, you can store the documents using Archive link (via Store Business Document) or GOS (via Create Attachment).
    Refer to the link below. It explains the relationship between the tables for both scenarios.
    http://wiki.sdn.sap.com/wiki/display/PLM/SAPContentManagement-LinkbetweenSAPObjectsand+originals
    Follow the option which you are using to attach the documents.
    Cheers
    Amit

  • Attachment List Table In sales order VA02.

    Sir,
    I have to develop report on attachment list in sales order on the basis of sales order number and customer
    no. But I'm not getting the tables. So I can develope the report.
    Thanks
    Manoj Pise

    Hi
    Check tables
    VBAK (Has sales order & Kunnr (Customer number))
    VBAP
    VBKD
    VBEP
    Regards
    Gaurav

  • RV325 DHCP static address list and duplicates in unknown IP & MAC Binding List Table

    DHCP Manual Bindings are entered and are displayed correctly in the IP & MAC Binding Table.
    The error is that there are duplications of the IP address in the Unknown MAC Address List and hitting the Refresh button does nothing.
    These duplicates remain in the Unknown table forever. Only a reboot of the router really refreshes the Unknown table.
    Any suggestion?

    The problem has been solved.
    All the settings are apparently stored in the open directory database.  I had to enable system records and viola there was the extra entry complete with MAC address and IP address.

  • How to query / list table name with certain data type?

    Hi all spatials,
    Sorry for the dumb question. I need to make a query that list all table name that contain certain data type, eg. SDO_georaster. How to do this ?
    Many thanks in advance
    damon

    Skip it. I figured it : using USER_TAB_COLUMNS will definitely help.
    Cheers
    damon

Maybe you are looking for