Finding Column Name for a Data Pattern

Hi all,
I want to find out all the column names which is having matching data pattern such as 'Football'
I want to get all those column names whose data matches value 'FootBall'
Which Data Dictionary i can find out column name with data value
Pls advice
Thanks

Definitely a strange requirement but hey....
SQL> ed
Wrote file afiedt.buf
  1  declare
  2    cursor cur_tables is
  3      select table_name from user_tables order by 1;
  4    cursor cur_columns(p_table IN VARCHAR2) is
  5      select column_name from user_tab_columns
  6      where data_type IN ('CHAR', 'VARCHAR2')
  7      and table_name = p_table;
  8    v_cnt NUMBER;
  9    v_sep VARCHAR2(10);
10    v_where VARCHAR2(2000);
11    v_word VARCHAR2(30) := 'FOOTBALL';
12  begin
13    DBMS_OUTPUT.ENABLE(1000000);
14    FOR t IN cur_tables
15    LOOP
16      v_sep := ' WHERE ';
17      v_where := NULL;
18      FOR c IN cur_columns(t.table_name)
19      LOOP
20        v_where := v_where||v_sep||c.column_name||' LIKE ''%'||v_word||'%''';
21        v_sep := ' OR ';
22      END LOOP;
23      IF v_where IS NOT NULL THEN
24        EXECUTE IMMEDIATE 'SELECT count(*) FROM '||t.table_name||v_where INTO v_cnt;
25        IF v_cnt > 0 THEN
26          DBMS_OUTPUT.PUT_LINE(v_word||' is in table '||t.table_name);
27        END IF;
28      END IF;
29    END LOOP;
30* end;
SQL> /
FOOTBALL is in table ADDRESS
FOOTBALL is in table LOGTEXT
FOOTBALL is in table NOMINAL
PL/SQL procedure successfully completed.
SQL>

Similar Messages

  • Formula variable to find week name for a date

    hi,
    i want to get the week name for a date value and i want to do this in query designer.can anybody tell me whther ican create any formula variable for this and if yes how can i do it???

    y dont use text varaible processing by customer exit

  • 11g bi publisher data model generic columns names for obiee data source?

    I'm just trying to figure out if this is a bug, expected behavior or installation problem. When I select an Oracle BI Analysis to add to the data model diagram the column names are not copied over. Instead they are all renamed as Column0-ColumnNN.
    Thanks
    Edited by: user13087422 on Apr 7, 2011 9:49 AM

    I'm facing this same issue. Can you solve that? What's the problem with it?
    Regards,
    Ariel

  • How to find column name for OIM attributes?

    What is the COLUMN_NAME for attributes "Password Generated" and "Design Console access" in OIM 11g?
    Also I cannot find FormMetaData.xml anywhere. Which file represents FormMetaData.xml in OIM11g?

    Thanks Rajiv.
    Here is what I got for the query,
    SELECT USR_EMP_TYPE FROM USR WHERE USR_FIRST_NAME = 'Test';
    USR_EMP_TYPE
    Consultant
    But Design Console Access is a CheckBox in UserForm for OIM 11g, doesnt this value has to be True/False?
    Please help me understand

  • Finding source database table/column name for a column in a view

    Hi i need to be able to identify the original database table/column name for a column in a view.
    e.g. say i have a view like this
    create v1 as select a.name fname, b.name bname, c.name cname,......
    from u1.names a, u2.names b. u3.names c
    where .....
    Now I want to find out that the database table/column name for the fname, bname and cname columns in the view v1, which in this instance is u1.name.name, u2.names.name, u3.names.name.
    But i need to be able to do it for any view. Short of parsing the SQL is there an easy way of doing this?
    Now obviusly I can't do this for virtual columns but I will know my column is not virtual as it has an index on it.

    But i need to be able to do it for any view. Short of
    parsing the SQL is there an easy way of doing this?No, parsing the SQL is the only way. Good luck it is not something I would want to attempt.

  • [Flat File Destination [220]] Error: Failed to write out column name for column "Column 2"

    I am using SSIS to extract fixed width data into a flat file destination and I keep getting below error. I have tried almost everything in this forum but still no solution. can anyone help me out to solve this problem.
    [Flat File Destination [220]] Error: Failed to write out column name for column "Column 2".
    [SSIS.Pipeline] Error: component "Flat File Destination" (220) failed the pre-execute phase and returned error code 0xC0202095
    Thanks

    Hi Giss68,
    Could you check the Advanced tab of the Flat File Connection Manager to see whether the InputColumnWidth and the OutputColumnWidth properties of the Column2 has the same value? Please refer to the following link about the same topic:
    http://stackoverflow.com/questions/10292091/how-do-i-fix-failed-to-write-error-while-exporting-data-to-ragged-right-flat-fil 
    If it doesn’t work, please post the sample data and the advanced settings of Column2 for further analysis.
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • Table & Field Name for Plan Data in CO

    Hi All,
    Can anyone tell me the table & field name where we can get the planned data in Cost Center Accounting and Profit Center Accounting.
    I checked out the COSP(which is Totals) and COEP tables for CCA but i could find the fields only for actual data and not planned data.
    Same for PCA...i checked out the GLPCT & GLPCA tables but in vain.
    Regards & Thanks
    Piyush Kothari.

    Hi,
    Thanks for the reply but COKL is only for Activity Type which contains Allocation Cost Elements.
    I would like to have the Table & Field name for Plan data of Primary Cost Element.
    Piyush

  • Table Name and Column name for Product Family Field under the Product Famil

    Hi,
    Please help me finding the table name and the column name for the 'Product Family' field and the 'Item' field under the Product families form. The navigation to this form is as follows:
    Material Planner Responsibility -> Setup -> Product Family
    Please help.
    Thanks,
    KM

    2 months ago, you asked a very similar question... and Markus gave you a good answer. His 2-months old answer still applies here.
    I recommend that you read it a again at Table name for backorder qty on sales order.
    When you have read his answer, please close both threads.

  • How to find Table names for PO & Invoices in SRM Standalnoe system SRM 7.0?

    Hi,
    How to find Table names for PO & Invoices in SRM Standalnoe system SRM 7.0? Please let me know.
    Thanks,
    Monica

    Hi,
    In SRM for all objects like SC ( BUS21210),BID,PO(BUS22010),Confirmation (BUS2203),invoice etc all the data stored
    in BBP_PDHGP and BBP_PDBEI  tables only, These is no separate tables..
    for your reference below are the few SRM tables
    BBP_PDACC  Account Assignment 
    BBP_PDATT  Document Attachment 
    BBP_PDBEH  Backend Specific Header Data 
    BBP_PDBEI  Backend Specific Item Data 
    BBP_PDBGP  Partner Extension Gen. Purchasing Data 
    BBP_PDBINREL  Transaction Object Linkage (EBP) 
    BBP_PDHCF  Set for Tabular Customer and Solution Fields on Hdr 
    BBP_PDHGP  Business Transaction Purchasing Information 
    BBP_PDHSB  Bid Invitation 
    BBP_PDHSC  Header Extension for Customer Fields 
    BBP_PDHSS  Hdr Extension for SAP Internal Enhancements (IBUs and so on)
    BBP_PDICF  Set for Tabluar Customer and Solution Fields on Itm 
    BBP_PDIGP  Business Transaction Item-Purchasing Information 
    BBP_PDISB  Bid Invitation/Bid-Specific Item Data 
    BBP_PDISC  Item Extension for Customer Fields 
    BBP_PDISS  Item Ext. for SAP Internal Enhancements (IBUs and so on) 
    BBP_PDLIM  Value Limit 
    BBP_PDORG  Purchasing Organizational Unit 
    BBP_PDPSET  Further Procurement Information 
    BBP_PDTAX  Tax 
    CDCLS  Cluster structure for change documents 
    CDHDR  Change document header 
    CDPOS_STR  Additional Change Document - Table for STRINGs 
    CDPOS_UID  Additional Table for Inclusion of TABKEY>70 Characters 
    CRM_JCDO  Change Documents for Status Object (Table JSTO) 
    CRM_JCDS  Change Documents for System/User Statuses (Table JEST) 
    CRM_JEST  Individual Object Status 
    CRM_JSTO  Status Object Information 
    CRMD_LINK  Transaction - Set - Link 
    CRMD_ORDERADM_H Business Transaction 
    CRMD_ORDERADM_I Business Transaction Item 
    CRMD_PARTNER  Partners 
    SROBLROLB  Persistent Roles of BOR Objects 
    SROBLROLC  Persistent Roles of Business Classes 
    SRRELROLES  Object Relationship Service: Roles 
    Thanks & Regards,
    Prasad S

  • WebtopNaming - can not find server name for server ID

    We have a LB, and web servers in front of OpenSSO app servers in our environment.
    OpenSSO debug log CoreSystem fills up with lot of errors like these:
    ERROR: WebtopNaming.getServerFromID() can not find server name for server ID : 07
    com.iplanet.services.naming.ServerEntryNotFoundException: Cannot find server.
    Sometimes, it even complains about a server id (07 in the following trace) which doesn't even exist in the Site Id Table.
    There are no changes in the configuration. DNS is properly configured and all the servers and their connectivity are available. CoreSystem throws these errors even after a restart of opensso app servers.
    Any ideas about the root cause?
    amNaming:05/13/2011 10:22:37:009 AM PST: Thread[WebContainer : 0,5,main]
    Server Id Table -> {%protocol://%host:%port%uri/AssertionManagerServlet/AssertionManagerIF=iplanet-am-naming-samlassertionmanager-url, http://host4.company.com:8080/openSSO=04, com.iplanet.dpro.profile.agent.ProfileService=iplanet-am-naming-profile-class, %protocol://%host:%port%uri/SecurityTokenManagerServlet/SecurityTokenManagerIF=iplanet-am-naming-securitytokenmanager-url, %protocol://%host:%port%uri/authservice=iplanet-am-naming-auth-url, %protocol://%host:%port%uri/sts=sun-naming-sts-url, %protocol://%host:%port%uri/SAMLAwareServlet=iplanet-am-naming-samlawareservlet-url, http://host5.company.com:8080/openSSO=05, com.sun.identity.authentication.server.AuthXMLHandler=iplanet-am-naming-auth-class, com.sun.identity.policy.remote.PolicyRequestHandler=iplanet-am-naming-policy-class, %protocol://%host:%port%uri/loggingservice=iplanet-am-naming-logging-url, %protocol://%host:%port%uri/jaxrpc/=iplanet-am-naming-jaxrpc-url, %protocol://%host:%port%uri/FSAssertionManagerServlet/FSAssertionManagerIF=iplanet-am-naming-fsassertionmanager-url, %protocol://%host:%port%uri/identity/=sun-naming-idsvcs-rest-url, 03,05,04,02|03,01|03=iplanet-am-platform-site-id-list, %protocol://%host:%port%uri/identityservices/=sun-naming-idsvcs-jaxws-url, %protocol://%host:%port%uri/sts/mex=sun-naming-sts-mex-url, %protocol://%host:%port%uri/profileservice=iplanet-am-naming-profile-url, %protocol://%host:%port%uri/SAMLPOSTProfileServlet=iplanet-am-naming-samlpostservlet-url, 02|02,01|01,05|05,04|04=iplanet-am-platform-lb-cookie-value-list, %protocol://%host:%port%uri/SAMLSOAPReceiver=iplanet-am-naming-samlsoapreceiver-url, https://host4.company.com:8443/openSSO=01, com.sun.identity.log.service.LogService=iplanet-am-naming-logging-class, %protocol://%host:%port%uri/sessionservice=iplanet-am-naming-session-url, https://host5.company.com:8443/openSSO=02, %protocol://%host:%port%uri/policyservice=iplanet-am-naming-policy-url, iplanet-am-naming-service=serviceObjectClasses, com.iplanet.dpro.session.service.SessionRequestHandler=iplanet-am-naming-session-class, https://opensso-qa.company.com:443/openSSO=03}
    amNaming:05/13/2011 10:22:37:009 AM PST: Thread[WebContainer : 0,5,main]
    Site Id Table -> {03=03, 02=03, 01=03, 05=05, 04=04}
    amNaming:05/13/2011 10:22:37:009 AM PST: Thread[WebContainer : 0,5,main]
    Platform Servers -> [https://opensso-qa.company.com:443/openSSO, https://host5.company.com:8443/openSSO, https://host4.company.com:8443/openSSO, http://host4.company.com:8080/openSSO, http://host5.company.com:8080/openSSO]
    amNaming:05/13/2011 10:22:37:009 AM PST: Thread[WebContainer : 0,5,main]
    Platform Server IDs -> [03, 02, 01, 04, 05]
    amNaming:05/13/2011 10:22:37:010 AM PST: Thread[WebContainer : 0,5,main]
    ERROR: WebtopNaming.getServerFromID() can not find server name for server ID : 07
    com.iplanet.services.naming.ServerEntryNotFoundException: Cannot find server.
    at com.iplanet.services.naming.ServerEntryNotFoundException.<init>(ServerEntryNotFoundException.java:52)
    at com.iplanet.services.naming.WebtopNaming.getServerFromID(WebtopNaming.java:709)
    at com.iplanet.dpro.session.SessionID.setServerID(SessionID.java:380)
    at com.iplanet.dpro.session.SessionID.parseSessionString(SessionID.java:363)
    at com.iplanet.dpro.session.SessionID.getSessionServerID(SessionID.java:261)
    at com.iplanet.dpro.session.service.SessionService.isLocalSite(SessionService.java:881)
    at com.iplanet.dpro.session.Session.getSessionServiceURL(Session.java:1197)
    at com.sun.identity.authentication.UI.LoginServlet.initializeRequestContext(LoginServlet.java:153)
    at com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationServletBase.java:578)
    at com.iplanet.jato.ApplicationServletBase.doGet(ApplicationServletBase.java:459)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

    Thank You for the response.
    Here is my site configuration in OpenSSO:
    There are 4 servers in the two opensso hosts (2 secure, 2 non secure)
    Servers:
    http://host4.company.com:8080/openSSO
    http://host5.company.com:8080/openSSO
    https://host4.company.com:8443/openSSO
    https://host5.company.com:8443/openSSO
    Only one site with secure URLs is configured
    Sites:
    site1
    Primary URL: https://opensso-qa.company.com:443/openSSO
    Assigned Servers:
    https://host4.company.com:8443/openSSO
    https://host5.company.com:8443/openSSO
    From the CoreSystem log, Server ID definitions are:
    https://host4.company.com:8443/openSSO=01
    https://host5.company.com:8443/openSSO=02
    https://opensso-qa.company.com:443/openSSO=03
    http://host4.company.com:8080/openSSO=04
    http://host5.company.com:8080/openSSO=05
    Sometimes it throws an exception with existing server IDs. But sometimes it also complains about non existing server IDs.

  • How to get column names for a specific view in the scheme?

    how to get column names for a specific view in the scheme?
    TIA
    Don't have DD on the wall anymore....

    or this?
    SQL> select text from ALL_VIEWS
      2  where VIEW_NAME
      3  ='EMP_VIEW';
    TEXT
    SELECT empno,ename FROM EMP
    WHERE empno=10

  • How to find table name for the fields from Standard Extractor in CRM system

    How to find table name of fields from the standard extractor in CRM system ?
    e.g. We use LBWE TCode in R/3 system to find table name for the field from Extractor VCSCL(e.g.).
    Likewise is there any way to find table name for the fields from Standard extractor like 0CRM_LEAD_I.

    Hi ,
    Please find the link below for understanding BW CRM analysis.
    http://help.sap.com/bp_biv135/html/bw.htm
    activate the CRM DSs by scenario:
    1) Activate the application component hierarchy (tcode RSA9). Changes made to the application component hierarchy in the CRM system can be transferred to the BW using the "Edit Application Component Hierarchy" (SBIW - Postprocessing of DataSources).
    SAP Note 434886 must be implemented in CRM 3.0 before the application component hierarchy is activated.
    2) Activate the Business Content DataSources (tcode RSA5).
    Select/enter the application component and choose Execute (F8).
    To compare the shipped and active versions, choose the 'Select Delta' pushbutton. If there is no active version of the DataSource, it is selected automatically.
    To activate the shipped version, choose the 'Transfer DataSources' pushbutton.
    3) Management of the versions of the BW-Adapter metadata (tcode BWA5). All DataSources are displayed that are managed by the BW Adapter.
    As in transaction RSA5 (Service API Metadata Activation), the 'Select Delta' function can be used to select the inactive DataSources or compare shipped and active versions.
    You can also go directly to the screen for maintaining DataSources that are managed by the BW Adapter.
    The 'Compare Version' function makes a detailed comparison of the shipped and active versions.
    All BW-Adapter metadata is considered when versions are compared:
    Header information (Table SMOXHEAD)
    Mapping information (Table SMOXRELP)
    Global selection conditions (Table SMOXGSEL)
    Attribute key fields (Table SMOXAFLD)
    Hope this helps.
    Regards,
    csm reddy

  • Table name for plan data

    Hi All,
    could you please give me table name for plan data. this is tcode where we can see for range of cost centers S_ALR_87013612 (range of cost centres) and cost elements as well. but our client wants to extract from the table which has the same values in the report S_ALR_87013612.
    from which table they need to extract.
    your early response will be highly appreciated.
    Regards,

    Dear,
    Try following tables..
    1. COKP - Primary planning
    2. COKS - Secondary planning.
    Regards,
    Chintan Joshi

  • Getting column names for resultMap - Ibatis

    Hi friends,
    I need to get the column names for the properties specified in sqlMap.xml in my code .
    for example: <resultMap id="resmap" class="java.util.HashMap">
    <result property="custId" column="cust_id"/>
    <result property="routerId" column="router_id"/>
    <result property="routerName" column="router_name" jdbcType="CLOB"/>
    <result property="device_type" column="device_type"/>
    </resultMap>
    i need to get the column values in code.........
    is there anyway to access the sqlMap.xml file as an instance in Ibatis.

    I always use jaxb2 to unmarshall/marshall, works like a charm

  • How to find Object name for a object?

    Hi Experts,
    How to find Object name for a particular Object? Is there a Tcode for it?
    __Like Object name for__
    Material number -  materialnr
    Goods receipts / return - matbeleg
    Accounting documents -  rf_beleg
    How to find Object name for other Objects? Is there a particular way?
    Thanks & Regards
    Chandan

    Hi,
    You can find objects in SNRO transaction.
    In SNRO search by giving long text...
    for eg., Service .. for service entry sheet. keep the first letter in capital letter only.
    Thanks & Regards,
    Anand.

Maybe you are looking for