How to find table which has no index?

Hi,
How to find a table which has no index?
Please provide the query to find the above.
Thanks
Jafar

select owner,
       table_name
  from dba_tables dt
where not exists(select 'x'
                    from dba_indexes di
                   where dt.owner=di.table_owner
                     and dt.table_name = di.table_name)

Similar Messages

  • How to find tables which has more than 1000 Partitions

    Hi All,
    Is there any other way to find out the tables which has more than 1000 Partitions ?
    Apart from SAP report RSDD_MSSQL_CUBEANALYZE. Because this report is not working for me as job getting cancel again and again with ABAP dump DBIF_DSQL2_SQL.I already check SAP Note 1309838, but itu2019s not applicable for us because we are on highest support package level SAP_BW 701 SP06.
    Thanks,
    Harshal

    If you are running SQL Server as your database platform run this query:
    select o.object_id,o.name,p.Partition_count from sys.objects o
    inner join
    (select object_id,count(distinct partition_number) as Partition_count
    from sys.partitions
    group by object_id)
    p
    on o.object_id = p.object_id
    where o.type = 'U'
    order by p.Partition_count desc

  • How to update table which has column name as Oracle keyword?

    Hi All,
    Somebody has created one table which has column name as "OPTION", now i am trying update this table column value and its throwing an error. "Invalid Identifier".
    Could you please help me in this?
    Thanks in advance.
    Regards,
    Ganesh Patil

    check this :
    batch@DOLN1> create table "from" ("select" varchar2(10));
    Table created.
    batch@DOLN1> desc "from";
    Name                                                                                                  Null?    Type
    select                                                                                                         VARCHAR2(10)
    batch@DOLN1> update "from" set "select" = 'hello World';
    0 rows updated.
    batch@DOLN1> insert into "from" values('hello World');
    insert into "from" values('hello World')
    ERROR at line 1:
    ORA-12899: value too large for column "TCM_BATCH"."from"."select" (actual: 11, maximum: 10)
    batch@DOLN1> update "from" set "select" = 'hello';
    0 rows updated.
    batch@DOLN1> insert into "from" values('hello');
    1 row created.
    batch@DOLN1> commit;
    Commit complete.
    batch@DOLN1> update "from" set "select" = 'World' where "select" = 'hello';
    1 row updated.
    batch@DOLN1> select * from "from";
    select
    World

  • How to find tablespace which has maxsize UNLIMITED?

    Oracle 9.2
    I am looking for tablespaces which has maxsize UNLIMITED in dictionary view dba_xxxx. I want to use SQL to search which tablespaces don't have UNLIMTED file. I can not find which dictionary table or which column to indicate which tablespaces don't have UNLIMITED file?
    Please shed some lights.
    Thanks
    S.

    See Note 468096.1 How To Check For Autoextensible Datafiles Set To Maxsize Unlimited.
    Oracle limits the number of blocks in a datafile to approximately *4 million blocks*, so you can execute:
    select file_name from dba_data_files where maxblocks=4194302;
    HTH
    Enrique
    Edited by: Enrique Orbegozo on Oct 13, 2008 12:10 PM

  • ADF: How to find out which query has taken what time?

    Hi,
    I have an ADF application which has many SQL queried running on each button click/page load, so how to find out which query is taking what amount of time? So that i can identify the long running queries and modify them to improve the application performance.
    Thanks in advance.

    Hi,
    As suggested by Timo,you need to start tracing on oracle.jbo package for getting the SQL queries.But I think the second option suggested by him would be better.You will have to override executeQueryForCollection method in VO Impl class .Pseudo code would be
    @Override
    Take start time
    super.executeQueryForCollection
    Take end time

  • How to find from which table we r fetching the data

    Hi friends,
    i got a requirement to design a query,in my transfer rules i check the info object related to the fiels.but in my crm the field name is different.
    how to find from which table the field is fetched........
    please tell me........
    Regards
    sridath

    Dear Sridath,
    In ST05 switch on the SQL Trace.
    Goto RSA3.
    Give your DataSource name > Execute
    Goto ST05...Switch OFF the Trace
    Analyze the Trace file
    Gives you details about the fields and Tables from where you are fetching.
    OR
    Goto LBWE
    Find your DataSource > Maintenance > Display mode
    In right side window...expand ALL list box...
    Exclude MC and take other words...they are the Source Tables.
    Regards,
    Ramkumar.

  • How to find in which table field "DDTEXT" with entry "xyz"

    How to find in which table field "DDTEXT" with entry "Item number in contract account document" exists.
    There are too many tables with field name "DDTEXT"

    Refer:
    Getting short text of data element

  • How to find out which job is calling package

    Respected sir,
    How to find out which job is calling my package. Please help me regarding this.
    Regards,
    user570124

    Please read about [url http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_util.htm#i997163]DBMS_UTILITY.FORMAT_CALL_STACK in the manual.
    or [url http://asktom.oracle.com/tkyte/who_called_me/index.html]this routine from Tom Kyte may be what you are looking for.
    Regards,
    Rob.

  • How to find out which objects are at the end of the datafiles

    My Scenario is having a tablespace of 65G but the data is 5G and that is at the end of datafile for that we are not able to resize the datafile our though is to find out what are the objects at that end of datafiles and will either alter move <owner.tablename> move or alter index <owner.index> rebuld online.
    For that how to find out which objects are at the end of the datafiles.

    >
    My Scenario is having a tablespace of 65G but the data is 5G and that is at the end of datafile for that we are not able to resize the datafile our though is to find out what are the objects at that end of datafiles and will either alter move <owner.tablename> move or alter index <owner.index> rebuld online.
    For that how to find out which objects are at the end of the datafiles.
    >
    You may want to copy this and add it to your toolkit
    See 'What's at the End of the File?' in this Tom Kyte article from the Sept 2004 Oracle Magazine
    http://www.oracle.com/technetwork/issue-archive/o54asktom-086284.html
    And this AskTom blog shows you how to generate a script containing ALTER statements toresize your datafiles to the smallest possible. You can 'pick and choose' from the ALTER statements to do what you want.
    Then of course, you can use techniques from this article by Oracle ACE, and noted author, Jonathan Lewis
    http://jonathanlewis.wordpress.com/2010/02/06/shrink-tablespace/

  • How to find out which sequence a certain column used?

    you konw column C in table T is created by a sequence.
    How to find out which sequence column C is using?

    In the meantime I think it ought to becompulsory to
    only assign sequence values in triggers.
    Why? I can see no good reason for this. I think it's a good idea to have stuff like this
    coded in only one placeI don't like your argument for compulsory using triggers for sequences for exactly the same reason as you, ie that I like to keep my code in one place. If I'm reading some pl/sql code which uses a sequence I like to see the fact that the sequence is used in the pl/sql code, rather than to check to see if theres a trigger on the table and then see which sequence that uses.
    "naming conventions can work, provided they're enforced. Alas, like other standards, they can only be enforced by active policing".
    Thats what code reviews are.
    " there is also the special case of one sequence populating more than one table...."
    This is My Pet hate. I don't think there's ever a case where this is absolutely necessary. Again code reviews
    Unfortunately I have to live with a system which does this.
    and I appreciate we can't all have code reviews, etc.

  • How to find table & fields of standard InfoObject?

    Hi
    How to find table & fields of standard InfoObject for creating generic DataSource?
    e.g. I want to know the table & field of 0MAINTPOS infoObject.

    You can get the list of tables involved in a particular DS by using the below method ( this another approach)
    --> RSA3 -- enter your DS ( execute later)
    --> Goto Tcode ST05 --> switch on the SQL Trace
    --> now execute the extract checker in RSA3.once done switch off(deactivate) the SQL trace.
    --> in st05 screen you can find the button "Display Trace" -- execute (here make sure SQL trace button is enabled.
    --> from the menu bar -->Trace list-->  select "combined table accesses".
    --> it will display the tables involved in it -- check for TABLE names section.... select that row Table names -- click on filter button --press F4 -- here we go it will display the list of entire tables involved in the extraction activity... here you need to sort the tables which are related to your DS.

  • How  to find tables in Lo that  were extracted from R/3 to BW?

    Hi Experts,
    pls tell me How  to find tables in Lo that  were extracted from R/3 to BW?
    Thanks in advance.
    Regards,
    Hari Reddy

    Hi
    Check the following thread,if the earlier link doesnt work..
    How to locate which R/3 table-field is mapped to BW
    cheers

  • How to find table that store real data for field 'BETRG' ?

    1) datasource  0HR_PY_1 include field 'BETRG' in R/3 source system; extract structure HRMS_BIW_PY1 for datasource 0HR_PY_1, however structure is not used for stroing data. Question: how can we find table which store real data for the field  'BETRG'?
    2) If I want to add one type call department leader type which already defined in one enhanced HR table, to calculate the total amount using field 'BETRG'  according to department leader type. Should I enhance datasource  0HR_PY_1 by adding department leader type or create new view based on enhanced HR table and another table that include 'BETRG' data, also create new datasource based on this view later on?
    Thanks!

    Hi,
    Check this for Payroll Data (Transaction Data) 0HR_PY_1
    http://help.sap.com/saphelp_nw70/helpdata/EN/a5/94e8288eec11d4b2fb00010220c65f/frameset.htm
    The extractor for payroll results reads data from payroll cluster PCL2, not from standard tables.
    thanks,
    JituK

  • Rename a column on a table that has fulltext index on the renaming column

    I have to rename a column on a table, which has an fulltext assigned to the specified column.
    Will this make the fulltext crash or in any other way have a effect to the fulltext search ???
    And/Or do i need to alter the fulltext also ?
    PS: TSQL Example would be nice ;)
    Best regards
    Paw

    Best course of action is to drop the index, rename the column, create the index.
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • How to find tables from transactions

    Hi All,
    Please tell me in which tables I can see customer heirarchy(i.e.VDH2N)? I would like to know all tables in which heirarchy 1 ,2 and 3  is stored?
    Also let me know how to find table names from transactions or after going to transaction screen?
    Thanks
    Yogesh

    Hi,
    Please check table KNVH.
    Also you can use BAPI BAPI_CUSTOMER_GET_CHILDREN to get child customers for a customer.
    FORM get_child_customers USING iv_cust_no TYPE kna1-kunnr.
    * BAPI to get the all Child Customers of the current Customer
    CALL FUNCTION 'BAPI_CUSTOMER_GET_CHILDREN'
    EXPORTING
    valid_on = sy-datum
    custhityp = 'A' ( Customer hierarchy type 'A', ... etc.. )
    node_level = '00' (node level)
    customerno = iv_cust_no ( customer number )
    TABLES
    node_list = gt_output. ( get the child customers in the list)
    ENDFORM. " get_child_customers
    Regards,
    Ferry Lianto

Maybe you are looking for