Session Killing - Automatically in 10g Forms

Dear All,
We have used when-timer expired-trigger in 6i forms and killed sessions which are idle for more than 30 mins. But the same form does not work with 10g forms.
Is there any limitation in 10g forms with when-timer-expired trigger.
How do we enable this. Please help us in fixing this.
Thanks
Guru

I tried with "separateframe=true" in formsweb.cfg and it works fine for me.
What is not working when you set "separateframe=true"?
So far my experience with timeoutPJC is it works great with single form, form gets closed when the maximum Inactivity Period is exceeded but it is an issue when we try to implement it in multi-form application. My scenario is like this
- I have main form which works like a MENU with Hierarchial tree structure,
each node calls a different form within the application. Menu appears on the
left while individual forms appearing towards right upon invokation.
- I am trying to implement the timeoutPJC(Oracle Forms 10gR2 Demos) on this
form so that when the Maximum Inactivity period exceeds then the whole
application gets closed. It works GREAT when implemented on a single form
but in a multiple form application it doesn't seem to work.
- Also I have requirement to display a WARNING message 2 minutes prior to
timeout so that user will be notified before the application gets closed. I
tried to display forms ALERT but until the user acknowledges the alert application
will not close. As an alternative to the forms alert I tried displaying an
html document using WEBUTIL it is working ok but ideally I would like to see an Alert and close automatically just like AVG alert which shows timer after it has successfully updated and gets closed once the timeout occurs, anyone has ideas how to build such an alert?.
- From the main form (MENU) I use OPEN_FORM built-in() to open 1st level of
forms in the application. From this form I make use of CALL_FORM() to call
various other forms.
- If the focus is in the call form and if the form is in NORMAL mode
everything works great. But if the form is either in ENTER-QUERY mode or LOV
is opened and timeout occurs nothing happens until I close the called form
manually then all the forms get closed. How to overcome this situation?
- I can't understand why this doesn't work if the PJC is associated with the
JAVA applet?
**Is there a way we can close all the forms when timeout occurs without implementing timeoutPJC bean on all 600 odd forms in our application given the constraints I have defined above?
Thanks in Advance,
Venu

Similar Messages

  • Kindly suggest oracle automation testing tools supporting oracle 10g forms

    Hi,
    We would like to automate oracle 10g forms in our company. kindly suggest oracle automation tools supporting oracle 10g forms other than OATS.
    If only OATS tool is available in Oracle, please suggest user guide for OATS.
    Regards,
    Sairam

    Hi Sairam,
    You can find OATS docs in OATS installation package itself. You can find separate pdf files for each OATS product(OpenScript Programmer Preference, OFT, OLT, OTM, Administrator etc).
    Regards,
    Deepu M

  • Iconic file in oracle 10g forms

    hii,,
    i am a new user in oracle 10g form,,,here i am running a form & placing all the icons in a folder,after that i changed the iconic file path in the default.env file,the path is same where the icons are kept,,but still i am unable to see the icons at the run time,,,,,
    do i need to modify some other file or the icons will be kept at some particaular place????
    plzzzz help.....

    hi
    1 How to Display Iconic Images Using Forms 9.0.x/ 10.x?
    When running an Oracle Forms 9i/10g application the icon files used must be in a web enabled
    format such as JPG or GIF (GIF is the default format) (This is unlike older versions of forms running in client-server mode when the file format is .ico.)
    Icon image files can either be retrieved by Forms as individual files on the filesystem or from a Java Archive (JAR file).
    If an application uses lots of icon images it is recommended that they are stored in a JAR file to reduce the number of HTTP round trips.
    Reference:Note 232413.1 How to Deploy Iconic Images via a JAR File in Forms 9i/10g?
    The example below details steps to configure iconic images as individual gif or jpeg files.
    It is a first approach recommended for initial testing and understanding.
    Example:
    ========
    This document has been written for use with both Windows and UNIX operating systems: Windows will use the "\" character to delimit directories and UNIX uses the "/" character. Any other differences are noted in the document.
    1) Determine the physical location of the icons on your web server. For this example, assume that the icons are stored in D:\Myfiles\icons.
    2) Create the virtual directory in the forms90.conf file that point to the location of your Forms 9i/10g icons. This file is located in:
    $ORACLE_HOME\forms90\server\forms90.conf
    To define a virtual directory forms90/icons, use the following syntax:
    # Virtual path for ICONS (used to show icons in a form ) AliasMatch ^/forms90/icons/(..*) "D:\Myfiles/icons/$1"
    Below is an example of the forms90.conf after it has been modified to include the /forms90/icons virtual directory.
    # Virtual path mapping for Forms Java jar and class files (codebase) AliasMatch ^/forms90/java/(..*) "E:\IASR2\APP/forms90/java/$1" # Virtual path for JInitiator downloadable executable and download page AliasMatch ^/forms90/jinitiator/(..*) "E:\IASR2\APP/jinit/$1" # Virtual path for runform.htm (used to run a form for testing purposes) AliasMatch ^/forms90/html/(..*) "E:\IASR2\APP/tools/web90/html/$1"
    # Virtual path for ICONS (used to show icons in a form ) AliasMatch ^/forms90/icons/(..*) "D:\Myfiles/icons/$1"
    ( For 10g use instead of "forms90" -> "forms")
    3) Direct forms to use the /forms90/icons or /forms/icons virtual directory when running on the web by modifying the Registry.dat file in the $ORACLE_HOME\forms90\java\oracle\forms\registry or $ORACLE_HOME\forms\java\oracle\forms\registry
    directory. Note that for UNIX, both the path name and file name are case sensitive. You must specify "Registry.dat".
    Modify the default.icons.iconpath entry as follows: default.icons.iconpath=http:///forms90/icons/ or default.icons.iconpath=http:///forms/icons/
    If the URL used to bring up forms on the web is: http://abc.oracle.com:7778/forms90/f90servlet or http://abc.oracle.com:7778/forms/frmservlet
    Then the entry required for the Registry.dat will be: default.icons.iconpath=http://abc.oracle.com:7778/forms90/icons or default.icons.iconpath=http://abc.oracle.com:7778/forms/icons default.icons.iconextension=gif
    4) Now use EM Website to: a) Restart the OC4J-BI-Forms Instance b) Restart the BI-FORMS HTTP Server Instance.
    5) Verify that the virtual directory has been defined properly and that the icons can be viewed in a browser.
    Assuming that exeqry.gif exists in the D:\Myfiles\icons directory, the following URL should show the icon:
    http://abc.oracle.com:7778/forms90/icons/exeqry.gif or http://abc.oracle.com:7778/forms/icons/exeqry.gif
    6) Check the form : http://abc.oracle.com:7778/forms90/f90servlet?form=D:\Testcases\F90\ICON_CHECK_IASR2.fmx or http://abc.oracle.com:7778/forms/frmservlet?form=D:\Testcases\F10g\ICON_CHECK_IASR2.fmx
    CHECKLISTS
    =============
    Icons do not appear in the browser using the URL:
    o Verify that you are using the correct machine name and port for the OC4J_BI_Forms object.
    o Check the virtual directory name to make sure that there are no typographical errors. o Check for typographical errors in the forms90.conf or forms.
    conf for the virtual directory. o Check the name of the icon on the file system. If the file is saved as Exeqry.gif, then it will not be found using the URL http://abc.oracle.com:7778/forms90/ Close all your browser sessions and open a new browser window.
    Execute the URL to bring up from the Form Builder runtime or from the browser.
    ( For 10G use "forms" instead of "forms90")USEFUL REFERENCES:==================
    [PDF] Oracle9iAS Forms Services Deployment Guide (P/N B10170-01)Configuring Oracle9iAS Forms Services ->
    Deploying Icons and Images Used by Oracle9iAS Forms Services http://otn.oracle.com/products/forms/pdf/B10170_01.pdf
    [PDF] Oracle9iForms Services - How to Deploy Iconshttp://otn.oracle.com/products/forms/pdf/webicons.pdf
    sarah

  • Load balancing 10g forms - Connection from new browser window not supported

    Load balancing 10g forms - Connection from new browser window not supported
    We're experimenting with using webcache to load balance between multiple applications servers running OC4J forms processes.
    We currently have one machine with infrastructure and mid-tier (BI & Forms) installed, which is being used for the webcache functionality, this is load balancing between 2 other servers each of which just have the mid-tier (BI & Forms) installation
    In order to get this to work, I had to follow the instructions in the Forms deployment guide : http://download-uk.oracle.com/docs/cd/B14099_11/web.1012/b14032/tuning.htm#sthref707
    The main gist of this is that you need to set the following in the orion-web.xml file in order that the sessions are maintained:
    <session-tracking
    cookies="enabled">
    </session-tracking>
    This all works fine in most cases.
    The problem I am having is if I do one of the following on the client machine:
    1) From IE6 / IE7 run a copy of a forms application. Then open a new window using the "New Window" menu option, and attempt to run another forms application.
    2) In IE7 or Firefox 2.0 open a copy of the forms application, and then open a new tab and try and open another forms application.
    If I try either of these I get a FRM-92101 error, and the following is displayed in the java console:
    oracle.forms.net.ConnectionException: Connection from new browser window not supported
    From trawling various forums (including metalink and otn) it looks like a problem with the way coockies are handled.
    Unfortunately the usual workaround is to ensure that the session tracking option in the orion-web.xml file is disabled.
    The problem is that I need this enabled in order for the load balancing to work.
    Does anyone know of any other workarounds or patches that might help resolve this?
    We're using Application server 10.1.2.0.2 running on windows 2003 servers.

    You were right. Carriage returns were stopping it from working (the document is laid out over separate lines, so I assumed it would make no difference...).
    I've now managed to get it so the forms at least run, but they are all being run in the forms OC4J instance on the same machine as the OHS.
    Has anyone actually managed to get this to work, or am I doing something wrong?
    I did wonder if using an OHS instance on a machine with no forms installation would make any difference?
    I had raised a support call via metalink on this subject, but they eventually came to the conclusion that the only way to do this is with a hardware load balancer (Despite several documents suggesting that webcache is the way to go (including the forms deployment manual)).
    I'm at the point now of giving up and writing some custom scripts to do the job instead...

  • Not running 10g form in any browser

    windows server 2003
    oracle 10g form
    I already set web browser location with internet explorer exe file , but when I run the form it open I.E but don't run form in it and exit I.E automatically.
    please help.
    I am new in 10g.

    Make sure you have the database connect identifier set in tnsnames.ora file, you can do it easily using the Net Configuration Assistant. You can find it in All Programs %ORACLE_HOME%/Configuration and Migration Tools/Net Configuration Assistant and add a local net service name.
    Or manually by editting your tnsnames.ora file and add en antry like this:
    ORCL =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = <hostname>)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = <SID>)
      )where hostname = machine name of the database server or IP address and SID = database name
    Tony

  • 10g Application Server rel 3 and 10g form & report

    hi all
    i want to run 10g form & report 10g Application server rel 3 any one tel me about that thanks

    Hi,
    You can find a similar discussion at this link :-
    start AS automatically
    You can also get a good ideas from these two Metalink Notes :-
    1. Note:223285.1 :- Shell scripts to start and stop IAS 9.0.2.2 (Infrastructure - Middle tier) on Unix
    2. Note:200475.1 :- 9iAS Release 2 (9.0.2) Start/Stop Instructions on Unix
    The notes are basically for IAS 9.0.2., but can be easily customized for other IAS versions.
    Regards,
    Sandeep

  • 10g Forms - 11g Forms with Object Library and PLLs

    Hey All,
    Our organization is working towards converting our existing Forms 10g architecture to 11g / Weblogic. I'm currently attempting to get the 11g Developers suite working locally, and hit a bit of a snag.
    I'm using Windows XP Prof SP3.
    Here is what I have working:
    * I got the correct version of WLS installed
    * I got the Dev suite itself installed
    * I can start and run WLS
    * I can open form builder, create a simple form, run it, it works.
    Here is where I am stuck:
    I am trying to get our existing 10g forms to compile and run under the 11g architecture. These forms were all developed using smart classes in an object library and all call various PLSQL procedures in a PLL file.
    I've done the following:
    * Recompiled all PLLs and menu modules using 11g compiler binaries
    * Made sure the FORMS_PATH registry key included where my PLX, OLB and FMX files are (under the correct, HOME key, I hope).
    * changed default.env file so FORMS_PATH points to where my PLX , OLB and FMX files are
    However, when I try to run any of the forms, I get the following error immediately :
    "FRM-93652: The runtime process has terminated abnormally.
    Contact your administrator.
    Details....
    Forms Session ID is formsapp.1"
    And in the trace file, there isn't much helpful information:
    Last Trigger FORM/BLOCK/FIELD: AIS_WELCOME.<NULL>.<NULL>
    Last Trigger: PRE-FORM - (In Progress)
    --- Call Stack Trace ---
    EnumerateLoadedModules64 failed with error -1073741819
    calling call entry argument values in hex
    location type point (? means dubious value)
    EnumerateLoadedModules64 failed with error -1073741819
    01571C5E 00000000
    015714A4 CALLrel 01571870 314E9E8 314ADA4
    0157151D CALLrel 015713BC 314E9E8 314EA28 3 12BB4C
    12BB48
    014B131F CALLrel 015714FC 314E9E8 314EA28 3 314EA94
    12BD28
    014A20F5 CALLrel 014B112C 314E9E8
    014797FE CALLrel 014A1E1C 314E9E8 1 0
    665F1DEE CALLrel 66614E06 2E4C6F4 314E9E8 0 80000400
    80000040 100000
    6611B066 CALLrel 6619E0FC 24E3CF0 32105D8 2E44D10
    2E13B64 0 6611A492
    00000001 CALL??? 00000000
    --- End of Call Stack Trace ---
    Since I can create forms from scratch, it has SOMETHING to do with the subclassing / Object Library or the PLL/PLX. Can anyone give me any clues or hints? Is there any more tracing or logging I can turn on to get a better clue of the problem?
    Thanks!

    * ***NEVERMIND*** *
    I figured it out. I missed one of the the PLX files, and it was not recompiled under 11g. It is working now! Sorry to gum up the forum!

  • Locked record to be killed automatically after x amount of time

    I often face a problem that if any of the client is updating a record and before commit/rollback the pc gets restarted, the session of the user does not get killed and the record remains locked.
    Is there any method that in the above mentioned senario, session can be killed automatically?
    Thanks in advance
    Zulqarnain

    Justin, before following David's advice be sure to consider if you have any programs that connect to Oracle and set idle waiting for an external stimulus like a middleware receipt (mailbox , message queue etc…) receipt. You will need to set your idle time to take these programs into account, which could render the setting ineffective for your needs.
    The alternative is to write a script that looks for connected but idle sessions and which then kills them through Oracle. Through logic you define the script has the ability to skip specified sessions or to apply different timeout standards as desired.
    HTH -- Mark D Powell --

  • 10G-Form: How to add Email-id to the To: field in the Outlook?

    I am using 10G DB + 10G Form Builder.
    I've 'email_item' field in table where I am storing email-ids.
    I m displaying 'email_item' field and 'Send_Email_button' in the form.
    I want to add (copy) the exact email-id that has been displayed on the form to the To: field in the Outlook.
    Means whatever Email got displayed in the 'email_item' field, I want to add this Email automatically.
    I do not want to type manually the email-id of the person in the To: field of the Outlook like I am using rt. now as:
    WHEN-BUTTON-PRESSED trigger code=
    WEB.SHOW_DOCUMENT ('mailto:hard_coded_value_of_email?subject=Testing%20Email: &body=Please%20check............');
    Pl help me.
    Gaurav

    Hi,
    For getting the email ID you can write a java code using the Iuser Interface. Have look to the following:
    public class UseremailID extends AbstractPortalComponent
    public void doContent(
    IPortalComponentRequest request,
    IPortalComponentResponse response)
    try
    IUserFactory userfactory = UMFactory.getUserFactory();
    IUserSearchFilter userfltr = userfactory.getUserSearchFilter();
    userfltr.setMaxSearchResultSize(5000);
    ISearchResult userResult = userfactory.searchUsers(userfltr);
    while (userResult.hasNext())
    response.write("<table border=0>\n");
    String uniqueid = (String) userResult.next();
    IUser user = userfactory.getUser(uniqueid);
    //IRole role = rolefactory.getRole(uniqueid);
    response.write("<tr><td bgcolor=Red>"+ user.getDisplayName()+ "</td></tr>\n");
    response.write("<tr><td bgcolor=Green>"+ user.getEmail()+ "</td></tr>\n");
    response.write("</table>\n");
    response.write("
    \n");
    catch (Exception e)
    for analyzing the error you just need to check the log file at your server. Visit the following path:
    <Your_SAP_Drive> :/usr/sap/<your_System_Name>/jc00/j2ee/cluster/server0/log/
    There you can view the .trc file. Open that file and look for the error or the Stack trace in that.
    i think it may help you

  • Close Browser window when you close 10g forms

    Help Please.... I am trying to close browser window when I exit 10g forms:
    Per oracle Note:115905.1
    create close.html file Put the html file in the webserver root.
    I created the following file in $ORACLE_HOME/Apache directory (webserver directory??)
    1.)Create an html file (es. close.html):
    <html>
    <body onload="closeit()">
    <script>
    function closeit()
    win = top;
    win.opener = top;
    win.close ();
    </script>
    </body>
    </html>
    In exit form when button pressed I have the code
    web.show_document('http://apphost1.univ-wea.com:7777/close.html','_self');
    The brwser window does not close automatically.
    thanks,
    Anitha

    Hello this is saras from chennai.
    Now i m developing oracle forms using 6i. now i m running it independantly. that is i put forms in one folder and run these forms using shortcut. If i m using the same in client machine also. But now i want to run these forms in webbrowser(client-server). for this i done the followings.
    1. installing forms server and reports server.
    2.Also i install IIS Server and appachie server also.
    3. I had fmx files.
    now i dont know the procedure to configure these web server with forms server. And i hold the fmx files in inetpub\wwroot folder.
    Which one is the easy method appachiee server or iis server.
    Please help me to run these fmx files in web browser.
    I m eagerly waiting for your favourable reply.
    saras,
    [email protected]
    chennai

  • How to run a report from oracle 10g form in .csv format

    dear all,
    how to run a report from oracle 10g form in .csv format? i've already run in pdf & excel format.
    i'm using
    SET_REPORT_OBJECT_PROPERTY (ro_report_id, report_desformat, 'PDF'); --for pdf
    SET_REPORT_OBJECT_PROPERTY (ro_report_id, report_desformat, 'SPREADSHEET'); ---for excel
    Please Help..

    i have already tried.
    but the report show in htm or html format. that file will not save into csv. please help.

  • Calling a web service from Oracle 10g forms

    Hi Everybody
    I want to send SMS from my 10g forms.... I searched for the topic and I got the following link
    "http://www.oracle.com/technology/products/forms/htdocs/10gr2/howto/webservicefromforms/ws_10_1_3_from_forms.html"
    Now I have downloaded "wsclient_extended_101320.zip"
    1. extracted the jar file,
    2. copied the jar file in "c:\ids10\WSclient"
    3. Specified jar file name in "default.env" "formsweb.cfg"
    4. Also specified the jar file name in "CLASSPATH" environment variable
    5. restarted OC4J instance
    6. Restarted Fotm Builder
    But I couldn't see the "webServiceProxy.proxy.SendServiceSoapClient" in Form Builder "JAVA CLASS iMPORTER"
    Can anyone plz help.....
    Wat may be the problem??
    Do I hav to follow the steps to create service as specified in demo page....or is it sufficient to download the jar file ??
    Or is there any other setting that I m missing???
    Thanx in advance....

    I created a new folder "WSclient" in "c:\ids10\forms"
    and added full path name in CLASSPATH......

  • Ctrl+Z fuctianlity is not working in oracle 10g Form

    Hi
    I am using oracle 10g form and using
    Edit_TextItem to invoke Text Editor
    When i using CTRL+Z to undo things in editor it is not working but it works when i used Form6i.
    Please help me to solve this issue. i need to this functinality to be work.
    BR,
    SPS

    This works for me in 10.2.0.2
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> select * from tab;
    TNAME                          TABTYPE            CLUSTERID
    LOAN_DETAIL                    TABLE
    PLAN_TABLE                     TABLE
    ...

  • Can not configure Oracle 10g form  on oracle 11g client

    Hi
    I need to install oracle 10g form in my system .
    Here is my system
    1. OS --XP
    2. 32 Bit
    4. Already oracle 11g release client installed ( I think that create the problem )
    I tried to install oracle 10g form , it installed but can cont configure net manager for it , Always it point to 11g client and hence I could not configure .
    Also I tried install Oracle Forms first then 11g client , But  I got same issue .
    I think if  I created multiplr home one for 11g client and other for forms , it may work out .
    Please  help me
    Debashis

    While deploying the example 'VacationRequest' in the oracle complete guide for 11g, i got an exception like this
    "12:08:15 PM] Deploying Application...
    [12:11:16 PM] [Deployer:149191]Operation 'deploy' on application 'VacationRequestTaskFlow' is initializing on 'soa_server1'
    [12:11:24 PM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application VacationRequestTaskFlow on soa_server1.: [Deployer:149145]Unable to contact 'bam_server1'. Deployment is deferred until 'bam_server1' becomes available.; nested exception is:
         java.rmi.UnknownHostException: Could not discover administration URL for server 'bam_server1'.
    [12:11:24 PM] [Deployer:149193]Operation 'deploy' on application 'VacationRequestTaskFlow' has failed on 'soa_server1'
    [12:11:24 PM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application VacationRequestTaskFlow on soa_server1.: Failed to load webapp: 'VacationRequestTaskFlow.war'.
    [12:11:24 PM] Weblogic Server Exception: weblogic.application.ModuleException: Failed to load webapp: 'VacationRequestTaskFlow.war'
    [12:11:24 PM] Caused by: java.lang.ClassNotFoundException: oracle.adf.library.webapp.ResourceServlet
    [12:11:24 PM] See server logs or server console for more details.
    [12:11:24 PM] weblogic.application.ModuleException: Failed to load webapp: 'VacationRequestTaskFlow.war'
    [12:11:24 PM] #### Deployment incomplete. ####
    [12:11:24 PM] Deployment Failed"
    Can anyone help in this.

  • 10G-form: How to do MULTIPLE WORD OR SINGLE WORD SEARCH at ITEM?

    I am using 10G DB + 10G Form Builder.
    I've 'database_item' where I am storing multiline text data.
    I want to do MULTIPLE WORD OR SINGLE WORD SEARCH at this item through FORM.
    I've tried by creating the following NON Database Items on the form:
    - multiline_search_text_item, and
    - multiline_result__text_item
    And then writing execute_query in KEY-NEXT-ITEM trigger.
    I've also tried using this in the POST-TEXT-ITEM at multiline_search_text_item:
    select table.database_item into :multiline_result__text_item from table where multiline_search_text_item = :multiline_search_text_item;
    Pl help me asap.
    Gaurav

    What you want to do is not clear.
    The query you wrote will select records where the table contains exactly what has been written in the search item. You can use LIKE and a wildcard search to find records which contain the search text:
    select table.database_item into :multiline_result__text_item
    from table
    where multiline_search_text_item LIKE '%'||:multiline_search_text_item||'%';
    You can use UPPER to make this case insensitive:
    select table.database_item into :multiline_result__text_item
    from table
    where Upper(multiline_search_text_item) LIKE Upper('%'||:multiline_search_text_item||'%');
    But I suspect you want either to match the individual words in the search text to individual words in the database multiline field, or find records where the search words appear (not necessarily as whole words). In that case, check out the following:
    -- set up a table (multiline and various whitespaces)
    DROP TABLE t;
    CREATE TABLE t AS
    SELECT
      ROWNUM rn,
      owner||Chr(9)||object_name||Chr(160)||subobject_name||'    '||object_id||' '||
      data_object_id||Chr(10)||object_type||' '||created||' '||last_ddl_time||' '||
      timestamp||' '||status||' '||temporary||' '||generated||' '||secondary AS col
    FROM all_objects;
    -- check the format of the multiline text item (col)
    SELECT * FROM t WHERE ROWNUM < 4;
    -- a type for the function below
    CREATE TYPE string_tab AS TABLE OF VARCHAR2(255);
    -- this function takes a string and cuts out each word, idetifying words
    -- as being separated by any whitespace.  it returns a collection
    CREATE OR REPLACE FUNCTION string_to_tab(
      p_string IN VARCHAR2) RETURN string_tab IS
      l_string LONG DEFAULT
        RTrim(regexp_replace(p_string,'[[:space:]]+',' ')) || ' ';
      l_data string_tab := string_tab();
      n NUMBER;
    BEGIN
      LOOP
        EXIT WHEN l_string IS NULL;
        n := InStr(l_string, ' ');
        l_data.extend;
        l_data(l_data.Count) := LTrim(RTrim(SubStr(l_string, 1, n - 1)));
        l_string := SubStr(l_string, n + 1);
      END LOOP;
      RETURN l_data;
    END string_to_tab;
    -- selecting from t where ANY of the words in the search text has
    -- a match in the multiline field (as a word or part of a word), so SYS
    -- matches to MDSYS and SYSTEM
    SELECT DISTINCT
      t.rn, t.col
    FROM
      t,
      (SELECT column_value
       FROM TABLE(CAST(string_to_tab('SYS   INDEX') AS string_tab))) x
    WHERE InStr(t.col,x.column_value) > 0;
    -- selecting from t where ALL of the words in the search text has
    -- a match in the multiline field (as a word or part of a word), so SYS
    -- matches to MDSYS and SYSTEM
    SELECT rn, col FROM(
    SELECT
      t.rn, t.col, cnt_x, Count(*) cnt
    FROM
      t,
      (SELECT column_value , Count(1) over(PARTITION BY 1)cnt_x
       FROM TABLE(CAST(string_to_tab('SYS   INDEX') AS string_tab))) x
    WHERE InStr(t.col,x.column_value) > 0
    GROUP BY t.rn, t.col, cnt_x
    WHERE cnt = cnt_x;
    -- selecting from t where ANY of the words in the search text
    -- match a word in the multiline field, so SYS matches only to SYS
    SELECT DISTINCT
      t.rn, t.col
    FROM
      t,
      (TABLE(CAST(string_to_tab(t.col) AS string_tab))) t2,
      (SELECT column_value
       FROM TABLE(CAST(string_to_tab('SYS   INDEX') AS string_tab))) x
    WHERE t2.column_value = x.column_value;
    -- selecting from t where ALL of the words in the search text
    -- match a word in the multiline field, so SYS matches only to SYS
    SELECT rn, col FROM(
    SELECT
      t.rn, t.col, cnt_x, Count(*) cnt
    FROM
      t,
      (TABLE(CAST(string_to_tab(t.col) AS string_tab))) t2,
      (SELECT column_value , Count(1) over(PARTITION BY 1)cnt_x
       FROM TABLE(CAST(string_to_tab('SYS   INDEX') AS string_tab))) x
    WHERE t2.column_value = x.column_value
    GROUP BY t.rn, t.col, cnt_x
    WHERE cnt = cnt_x;For your application you would replace 'SYS INDEX' with a variable (the search field). You can use upper() and wildcards for case insensitive & 'fuzzy' searches. You might need to modify the function so it removes other delimiters such as commas and colons.

Maybe you are looking for

  • In PO - Delivery address usages

    Hi, In ME22n, item column having a tab as Delviery address, here we are able to change the vendor / customer  name... what's usage of this tab??? and MEAN tcode is used for what purpose??

  • Adobe 5.0 vs Vista - ARGH!

    Hello, all, I'm hoping someone will be able to help me. I've got Adobe Acrobat 5.0 (full version) installed on my laptop which is running Vista. I can view documents, but not convert files to PDF. I've read a few forums that have told me to upgrade,

  • Thinkpad T440s freezes with 2nd monitor via dock

    Hi there - I have a strange problem with my Thinkpad T440s: Connecting a 2nd monitor directly (VGA) works like a charm, however putting the Thinkpad into the docking station (with the 2nd monitor connected to the dock) freezes the system. Without the

  • Another iBook question

    OK, I am in the process of getting ahold of a white 500mhz G3 iBook. Does anyone know.. will the power adapter from a 300mhz clamshell work with the 500mhz white model? Are they interchangeable? On the back of the charger his is the information it li

  • ITunes 9 download - invalid digital signature error with Windows 7 Ultimate

    Since I have upgraded to Windows 7 Ultimate when I try and download the latest version of iTunes 9 I get Invalid Digital Signature error message. I've tried downloading with IE8, Opera and Firefox. Help please!!