Wwv_searchdb API in 10g release2

Anyone have wwv_searchdb api working in Portal 10g release2? I written a plsql call to wwv_searchdb.search but nothing is returned.
I need to make it work as none of the search portlets fit the bill. I only want to search for a simple string for now. Any help will be appreciated.
Thanks,
Donald.
Here's the code:
CREATE OR REPLACE procedure testsearch
(p_search_string in varchar2
) is
l_searchid number ;
l_result wwv_searchdb.g_search_arr ;
l_count wwsbr_type.array ;
l_search_parsed varchar2 (32767) ;
l_page_groups wwsbr_site_array ;
l_logid number ;
l_resulttype varchar2 (32767);
l_perspectives wwsrc_att_value_set ;
begin
wwctx_api.set_context
(p_user_name => 'portal'
,p_password => 'xxx'
,p_company => null
wwctx_api_private.set_context
(p_user_name => 'portal'
,p_password => 'xxx'
,p_update_flat => false
l_page_groups := wwsbr_site_array (60, 61, 81) ;
l_perspectives :=
wwsrc_att_value_set.new_attribute_set
(p_ids_array => wwsrc_id_value_varray ()
,p_operator => wwsbr_search_constants.match_any
,p_ids_checkbox => wwsbr_search_constants.false_option
wwv_searchdb.search
(p_mainoperator => wwsbr_search_constants.contains_all
,p_mainsearch => p_search_string
,p_return_type => wwsbr_search_constants.items
,p_page_groups => l_page_groups
,p_perspectives => l_perspectives
,p_language => 'frc'
,p_action => wwsbr_search_constants.new_search
,p_direction => null
,p_type => wwsbr_search_constants.simple
,p_firsthit => 1
,p_lasthit => 100
,p_rows => 5000
,o_results => l_result
,o_count => l_count
,o_searchid => l_searchid
,o_searchstring => l_search_parsed
,o_logid => l_logid
,o_resulttype => l_resulttype
dbms_output.put_line ('Number of hits: ' || to_char (l_result.count)) ;
dbms_output.put_line ('l_searchout: ' || l_search_parsed) ;
dbms_output.put_line ('l_resulttype: ' || l_resulttype) ;
dbms_output.put_line ('l_logid: ' || to_char (l_logid)) ;
end;

Is wwv_searchdb part of the API? I can't see it in
http://www.oracle.com/technology/products/ias/portal/html/plsqldoc/pldoc1014/summary.html
Have you tried using wwsrc_api.page_search?
(For the p_mainoperator parameter you will need to use the constants in wwsbr_search_constants as the constants MATCH_ANY, MATCH_ALL in wwsrc_api are incorrect.)
Also, user wwv_context.sync; to synchronize the Text tables if the portal content has changed significantly.
Chris

Similar Messages

  • Windows Server 2008 Service pack 2 - Oracle 10g release2 (10.0.4.0)

    I got a question about the installation of oracle 10g release2.
    Is there any issues installing oracle 10g release2 on a windows server 2008 with Service pack 2?
    here the release
    http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10204_winx64_vista_win2k8.html
    I checked quick start installation guide and I still don't know
    please help
    Thanks

    Pl see if MOS Doc 740926.1 (Where can I find the Database / Client software to download for Microsoft Vista, or Windows 2008R1?) can help
    HTH
    Srini

  • Cannot run reports (10g release2)

    hi,
    i have installed dev suite 9i and 10g release2
    when i try to run some report with url: http://localhost:8889/reports/rwservlet?report=c:\report_name.RDF&userid=usr/pass@orcl&defromat=cache&destype=pdf
    it returns this: REP-51002: Bind to Reports Server rserver_tedi failed
    i've read all topics but i could to resolve that problem. i changed rwservlet.properties -> SERVER_IN_PROCESS=YES into NO and back, i allowed traces in rserver_tedi.conf <trace traceOpts="trace_all"/>
    may i change something into registry?
    thanks

    Sure have checked, but if could be help you
    I dont' see your report server in URL, and have you runned test report
    http://localhost:8889/reports/rwservlet?report=test.rdf&destype=cache&desformat=htmlcss&userid=scott/tiger@databasename
    Hope helps
    Regards

  • Oracle 10G release2 documentation download not complete?

    When i download the 10G release2 documentation zipfile and extract that zipfile, some portal links - installation - does not work :F:\Oradocs\10G_release2\nav\portal_11.htm does not exists. At otn it normally works. Is the zipfile not complete?

    this is the status of lsnrctl
    C:\>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 10.2.0.3.0 -
    Production on 23-MAR-2008 13:36
    :04
    Copyright (c) 1991, 2006, Oracle. All rights
    reserved.
    Connecting to
    (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    32-bit Windows Error: 2: No such file or directory
    nnecting to
    (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.5)
    (PORT=1521))
    TNS-12535: TNS:operation timed out
    TNS-12560: TNS:protocol adapter error
    TNS-00505: Operation timed out
    32-bit Windows Error: 60: Unknown error
    i tried reconfiguring listener. but its giving me
    ora-12170 error. what to do ?Your problems is the Windows Error: 60: .... a Microsoft problem (probably spelled 'V i s t a').
    According to one list I have, that translates to "Error 60 The remote adapter is not compatible.". And that possibly means that your Service. Pack install probably reset the firewall and reset all the Defender settings you had to neutralize to make this work in the first place.
    So ... go back to your Control Panel and figure out every setting that could possibly affect the network. Turn them ALL to 'play nice' (aka off). Record them as you turn 'em off. Get the listener working. TUrn 'em on one at a time until it breaks. Let us now the results.
    And ... which bleeping Vista. Vista is NOT an operating system , but a family of them. Not surprisingly, there are differences among the members of the family. Not surprisingly some of those differences screw Oracle in some editions.

  • Can we generate code for Oracle 10g Release2

    hi,
    We have ODM Java Code Generator for model build using Oracle 10g Release1. Do we have ODM Code genrator for model build on Oracle10g Release2 using Oracle Data Miner 10.2. What version of JDeveloper will be required.

    Hi,
    We will be releasing a code generator in the early Summer.
    Instead of Java though, we will be generating PL/SQL packages.
    You will still be able to invoke the package via JDBC so it does not exclude Java integration.
    You will be able to generate the code from either JDeveloper (current release), SQLDeveloper or ODMr.
    More info on this as we get closer to our release.
    Thanks, Mark

  • How to set timeout when BPEL Invokes EBS API in 10G

    I am invoking a EBS API through Oracle Applications Adapter in my BPEL, During the execution of my BPEL Process, if my EBS API call takes more than 10s, i want it to timeout. Can you please let me know how can i achieve it. I tried using the <property name="timeout">10</property> <property name="optSoapShortcut">false</property> in the partnerlink defintion, but it didnt help.

    Thanks Arik and vijay for your response,
    syncMaxWaitTime needs to be set at the domain level, then it would timeout all the services that are deployed on my environment. Property transaction-timeout and syncMaxWaitTime will not resolve the issue, because i need to achieve the timeout for a particular service only (Sorry, I should have mentioned in the problem statement that i need to implement the timeout for a specific service).
    I tried the PartnerLink timeout property along with optSoapShortcut but timeout is not happening.
    If you could provide me any other alternative solutions that would help me to timeout the call to EBS using a Oracle Applications Adapter in BPEL 10g Invoke activity.
    Wish you a belated Happy Christmas and advanced New Year wishes.
    Regards,
    Sivananda
    Edited by: 978071 on Dec 26, 2012 2:43 AM
    Edited by: 978071 on Dec 26, 2012 2:44 AM

  • Error while download oracle 10g release2 for linux x-86

    Hi,
    I got errors while downloading oracle 10g r2 for linux x-86 from
    http://www.oracle.com/technology/software/products/database/index.html
    i got htis error:
    source file not found
    contact administrator.
    how do i download?

    Works for me in western Canada right now.
    You might want to try again, and if it still happens try clearing your browser cache and cookies.

  • How to get Process Task Retry Count using API (OIM 10g)

    Hi ,
    I want to get all the process task which are failed after retried 5 times.
    For e.g Create user task in AD retried for 5 times but still it is in failed state. I want to get all such process task.
    I am stuck at point how to get process task retry count from process definition?
    Thanks

    You can reference the code in the "Task Timed Retry" scheduled task to get what you are looking for. Here is the decompiled code:
    >
    package com.thortech.xl.schedule.tasks;
    import Thor.API.Operations.tcScheduleTaskOperationsIntf;
    import com.thortech.util.logging.Logger;
    import com.thortech.xl.dataaccess.tcDataSetException;
    import com.thortech.xl.dataobj.tcDataSet;
    import com.thortech.xl.scheduler.tasks.SchedulerBaseTask;
    import com.thortech.xl.util.logging.LoggerMessages;
    import java.sql.Date;
    import java.util.Hashtable;
    public class tcTskTimedRetry extends SchedulerBaseTask
    private static Logger logger = Logger.getLogger("Xellerate.Scheduler.Task");
    Date isCurrentDate;
    public void init()
    logger.debug(LoggerMessages.getMessage("EnteredMethodDebug", "tcTskTimedRetry/init"));
    this.isCurrentDate = new Date(System.currentTimeMillis());
    logger.debug(LoggerMessages.getMessage("LeftMethodDebug", "tcTskTimedRetry/init"));
    public void execute()
    logger.debug(LoggerMessages.getMessage("EnteredMethodDebug", "tcTskTimedRetry/execute"));
    tcDataSet localtcDataSet1 = new tcDataSet();
    tcDataSet localtcDataSet2 = new tcDataSet();
    tcDataSet localtcDataSet3 = new tcDataSet();
    try
    if (isStopped())
    return;
    localtcDataSet2.setQuery(getDataBase(), "select osi_retry_on from osi where 1=2");
    localtcDataSet2.executeQuery();
    if (isStopped())
    return;
    localtcDataSet2.setDate("osi_retry_on", this.isCurrentDate);
    localtcDataSet1.setQuery(getDataBase(), "select osi.sch_key, osi.mil_key, osi.orc_key, osi.osi_rowver, sch.sch_rowver, osi.osi_retry_for, osi.osi_retry_on, osi.osi_retry_counter, sch.sch_note from osi osi,sch sch where osi.osi_retry_on <=" + localtcDataSet2.getSqlText("osi_retry_on") + " and osi.sch_key = sch.sch_key" + " and sch.sch_status='R'" + " and osi_retry_counter>0 order by osi.sch_key");
    localtcDataSet1.executeQuery();
    if (isStopped())
    return;
    int i = localtcDataSet1.getRowCount();
    logger.debug("tcTskTimedRetry:execute:Number of Process tasks retrieved is=" + i);
    tcScheduleTaskOperationsIntf localtcScheduleTaskOperationsIntf = (tcScheduleTaskOperationsIntf)getUtility("Thor.API.Operations.tcScheduleTaskOperationsIntf");
    tcDataSet localtcDataSet4 = new tcDataSet();
    localtcDataSet4.setQuery(getDataBase(), "select osi_retry_for, osi_retry_counter from osi where 1=2");
    localtcDataSet4.executeQuery();
    Hashtable localHashtable = new Hashtable();
    if (isStopped())
    return;
    for (int j = 0; j < i; j++)
    if (isStopped())
    return;
    localtcDataSet1.goToRow(j);
    localtcDataSet3.setQuery(getDataBase(), "select count(*) as counter from osi osi,sch sch where osi.sch_key = sch.sch_key and osi_retry_for=" + localtcDataSet1.getLong("sch_key"));
    localtcDataSet3.executeQuery();
    if (isStopped())
    return;
    if (localtcDataSet3.getInt("counter") > 0)
    continue;
    localHashtable.put("osi_retry_for", String.valueOf(localtcDataSet1.getLong("sch_key")));
    localHashtable.put("sch_note", localtcDataSet1.getString("sch_note"));
    long l = localtcDataSet1.getLong("osi_retry_counter");
    if (isStopped())
    return;
    try
    localtcScheduleTaskOperationsIntf.createScheduleItem(localtcDataSet1.getString("orc_key"), localtcDataSet1.getString("mil_key"), localHashtable, l - 1L);
    catch (Exception localException2)
    logger.error(LoggerMessages.getMessage("ErrorMethodDebug", "tcTskTimedRetry/execute", localException2.getMessage()), localException2);
    catch (tcDataSetException localtcDataSetException)
    logger.error(LoggerMessages.getMessage("ErrorMethodDebug", "tcTskTimedRetry/execute", localtcDataSetException.getMessage()), localtcDataSetException);
    logger.debug("PJ:tcTskTimedRetry:execute:DataSetexception has occured");
    catch (Exception localException1)
    logger.error(LoggerMessages.getMessage("ErrorMethodDebug", "tcTskTimedRetry/execute", localException1.getMessage()), localException1);
    logger.debug(LoggerMessages.getMessage("LeftMethodDebug", "tcTskTimedRetry/execute"));
    public boolean stop()
    logger.debug("tcTskTimedRetry:stop:Task being stopped");
    return true;
    >
    -Kevin

  • Images problem in Reports 10g Release2(10.1.2.0.2)...

    Hi,
    We are migrating all of our reports from Reports 9.0.4.0.21 to 10.1.2.0.2.
    We found lot of issues with Release 2. One major issue is: Images are not
    showing up on the web in 10.1.2.0.2 (which were displaying fine in 9.0.4.0.21)
    But when we increase the size of that image, it is displaying image .
    Does anybody has same problem??
    Please advise if anyone resolved this issue.
    Thanks somuch!!!!!
    Ram.

    You might want to refer Note:358550.1 on MetaLink and see if that's the issue.
    Thanks
    Shail

  • 10g Release2 for Linux available

    http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10201linuxsoft.html

    Did someone find the Oracle documentation relatedto 10gR2 ?
    http://www.oracle.com/technology/documentation/databas
    10gr2.htmlTrue... Though, if you use the "download the whole library" option, and unpack the zip, the homepage for the library is somewhat crippled. No Tabs, no search, just plain links to documents with cryptic names. Wasn't so in R1...

  • Does 10g have a API for grid based development ?

    Hi,
    Does 10g provide any API for developers to interface with the GRID job submission,resource management services? There is a GRID DK for 9i that provides a way to interface GLOBUS with oracle job schedulers etc. wanted to know whether there is such an API for 10g also ( or is it compatible)? . Also does it only allow globus based interfacing?
    thanks in advance.

    Hi,
    I looked at the view v$option but there was not record fro grid related entry.But I selected enterprise option when I installed 10g.But I didnt install the enterprise manager /management agent software which is bundeled separately. Do I have to install those also inoder to get he grid development kit installed.? please advice. (Also when I installed 10g , since there was no management agent found, I selected the "database control for database management" under database management processes screen in OUI.Is it a issue?
    thanks in advance!

  • Will 10g release 2 core features suffice?

    Hi all,
    Could you please let me know the core features available with OWB10g R2.
    As we get OWB10g R2 along with the 10g Database free of Cost,I would like to know whether
    SCD-1,2,3
    Process flows
    Scheduling
    options are part of this OWB1og R2(core version).
    Additionally,Do we require oracle workflow for the process flow creation
    Thanks
    Srid

    Hi,
    I have gone through the link and the section as below is creating confusion.
    "What features are part of the ETL Core Features?
    The aim of the ETL Core features is to provide core bulk ETL functionality as part of the database license. Common and repetitive tasks can be fully automated using public APIs and scripting macros extensions. These features will allow Oracle database customers to quickly and easily load data into an Oracle database. It contains all the existing 10g Release 1 functionality as well as "Experts"."
    As it says the 10g release2 (core) has all the features of 10g release 1
    Does that mean 10grel2(core ) has the SCD 1,SCD2,SCD3,Processflow,scheduling?
    Thanks
    Sridha

  • Where to find number of concurrent users in 10g OEM

    I have recelntly installed an instance in oracle 10g release2 rdbms.Is this possible to find the number of concurrent users in OEM.If yes please show me the steps.

    The number of concurrent users can be limited by the SESSION initialization parameter.
    But it can also be limited by insufficient or misused resources. It is possible to set the system to permit 30,000 concurrent users (per your post in the Installattion forum) and go into heavy swapping or paging, causing the system to not accept the required number of users.
    A lot depends on the real load characteristics you expect - you may want to consider shared server or RAC configuration for certain load types.
    My instinct is to have very careful planning sessions, with several experienced Oracle DBAs and developers, around the instance configuration.

  • Logon built-in freeze in 10g release 2

    Hi,
    When I make a new logon in the when-new-form-instance trigger on Oracle 10g release2, my application froze.
    When I started my application like this: R090101.fmx&userid=test/test@test
    the connection was made and just after that I make a logon like this : logon('user','pwd@cnt', false) in the when-new-form-instance trigger and it didn't work, the application froze.
    This did not happened on Oracle 10g 9.0.4.
    Can anybody help me?
    Thanks a lot.
    Message was edited by:
    laflsam

    try this:
    ON-LOGON - trigger :
    NULL;

  • Developer 10G installation on vista HP (32 bit),help plz!

    hi!
    ok, i installed database 10G release2 & then tried to install developer 10g (10.1.2.0.3). after checking the requirements in DOS type mode, i received this error:
    "invalid staging area. there are no top level components for windows NT. windows 2000available for installation in this staging area."
    am i missing something really need consideration or sometthing else. please guide me how to install that on vista operating system (32 bit).
    thanks.
    sohail.

    See the thread at Re: Forms 10g installed and running on Windows Vista

Maybe you are looking for

  • Transaction approach

    for transaction what is the recommended approach? Container-Managed or Bean-Managed? In my case I dont have any Entity beans. What about JTA? Thanks

  • New 30Gb Just shows white screen

    I purchased a 30GB on Ebay (yes, I know, bad move) and when I got it and plugged it in, it only shows a white screen, and won't do anything else. Tried to reset, no go. Is there anything else I can do before I return this to the guy I bought it from?

  • Can't download apps on ipad

    I'm trying to download apps on to my IPAD 2. I press the install button and it appears to download but it never does.  Help!  I've already updated the software to 6.0.1 and restarted the ipad as well as pressed the "update all" button for my apps.

  • Install Oracle8.1.7 on Red Hat Linux 9

    I tried to install Oracle8.1.7 on Red Hat Linux 9 and got error message: Unable to initialize threads: cannot find class java/lang/Thread Could not create Java VM My env variables: THREAD_FLAG=native LANG=en_US.UTF-8 CLASSPATH=/usr/local/jre/lib/rt.j

  • No sound on my hp beats envy 15!

    My hp beats envy 15 has no sound coming out of it! I try playing something and I can tell it's playing back back because the little sound bars are moving up and down,but nothing coming out! What's going on hp? Please help!