Monitoring other transactions

Hi,
Just want to ask any work-around for this scenario. They have a proC programs being called from shell scripts thru cron, this proC scripts just loads/updates tables. Now they want to have like a log table to query if that proC code is already done modifying a table, problem is they can't touch the proC code. I have this initial code, but as I do it, I think it won't work completely like updating the status of the table to be last modified. Is there any other oracle technology I could use on this? Thanks.
drop table sys_log;
create table sys_log
( table_name  varchar2(50) constraint tn_pk primary key,
  status       varchar2(10),
  start_time  date,
  end_time    date,
  current_table    varchar2(1) default 'N'
create or replace package pkg_sys_log as
     procedure set_status( p_table_name sys_log.table_name%type );
end;
create or replace package body pkg_sys_log as
     procedure set_status( p_table_name sys_log.table_name%type ) is
                pragma autonomous_transaction;
                cursor c_sys_log( p_table sys_log.table_name%type ) is
                select table_name, current_table
                from sys_log
                where table_name = p_table;
                r_sys_log c_sys_log%rowtype;
        l_current_table sys_log.current_table%type;
     begin        
          open  c_sys_log( p_table_name );
          fetch c_sys_log into r_sys_log;
          if c_sys_log%found then                                            
       begin
           select table_name
           into l_current_table
           from sys_log
           where current_table = 'Y';                  
       exception
           when no_data_found then
              l_current_table := null;      
       end;
       if l_current_table is not null and
          r_sys_log.table_name != l_current_table then
          update sys_log
          set current_table = 'N',
              status = 'FINISHED'
              end_time = sysdate
          where table_name = l_current_table;
          update sys_log
          set current_table = 'Y'
          where table_name = r_sys_log.table_name;
       end if;                  
          else
                       insert into sys_log( table_name, status, start_time, current_table )
                       values ( p_table_name, 'ON-GOING', sysdate, 'Y' );
          end if;
          close c_sys_log;
          commit;
     exception
          when others then
               rollback;
               raise;
     end;
end;
drop table test;
create table test
as
select * from all_objects
where 1=2;
create or replace trigger bi_test_trg
before insert or update or delete on test
begin
     pkg_sys_log.set_status( 'TEST' );
end;
/

I see nothing what you've written that would make me think (a) I have any idea what version you are asking about or that (b) there is any reason to use Pro*C or that (c) there is any reason to use cron.
Move the code into the database using DBMS_SCHEDULER or DBMS_JOB and everything is handled with far more efficiency and only a single, simple, API and language.

Similar Messages

  • CCMS qRFC Monitoring: Missing Transactional and Queued RFC Monitoring Nodes

    Hi ,
    We are trying to create a Queued RFC monitoring for VERTEX Queued , but we are missing CCMS Monitor Templates,in monitor Communications -->Transactional RFC and Queued RFC in Dev  and PROD  ,but its present in QA System .
    I have checked all system are at same level for support packs , kernel version .
    I have refered following Notes - 441269,437187,455431, 485826
    Can we create manually new one , but we are missing MTE class also ?
    Can we create new monitoring template ?
    We are running 4.6c with basis support pack level :
    SAP_BASIS    46C           0054    SAPKB46C54
    SAP_ABA      46C           0054    SAPKA46C54
    Thanks
    Hamendra

    Hamendra,
    Please make sure background dispatching is activated in your system. Go to tcode RZ21 and menu Technical Infrastructure --> Method execution --> Active background dispatching.
    This should schedule a job called SAP_CCMS_MONI_BATCH_DP. This is the job that will run the function for building the ALE/EDI monitoring segment.
    After scheduling the job check back in a few hours, if the ALE/EDI monitor is still not there try the following.
    1. Go to tcode RZ21
    2. In the topology section choose radio button "Segment overview" and click display
    3. Go into change mode and delete the monitoring segments
    This will force the system to recreate all the monitoring contexts.
    Check back in a few hours and see if the monitor is working.
    Tarkesh

  • How to monitor a transaction that is doing rollback

    Hi gurus,
    I need to know how to monitor a transaction that is doing rollback. I want to see the status of the database just in that moment.
    My version is 8i. The upgrade is comming, but I have a problem that is urgent.
    Thanks in advance

    My version is 8i. The upgrade is comming, & so is the 22nd Century. Which will occur first?
    but I have a problem that is urgent.
    SQL> desc v$rollstat
    Name                            Null?    Type
    USN                                  NUMBER
    LATCH                                  NUMBER
    EXTENTS                             NUMBER
    RSSIZE                              NUMBER
    WRITES                              NUMBER
    XACTS                                  NUMBER
    GETS                                  NUMBER
    WAITS                                  NUMBER
    OPTSIZE                             NUMBER
    HWMSIZE                             NUMBER
    SHRINKS                             NUMBER
    WRAPS                                  NUMBER
    EXTENDS                             NUMBER
    AVESHRINK                             NUMBER
    AVEACTIVE                             NUMBER
    STATUS                              VARCHAR2(15)
    CUREXT                              NUMBER
    CURBLK                              NUMBER

  • I think I have opened the sobig.f virus in my hotmail account and it keeps seding emails to my contacts. How do I stop it, and will it effect any of my other transactions like internet banking/shopping, is it safe?

    I think I have opened the sobig.f virus in my hotmail account and it keeps seding emails to my contacts. How do I stop it, and will it effect any of my other transactions like internet banking/shopping, is it safe To continue using my ipad ?

    This isn't due to malware. There is no known malware capable of infecting an iPad that has not been jailbroken (ie, hacked to allow apps from outside the App Store).
    As lizdance40 says, your Hotmail account has been hacked remotely. Change the password immediately. Hotmail accounts are popular targets, but as long as you choose a good password, and make sure that password is not the same as a password you use with any other account, you should be safe.
    I disagree with lizdance40's statement that you have to abandon the account and create a new e-mail address. If a hacker is able to get back in even after changing the password, the problem is not with the account itself. There's another vulnerability of some kind somewhere. Perhaps the account allows hackers to leave a "back door" to get back in (such as with GMail's delegation feature), in which case any such feature needs to be reviewed and have settings changed. Perhaps you are checking mail in an insecure manner while on an insecure network (ie, a wireless network that requires no password). Perhaps you are using a password on multiple accounts, and a different account has been compromised. Perhaps a hacker has used knowledge gained by prior access to your account to achieve "social hacking" (ie, convincing a tech to give him access because he has "forgotten the password"). There are many scenarios, but there's no good reason to abandon the account entirely.

  • Free Goods Determination for other transaction types

    Hi,
    Does anybody know of any Function Modules or Class names that determines Free Goods determination in a Sales Order? We are thinking if this functionality could be mimicked for other transaction types?
    Thanks!

    Hi,
    please consider the sap online help:
    http://help.sap.com/saphelp_crm700_ehp03/helpdata/en/b7/4a893a8729337be1
    0000000a11402f/frameset.htm
    Check the function moduls:
    Event CRM_FREE_GOODS_ADD_ITEM_EC
    CRM_FREE_GOODS_DETERMINE_EC  >
    CALL  FUNCTION CRM_FREE_GOODS_DETERMINATION
    Best regards
    Rene

  • Is there a way to add other transactions to Applications in BDT menu?

    Hi Masters!
    I'm trying to learn how BDT works. I'm trying to use it to make my own checks in some standard fields. So far I'm able to call my own function at 'View'->Further Checks. It's working fine.
    But my problem is:
    At the BDT menu (BUPT) there is only one Application (Maintain Business Partner - transaction BP). But I want to check the fields (Tax Numbers) in another transaction (BBPMAININT).
    Does this mean that I can only use the BDT controls in this transaction? (It seems to be so; I couldn’t get into my function with BBPMAININT)
    Is there a way to add other transactions to the 'Application' folder, so I can manipulate the fields, views or screens? If there is please tell me how... I checked the documentation but couldn’t figure out...
    Do you have any other ideas of how to make my validations with the standard field (withou changing the standad code)? (NOTE: there is no BADI to do this).
    Thanks in advance,
    José Omar

    Write a custom carousel.  Usually carousel components are just ULs that use something like jQuery to rotate through the LIs.  The foundation carousel component is really just designed for some specific use cases.  Generally I would just recommend rolling your own.

  • Can I run F.19 without posting or do you know of any other transaction

    Can I run F.19 without posting or do you know of any other transaction.
    I run F.19 gives me information on GR/IR by PO number but it appears to want to post a batch when I run it.
    Is their another transaction that would let me reconcile GR/IR by PO number and just gives me the report without posting? Can transaction f.13 in test run achieve this.
    Thanks for your help
    AQ

    Hi,
    You can execute F.19 without posting. To do it, go to Posting tab and remove "Create posting" field. it will give you report without posting it.
    instead of Using F.13,  use FBL3N and in GL account give your GR/IR account.
    It will work....
    Regards,
    Vinod
    If helpful, Please assign the points.

  • Can we create a single bdc for raw materials , and for some other transacti

    hi
    can we create a single bdc for raw materials , and for some other transaction? how?

    Hi Jyothsna
    For one transaction you will have to build your bdc table according to the recording for that transaction and then call that transaction using the bdc table. For another transaction , you will again have to build the bdc table with the details of that transaction.
    You cannot call all at one shot.
    Cheers
    shivika

  • MB5L shows value but MMBE and other transactions showing 0 value

    Hi Gurus,
    The issue i am having here is, i am having a Material XXXXX for the Plant YYYY. When i checked the stock for the material in MB5L, it is showing some KGs. But when i am checking the MMBE transaction, it shows 0 Value. Also when i checked the MBEW table it is showing the value, similarly on MSEG and MARC tables it shows 0 value. Now my concern here is
    1) What could be the reason for this?
    2) How we can make it sync the both the Tables?
    3) What happened to the history for this in MB51 and other transactions for this material?
    4) How should we approach this issue?
    Please advise and share your knowledge gurus. Thanks for your help in advance.
    Regards,
    Saakithyan

    Hi
    Check if Note 968812 - MM/FI Difference for material stocks is relevant for you
    Regards
    Eduardo

  • How do I find customer exits quickly using SE80,SE81 or other transactions?

    Hello all,
    Is there a way of using SE80 or SE81 or any other transaction for that matter, to quickly find customer or user exists being used within a given program rather than doing a global search for CALL CUSTOMER within the program? Example, transaction EG31 (Installation Full) which runs the program SAPLE30D.
    In SE80 there seem to be no reference to user or customer exits. As for SE81 I was unable to relate SAPLE30D with an application component, or at least I don't know how to do it.
    In the Repository Info System (SE81 also) there is a reference to customer exits, but, you MUST know which project is tied to your program, otherwise you'll be chasing your tail!
    I guess you can say the easiest way would be to do a global search in the program using the CALL CUSTOMER key words.
    Well, I tried that too. The first set of results pointed to INCLUDES which turned out to be empty exits! That is, no code. So, by pure chance and unknowingly, I stumbled upon a customer exit which was the source of my errors. How I did it, I cannot remember. But the problem is that this exit was hidden in a program which was called by SAPLE30D at a later stage.
    So, all this searching took a long time and more importantly, it was a lucky find. Not a methodic approach.
    So the question is: How do I find customer exits quickly using SE80, SE81 or any other transaction for that matter?
    Your help is greatly appreciated.

    edited
    Edited by: abhinay chelamcherla on Feb 24, 2008 9:49 AM

  • Modifying MB01, Could affect other transaction linked to it?

    Hi Experts,
    My user is encountering this error when she tried to define the delivery amount or qty.. and post it. I'm just wondering why they were able to post a GR before July even the amount is 7 digits. The user tried to breakdown the amount but there's still an error.
    There was no changes in the configuration or any user exits connected to it. I have checked the runtime error logs in st22 and released it. But until now those errors ar still in the list.
    My last option is to change the data type of Rexwrt field from EXWRT to wertv12. Exwert has a length of 13 characters and I want to change it to WERTV12 that has 23 characters.
    they are using SAP release 4.0:
    007650 DATA: REXWRT LIKE EXWRT.
    > REXWRT = W-EXWRT + W-SALK3.
    from SAP 6
    DATA: rexwrt TYPE wertv12.
    My question is, Would it be safe if I modify it? How would I know if there are other transaction may affect this code?
    I don't get an error in DEV server.
    Overflow when converting from "1.08844e+013"
    What happened?
    The current ABAP/4 program "SAPLMBGB " had to be terminated because
    one of the statements could not be executed.
    This is probably due to an error in the ABAP/4 program.
    What can you do?
    Print out the error message (using the "Print" function)
    and make a note of the actions and input that caused the
    error.
    To resolve the problem, contact your
    SAP system administrator.
    Error analysis
    When attempting to convert the value "1.08844e+013",
    an overflow occurred.
    There is probably an error in the program
    "SAPLMBGB ".
    How to correct the error
    Probably the only way to eliminate the error is to correct the program.
    You may able to find an interim solution to the problem in the
    SAP note system. If you have access to the SAP note system yourself,
    please use the following search criteria:
    "CONVT_OVERFLOW"
    "SAPLMBGB " or "LMBGBFSU "
    "WERT_V_RECHNEN"
    If you cannot solve the problem yourself, please send the
    following documents to SAP:
    1. A hard copy print describing the problem.
       To obtain this, select the "Print" function on the current screen.
    2. A suitable hardcopy prinout of the system log.
       To obtain this, call the system log with Transaction SM21
       and select the "Print" function to print out the relevant
       part.
    3. If the programs are your own programs or modified SAP programs,
       supply the source code.
       To do this, you can either use the "PRINT" command in the editor or
       print the programs using the report RSINCL00.
    4. Details regarding the conditions under which the error occurred
       or which actions and input led to the error.
    System environment
    SAP Release.............. "40B"
    Application server....... "prosap"
    Network address.......... "192.168.0.80"
    Operating system......... "Windows NT"
    Release.................. "0"
    Hardware type............ "PENTIUM"
    Database server.......... "prosap"
    Database type............ "INFORMIX"
    Database name............ "PRO"
    Database owner........... "sapr3"
    Character set............ "E"
    SAP kernel............... "40B"
    Created on............... "May 25 1999 02:20:08"
    Created in............... "NT 4.0 1381 Service Pack 3 x86 MS VC++ 11.00?"
    Database version......... "inf INF_723_TC2"
    Patch level.............. "400"
    Patch text............... " "
    Supported environment....
    Database................. "INFORMIX 7.2*.*"
    SAP database version..... "40B"
    Operating system......... "Windows NT 0 4"
    User, transaction...
    Client.............. 400
    User................ "SAPUSR_FI05"
    Language key........ "E"
    Transaction......... "MB01 "
    Program............. "SAPLMBGB "
    Screen.............. "SAPMM07M 0210"
    Screen line......... 71
    Information on where termination occurred
    The termination occurred in the ABAP/4 program "SAPLMBGB " in
    "WERT_V_RECHNEN".
    The main program was "SAPMM07M ".
    The termination occurred in line 779
    of the source code of program "LMBGBFSU " (when calling the editor 7790).
    Source code extract
    007490                             W-BETRAG LIKE BETRAG.
    007500
    007510     DATA: RMENGE LIKE MENGE.
    007520     RMENGE = 0 - W-MENGE.
    007530     IF ( W-EXWRT IS INITIAL AND W-EXWOB IS INITIAL ) OR
    007540        ( W-LBKUM < 0 AND ( W-SHKZG = H OR W-LBKUM < RMENGE ) ).
    007550       PERFORM WERT_WERTPROPORTIONAL USING W-SALK3
    007560                                           W-VERPR
    007570                                           W-LBKUM
    007580                                           W-PEINH
    007590                                           W-MENGU
    007600                                           W-WERTU
    007610                                           W-BWSPA
    007620                                           W-MENGE
    007630                                           W-BETRAG.
    007640     ELSE.
    007650       DATA: REXWRT LIKE EXWRT.
    007660       IF W-SHKZG = H.
    007670         IF ( W-LBKUM > W-MENGE AND NOT W-SALK3 < W-EXWRT )
    007680            OR NOT W-LBKUM > 0.
    007690           W-BETRAG = W-EXWRT.
    007700         ELSEIF NOT W-LBKUM < W-MENGE.
    007710           W-BETRAG = W-SALK3.
    007720         ELSE.
    007730           RMENGE = W-MENGE - W-LBKUM.
    007740           W-BETRAG = ( RMENGE * W-EXWRT ) / W-MENGE.
    007750           W-BETRAG = W-BETRAG + W-SALK3.
    007760         ENDIF.
    007770       ELSE.
    007780         RMENGE = W-MENGE + W-LBKUM.
    ----->         REXWRT = W-EXWRT + W-SALK3.
    007800         IF ( RMENGE < 0 AND NOT REXWRT > 0 )
    007810            OR NOT W-LBKUM < 0.
    007820           W-BETRAG = W-EXWRT.
    007830         ELSEIF NOT RMENGE > 0.
    007840           W-BETRAG = 0 - W-SALK3.
    007850         ELSE.
    007860           W-BETRAG = ( RMENGE * W-EXWRT ) / W-MENGE.
    007870           W-BETRAG = W-BETRAG - W-SALK3.
    007880         ENDIF.
    007890       ENDIF.
    007900       IF W-BETRAG > MAXIMUM OR W-BETRAG < MINIMUM.
    007910         MESSAGE E302 WITH 'WERT_V_RECHNEN' 'W-BETRAG'.
    007920       ENDIF.
    007930     ENDIF.

    Hi Maui,
    See SAP Note
    Note 196607 - Overflow in WERT_V_RECHNEN provided by SAP on 25.01.2000 .
    the correction instruction clearly mentions
    Context Block 
        PERFORM WERT_WERTPROPORTIONAL USING W-SALK3
                                            W-VERPR
                                            W-LBKUM
                                            W-PEINH
                                            W-MENGU
                                            W-WERTU
                                            W-BWSPA
                                            W-MENGE
                                            W-BETRAG.
      ELSE.
    Delete Block 
        DATA: REXWRT LIKE EXWRT.
    Insert Block 
    DATA: REXWRT TYPE WERTV12.
    Hope this helps you. Revert for more clarifications if any.
    <b>Always reward points to useful suggestion.</b>
    regards,
    Vikas

  • Once a transaction has an error it's affected to other transaction

    Hi is there anyone help me about understanding the "job_queue_interval" and "job_queue_processes" parameters??I have experienced that when a transaction has an error on it,it's affected to other transactions which in the same job queue with it.Then the normal(the should not have any error) transaction detected with some error, but i didn't see any error on the errors detail.I set up the job_queue_processes=10 and job_queue_interval=0. Help me please........Thanx

    job_queue_processes = number of backgroud processes dedicated to run jobs
    job_queue_interval = interval in seconds, how often ORACLE check, if there is some job to run (next_time in xxx_jobs views).

  • Cancel all other transactions

    Would like to cancel my subscription to forms central. I only needed the one form, how do I move forward with cancelling any other transactions?

    This FAQ explains how to stop your subscription:
    http://forums.adobe.com/docs/DOC-2971

  • How to  monitor USER transactions

    Hi Experts
    In Portal are there any chances to maintain user based on company codes.  
    Is there any possibility to monitor the Portal USER activities (what are the transactions or reports & etc). 
    Points will be revert back.
    Rgds
    Priya

    Hi Priya,
    Pl check this you will get log files for EP users,
    1> login via j2ee visual admin -> for tht run go.jar file in cmd  (usr\sap\EPP\JC00\j2ee\admi\go.jar)
    2> login as administrator
    3> follow this link frm home page
    services  ->  log viewer service  ->  server  ->  \JC  ->  j2ee\cluster\server  ->  log  ->  system  ->  security.log  ->  search d specified user
    hope this will help.
    Regards,
    Aditya

  • Monitoring critical transaction in SL report

    Hi,
    I am not able to  add business critical transaction in SL report configuration. It shows TOP LOADED transaction which is not requirement. I like to add new transaction as per customer requirement,
    We have recently upgraded solution manger to SAP EHP 1 for SAP Solution Manager 7.0 and after that earlier SLR configuration disappeared and also old settings. we have configured new one but we are not able to set up Critical transaction. I tried to set using Business process monitoring in Solution directory but it did not reflect in report.
    Also earlier we used to get all report/graph in html format but now it is only available in word format. Is it normal or we need to activate any setting.
    Can you please suggest on above two problem ?
    Thanks in advance.
    regards,

    Hi,
    Service Level Reporting is based on your EWA. For your requirement, you need to setup up BPM for monitoring your required transaction.
    Once you are done with your BPM, go to Service Level Reporting Setup under Operations Setup in DSWP. When you click on setup Service Level Reporting you will have Active Variants available. If you selec the variant you will have a tab Business Processes. There you can select your business process which is monitoring your Tcode. After have setup this your SL Report will show the Business Process that you have selected.
    Hope this solves your problem.
    Feel free to revert back.
    -=-Ragu

Maybe you are looking for