Divisor is equal to zero error

Hi, I am getting divisor is equal to zero error while doing a calculation using sql. Is there a workaround this ?
Thanks

What do you want to do, if the divisor is 0?
Is the SQL executed in SqlPlus or in a procedure/function?
Hi, I am getting divisor is equal to zero error while doing a calculation using sql. Is there a workaround this ?
Thanks

Similar Messages

  • ORA-01476: divisor is equal to zero Error in tabular form

    Hello,
    My tabular form will give me this error sometimes: Error in add row internal routine: ORA-01476: divisor is equal to zero. I don't understand what causes it. On the form I have a on load - before header process that will add 5 blank rows automatically, which was wizard generated. This error doesn't always happen, when I turn off this process and then turn it back on it works fine. Currently I have to set the condition to never, so I don't get the error. Is this a bug with Apex?
    Also, when there is data available I have to click on the next arrow for the data to display.
    Please advise.
    Thanks,
    Mary
    Edited by: MaryM on Feb 26, 2010 9:49 AM
    Edited by: MaryM on Mar 2, 2010 11:16 AM

    Hello,
    I have the same error message for ADD ROWS in tabular form. It is also happens when I try to open one empty record using On Load when page rendered. Have you found a fix for that ?
    Thanks,
    Marina

  • BI Report Error:ORA-01476: divisor is equal to zero

    I have written the Query containing the Pl/SQL procedures and is working fine when executed ,but when I am using the same query for the BI Publisher report , in the Runtime the report is giving error *"ORA-01476: divisor is equal to zero"* .
    Please provide me with the answers and help ,as it is most important for me to get it solved.

    Hi,
    Try this...
    case when nvl(Y,0) = 0 then 0 else (X/Y) end
    Replace your columns in place of X and Y in your query..
    hope helps you....
    Cheers,
    Aravind

  • HP QUERY DATA ERROR((SQLER=ORA01476 divisor is equal to zero

    Experts,
    We are seeing the following error in Inventory Optimization Horizontal Plan
    HP QUERY DATA ERROR((SQLER=ORA01476 divisor is equal to zero
    Navigation
    Sign on as Inventory Planner responsibility, Inventory Plan > Workbench
    Select the plan owning org, so you can see all orgs.
    View by organizations
    Select org: <Org Code>
    Select Category <category>,
    item <Item name
    Right click, select Horizontal Plan > Default
    Can you help please.

    Well the easiest way to troubleshoot this problem would be to find the row where FBASEVOLTAGE = 0. Something like this maybe:
    SELECT BV.FBASEVOLTAGE
         , FB.FMAGNITUDE_RESULT
         , BS.IUBUSNO
    FROM                       GN
    JOIN                       GM ON  GM.IELEMENT_MAP_ID  = GN.IELEMENT_MAP_ID
    JOIN                       BS ON  GM.NPS_ELEMENT_ID   = BS.IUBUSID
                                  AND GM.NPS_ELEMENT_TYPE = 101
    JOIN   CONFIG_BASE_VOLTAGE BV ON  BS.IBASEVOLTAGEID   = BV.IBASEVOLTAGEID
    JOIN   FACT_BUS            FB ON  FB.IBUS_NO          = BS.IUBUSID
                                  AND FB.IPS_CASE_ID      = GN.IPS_CASE_ID
    WHERE BV.FBASEVOLTAGE = 0
    AND   GN.IPS_CASE_ID  = 1637
    ;

  • Divisor is equal to zero in date function

    Hi
    I have used a query like this but am getting error like divisor is equal to zero
    with s_mon as (select to_char(add_months(trunc(sysdate,'rr'),level-1),'Mon-RR') month from dual connect by level <=12)
    select s_mon.month,
    tgdate
    from abc ,s_mon
    where to_char(tgdate(+),'Mon-RR')=s_mon.month
    Result should be like this
    month tgtdate
    jan-12 01-01-12
    feb-12 05-02-12
    mar-12
    apr-12
    dec-12
    Edited by: vishnu prakash on 27-May-2012 00:32

    Vishnu,
    I did not get any error for the below statements; Does this not match with yours? If not, then please post your table structure, data and the exact query in which you are facing error.
    drop table test_table;
    create table test_table (pk_col number, col date);
    insert into Test_table values (3, to_date('MAY-2012', 'MON-RR'));
    insert into Test_table values (4, to_date('DEC-2012', 'MON-RR'));
    select * from test_table;
    with t as
      select to_char(add_months(trunc(sysdate, 'rr'), level - 1), 'MON-RR') month
        from dual
      connect by level <= 12
    select b.month, a.col
      from test_table a,
           t b
    where to_char(a.col(+), 'MON-RR') = b.month
    MONTH     COL
    APR-12     
    AUG-12     
    DEC-12     01-DEC-12
    FEB-12     
    JAN-12     
    JUL-12     
    JUN-12     
    MAR-12     
    MAY-12     01-MAY-12
    NOV-12     
    OCT-12     
    SEP-12     Regards,
    P.

  • Divisor is equal to zero......Help...plz

    Hi all.
    I tried to get a tablespace and fragmentation information with blow script.
    But I got an error(ORA-1476 : divisor is equal to zero)
    How can I fix the script properly ?
    Could anybody help me to fix the script?
    Thanks in advance.
    select tablespace_name,sum(obj_cnt) object_count,sum(ini_ext) init_ext,sum(nex_ex
    t) next_ext,sum(byte)/1048576 bytesize,
    (sum(byte)/1048576)- (sum(fbyte)/1048576) byteused,sum(fbyte)/1048576 bytefree,
    sum(frags), sum(largest)/1048576 avail,
    (sum(fbyte)/sum(byte))*100 free
    from (select tablespace_name,0 obj_cnt,0 ini_ext,0 nex_ext, 0 byte, sum(bytes) fb
    yte, count(*) frags, max(bytes) largest
    from dba_free_space
    group by tablespace_name
    union
    select tablespace_name,0, 0, 0, sum(bytes), 0, 0, 0 from dba_data_files
    group by tablespace_name
    union
    select tablespace_name, 0, initial_extent/1024 ini_ext, next_extent/1024 nex_ext,
    0,0,0,0
    from dba_tablespaces
    union
    select tablespace_name, count(*) obj_cnt, 0, 0, 0, 0, 0, 0
    from dba_segments
    group by tablespace_name)
    group by tablespace_name

    The various NVL and DECODE solutions may get rid of the error, but will not get you the correct answer. By the way, you may want to look at the differences in behaviour between
    (sum(fbyte)/decode(sum(byte),0,NULL))*100 free and
    (sum(fbyte)/decode(sum(byte),0,1))*100 free before you use either.
    Your real problem is that you have a temp tablespace using temporary files. This is the right thing to do, but, you need another union in your statement, to access dba_temp_files:
    SELECT tablespace_name,SUM(obj_cnt) object_count,
           SUM(ini_ext) init_ext, SUM(nex_ext) next_ext,
           SUM(byte)/1048576 bytesize,
           (SUM(byte)/1048576)- (SUM(fbyte)/1048576) byteused,
           SUM(fbyte)/1048576 bytefree, SUM(frags), SUM(largest)/1048576 avail,
           (SUM(fbyte)/SUM(byte))*100 free
    FROM (SELECT tablespace_name, 0 obj_cnt, 0 ini_ext, 0 nex_ext, 0 byte,
                 SUM(bytes) fbyte, COUNT(*) frags, MAX(bytes) largest
          FROM dba_free_space
          GROUP BY tablespace_name
          UNION ALL
          SELECT tablespace_name,0, 0, 0, sum(bytes), 0, 0, 0
          FROM dba_data_files
          GROUP BY tablespace_name
          UNION ALL
          SELECT tablespace_name,0, 0, 0, sum(bytes), 0, 0, 0
    FROM dba_temp_files
    GROUP BY tablespace_name
          UNION ALL
          SELECT tablespace_name, 0, initial_extent/1024 ini_ext,
                 next_extent/1024 nex_ext, 0,0,0,0
          FROM dba_tablespaces
          UNION ALL
          SELECT tablespace_name, COUNT(*) obj_cnt, 0, 0, 0, 0, 0, 0
          FROM dba_segments
          GROUP BY tablespace_name)
    GROUP BY tablespace_nameYou should also use UNION ALL instead of UNION, because UNION implies a sort distinct, whil union all does not. The sort is unneccessary, and the distinct may cause you to lose rows.
    TTFn
    John

  • Error in add row internal routine: ORA-01476: divisor is equal to zero

    Hi,
    I am using Tabular Form Report in my application. So, when the user enters the page for the first time, no fields appear (if he has previously not entered any values in the DB). So to avoid this I added a Data Manipulation process-> Add rows to tabular Form ->On load after footer, so that when the user logins whether he entered previous values or not, he can see some empty fields, but this is not working as expected.
    Any ideas how to resolve this issue.

    Hmm other people have had this errorm found this hope it helps,
    Hi,
    Have a look at: Re: Add Row in detail table when check box is checked on a master report table as this shows how you can use javascript to clone a row

  • How can i resolve divisor is equal to zero

    hi,
    i have the situation like i am calculating the column values. in that one field divided by other. but in that divisor field have zero. for that it's giving the error.
    please help to do so...
    example: select 8/o from dual;
    error: ora-01476divisor equal to zero

    indra wrote:
    i have the situation like i am calculating the column values. in that one field divided by other. but in that divisor field have zero. for that it's giving the error.Either exclude it by adding:
    divisor != 0to WHERE clause or use:
    CASE divisor
      WHEN 0 THEN whatever_result_you_want_for_zero_divisor
      ELSE divident / divisor
    ENDSY.
    Edited by: Solomon Yakobson on Sep 19, 2011 6:47 AM

  • Ora-01476 divisor is equal to zero

    hi!
    ROUND(SUM(VALOR_VDA) / SUM(DECODE(QTDE_VDA,0,1,QTDE_VDA)),2)
    Oracle 10.2.0.1.0
    Red Hat Enterprise 5

    is this QTDE_VDA field numeric
    The only issues here with the decode is see is if the total value of all the rows when summed is 0 - zero then you will have zero-divide error
    SS
    Message was edited by:
    user478316

  • ORA-01476: divisor equal to zero

    When I try to run this query I get error 'ORA-01476: divisor equal to zero'. How can I write the query so it understand that it not should use Sum(SalesQuantity)=0 And Sum(Net_Sales)=0 in the Case?
    SELECT year_month, customer,
    (Sum(Case When record_type NOT IN ('B', 'E') And NET_SALES <> '0' Then NET_SALES Else Null End)/
    Sum(Case When record_type NOT IN ('R', 'P') And SALES_QUANTITY <> '0' Then SALES_QUANTITY Else Null End)) As Test
    Where Period_date Between to_date('2007-01-01','yyyy-mm-dd') And to_date('2007-09-30','yyyy-mm-dd')
    FROM tbltest
    Group By year_month, customer

    I generally use
    whatever / NULLIF(expression, 0)Message was edited by:
    William Robertson

  • Divisor by zero error...pls suggest

    Howdy folks,
    First message in this forum and newbie to oracle
    I am getting divisor by zero error for the following simple query. can some one suggest other ways of doing this math query instead?
    SELECT COUNT(*),ROUND(sum(A.MONTH_TO_MATURITY*A.PRIN_BAL)/SUM(A.PRIN_BAL),3) FROM MPF.LOAN_HISTORY A WHERE A.PRODUCTCODE = 'FX20'
    thanks much
    nath

    select count(*),
      round (sum(a.month_to_maturity * a.prin_bal) / nullif(sum(a.prin_bal), 0), 3)
    from mpf.loan_history a
    where a.productcode = 'fx20'

  • Divisor is equal to 0

    Hi
    Im having a problem doing a division calculation, i get the error divisor is equal to 0.
    select
    project,
    week_beginning          week_no,
    actual_quantity,
    planned_quantity,
    round ( sum  (actual_quantity) over (partition by week_beginning order by week_beginning asc rows unbounded preceding)  /
           sum  (planned_quantity)   over (partition by week_beginning order by week_beginning asc rows unbounded preceding) ,2)     cum_actual_quantity,
    sum(planned_quantity) over (partition by week_beginning order by week_beginning asc rows unbounded preceding)       cum_planned_quantity Marco

    That means your denominator is equal to zero.
    for a simple example try
    selct 2/0 from dual will give you the same error.
    One workaround is use the decode.
    Ex: select decode(denom,0,0,x/denom) from tab_name

  • How can I set my y-intercept (b) equal to zero retina macbook 2014

    Hello everyone,
    I hope you can reply to my question before 11:55p.m. today because that is when my report is due. I graphed my scatter plot and got my trend line, but my professor wants the class to set the y-intercept, the (b) from y=mx+b to zero. Can you guide me step by step on how to do that? I tried clicking on the Data section, then x-value, typed zero, but my graph disappeared. I am supposed to be using Excel for this, but I only have numbers. Can you set the y-int equal to zero using Numbers as well?

    Hi Theonlymary,
    The LINEST function returns an array of the statistics for a straight line that best fits the given data using the least squares method.
    LINEST(known-y-values, known-x-values, nonzero-y-intercept, more-stats)
    Type = in a spare cell to bring up the Function Panel. Type LINEST in the search box to see help on that function.
    I don't use LINEST but it seems you can get extra stats from an array that it returns.
    It won't change your graph (it doesn't  need a graph).
    Regards,
    Ian.

  • Manual accrual net value equal to zero

    Hi SD gurus,
    i'm creating manual accrual SD document strating from rebate agreement.
    The value of the document created is equal to zero and i found no way to correct this; the strange is that i'm able to invoice the document and to post it in FI and the values of Rebate are correctly updated.
    can anyone suggest any trick or oss notes?
    Thanks a lot and  regards
    C*

    well u can trouble shoot for ur self
    in sales order select the item double click on it choose conditions in this tab down there is analysis click on tht
    in analysis on left hand side  ur with ur pricing procedure ok
    select ur price cond ( pr00 ) then open the treee and slect the cond rec and read the message on right hand side...
    it says con rec missing or found or ignored depending on tht u can slove ur problem .

  • Oracle 10g GetMetricData Division by Zero Error

    Windows Server 2000 (SP4)
    Oracle 10gR1 (10.1.0.2.0)
    ASM enabled
    Using advice found:
    http://www.dbazine.com/blogs/blog-cf/chrisfoot/blogentry.2005-09-17.7657940139
    http://www.dbazine.com/blogs/blog-cf/chrisfoot/10goemlessons
    on this forum and other places, I have more or less restored functionality to my 10g EM console. The upload process appears to be working normally and the web interface works for just about everything except the "Home" tab. I also cannot reach the ASM page to perform ASM functions.
    Here are the most recent entries from the emagent.trc file.
    2006-03-22 08:25:54 Thread-3020 WARN upload: FxferSend: received http error in header from repository: http://MYSERVER.MYDOMAIN.lcl:5500/em/upload/
         ERROR-400|ORA-20206: Target does not exist: Agent does not exist for http://MYSERVER.MYDOMAIN.LCL:1830/emd/main
         ORA-06512: at "SYSMAN.EMD_LOADER", line 1662
    ORA-06512: at line 1
    2006-03-22 08:25:54 Thread-3020 ERROR upload: Failed to upload file A0000001.xml, ret = -2
    2006-03-22 08:25:54 Thread-3020 ERROR upload: 3 Failures in a row for A0000001.xml, we give up
    2006-03-22 08:25:54 Thread-3020 ERROR upload: Error in uploadXMLFiles. Trying again in 300.00 seconds.
    2006-03-22 08:26:13 Thread-3528 WARN http: 392,-1: nmehl_httpListener: signaled to exit from emctl
    == Restarted ===
    2006-03-22 08:30:17 Thread-3376 WARN command: Job Subsystem Timeout set at 600 seconds
    2006-03-22 08:30:17 Thread-3376 WARN upload: Upload manager has no Failure script: disabled
    2006-03-22 08:30:17 Thread-3376 WARN upload: Recovering left over xml files in upload directory
    2006-03-22 08:30:17 Thread-3376 WARN upload: Recovered 0 left over xml files in upload directory
    2006-03-22 08:30:17 Thread-3376 WARN metadata: Metric collectSnapshot does not have any data columns
    2006-03-22 08:30:23 Thread-3376 WARN TargetManager: Regenerating all Metadata
    2006-03-22 08:30:24 Thread-3376 ERROR util.files: ERROR: nmeufis_new: failed in lfiopn on file: E:\oracle\product\10.1.0\db_1\MYSERVER.MYDOMAIN.lcl_SID\sysman\emd\agntstmp.txt. error = 2 (No such file or directory)
    2006-03-22 08:30:24 Thread-3376 WARN collector: the column name tabscanall_ps in this condition does not exist
    2006-03-22 08:30:24 Thread-3376 WARN collector: the column name tabscanall_pt in this condition does not exist
    2006-03-22 08:30:24 Thread-3376 ERROR recvlets: Inserted target oracle_database SID.pcs.url.com into hash table
    2006-03-22 08:30:56 Thread-3816 ERROR util.files: nmeufile_getLength: Error in lfilen. Error = 2 (No such file or directory)
    2006-03-22 08:32:20 Thread-3416 ERROR fetchlets.oslinetok: Process stderr = Illegal division by zero at E:\oracle\product\10.1.0\db_1\sysman\admin\scripts/semd_common.pl line 144.
    2006-03-22 08:32:20 Thread-3416 ERROR engine: [oracle_database,SID.pcs.url.com,dumpFull] : nmeegd_GetMetricData failed : Illegal division by zero at E:\oracle\product\10.1.0\db_1\sysman\admin\scripts/semd_common.pl line 144.
    2006-03-22 08:32:24 Thread-3416 ERROR fetchlets.oslinetok: Process stderr = Illegal division by zero at E:\oracle\product\10.1.0\db_1\sysman\admin\scripts/semd_common.pl line 144, <STDIN> line 2.
    2006-03-22 08:32:24 Thread-3416 ERROR engine: [oracle_database,SID.pcs.url.com,archFull] : nmeegd_GetMetricData failed : Illegal division by zero at E:\oracle\product\10.1.0\db_1\sysman\admin\scripts/semd_common.pl line 144, <STDIN> line 2.
    2006-03-22 08:47:20 Thread-3476 ERROR fetchlets.oslinetok: Process stderr = Illegal division by zero at E:\oracle\product\10.1.0\db_1\sysman\admin\scripts/semd_common.pl line 144.
    2006-03-22 08:47:20 Thread-3476 ERROR engine: [oracle_database,SID.pcs.url.com,dumpFull] : nmeegd_GetMetricData failed : Illegal division by zero at E:\oracle\product\10.1.0\db_1\sysman\admin\scripts/semd_common.pl line 144.
    2006-03-22 08:47:23 Thread-3476 ERROR fetchlets.oslinetok: Process stderr = Illegal division by zero at E:\oracle\product\10.1.0\db_1\sysman\admin\scripts/semd_common.pl line 144, <STDIN> line 2.
    2006-03-22 08:47:23 Thread-3476 ERROR engine: [oracle_database,SID.pcs.url.com,archFull] : nmeegd_GetMetricData failed : Illegal division by zero at E:\oracle\product\10.1.0\db_1\sysman\admin\scripts/semd_common.pl line 144, <STDIN> line 2.
    And here are the entries from the emoms.log file.
    2006-03-22 08:28:55,562 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.256 - Integration Class not found: oracle.sysman.ias.ias.IASIntegration
    2006-03-22 08:28:56,000 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.256 - Integration Class not found: oracle.sysman.eml.target.slb.common.SLBIntegration
    2006-03-22 08:28:56,187 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.256 - Integration Class not found: oracle.sysman.eml.ssl.intg.SSLIntegration
    2006-03-22 08:28:56,343 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.256 - Integration Class not found: oracle.tip.oem.central.domain.ProcessConnectDomainIntg
    2006-03-22 08:28:56,343 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.256 - Integration Class not found: oracle.tip.oem.central.instance.ProcessConnectInstanceIntg
    2006-03-22 08:28:56,359 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.256 - Integration Class not found: oracle.webdb.admin.em.PortalIntegration
    2006-03-22 08:28:56,359 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.256 - Integration Class not found: oracle.webdb.admin.em.SSOIntegration
    2006-03-22 08:28:56,375 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.256 - Integration Class not found: oracle.reports.em.RepIntg
    2006-03-22 08:28:56,375 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.256 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsEmailIntegration
    2006-03-22 08:28:56,375 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.256 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsOidIntegration
    2006-03-22 08:28:56,390 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.256 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsOvfIntegration
    2006-03-22 08:28:56,390 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.256 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsWebconfIntegration
    2006-03-22 08:28:56,406 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.256 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsWirelessIntg
    2006-03-22 08:28:56,406 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.256 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsCalGrpIntegration
    2006-03-22 08:31:28,171 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:31:28,218 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:32:28,218 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:32:28,218 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:33:28,218 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:33:28,218 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:34:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:34:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:35:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:35:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:36:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:36:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:37:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:37:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:38:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:38:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:39:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:39:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:40:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:40:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:41:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:41:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:42:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:42:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:43:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:43:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:44:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:44:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:45:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:45:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:46:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:46:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:47:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:47:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:48:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:48:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:49:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:49:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:50:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:50:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:51:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:51:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:52:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:52:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:53:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:53:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:54:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:54:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:55:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:55:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:56:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:56:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:57:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:57:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:58:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:58:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 08:59:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 08:59:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 09:00:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 09:00:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 09:01:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 09:01:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 09:02:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 09:02:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    2006-03-22 09:03:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.476 - Number of HB error responses received = 1
    2006-03-22 09:03:28,281 [PingHeartBeatRecorder] ERROR emdrep.pingHBRecorder updateEMDListHeartBeat.485 - ERROR 0 EMD_URL = http://MYSERVER.MYDOMAIN.lcl:1830/emd/main CODE = 0 MSG = ORA-01403: no data found
    Here is the status from the sysman.emd_ping table:
    Agent is Unreachable (REASON = Connection refused: connect). Host is unreachable (REASON = Internal Error pinging the host for EMD_URL http://MYSERVER.MYDOMAIN.lcl:1830/emd/main.CreateProcess: /usr/sbin/ping MYSERVER.MYDOMAIN.lcl error=3)
    Finally, from the SYSMAN.MGMT_TARGETS table, I see the following statuses for the various target types
    Target_type; Last_load_time
    oracle_emrep; 22-MAR-06
    oracle_emd; 22-MAR-06
    host; 13-OCT-04
    oracle_database; 13-OCT-04
    oracle_listener; 13-OCT-04
    osm_instance; 13-OCT-04
    Any thoughts or additional suggestions?? I have been working on getting the EM console back up and fully functional for several days. I am more of a 9i type, not 10g.
    Yes, it's been 18 months since this last worked; what can I say? I inherited this server from a vendor.
    Regards,
    hmscott
    Does anyone have

    A couple of updates:
    1. I found a perl script file in the sysman\admin\scripts folder called semd_common.pl. I found the line number referenced in the log file. Apparently, the $total variable (representing disk space, I think) is not set properly. When I hard coded it to a fixed value and restarted the dbConsole, I stopped getting the division by zero error.
    Not a good solution, but maybe a step sideways. I'd like to remove my edit, but one thing at a time.
    2. I found another error message in the OracleDBConsoleSIDwebsrvc.log file:
    03/22/06 14:44:23 Received exitCode 1 from emctl istatus
    Googling this particular message did not reveal a whole lot to me.
    Any more ideas? Anyone?
    Regards,
    hmscott

Maybe you are looking for