List tables in database

I am querying an Oracle Rbd. I want to retrieve a list of Tables that exist in the database. I have used the following SQL statements without positive results:
SELECT * FROM ALL_TABLES
SELECT * FROM DBA_TABLES
SELECT * FROM USER_TABLES
Can someone help me out?

to get all the tables in the database via DBA_TABLES, you need DBA privs. otherwise you get an error.
ALL_TABLES is all tables that you have privileges to (either direct grants, or via roles).
USER_TABLES is the table owned (created) by the current user. its a view (they all are), so the results change based on what schema you are connect to when you query it.

Similar Messages

  • 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

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

  • 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 

  • 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

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

  • 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

  • Excel tables for database usage in external programs such as game engines?

    Hello!
    Where can I find more information about using Excel tables for database usage in external programs such as game engines? Do I have to use SQL, CSV or XML?
    Thank you!

    Hi,
    As far as I know, Excel is a good way to use as database file. Whether it is a personal list of phone numbers, a contact list for members of an organization or team, or a collection of coins, cards, or books, an Excel database file makes it easy to
    enter, store, and find specific information.
    You could choose Excel,SQL,Access, CSV or XML as database according to your goal.
    Here are some articles to introduce "How to use Excel table as database":
    http://chandoo.org/wp/2012/04/02/using-excel-as-your-database/
    http://spreadsheets.about.com/od/datamanagementinexcel/ss/excel_database.htm
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Regards,
    George Zhao
    TechNet Community Support

  • OBIEE Error while importing table from database

    Hi
    I am getting the following error when i am trying to import table from database.
    [nQSError: 16001]ODBC error state: IM004 code:0 message:
    [Microsoft][ODBC Driver Manager] Driver`s SQLAllocHandle on SQL_HANDLE_ENV failed.
    Any idea y such error.
    Thanks and Regards,
    Andy

    Looks like an error in the ODBC driver, not OBIEE as such.
    Have you tried googling it?
    Can you post details about your OS and DB.

  • Parent-Child Join on tables in Database Adapter

    Hi,
    We are doing a join on two tables(T1 and T2) in Database adapter for an Insert operation. There is no Reference Integrity between these two tables in Database, but join is done through bpel database adapter.
    Here is a scenario - when we try to insert a record(parent-child), into these two tables, If there is any data issue in any of the child record, Adapter inserts parent-record, also inserts few child-records it processed before it encountered this data issue and terminates.
    Issue here is , We want this to be transactional, it means, If any of the child record fails adapter should rollback the entire insert operation both from parent and child tables and exit with an error. Instead BPEL inserting half records into child table.
    Is there any parameter I need to set or am I missing anything? Someone please suggest.
    Thanks,
    Phani

    There are a few options I guess.
    1. Add the referential key constraint.
    2. Add custom logic in your BPEL project to compensate for any errors you encounter in your BPEL processes.

  • Model Number you have entered is not listed in our database. windows 7 upgrade

    i have purchased a Compaq Presario cq61 on the 24/07/09 (uk date) it came with vista home premium and it is in the eligible list on the hp support site for the windows 7 upgrade, but when i enter my serial number and product number into the arvato site, it says "We are sorry, but the Model Number you have entered is not listed in our database. "  i cannot see how this is possible as i meet the specifications to be able to upgrade to windows 7, what do i do?

    Please see: http://www.hp.com/country/us/en/mda/windows7/upgrade/index_ww.html to select your correct country or region.
    Carey Frisch
    Microsoft MVP
    Windows Expert - Consumer

  • How to find the value in the table in database ?

    Hi, Could you please advise me, How to findout the data-value in the table in database ?

    what do you mean by value ?
    --Girish                                                                                                                                                                                                                           

  • 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

  • There is no table  in database system BW_POS

    hi gurus,
    i am trying to access tables from SQL Server using DB connect.i have created one source system using SAP library help.
    when right click source system and selected
    'select Database tables' i am getting the following error.
    <b>"There is no table in database system BW_POS"</b>
    BW_POS is my source system name.
    help needed urgently.
    thanx in advance..

    hi guys,
    thanx for your advices,
    while creating the source system i have followed that note <b>512739</b> and i checked that the all the tables and fields are in UPPER case.even the roles and authorizations are given for create VIEW and selct the DB tables.when i check the same DBuser with the client and executed the SQLquery(in SQL Query Analyzer) i am getting the records in that.
    hi dinesh,
    i have checked the source system also it is saying that source system OK.
    <b>the problem is not solved.</b>
    is there any way of checking the source system using any tables or to check any table entries..
    help is appreciated and advance thanx.

  • Easy way to write out internal table to database table ?

    hi friends,
    i have a special requirement:
    as i do not want to change the profile settings on an r/3 4.6c machine, i want to modify my program so it can handle even large amount of data. the plan is to fill internal table and for say every 100000 rows write those out to a table on database. how could i do this most performant ?
    thanks,
    clemens

    Hi Clemens,
    This solution worked for me, which was suggested by Seshu. May be you can try this,
    Modify ZPPPRICE(your database table name) from table t_final(internal table name).
    In my case I updated Custom table.
    The internal table is of same structure as database table.
    Modify command will insert the record the record if it is new, if the record is existing then it will update the record with the internal table values.
    I got data from Excel file in to my internal table.
    Regards,
    Neelu.

Maybe you are looking for