OracleDecimal and ORA-22053: overflow error

I have found an unexpected behavior when converting OracleDecimal to integer values.
// This is OK
dec = (OracleDecimal)(Int32.MinValue + 1);
Int32 i32 = (Int32)dec;
// This results in
// System.OverflowException: ORA-22053: overflow error
dec = (OracleDecimal)Int32.MinValue;
i32 = dec.ToInt32();
I get the same results for Int16 and Int64.
I get almost the same results using System.Data.OracleClient and OracleNumber: Int16.MinValue is handled as expected.
Is this a bug?
Thanks!

We did some testing and it suggests a possible rdbms bug in converting the value properly.
The initial investigation indicates that the core api is erroring out unexpectedly even though the conversion was successful.
A bug has been filed regarding this issue.

Similar Messages

  • Ora-00604:error occurred at recursive SQL level 1 and Ora-04023

    hi all
    i am using oracle linux 5.5 and oracle Database 11g R2 while shutingdown the database i am getting
    the following errors.
    SQL> shutdown immediate;
    Ora-00604:error occurred at recursive SQL level 1
    Ora-04023: object select count(*) from reg$SQL>plz can anyone help me out?

    Couple of questions related to this issue:
    1.Is there anything in alert log. Post last 50 lines from alert log.
    2.Is there any trace / log generated by Oracle ?
    3.What is Memory_Target parameter value ?
    4.What is value of statistics_level parameter ?
    5.Did you perform any failed upgradation ?
    6.Are there any invalid objects in database ?
    Generally ORA-00604 is related to insufficient size of shared pool. Now, i am googling how to get a proper value of shared pool size ? I got that there is a view v$shared_pool_advice which will tell me the answer of this question. Ok, it means now question is how do i get the proper value of shared pool from v$shared_pool_advice; i mean how do i interpret this v$shared_pool_advice view ?
    No problem docs are there to answer this question : (How i got this link ? Open a new page---http://tahiti.oracle.com---selected 11.2 docs--in the left hand sided there is a search text box i entered v$shared_pool_advice and i got couple of links)
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17110/dynviews_3037.htm#REFRN30239
    I will read these links and now i will query this and DBA_HIST_SHARED_POOL_ADVICE views, interpret the values. Ok, but what about my original question i.e. ORA-00604 and 4023 ? If i am at this stage, understood all the values, it means now i can understand the meaning / sense of resizing of shared pool.
    ALTER SYSTEM SET statistics_level=TYPICAL SCOPE=SPFILE;
    You can monitor V$SGA_RESIZE_OPS to identify the range of values that Oracle is automatically resizing the DB_CACHE_SIZE and SHARED_POOL_SIZE components to. Then, pick an appropriate minimum value based on the range. There's no "magic formula". But V$SGA_RESIZE_OPS shows the sizes that Oracle has been automatically been resizing the SGA components to. The Buffer Cache Advisory section of the AWR report or V$DB_CACHE_ADVICE, V$SHARED_POOL_ADVICE, V$SGA_TARGET_ADVICE and DBA_HIST_SGA_TARGET_ADVICE are views that provide advisory information as well. Hemant @ SGA_MAX_SIZE and SGA_TARGET how to set minimum for pools
    So, these are the baby steps if i ever gets ORA-00604 and ORA-04023 on my test database. Do all these and feel free to post the next doubt, i am sure you will get the correct answer.
    Regards
    Girish Sharma

  • Getting ora-01092 and ora-00600 error when trying to startup database

    hi friends,plz help me i am in serious problem i dont know what happen to my database oracle 11g R2 when trying to startup it
    its showing the below error
    SQL> startup
    ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance
    ORACLE instance started.
    Total System Global Area 7482626048 bytes
    Fixed Size          2214416 bytes
    Variable Size          4697622000 bytes
    Database Buffers     2751463424 bytes
    Redo Buffers          31326208 bytes
    Database mounted.
    ORA-01092: ORACLE instance terminated. Disconnection forced
    ORA-00600: internal error code, arguments: [12620], [6], [7], [], [], [], [],
    Process ID: 18088
    Session ID: 96 Serial number: 3

    This seems to be a Jumbo issue. Either you have to open a Service Request(SR) to oracle or you have to uninstall and again install the oracle DB to solve this ISSUE
    Regards
    cks
    Edited by: 874782 on Jan 17, 2012 2:58 PM

  • Data Guard Broker: errors ORA-16816 and ORA-16817 with Fast Start Failover

    Hi,
    my environment is:
    OS: Windows XP Professional Edition SP2
    DB: Oracle EE 10.2.0.3
    Primary db: orcl
    Standby db: stby
    both databases are running on the same server.
    I have configured Data Guard as described in the DG Administration Guide.
    In the Data Guard Broker I switch to 'stby' succesfully and 'stby' is the primary db and 'orcl' is the standby db.
    I switched back to 'orcl' as primary db and I get some errors:
    DGMGRL> show database 'orcl' statusreport;
    STATUS REPORT
    INSTANCE_NAME SEVERITY ERROR_TEXT
    * WARNING ORA-16817: configuration for Fast Start of Failover is not synchronized.
    DGMGRL> show database 'stby' statusreport;
    STATUS REPORT
    INSTANCE_NAME SEVERITY ERROR_TEXT
    * ERROR ORA-16816: wrong databaserole
    * WARNING ORA-16817: configuration for Fast Start of Failover is not synchronized.
    DGMGRL> show configuration;
    Configuration
    Name: DG1
    Enabled: YES
    Protection Mode: MaxAvailability
    Fast-Start Failover: ENABLED
    Databases:
    orcl - Physical standby database
    - Fast-Start Failover target
    stby - Primary database
    Current status for DG1:
    Warning: ORA-16607: one or more databases failed.
    I have searched for solutions on Metalink and google, but with no success.
    Has anyone got this kind of problem?
    Any suggestions on how to resolve it?
    Thanks

    Hi DigerDBA
    I did your advice , the error disappear, and thanks for your advice , but do I need to keep standby_file_management='AUTO' or 'MANUAL' in primary and standby init files?
    Am asking this because when I use the observer the failover failed and I get the following error
    SQL Execution error=604, sql=[ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY WAIT WITH SESSION SHUTDOWN]. See error stack below.
      ORA-00604: error occurred at recursive SQL level 1
      ORA-01275: Operation ADD LOGFILE is not allowed if standby file management is automatic.
    Complete Failover operation failed in the step when attempting to convert the database to be the new primary.
    Database Resource SetState Error (16771)
    01/07/2014 09:14:43
    Command FAILOVER TO epprod2 completed with error ORA-16771
    if possible can you advice me please?

  • ORA-01503 and ORA-01110 Errors while running adcfgclone.pl dbTier

    Hi,
    I am working on R12 on IBM AIX as I am cloning from one system to another I am facing some errors while running adcfgclone.pl for database tier.
    Following is the log from the adcfgclone.pl as it fails;
    Creating the control file for CLONE_test database ...
    SQL*Plus: Release 11.1.0.7.0 - Production on Mon Sep 6 10:32:43 2010
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Connected to an idle instance.
    ORACLE instance shut down.
    Connected to an idle instance.
    ORA-32006: USER_DUMP_DEST initialization parameter has been deprecated
    ORA-32006: BACKGROUND_DUMP_DEST initialization parameter has been deprecated
    ORACLE instance started.
    Total System Global Area 1068937216 bytes
    Fixed Size                  2160600 bytes
    Variable Size             427821096 bytes
    Database Buffers          624951296 bytes
    Redo Buffers               14004224 bytes
    CREATE CONTROLFILE REUSE SET DATABASE "CLONE"
    *+
    ERROR at line 1:
    ORA-01503: CREATE CONTROLFILE failed
    ORA-01159: file is not from same database as previous files - wrong database id
    ORA-01110: data file 22: '/u04/oracle/proddata/applsysx01.dbf'
    alter database open resetlogs
    *+
    ERROR at line 1:
    ORA-01507: database not mounted
    alter tablespace TEMP add tempfile '/u03/oracle/proddata/temp01.dbf' REUSE
    *+
    ERROR at line 1:
    ORA-01109: database not open
    ALTER DATABASE RENAME GLOBAL_NAME TO "CLONE.testcom.com"
    *+
    ERROR at line 1:
    ORA-01109: database not open
    ORA-01507: database not mounted
    ORACLE instance shut down.
    Connected to an idle instance.
    ORA-32006: USER_DUMP_DEST initialization parameter has been deprecated
    ORA-32006: BACKGROUND_DUMP_DEST initialization parameter has been deprecated
    ORACLE instance started.
    Total System Global Area 1068937216 bytes
    Fixed Size                  2160600 bytes
    Variable Size             427821096 bytes
    Database Buffers          624951296 bytes
    Redo Buffers               14004224 bytes
    ORA-03113: end-of-file on communication channel
    Process ID: 1278120
    Session ID: 1105 Serial number: 3
    ERROR:
    ORA-03114: not connected to ORACLE
    ORA-24324: service handle not initialized
    ORA-01041: internal error. hostdef extension doesn't exist
    Connected.
    ORA-01031: insufficient privileges
    ERROR:
    ORA-01012: not logged on
    ERROR:
    ORA-01012: not logged on
    ERROR:
    ORA-01012: not logged on
    ERROR:
    ORA-01012: not logged on
    ERROR:
    ORA-01012: not logged on
    ERROR:
    ORA-01012: not logged on
    Disconnected
    exit_code=1
    Checking for errors ...
    The database has not been successfully created. Shutting down the instance ...
    SQL*Plus: Release 11.1.0.7.0 - Production on Mon Sep 6 10:33:12 2010
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Connected to an idle instance.
    ORACLE instance shut down.
    Disconnected
    +.end std out.+
    +.end err out.+
    I have checked the log for preclone from the source machine but there are no errors. Below are the last lines of preclone log file
    Zip2 - Completed native zipping sh -c "cd /u02/oracle/proddb/10.2.0/appsutil/out/PROD_testcom/; zip  -q  -y /u02/oracle/proddb/10.2.0/appsutil/clone/data/stage/adcrdb.zip -@ ; echo ERRORCODE = $? ERRORCODE_END"
    Done...
    +#############################################################+
    StageDBTier Finished at Tue Aug 31 16:50:19 GMT03:00 2010+
    Status: Completed Successfully
    +#############################################################+
    Please advice.
    Regards

    Hi user:
    1. Yes the database and lsnr were closed as the tar files were created. So, i assume thate there are no any oracle session avalibale when you copy files from source to target
    2. Yes I would also like to mention that it already had an old instance. So this is just a new clone. So, i mention you have valid entery on /etc/hosts file
    3. Please can you describe what permissions as from root user it was done as
    chown -R oratest:dba <db tier folders> If your target user is oratest than syntax seems correct, did you copy oracle_home too from source to target and this home owner is oratest again right?
    Regard
    Helios

  • Ora 600 and ora 7445 error in oracle 10g r2

    hi all,
    we are using Oracle 10g r2.
    os is windows 2003 server,
    ram is 4 gb.
    front end is java .
    we got a below mentioned errors.
    i got the RA-00600: internal error code, arguments: [qerghFetch:inc], [], [], [], [], [], [], [],
    and ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [unable_to_trans_pc] [PC:0x61F04AC9] [ADDR:0xC] [UNABLE_TO_READ] []
    and Error 0 in kwqmnpartition(), aborting txn errors.
    for aug 3 11.42.47 we got a ora 600 error after that through front end (java) users can't able to connect the database.the not able to executed the query session disconnected error.
    what is reason for theis error . how it will rectifiy.?
    pls advice.Below i attached the alret log message .
    Sun Aug 02 04:04:24 2009
    Error 0 in kwqmnpartition(), aborting txn
    Sun Aug 02 05:48:10 2009
    Error 0 in kwqmnpartition(), aborting txn
    Sun Aug 02 05:49:10 2009
    Error 0 in kwqmnpartition(), aborting txn
    Sun Aug 02 07:38:49 2009
    Thread 1 advanced to log sequence 1732
    Current log# 3 seq# 1732 mem# 0: E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO03.LOG
    Sun Aug 02 07:44:14 2009
    Error 0 in kwqmnpartition(), aborting txn
    Sun Aug 02 07:45:14 2009
    Error 0 in kwqmnpartition(), aborting txn
    Sun Aug 02 22:00:26 2009
    Thread 1 advanced to log sequence 1733
    Current log# 1 seq# 1733 mem# 0: E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO01.LOG
    Mon Aug 03 07:08:15 2009
    Thread 1 advanced to log sequence 1734
    Current log# 2 seq# 1734 mem# 0: E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO02.LOG
    Mon Aug 03 09:28:23 2009
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Mon Aug 03 09:30:27 2009
    Error 0 in kwqmnpartition(), aborting txn
    Mon Aug 03 11:42:47 2009
    Errors in file e:\oracle\product\10.2.0\admin\orcl\udump\orcl_ora_6012.trc:
    ORA-00600: internal error code, arguments: [qerghFetch:inc], [], [], [], [], [], [], []
    Mon Aug 03 13:20:00 2009
    Thread 1 advanced to log sequence 1735
    Current log# 3 seq# 1735 mem# 0: E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO03.LOG
    Mon Aug 03 16:07:07 2009
    Errors in file e:\oracle\product\10.2.0\em_2\rdbms\trace\orcl_ora_4756.trc:
    ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [unable_to_trans_pc] [PC:0x61F04AC9] [ADDR:0xC] [UNABLE_TO_READ] []
    Mon Aug 03 16:07:11 2009
    Process m000 died, see its trace file
    Mon Aug 03 16:07:11 2009
    ksvcreate: Process(m000) creation failed
    Mon Aug 03 16:08:37 2009
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Mon Aug 03 16:10:40 2009
    Error 0 in kwqmnpartition(), aborting txn
    Mon Aug 03 17:25:05 2009
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Mon Aug 03 17:27:11 2009
    Error 0 in kwqmnpartition(), aborting txn
    Mon Aug 03 17:32:19 2009
    Error 0 in kwqmnpartition(), aborting txn
    Mon Aug 03 17:33:24 2009
    Error 0 in kwqmnpartition(), aborting txn
    Mon Aug 03 18:52:08 2009
    Error 0 in kwqmnpartition(), aborting txn
    Mon Aug 03 18:54:09 2009
    Error 0 in kwqmnpartition(), aborting txn
    Mon Aug 03 19:05:33 2009
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Mon Aug 03 19:09:02 2009
    Errors in file e:\oracle\product\10.2.0\em_2\rdbms\trace\orcl_ora_5132.trc:
    ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [unable_to_trans_pc] [PC:0x7C34126B] [ADDR:0x0] [UNABLE_TO_WRITE] []
    Mon Aug 03 19:10:27 2009
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn
    Error 0 in kwqmnpartition(), aborting txn

    Hi reshumakur
    As this is your PRODUCTION system THEN_ The best help to offer in case of ORA-600, and ORA-7445 is to open SR with metalink. Submit with the SR the following
    1- Alert log
    2- Trace files (in ur case e:\oracle\product\10.2.0\admin\orcl\udump\orcl_ora_6012.trc: and e:\oracle\product\10.2.0\em_2\rdbms\trace\orcl_ora_4756.trc:)
    3- Describe what was happening when you had these errors.
    Try to avoid free help when you have ORA-600 and ORA-07445. This errors could be becuase of BUGS. Oracle Support will know this from the call stack in the trace file.
    Then Do your best to patch 10.2.0.4 and the latest CPU patch.
    Good Luck

  • ORA-03113 and ORA-01041 errors

    One of our customer is getting intermittent errors in the XA log.
    ORACLE XA: Version 8.0.5.0.0. RM name = 'Oracle_XA'.
    095809.6179..0:
    ORA-03113: end-of-file on communication channel
    095820.6179..0:
    ORA-01041: internal error. hostdef extension doesn't exist
    What could possible be wrong ?
    null

    Rajesh Mahajan (guest) wrote:
    : One of our customer is getting intermittent errors in the XA
    log.
    : ORACLE XA: Version 8.0.5.0.0. RM name = 'Oracle_XA'.
    : 095809.6179..0:
    : ORA-03113: end-of-file on communication channel
    : 095820.6179..0:
    : ORA-01041: internal error. hostdef extension doesn't exist
    : What could possible be wrong ?
    Hi Rajesh , in my opinion you lost the communication with your
    server . The server could be shutdown an restart again while
    your aplication is running or waiting for any execution. With
    Oracle Forms this happen an the forms loose the conection with
    the server , but seems that this aplication was already running.
    You only get close the forms , in NT , with the Task Manager
    and End the Task . In the Sql Plus ocuurs the same but you can
    close the section or make another conection with your database.
    I hope help you ,
    Regards
    Lourival
    null

  • Random JBO-27122 and ORA-01890 errors

    hi All,
    I am randomly getting this error. In Toad this query works always fine, but in web application raises this error from time to time (seldom). What can be a reason.
    Thanks,
    SNikiforov
    JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (SELECT WfsSignIn.SSN, BhsSatLoc.LOC_DESC SAT_LOC, WFS.PK_WFS_SIGNOUT.sf_pft_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) PftY, WFS.PK_WFS_SIGNOUT.sf_h_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) HearingY, WFS.PK_WFS_SIGNOUT.sf_vis_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) VisionY, WFS.PK_WFS_SIGNOUT.sf_v_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) VitalY, WFS.PK_WFS_SIGNOUT.sf_f_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) FitnesslY, WFS.PK_WFS_SIGNOUT.sf_MM_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) MentorY, WFS.PK_WFS_SIGNOUT.sf_Consent_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE) Consent, WFS.PK_WFS_SIGNOUT.sf_D_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) DISY, WFS.PK_WFS_SIGNOUT.sf_B_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) BloodY, WFS.PK_WFS_SIGNOUT.sf_SA_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) SAMHY, FDNY_APP_DATE -TO_DATE('25-JUL-02', 'DD-MON-RR') wtc, trunc(:P_DATE) today, :P_DOC doc, substr(WfsSignIn.SSN,6,4) SSN4, WfsSignIn.EXAM_DATE, WfsSignIn.SIGN_IN_ID, WfsSignIn.USERID, WfsSignIn.FNAME, WfsSignIn.LNAME, ComFdemp.GENDER, WfsSignIn.RANK_CODE, WfsSignIn.UNIT_CODE, ComFdemp.WORK_LOCATION, WfsSignIn.WALK_IN, ComFdemp.BIRTH_DATE, PK_WFS_SIGNOUT.sf_sign_out(WfsSignIn.SSN) Can_Sign_Out, trunc(nvl(sf_empall_age(WfsSignIn.ssn),0)) Age, case when WfsSignIn.PHYSICIAN_CHECK ='Y' then 'Yes' else 'No' end PHYSICIAN_CHECK, sf_Emp_Cand_Name (WfsSignIn.ssn) Fullname, sf_get_title_wfs (WfsSignIn.ssn) title, WfsSignIn.SIGN_OUT, WfsSignIn.ANNUAL_YR ANNUALYR, 'Y' SIGNED_IN, pk_wfs.SF_GET_STATUS(WfsSignIn.ssn) Duty, rownum FROM HRIS.WFS_SIGN_IN WfsSignIn,EMP_CAND_V ComFdemp,bhs_sat_loc BhsSatLoc WHERE (WfsSignIn.SAT_LOC=:P_SAT_LOC or :P_SAT_LOC ='AA') and WfsSignIn.SAT_LOC = BhsSatLoc.SAT_LOC_CODE(+) and ComFdemp.Ssn=WfsSignIn.Ssn and not (nvl((WfsSignIn.SIGN_OUT),'N') in (decode(:P_Table,'Signed In','Y','N'),decode(:P_Table,'Signed In','A','N'))) and ( ( ((:P_FIELD is null or :P_FIELD='SSN') and WfsSignIn.SSN like '%'||:P_PARAM)and (ComFdemp.LNAME) like '%'||UPPER(:P_FNAME) ||'%') or (:P_FIELD='Name' and (ComFdemp.FNAME) like '%'||UPPER(:P_FNAME) ||'%' ) ) and WfsSignIn.EXAM_DATE=trunc(TO_DATE(:P_DATE)) and (:P_Table='Signed In' or :P_Table='Signed Out') union select ComFdemp.SSN, '00' SAT_LOC, 'No' PftY, 'No' HearingY, 'No' VisionY, 'No' VitalY, 'No' FitnessY, 'No' MentorY, 'No' Consent, 'No' DISY, 'No' BloodY, 'No' SAMHY, FDNY_APP_DATE -TO_DATE('25-JUL-02', 'DD-MON-RR') wtc, trunc(:P_DATE) today, :P_DOC doc, substr(ComFdemp.SSN,6,4) SSN4, trunc(TO_DATE(:P_DATE)) EXAM_DATE, 0 SIGN_IN_ID, to_char(null) USERID, ComFdemp.FNAME, ComFdemp.LNAME, ComFdemp.GENDER, ComFdemp.RANK_CODE, ComFdemp.UNIT_CODE, ComFdemp.WORK_LOCATION, 'No' WALK_IN, ComFdemp.BIRTH_DATE, null Can_Sign_Out, ROUND(nvl(sf_empall_age(ComFdemp.ssn),0)) Age, 'No' PHYSICIAN_CHECK, sf_Emp_Cand_Name (ComFdemp.ssn) Fullname, sf_get_title_wfs (ComFdemp.ssn) title, 'Z' SIGN_OUT, to_number(substr(to_char(TO_DATE(:P_DATE),'MM/DD/YYYY'),7,4)) ANNUALYR, decode((select count(*) from HRIS.WFS_SIGN_IN where ssn=ComFdemp.ssn and EXAM_DATE>=trunc(TO_DATE(:P_DATE))),0,'N','Y') SIGNED_IN, pk_wfs.SF_GET_STATUS(ComFdemp.ssn) Duty, rownum from EMP_CAND_V ComFdemp WHERE (((ComFdemp.SSN like '%'||:P_PARAM and (ComFdemp.LNAME) like '%'||UPPER(:P_FNAME) ||'%') ) ) and (:P_Table<>'Signed In' and :P_Table<>'Signed Out')) QRSLT ORDER BY SAT_LOC DESC
    ORA-01890: NLS error detected
    THIS IS THE VO
    SELECT WfsSignIn.SSN,
    BhsSatLoc.LOC_DESC SAT_LOC,
    WFS.PK_WFS_SIGNOUT.sf_pft_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) PftY,
    WFS.PK_WFS_SIGNOUT.sf_h_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) HearingY,
    WFS.PK_WFS_SIGNOUT.sf_vis_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) VisionY,
    WFS.PK_WFS_SIGNOUT.sf_v_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) VitalY,
    WFS.PK_WFS_SIGNOUT.sf_f_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) FitnesslY,
    WFS.PK_WFS_SIGNOUT.sf_MM_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) MentorY,
    WFS.PK_WFS_SIGNOUT.sf_Consent_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE) Consent,
    WFS.PK_WFS_SIGNOUT.sf_D_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) DISY,
    WFS.PK_WFS_SIGNOUT.sf_B_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) BloodY,
    WFS.PK_WFS_SIGNOUT.sf_SA_check(WfsSignIn.SSN, WfsSignIn.EXAM_DATE ) SAMHY,
    FDNY_APP_DATE -TO_DATE('25-JUL-02', 'DD-MON-RR') wtc,
    trunc(:P_DATE) today,
    :P_DOC doc,
    substr(WfsSignIn.SSN,6,4) SSN4,
    WfsSignIn.EXAM_DATE,
    WfsSignIn.SIGN_IN_ID,
         WfsSignIn.USERID,
    WfsSignIn.FNAME,
    WfsSignIn.LNAME,
         ComFdemp.GENDER,
    WfsSignIn.RANK_CODE,
    WfsSignIn.UNIT_CODE,
    ComFdemp.WORK_LOCATION,
    WfsSignIn.WALK_IN,
         ComFdemp.BIRTH_DATE,
         PK_WFS_SIGNOUT.sf_sign_out(WfsSignIn.SSN) Can_Sign_Out,
    trunc(nvl(sf_empall_age(WfsSignIn.ssn),0)) Age,
    case when WfsSignIn.PHYSICIAN_CHECK ='Y' then 'Yes'
         else 'No' end PHYSICIAN_CHECK,
    sf_Emp_Cand_Name (WfsSignIn.ssn) Fullname,
    sf_get_title_wfs (WfsSignIn.ssn) title,
    WfsSignIn.SIGN_OUT,
         WfsSignIn.ANNUAL_YR ANNUALYR,
         'Y' SIGNED_IN,
         pk_wfs.SF_GET_STATUS(WfsSignIn.ssn) Duty,
    rownum
    FROM HRIS.WFS_SIGN_IN WfsSignIn,EMP_CAND_V ComFdemp,bhs_sat_loc BhsSatLoc
    WHERE (WfsSignIn.SAT_LOC=:P_SAT_LOC or :P_SAT_LOC ='AA') and WfsSignIn.SAT_LOC = BhsSatLoc.SAT_LOC_CODE(+) and ComFdemp.Ssn=WfsSignIn.Ssn and not (nvl((WfsSignIn.SIGN_OUT),'N') in (decode(:P_Table,'Signed In','Y','N'),decode(:P_Table,'Signed In','A','N'))) and
    ((:P_FIELD is null or :P_FIELD='SSN') and WfsSignIn.SSN like '%'||:P_PARAM)and (ComFdemp.LNAME) like '%'||UPPER(:P_FNAME) ||'%') or
    (:P_FIELD='Name' and (ComFdemp.FNAME) like '%'||UPPER(:P_FNAME) ||'%' )
    and
    WfsSignIn.EXAM_DATE=trunc(TO_DATE(:P_DATE)) and (:P_Table='Signed In' or :P_Table='Signed Out')
    union
    select
    ComFdemp.SSN,
    '00' SAT_LOC,
    'No' PftY,
    'No' HearingY,
    'No' VisionY,
    'No' VitalY,
    'No' FitnessY,
         'No' MentorY,
         'No' Consent,
         'No' DISY,
         'No' BloodY,
         'No' SAMHY,
    FDNY_APP_DATE -TO_DATE('25-JUL-02', 'DD-MON-RR') wtc,
    trunc(:P_DATE) today,
    :P_DOC doc,
    substr(ComFdemp.SSN,6,4) SSN4,
    trunc(TO_DATE(:P_DATE)) EXAM_DATE,
    0 SIGN_IN_ID,
         to_char(null) USERID,
    ComFdemp.FNAME,
    ComFdemp.LNAME,
         ComFdemp.GENDER,
    ComFdemp.RANK_CODE,
    ComFdemp.UNIT_CODE,
    ComFdemp.WORK_LOCATION,
    'No' WALK_IN,
         ComFdemp.BIRTH_DATE,
         null Can_Sign_Out,
    ROUND(nvl(sf_empall_age(ComFdemp.ssn),0)) Age,
    'No' PHYSICIAN_CHECK,
    sf_Emp_Cand_Name (ComFdemp.ssn) Fullname,
    sf_get_title_wfs (ComFdemp.ssn) title,
    'Z' SIGN_OUT,
         to_number(substr(to_char(TO_DATE(:P_DATE),'MM/DD/YYYY'),7,4)) ANNUALYR,
         decode((select count(*) from HRIS.WFS_SIGN_IN where ssn=ComFdemp.ssn and EXAM_DATE>=trunc(TO_DATE(:P_DATE))),0,'N','Y') SIGNED_IN,
         pk_wfs.SF_GET_STATUS(ComFdemp.ssn) Duty,
    rownum
    from EMP_CAND_V ComFdemp
    WHERE (((ComFdemp.SSN like '%'||:P_PARAM and (ComFdemp.LNAME) like '%'||UPPER(:P_FNAME) ||'%') )
    ) and
    (:P_Table<>'Signed In' and :P_Table<>'Signed Out')

    Hi,
    how likely is it that your database is version 9.0 or older ? If so, the bug is fixed in 9.0.1. If my guess didn't hit bulls eye then you may need to provide more information about your environment. Also, a reproducible pattern would be good.
    Frank

  • Error ORA-00604 AND ORA-00036

    How to resolve ora error ORA-00604 and ORA-00036.
    I am getting this error in alert.log:
    ORA-00604: ERROR OCCURED AT RECURSIVE SQL LEVEL 51
    ORA-00036: MAXIMUM NUMBER OF RECURSIVE SQL LEVELS (50) EXCEEDED.

    Did someone create an 'after servererror' trigger?
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:4018285967344
    Read the part where he provides a query to find the trigger:
    select owner, trigger_name
        from dba_triggers
       where trigger_type = 'AFTER EVENT';

  • Error in JDeveloper ver. 10.1.3.4 : JBO-27122 and ORA-01874

    Hi,
    I'm using JDeveloper 10.1.3.3.0.4157 before and when I installed version 10.1.3.4.0.4270, it's giving me an error of JBO-27122 and ORA-01874: 'time zone hour must be between -12 and 13' whenever I tried to test a view object in my App module. When I switched back to the older version 10.1.3.3.0.4157, the error does not happen. I can switched back and forth with the same project but the said error only happens with the newer version. Am I missing something? Is there something that I need to setup/install in the newer version?
    Thank you.

    Does this happen in SQL Developer universally, or only when trying to use the migration utility, etc... ?

  • ORA-00257: archiver error. and database is noarchivelog mode

    Hi,
    I've a Oracle 10.2.0.4 64bit database under Windows. The database has been from the beginning in noarchive log mode. How is it possible it's generating ora-0257 errors?
    regards,
    Ivan

    Helios and oradba,
    This is the output of archive list:
    SQL> archive log list;
    Database log mode No Archive Mode
    Automatic archival Disabled
    Archive destination d:\oradata\DBN\arch
    Oldest online log sequence 5249
    Current log sequence 5251
    On D: there is 10 Gbyte free space. And the error in the alert-log is:
    Thu Oct 06 08:30:37 2011
    Errors in file d:\oracle\product\10.2.0\admin\dbn\bdump\dbn_j000_3612.trc:
    ORA-12012: error on auto execute of job 143
    ORA-00257: archiver error. Connect internal only, until freed.
    Ivan

  • ORA-12560 TNS:Protocol Adapter Error and ORA-12557 Error

    Hello ,
    I have installed Oracle 11.2.0 64 bit database on my Windows 7 ( Home Premium) PC which is also 64 bit. I installed it because I am trying to setup Informatica. Later, I learnt that informatica is 32 bit and can not communicate to Oracle 11.2.0 64 bit database. So after digging through solutions, someone mentioned that I need to install Oracle 11g client 32bit.
    I have installed 11g client software successfully now. Here is problem though :
    When I launch SQL-Plus from 11g database , it works fine. However I launch SQL-Plus from 32bit client it gives me error as :
    Ora-12560 :TNS: Protocol Adapter Error.
    So I have been trying to resolve this error. I saw that this question has been posted many many times and have tried many thing as listed below :
    1. copy tnsnames.ora from database ( dbhome_1) to client installation ( client_1 ) under ..\network\admin\ --- Didn't work.
    2. Set $ORACLE_HOME and $ORACLE_SID environment variable.
    Here is interesting fact - If I set $ORACLE_HOME to database path and not client path error changes to :
    ORA-12557 TNS: Protocol adapter not loadable.
    If I keep $ORACLE_HOME as client path then I get same error as earlier ORA-12560.
    3. I have also tried changing $PATH variable. I did set to path containing only database installation, only client installation, both database and client installation with database installation appearing first
    But all of these haven't worked.
    Can anyone please suggest what I am missing and any further things I could try ?
    Thank you in advance !

    982090 wrote:
    Hello ,
    I have installed Oracle 11.2.0 64 bit database on my Windows 7 ( Home Premium) No oracle product is certified to run on any 'home' edition of any version of Windows.
    PC which is also 64 bit. I installed it because I am trying to setup Informatica. Later, I learnt that informatica is 32 bit and can not communicate to Oracle 11.2.0 64 bit database.If the connection is via TNS, the bit architecture shouldn't matter.
    So after digging through solutions, someone mentioned that I need to install Oracle 11g client 32bit.
    I have installed 11g client software successfully now. Here is problem though :
    When I launch SQL-Plus from 11g database , it works fine. However I launch SQL-Plus from 32bit client it gives me error as :
    Ora-12560 :TNS: Protocol Adapter Error.
    So I have been trying to resolve this error. I saw that this question has been posted many many times and have tried many thing as listed below :
    1. copy tnsnames.ora from database ( dbhome_1) to client installation ( client_1 ) under ..\network\admin\ --- Didn't work.
    2. Set $ORACLE_HOME and $ORACLE_SID environment variable.
    Here is interesting fact - If I set $ORACLE_HOME to database path and not client path error changes to :
    ORA-12557 TNS: Protocol adapter not loadable.
    If I keep $ORACLE_HOME as client path then I get same error as earlier ORA-12560.
    3. I have also tried changing $PATH variable. I did set to path containing only database installation, only client installation, both database and client installation with database installation appearing first
    But all of these haven't worked.
    Can anyone please suggest what I am missing and any further things I could try ?
    Thank you in advance !unfortunately, we need to know exactly how you tried to connect with sqlplus when it "worked" and when it "didn't work". The key to the reported error messages is highly dependent on the environment settings AND the specification of the connect string. A copy and paste of the entire command line session would be most helpful.
    But again, running on any 'home' edition of windows is not supported.

  • Work around/Alternate solution for Oracle error  ORA-01460 and ORA-02063

    After the installation of Oracle.DataAccess version 2.111.7.20, I get the following error.(the code worked fine with Oracle.DataAccess version 9.2.0.700 )
    I have attached the error as well as the sample code.
    ORA-01460 and ORA-02063 are known bugs in the new ODP but would like to know if there is any Work around/Alternate solution for this problem(other than
    the use of stored procs)..
    Thanks!
    Error:
    ORA-01460: unimplemented or unreasonable conversion requested
    ORA-02063: preceding line from BSREAD_STAGINGRO at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure, Boolean bCheck)
    at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, String procedure, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, Boolean bCheck)
    at Oracle.DataAccess.Client.OracleCommand.ExecuteReader(Boolean requery, Boolean fillRequest, CommandBehavior behavior)
    at Oracle.DataAccess.Client.OracleCommand.ExecuteReader()
    SampleCode
    private bool isValidFieldData(string clientName, string fieldNumber, string uniqueID, string clientID)
    using (OracleConnection mBSConnection = new OracleConnection(mBSConnectionString))
    OracleDataReader oRdr = null;
    OracleCommand Valid_FieldData_Command = null;
    try
    Valid_FieldData_Command = new OracleCommand();
    Valid_FieldData_Command.Connection = mBSConnection;
    Valid_FieldData_Command.CommandText = "SELECT uniqueid FROM EXTDB.BSData WHERE agencyid = :agencyid and agencyname=:agencyname AND fieldnumber =:fieldnumber AND uniqueid = :uniqueid";
    Valid_FieldData_Command.Parameters.Add(":agencyid", OracleDbType.Varchar2, 255).Value = agencyID;
    Valid_FieldData_Command.Parameters.Add(":agencyname", OracleDbType.Varchar2, 255).Value = agencyName;
    Valid_FieldData_Command.Parameters.Add(":fieldnumber", OracleDbType.Varchar2, 255).Value = fieldNumber;
    Valid_FieldData_Command.Parameters.Add(":uniqueid", OracleDbType.Varchar2, 255).Value = uniqueID;
    mBSConnection.Open();
    oRdr = Valid_FieldData_Command.ExecuteReader(); ->Error occurs here
    The error occurs whenever the length of any of the parameter is increased. But there is no specific length where it is breaking down.
    For example in this case, it breaks down with the given error if
    agencyID > 8
    agencyName > 6
    fieldNumber > 9
    uniqueid > 6

    The problem was mapping input parameter type.
    VARCHAR2-type mapping input parameter works with String-type PF parameter. But CHAR-type won't.

  • Error with VB, Ora ODBC 8.1.6, MS Tran Server and Ora services for MTS

    I am getting VB error -2147168246 "Failed to enlist global transaction" from a VB middle tier component loaded in MS Tran Server. The VB error also mentions MS OLEDB Provider, however, I am using Ora ODBC 8.1.6, MS Tran Server 2.0, Ora Services for MTS (8.1.6) and Ora 8.1.6 for Win NT database. The VB middle tier component is marked as Requires Transaction. When the error occurs, the component has performed 3 SELECT's, a DELETE FROM, 3 more SELECT's, and then fails on a 4th SELECT. All of these activities are happening in this one VB component - it is not making calls to other components. Any ideas?

    Thank you for your response. To answer your question, no, the SELECT statements do not involve any LOB's. With respect to the "Failed to enlist" error message, the dialog box mentions the Microsoft OLE DB Provider. We are using Oracle's 8.1.6 ODBC Driver and our connection string in VB 6.0 uses the DSN= syntax; we don't expicitly have the Provider= syntax in there. One of our many questions is: Given the above, is the Microsoft OLE DB Provider somehow being used, instead of Oracle's OLE DB Provider? We think not because we use Oracle Services for MTS and its trace file shows some transactions enlisted and completed, but this is a deduction - we don't really know what's happening behind the scenes. Another question we have is: When installing the Oracle 8.1.6 database on Win NT 4.0, there is a step where we must choose communication protocols. We have been selecting just TCP/IP. I read in OTN that Oracle Services for MTS talks to Microsoft's DTC using Named Pipes. We are now wondering if we should have included Named Pipes as a comm protocol when installing the DB.

  • Report error : REP-771: and ORA-12162:

    Hi , i run report and it terminated with error message
    The report terminated with error:
    REP-771: A fatal PL/SQL error occurred in program unit afterpform.
    ORA-12162: TNS:net service name is incorrectly specified
    does anyone know how to fix this issue
    thx

    ORA-12162: TNS:net service name is incorrectly specified
    $ oerr ora 12162
    12162, 00000, "TNS:net service name is incorrectly specified"
    // *Cause:  The connect descriptor corresponding to the net service name in
    // TNSNAMES.ORA or in the directory server (Oracle Internet Directory) is
    // incorrectly specified.
    // *Action: If using local naming make sure there are no syntax errors in
    // the corresponding connect descriptor in the TNSNAMES.ORA file. If using
    // directory naming check the information provided through the administration
    // used for directory naming.
    $How do you connect to the database ? Did you try connecting from Sql*Plus using the same connection string ? Result ?

Maybe you are looking for

  • ISE 1.2 Guest Portal Profiling Certainty Factor not Increase

    Hi I have configure ISE 1.2 Guest Portal and check for profiling which device login but I found that endpoint profile not match after user succesful authenticate Profiling Configure and Endpoint Detail in attachment below

  • I cannot send email from Iphone 5c.

    Last queries and responses on my problem were in 2012 and 2013.  I CANNOT SEND EMAIL ON MY REPLACEMENT IPHONE 5C.      I could on 2 previous iphones 5c.  Charter says its an apple problem.  Apple says it's a Charter problem. Do I have to download a d

  • How do i get a movie on my ipod if it says ive already used five computers?

    how do i get a movie on my ipod if it says ive already used five computers

  • Okidata printer won't work

    I have the G5 Quad and OS 10.5 and am trying to use my Okidata c5150n laser printer. I have downloaded and installed the driver and have added it to the available printers. But when I try to use the printer, my G5 says that the file is printing, but

  • Should correct run this filter sample?

    Hi all, i trying to use a filter on an IBM WAS 6.1.0.2 but the result is not what i expect because i think the application server doesn't work correctly. I show the sample and i hope someone can tell me if this sample should run how i expect: i have