Check Conditions and exceptions

I have the two tables:
The first is a Chequing accounts table. This table has two
number fields, the first is called balance, and the second is
called Overdraft.
The second is a Savings accounts table. This table has one
field of importance, and that is the balance alone.
I was thinking of making triggers that would fire after the
transactions are executed. If the trigger finds that the either
the Chequing balance is lesser than the negative overdraft, or
if the Savings balance is lesser than 0, then the trigger would
prevent the changes from being made.
I was considering the use of a trigger that would spread an
exception to the Transaction procedure. This would work as
follows (Pardon me if the code has problems, I'm just writing
from scratch):
create trigger chq_acct after update on chq_acct for each row
declare
declare exception insufficient_funds here
begin
if balance < (- overdraft) then
raise insuffiecient_funds
end
The things I need to know is how to pass this exception onto the
procedure that is handling the update. However, I have not seen
examples on how this is done yet.
Another possibility is more modest and probably easier to
handle: using a check constraint to verify data. In the savings
acct, I can simply add a check constraint and if it is violated
during update, catch the exception with the appropriate code
(which I don't know what it is). However, I do not know about
the check constraint for the Chequing accounts. It should be
Balance > (- Overdraft), but this is a "variable" constraint as
different customers have different levels of overdraft. Does
Oracle handle this kind of constraint? If not, how should one
handle it?
Thanks

hi....
Trigger is a good idea.
You can raise an application error in the trigger. Carefully
define the two constants, ...msg and ...num - especially since
the num should not be used for other exceptions. I usually put
them in the specification of an PL/SQL block for global access.
I added them to your code an example of what's needed.
create trigger chq_acct after update on chq_acct for each row
declare
kc_sqlerrmsg_insufficientfunds CONSTANT VARCHAR2
() := 'Insufficient funds.' ;
kn_sqlerrmum_insufficientfunds CONSTANT NUMBER(5,0) := -
20000 ; -- between -20000 and -20999
begin
if balance < (- overdraft) then
--raise insuffiecient_funds
     RAISE_APPLICATION_ERROR ( kn_sqlerrmum_insufficientfunds
kc_sqlerrmsg_insufficientfunds
end Then when ever an update throws the exception, the query will be
rolled back UNLESS you handle your new exception.
Put your update query into an PL/SQL block with the exception.
Be sure to tie the exception in the trigger using your defined
exception and the all important ...num.
The WHEN OTHERS THEN RAISE allows other exceptions to be handled
by other, containg PL/SQL blocks.
In the EXCEPTION part of the PL/SQL block, when the
insuficient_funds exception is thrown, the variable SQLCODE will
have your ...num in it and SQLERRM will have your ...msg in it.
This is cool because when another UPDATE not in a block throws
the exception in the trigger, whoever is trying to figure out
what happened can use these!
DECLARE
  kn_sqlerrmum_insufficientfunds CONSTANT NUMBER(5,0) := -
20000 ; -- between -20000 and -20999
     insufficient_funds     EXCEPTION ;
     PRAGMA EXCEPTION_INIT ( insufficient_funds,
kn_sqlerrmum_insufficientfunds )
BEGIN
     UPDATE  .... SET balance .... ;
EXCEPTION
     WHEN insufficient_funds THEN
      ...code to handle the potential overdraft...
     WHEN OTHERS THEN RAISE ;
END ;
Hope this helps. Good Luck.

Similar Messages

  • We have three discussions forums with same subject. whenever a post gets new reply in one forum, it should automatically trigger workflow functionality to check conditions and send the same reply to other synchronized forums.

    we have three discussions forums with same subject. whenever a post gets new reply in one forum, it should automatically trigger workflow functionality to check conditions and send the same reply to other synchronized forums.
    Rajiv Kumar

    Hi,
    More details about your discussions forum will make others easier to find a corresponding solution on your requirement.
    If you mean there are three Discussion Board list waiting for synchronizing, I would suggest you create an Event Receiver for the three Discussion Board list.
    Here is a link with code demo about how to copy items from one Discussion Board to another including Replies:
    http://spcodes.blogspot.com/2013/03/programmatically-copy-items-from-one.html
    Here is a step by step sample on creating a simple Item added event receiver for Custom List in SharePoint 2010:
    http://msdn.microsoft.com/en-us/library/ff398052.aspx
    More information on Event Receiver for your reference:
    http://msdn.microsoft.com/en-us/library/gg749858(v=office.14).aspx
    http://msdn.microsoft.com/en-us/library/ff408183(v=office.14).aspx
    Feel free to reply if there are still any questions. 
    Best regards
    Patrick Liang
    TechNet Community Support

  • How many conditions and exceptions  can be defined in a query?

    hi,
    Can any one tell
    How many conditions and exceptions  can be defined in a query?
    i.e
    How many condtion can be defineon an keyf igure with respective to charecteristics?
    Because if we define more conditions on one keyfigure with respective to different chars,there might be some overlap among the conditons andconditions might not work.
    Am i coorect?
    Similary for the exceptions also.
    Simply to be asked aswhat are the limitations of conditons and exceptions?
    Regards
    Naresh

    Hi Naresh,
    In Query we can no limit for creating Condition & Exception
    but Creating Condition : You can create two condition in a single condition it's work 'OR' Condition.
    You can build different condition it will work "AND' Condition.
    Thanks & Regards,
    Venkat.

  • SAP BEx query's Conditions and Exceptions on BO Universe

    We are planning to create Conditions and Exception on SAP BEx Query. And provide this query to BO team for their development
    Could anyone tell me in what form will these BEx objects be visible in BO-Universe ....as detail objects...or query filters and a.s.o?
    Will they be Invisible? If invisible will they be atleast applied to BO-Universe.
    For e,g: I know that, BEx Query filter will be applied to the underlying query but are not visible in OLAP universe.
    - Anil

    Hi,
    Conditions and Excpetions are not supported by OLAP BAPI tehrefore they are not generated in universes or consumed at query level.
    You have to create conditions on measures in universes (except top end bottom exceptions that are not supported).
    Exceptions need to be done at cliient level (Webi, XCelsius, etc).
    I BOE CI 4.0 conditions will be supporte by the Semantic Layer direct acces with BICS but exceptions will continue to be created at client level.
    Didier

  • Maximum number of conditions and exceptions possible in a query

    Hi Gurus,
    I would like to know where it is possible to create more than a single exception or condition in a query.  If it is possible, then are there any other implications that may result as far as data is concerned?
    Also, is there a limit on the number of exceptions and conditions one can create in a single query?
    Thanks
    Deepthi

    Dear Deepthi,
    You can use exceptions to evaluate one or all key figures (structure elements) in your query definition. If you want to use exceptions selectively on specific key figures in your query definition, you have to define an exception for each key
    figure accordingly.
    On the Display tab of the exception definition you have control over which cells of an analysis receive the color for the determined alert level. If you select the checkbox for Exception Affects Data Cells, then the following choices can be made
    Key Figure Choice Result
    Evaluated Structure Element
    The structure element chosen on the Definition tab will
    be the one to receive the color assigned to the alert level.
    All Structure Elements
    Regardless of which structure element is being evaluated
    in the exception, all structure elements will receive the
    color assigned to the alert level.
    Following Structure Element
    With this setting, you can evaluate one structure element,
    but then apply the color of the alert level to a different
    structure element.
    If the checkbox for Exception Affects Characteristic Cells is selected, then you can select from the following options:
    Characteristic Cell Choice Result
    Rows
    The color of the alert level determined by the exception
    is applied to the characteristic values in the row where
    the exception occurs.
    Columns
    The color of the alert level determined by the exception
    is applied to the characteristic value in the column where
    the exception occurs.
    Rows and Columns
    The color of the alert level determined by the exception
    is applied to the characteristic value in both the column
    and row where the exception occurs.
    Hope this information helps u...
    Assign points if needful...
    Best Regards,
    VVenkat.

  • Start conditions and check function modules

    Hi,
    When we apply start conditions to any particular even linkage you will find check function module as SWB_2_CHECK_FB_START_COND_EVAL. However, what if i want to implement both a custom check function module AND start conditions ?
    My requirement is to implement both start conditions and check function module.
    Is this possible ?
    Thank you,
    Nikhil.

    Hi,
    You can use both of the things, however its advisable to check all start conditions if you are using check FM.
    This is interface for custom  check FM,once you have the key value, you can put all the checks here
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(OBJTYPE) TYPE  SWETYPECOU-OBJTYPE
    *"     VALUE(OBJKEY) TYPE  SWEINSTCOU-OBJKEY
    *"     VALUE(EVENT) TYPE  SWETYPECOU-EVENT
    *"     VALUE(RECTYPE) TYPE  SWETYPECOU-RECTYPE
    *"  EXPORTING
    *"     REFERENCE(REFERENCE) TYPE  C
    *"  TABLES
    *"      EVENT_CONTAINER STRUCTURE  SWCONT
    *"  EXCEPTIONS
    *"      NOT_TRIGGERD
    Hope this helps.
    Regards,
    Sangvir Singh

  • How to update Ztable from Excel file and how to check conditions ,

    HI this uday,
    pls help me how can i update Ztable from Excel file and how to check conditions .
    regards
    uday
    Moderator message: please (re)search yourself before asking.
    Edited by: Thomas Zloch on Jul 13, 2010 12:00 PM

    Hi
    Use Fm : ALSM_EXCEL_TO_INTERNAL_TABLE.
    L_INTERN : internal table with your fields .
    make sure that the fields in the Excel should be formatted (as numeric , characher ) depending upon the data types .
    LOOP AT L_INTERN INTO WA_LINTERN .
            MOVE WA_LINTERN-COL TO L_INDEX.
            ASSIGN COMPONENT  L_INDEX OF STRUCTURE WA_INREC TO <FS> .
            IF SY-SUBRC = 0.
              MOVE WA_LINTERN-VALUE TO <FS>.
            ENDIF.
            AT END OF  ROW .                                    "#EC *
              APPEND WA_INREC TO IT_DATA.  "
              CLEAR WA_INREC.
            ENDAT.
         ENDLOOP.
    Regards
    Swapnil

  • What is the difference using start condition and check function module

    what is the difference  between using start condition and check function module

    That's new to me, I thought a start condition was evaluated before the workflow started, and thus now workflow work item is available. That's why I think the only situation in which start conditions/check functions can't be used, is when the availability of a workflow log for investigation of exactly what stopped the workflow is a requirement.
    I suppose the <a href="http://help.sap.com/saphelp_46c/helpdata/en/4c/86bf43feca11d2a64f0060087a79ea/frameset.htm">SAP documentation</a> is in need of an update.

  • Need help to check multiple conditions and set AD user properties

    hello All,
    I have a data csv sheet where information as follows, using below information I need to update AD account attributes based on below conditions . I have full right and I can set any user properties. So this is not access right issue.   
    samaccountname,Othertelephone,language,employeeId
    abcd                      XXXXXXXXX     EN         SMS
    Now I need to check following conditions:
    Othertelephone =  if this should not be blank ,if so display message " filed is blank " and no changes should allowed in further attributes and  it should abort
    language= this field should only contain  EN or FR value if No display msg " error in language field " and no further changes to  the user attributes and it should abort
    employeeID= this field should only contain OTP or SMS value if Not filled display msg " error in Employee ID field " No further changes to the user attributes and it should abort
    changes to user will permit  when all attributes is filled. I do the testing taking samaccountname , othertelephone and employeeId into consideration but it did not helped. Getting error
    THIS is complete Code Of my Task where you need my focus on conditions
    group=Get-QAdGroup -SearchRoot  "domain/vpn group"
    Import-Csv D:\VPN.csv |
    ForEach-Object{
    if ($_.samaccountname -eq "")
       Write-Host "SAMACCOUNTNAME is blank"   -fore red
    else
     $user=Get-QAduser $_.samaccountname
    if ($user.memberof -contains  $group.DN)
     Write-Host "$($_.Samaccountname) user is allready a member" -fore red
    else
     Add-QADGroupMember $group $_.Samaccountname
    If ($_.othertelephone -eq "")
    Write-Output "$($_.samaccountname) telephone Number is blank"
    else
    if ($_.EmployeeID -notmatch 'OTP' -and 'SMS')
    Write-Output "$($_.samaccountname) EmployeeID field is not correctly field")
    Else
    Set-QADUser $_.SamAccountName -ObjectAttributes @{telephonenumber=$_.othertelephone;EmployeeID=$_.EmployeeID}
    error
    Set-QADUser : Access is denied.
    At C:\Users\g512263\AppData\Local\Temp\5f8facb6-f942-4c3d-b924-8953d9a706da.ps1:37 char:8
    +                    Set-QADUser $_.SamAccountName -ObjectAttributes @{telephonenumber=$_.othe ...
    +    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Set-QADUser], UnauthorizedAccessException
        + FullyQualifiedErrorId : System.UnauthorizedAccessException,Quest.ActiveRoles.ArsPowerShellSnapIn.Powershell.Cmdlets.SetUserCm
       dlet

    <title>Untitled - PowerGUI Script Editor</title>
    Hello JRV,Thank you for your time, There is no comma in my csv file , I double check. below I wrote a simple code.I removed all the conditions and just try to set the EmployeeID and it is working fine with same file.But as soon as I add conditions it gives access denied. as well as if I remove employee Id from your previous code and only try to set telephone No. still it gives access denied.I am just trying to figure out what is causing this.
    $group=Get-QAdGroup -SearchRoot "com/Group"
    Import-Csv D:\VPN.csv |
    ForEach-Object{
    if ($_.samaccountname -eq ""){
    Write-Host "SAMACCOUNTNAME is blank" -fore red
    }else{
    $user=Get-QAduser $_.samaccountname
    if ($user.memberof -contains $group.DN){
    Write-Host "$($_.Samaccountname) user is allready a member" -fore red
    }else
    Add-QADGroupMember $group $_.Samaccountname
    If ($_.othertelephone -ne "")
    Set-QADUser $user.SamAccountName -ObjectAtt Aributes @{telephonenumber=$_.othertelephone}
    } else
    Write-Output "$($_.samaccountname) phonenumber is blank"
    If ($_.EmployeeID -ne "")
    Set-QADUser $_.SamAccountName -ObjectAttributes @{EmployeeID=$_.EmployeeID}
    }else
    Write-Output "$($_.samaccountname) EmployeeID field is blank"
    If ($_.Preferredlanguage -ne "")
    Set-QADUser $_.SamAccountName -ObjectAttributes @{Preferredlanguage=$_.preferredlanguage}
    } else
    Write-Output "$($_.samaccountname) PreferredLanguage field is blank"

  • Read table and checking condition in PAI

    Hi,
    I have a requirement where I need to check and compare with (Custom table) Bankn with Partner Bank`s bankn.
    I have wrote a code in PAI like this.
    MODULE CHECK_BANKN INPUT.
       Data: l_bankn like (Custom table)-bankn.
       select bankn from (Custom Table) into l_bankn
           where recno = g_recno.
       IF NOT g_head-bankn IS INITIAL.
      Read table i_bvtyp with key bankn = i_bvtyp-bankn .
         IF l_bankn <> i_bvtyp-bankn.--------->" Comparison of (custom table) Bankn with internal table I_BVTYP-BANKN
           MESSAGE w022 WITH text-w06.
         ENDIF.
       ENDIF.
    ENDMODULE.
    My Read Table statement is seems to be wrong and my checking condition is also wrong.
    So, how to resolve this?
    regards,
    Kiran

    Hi Kiran,
    If you observe your read statement, you are comparing the field with it's own table field.
       Read table i_bvtyp with key bankn = i_bvtyp-bankn .
    Untill unless you read I_BVTYP, i_bvtyp-bankn will be initial and you cannot find the matching record with Null-Value.
    So, I think you need compare with l_bankn.
       Read table i_bvtyp with key bankn = i_bankn .
    Then you can directly raise a message using SY-SUBRC value.
       Read table i_bvtyp with key bankn = i_bankn
          if SY-SUBRC <> 0 .
              <MESSAGE>    
         endif.
    Regards,
    Vijay

  • I need to check comparative three conditions and for each output I need to perform some action. can anybody please suggest

    I need to check three comparative conditions and for each status I need to perform some action. can anybody please suggest
    Requirment:
    Need to check if a numeric value is within a number range by using comparative function. Depending on status i need to ggive a constant input to numeric function.

    Easiest is suing an array of range boundaries, e.g. as follows:
    (Found here)
    Now it is fully scalable and  independent of the number of ranges. The solution in the earlier post would get complicated quickly whenever the number of ranges or boundary locations changes.
    LabVIEW Champion . Do more with less code and in less time .

  • I want to check the status of application No.  For it is written in my account was canceled and I did not do so I urgent news about his condition and the reason for canceled I redial the same time as the sender befo

    Thank you for your attention
    I want to check the status of application No. W439602096
    For it is written in my account was canceled and I did not do so
    I urgent news about his condition and the reason for canceled
    I redial the same time as the sender before you
    We are waiting for you

    This is a user to user forum. You are not talking to Apple here. We cannot help you; you will need to contact wherever the order was placed.

  • Can a user to create a condition or exception in Bex Analyser ?

    Can a user to create a condition or exception in Bex Analyser in a similar way that a user can create a condition or exception in the Web?
    I am assuming there is not and they can only be displayed but I wanted to check. Can anyone confirm whether there is any way to do this or if SAP are likely to make this possible in the furture?

    Yes they can.
    Please take a look at the link below.
    http://help.sap.com/saphelp_nw04/helpdata/en/c1/5f6039ae48e623e10000000a11402f/frameset.htm

  • PRKO-2015 : Error in checking condition of instance on node:

    I am using Oracle 10.2.0.4 2 node RAC on Solaris 10 x86_86.
    I have renamed our test database using nid and have restarted the RAC instance.
    The cluster is not able to identify the database eventhough I've tried adding the database and instances manually.
    oracle@slsmtdrdbs01$srvctl add database -d SMTTSTDR -o /u01/app/oracle/product/10.2.0/db_1 -p /u02/app/oracle/smttstdr/spfilesmttstdr.ora
    oracle@slsmtdrdbs01$srvctl add instance -d smttstdr -i smttstdr1 -n slsmtdrdbs01
    oracle@slsmtdrdbs01$srvctl add instance -d smttstdr -i smttstdr2 -n slsmtdrdbs02
    oracle@slsmtdrdbs01$srvctl status database -d smttstdr
    PRKO-2015 : Error in checking condition of instance on node: slsmtdrdbs01
    PRKO-2015 : Error in checking condition of instance on node: slsmtdrdbs02I see these messages in the CRS log which confirm tht the instances have been successfully regstered .
    2009-06-24 15:47:49.823: [  CRSRES][781664] Resource Registered: ora.SMTTSTDR.db
    2009-06-24 15:48:16.256: [  CRSRES][781666] Resource Registered: ora.smttstdr.smttstdr1.inst
    2009-06-24 15:48:28.436: [  CRSRES][781672] Resource Registered: ora.smttstdr.smttstdr2.inst
    But still I get the error messages with srvctl.
    Think so this would need CRS reboot.
    Wanted to confirm if there is any other way to fix this issue as there is a production database in the same box and rebooting the CRS would require downtime.
    Any suggestions ?

    oracle@slsmtdrdbs01$crs_stat -t
    Name           Type           Target    State     Host
    ora....STDR.db application    OFFLINE   OFFLINE
    ora....01.lsnr application    ONLINE    ONLINE    slsm...bs01
    ora....s01.gsd application    OFFLINE   OFFLINE
    ora....s01.ons application    ONLINE    ONLINE    slsm...bs01
    ora....s01.vip application    ONLINE    ONLINE    slsm...bs01
    ora....02.lsnr application    ONLINE    ONLINE    slsm...bs02
    ora....s02.gsd application    OFFLINE   OFFLINE
    ora....s02.ons application    ONLINE    ONLINE    slsm...bs02
    ora....s02.vip application    ONLINE    ONLINE    slsm...bs02
    ora.smtdgsl.db application    OFFLINE   OFFLINE
    ora....l1.inst application    OFFLINE   OFFLINE
    ora....l2.inst application    ONLINE    OFFLINE
    ora....rddr.db application    ONLINE    ONLINE    slsm...bs02
    ora....1a.inst application    ONLINE    ONLINE    slsm...bs01
    ora....1b.inst application    ONLINE    ONLINE    slsm...bs02
    ora....r1.inst application    OFFLINE   OFFLINE
    ora....r2.inst application    OFFLINE   OFFLINESMTTSTDR is the test database that was created by renaming SMTDGSL. SMTPRDDR is the production database.
    I don't see imon files at all.
    I went through the thread
    Not able to start instance using srvctl
    I checked the permissions for the CRS directories
    oracle@slsmtdrdbs01$pwd
    /u01/app/oracle/product/10.2.0/crs/log
    oracle@slsmtdrdbs01$ls -l
    total 4
    drwxrwx---   2 oracle   dba          512 Nov 24  2008 crs
    drwxr-xr-t   8 root     dba          512 Nov 24  2008 slsmtdrdbs01
    oracle@slsmtdrdbs01$pwd
    /u01/app/oracle/product/10.2.0/crs/log/slsmtdrdbs01
    oracle@slsmtdrdbs01$ls -l
    total 88
    drwxr-x---   2 oracle   dba          512 Nov 24  2008 admin
    -rw-rw-r--   1 root     dba        37122 Mar  9 09:23 alertslsmtdrdbs01.log
    drwxr-x---   2 oracle   dba         2048 Apr 30 13:14 client
    drwxr-x---   2 root     dba          512 Nov 24  2008 crsd
    drwxr-x---   4 oracle   dba          512 Nov 26  2008 cssd
    drwxr-x---   2 oracle   dba          512 Nov 24  2008 evmd
    drwxrwxr-t   5 oracle   dba          512 Jun 25 10:00 racgslsmtdrdbs01 directory is owned by root. Is that an issue?
    But racg is owned by oracle.
    Output of the trace
    srvctl status database -d smttstdr
    432  [main] [10:5:53:34] [HAOperationImpl.runCommand:1223]  CRS cmd is: /u01/app/oracle/product/10.2.0/crs/bin/crs_stat -u
    ora.SMTTSTDR.smttstdr1.inst ora.SMTTSTDR.smttstdr2.inst
       433  [main] [10:5:53:36] [RuntimeExec.runCommand:74]  Calling Runtime.exec() with the command
       434  [main] [10:5:53:37] [RuntimeExec.runCommand:76]  /u01/app/oracle/product/10.2.0/crs/bin/crs_stat
       435  [main] [10:5:53:38] [RuntimeExec.runCommand:76]  -u
       436  [main] [10:5:53:39] [RuntimeExec.runCommand:76]  ora.SMTTSTDR.smttstdr1.inst
       437  [main] [10:5:53:41] [RuntimeExec.runCommand:76]  ora.SMTTSTDR.smttstdr2.inst
       438  [main] [10:5:53:47] [RuntimeExec.runCommand:131]  runCommand: Waiting for the process
       439  [Thread-1] [10:5:53:48] [StreamReader.run:61]  In StreamReader.run
       440  [Thread-0] [10:5:53:48] [StreamReader.run:61]  In StreamReader.run
       441  [Thread-0] [10:5:53:96] [StreamReader.run:65]  OUTPUT>CRS-0210: Could not find resource ora.SMTTSTDR.smttstdr1.inst.
       442  [Thread-0] [10:5:53:97] [StreamReader.run:65]  OUTPUT>
       443  [Thread-0] [10:5:53:98] [StreamReader.run:65]  OUTPUT>CRS-0210: Could not find resource ora.SMTTSTDR.smttstdr2.inst.
       444  [Thread-0] [10:5:53:100] [StreamReader.run:65]  OUTPUT>
       445  [main] [10:5:53:103] [RuntimeExec.runCommand:133]  runCommand: process returns 210
       446  [main] [10:5:53:104] [RuntimeExec.runCommand:147]  RunTimeExec: output>
       447  [main] [10:5:53:105] [RuntimeExec.runCommand:150]  CRS-0210: Could not find resource ora.SMTTSTDR.smttstdr1.inst.
       448  [main] [10:5:53:108] [RuntimeExec.runCommand:150]
       449  [main] [10:5:53:109] [RuntimeExec.runCommand:150]  CRS-0210: Could not find resource ora.SMTTSTDR.smttstdr2.inst.
       450  [main] [10:5:53:110] [RuntimeExec.runCommand:150]
       451  [main] [10:5:53:111] [RuntimeExec.runCommand:155]  RunTimeExec: error>
       452  [main] [10:5:53:113] [RuntimeExec.runCommand:175]  Returning from RunTimeExec.runCommand
       453  [main] [10:5:53:114] [HAOperationImpl.runCommand:1232]  signed exit value = 210
       454  [main] [10:5:53:115] [HAOperationImpl.runCommand:1257]  set status HA_RES_NOT_EXIST_ERR
       455  [main] [10:5:53:117] [HAStatusOperation.run:127]  Returned from executing the HA Operation
       456  [main] [10:5:53:118] [HAStatusOperation.run:132]  OUTPUT> CRS-0210: Could not find resource ora.SMTTSTDR.smttstdr1.in
    st.
       457  [main] [10:5:53:119] [HAStatusOperation.run:132]  OUTPUT>
       458  [main] [10:5:53:120] [HAStatusOperation.run:132]  OUTPUT> CRS-0210: Could not find resource ora.SMTTSTDR.smttstdr2.in
    st.
       459  [main] [10:5:53:121] [HAStatusOperation.run:132]  OUTPUT>
       460  [main] [10:5:53:122] [HAStatusOperation.run:138]  ERROR>
       461  [main] [10:5:53:124] [LocalCommand.execute:56]  LocalCommand.execute: Returned from run method
       462  [main] [10:5:53:125] [ParallelServerHA.isRunningInstances:581]  Stat operation failed. it could be a partial failure.
    no exception thrown.
       463  [main] [10:5:53:127] [StatusAction.internalDisplayInstanceStatus:708]  displaying status for instance smttstdr1
       464  [main] [10:5:53:129] [Instance.isEnabled:197]  enabled is true
       465  PRKO-2015 : Error in checking condition of instance on node: slsmtdrdbs01
       466  [main] [10:5:53:143] [StatusAction.internalDisplayInstanceStatus:708]  displaying status for instance smttstdr2
       467  [main] [10:5:53:144] [Instance.isEnabled:197]  enabled is true
       468  PRKO-2015 : Error in checking condition of instance on node: slsmtdrdbs02

  • WriteLock, Conditions, and signal (to readers)

    We are creating a simulation application where one thread periodically updates each object, and other threads read information from it. We had liveness problems when using a simple synchronization scheme, so we had hoped to use ReentrantReadWriteLocks (RRWL) instead. If a reader got the read lock on an object, it could check if it was up-to-date, and, if not, await() on a Condition associated with the write lock. This would free up the object to allow the writer to acquire the write lock, update it, and, when finished, signalAll() on the Condition to allow the readers to continue. However, the Condition and RRWL classes are currently not designed to allow this. Only objects that have the WriteLock may await on the associated Condition. It makes sense that only objects that have the write lock could signalAll(), since threads should not signal without updating the state first. However, I don't understand why having a write lock is required to await() on the associated Condition. The tryRelease() method of RRWL throws an exception if the calling thread is not the owner of the associated lock. Since other implementations of RRWL (Colt, Apache commons) don't seem to support what we want in a RRWL either, we are left to implement what we want ourselves. Is there a good workaround to allow all of the readers to be signaled when the writer is finished? Otherwise, will subclassing RRWL and overriding the tryRelease() method cause other big problems?

    Just adding a link to the other thread:
    http://forum.java.sun.com/thread.jspa?threadID=5115026

Maybe you are looking for

  • VALUATION NOT APPEARING IN RESULT RECORDING

    Hello.... I have created an inspection plan where i have assigned all the characteristic to be inspected with quantative data. Upon goods receipt inspection lot is generated, while doing result recording when i enter the result for eg. if the charact

  • Firefox not starting after 3.6.6 upgrade ubuntu 10.04

    These are the last few entries in the firefox strace log. Firefox never opens it just hangs like this every time. I have uninstalled and reinstalled. I have tried firefox -p for new profile still the same. strace firefox wait4(-1, [ ], 0, NULL) = 169

  • How to open Indd files

    I just purchased and downloaded Adobe InDesign. But still cannot open my indd files in My Documents.

  • Can you add RAM to 2GB MacBook Air after purchase?

    I'm thinking of getting a Macbook Air. Money is tight and 2GB RAM is cheaper than 4GB. If you purchase a 2GB MacBook Air, can you later add more RAM?

  • HT1491 I rent a movie, it says not enough storage, when I chec

    When I rent a movie not buy, it tell me I don't have enough storage, it's 32GB, I check my storage, have used Very little - 5 movies purchased, no games, 4 other icons.