Urgent: Search all fields

Hi,
I've a problem.
My job is to search a value which can stand in each field from each table.
There are 1054 tables and i should write a procedure which can look in each field if the value is 77669.
It's very urgent.
Thanks in advance.
With best regards
Nicole

Thanks i've solved the problem, but now i have an other problem.
I've to find colums which have different or the same value and if a column have the only one value in each field i want to know this value.
I've tried this procedure but i get a error message:
invalid cursur!
RIS5COLUMNS is a view which have all table_names, column_names,datatypes and max_value.
Here is the procedure:
Create or replace procedure analyse is
lob_length integer;
read_amount integer;
read_offset integer;
buffer varchar2(100);
loc varchar2(100) := 'usr_dir';
f_hand utl_file.file_type;
datatyp varchar2(20);
counter number;
value VARCHAR2(200);
tab_nam VARCHAR2(30);
col_nam VARCHAR2(31);
TYPE RefCurTyp is REF CURSOR;
CV REFCURTYP;
sql_statement VARCHAR2(2000);
max_len number(10);
Cursor cur_suche is
Select column_name,upper_table_name,dbms_type_string,char_max_length from RIS5COLUMNS
where upper_table_name in (Select table_name from user_tables);
BEGIN
read_offset := 1;
read_amount := 49;
-- read_amount := 81;
--Opening file
f_hand := Utl_File.Fopen(location =>'d:\oracle\utl_file\',
filename =>'analyse_Linz_AG.txt',
open_mode =>'w',
max_linesize => 32767);
utl_file.putf(f_hand,'Tabellenname;Feldname;Anzahl unterschiedlicher Einträge;Wert;Max. Länge');
Utl_File.New_Line (f_hand,1);
OPEN cur_suche;
LOOP
FETCH cur_suche into col_nam,tab_nam,datatyp,max_len;
exit when cur_suche%NotFound;
If datatyp <> 'date' then
sql_statement := 'SELECT DISTINCT( COUNT ('||col_nam||')) from '||tab_nam||'';
open CV for sql_statement;
loop
fetch cv into counter;
Close CV;
If value = 1 Then
     sql_statement := 'SELECT DISTINCT '||col_nam||' from '||tab_nam||'';
open CV for sql_statement;     
fetch cv into value;
utl_file.putf(f_hand,''||tab_nam||';'||col_nam||';'||counter||';'||value||';'||max_len||'');
Utl_File.New_Line (f_hand,1);
Else
utl_file.putf(f_hand,''||tab_nam||';'||col_nam||';'||value||';;'||max_len||'');
Utl_File.New_Line (f_hand,1);
End if;
END LOOP;
Close CV;
End if;
END LOOP;
Close cur_suche;
utl_file.fclose(f_hand);
end analyse;

Similar Messages

  • Display only part of the STRING field, but search ALL field

    Hi all,
    I have a field VARCHAR2(4000) that holds a lot of text.
    When I make a report in APEX, it shows in each row, ALL text, so the report is very "ugly".
    I want to limit the display of that column for only the first 60 characters.
    I tried to use the SUBSTR function, that worked, but the search option will search for the text only in that 60 lenght characters, and will now search in the rest (not displayed) part of the field.
    Is there a way to do this full search and display only part of the field?
    Thanks

    You can have the 'substring' column displayed to the user, but have another column which shows the full text lets say it has an ALIAS of "*SEARCH_LARGE_TEXT*" in the report definition(and is among the displayed columns).
    You can hide the large text column(SEARCH_LARGE_TEXT) using JS as
    $('th[id="SEARCH_LARGE_TEXT"],TD[headers^="SEARCH_LARGE_TEXT"]').hide()
    Note: ^= syntax used to match data column even when break formatting used
    You can make sure that the column stays hidden even after an IR filter or refresh by binding it to the refresh event of the IR by
    $('#apexir_WORKSHEET_REGION').bind('apexafterrefresh', function(){ 
      $('th[id="SEARCH_LARGE_TEXT"],TD[headers^="SEARCH_LARGE_TEXT"]').hide()
    change the string "SEARCH_LARGE_TEXT" with your column's alias
    Hope it helps

  • Searching in Contacts app doesn't search all fields

    Specifically, I find that the Contacts app on the iPad won't search the notes field (or the phone number or email fields for that matter).
    Question: Is there a setting to enable this or a solution to cause the Contacts app search mechanism to include fields other than names?
    It seems reasonable to desire search results to include notes you've made on the contact, phone numbers, emails etc. Often I find myself trying to find a contact based on a note or other info without remembering their name.

    Mykll0 wrote:
    Interesting. Just tried this on my iPhone, and it is doing the same thing. So, not an iPad issue, an OS issue? I am betting there is not a way to enable this in the Apple supplied Contacts, there may be some other third paty app that maybe does this.
    I really need to keep those Feedback links handy for easy pasting... Can someone post that link? Thanks!
    If you want to point out this omission try: http://www.apple.com/feedback/ipad.html

  • Setting up a web app search field that searches all web app data

    Hi BC forum
    We have this web site - bridgerd.com.au - and we are finding limitations with the web app search bar (where it says: Search Bridge Rd). This search bar will only search for data within the Web App 'description field'. We're wanting it to work a little more like the site search module, where it searches all content of a particular web app - including data from different fields.
    Obviously this would be a great out-of-the-box feature for BC, and it seems to be an annoying limitation. Has anyone overcome this issue before? Is there a way to search all fields by concatenating a bunch of hidden fields into one submitted search using java script. Or could we using java script to copy the same entered search value to all fields whilst hiding all but the main search field?
    Cheers

    Actually, let me clarify this... Is there a way to expand the "Keyword" field search in web apps past the limits of only searching the "Content" field?
    OR
    Is it possible to include the custom fields in our web app to the search criteria? When I add the web app to the page, it seems BC will only add the default web app search fields. If I can add the custom web app search fields, I may be able to employ my theory as per last post.
    Cheers

  • Can't include a reset button/process that cleans a search text field

    Hi all
    Using apex 3.0.1 on a XE edition
    In my app there's a report that displays a lot of records.
    I included an text field item, where user can type a search criteria, then i added a button called "search" which, when submitted, display the records where search criteria is included.
    Now, my problem is that i can't put a "reset" button, which, when submmitted, is supposed to clear the search text field, so the report display all records.
    I tried adding a branch that triggers when reset buttos is pressed, clearing cache of search text field. It didn't worked, search string keeps on showing on text field.
    Then i changed the process, instead of clearing cache, setting search text field item with a value of null. Didnt work either...
    Does anyone have a good example of thjis type of reset button???
    tnks in advance....
    Fernando

    yes Earl, i know it's pretty standard...but i got some trouble... anyway, i think it was just a "lapsus brutus" o' mine... It's solved now and here's what i did:
    I created a text field button (where search string will be typed), a "submit as Go" button, and a "submit as reset" button. Then i created an uncondicional branch to same page, then i created a Clear Cache for Item process, where the text field cache is cleared, conditioned when "submit as reset" button is pressed.
    That solved the problem, thnx very much for your help
    fernando

  • Looking for a tool to search text fields in about 1000 reports installed on Business Objects Xi R3

    Hi,
    i am looking for a tool, program that can search all our reports installed on Business Objects Xi R3 for specific content in text fields and formulas.
    We used a couple of years ago .rpt inspector, that worked pretty well for our purpose.
    Unfortunately  this is Win XP & Win Server 2003 only, so we can't reuse it anymore.
    (I know there are way of getting WinXP that in a VMware, but that is not an option in our company.)
    So i am interested , if there is another tool out there, which can help us?
    regards Alex
    btw we are using Business Objects XI R3 (SP7) with reports deisgned on crystal reports designer 2008

    Hi,
    i am looking for a tool, program that can search all our reports installed on Business Objects Xi R3 for specific content in text fields and formulas.
    We used a couple of years ago .rpt inspector, that worked pretty well for our purpose.
    Unfortunately  this is Win XP & Win Server 2003 only, so we can't reuse it anymore.
    (I know there are way of getting WinXP that in a VMware, but that is not an option in our company.)
    So i am interested , if there is another tool out there, which can help us?
    regards Alex
    btw we are using Business Objects XI R3 (SP7) with reports deisgned on crystal reports designer 2008

  • Controlling criteria in Advanced Search 'Add Fields'

    Hi all,
    Jdev Version: Studio Edition Version 11.1.1.7.0
    Background
    I have two VOs described as below -
    TaskVO - Fetches a list of tasks
    TaskUserVO - Fetches the list of users of tasks - Users may be assignees or owners identified by value in column 'USER_SOURCE_TYPE'.
    A view link relates TaskVO & TaskUserVO by the TASK_ID (primary key of TaskVO).
    I have a view criteria for displaying a search by assignee and search by owner as criteria in my search query region. For this, I have used 2 inline view criteria in my view criteria defined in TaskVO. Both inline view criteria are on TaskUserVO (one for Owner & other for Assignee) and each takes 2 bind variables -
    i. USER_SOURCE_TYPE - This can either be ASSIGNEE or OWNER
    ii. NAME - This is the name of the assignee or owner.
    Issue Description
    The issue I face is in Advanced Search - Add fields. Since the same inline view criteria (TaskUserVO) is added twice (once for Owner & other for Assignee), the Add fields shows 'Name' twice in the list.
    I need to show the Add field label name as 'Assignee' corresponding to the Assignee inline VC and name as 'Owner' for Owner inline VC. How can I achieve this?
    In general, I am also looking for ways to pro-grammatically modify the 'Add field' list (I understand that the Queriable flag controls this list declaratively). Any suggestions on this?
    Could QueryModel/QueryDescriptor help in achieving this?
    Thanks,
    Srini

    Any thoughts on this one?

  • Since Firefox updated yesterday, it won't respond to addresses in the url field or search terms in the search engine field. I can only go to addresses already in my bookmarks.

    When I type an address into the url field the browser will not load the page...it just sits there as though waiting for me to press enter. Also it won't respond to the recently used addresses that show in the dropdown menu. It will also not respond when I try to use the search engine field (google). This started yesterday after Firefox automatically updated to version 3.5.9. I don't get an error message, just no response at all.

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    This can also be a problem with the file places.sqlite that stores the bookmarks and the history.
    * http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • Clearing only a few search criteria fields

    Hi,
    I am defaulting the business partner and start date fields of the search criteria of the dealer portal lead search..
    But when I click on clear button , now it clears the result set and not the search criteria because I commented the below code in EH_ONCLEAR method
    * clear search criteria
    *  lt_adjustments = me->get_adjustments( ).
    *  lr_qs->clear_selection_param_values( lt_adjustments ).
    But now I want all the search criteria fields to be cleared when I click clear button except for business partner...
    If I am able to manipulate the code of clear_selection_param_values( lt_adjustments ) method, I will be able to achieve it..
    But the clear_selection_params_values is a standard method...How do I manipulate to not clear the business partner??
    What is the procedure to achieve it?
    Thanks
    Madhukar

    Hi,
    Check this code.
      data: lv_viewname type string,
            lr_view_ctrl type ref to cl_crm_srqm_common_sr_cntrl,
            lr_search_cn type ref to CL_BSP_WD_CONTEXT_NODE_ASP.
    lv_viewname = me->get_viewarea_content( if_crm_srqm_uiu_const=>gc_viewarea_search ).
      ASSERT lv_viewname IS NOT INITIAL.
      lr_view_ctrl ?= me->get_subcontroller_by_viewname( lv_viewname ).
      lr_search_cn ?= lr_view_ctrl->get_search_context_node( ).
      lr_query_service ?= lr_search_cn->collection_wrapper->get_current( ).
      lr_coll ?=  lr_query_service->get_selection_params( ).
      CHECK lr_coll IS BOUND.
      lr_iterator ?= lr_coll->get_iterator( ).
      CHECK lr_iterator IS BOUND.
      lr_entity ?= lr_iterator->get_first( ).
      WHILE  lr_entity IS BOUND.
        lr_entity->get_property_as_value( EXPORTING iv_attr_name = 'ATTR_NAME'
                                          IMPORTING ev_result = lv_attr_name ).
        CASE lv_attr_name.
          WHEN 'PARTNER'.
            lr_entity->get_property_as_value( EXPORTING iv_attr_name = 'LOW'
                                             IMPORTING ev_result = lv_partner ).
    EXIT.
       ENDCASE.
        lr_entity ?= lr_iterator->get_next( ).
      ENDWHILE.
    lr_search_cn->if_bsp_model~reset_errors( ).
      lr_view_ctrl->clear_search( ).
    lr_query_service-->ADD_SELECTION_PARAM( iv_attr_name = 'PARTNER'
                                                     iv_sign      = 'I'
                                                     iv_option    = 'EQ'
                                                     iv_low       = LV_PARTNER ).
    Regards,
    Deepika

  • PIC01 - Search of Field "FFF Class"

    Hi,
    I have some FFF Classes created by MM01.
    Whenever I go to t-code PIC01, I try to search (F4) for these classes, but only one appears.
    The others are created in the same way. It looks like an error of the search in the field "FFF  Class"... Any advice you can give me in order that if i search, all the classes are listed??
    Thanks and Regards,
    MC

    SAP Note 1668284

  • No search files field

    here is no search files field when i open a PDF and when i insert from file. I have gotten a different PC at work with same standard addition and my old pC had the search field?  I have run the repair and tried to look this issue up.  contacted Adobe and they said that the only way to get help  is this way.  Thank you to anyone that can help.
    I have version x standard 10.1.11
    Can someone help me fix this as I am in and out of adobe all day and need to be able to search instead of having to scan through tens of thousands of docs to find the one i need.  Thanks

    With X and XI  it is not shown "by design" so -- access via Ctrl+F.
    Be well...

  • Users Capable of Searching All Applications in Workspace

    I would like to create essentially a Google type application where users can enter search words and search all available applications in a designated workspace that meet the search.  Is this possible and any tips on how to get started?  I am currently on APEX 4.0.2

    That is a great help.  So if I have an application, call it Application A that contains things such as sales volume, application counts, approval rates etc.. and a user wanted to see any application that contained sales volume.  They would go to the search field and type sales volume. How would my application be able to to find Application A.  Is there a way to include key words on the application so it can find it?

  • Can only search all Forums not a specific one?

    Hi all,
    I would like to search a single forum for a search query. Is this possible in Adobe Forums?
    I see only the "Search Forums" field on the top right of the page where I can do a search over all forums. This is not what I would like to do (imagine LiveCycle with a bunch of forums).
    How can I search only one forum?
    Thanks.
    Paul

    Paul,
    To elaborate a bit:
    The advanced Google Search should contain the following inserted in the top boxes (nothing else needed):
    1) all these words/one or more of these words: the word(s) you are looking for
    2) this exact wording or phrase: Up to discussions in *forum name*
    2) is the more important part, limiting the search to threads belonging to that particular forum.
    I believe most of us have given up on any forum search until further notice (about forum software udgrading).

  • Create several search filters fields in SOCO SRM 7.0

    Hello
    I would like add several search criterial fields in SOCO but i not find where do it. (in the first step)
    Someone can help me? Someone know the class-method where do it?
    Thank very much
    Alfie

    Maria
    EDIT Action in POWL is disabled for performance reasons. It is possible to activate that button there.
    Regarding EDIT button in SC Detail, this function is a standard behaviour where SRM allows the creator/requestor to pull the cart back from approval by using EDIT button.
    If you do not want the users to use this button, Go ahead and Disable the button by Class and Method. Make sure you disable the action EDIT only when USER = (CREATOR or REQUESTOR) AND Status of Cart = Awaiting Approval. If you disable it for all users, Approvers will have tough time apprving the carts
    Regards
    Virender Singh

  • Is it possible to search multilingual fields?

    I would think this would be an obvious thing Data Manager should be able to do, but I cannot figure it out. Using the Free-Form search, I want to be able to search all languages of a specific field. For example I have a Description field setup as Multilingual, I am logging into Data Manager in English, but I want to be able to execute a search and have it search the Description in every langauge for a specific value, so that if there is a certain German word I'm looking for, it would find it even if it is not in the English description. I would be amazed if this is not possible.
    Ideas?
    Thanks!

    Hi Ryan,
    If you want to search for any field value in any language then you have to log on to the repository into that language only.
    The other case possible is: Your multi valued field does not have a value in the language, you are logged in with and it is your primary language inherits the value from other language, then you can search it.
    Hope this is clear.
    Regards,
    Dheeraj.

Maybe you are looking for

  • XML Publisher output does not appear in Request Set

    Hi, I have created a request set in which i have this XML Publisher report when i run this report through concurrent program i can see the report output but when i run through request set i am not able to see the report output. One thing i noticed th

  • Regarding the modifying an internal table

    hi,    i am having an internal table,i have to modify one field and the remaining fields should remain same in the internal table while displaying the internal table.    can any body send the solution for this issue. thanks in advance

  • Mac wouldn't start, erased hard drive

    Hey everybody, Long story short, I erased my hard drive, and I don't have any way of re-installing OS X. All of the files and stuff I care about are backed up, so I'm not worried about that, I just don't have an OS (or even a partition) on my MacBook

  • New Mac Pro and LED cinema display

    Sorry if this has been asked before, I tried searching for it but none of the topics answered my question specifically enough. I have a 24" Apple LED Cinema Display purchased less than a year ago. Will it connect to a new Mac Pro and what happens to

  • Cannot find the Person Object Class

    In Identity Server installation the Person object class is not accepting this recommended object "inetOrgPerson", "User" and Organizational Person" . What should be the person object class be supplied to make the installation continue? Is there anyth