What is the sql query to know the database name having known table name?

when i am running the following query....error coming
select * from information_schema.tables where table_name = 'articles'
Error starting at line 1 in command:
select * from information_schema.tables where table_name = 'articles'
Error at Command Line:1 Column:33
Error report:
SQL Error: ORA-00942: table or view does not exist
00942. 00000 - "table or view does not exist"
*Cause:
*Action:
i am running the above query in SQLDeveloper tool against ORACLE database
plz give alternate solution.

Hi,
select * from information_schema.tables where table_name = 'articles'You are trying query view ( information_schema.tables ) from MSSQL on ORACLE??!!
Each RDBMS have your own data dictionary... you must check documention of ORACLE to query the properly data dictionary.
Try it:
select * from users_tables where table_name = 'articles'
or
select * from all_tables where table_name = 'articles'
or
select * from dba_tables where table_name = 'articles'http://docs.oracle.com/cd/E11882_01/server.112/e25494/general011.htm#ADMIN11564
Regards,
Levi Pereira

Similar Messages

  • Can anybody provide the SQL query to find the files uploaded in a particular folder?

    Hi All,
    Can anybody provide the SQL query to find the documents (document name) uploaded in a particular folder? While clicking on folder in
    GUI I'm hitting the Timeout error. I would like to find the files uploaded into this folder from SQLPLUS.
    Any help is greatly appreciated.
    With best regards,
    Nevin

    Nevin,
    Be great if we could know the version of Portal. For Rel. 1, here's the query
    select id,masterthingid from wwv_things
    where siteid = &site
    and cornerid = &corner
    &site - Content Area id
    &corner - Folder id
    if you don't know the folder id, use
    select id from wwv_corners where siteid = &site
    and name = &folder
    Hope this helps. I have run into this situation before. Usually, the culprits were
    one of the following:
    1. Junk Characters in description of item (caused due to Copy-Paste)
    2. Special Characters in the File name
    Hi All,
    Can anybody provide the SQL query to find the documents (document name) uploaded in a particular folder? While clicking on folder in
    GUI I'm hitting the Timeout error. I would like to find the files uploaded into this folder from SQLPLUS.
    Any help is greatly appreciated.
    With best regards,
    Nevin

  • Give me the sql query which calculte the table size in oracle 10g ecc 6.0

    Hi expert,
    Please  give me the sql query which calculte the table size in oracle 10g ecc 6.0.
    Regards

    Orkun Gedik wrote:
    select segment_name, sum(bytes)/(1024*1024) from dba_segments where segment_name = '<TABLE_NAME>' group by segment_name;
    Hi,
    This delivers possibly wrong data in MCOD installations.
    Depending on Oracle Version and Patchlevel dba_segments does not always have the correct data,
    at any time esp. for indexes right after being rebuild parallel (Even in DB02 because it is using USER_SEGMENTS).
    Takes a day to get the data back in line (never found out, who did the correction at night, could be RSCOLL00 ?).
    Use above statement with "OWNER = " in WHERE for MCOD or connect as schema owner and use USER_SEGMENTS.
    Use with
    segment_name LIKE '<TABLE_NAME>%'
    if you like to see the related indexes as well.
    For partitioned objects, a join from dba_tables / dba_indexes to dba_tab_partitions/dba_ind_partitions to dba_segments
    might be needed, esp. for hash partitioned tables, depending on how they have been created ( partition names SYS_xxxx).
    Volker

  • SCCM 2007 R2 - SQL query to know the compliance status of the client machines.

    Hi All,
    Can some one share the SQL query that will show the compliance of a "All systems" collection in SCCM 2007 R2 for past six months. I know that it is possible to get the reports from SCCM reporting but would like to run it from database.
    Rgs,

    In SQL queries used in the reports we have prompts and hence I wanted avoid that.
    What wrong with either removing the prompts from the query or hard coding the prompt data?
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • SQL Query, to know the list of Invoices associated with a sales order

    Hello All,
    Can any one let me know the query to know the list of all the invoices associated with a sales order.
    Please do the needful.
    Thanks,

    Hello All,
    Please let me know is this possible to have the list of Invoices for an associated Sales Order.
    Thanks,
    Abdul

  • Executing the SQL query across 2 different databases of Oracle

    Hello All,
    In Microsoft SQL server we can execute following type of SQL query across 2 different databases:
    select * from TEST1.dbo.GENERIC_TABLE1 union select * from TEST2.dbo.GENERIC_TABLE2;
    Here TEST1 and TEST2 are 2 different databases.
    Can we do the same in Oracle?

    yes you can, but first one has to setup a database link
    Look up CREATE DATABASE LINK and then take things from there!
    P;

  • Sql query to  know the number of triggers and cursors present in a schema?

    friends,is there any way to know the number of triggers and cursors preseent in a schema.
    thanks in advance..

    what do you mean by triggers in a schema? is it the triggers owned by that schema? or the triggers applied on tables owned by that schema? remember you may own triggers applied on the tables belong to other schemas. Anyways, all this information can be extracted from oracle dictionary using a combination of all_triggers and all_tables.
    As far as cursors, please elaborate. Do you mean cursors declared in PL/SQL blocks?

  • Sql Query to know the OS in which database is installed

    Hi,
    I want to know the OS in which my database is installed using SQL Query.
    Is it possible?
    Regards
    Salih KM

    SQL> select dbms_utility.port_string from dual;
    PORT_STRING
    IBM AIX64/RS6000 V4 - 8.1.0
    SQL> Nicolas.

  • Where and how do I get the SQL Query used by the Microsoft Generic Report Library - Alerts?

    Background:
    I'm tasked with the following: I need to create a new Report and the SQL
    The two canned reports that I can pattern after are: Microsoft Generic Report Library
    - Alerts (there is also an alert detail report that can be chosen within the alert report that we may want to use instead)
    - Most Common Alerts
    I'm trying to do this:
    Add another parameter to search on customfield3.
    It should be able to report on all alerts that were assigned to the specific team for the time period along with the top 10 (most common alerts) assigned to the team for the time period.
    Choose as the objects (group) all servers, but Imay need to adjust the report to just look at all alerts without having to provide objects or a group
    The struggle I'm having is: I know SQL. I know how to create an RDL file.
    But Where are the RDL files for the canned reports so I can modify the canned RDL and modify its SQL and forms?
    What is the SQL/ where can I find the SQL used for the Generic Report Library -> Alerts

    Easy but you need to extract it from Microsoft Generic Report Pack. 
    So.. the procedure is as follows:
    1) You export and unseal Management Pack from your SCOM using
    Boris's OpsgMgr tools (MPViewer
    2.3.3)
    2) Ok you've got unsealed xml, now the tricky part, use
    MpElementsExtract tool, example of usage:
    MPElementsExtract.exe <MP.xml> /ex /destination:<destination>
    That you way you get several folders out of mp:
    DWScripts, DWSubScripts, LinkedReports, ReportResources, Reports
    Take a look into content of first 2, there will be pure sql scripts, and rdl's are in Reports folder :)
    Other way is to just use SQL profiler and catch SQL query while generating report. 
    --- Jeff (Netwrix)

  • How to prove the SQL query will spawning the process

    In a Oracle 10g database, i noticed a user running a sql query which contain lot of "group by" "order by" iin database, suspected it spawning multiple process in database then causing the ORA-00020: maximum number of processes exceeded.
    My question is, is there any dictionary view or report that i can generate to prove that is the problematic sql causing the error?
    Please help. Many thanks.

    John Stegeman wrote:
    What makes you think that group by and order by spawn processes? In general, they don't. In fact, I cannot think of any reason they would (and if I'm wrong, I'm sure I'll be corrected forthwith)No, no correction.
    A query is a query bound to a session.
    I can only imagine that a query can spawn lots op parallel slaves when using parallel server.

  • Sql query to achive the running division

    Hi all, plz help me out with the sql query to achive the below output
    create table emp_a (empno number, deptno number, sal number)
    insert into emp_a values(901, 10,100);
    insert into emp_a values(902, 10,400);
    insert into emp_a values(901, 20,300);
    insert into emp_a values(902, 20,2100);
    i want the ouput in below format
    empno deptno sal div_sal
    901 10 100 (300/100)
    901 20 300 (300/100)
    902 10 400 (2100/400)
    902 20 2100 (2100/400)
    the div_sal column should have the output of greatest sal/second smallest sal for each empno

    Hi,
    781649 wrote:
    Hi all, plz help me out with the sql query to achive the below output
    create table emp_a (empno number, deptno number, sal number)
    insert into emp_a values(901, 10,100);
    insert into emp_a values(902, 10,400);
    insert into emp_a values(901, 20,300);
    insert into emp_a values(902, 20,2100);
    i want the ouput in below format
    empno deptno sal div_sal
    901 10 100 (300/100)
    901 20 300 (300/100)
    902 10 400 (2100/400)
    902 20 2100 (2100/400)
    the div_sal column should have the output of greatest sal/second smallest sal for each empnofor empno=901, then second smallest sal is 300. For empno=902, the second smallest sal is 2100.
    Instead of "second *smallest* ", do you mean "second *greatest* "?
    What if there's a tie (e.g.
    INSERT INTO emp_a (empno, deptno, sal) VALUES (903, 10, 300);
    INSERT INTO emp_a (empno, deptno, sal) VALUES (903, 20, 300);
    INSERT INTO emp_a (empno, deptno, sal) VALUES (903, 30, 200);) Would you count 200 or 300 as the second greatest?
    Here's one way:
    WITH     got_r_num     AS
         SELECT     empno, deptno, sal
         ,     ROW_NUMBER () OVER ( PARTITION BY  empno
                                   ORDER BY          sal     DESC
                           )         AS r_num
         FROM    emp_a
    SELECT       e.empno
    ,       e.deptno
    ,       e.sal
    ,       '(' || TO_CHAR (r1.sal)
               || '/'
               || TO_CHAR (r2.sal)
               || ')'          AS div_sal
    FROM       emp_a           e
    JOIN       got_r_num     r1  ON      e.empno     = r1.empno
    JOIN       got_r_num     r2  ON   e.empno     = r2.empno
    WHERE       r1.r_num     = 1
    AND       r2.r_num     = 2
    ;

  • SQL query to get the list of approvals

    Hi,
    Could someone let me know the SQL query to get the list of all the pending approvals for a user in OIM 11g R2.
    Thanks

    There are a few ways to do this:
    -  The easiest would be to use a Relationship Query from the CMC. To do this, go to the Universes section on the CMC, right click on the relevant universe, select tools >> Check Relationships.
    - Use Query Builder. You will need more than one query to pull the information you need. You could try something like the below (for Webi)
    SELECT SI_NAME, SI_WEBI, SI_DATACONNECTION FROM CI_APPOBJECTS
    WHERE SI_KIND = 'universe' and SI_NAME = 'Universe Name'
    This will give you a list of Webi Reports by SI_ID.
    You'll need another query to list Webi report names:
    SELECT SI_NAME FROM CI_INFOOBJECTS WHERE SI_ID IN (SI_ID from query above)
    - This is trivial via Auditing / the Activity universe. This of course will only return reports that have already run.
    Best.
    Srinivas

  • GRC - SQL Query to retrive the Approver/Rejecter Names

    Hello,
    I was trying to write a sql query to retrive the name of the user who has approved or rejected a particular Approval Notification in GRC Flow rule.
    This query should retrive the user , who has taken the action. This user name will be added to the Role, which inturn will be attached to the Approval Group
    Thanks,
    Gowri

    Basically, We have GRC Flow rule, with a process flow written to send Notification
    Here we have added a Approver Group with approval type as Wait for Approval and Vote Percentage as 100
    Two users are added to the Role which inturn is added to the Approval Group. What is the SQL query to retrieve the Username who has Approval or Rejection for a notification?
    Can anyone please help
    Thanks,
    Gowri

  • Workflwow query to know the status of the PO, Action, performed by

    can any one help me to get the workflow query to know the status of the PO, Action, performed by. or the table which can show the Action, Performed by.
    please help me with action history table
    Edited by: user11309801 on Jun 20, 2010 1:13 AM

    Not sure what workflow has to do with PO action history, but pl see if MOS Doc 394787.1 (How to Tell What had been Changed and Who had Made the Changes to a Purchase Order?) can help.
    HTH
    Srini

  • How to view the sql query?

    hi,
      how to view the sql query formed from the xml structure in the receiver jdbc?

    You can view SAP Note at
    http://service.sap.com/notes
    But you require SMP login ID for this which you should get from your company. The content of the notes are as follows:
    Reason and Prerequisites
    You are looking for additional parameter settings. There are two possible reasons why a feature is available via the "additional parameters" table in the "advanced mode" section of the configuration, but not as documented parameter in the configuration UI itself:
    Category 1: The parameter has been introduced for a patch or a SP upgrade where no UI upgrade and/or documentation upgrade was possible. In this case, the parameter will be moved to the UI and the documentation as soon as possible. The parameter in the "additional parameters" table will be deprecated after this move, but still be working. The parameter belongs to the supported adapter functionality and can be used in all, also productive, scenarios.
    Category 2. The parameter has been introduced for testing purposes, proof-of-concept scenarios, as workaround or as pre-released functionality. In this case, the parameter may or may not be moved to the UI and documentation, and the functionality may be changed, replaced or removed. For this parameter category there is no guaranteed support and usage in productive scenarios is not supported.
    When you want to use a parameter documented here, please be aware to which category it belongs!
    Solution
    The following list shows all available parameters of category 1 or 2. Please note:
    Parameter names are always case-sensitive! Parameter values may be case-sensitive, this is documented for each parameter.
    Parameter names and values as documented below must be used always without quotaton marks ("), if not explicitly stated otherwise.
    The default value of a parameter is always chosen that it does not change the standard functionality
    JDBC Receiver Adapter Parameters
    1. Parameter name: "logSQLStatement"
                  Parameter type: boolean
                  Parameter value: true for any string value, false only for empty string
                  Parameter value default: false (empty String)
                  Available with: SP9
                  Category: 2
                  Description:
                  When implementing a scenario with the JDBC receiver adapter, it may be helpful to see which SQL statement is generated by the JDBC adapter from the XI message content for error analysis. Before SP9, this can only be found in the trace of the JDBC adapter if trace level DEBUG is activated. With SP9, the generated SQL statement will be shown in the details page (audit protocol) of the message monitor for each message directly.
                  This should be used only during the test phase and not in productive scenarios.
    Regards,
    Prateek

Maybe you are looking for

  • FCC Sender Problems.

    Hi, This is my source file format. "abc","asdf","1212","2323" Source File Structure: EAN MaterialNo Plant MaterialDesc I have just created a sender communication channel and given these parameters in the content conversion. RecordSetName: ProcOrdRecs

  • ITunes library cannot find 'original file'

    Good morning. My iTunes (10.4) library has inexplicably unlinked from the files in my iTune music folder. Is there a way to relink these without going song by song? Any help would be greatly appreciated. Cheers.

  • What is RSL URL for OSMF 2.0?

    Hi, I am implementing a dynamic plugin to work with OSMF 2.0, I would not like to merge into OSMF 2.0's code into my pluign, instead, I would like to use Runtime Shared Library for OSMF 2.0 as link type,  the player app will  link to the OSMF 2.0 thr

  • Why is my 3-month old macbook pro running extremely slow after doing an update (mac osx-update 10.7.4)?

    I keep getting the spinning wheel, programs take ages to open and starting up my mac takes over 5 minutes. Nothing works as it should.

  • Many Groups

    Hi, I am generating UIX,ADF BC application using JHEADSTART. I have defined 10 group in JHEADSTART and I get each uix page very wide because JHEADSTART generates Tab for each group. Is it possible to force JHEADSTART to generate something like subtab