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'

Similar Messages

  • 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

  • Division cannot be carried out because divisor is zero - EA00

    hi,
    While doing EA00 transaction following error occurs:
    During billing simulation, a termination occurs with message AJ020 (Division cannot be carried out because divisor is zero) or AJ097 (Unexpected termination in variant &1 in schema &2)
    I gone through the note 402960
    Note says, The termination can occur, for example, when
    1) you choose pushbutton "Overall check" on the move-in screen,
    2) the move-out date of a contract is equal to the move-in date,
    3) one-day time slices are to be billed
    The overall check in the move-in is called with a one-day time slice.That is, the move-in date is selected as the to-date.
    Solution
    Correct your billing schema.
    Use IF nestings to make sure that only schema steps, which can also be executed with zero values, are executed. For example,a division by zero should be avoided.
    My problem is I did not understood what exactly has to change in schema.pls help???
    Regards,
    Chetan

    Can you mention the variant Program you are using on this step. The Divisor operand value seems to have become zero. You may need to check how this operand value is being populated.

  • 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

  • [SOLVED] Error: PLS-00707: unsupported construct or internal error [2603]

    Hi all,
    I have a SP, when I try to compile with sqldeveloper I have this error
    Error: PLS-00707: unsupported construct or internal error [2603]
    If I change "CREATE OR REPLACE PROCEDURE getsimilar AS" with DECLARE (anonymous block) the code work perfectly...
    What am I doing wrong?
    this is SP
    CREATE OR REPLACE PROCEDURE getsimilar AS
    id NUMBER;
    score NUMBER;
    image ORDSYS.ORDImage;
    query_signature ORDSYS.ORDImageSignature;
    queryimg ORDSYS.ORDIMAGE;
    CURSOR getphotos IS
    SELECT id, ORDSYS.IMGScore(123) SCORE FROM imgstable WHERE
    ORDSYS.IMGSimilar(sign, query_signature,
    'color="1.00" shape="1.00" texture="1.00" location="1.00"',20,123) = 1 order by SCORE desc;
    BEGIN
    queryimg := ORDSYS.ORDIMAGE.init('FILE','BDMVFSUPLOADSEARCHTMP','test.jpeg');
    query_signature := ORDSYS.ORDIMAGESIGNATURE.init();
    DBMS_LOB.CREATETEMPORARY(query_signature.signature, TRUE);
    query_signature.generateSignature(queryimg);
    OPEN getphotos;
    LOOP
    FETCH getphotos INTO id, score;
    EXIT WHEN getphotos%NOTFOUND;
    DBMS_OUTPUT.PUT_LINE('Image with ID ' || id || ' matches query image. score:' || score);
    END LOOP;
    CLOSE getphotos;
    DBMS_LOB.FREETEMPORARY(query_signature.signature);
    END;
    Edited by: Reny on 4-apr-2011 6.22

    Hi
    Try creating the procedure without the positional notation in your function call in the cursor (BTW, the positional params should be specified as <param> => <value>, not <param> = <value>). i.e just pass the values to your functional call as shown below and see if it works. Is this what you intend to do?
    I also suggest that you try and compile the procedure in SQLPLUS.
    CREATE OR REPLACE PROCEDURE getsimilar AS
    id NUMBER;
    score NUMBER;
    image ORDSYS.ORDImage;
    query_signature ORDSYS.ORDImageSignature;
    queryimg ORDSYS.ORDIMAGE;
    CURSOR getphotos IS
    SELECT id, ORDSYS.IMGScore(123) SCORE FROM imgstable WHERE
    ORDSYS.IMGSimilar(sign, query_signature,
    '1.00', '1.00', '1.00','1.00',20,123) = 1 order by SCORE desc;
    BEGIN
    queryimg := ORDSYS.ORDIMAGE.init('FILE','BDMVFSUPLOADSEARCHTMP','test.jpeg');
    query_signature := ORDSYS.ORDIMAGESIGNATURE.init();
    DBMS_LOB.CREATETEMPORARY(query_signature.signature, TRUE);
    query_signature.generateSignature(queryimg);
    OPEN getphotos;
    LOOP
    FETCH getphotos INTO id, score;
    EXIT WHEN getphotos%NOTFOUND;
    DBMS_OUTPUT.PUT_LINE('Image with ID ' || id || ' matches query image. score:' || score);
    END LOOP;
    CLOSE getphotos;
    DBMS_LOB.FREETEMPORARY(query_signature.signature);
    END;Edited by: GG on Apr 4, 2011 11:25 AM
    Edited by: GG on Apr 4, 2011 11:34 AM

  • Anyone pls suggest where i can found PrecompliedheaderMac.mcp project settings

    hi all,
    i am trying to load automationfilter mcp...but it is giving some errors..like
    PhotoshopSDKDebug.ch canot be opend..and preproceessor error directive..
    anyone pls suggest where i can found PrecompliedheaderMac.mcp project settings
    pls help in this regard..
    harish

    Look in the samplecode/common section. I think the pre-compiled header project is in there. You can remove the dependancy on the pre-compiled header project all together. (I would recommend it as later versions of the SDK dropped that.)

  • PATTERN is driving me crazy, pls. suggest me good syntax

    Hello
    Bcz of i placed PATTERN under DISPLAY tab, am getting errosrs like "Integer has too many digits", "Empty is too long"...I am guessing these are all bcz of some SPACES on these value fields, but not sure from where these spaces are coming? may be user entered some value and just moved the cursor/space bar right hand side, not sure, how to truncate space in BINDING tab's pattern?
    I have 12 value fields in my form, they are for quantities, volumes, price, amounts. I put them as Decimal fields and each field has its own length, as mentioned below
    1) Volume field - Decimal field - Limit leading digits as 15 and Limit trailing digits as 3
    I put the Pattern only on Display tab as below (I didn't put any pattern any other tab, like Binding, Edit, Valiodation tabs)
    By selecting the num.integer on SELECT TYPE left side, I put as below
    null{}|zero{}|num.integer{}
    (Checked Allow Empty, Allow Zeros check boxes)
    Pls. help me by telling What is the correct syntax i need to put here?
    Do i need to put pattern also any other tab, like under BINDING tab, if so, psl. let me know the syntax?
    By selecting the num.decimal on SELECT TYPE left side, I put as below
    null{}|zero{}|num.decimal{}
    (Checked Allow Empty, Allow Zeros check boxes)
    Pls. help me by telling What is the correct syntax i need to put here?
    Do i need to put pattern also any other tab, like under BINDING tab, if so, psl. let me know the syntax?
    2) Price field - Decimal field - Limit leading digits as 14 and Limit trailing digits as 4
    Pls. help me by telling What is the correct syntax i need to put here?
    Do i need to put pattern also any other tab, like under BINDING tab, if so, psl. let me know the syntax?
    Pls. help me by telling What is the correct syntax i need to put here?
    Do i need to put pattern also any other tab, like under BINDING tab, if so, psl. let me know the syntax?
    3) Subsidy in % field - Decimal field - Limit leading digits as 2 and Limit trailing digits as 2
    Pls. help me by telling What is the correct syntax i need to put here?
    Do i need to put pattern also any other tab, like under BINDING tab, if so, psl. let me know the syntax?
    Pls. help me by telling What is the correct syntax i need to put here?
    Do i need to put pattern also any other tab, like under BINDING tab, if so, psl. let me know the syntax?
    Thank you

    Thank you.
    Pls. let me know
    1) My understading from your answer is, i need NOT to put any PATTERN in BINDING tab? am i correct?
    2) Sure, i will put the suggested below syntax, but pls. let me know do i need to select any entry from the left side box (as shown in the black box in below screen shot?) and then i put the suggested below syntax/patern? or i don't need to select any entry from the left box as shwon in below screen shot as black box?
    null{'Enter a Number'}|num{zzz,zzz,zzz,zzz,zz9.999}
    3) For example, if i select num.deciaml {} option.....then the blue high lighted part is coming as trail part to the syntax? is it OK, let it come?
    4) So, i guess, for 2 leading and 2 training length, i need to put below pattern, am i correct?
    null{}|num{z9.99}
    Edit pattern would be for 2,2 is as below, am i correct?
    null{}|num{z9.888}
    5) Do i need to check the ALLOW EMPTY and ALLOW ZERO check boxes? or not?
    6) By chance, if user put spaces, then I want to truncate spaces / delete the spaces in the middle of data or anywhere in the data/field, so can i use as below? if not, pls. suggest me for get rid off spaces from anywhere in the field, bcz i am guessing these crap spaces is causing an issues for me
    null{'No data'}|num{zzz,zzz,zzz,zzz,zz9.999}
    Thank you

  • Numeric or value error: hex to raw conversion error , pls help

    I am having problem with a sproc which accepts a Raw parameter.
    I have a table called Profile:
    CREATE TABLE PROFILES
    PROFILEID INTEGER NOT NULL,
    USERID INTEGER NOT NULL,
    PROFILE RAW(255)
    and a sproc named addprofile
    CREATE OR REPLACE PROCEDURE addprofile
    profile IN RAW,
    userName IN VARCHAR2
    AS
    userId INT;
    BEGIN
    GetUserIdByName( userName, userId);
    INSERT INTO Profiles
    ( ProfileID,userId , profile )
    VALUES ( Profiles_ProfileID_SEQ.NEXTVAL,AddProfile.userId ,
    AddProfile.profile );
    END;
    I am calling the Ent Library's Insert profile method which is part of DbProfileProvider.cs (Security App block). It is trying to persist a serialized profile object into the database.
    private void InsertProfile(string userName, byte[] serializedProfile,
    Data.Database securityDb, IDbTransaction transaction)
    DBCommandWrapper cmd = securityDb.GetStoredProcCommandWrapper
    (SPAddProfile);
    cmd.AddInParameter("userName", DbType.String, userName);
    cmd.AddInParameter("profile", DbType.Binary, serializedProfile);
    securityDb.ExecuteNonQuery(cmd, transaction);
    I get the following error:
    Any suggestion on what needs to be changed to get this working? thanks!
    Exception Details: Oracle.DataAccess.Client.OracleException: ORA-06502: PL/SQL: numeric or value error: hex to raw conversion error ORA-06512: at line 1
    Stack trace:
    [OracleException: ORA-06502: PL/SQL: numeric or value error: hex to raw conversion error
    ORA-06512: at line 1]
    Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure)
    Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, String procedure, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src)
    Oracle.DataAccess.Client.OracleCommand.ExecuteNonQuery()
    Microsoft.Practices.EnterpriseLibrary.Data.Database.DoExecuteNonQuery(DBCommandWrapper command)
    Microsoft.Practices.EnterpriseLibrary.Data.Database.ExecuteNonQuery(DBCommandWrapper command, IDbTransaction transaction)
    Microsoft.Practices.EnterpriseLibrary.Security.Database.DbProfileProvider.InsertProfile(String userName, Byte[] serializedProfile, Database securityDb, IDbTransaction transaction)
    Microsoft.Practices.EnterpriseLibrary.Security.Database.DbProfileProvider.SetProfile(IIdentity identity, Object profile)
    [InvalidOperationException: Error saving the profile for the following user 'test'.]
    Microsoft.Practices.EnterpriseLibrary.Security.Database.DbProfileProvider.SetProfile(IIdentity identity, Object profile)
    EntLibSecuritySample.DFO.Security.SecurityHelper.SetUserProfile(IIdentity identity, Object Profile) in C:\DFO\Sample\Security\EntLibSecuritySample\SecurityHelper.vb:285
    [ApplicationException: An error has occurred saving profile object to Datastore. See stack trace for further information]
    EntLibSecuritySample.DFO.Security.SecurityHelper.SetUserProfile(IIdentity identity, Object Profile) in C:\DFO\Sample\Security\EntLibSecuritySample\SecurityHelper.vb:287
    EntLibSecuritySample.ProfilePage.cmdSaveProfile_Click(Object sender, EventArgs e) in C:\DFO\Sample\Security\EntLibSecuritySample\profile.aspx.vb:59
    System.Web.UI.WebControls.Button.OnClick(EventArgs e)
    System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
    System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
    System.Web.UI.Page.ProcessRequestMain() +1292

    Harsh,
    I am not a user of the Enterprise Library so I can not speak to the specifics of that. However, here is a short sample that is based on the information you've provided. Perhaps it will be useful.
    Database:
    create table profiles
      profileid integer not null,
      userid    integer not null,
      profile   raw(255)
    create or replace procedure addprofile
      p_profileid in integer,
      p_userid    in integer,
      p_profile   in raw
    as
    begin
      insert into
        profiles (profileid, userid, profile)
        values (p_profileid, p_userid, p_profile);
    end;
    /C# code:
    using System;
    using System.Data;
    using System.Text;
    using Oracle.DataAccess.Client;
    using Oracle.DataAccess.Types;
    namespace HarshTest
      /// <summary>
      /// Summary description for Class1.
      /// </summary>
      class Class1
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main(string[] args)
          // connect to local db using o/s authentication
          OracleConnection con = new OracleConnection("User ID=/; Pooling=False");
          con.Open();
          // create command object and set properties
          OracleCommand cmd = new OracleCommand();
          cmd.Connection = con;
          cmd.CommandText = "ADDPROFILE";
          cmd.CommandType = CommandType.StoredProcedure;
          // parameter object for profileid
          OracleParameter p_profileid = new OracleParameter();
          p_profileid.OracleDbType = OracleDbType.Int32;
          p_profileid.Value = 1;
          p_profileid.Direction = ParameterDirection.Input;
          // parameter object for userid
          OracleParameter p_userid = new OracleParameter();
          p_userid.OracleDbType = OracleDbType.Int32;
          p_userid.Value = 1;
          p_userid.Direction = ParameterDirection.Input;
          // create a byte array for the raw value
          ASCIIEncoding encoder = new ASCIIEncoding();
          byte[] byteArray = encoder.GetBytes("TestProfile");
          // parameter object for profile
          OracleParameter p_profile = new OracleParameter();
          p_profile.OracleDbType = OracleDbType.Raw;
          p_profile.Value = byteArray;
          p_profile.Direction = ParameterDirection.Input;
          // add parameters to collection
          cmd.Parameters.Add(p_profileid);
          cmd.Parameters.Add(p_userid);
          cmd.Parameters.Add(p_profile);
          // execute the stored procedure
          try
            cmd.ExecuteNonQuery();
          catch (OracleException ex)
            Console.WriteLine(ex.Message);
          // clean up objects
          p_profile.Dispose();
          p_userid.Dispose();
          p_profileid.Dispose();
          cmd.Dispose();
          con.Dispose();
    }Maybe the part about creating the byte array is what you are missing...
    - Mark

  • Hi  urgent pls suggest when i press enter the data disappears...

    hi
    i have develop,ed a module pool for table maintianece
    in which  there are theree fields
    customer number name  email id
    now when i dont press enter at first field ie customer number after entering all data
    and save the data is saved properly for all three fields
    but if after e ntering the customer number i press enter and then enter name and email id
    and save the data for email is not saved and also if i just press enter again the data in email id column which i entered disappears
    can anyone suggest reason and solution for it
    regards
    Arora

    hi
    here is my code
    PROCESS BEFORE OUTPUT.
      LOOP   WITH CONTROL TABLE_ZCUST_EM_CREATE."AT T_ZCUST_EM_CREATE
        MODULE STATUS_0200.
      ENDLOOP.
    *Process after input
    PROCESS AFTER INPUT.
      MODULE CANCEL_200 AT EXIT-COMMAND.
      LOOP WITH CONTROL TABLE_ZCUST_EM_CREATE ."AT T_zcust_em_CREATE ." .".
       MODULE USER_COMMAND_0200.
        CHAIN.
          FIELD t_ZCUST_EM_create-ship_to .
         MODULE set_field_validation ON CHAIN-REQUEST.
        ENDCHAIN.
        MODULE USER_COMMAND_0200.
      ENDLOOP.
    here ship_to is customer number
    ship_to_name is name
    and email id is email id field
    pls suggest on this code also if u want i can give code for the module validation and user commarnd 2000
    as below
    MODULE STATUS_0200 OUTPUT.
      w_lines_200 = sy-loopc.
    *Reading table t_zcust_em_create for screen 200.
      read table t_zcust_em_create
        index table_zcust_em_create-current_line.
    *Refreshing The Internal table 't_zcust_em_temp'
      refresh:t_zcust_em_temp.
    ENDMODULE. 
    MODULE set_field_validation INPUT.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
                EXPORTING
                   INPUT         = t_zcust_em_create-ship_to
                IMPORTING
                    OUTPUT       = t_zcust_em_create-ship_to.
      select single kunnr from kna1 into v_kunnr
              where kunnr = t_zcust_em_create-ship_to.
          if sy-subrc = 0.
           select single name1 from kna1 into t_zcust_em_create-ship_to_name
           where kunnr = t_zcust_em_create-ship_to.
          else.
          t_gui1-fcode = 'BACK'.
          append t_gui1.
          t_gui1-fcode = 'EXIT'.
          append t_gui1.
          t_gui1-fcode = 'SAVE'.
          append t_gui1.
          SET PF-STATUS 'AIMS_200' excluding t_gui1.
          message E002 with t_zcust_em_create-ship_to.
             endif. "kna1
    ENDMODULE.                 " set_field_validation  INPUT
    MODULE USER_COMMAND_0200 INPUT.
    *Setting it for select/deselect entries
      move:t_zcust_em_create to t_zcust_em_create_sel.
      append t_zcust_em_create_sel.
      clear:t_zcust_em_create_sel.
    *Getting internal table t_zcust_em_create with control
      read table t_zcust_em_create
             with key ship_to = t_zcust_em_create-ship_to.
    *Getting internal table for create entries: screen-200
      if sy-subrc ne 0 and t_zcust_em_create-ship_to ne space .
        append  t_zcust_em_create     .
        move:t_zcust_em_create to t_zcust_em_create_tmp.
        append t_zcust_em_create_tmp .
        clear:t_zcust_em_create_tmp  ,
              t_zcust_em_create      .
      endif.
      clear:t_cols.
    *Getting the value of  w_fill_200.
      describe table t_zcust_em_create lines w_fill_200.
    ENDMODULE.                 " USER_COMMAND_0200  INPUT
    PLEASE SUGGEST
    REGARDS
    ARORA
      module read_table_value_0200.

  • [Error] PLS-00049 (6: 19): PLS-00049: bad bind variable 'NEW.T1NAM'

    1. create table t1
    (t1ID int,
    t1nam varchar2(33)
    2. create or replace view t1t2t3
    t1id, t1name, t2id, t2nam, t2cty, t2st, aid, aname, bid, bname, t3id, t3nam
    as
    select * from t1, t2, t1 a, t1 b, t3
    where t1.t1ID = t2.id(+)
    and T2.CTY = a.t1ID(+)
    and t2.sty = b.t1ID(+)
    and t1.t1ID = t3.t3id(+)
    3. CREATE OR REPLACE TRIGGER t1t2t3
    INSTEAD OF INSERT or update
    ON t1t2t3
    BEGIN
    insert into t1
    values(:new.t1ID, :new.t1nam);
    END t1t2t3;
    Get error:
    [Error] PLS-00049 (6: 19): PLS-00049: bad bind variable 'NEW.T1NAM'
    Pls advise. I am using Toad.
    Thanks.

    tnam1 not belongs to t1t2t3.
    :new should be used to te columns of the table on which you are writing the trigger.
    Here i think t1t2t3 has t1name field you have to use :new.t1name instead of :new.t1nam(which belongs to table t1)

  • I have lost my facetime option when moved to another country. pls suggest how can i get it back

    Hi ,
    Recenlty i have bouhgt  new iphone5s from middle east . When i was using the phone over there the facetime was working perfect for me .
    Now when i moved to another country i can not see the facetime option in the iphone .
    Could you pls suggest how can i get it back .

    Hi Stedman ,
    Thanks for the information !!
    I have checked the article and i can clear see that my Wireless carrier support the facetime feature
    so what could be the reason am not able to use the facetime option .

  • Divide by zero error encountered

    Dear All,
    When our customer process PO, they got an error like below:
    Divide by zero error encountered. Tax definition [ovcg]
    They also got Divide by zero error encountered. Outgoing payments  [ovpm]
    They can process their business but we need to know why and how to fix this error for them.
    Any idea? Thanks.
    Regards,
    Yuka

    Hi,
    You need to check the FMS defined on the row level of the document you want to add.
    Remove the FMS and you will not get the error message reported.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • Getting error PLS-00307: too many declarations while instantiating object.

    Hi,
    I'm using oracle 10.2.0.4.0
    I've created an object obj_bsk as follows:
    create or replace type obj_bsk as object
    (batch_set_key varchar2(64),
    constructor function obj_bsk
    return self as result,
    constructor function obj_bsk(p_batch_set_key in varchar2)
    return self as result,
    member procedure display_batch_set_key
    and object body as
    create or replace type body obj_bsk as
    constructor function obj_bsk
    return self as result is
    begin
    self.batch_set_key := sys_guid();
    return;
    end;
    constructor function obj_bsk (p_batch_set_key varchar2)
    return self as result is
    begin
    self.batch_set_key := p_batch_set_key;
    return;
    end;
    member procedure display_batch_set_key is
    begin
    dbms_output.put_line('batch_set_key is:' || self.batch_set_key);
    end;
    end;
    Then I've created a package test_obj as follows:
    specification:
    create or replace package test_obj is
    -- Author : TSHARMA
    -- Created : 31/01/2012 10:32:37
    -- Purpose : to test objects
    my_bsk obj_bsk;
    g_batch_set_key varchar2(64);
    procedure show_obj_val;
    end test_obj;
    body:
    create or replace package body test_obj is
    procedure show_obj_val is
    begin
    my_bsk.display_batch_set_key();
    end;
    begin
    -- Initialization
    if (g_batch_set_key is not null) then
    my_bsk := obj_bsk(g_batch_set_key);
    else
    my_bsk := obj_bsk();
    end if;
    end test_obj;
    When I'm compiling the package I'm getting following error:
    Compilation errors for PACKAGE BODY TSHARMA.TEST_OBJ
    Error: PLS-00307: too many declarations of 'OBJ_BSK' match this call
    Line: 12
    Text: my_bsk := obj_bsk(g_batch_set_key);
    Error: PL/SQL: Statement ignored
    Line: 12
    Text: my_bsk := obj_bsk(g_batch_set_key);
    Can anyone please explain why oracle is viewing it as too many call for constructor when both constructors are different.
    and how to resolve the issue.
    Thanks
    Tarun

    I've solved the problem. Though it is strange.
    The error occurred because I'm using p_batch_set_key as parameter constructor.
    i.e. constructor function obj_bsk(p_batch_set_key in varchar2)
    return self as result,
    once I changed it to the same name as variable name in object it compiled fine.
    i.e constructor function obj_bsk(batch_set_key in varchar2)
    return self as result,
    It is very strange. Can anyone plesae explain why the parameter name should be same as variable name in object.
    Thanks
    Tarun

  • Function to replace division by zero error cells with blank cells when calculating a numeric average

    Hi everyone,
    I have a five sheet spreadsheet that uses data from four sheets to calculate numeric averages in the fifth. The problem is that there is not always data in all four sheets which produces a division by zero error in the averages sheet. Is there a function or setting in Numbers 2.3 (not yet ready to upgrade to Numbers 3) that will allow these division by zero cells to be replaced by blank cells.
    I have tried using statements of the form =AVERAGE(IFERROR(Sheet 1::Table 1:: B4,""),IFERROR(Sheet 2:: Table 1:: B4,""),Sheet 3:: Table 1:: B4,""), Sheet 4:: Table 1:: B4,"")). however instead of a division by zero error this produces an error telling me "the function AVERAGE expects that a number, date or duration but found "." ". It looks as though I will have to make about 400 changes to my sheet as these errors are in this and approximately 100 other cells!
    I am hoping that there is some way if possible of correcting these errors without having to manually edit each cell individually.
    Thanks,
    Hugh

    Hugh,
    You may want to consider an intermediate sheet to handle the errors and then pass the result on to the main sheet.
    In the following mockup, I've created a small interposing table the consists of a list of sources in column A and the result from each table. In the example, I perform some operation on those intermediate results, to be passed on to the main table. This may not be a good example, and since I don't know the overall goal of your project it's just a surrogate. (In real life we probably wouldn't be interested in finding the average of averages.)
    The expression in Summary::B2 is:
    =IFERROR(INDIRECT(A&"::B4"), "SourceError")
    Regards,
    Jerry

  • Percentage calculation and zero amount entries get dvision by zero error

    Hello, i am calculating the total of a field and then reporting the contributions of that line entry in percentage form but when a line has a zero amount i get an error of 'division by zero'.  I'll give some explamples below incase i'm not explaining very well.  If you replace the 225 under amount with 0 that is when i get the error.
    code sample..
    WhilePrintingRecords;
    numbervar n := {@Total Weight}% Sum ({@Total Weight}, {JSALES_REPORT.SOPNUMBE});
    data sample...
    Amount      % of total
    150             40%
    225             60%
    (375)

    Hi Rod.
    I'd recommend using and IF statement to deal with division by zero.  I'm not sure what you exactly want to do with records that have division 0 but I usually do the following to see which records are creating the div by zero errors and then decide how I want the values to be displayed after evaluating it.
    WhilePrintingRecords;
    if {whichever.field} = 0 then 9999999999  // this would be an indicator to me to take a look at this record
    else
    numbervar n := {@Total Weight}% Sum ({@Total Weight}, {JSALES_REPORT.SOPNUMBE}); // your original formula
    You can then change the 99999999 number to whichever number you think should be viable to answer your business question on items that are divided by 0.
    Hope this helps.

Maybe you are looking for

  • How to convert class file into exe

    I have made a simple calculator using swing.now i want it to be used as an application from the desktop..How can i do it?..any suggestions?

  • Using presentation variable in OBIEE 11g

    Hi, Is is possible to use a prompt to filter data from two sections of a dashboard? My dashbaords contains two sections , each pointing to seperate reoport. Can I filter data in the two reports using parameter selected in one prompt? If not possible

  • Carl9170 problems

    Hi everyone! I have problems with my wireless connection. It's very poor, it's delaying to load every webpage, also router's config panel. Googlying I arrived to this: https://patchwork.kernel.org/patch/2174121/ It's the same message that I've read i

  • Computer Science Student - MPB 13" i5 or i7?

    I will be starting the first year of a 4 year Computer Science course in September and wanted to know which MacBook Pro 13" model would be best for me, the i5 or the i7? Considering my CS course is 4 years, would the i7 processer model with the 8GB R

  • Data Warehouse and ETL tools for data verification ?

    Data Warehouse and ETL tools for data verification ? How need to to data verification using ETL tool ? Also how to relate this thing to datawaehouse ? Thanks in Advance