Force indexation after wwsbr_api.set_attribute

Hi,
I work on portal 10gr3.
I use wwsbr_api.set_attribute to set custom attribute value. I do this for several language. After each set_attribute, I call the invalidate cache and commit changes.
I expect that re-indexation job will take into account changes but this is not done. If I apply the changes manually through the web interface, these are taken into account.
Is there a way to call explicitly the re-indexation or to specify that item impacted by changes must be taken into account for the next re-indexation process ?
All help is welcome.
Thank you eddy.

Srinath,
I talk about custom attribute I create on portal 10gr3.
These attributes are defined on table wwsbr_attributes inside portal DB schema. Attribute value for an item is stored on wwv_thingattributes.
In my case, when I use the api wwsbr_api.set_attribute to seta a value for a particular attribute/item, this change is not take into account when indexes are updated. When I use the web interface, the change is take into account.
I've a lot of change to do and this is one-shoot.
Regards, Eddy.

Similar Messages

  • Oracle Hint on Table MKPF and MSEG : force index MSEG~M to be utilize

    Hi Experts, I'm quite new to ABAP performance tuning, I try to put details as much as I can in my question below, just to have a quick overview of my problem below, I want to use/force in my SQL below to force the utilization of index MSEG~M.
    added an Oracle Hint forcing index MSEG~M
      SELECT MATNR BWART MENGE
      FROM   MKPF
      INNER JOIN MSEG
         ON MKPFMANDT EQ MSEGMANDT
        AND MKPFMBLNR EQ MSEGMBLNR
        AND MKPFMJAHR EQ MSEGMJAHR
       INTO CORRESPONDING FIELDS OF TABLE T_MSEG2
      WHERE MKPF~BUDAT IN S_GSTRP    "(index bud should be used)
       AND  MSEG~MJAHR IN R_DOCYEAR
       AND  BWART IN ('931', '932',
                      '901', '902',
                      '701', '702',
                      '703', '704',
                      '707', '708',
                      '711', '712',
                      '713', '714',
                      '715', '716',
                      '717', '718',
                      '551', '552',
                      '553', '554',
                      '555', '556') "ZZCHK: Constants Not Applicable
             AND  MATNR IN R_MATNR3
             AND  MATNR IN R_COMPNTS
             AND  WERKS EQ P_WERKS
      %_hints oracle u2018INDEX(u201CMKPFu201D u201CMSEG~Mu201D)u2019.
    Note: I'm assuming that you'll take not some comments on further enhancement:
    - " INTO CORRESPONDING FIELDS "
    - use of field symbols
    - I didn't modify it yet since my focus if for MSEG~M
    - cannot make material number as mandatory field
    Objective: Force to use index MSEG~M
    Problem:
    After adding the Oracle Hint, I did the analysis in ST05 and it seems like index M is still not being forcefully
    utilize instead MSEG~0 is being used.
    I replaced the Oracle Hint with:
      %_hints oracle u2018INDEX(u201CT_01u201D u201CMSEG~Mu201D)u2019.
    In ST05, I can get see that index MSEG~M is now being utilize BUT worst thing happened after applying this, the program timed out.
    I already take a look on the following Notes: 129385, 130480, 772497, 162034, 818321 but nothing seems to be helpful in my problem.
    Questions:
    1.  In syntax %_hints oracle u2018INDEX(u201CT_01u201D u201CMSEG~Mu201D)u2019. T_01 stands for MKPF right which is the first table, do you what's the reason for the program time out after adding this Oracle Hint?  Is this the proper syntax?
    2.  How can I force in my code to use index MSEG~M without any program timeout?
    For the whole source code of my question above, please see the link:
    http://rapidshare.com/files/211740852/ZDXX0028.txt.html

    Hi Thomas, thanks with the prompt reply (even if it's Saturday )
    Yes, MKPF~BUD is being used.
    The budat selection is narrowed to 28 days though users can input any date range, a warning message will just be displayed if budat selection exceeded.
    Yes, optimizer usually chooses the right index; I'm not in as the same experience as you are though, but I find it interesting that after I added the Oracle hints (several combination) the performance of the program was optimize up to 40% to 50%.
    I uploaded a detailed SQL trace and the ABAP change done in my program, if you'll notice in the summary of the changes, after adding some hints, the duration of the program was improved..
    (SQL Trace Summary of my program) this worth taking a look
    http://rapidshare.com/files/211870091/ZD28_SQL_Trace.zip.html
    I made a custom index in MSEG, but unfortunately I doubt that it will be approve by our performance capacity team.  But I somehow have a hunch that this will further optimize the program.
    MSEG~Z03
    MANDT     Client
    WERKS     Plant
    BWART     Movement Type (Inventory Management)
    LGORT     Storage Location
    What do you think Thomas and SAP experts?
    **Sorry for pasting the whole ST05 result
         SELECT STATEMENT          ( Estimated Costs = 131.250 , Estimated #Rows = 450 )
                        6          FILTER
                        Filter Predicates
                        5          NESTED LOOPS
                        ( Estim. Costs = 131.249 , Estim. #Rows = 450 )
              Estim. CPU-Costs = 1.885.249.948 Estim. IO-Costs = 129.700
                        2          TABLE ACCESS BY INDEX ROWID          MKPF
                        ( Estim. Costs = 14.442 , Estim. #Rows = 288.570 )
                   Estim. CPU-Costs = 206.401.140 Estim. IO-Costs = 14.272
                   1          INDEX RANGE SCAN          MKPF~BUD
                        ( Estim. Costs = 655 , Estim. #Rows = 519.426 )
              Search Columns: 2
              Estim. CPU-Costs = 30.640.783 Estim. IO-Costs = 630
              Access Predicates          Filter Predicates
                        4          TABLE ACCESS BY INDEX ROWID          MSEG
                        Estim. CPU-Costs = 5.818 Estim. IO-Costs = 0
              Filter Predicates
              3          INDEX RANGE SCAN          MSEG~0
                   Search Columns: 3     
         Estim. CPU-Costs = 1.564 Estim. IO-Costs = 0
         Access Predicates          Filter Predicates

  • Rebuilding indexes after importing...

    My coworker and I are discussing whether it is necessary, or advised, to rebuild indexes after an import of the schema.
    My thinking is that the index data is put into fresh blocks thereby creating a very flat index tree without any fragmentation.
    But my coworker suspects that perhaps the blocks are built exactly as they existed in the source database.
    I could understand, perhaps, if the refresh were done by using RMAN which copies block by block, but even then I'm not sure.
    Can you help us understand this please?
    Thanks.
    Ed

    Hi,
    Normally, the indexes are build and statistics upfated after the import automatically. You do not ned to generate the statistics after the import until unless you are running very old version of database.
    Regards
    [sfa-dev1:oracle:10.2.0] $ imp help=Y
    Import: Release 10.2.0.4.0 - Production on Fri Nov 13 11:49:56 2009
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    You can let Import prompt you for parameters by entering the IMP
    command followed by your username/password:
    Example: IMP SCOTT/TIGER
    Or, you can control how Import runs by entering the IMP command followed
    by various arguments. To specify parameters, you use keywords:
    Format: IMP KEYWORD=value or KEYWORD=(value1,value2,...,valueN)
    Example: IMP SCOTT/TIGER IGNORE=Y TABLES=(EMP,DEPT) FULL=N
    or TABLES=(T1:P1,T1:P2), if T1 is partitioned table
    USERID must be the first parameter on the command line.
    Keyword Description (Default) Keyword Description (Default)
    USERID username/password FULL import entire file (N)
    BUFFER size of data buffer FROMUSER list of owner usernames
    FILE input files (EXPDAT.DMP) TOUSER list of usernames
    SHOW just list file contents (N) TABLES list of table names
    IGNORE ignore create errors (N) RECORDLENGTH length of IO record
    GRANTS import grants (Y) INCTYPE incremental import type
    INDEXES import indexes (Y) COMMIT commit array insert (N)
    ROWS import data rows (Y) PARFILE parameter filename
    LOG log file of screen output CONSTRAINTS import constraints (Y)
    DESTROY overwrite tablespace data file (N)
    INDEXFILE write table/index info to specified file
    SKIP_UNUSABLE_INDEXES skip maintenance of unusable indexes (N)
    FEEDBACK display progress every x rows(0)
    TOID_NOVALIDATE skip validation of specified type ids
    FILESIZE maximum size of each dump file
    STATISTICS             import precomputed statistics (always) On 10gR2
    Edited by: skvaish1 on Nov 13, 2009 11:50 AM

  • Missing indexes after system copy

    Hi All
    we have around 70,000 missing indexes after the system copy
    offline export from
    source with sun solaris oracle
    To 
    Linux oracle
    but these appeared after we Run  SGEN , which took 60 hours for a 200 Gb database.
    and target system response is also slow , how to go ahead with this issue
    we have checked export and import logs , none of the packages were missed
    1 Why these missing indexes after SGEN , and why SGEN for 60 hours
    2  when we check the Tables which appeared in Missing indexes ,from SE14  it says In Consistency with Data dictionary
    3  and the other error , is  Index Missing in the database ,
    4  but we cant create all these manually.
    Regards

    Hi Matt
    Thanks for the response
    After sap suggestion  , we have done only import again, with 721 R3load same as export.
    but still the R3load.exe.log of import shows as done with 720 kernel.
    import R3load.exe log       //bas/720_REL/src/R3ld/R3load/R3ldmain.c#
    export R3load.exe log     //bas/721_REL/src/R3ld/R3load/R3ldmain.c#10 $ SAP
    But when we compare  the sapinst_dev and AGR logs both from export and import
    both are referring the same 721 R3load version ,
    //bas/721_REL/src/R3ld/R3load/R3ldmain.c
    still we have same missing indexes issue , after we did the import again.
    Are we making any mistakes in export  , Any suggestions are welcome
    hi all , kindly respond with your inputs , on this
    Regards

  • Trouble with CHM Search & Index after Importing Word Document

    Greetings,
    I have recently inherited all things RoboHelp at work, but the last person to work with our projects left 6 months ago.  I received a brief overview of how our CHM files were generated from the same word document in RH HTML 7. 
    Currently, I am using RoboHelp HTML 9, but am having trouble with the Index and Search functionality from an imported Word 2003 (.doc) file.  During my import, only a single topic is created and named after the source document.  I believe this may be the root of my problems, but haven't had much luck with a solution. 
    I have stumbled my way through setting after setting, but feel I am missing something obvious.  Any help would be appreciated.
    Thanks,
    Ken
    Background:
    Our source documents have a working TOC and Heading 1-3 structure.  When creating a new project and importing the document, the TOC is imported correctly.  The TOC navigations links seem to function correctly. 
    I have used the Smart Index Wizard to find new keywords from topic titles and topic text.  Unfortunately it seems the import only creates a single topic named after the source word document and therefore associates all keywords with the single topic.  when trying to navigate the index after the CHM is generated, all links simply reference the beginning of the document.
    When using the search feature in the CHM, only a single result is returned for any search words.  This result is always the single topic as described above.  The results link always returns you to the start of the document but does highlight the keyword throughout the document.

    When you import there is an Advanced button in one of the dialogs. Click that and you will be able to Paginate against chosen styles. That will break your document into topics.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Spotlight indexing after each new search

    I'm using Spotlight to launch apps, that's the fastest way for me. However, Snow Leopard's version of Spotlight doesn't stop indexing after I selected needed item from the list and the search box is closed.
    Example: to launch World of Warcraft I open search menu and type "wor" at which point Spotlight conveniently selects application for me in the list. I hit enter and the program is launched. Meanwhile *Spotlight is still searching* for every file that might contain "wor" character sequence, despite the closed search menu. Hard drive thrashing and painfully slow load times telling me as much. If I open search bar at that moment I can see "wor" I typed along with results list, which is still being needlessly populated. And it will be for a looong time.
    The only way to stop the search is to clear the search field and then close Spotlight menu. I believe people on forums reporting Spotlight never finishes indexing might be having the same issue.
    Is there a way to automatically clear search string when selecting a search result?

    I disagree, I think it was specially designed to quickly launch apps.
    By default, the first category that appears in search results in the menu is applications. In Tiger the default highlighted item was "Show All", and if I wanted to run the application that was located I had to press down key to highlight it and then press enter. In Leopard highlighting changed switched to the application itself, so all that is needed is to press a keyboard shortcut to open spotlight, type 3-4 letters from the application name and press enter. This takes about 2-3 seconds. It works the same way on SL of course, only this time it looks like spotlight is trying to re-index everything when there's something typed in. I wonder if something wrong with my system. Don't have another SL machine to compare.

  • Client machine force reboot after apply window patch updated

    I found all of client machines will force reboot after window patching updated via SCCM 2012. Have any options in SCCM 2012 can let users to choose reboot their machine after patching ? likely WSUS, users can suspend the reboot request. Pls advice.

    The notification will happen automatically if ConfigMgr installs updates that require a reboot but a reboot is not initiated so there's nothing additional you need to do.
    Note however that allowing users to choose this instead of forcing it is generally bad practice because the updates aren't truly installed until the reboot happens and there have been a couple of updates of the years that cause flakiness until the system
    is rebooted also.
    Why not allow the users to install the updates when they want up until a deadline and then force the reboot at the deadline (if one hasn't already been performed)? This gives the user the control over the process but also forces it to happen if the user
    neglects performing it.
    Jason | http://blog.configmgrftw.com

  • I have a macbook pro 1.5 years old ver10.7.5 and now having a problem with having to manually force quit after a hour or so of use to clear up memory(unit slows down) should I up grade iso if so to what

    I have a macbook pro 1.5 years old ver10.7.5 and now having a problem with having to manually force quit after a hour or so of use to clear up memory(unit slows down) should I up grade iso if so to what and what is the correct procedure?  Rick

    To determine if it is, boot into Safe Mode and see what happens. http://support.apple.com/kb/HT1455
    In the Activity Monitor, what are the Page Outs and Page Ins?

  • Every single app including iTunes, safari forces close after ten minutes of activity? I have closed all apps with minus button and still closes

    Every app on my iPad force closes including safari, and iTunes, it seems ir forces close after fifteen minutes of opening the app or iPad apps. I have tried using the double click start button to close all running apps but it still force closes and I've noticed that when I reopen an app after it foreclosed I will get a black screen and will have to close open and close and open in order to get any app running again. I know you can't get a virus but I am wondering. I am hoping I won't have to reset and lose everything I have. My memory is too low for backup. But if I have to reset can someone tell me what the reset does and if backup would restore on the reset. Ive tried everything clearing cashe cookies, history. Please help this is very frustrating especially when your in the middle of writing a paper and it force closes on me. I have never hooked it to a pc so not sure i would get a virus and I haven't used iCloud. If you have any suggestions can you tell me exactly what I need to do to fix this. I don't have the money to call apple support, I am a nursing student. Thanks, Abby

    Hold Home and Sleep button and check if the problem keeps

  • Query not using index after delete?

    In 10 million table, i have purge a 5 millions and done table re-org, rebuilt of index and gather stats 100% including indexes.
    Query which is doing index scans eariler, now after purge explain plan has changed and its performing full table scan. Any idea, why behaviour has changed?
    its vendor based code can't change the query, any way to get back to index scan?

    Paulie wrote:
    Jonathan Lewis wrote:
    >
    I'm sure that Jonathan Lewis would not phrase it exactly like that, but in a nutshell, that's probably your answer.
    I certainly wouldn't phrase it like thatOf course not - I was merely poking fun at my rather simplistic and colloquial explanation - I certainly meant no
    offence.
    None taken (although perhaps I didn't make that clear enough -- I took your comment as tongue in cheek, anyway)
    >
    - and there definitely ISN'T a rule of thumb regarding proportion of data - Is it a common myth? I'm pretty sure that I have read about this "rule of thumb" to which I referred? I'll certainly
    take that on board in future.
    It is a very common myth - and one which various people have tried to dispel for years; unfortunately it gets resurrected fairly regularly by people who don't know any better. Critically, the choice of index is dictated by a combination of two factors, and mentioning one without the other is very misleading - the quantity of the data acquired and the scattering of the data. On top of that you have to remember that there are two "models" to consider - Oracle's estimate of quantity and scatter, and the actual quantity and scatter.
    >
    but the picture you're trying to invoke is probably the correct concept. We can safely assume that the
    re-organisation of the table has made it cheaper to use a brute-force method on the table (i.e. tablescan),
    and we can assume that he hasn't done anything to reduce the cost of the indexed access path in a
    similar way (and he may even have made it more expensive.) Well, that's a relief - I at least appear to be grasping the rudiments of the topic, in no small measure thanks
    to your chef d'oeuvre, Cost Based Oracle.
    Thanks
    Jonathan Lewis

  • Spotlight starts indexing after every restart and there is a scrolling delay with both mouse and track pad.

    I had to restart my MBP three time, two after it crashed. Every time Spotlight starts to index the content on my Mac
    which takes two hour. Then there is a delay when I start scrolling, both with the mouse and with the track pad.
    I also notised that after changing the icons with Candybar they still appear unchanged in Launchpad, which makes
    it confusing. Launchpad isn't consitent when putting the apps in aphabetic order, but jumble up some of the apps.
    i don't get back the wab sites after restart as i was to believe I would.
    As Jobs sez; And more thing.
    Well one more might OK, there are more bugs then that, but I to tired to tell them all.
    I have never found so many bug in such a short time (only in two hours with Lion now) with any other OS and I have worked with Macs since -91.
    God help us.

    Hi, me again, more data.
    I have found that some plugins are accessing the internet without my permission.
    And when I went into the plug in menu via the addons options through the Tool Menu option, I found the plug ins there.
    BUT I never installed those plugins, and now they are there and they are accessing the Internet. Here are two images to show the plug ins disabled and yet another image showing them still accessing the Internet even when disabled.
    I then removed them from the system (I did back them up first, just in case).

  • Spotlight still indexing after upgrading to 10.6.7

    I upgraded my 3-1/2 year old black MacBook to OS X 10.6.7 the other day, and after I rebooted, Spotlight began indexing my drive and has been stuck at "Estimating index time" ever since.
    Is this a known issue, or am I the only one?
    I'm not sure why it started indexing again, but how can I get it to stop?

    Hi,
    Try to stop NAT, than start Setup Gateway Assistant again, may be help.
    Note: you should be sure your firewall is in correct setup. My NAT some time stop and can not start again because of my firewall "open" much ports than nessesary.

  • Forcing Index use with UPPER or LOWER in the WHERE clause.

    Does anyone know how to force Oracle to use an index/Key when using UPPER or LOWER in the WHERE clause?

    You have to create a function index. Check your documentation on it.

  • Spotlight mysteriously re-indexes after some failed searches?

    Well here's an odd one:
    About a week ago I had occasion to migrate a "standard" account from one Leopard computer to a fresh Leopard computer where it became the second account on the new machine (after the Admin account). This was done with Migration Assistant and completed without problems.
    The original account was inherited from a Tiger 10.4.10 installation on the old machine via a default, "upgrade", install of Leopard.
    Spotlight searches of the Home directory of that account worked just fine on the old machine. There is nothing in the Spotlight preferences Privacy list in either the old machine or the new machine. It may be relevant that the old machine was the Powerbook listed in my tag line below. The new machine is a Macbook. I've had no other Spotlight problems on either machine.
    Today I had occasion to search for a folder in the Home directory of this account on the new machine. To my surprise, it did not show in the results. OTHER stuff showed up, but not this folder.
    So I opened a Finder window and did a Command-f to bring up the search criteria and started playing around with search criteria (specifying "kind" = "folder" for example) to see if I could isolate the problem. Periodically I also retried searching in the regular Spotlight drop down to compare results. The upshot was that it seemed NOTHING in the Home directory of this migrated account had been indexed.
    And then, for no obvious reason, and about 5-10 minutes into poking around like this, I discovered Spotlight was "indexing". It had about 20 minutes of indexing to do.
    Again, I had not been doing anything in the Spotlight preferences -- just trying different search criteria in the Finder window. So why index now?
    When it finished indexing, searches for files or content in the Home directory of this account, either via the Finder window or the Spotlight drop down, all worked fine.
    NOW, why should Spotlight decide just at this moment to index this account? The account has been in heavy use on this machine for about week (although I had not had occasion to do searches in it).
    And the indexing didn't start until about 5-10 minutes into the search and re-search process trying to explore the limits of Spotlight's "blind spot".
    Does Spotlight fail to realize it needs to index a migrated account?
    Does Spotlight have some sort of fail safe mechanism where it revisits the need to index things after so many repeated searches or searches with no results?
    Mysterious indeed.
    --Bob

    Review the hits from a google search for socket(PF_ROUTE). IMO, something's blocking access, most likely mucked up permissions on the server; however, I don't muck with servers or AD and you might be better off perusing MS's forums for AD info.

  • Issue in rebuilding index after restoring database from sql server 2005 to 2012

    Hi All,
    We have recently restored a database named DBA_admin from our sql server 2005 instance to sql server 2012 and we have added the database to out weekly maintenance plan. After adding the database to maintenance plan the job is failing every weekend due to
    below error message.
    Error message from maintenance plan history:
    Executing the query "ALTER INDEX [PK_lsttype] ON [dbo].[lstAssign..." failed with the following error: "Invalid object name 'admin.dbo.databaselog'.
      ALTER_INDEX - dbo.PK_lsttype". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
    Below is the code within the maintenance plan which the rebuild index task is using for database dba_admin:
    USE [dba_admin]
    GO
    ALTER INDEX [PK_lstType] ON [dbo].[lstType] REBUILD PARTITION = ALL WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 98, DATA_COMPRESSION = PAGE)
    Please let me know if any one knows how to fix this issue.
    Thanks in Advance.

    Sorry for the confusion.
    Here is what is happening.
    The query is failing while trying to rebuild index [Pk_lsttype] on table [lstAssign], both these objects belong to database
    admin.
    I have verified the old instance there is table databaselog within the database
    dba_admin, but in new SQL instance within the database dba_admin the table is not present.
    Even I'm not sure of what this table databaselog has to do with rebuilding indexes on table
    lstAssign within the admin database.
    I have manually tried to execute the alter index command within the database
    admin and it is failing with the below error.
    ALTER_TABLE - dbo.Query_pnb_sms
    Msg 208, Level 16, State 1, Procedure ddlDatabaseTriggerLog, Line 39
    Invalid object name 'dba_admin.dbo.databaselog'.

Maybe you are looking for

  • Recovering missing iPhoto photos from iPhone 5

    Hi, I reindexed my iPhoto library as I was missing photos. Now it seems I have lost more photos! I have my entire iPhoto library sync'ed with my iPhone 5. Is it possible to sync. from iPhone to iPhoto in an attempt to recover the photos? I am worried

  • Converting Crystal Date Group to SQL Command

    When selecting the option to group on the server, I found that there are requirements in addition to selecting the option. I have a date grouping in Crystal like the following: dateadd("d", - weekday({table.date}, crMonday)+1,{table.date}) Can this b

  • Installing medium-cost RAM on my Mac Pro

    Hi everybody! I've just bought a 2x 2.66GHz Mac Pro and it's wonderful. However, I ordered it with a minimum configuration because I thought I could find expansion pieces on the market. Is there any problem if I install a 1GB-667-DDR2 RAM module non-

  • Budgeting and Integrated Planning?  General Info and advice?

    Hello all, I have a series of reports that I am working with a team on. Each of these reports contains historical figures (going back month by month for at least 2 years). Each report also contains Budgeted figures as well as a variance calculation.

  • Opening a new window from an event handler in IC WebUI

    Hello , I want to open a new browser window on the click of a button (through the event handler) .This can be done using javascript ,but I ideally want it to be triggered from the event handler .The URL is dynamically generated . Please do let me kno