Switch or Simple procedure to  Delete the job?

Hi
I want to delete all the data which are less than 6 months I have changed the staus from del to arch for those data which need to archived .I am really confused on selecting the delete procedure whether to select simple or switch
in my data base there are more than 500000 to be delete
The simple deletion procedure deletes all XML messages flagged for deletion or archiving from the database tables in records.
it is saying will delete all the records which are flagged for archiving also
in switch it is taking copy of the table to another i want to reduce the space from my data base
Kindly suggest me how can i achive my goal
Thanks
Jayaraman
Edited by: Jayaraman P on Jun 21, 2010 4:05 PM

Hi,
Messages having status ARCH will not be deleted by the deletion job. only the messages having status DEL will be deleted by deletion job RSXMB_DELETE_MESSAGES.
This message status can be checked by the status of ITFACTION of SXMSPMAST table.
The type of deletion procedure simple or table swith has no effect on the messages that will be selected for deletion.
The messages that has the flag ARCH can be deleted only by the ARCHIVE job. Archive job has two steps it first archive those messages in to file system RSXMB_ARCHIVE_MESSAGE and then delete by RSXMB_DELETE_ARCHIVED_MESSAGES.
Please check the note Note 872388 - Troubleshooting Archiving and Deletion in PI for further assistance.
Thanks,
Francis
Edited by: Francis M. A. on Jun 21, 2010 5:13 PM

Similar Messages

  • Delete the job

    Hi,
      When I am trying to delete a job in SM37, it says that we cant delete the job as it is not active, but the status of the job in SM7 is ACTIVE. I dont fnd any process running for this job in SM51/Sm66.
    What could be the reason!
    Thnx.

    hi madhu...
    check ur datas in data source,transfermation&dtp....whether it was activated&available or not....could u view the datas before....?
    check these conditions....some times it's showing as it does not active in the job scheduler.....
    regards ...

  • Is it possible to find out which user was used to delete the job?

    Is it possible to find out which user was used to delete the job?
    Any logs?

    Hi,
    You can find who are the users who executed sm37 in ST03N.
    This might also help you in analyizing.
    Regards,
    Vamshi.

  • Is there anyway I can sign out of iCloud or switch to another iCloud without deleting the account?

    I accidentally synced my iPad3 with my brother's iCloud, is there any way I can "Un-sync" my iPad from his cloud without deleting his account or restoring my iPad to its default form?

    Settings>iCloud, scroll to bottom of screen and press Delete Account.  This doesn't delete files in icloud, it only deletes the connection to the current iCloud account.  Once doing that, you can enter the ID you really want to use.

  • I have been using DREAMWEAVER MX for almost ten years to keep a website up-to-date. Can I switch to iWeb now to do the job, and if so, how do I go about it?

    With MacOS 10.7 looming on the horizon, using veteran software DREAMWEAVER MX any longer does not seem to be such a good idea. I would like to use an editor that can cope with the new MacOS. Is iWeb that editor?
    Specifically, I need some clarity on these issues:
    Can I switch to iWeb now to  create and publish content in my old website for which I have been using DREAMWEAVER MX?
    Can I use the html layout I have been using in DREAMWEAVER, or do I have to steel myself for drastic changes?
    How do I import the complete website into iWeb – if at all?

    If you switch to iWeb you will have to build the site from scratch since iWeb can't read or import html files.  Also since  the future of iWeb is a little uncertain as to if it will be continued to be supported by Apple it might not be the best move at this time.
    You might look into upgrading to Dreamweaver for Mac.
    OT

  • How to delete the SAP HR jobs in bulk

    Hi,
    I have created the jobs but now I want to delete them.
    Please let me know the following:
    How to delete the SAP HR jobs in bulk?
    Is there any programs/tcode to delete the jobs in bulk apart from LSMW?
    Thanks & Regards
    Manish

    Hi Manish,
    Please use report RHRHDL00.
    Regards,
    Dilek

  • Problem in deleting backup job in Grid Control

    Hi,
    The topology and versions are as follows:
    1 windows 2003 server with Oracle Grid Control 10.2.0.4.0.
    1 windows 2003 server with Oracle Databases 10.2.0.3.
    1 windows 2003 server with Oracle Databases 10.2.0.3 - Data Guard setup
    I have tried to stop (and delete) some scheduled fullbackup jobs from Grid Control.
    The job has now status SUSPEND. I have tried to stop and delete the job, but I get the message:
    All executions of the job were stopped successfully. Currently running steps will not be stopped.
    I cannot delete the job and the job is not running.
    I have run this procedure in order to delete the job:
    DECLARE
    jguid RAW;
    BEGIN
    SELECT job_id
    INTO jguid
    FROM mgmt_job
    WHERE job_name = '<name of your job>'
    AND job_owner = '<owner of your job>';
    mgmt_job_engine.stop_all_executions_with_id(jguid,TRUE);
    COMMIT;
    END;
    With no effect. The job is still shown in Grid Control with status SUSPEND.
    I have restarted all servers and all the components in Grid Control, but the jobs will not disappear from Grid Control although they have been deleted.
    I am struggling with this for about 2 days now.
    I have search in Metalink and the internet, but I have not found anything that provides a solution.
    Any help will be very much appreciated.

    hi,
    I have in the past used the following from metalink
    Do you have a metalink account?
    SET verify OFF
    SET linesize 255
    SET pagesize 128
    SET trimout ON
    SET trimspool ON
    SPOOL jobdump.log
    ALTER SESSION SET nls_date_format='MON-DD-YYYY hh:mi:ss pm';
    COLUMN status format a15
    COLUMN job_name FORMAT a64
    COLUMN job_type FORMAT a32
    COLUMN job_owner FORMAT a32
    COLUMN job_status format 99
    COLUMN target_type format a64
    COLUMN frequency_code format a20
    COLUMN interval format 99999999
    VARIABLE JOBID VARCHAR2(64);
    PROMPT *********************** JOB INFO ********************************
    REM Get the job id
    SET serveroutput on
    BEGIN
    SELECT job_id INTO :JOBID
    FROM MGMT_JOB
    WHERE job_name='&&jobName'
    AND job_owner='&&jobOwner'
    AND nested=0;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    BEGIN
    DBMS_OUTPUT.put_line('JOB NOT FOUND, TRYING NAME ONLY');
    SELECT job_id INTO :JOBID
    FROM MGMT_JOB
    WHERE job_name='&&jobName'
    AND nested=0
    AND ROWNUM=1;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    DBMS_OUTPUT.put_line('JOB NOT FOUND');
    END;
    END;
    SELECT job_name, job_owner, job_type, system_job, job_status, target_type
    FROM MGMT_JOB
    WHERE job_id=HEXTORAW(:JOBID);
    PROMPT *********************** JOB SCHEDULE ****************************
    SELECT DECODE(frequency_code,
    1, 'Once',
    2, 'Interval',
    3, 'Daily',
    4, 'Day of Week',
    5, 'Day of Month',
    6, 'Day of Year', frequency_code) "FREQUENCY_CODE",
    start_time, end_time, execution_hours, execution_minutes,
    interval, months, days, timezone_info, timezone_target_index,
    timezone_offset, timezone_region
    FROM MGMT_JOB_SCHEDULE s, MGMT_JOB j
    WHERE s.schedule_id=j.schedule_id
    AND j.job_id=HEXTORAW(:JOBID);
    PROMPT ********************** PARAMETERS ********************************
    SELECT parameter_name,
    decode(parameter_type,
    0, 'Scalar',
    1, 'Vector',
    2, 'Large', parameter_type) "PARAMETER_TYPE",
    scalar_value, vector_value
    FROM MGMT_JOB_PARAMETER
    WHERE job_id=HEXTORAW(:JOBID)
    AND execution_id=HEXTORAW('0000000000000000')
    ORDER BY parameter_name;
    PROMPT ********************** TARGETS ********************************
    SELECT target_name, target_type
    FROM MGMT_JOB_TARGET jt, MGMT_TARGETS t
    WHERE job_id=HEXTORAW(:JOBID)
    AND execution_id=HEXTORAW('0000000000000000')
    AND jt.target_guid=t.target_guid
    ORDER BY target_type, target_name;
    PROMPT ********************** FLAT TARGETS ********************************
    SELECT target_name, target_type
    FROM MGMT_JOB_FLAT_TARGETS jft, MGMT_TARGETS t
    WHERE job_id=HEXTORAW(:JOBID)
    AND jft.target_guid=t.target_guid
    ORDER BY target_type, target_name;
    PROMPT ************************ EXECUTIONS *******************************
    SELECT execution_id,
    DECODE(status,
    1, 'SCHEDULED',
    2, 'RUNNING',
    3, 'FAILED INIT',
    4, 'FAILED',
    5, 'SUCCEEDED',
    6, 'SUSPENDED',
    7, 'AGENT DOWN',
    8, 'STOPPED',
    9, 'SUSPENDED/LOCK',
    10, 'SUSPENDED/EVENT',
    11, 'SUSPENDED/BLACKOUT',
    12, 'STOP PENDING',
    13, 'SUSPEND PENDING',
    14, 'INACTIVE',
    15, 'QUEUED',
    16, 'FAILED/RETRIED',
    17, 'WAITING',
    18, 'SKIPPED', status) "STATUS",
    scheduled_time, start_time, end_time
    FROM MGMT_JOB_EXEC_SUMMARY e
    WHERE job_id=HEXTORAW(:JOBID)
    ORDER BY scheduled_time;
    UNDEFINE jobName
    UNDEFINE jobOwner
    UNDEFINE JOBID
    SPOOL OFFAlan

  • Deleting sceduled job

    Hi Folks,
    I am having trouble deleting scheduled  jobs from SAP. From what I have read you can delete it from transaction SM37. In this trans I select the job you want in job selection. When the list comes up mark the jobs for deletion and then on the menu bar choose Job and delete.
    When I do this the next day I find the job has still be runnning overnight by checking SM37.
    What am I doing wrong?

    nothing wrong in the procedure but you need to ensure that 'the job that you want to delete permanently SHOULD NOT be in either 'Released or Scheduled' status.
    so in the jobname field - put your job name
    In the Job Status area - select (check) Released & Scheduled
    Remove the Data/Time values
    Now press F8, this will list your job selection and then
    use the same procedure that you followed to delete the job.
    Regards
    Sekhar

  • How to delete the dunning run and dunning notice?

    Hello everyone,
    If I created a dunning run with a future date and this has been printed, then I can not delete this dunning, so I just delete the job. But when I try to create a new dunning for the same customer, the system do not allowed me to dunned again. Is there anyone can help me on this issue?
    thanks in advance and Best regards,
    Maria

    Hi,
    if you have executed a dunning run up to the Dunning selection executed, then you can delete the run from the menu path Dunning notices -> Delete dunning run.  This will not delete the parameters, only the selection run.  customers will be released from dunning block.
    However, if you have executed the print, i.e. your dunning run has the status, dunning notice printed, then you will not be able to delete it using this route.  The customers block is released when the print out is taken.
    If you want to delete the run, then you can try re-organising the run, using the menu path Environment - Reorganisation.  I am not sure whether this will release cusomers, try it on a test system and see.
    Cheers.

  • How to delete the messages from sxmb_moni with status cancelled

    Hi ,
    how to delete the messages from sxmb_moni with status cancelled
    Is there any report for this
    Regards
    Suman

    I think just for deleting the jobs you can do this only
    Scheduling Delete Jobs
    To schedule delete jobs, proceed as follows:
           1.      In the Integration Engine -
    > Administration menu, choose Schedule Delete Jobs.
           2.      Select the job(s) to be scheduled.
           3.      Specify the start time and date.
           4.      Specify the period you want to use and choose Schedule.
    For an overview of all jobs, choose Jobs.

  • Scheduled status of the job?

    Hi experts,
    I have a job RSUVM007 which has status as "Scheduled"?.
    There are around 8 jobs of with similar job name. May i know what does scheduled means?
    And what happens if i delete using job tab->delete option.?
    thanks in advance,
    Dubbu

    Scheduled(Planned) status indicates that the job has been passed to the background processing system. It may or may not have a start specification.
    The job is not however eligible to run, even if its start specification is met. Before the job can run, it must also be released.
    Pl refer following links.
    http://help.sap.com/saphelp_nw04/helpdata/en/c4/3a8016505211d189550000e829fbbd/content.htm
    http://help.sap.com/saphelp_45b/helpdata/en/c4/3a8016505211d189550000e829fbbd/frameset.htm
    If you click on delete, the job gets deleted from the database. If you want to schedule a similar job, you will have to create a new one.
    Thanks
    Archana

  • How to delete Background job

    hi all,
    i am working on ECC6.0.
    i am not able to find the path to delete background job completly.
    can any body give me the navigation for the same in ECC6.0
    Thanks in advance

    hi
    hopen ths wll help
    To delete a background job explicitly, use:
    BP_JOB_SELECT to obtain the jobname and job number of the job that you wish to delete.
    You can select jobs according to all of the criteria available in the interactive background processing management system:
    Jobname: Using a well-planned naming convention for your jobs will help you to select them precisely.
    Job number
    Name of the user who scheduled a job
    Specifications for the start-time window/no start time scheduled
    Start dependent upon predecessor jobs
    Start dependent upon an event and event argument
    Job status (preliminary, scheduled, ready, running, finished, aborted).
    BP_JOB_DELETE to delete the job. The job log is deleted as well, if the job has already been run.
    A job cannot delete itself. Also, a job that is currently running cannot be deleted. However, you can have it deleted automatically if it is completed successfully. See the DELANFREP parameter of JOB_OPEN.
    Sample Program: Deleting a Background Job
    Data declarations: BP_JOB_SELECT
    DATA JSELECT LIKE BTCSELECT.
    DATA SEL_JOBLIST LIKE TBTCJOB OCCURS 100 WITH HEADER LINE.
    Sample selection criteria
    JSELECT-JOBNAME = 'Name of job'.
    JSELECT-USERNAME = SY-UNAME.
    CALL FUNCTION 'BP_JOB_SELECT'
    EXPORTING
    JOBSELECT_DIALOG = BTC_NO
    JOBSEL_PARAM_IN = JSELECT
    IMPORTING
    JOBSEL_PARAM_OUT = JSELECT
    TABLES
    JOBSELECT_JOBLIST = SEL_JOBLIST
    EXCEPTIONS NO_JOBS_FOUND = 1
    SELECTION_CANCELED = 2
    OTHERS = 99.
    In this example, the program loops over the internal table
    SEL_JOBLIST and deletes each of the jobs that was selected.
    Alternative: Have the user select the job to be deleted
    with BP_JOBLIST_PROCESSOR. For an example, please see
    Sample Program: Wait for Predecessor Job with JOB_CLOSE.
    LOOP AT SEL_JOBLIST.
    CALL FUNCTION 'BP_JOB_DELETE'
    EXPORTING
    FORCEDMODE = 'X'
    JOBNAME = SEL_JOBLIST-JOBNAME
    JOBCOUNT = SEL_JOBLIST-JOBCOUNT
    EXCEPTIONS
    OTHERS = 99.
    ENDLOOP. *
    FORCEDMODE deletes the job header even if other portions of the
    job cannot be deleted from the TemSe facility, where they are
    held.
    FORCEDMODE can be used without fear of causing problems in the
    System. Any TemSe problem that affects background jobs can be
    resolved directly in the TemSe system and does not require the
    job header.
    regards
    navjot
    reward if helpfull

  • Regarding the Job name

    Hi,
    I am having an issue with loading the data. To troubleshoot it, I need to know the technical name of the job. How to find of the Job name. I am only able to get the prefix of the Job Name : BI_BTCH.
    Please let me know the procedure to find the job name.
    Regards
    YJ

    In the infopackage -> Scheduler tab -> You would find the BI_BTCH*** job Id if the load was scheduled as a background job. You also have a button there to see the status of the job.
    If you are unable to find it and you had executed the job. Then go to SM37 give the job id as BI*** , your user id and the date as selection and find the job id. The Job log would have the cube technical name also.
    Hope this helps.

  • How to delete the incorrected Functional Location / Equipment

    Dear PM Guru's
    please let me know the procedure to delete the incorrected functional location / equipment or any other data like plans, orders, task lists etc. i went in change mode and i clicked on Deletion flag and clicked on Set option. when it will be deleted from data base is it required any other customized settings. if any thing required please tell me.
    regards
    jalu

    Hey,
    Deletion in SAP is not easily possible. That's is the reason, so much attention is given while creating such masters. Most of the masters in SAP can only be flagged for deletion i.e. you don't move it out.
    To move out from database, you need to perform Archiving. It's a separate function, which is performed, servers handling the archival data are different.Accessing the archived data is also different. Once you archive, the flagged for deletion items are essentially moved and you don't see them in your regular servers.
    As of now, you can only flag them for deletion. I hope this explanation makes things clear.
    Regards,
    Ketul

  • Deleting the vehicle assignment from the shipment

    hi,
    please send me the procedure for deleting the vehicle assignment from the shipment.
    it is very urgent............
    thanks in advance...........

    are you doing the vehicle assignment number manually. then you can very well change the number isnt it ?
    May be if you have some other idea please elaborate
    Thanks
    venugopal

Maybe you are looking for