How to find all the tables by feild value in oracle

Hi ...
I have a requirement to find the tables in a particular schema(suppose DEMO) by Field value..
Ex:
suppose in a  schema called DEMO  i have the tables.......T1,T2,T3,T4,T5..
all the above tables have the name column..
now i wan to know the tables whose column(name) have value as rajani.......
pls help.........
thank you
.+

Solutions from previous requests for the same...
michaels>  var val varchar2(5)
michaels>  exec :val := 'as'
PL/SQL procedure successfully completed.
michaels>  select distinct substr (:val, 1, 11) "Searchword",
                substr (table_name, 1, 14) "Table",
                substr (t.column_value.getstringval (), 1, 50) "Column/Value"
           from cols,
                table
                   (xmlsequence
                       (dbms_xmlgen.getxmltype ('select ' || column_name
                                                || ' from ' || table_name
                                                || ' where upper('
                                                || column_name
                                                || ') like upper(''%' || :val
                                                || '%'')'
                                               ).extract ('ROWSET/ROW/*')
                   ) t
--        where table_name in ('EMPLOYEES', 'JOB_HISTORY', 'DEPARTMENTS')
       order by "Table"or
11g upwards
SQL> select table_name,
       column_name,
       :search_string search_string,
       result
  from (select column_name,
               table_name,
               'ora:view("' || table_name || '")/ROW/' || column_name || '[ora:contains(text(),"%' || :search_string || '%") > 0]' str
          from cols
         where table_name in ('EMP', 'DEPT')),
       xmltable (str columns result varchar2(10) path '.')
TABLE_NAME                     COLUMN_NAME                    SEARCH_STRING                    RESULT   
DEPT                           DNAME                          es                               RESEARCH 
EMP                            ENAME                          es                               JAMES    
EMP                            JOB                            es                               SALESMAN 
EMP                            JOB                            es                               SALESMAN 
4 rows selected.

Similar Messages

  • How to find all the tables associated for a particular transaction

    Hi-
    May I know how to find all the tables, related(foreign key) tables for a transaction within SAP GUI?
    Up to my technical knowledge, this can be achieved by looking database diagrams from DB level. But that would be for entire database as a whole. What I'm expecting is to see transaction level relative tables that too from SAP GUI. Please share the possibilities if any.
    Regards
    Sekhar

    Dear Micky Oestreich
    May be we possess expertise or high level experience, it should not show up in our way of communication. Every professional starts with the basic stuff to learn. When the question is raised in such minimum polite way, the same level of courtesy is expected in return. If you felt my question was basic, you might have refused it gently. If you are in good mood or bad mood it doesn't matters.
    Hi Vengal Rao
    Thanks for your response. It helped me.
    Regards
    Sekhar

  • How to find all the table used in a report

    Hi Expert ,
                    Is there is any program  to find out all the tables which  are used in a perticular report .
    Thanks in advance
    Tarak

    Well, so far Viquar Iqbal has given the only really correct answer - use SQL trace.  The reason the others are incomplete, is because they don't consider that a report might call a function module or a class method that accesses a table.  In fact, for many applications this is exactly what happens - db accesses are abstracted away from the main program.
    The other alternative to SQL trace is to use Run Time Analysis.  The advantage of SQL trace is that it shows the tables hit in order.
    matt

  • How to find out the tables from extract structures

    Hi All,
    As I know my data sources are 2lis_04_p_matnr,2lis_04_p_comp,2lis_04_p_arbpl.
    How to find out the tables concerned with the fields in the extract structure.
    Thanks

    Pl check this link:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/29/79eb3cad744026e10000000a11405a/frameset.htm
    OR navigate to: help.sap.com - netweaver - bi content - supply chain - look for your application area and the extractor and you will see the source tables and fields.
    Ravi Thothadri

  • How to find out the table name

    hi,
    how to find out the table name in which the data from a particular structure in a particular screen is saved,
    please tell me the procedure to find out the table name for saving the structure data that is inputted at runtime.
    Thanks,
    chinnu

    Hi Chinnu,
    Below are the tables that are referred to find out the table names
    DD02L Table contains the SAP Tables.
    DD02T Table contains the SAP Table Texts.
    DD01L Table contains the Domains
    DD01T Table contains the Domain Texts.
    DD03L Table contains the Table Fields.
    DD03T Table contains the Table Field Texts. (Language Dependent)
    DD04L Table contains the Data Elements.
    DD04T Table contains the Data Element Texts.
    DD05s Table contains the Foreign Key Fields
    last words with L and T only. L->Database Fetch T-> Text
    And the procedure to retrive the table name is as follows
    1. Go to se11
    2. Enter table name DD03T and execute
    3. In the next screen you can find Tables, fields, test etc. there you can enter the field name in the fields 
      and execute.
    4. you can get all tables which contains the field.
    I hope this will solve your problem
    Regards,
    Chandru

  • How to find out the tables related to CRM datasources?

    How to find out the tables related to CRM datasources? For example, the table related to 0CRM_OPPT_H.
    Regards,
    R.Ravi

    Hi Ravi,
    To find out all tables used go into the CRM source system to transaction RSA3 and prepare the selections for extraction of your datasource.
    In a parallel session execute transaction ST05 and press the button 'Activate Trace'
    Go back to the extracor checker and execute the extraction.
    Switch sessions and subsequently 'Deactivate Trace' and 'Display Trace'.
    This will list all tables used.
    regards,
    Olav

  • How to find out the tables that will be affected using a transaction

    Hi,
    How to find out the list of database tables that will be affected when we use a standard transaction(ex. VA01, MM01..)...?(like When we create a salesorder, which tables and which fields will be affected..?)
    Is there any transaction or a simple way to find out the solution?
    Thanks,
    Pradeep.

    Hi,
    Give transaction code and in menu(system- status),  double click onthe Program name.
    Check in TOP INCLUDE - you will find all the tables related to that transaction.
    Thanks,
    Anitha

  • URGENT: How to find out the Tables for Routines  in BW.

    Hi BW Gurus,
    How to find out the Tables for Routines  in BW.
    I have this routine id <b>45XFAEI7LKIFIRDUKQG127YWW</b> and it is in inactive state and i want to activate it.
    thanks in advance,
    points will be rewarded.
    Regards,
    Maruthi.

    Hi Maruthi,
    Check table RSUPDROUT using the routine id as input for the field CODEID. You will get the technical name of the update rule.
    Cheers,
    Praveen.

  • How to find out the tables effected information from oracle from

    can any one tell me how to find out the tables effected information from oracle form

    Hi,
    Please refer to the following documents.
    Note: 259722.1 - HOWTO Determine Table and Column Name from a field in a form in 11i
    Note: 241628.1 - How to Find the Query That Succeeded Recently?
    Regards,
    Hussein

  • How to see all the tables in ABAP

    how to see all the tables in ABAP
    i need to see all the tables present in tcode se16.

    Hi Thiru ,
    its tough to give all.so pls see the below links u can get all.
    http://www.erpgenie.com/abap/tables.htm
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=listofalltablesin+abap&cat=sdn_all
    http://www.guidancetech.com/people/holland/sap/abap/
    http://www.sap-img.com/ab017.htm
    http://abap-gallery.blogspot.com/
    thanks
    karthik

  • Hi all, How to Find out the table where Cutomer Enqu. status is Stored??

    How to Find out the Customer Inquiry Status.
    I am not able to find in which table Status of Customer Inquiry is Stored.
    Is There any FM to find out This.

    Please post your question in the right forum to have your query addressed soon...
    I think you can check JEST table all status

  • How to find all the changes management details (thr DB tables or FMs)

    Hi Experts,
    Could anyone please tell me how to get all the Change management details.
    I mean are there any database tables or FM through which I can get all the Changes Management(CHARM) details.
    like status,priority,texts,descriptions etc...
    I need them for an interface....
    Thanks
    Yogesh Gupta

    Hi,
    Yet another request to use my crystal ball.
    We had one pc which is having oracle 9i enterprise manager configured(windows 2000) only to connect the db.
    This remembers me of the Gospel of St. Luke, chapter 2, where it is stated,
    'and they found the child in the manger'.
    This resulted a Jewish theologian to remark: 'The manger? Well, so that must have been their own manger'
    So what does 'the' db mean? The Linux one? Or a separate on Win2000?
    It is quite possible to manage a Linux database using OEM on Win2000, with OMS on Win2000.
    'But our server is not having enterprise manager'. Yet another riddle. Which server? There seem to be at least two.
    1 Now if I drop these tables, will I be able to connect to our database using the windows2k pc through Enterprise Manager?
    Yes, but only in standalone mode, and you can't use OEM alerts, and jobs anymore. You would be better off using Sqldeveloper, as OEM Sql worksheet is a nightmare.
    2 That is your decision.
    3
    oemctl ping oms
    will check whether you have an Oracle Management Server running.
    You already seem to have the Enterprise Manager Repository, so you must have OMS running somewhere. (Why install the repository, if you don't use it)
    Sybrand Bakker
    Senior Oracle DBA

  • How to make use of SE37- Function Module & how to find out the table?

    Hi ,
    1.Could anyone help me what's this SE37-Function module is all about,How to make use of this?
    For Eg,If i want to delete a BOM permanently from the system then I have to use the Function module CM_DB_DEL_FROM_ROOT_BOM.
    But after giving the particular name what should i do?
    Please help me.
    2.How to find out the respective table for a particular field sya for T code-COGI, T code MFBF,where its values are getting populated.,Please help in this issue.
    Thanks in adavnce for spending some time
    Raj.S

    Hi Raj
    Function Modules
    Function modules are procedures that are defined in special ABAP programs only, so-called function groups, but can be called from all ABAP programs. Function groups act as containers for function modules that logically belong together. You create function groups and function modules in the ABAP Workbench using the Function Builder.
    Function modules allow you to encapsulate and reuse global functions in the SAP System. They are managed in a central function library. The SAP System contains several predefined functions modules that can be called from any ABAP program. Function modules also play an important role during updating  and in interaction between different SAP systems, or between SAP systems and remote systems through remote communications.
    Unlike subroutines, you do not define function modules in the source code of your program. Instead, you use the Function Builder. The actual ABAP interface definition remains hidden from the programmer. You can define the input parameters of a function module as optional. You can also assign default values to them. Function modules also support exception handling. This allows you to catch certain errors while the function module is running. You can test function modules without having to include them in a program using the Function Builder.
    The Function Builder  also has a release process for function modules. This ensures that incompatible changes cannot be made to any function modules that have already been released. This applies particularly to the interface. Programs that use a released function module will not cease to work if the function module is changed.
    Check this link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db988735c111d1829f0000e829fbfe/content.htm
    You can execute function module in SE37ie you can perform the activiites defined in the function module by executing it.
    By deleting BOM you mention the FM name in se37 and execute. In some function module it will ask input parameters as developed in the program , you have to give the input parameters and execute.

  • How to find all the shopping carts for a Supplier

    Hello if i have the supplier , how can i find ALL the shopping carts associated to him?thx

    Hi,
    Try the below & let me know:
    1) Go to table "BUT000", enter the Partner No & get the PARTNER GUID.
    2) Go to table "BBP_PDVIEW_INDEX", copy the partner GUID in the field "IPARTNER_NO". Enter BUS2121 as the OBJECT_TYPE & execute. You could even restrict the display list by the Partner function value (39 or 19).
    Cheers,
    Akash

  • How to find all the user exits includes ,

    Hi All ,
    I need to find all the includes which are created for purpose of implementing user exits , I know they all start with ZX* but where to get the list .
    THank you all
    Vinay Kolla

    Hi Vinay....
    Just excute following program in your ABAP Edter....
    ( Input parameters: T'CODE and User exit type.)
    >TABLES: MODSAP, MODACT, TSTC.
    >
    >PARAMETERS: INPUT1 LIKE TSTC-TCODE DEFAULT ' ',
    >           INPUT2 LIKE MODSAP-TYP DEFAULT ' '.
    >
    >DATA: SEARCH1(6),
    >      SEARCH2(3),
    >      SEARCH3 LIKE MODSAP-MEMBER.
    >DATA : FIRST_ROW VALUE 'Y'.
    >
    >CONCATENATE: '%' INPUT1 '%' INTO SEARCH1,
    >             '%' INPUT2     INTO SEARCH2.
    >
    >SELECT * FROM TSTC WHERE TCODE LIKE SEARCH1.
    >  FIRST_ROW = 'Y'.
    >  CHECK TSTC-PGMNA NE SPACE.
    >  CONCATENATE '%' TSTC-PGMNA '%' INTO SEARCH3.
    >  SELECT * FROM MODSAP WHERE TYP LIKE SEARCH2
    >                       AND MEMBER LIKE SEARCH3.
    >    SELECT SINGLE * FROM MODACT WHERE MEMBER = MODSAP-NAME.
    >    IF FIRST_ROW EQ 'Y'.
    >      WRITE: /0 TSTC-TCODE, 6 TSTC-PGMNA, 16 MODSAP-NAME, 32 MODSAP-TYP,
    >                                       45 MODSAP-MEMBER, 70 MODACT-NAME.
    >      FIRST_ROW = 'N'.
    >    ELSE.
    >WRITE: /16 MODSAP-NAME, 32 MODSAP-TYP, 45 MODSAP-MEMBER, 70 MODACT-NAME.
    >    ENDIF.
    >    CLEAR : MODSAP, MODACT.
    >  ENDSELECT.
    >  IF SY-SUBRC NE 0.
    >    WRITE : /0 TSTC-TCODE, 6 TSTC-PGMNA, 30 'No exits found'.
    >  ENDIF.
    >  CLEAR TSTC.
    >ENDSELECT.
    >
    >END-OF-SELECTION.
    >  CLEAR: SEARCH1, SEARCH2, SEARCH3.
    Thanks,
    Naveen Inuganti.

Maybe you are looking for

  • Error reports

    when i connect my ipod a microsoft error report comes up and when i click either send error report, debug or don't send itunes closes itself. when the ipod is not connected itunes runs fine. can anyone tell me what to do please

  • Lsmw- retail material

    hi all i am new to lsmw and trying to create a retail material through lsmw. i chose business object method with business object as bus1001001.method is 'CLONE' everything has gone well and i could create a material too. but in unit field,(i.e the di

  • Clip masked image moves after save- little help please?

    Hi, All. I've been working at a printing company for the last 3 years and have seen the issue I'm about to describe only a handful of times. I'd like to understand it more and know if there is a fix that can be utilized before saving the file for pro

  • Mounting external drives with UID in Openbox?

    I've just changed my system from gnome to openbox as my main WM. In Gnome, my external drives were mounted as i connected them, with the UID. Now, in OpenBox with every filemanager (pcmanfm2, thunar + thunar  volman installed, nautilus) i tried, they

  • Editing Chart Text in WAD

    Hi Guys, Chart : X-axis  -   years   --->  2001,2002,2003,2004,2005 y-Axis: Quantity    - > QUAN1,Quan2,quan3,quan4. In the graph display i am getting as  2001/ QUAN1,2002/ QUAN2,2003/ QUAN3 ...... My requirement : is to show as only : 2001 ,2002,200