Clean up of Rsec Auth change Logs (RSEC_VAL)

Analysis auth change Log table RSEC_VAL can grow very fast and if not cleaned up regularly could lead to other issues where RSECADMIN cannot be executed and it will time out.
Does anyone know of SAP Reports  that can be routinely scheduled as a housekeeping job or any other suggestions to keep it clean ?
Thanks,
Farah

Here is the short dump overview :
Information on where terminated                                                   
     Termination occurred in the ABAP program "SAPLRSEC_SCREENS" - in              
      "GET_TIME_STMP_AUTH".                                                        
     The main program was "SAPLRSEC_SCREENS ".                                                                               
In the source code you have the termination point in line 603                 
     of the (Include) program "LRSEC_SCREENSF03".                                                                               
Runtime Errors         TIME_OUT                                                                     
Date and Time          06/24/2009 10:56:26                                                                               
Line  SourceCde                                                                               
573 ----                     
   574 FORM get_time_stmp_auth .                                                                    
   575   DATA: l_source    TYPE string,                                                             
   576         l_tstpnm    TYPE xubname,                                                            
   577         l_date      TYPE sydatum,                                                            
   578         l_time      TYPE changtime,                                                          
   579 *        l_timestmp  TYPE timestamp,                                                         
   580         l_s_rsecbiau TYPE rsecbiau.                                                          
   581                                                                               
582   IF NOT g_mode = c_mode-create. " because then there is no timestamp yet                    
   583                                                                               
584     SELECT SINGLE * FROM rsecbiau INTO l_s_rsecbiau                                          
   585       WHERE auth = g_authname.                                                               
   586     IF sy-subrc = 0.                                                                         
   587       g_timestmp_last = l_s_rsecbiau-tstpnm.                                                 
   588                                                                               
589       CONVERT TIME STAMP l_s_rsecbiau-timestmp                                               
   590         TIME ZONE sy-zonlo                                                                   
   591         INTO DATE g_timestmp_date                                                            
   592              TIME g_timestmp_time.                                                           
   593                                                                               
594       RETURN.                                                                               
595     ELSE.                                                                               
596 **********************************************************************                       
   597 **  this part becomes obsolete with the time as soon as all times stamp                      
   598 *   entries are in RSECBIAU                                                                  
   599 *   val                                                                               
600                                                                               
601       l_source = 'RSECSESSION_CL INNER JOIN RSECVAL_CL ON RSECSESSION_CL~SESSIONID = RSECVAL 
   602                                                                               
>>>>>       SELECT MAX( crdate )                                                                   
   604       FROM (l_source)                                                                        
   605       INTO g_timestmp_date                                                                   
   606       WHERE rsecval_cl~tctauth = g_authname.                                                 
   607                                                                               
608       SELECT MAX( crtime )                                                                   
   609       FROM (l_source)                                                                        
   610       INTO g_timestmp_time                                                                   
   611       WHERE crdate = g_timestmp_date                                                         
   612       AND rsecval_cl~tctauth = g_authname.                                                   
   613                                                                               
614       SELECT SINGLE rsecsession_cltcttstpnm rsecsession_clcrdate rsecsession_cl~crtime     
   615       FROM (l_source)                                                                        
   616       INTO (g_timestmp_last, g_timestmp_date, g_timestmp_time)                               
   617       WHERE rsecval_cl~tctauth = g_authname                                                  
   618       AND rsecsession_cl~crdate = g_timestmp_date                                            
   619       AND rsecsession_cl~crtime = g_timestmp_time.                                           
   620                                                                               
621 ***   hie

Similar Messages

  • Change has to be made in cleani up change log/PSA tables from Process chain

    I need to clean up the Change Logs and PSA tables from  the Process chains. Currently the change logs and PSA are deleting 90 days and 60 days from the  PCu2019s. I need to change this to 7 days.
    I took one PC first. It has DELETE PSA REQUEST. when i double click ..under 'Selection pattern for pattern-based deletion' - there are so many data sources listed (older than - 60days). Now i need to change this to 7 days . how do i do it?
    Please guide me stepwise.

    When I searched with this I got this document...
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a02ba9e7-bb6f-2c10-09b4-e86b9fcbad41?QuickLink=index&overridelayout=true
    Please search forum to get your solution faster
    Regards
    Anindya

  • After deletion ODS change log, Delta upload OK?

    Hi all,
    Now I am reducing data from BW server. For this purpose, I will delete ODS change log. Both of data "from ODS" and "to ODS" are uploaded by Delta Upload.
    If I delete change log after last delta initialization, is there any problem to next delta upload?
    For example, the last delta initializing was done April 1. And I delete the change log up to April 30. After this operation, can be expected any problem to Delta upload?
    Bamboo Shampoo

    I dont think it will cause any issue with next delta loads.
    Data goes from ODS to its targets from change log table.
    But I think better have strategy like..'delete change log data only for requests older than say...1 month or 2 months..'
    so that if u have problems with recent data loads..u can reload easily..
    u can also try cleaning up old requests from the PSA tables in the system..
    cheers,
    Vishvesh

  • Problem delete chang log from process chain BW 7.01

    We have upgrade BW from 3.5 version to 7.01 version two month ago.
    Now I realized that the process chain running one a week to delete PSA and change log don't work well after upgrade.
    The process chain end without errors (status is green), but the change log are not deleted.
    In the test system I try to delete the Change Log in 2 mode:
    1-with the variant "Deletion of Requests from the Change Log " and the datastoreobject = myods and all the option (correct request, incorrect request and "Delete Activation Requests Only"). In the log i see this messagge
    The following excluded selections will be processed:
    No excluded selections found
    The following included selectiosn will be processed:
    Pattern: DataStore = 0FIGL_O06, InfoArea = *
    The following reqeust selections were set:
    Number of days = 0000000010, Successful = X, Incorrect = X, Curr. Requests =
    The following change logs were selected:
    2-with the variant "Deletion of Requests from PSA " and the datasource= 8myods and all the option (correct request, incorrect request).  In the log i see this messagge
    The following excluded selections will be processed:
    No excluded selections found
    The following included selectiosn will be processed:
    Pattern: DS = 80FIGL_O06, LS = BWTCLNT100, IS = , AC =
    The following reqeust selections were set:
    Number of days = 0000000015, Successful = X, Incorrect = X, Load requests =
    The following PSAs were selected:
    In both case the change log is not deleted.
    I can delete the change log only using Manage screen of my ods and then using Menu -> Environment ->Delete Change Log Data.
    Anna Maria

    I see that this topic is still active/unanswered...
    We're having the same problem, but not just changelogs, also for PSAs. We have a weekly process chain that does housekeeping on our BW system, cleaning up PSAs and changelogs, compressing cubes, realigning time-dep masterdata and renewing indexes.
    The PSA chain runs fine and about 90% of all PSAs get deleted, but there are some datasources (all of them are of type 8* datamart datasources) that don't get their PSAs deleted. It says "The following PSAs were selected:" and then nothing happens...
    I tried all tickbox combinations and checked that there are no PSA entries blocked by invalid partitions. Manual deletion (via "manage" in the datasource) works fine, but is tedious and time consuming.
    Also, most of the 8* datasource PSAs do get deleted. Just a handful (+/- 25) get skipped somehow.
    Any ideas?
    Thanks,
    Eduard
    PS: We're still running 3.5-style backend dataflow, but will eventually get converted to transformations and DTPs. But that's not on our agenda (yet).

  • Change Logs for TCODE -- FILE

    Hi Friends,
        Please help me in finding the change logs  for the TCODE  FILE,
        i.e  The changes made to the Logical paths
       I had tried  Utilities---->change logs , but unfortunately i cannot find any changes logs
       But there are changes made to the logical paths in my system but i cannot see them in change logs
    thanks
    chandrasekhar j

    rec/client is a profile parameter, you can view the settings in transaction RZ10.  However I find program RSPARAM more useful, the report lists all system parameters with their default and altered value.  Also if you double-click on a parameter you can get to the full help text for its meaning.
    The parameter essentially switches on table change logging for configuration tables (based on the technical settings of the table) and has to be set before the changes are made.
    Hope this helps.
    Nick

  • Change Log Data from DSO to CUBE

    Hi Experts,
      Is it possible to load/transfer change log data as well from DSO to Cube
    Thanks

    Hi,
    Yes it is possible.
    Create a DTP from DSO to cube.
    In the extraction tab of DTP choose the option
    Datasource Change log
    Hope it Helps!!
    Reward if useful
    Manish

  • Filled fields become blank in DSO change log

    Hi experts,
    I find an unusual behavior in DSO activation.
    For some records for which I find in PSA, new data table (and in debug also!!!) correct data, when the request is activated I find in change log table all characteristic fields empty; the key fields and key figure fields are ok and correct in all tables.
    It happen randomly for some orders and for a few requests.
    It happen when I have one storno record, for example:
    PSA (order, item, customer, material, storno, quantity)
    10000, 10, AAA, YYY, , 25
    10000, 10, AAA, YYY, X, -25
    DEBUG (order, item, customer, material, storno, quantity)
    10000, 10, AAA, YYY, , 25
    10000, 10, AAA, YYY, X, -25
    CHANGE LOG (order, item, customer, material, storno, quantity)
    10000, 10, AAA, YYY, , 25
    10000, 10, , , X, -25
    ACTIVE DATA (order, item, customer, material, storno, quantity)
    10000, 10, AAA, YYY, 25
    In some other cases:
    ACTIVE DATA (order, item, customer, material, storno, quantity)
    10000, 10, , , -25
    Have you some ideas? It is very strange.
    We are on a 7.0 BW system, but with 3.5 data flow (update rule).
    Thanks in advance.

    Vito,
    This happens some times...
    1. Did you transport any change to this DSO where characteristics were added and are these the ones that are blank...
    When this happens - see if you can clear the change log ( if this is an option ) and then reactivate the cube.
    Also there is a program to regenerate the activation program, I am not able to locate this - but then usually reactivating the ODS will usually clear this issue because it regenerates the activation program.

  • Need suggestion to get data from change log table of ODS.

    Hello,
    There is a case where i am loading opportunity header data from header ODS and opportunity item data from item ODS in the opportunity cube.
    Status (1= OPEN, 2= WON ETC) of the opportunity are available only in header ODS and not in item ODS.
    While loading data from header ODS to cube, I am loading it directly but while loading data from item ODS to cube i am using active data table of header ODS as a lookup in the update rule from item ODS to cube. I am selecting status from the active data table of header ODS while loading data from item ODS to cube.
    Since active data table will have only after image records, there is some data mismatch in the report as i am selecting data from active data table of header ODS while loading data from item ODS to cube.
    I need to select data from Change log in order to get before image also instead of active data table in order to overcome this issue. Is there any way by which i can do selection from Change log instead of active data table as change logs are generated at run time.
    Please let me know if you have any suggestions.
    Regards,
    Sanjay Chaurasia.

    Hi,
    You can use the changelog table of the DSO.
    Right click manage the Header DSO, go to the contents tab and click Change Log table. There you can see the technical name of the Change Log table.
    In the update rule Routine, give the tech name of Change log table instead of Active table name.
    Hope it helps.
    Krishna

  • Sales Orders Change Log question

    Hi All,
    I am currently working on a project that involves querying SAP Database to get custom reports via web browser, I've made a lot of advances and most of the site is ready but I'm missing just one item that I hope you could help me.
    Thing is I am working with the Sales Order change log and the problem comes one a user deletes a row. If I go to the change log inside SAP and see the differences a new record will be shown saying that row X was deleted and
    if I go to the database (ADOC and ADO1 tables) I don't have a way to see wich row was deleted.
    My way of doing this is to check for the number of rows on the current state of the sales order and check the same on the previous instance of the SO and see if a line was deleted. Then I would have to check row by row between instances what rows are there and what row is missing and store that info. I think this kind of approach will definitively kill the server.
    I was wondering if some one can give me a hint about how to approach this problem. Does any body know how SAP works on this area?
    I'm working with SAP2005A and SQL Server 2005 Standard Edition.
    Any help is greatly appreciated.
    Thanks!
    Alejandro.-

    Hola Alejandro,
    Thanks for your answer, as I see it I'm doing exactly what you proposed but the problem comes with the following scenarios:
    a.- If I post a new SO with two lines I will have on the ADO1 table two records with the values 0 and 1 for each line respectively but if I delete the item on LineNum = 1 and then I add a new item, this last item will be also created with LineNum value = 1. This is not a complicated thing to do but the problem comes when the user is used to work with SOs with several items at detail level and is used to add and erase lines once in a while and as I see it it's very difficult for me to track those specific changes. There's also the fact that on the Log table a new instance is created every time the user hits the update button regardless if a modification was actually made or not. I mean I would know that a line was deleted or added but I would have to start comparing each field on each line of a sales order with it's previous instance to check what was actually added/deleted and I'm afraid that this may affect the server performance. I know that SAP does this without affecting to much the system resources and that is what I'm trying to find.
    I forgot the other scenario I was considering he he I will post again as soon as I remember it but I hope I'm explaining this ok (I'm not very good at explaining...) If not let me know and I'll try to explain again.
    I'm also working on trying to get another approach to see what comes up...
    Thanks for checking this thread, your answers are helpful.
    Regards.

  • HOW TO USE FUNCTION Deletion of Requests from the Change Log IN PRCSES CHAN

    Respected all
    i used Deletion of Requests from PSA from the prcess chain and found good results, now i have only one request at the psa and thus i am doing good space utililisation. but when i am using Deletion of Requests from the Change Log i am not getting any changes in the request of dso. kindly let me know how to use this 2nd function.
    thanks
    abhay

    Hi Mahodaya,
    As per SAp standards its good to delete the requestes that are no longer needed for the delta update and no longer used ffor inti from the change log table and the data is loaded already in to DSO.
    Goto RSPC
    Click on create New PC -> enter the PC name n long descp
    Next we need to define the start process for the PC.Maintain the start variant process.save n come back.
    for deletion of change log we have option in the Other BW Processes -> deletion of requestes from change log
    Once u select the option we get a dialoge box here we need to create the variant for the process enter the process variant n long descp. cick ok.
    Next in the maintenance screen for the deleting the request from change log table will appear.
    Enter the selection patterns to which the requestes should be deleted from the change log.
    In the maintenance screen, select one or more Data Store objects for which requests are to be deleted from the relevant change log tables under Data Store Object column and select theInfo Area of the corresponding Data Store Objects under Info Area
    If you select the first check box exclude selction pattern, this means that del of requests from change log table will be ignored.
    or
    We can delete the requests which are Older than N-number of days (or) date in the above screen. For this one, enter the number of days (or) date in the filed Older than .
    OR
    If we want to select the requests with a certain status then we can also do in the above screen. We can select the following status indicators from the above screen.
    Delete Successfully Updated Requests Only -This status will delete only requests which
    are successfully updated into corresponding Data Store objects.
    Delete Incorrect Requests that were not Updated - This status will delete only incorrect requests which are not successfully updated into the corresponding Data Store Objects.
    Delete Activation Requests only, No Load requests- This status will delete only the activation requests (requests that begin with ODSR_... ). No load requests are deleted.

  • How to use the change log in ODS to track Delta change?

    People say that historical data (like Delta change) in ODS can be tracked in the Change Log.  How to use the change log to track historic data?
    Thanks

    Kevin
    See if it helps
    Every ODS object is represented on the database by three transparent tables:
    Active data: A table containing the active data (A table)
    Activation queue: For saving ODS data records that are to be updated but that have not yet been activated. The data is deleted after the records have been activated.
    <b>Change log: Contains the change history for delta updating from the ODS Object into other data targets, such as ODS Objects or InfoCubes for example.</b>
    An exception is the transactional ODS object, which is only made up of the active data table.
    The tables containing active data are constructed according to the ODS object definition, meaning that key fields and data fields are specified when the ODS object is defined. Activation queue and change log are the same in the table’s structure. They have the request ID, package ID and the record number as a key.
    Data base structure changes
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/d53ec3efdc9b47a9502c3a4565320c/frameset.htm
    Hope this helps
    Thnaks
    Sat

  • Change log issues-2 images for a single requests

    Hi ,
    in change log table for a single request i found 2 before images and two after images, is this normal behaviour if not when can we see the such type of scenarios.
    because it leads to zero records when it isn updated in to the further data targets.
    thanks.

    the listener is NOT involved with any existing session.
    stopping & restarting the listener has NO impact on existing sessions.
    I suggest it is better to control network access to any system using a Firewall which is the best tool for this task.
    Yes, it is possible to have more than 1 listener. It is also possible to poke yourself in the eye with a sharp pencil.
    I suggest that you should avoid both of these possible activities.
    Simply put having multiple listeners is wrong for multiple reasons & should be avoided.

  • Error while Changing log level in Agentry 6.0.44.1

    Hi ,
    I am trying to change the log level from the Agentry Administration client, but i am getting the below error message.
    And it is showing any option to change the log levels for users. How can I change log level for users also.
    How can I resolve this error.
    Regards,
    Shyam

    Shyam,
    This is fixed or planned fixed in 6.0.46 Agentry Server (supposed to be available anytime soon in the Service Marketplace - it was submitted already to the SMP team). The fix was in SMP 2.3 and SMP 3.0 but it was ported back to the Agentry 6.0.X release. If you have no access to the Agentry 6.0.X patches this means that your SAP License is preventing you from downloading it. You may need to contact the SAP CIC (customer interaction center) group.
    Or you can do the manual setup for a workaround for now.
    SAP KBA article: 2048202 - AgentryGUI does not allow to change log settings - Not all setttings were successfully changed.
    Regards,
    Mark Pe
    SAP Senior Support Engineer (Mobility)

  • How to delete Change log data from a DSO?

    Hello Experts,
    I am trying to delete the change log data for a DSO which has some 80 Cr records in it.
    I am trying to follow the standard procedure by using the process chain variant and giving the no.of days but somehow data is not getting deleted.
    However the process chain is completing successfully with G state.
    Please let me know if there are any other ways to delete the data.
    Thanks in Advance.
    Thanks & Regards,
    Anil.

    Hi,
    Then there might something wrong at your Chang log deletion variant.
    can you recreate changlog deletion variants and set them again.
    Ty to check below settings with new variant.
    Red mark - won't select
    Provide dso name and info area, older than and select blue mark.
    blue mark - it will delete only successfully loaded request which are older than N days.
    Have you tested this process type changlog deletion before moving to prod per your data flow?
    Thanks

  • A function module to add an entry to the change log of the ODS needed

    Hi all,
    I want to add an entry to the change log table of the ODS .
    Is there a Function module available for this or a work around for this.
    Regards
    Akshay

    Hi Kiran,
    You can directly add days to the date.
    Eg:
    DATA date LIKE sy-datum.
    DATA days TYPE i.
    date = sy-datum.
    days = 100.
    date = date + days.
    WRITE date.
    Regards
    Wenceslaus

Maybe you are looking for

  • My Ipod touch got a drink spilt on it and now it won't hold the charge or stay connected to the internet.

    About two days ago a drink that was about 1/4 full spilt in my purse. My IPod touch managed to get wet and the battery will not hold the charge anymore. I can let it charge all night then use it for about 30 minutes in the morning to check my Faceboo

  • Key not valid for use in specified state error message

    I did the update for my iPhone and also tried to update iTunes. I kept getting an error message of "key not valid for use in specified state" error message. I thought that if I uninstalled iTunes and re-installed it, that it would be fine. I'm still

  • IPhone photo sync error

    Hello, I would like to get the photos from my PC to my iPhone. Everytime I try to sync I get an error message that says "the iPhone xxxx iPhone cannot be synced. The required file cannot be found". Then I click OK, but there is no description of what

  • Page loads in one user accnt, but not another

    I thought this was a flash problem, so posted with that premise yesterday. I am posting again with new context: 17" MacBook Pro, 10.6.4, Safari 5.0, Firefox 3.6, Chrome, HD about 60% full, lots of RAM. My MBP has two user accnts: 1. MyHome - daily us

  • Where have all the patchsets gone?

    By my count -nitro, -morph and -cko have all died a death!  They were the only ones I ever used!