Error using Filter with SQL Expression

Hey all -
New to Oracle BI, and getting a problem with Filters that use SQL Expressions.
The column I'm filtering on is a 4 digit year, expressed as a VARCHAR2(4 byte) in the physical database. My SQL Expression in the filter is:
Column: CAL YEAR 4 DIGIT
Operator: Is equal to/in
SQL Expression: TO_CHAR(ADD_MONTHS(SYSDATE, -24), 'YYYY'))
when I click on the "Results" Tab I get the following error message:
Error Codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
Odbc driver returned an error (SQLExecDirectW).
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <(>: Syntax error [nQSError: 26012] . (HY000)
I've isolated the issue to the expression above. If I put in a literal value and supply a four digit year like below it works:
Column: CAL YEAR 4 DIGIT
Operator: Is equal to/in
SQL Expression: *2008*
Any ideas on what's causing my problem?
Thanks!
Mac

macearl wrote:
SQL View does not display unless data is returned by the query. Is that normal?
Also, none of these options shows the literal result of the expression we built, i.e.:
expression: CAST(YEAR(TIMESTAMPADD(SQL_TSI_MONTH, -24, CURRENT_DATE)) as CHAR)
result: *2008*
Having the ability to test expressions and see their results would be very helpful in debugging. If anyone knows how to do that please share!
Thanks!
MacOk, Probably shoud have figured this out before, but in response to my own question, the way to view the result of an expression is to add the expression as a column and include it in the Table Presentation.
- Mac (he can be taught)

Similar Messages

  • Error in filter with SQL Expression

    HI Experts,
    I have a sql query which works fine, but have to_date funtion() in the where clause as below :
    and oe.ORDERED_DATE BETWEEN to_date('09-APR-2009 23:59:59','DD-MON-YYYY HH24:MI:SS')
    AND to_date('10-APR-2009 23:59:59','DD-MON-YYYY HH24:MI:SS')
    and (ol.ORDERED_ITEM LIKE 'abckdo%' OR ol.ORDERED_ITEM LIKE 'xysalnb%')
    I am trying to create an OBIEE report with filter where the values of the filter are select as SQL Expression. and gave value to first variable as "to_date('09-APR-2009 23:59:59','DD-MON-YYYY HH24:MI:SS')" and the second variable as " to_date('10-APR-2009 23:59:59','DD-MON-YYYY HH24:MI:SS')"
    But the report is giving me an error. If I remove the date condition, then the report works fine. Can anyone give some inputs in resolving the problem. The mentioning of the HH24:MI:SS is very import to get the right resultset.
    Thanks in Advance.
    svr

    Hi SVR,
    I've had similar difficulties in the past with OBIEE and using the TO_DATE in the logical SQL expressions. I'm not sure if OBIEE recognizes TO_DATE or if it only recognizes TO_DATE is certain situations.
    However, I believe OBIEE recognizes the CAST( AS DATE) in all situations. Here's what I would recommend doing.
    1) Go into the connection pool associated with the report your creating and click on the second tab, "Connection Scripts"
    2) In the "Execute on Connect" area, click the "New" button and paste the following code: alter session set NLS_DATE_FORMAT='DD-MON-YYYY HH24:MI:SS' ** this step changes the default DD-MON-YYYY format of Oracle, to the format you will be giving the data in.
    3) Save the RPD and bounce the services if you made this change off-line.
    4) Instead of using TO_DATE() on your formulas, use CAST('09-APR-2009 23:59:59' AS DATE). Since we changed the default DATE mask to be the format that you're passing in, you should no longer see any issues.
    Hope that helps!
    -Joe

  • ERROR = CONNECT failed with sql error '1017'

    Hi,
    we are getting the following error when we run r3trans -dx.It is an windows system.
    Here i have attached the trans.log.
    4 ETW000 r3trans version 6.14 (release 700 - 16.10.08 - 16:26:00).
    4 ETW000 ===============================================
    4 ETW000
    4 ETW000 date&time   : 30.11.2010 - 08:58:12
    4 ETW000 control file: <no ctrlfile>
    4 ETW000 R3trans was called as follows: r3trans -d
    4 ETW000  trace at level 2 opened for a given file pointer
    4 ETW000  [dev trc     ,00000]  Tue Nov 30 08:58:14 2010                               0  0.000000
    4 ETW000  [dev trc     ,00000]  db_con_init called                                     0  0.000000
    4 ETW000  [dev trc     ,00000]  create_con (con_name=R/3)                              0  0.000000
    4 ETW000  [dev trc     ,00000]  Loading DB library 'dboraslib.dll' ...                 0  0.000000
    4 ETW000  [dev trc     ,00000]  load shared library (dboraslib.dll), hdl 0          3857  0.003857
    4 ETW000  [dev trc     ,00000]      using "E:\usr\sap\TQ1\DVEBMGS10\exe\dboraslib.dll"
    4 ETW000                                                                              22  0.003879
    4 ETW000  [dev trc     ,00000]  Library 'dboraslib.dll' loaded                         9  0.003888
    4 ETW000  [dev trc     ,00000]  function DbSlExpFuns loaded from library dboraslib.dll
    4 ETW000                                                                              18  0.003906
    4 ETW000  [dev trc     ,00000]  Version of 'dboraslib.dll' is "700.08", patchlevel (0.167)
    4 ETW000                                                                             143  0.004049
    4 ETW000  [dev trc     ,00000]  function dsql_db_init loaded from library dboraslib.dll
    4 ETW000                                                                              16  0.004065
    4 ETW000  [dev trc     ,00000]  function dbdd_exp_funs loaded from library dboraslib.dll
    4 ETW000                                                                              25  0.004090
    4 ETW000  [dev trc     ,00000]  New connection 0 created                              18  0.004108
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = -000000001 state = DISCONNECTED, perm = YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              29  0.004137
    4 ETW000  [dev trc     ,00000]  db_con_connect (con_name=R/3)                         16  0.004153
    4 ETW000  [dev trc     ,00000]  find_con_by_name found the following connection for reuse:
    4 ETW000                                                                              15  0.004168
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = 000000000 state = DISCONNECTED, perm = YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              18  0.004186
    4 ETW000  [dev trc     ,00000]  CLIENT_ORACLE_HOME is not set as environment variable or
    4 ETW000                        DIR_CLIENT_ORAHOME is not set as profile parameter.
    4 ETW000                          assuming using instant client with unspecified location.
    4 ETW000                                                                             223  0.004409
    4 ETW000  [dev trc     ,00000]  Oracle Client Version: '10.2.0.2.0'                 6714  0.011123
    4 ETW000  [dev trc     ,00000]  -->oci_initialize (con_hdl=0)                         23  0.011146
    4 ETW000  [dev trc     ,00000]  Client NLS settings: AMERICAN_AMERICA.WE8DEC        2397  0.013543
    4 ETW000  [dev trc     ,00000]  Logon as OPS$-user to get SAPRP1's password           16  0.013559
    4 ETW000  [dev trc     ,00000]  Connecting as /@TQ1 on connection 0 (nls_hdl 0) ... (dbsl 700 030508)
    4 ETW000                                                                              22  0.013581
    4 ETW000  [dev trc     ,00000]  Nls CharacterSet                 NationalCharSet              C      EnvHp      ErrHp ErrHpBatch
    4 ETW000                                                                              18  0.013599
    4 ETW000  [dev trc     ,00000]    0 WE8DEC                                                    1 0000000006E6C090 000000000032AFF0 0000000006E7E378
    4 ETW000                                                                             109  0.013708
    4 ETW000  [dev trc     ,00000]  Allocating service context handle for con_hdl=0     6894  0.020602
    4 ETW000  [dev trc     ,00000]  Allocating server context handle                      14  0.020616
    4 ETW000  [dev trc     ,00000]  Attaching to DB Server TQ1 (con_hdl=0,svchp=0000000006E7E238,srvhp=0000000006E80608)
    4 ETW000                                                                              37  0.020653
    4 ETW000  [dev trc     ,00000]  Assigning server context 0000000006E80608 to service context 0000000006E7E238
    4 ETW000                                                                           21591  0.042244
    4 ETW000  [dev trc     ,00000]  Allocating user session handle                        32  0.042276
    4 ETW000  [dev trc     ,00000]  Starting user session (con_hdl=0,svchp=0000000006E7E238,srvhp=0000000006E80608,usrhp=000000000032B808)
    4 ETW000                                                                              32  0.042308
    4 ETW000  [dboci.c     ,00000]  *** ERROR => OCI-call 'OCISessionBegin' failed with rc=1017
    4 ETW000                                                                           34551  0.076859
    4 ETW000  [dbsloci.    ,00000]  *** ERROR => CONNECT failed with sql error '1017'
    4 ETW000                                                                           23657  0.100516
    4 ETW000  [dev trc     ,00000]     set_ocica() -> OCI or SQL return code 1017         13  0.100529
    4 ETW000  [dev trc     ,00000]  Try to connect with default password                  12  0.100541
    4 ETW000  [dev trc     ,00000]  Connecting as SAPRP1/<pwd>@TQ1 on connection 0 (nls_hdl 0) ... (dbsl 700 030508)
    4 ETW000                                                                              17  0.100558
    4 ETW000  [dev trc     ,00000]  Nls CharacterSet                 NationalCharSet              C      EnvHp      ErrHp ErrHpBatch
    4 ETW000                                                                              16  0.100574
    4 ETW000  [dev trc     ,00000]    0 WE8DEC                                                    1 0000000006E6C090 000000000032AFF0 0000000006E7E378
    4 ETW000                                                                              18  0.100592
    4 ETW000  [dev trc     ,00000]  Assigning username to user session 000000000032B808
    4 ETW000                                                                              15  0.100607
    4 ETW000  [dev trc     ,00000]  Assigning password to user session 000000000032B808
    4 ETW000                                                                              23  0.100630
    4 ETW000  [dev trc     ,00000]  Starting user session (con_hdl=0,svchp=0000000006E7E238,srvhp=0000000006E80608,usrhp=000000000032B808)
    4 ETW000                                                                              18  0.100648
    4 ETW000  [dboci.c     ,00000]  *** ERROR => OCI-call 'OCISessionBegin' failed with rc=1017
    4 ETW000                                                                            3281  0.103929
    4 ETW000  [dbsloci.    ,00000]  *** ERROR => CONNECT failed with sql error '1017'
    4 ETW000                                                                              19  0.103948
    4 ETW000  [dev trc     ,00000]     set_ocica() -> OCI or SQL return code 1017         10  0.103958
    4 ETW000  [dblink      ,00431]  ***LOG BY2=>sql error 1017   performing CON [dblink#5 @ 431]
    4 ETW000                                                                           10634  0.114592
    4 ETW000  [dblink      ,00431]  ***LOG BY0=>ORA-01017: invalid username/password; logon denied [dblink#5 @ 431]
    4 ETW000                                                                              17  0.114609
    2EETW169 no connect possible: "DBMS = ORACLE                           --- dbs_ora_tnsname = 'TQ1'"

    Hi,
    LOG BY0=>ORA-01017: invalid username/password; logon denied
    You need to change your schema users password using "brconnect"
    Try as follow:
    1. Login as ora<sid>
    2. Use below command to reset SAPRP1 users password
    # brconnect  -u system -f chpass -o SAPRP1 -p <new password>
    If it still doesn't work... just set the password as "sap" (it is default password for schema user)
    # brconnect  -u system -f chpass -o SAPRP1 -p sap
    Hope, it helps you...
    Suggestions:
    Above thing will help even if OPS$ mechanism is not set correctly...
    But it is recommended to create and set permissions for OPS$ user. Else some BRTools function will produce errors...
    Relevant notes are already suggested by others...
    Please go through it word by word...
    Regards.
    Rajesh Narkhede

  • SSMS Tools with SQL Express 2014

    Hi
    Need to know whether SSMS Tools that come along with SQL Express 2014 require client license?  Please let me know the details

    SSMS Express is also free in use.
    Only when you use SSMS Express to connect to a commercial version, then you need a CAL (Client Access License) or the SQL Server must be licensed by CPU/CORE).
    For further question regarding licensing please contact a Microsoft sales partner or licensing expert.
    Call (1-800-426-9400), Monday through Friday, 6:00 AM to 6:00 PM PST to speak directly to Microsoft licensing specialist.
    http://www.microsoft.com/en-us/server-cloud/products/sql-server/buy.aspx
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • *** ERROR = CONNECT failed with SQL error '12154' after Oracle Upgrade

    Hello Experts,
    Recently I upgraded my oracle database from 11.2.0.3 to 11.2.0.4.The upgrade completed successfully but I am unable to start the instance.
    R3trans -d failing with the error--
    OCIServerAttach(OCI_DEFAULT) failed with -1=OCI_ERROR
    OCIServerAttach(OCI_DEFAULT) failed with SQL error 12154:    
    ORA-12154: TNS:could not resolve the connect identifier specified
    OCIServerAttach(con=0, svc=069C1630): Error 12154 attaching new srv=069C17D0
    OCIHandleFree(con=0): Server handle srv=069C17D0 freed.          
    server_detach(con=0, svc=069C1630; srv=NULL, stale=2)            
    OCIHandleFree(con=0): Service svc=069C1630 freed (i=1).          
    *** ERROR => CONNECT failed with SQL error '12154'              
    -->oci_get_errmsg (con=0, rc=12154)                              
      OCIErrorGet() -> SQL error code: 12154; buflen=66            
    OCIErrorGet(): error text ->                                    
    ORA-12154: TNS:could not resolve the connect identifier specified
    ocica() -> SQL error code 12154,12154                          
      DbSlConnect(con=0) -> orc=12154, rc=99=DBSL_ERR_DB            
    ***LOG BY2=>sql error 12154  performing CON                      
    ***LOG BY0=>ORA-12154: TNS:could not resolve the connect identifier specified
    I have checked listener is up and running properly.Entry is maintained in tnsnames.ora.
    Also kernel is upgraded with latest path.Curent kernel version--742
    Please suggest on the mentioned error.I am attaching the logs here.Thanks in advance.
    Best Regards,
    Debaditya

    Hi Debadiya
    Kindly check this SAP Notes
    1204916 - Error: "ORA-12154" when connecting to Oracle from a Windows 64-bit platform
    2153975 - Database connectivity fails with ORA-12154
    556232 - Environment settings for R/3/Oracle on Windows
    443867 - ORA-12154 Collective SAP note
    BR
    SS

  • ERROR = CONNECT failed with sql error '12518'

    Hi All,
    OS Win 2003 - 32 Bit, Database - Oracle 10.2.0.2 , I am facing this from yesterday, suddenly SAP was done and when i am checking the logs it is not able to connect to the database.
    I have checked the services for oracle - service was down, i have started the oracleService<SID> and also i have restarted the listener.. after this when i am trying to start the SAP through MMC again the problem is face.. and also the oracle service is stopped. when i tried starting the database from OS level it was giving me error like
    ORA-24324: service handle not initialized
    ORA-24323: value not allowed
    ORA-03113: end-of-file on communication channel
    again the Oracle service is stopped i am not getting why the oracle service is stopping..
    dev_w*.log
    Thu Apr 09 10:33:50 2009
    M  calling db_connect ...
    C  Prepending D:\usr\sap\SID\DVEBMGS01\exe to Path.
    C  Oracle Client Version: '10.2.0.1.0'
    C  Client NLS settings: AMERICAN_AMERICA.UTF8
    C  Logon as OPS$-user to get SAPSR3's password
    C  Connecting as /@SID on connection 0 (nls_hdl 0) ... (dbsl 700 110706)
    C  Nls CharacterSet                 NationalCharSet              C      EnvHp      ErrHp ErrHpBatch
    C    0 UTF8                                                      1   05C84528   05C89AC4   05C8934C
    C  Attaching to DB Server SID (con_hdl=0,svchp=05C89298,svrhp=05C9AB64)

    C Thu Apr 09 10:33:51 2009
    C  *** ERROR => OCI-call 'OCIServerAttach' failed: rc = 12518
    [dboci.c      4172]
    C  *** ERROR => CONNECT failed with sql error '12518'
    [dbsloci.c    10933]
    C  Try to connect with default password
    C  Connecting as SAPSR3/<pwd>@SM3 on connection 0 (nls_hdl 0) ... (dbsl 700 110706)
    C  Nls CharacterSet                 NationalCharSet              C      EnvHp      ErrHp ErrHpBatch
    C    0 UTF8                                                      1   05C84528   05C89AC4   05C8934C
    C  Detaching from DB Server (con_hdl=0,svchp=05C89298,srvhp=05C9AB64)
    C  Attaching to DB Server SID (con_hdl=0,svchp=05C89298,svrhp=05C9AB64)
    C  *** ERROR => OCI-call 'OCIServerAttach' failed: rc = 12518
    [dboci.c      4172]
    C  *** ERROR => CONNECT failed with sql error '12518'
    [dbsloci.c    10933]
    B  ***LOG BY2=> sql error 12518  performing CON [dbsh#2 @ 1204] [dbsh    1204 ]
    B  ***LOG BY0=> ORA-12518: TNS:listener could not hand off client connection [dbsh#2 @ 1204] [dbsh    1204 ]
    B  ***LOG BY2=> sql error 12518  performing CON [dblink#3 @ 431] [dblink  0431 ]
    B  ***LOG BY0=> ORA-12518: TNS:listener could not hand off client connection [dblink#3 @ 431] [dblink  0431 ]
    M  ***LOG R19=> ThInit, db_connect ( DB-Connect 000256) [thxxhead.c   1411]
    M  in_ThErrHandle: 1
    M  *** ERROR => ThInit: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c   10156]

    M  Info for wp 16

    M    stat = 4
    M    reqtype = 6
    M    act_reqtype = -1
    M    rq_info = 0
    M    tid = -1
    M    mode = 255
    M    len = -1
    M    rq_id = 65535
    M    rq_source = 255
    M    last_tid = 0
    M    last_mode = 0
    M    semaphore = 0
    M    act_cs_count = 0
    M    control_flag = 0
    M    int_checked_resource(RFC) = 0
    M    ext_checked_resource(RFC) = 0
    M    int_checked_resource(HTTP) = 0
    M    ext_checked_resource(HTTP) = 0
    M    report = >                                        <
    M    action = 0
    M    tab_name = >                              <
    M    vm = V-1

    M  *****************************************************************************
    M  *
    M  *  LOCATION    SAP-Server hostname_SM3_01 on host tcs042619 (wp 16)
    M  *  ERROR       ThInit: db_connect
    M  *
    M  *  TIME        Thu Apr 09 10:33:51 2009
    M  *  RELEASE     700
    M  *  COMPONENT   Taskhandler
    M  *  VERSION     1
    M  *  RC          13
    M  *  MODULE      thxxhead.c
    M  *  LINE        10354
    M  *  COUNTER     1
    M  *
    M  *****************************************************************************

    M  PfStatDisconnect: disconnect statistics
    M  Entering TH_CALLHOOKS
    M  ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP
    M  *** ERROR => ThrSaveSPAFields: no valid thr_wpadm [thxxrun1.c   720]
    M  *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed [thxxtool3.c  260]
    M  Entering ThSetStatError
    M  ThIErrHandle: do not call ThrCoreInfo (no_core_info=0, in_dynp_env=0)
    M  Entering ThReadDetachMode
    M  call ThrShutDown (1)...
    M  ***LOG Q02=> wp_halt, WPStop (Workproc16 7988) [dpnttool.c   327]
    Any suggestions pls
    Mahesh

    Hi Rohit,
    when i check in the sqlnet.log
    Fatal NI connect error 12560, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleSID)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=SID)(CID=(PROGRAM=E:\oracle\SM2\102\bin\sqlplus.exe)(HOST=hostname)(USER=SIDadm))))
      VERSION INFORMATION:
         TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
         Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
      Time: 04-SEP-2007 15:09:30
      Tracing not turned on.
      Tns error struct:
        ns main err code: 12560
        TNS-12560: Message 12560 not found; No message file for product=NETWORK, facility=TNS
        ns secondary err code: 0
        nt main err code: 530
        TNS-00530: Message 530 not found; No message file for product=NETWORK, facility=TNS
        nt secondary err code: 2
        nt OS err code: 0
    Fatal NI connect error 12560, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleSID)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=SID)(CID=(PROGRAM=E:\oracle\SID\102\bin\sqlplus.exe)(HOST=hostname)(USER=SIDadm))))
      VERSION INFORMATION:
         TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
         Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
      Time: 08-APR-2009 19:16:32
      Tracing not turned on.
      Tns error struct:
        ns main err code: 12560
        TNS-12560: TNS:protocol adapter error
        ns secondary err code: 0
        nt main err code: 530
        TNS-00530: Protocol adapter error
        nt secondary err code: 2
        nt OS err code: 0
    Fatal NI connect error 12560, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleSID)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=SID)(CID=(PROGRAM=E:\oracle\SID\102\bin\sqlplus.exe)(HOST=hostname)(USER=SIDadm))))
      VERSION INFORMATION:
         TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
         Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
      Time: 08-APR-2009 19:16:46
      Tracing not turned on.
      Tns error struct:
        ns main err code: 12560
        TNS-12560: TNS:protocol adapter error
        ns secondary err code: 0
        nt main err code: 530
        TNS-00530: Protocol adapter error
        nt secondary err code: 2
        nt OS err code: 0
    Fatal NI connect error 12560, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleSID)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=SID)(CID=(PROGRAM=E:\oracle\SID\102\bin\sqlplus.exe)(HOST=hostname)(USER=SIDadm))))
      VERSION INFORMATION:
         TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
         Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
      Time: 08-APR-2009 19:19:27
      Tracing not turned on.
      Tns error struct:
        ns main err code: 12560
        TNS-12560: TNS:protocol adapter error
        ns secondary err code: 0
        nt main err code: 530
        TNS-00530: Protocol adapter error
        nt secondary err code: 2
        nt OS err code: 0
    Fatal NI connect error 12560, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleSID)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=SID)(CID=(PROGRAM=E:\oracle\SID\102\bin\sqlplus.exe)(HOST=hostname)(USER=SIDadm))))
      VERSION INFORMATION:
         TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
         Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
      Time: 08-APR-2009 19:19:28
      Tracing not turned on.
      Tns error struct:
        ns main err code: 12560
        TNS-12560: TNS:protocol adapter error
        ns secondary err code: 0
        nt main err code: 530
        TNS-00530: Protocol adapter error
        nt secondary err code: 2
        nt OS err code: 0
    Fatal NI connect error 12560, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleSID)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=SID)(CID=(PROGRAM=E:\oracle\SID\102\bin\sqlplus.exe)(HOST=hostname)(USER=SIDadm))))
      VERSION INFORMATION:
         TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
         Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
      Time: 08-APR-2009 19:19:29
      Tracing not turned on.
      Tns error struct:
        ns main err code: 12560
        TNS-12560: TNS:protocol adapter error
        ns secondary err code: 0
        nt main err code: 530
        TNS-00530: Protocol adapter error
        nt secondary err code: 2
        nt OS err code: 0
    Fatal NI connect error 12560, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleSID)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=SID)(CID=(PROGRAM=E:\oracle\SID\102\bin\sqlplus.exe)(HOST=hostname)(USER=SIDadm))))
      VERSION INFORMATION:
         TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
         Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
      Time: 08-APR-2009 19:26:38
      Tracing not turned on.
      Tns error struct:
        ns main err code: 12560
        TNS-12560: TNS:protocol adapter error
        ns secondary err code: 0
        nt main err code: 530
        TNS-00530: Protocol adapter error
        nt secondary err code: 2
        nt OS err code: 0
    Fatal NI connect error 12518, connecting to:
    (DESCRIPTION=(ADDRESS=(COMMUNITY=SAP.WORLD)(PROTOCOL=TCP)(HOST=hostname)(PORT=1527))(CONNECT_DATA=(SID=SID)(GLOBAL_NAME=SID.WORLD)(CID=(PROGRAM=D:\usr\sap\SID\SYS\exe\uc\NTI386\R3trans.exe)(HOST=hostname)(USER=SIDadm))))
      VERSION INFORMATION:
         TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
         Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
      Time: 08-APR-2009 20:35:23
      Tracing not turned on.
      Tns error struct:
        ns main err code: 12564
        TNS-12564: TNS:connection refused
        ns secondary err code: 0
        nt main err code: 0
        nt secondary err code: 0
        nt OS err code: 0
    Fatal NI connect error 12518, connecting to:
    (DESCRIPTION=(ADDRESS=(COMMUNITY=SAP.WORLD)(PROTOCOL=TCP)(HOST=hostname)(PORT=1527))(CONNECT_DATA=(SID=SID)(GLOBAL_NAME=SID.WORLD)(CID=(PROGRAM=D:\usr\sap\SID\SYS\exe\uc\NTI386\R3trans.exe)(HOST=hostname)(USER=SIDadm))))
      VERSION INFORMATION:
         TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
         Windows NT TCP/IP NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
      Time: 08-APR-2009 20:35:23
      Tracing not turned on.
      Tns error struct:
        ns main err code: 12564
        TNS-12564: TNS:connection refused
        ns secondary err code: 0
        nt main err code: 0
        nt secondary err code: 0
        nt OS err code: 0
    Fatal NI connect error 12560, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleSID)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=SID)(CID=(PROGRAM=E:\oracle\SID\102\bin\sqlplus.exe)(HOST=hostname)(USER=SIDadm))))
      VERSION INFORMATION:
         TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
         Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
      Time: 09-APR-2009 09:15:43
      Tracing not turned on.
      Tns error struct:
        ns main err code: 12560
        TNS-12560: TNS:protocol adapter error
        ns secondary err code: 0
        nt main err code: 530
        TNS-00530: Protocol adapter error
        nt secondary err code: 2
        nt OS err code: 0
    Fatal NI connect error 12560, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleSID)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=SID)(CID=(PROGRAM=E:\oracle\SID\102\bin\sqlplus.exe)(HOST=hostname)(USER=SIDadm))))
      VERSION INFORMATION:
         TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
         Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 10.2.0.1.0 - Production
      Time: 09-APR-2009 09:17:28
      Tracing not turned on.
      Tns error struct:
        ns main err code: 12560
        TNS-12560: TNS:protocol adapter error
        ns secondary err code: 0
        nt main err code: 530
        TNS-00530: Protocol adapter error
        nt secondary err code: 2
        nt OS err code: 0
    This error occured when the oracle service was  not started..
    Mahesh..

  • Trans.log file showing  'ERROR = CONNECT failed with sql error 12541'

    Dear All
    We have upgraded our datatabse from Oracle 9.2.0.8 to Oracel 10.2.0.4 on our ECC 5.0 IS-AFS SAP system. When we check version from SQL, it's showing 10.2.0.4. That means database is successfully upgraded. Now, when we login through our <SID>adm user and checking R3trans -d, it is showing
    'This is R3trans version 6.13 (release 640 - 07.01.08 - 14:25:00).
    unicode enabled version
    2EETW169 no connect possible: "DBMS = ORACLE                           --- dbs_ora_tnsname = 'V
    AP'"
    R3trans finished (0012).'
    In the trans.log file it is showing,
    4 ETW000 R3trans version 6.13 (release 640 - 07.01.08 - 14:25:00).
    4 ETW000 unicode enabled version
    4 ETW000 ===============================================
    4 ETW000
    4 ETW000 date&time   : 22.06.2009 - 11:56:40
    4 ETW000 control file: <no ctrlfile>
    4 ETW000 R3trans was called as follows: R3trans -d
    4 ETW000  trace at level 2 opened for a given file pointer
    4 ETW000  [dev trc     ,00000]  Mon Jun 22 11:56:40 2009                             110  0.000
    110
    4 ETW000  [dev trc     ,00000]  db_con_init called                                    27  0.000
    137
    4 ETW000  [dev trc     ,00000]  create_con (con_name=R/3)                             62  0.000
    199
    4 ETW000  [dev trc     ,00000]  Loading DB library '/usr/sap/VAP/SYS/exe/run/dboraslib.o' ...
    4 ETW000                                                                              77  0.000
    276
    4 ETW000  [dev trc     ,00000]  load shared library (/usr/sap/VAP/SYS/exe/run/dboraslib.o), hdl
    0
    4 ETW000                                                                            8142  0.008
    418
    4 ETW000  [dev trc     ,00000]  Library '/usr/sap/VAP/SYS/exe/run/dboraslib.o' loaded
    4 ETW000                                                                              43  0.008
    461
    4 ETW000  [dev trc     ,00000]  function DbSlExpFuns loaded from library /usr/sap/VAP/SYS/exe/r
    un/dboraslib.o
    4 ETW000                                                                              61  0.008
    522
    4 ETW000  [dev trc     ,00000]  Version of '/usr/sap/VAP/SYS/exe/run/dboraslib.o' is "640.00",
    patchlevel (0.276)
    4 ETW000                                                                             421  0.008
    943
    4 ETW000  [dev trc     ,00000]  function dsql_db_init loaded from library /usr/sap/VAP/SYS/exe/
    run/dboraslib.o
    4 ETW000                                                                              46  0.008
    989
    4 ETW000  [dev trc     ,00000]  function dbdd_exp_funs loaded from library /usr/sap/VAP/SYS/exe
    /run/dboraslib.o
    4 ETW000                                                                              75  0.009
    064
    4 ETW000  [dev trc     ,00000]  New connection 0 created                              48  0.009
    112
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = -000000001 state = DISCONNECTED, perm =
    YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              53  0.009
    165
    4 ETW000  [dev trc     ,00000]  db_con_connect (con_name=R/3)                         55  0.009
    220
    4 ETW000  [dev trc     ,00000]  find_con_by_name found the following connection for reuse:
    4 ETW000                                                                              53  0.009
    273
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = 000000000 state = DISCONNECTED, perm =
    YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              49  0.009
    322
    4 ETW000  [dev trc     ,00000]  Got ORACLE_HOME=/oracle/VAP/102_64 from environment
    4 ETW000                                                                             521  0.009
    843
    4 ETW000  [dev trc     ,00000]  -->oci_initialize (con_hdl=0)                         84  0.009
    927
    4 ETW000  [dev trc     ,00000]  got NLS_LANG='AMERICAN_AMERICA.UTF8' from environment
    4 ETW000                                                                              65  0.009
    992
    4 ETW000  [dev trc     ,00000]  Client NLS settings: AMERICAN_AMERICA.UTF8          2033  0.012
    025
    4 ETW000  [dev trc     ,00000]  Logon as OPS$-user to get SAPVAP's password           49  0.012
    074
    4 ETW000  [dev trc     ,00000]  Connecting as /@VAP on connection 0 (nls_hdl 0) ... (dbsl 640 1
    80309)
    4 ETW000                                                                              57  0.012
    131
    4 ETW000  [dev trc     ,00000]  Nls CharacterSet                 NationalCharSet              C
          EnvHp      ErrHp ErrHpBatch
    4 ETW000                                                                              49  0.012
    180
    4 ETW000  [dev trc     ,00000]    0 UTF8                                                      1
    0x1113a4400 0x1113b6b00 0x1113b63b8
    4 ETW000                                                                              58  0.012
    238
    4 ETW000  [dev trc     ,00000]  Allocating service context handle for con_hdl=0       48  0.012
    286
    4 ETW000  [dev trc     ,00000]  Allocating server context handle                      42  0.012
    328
    4 ETW000  [dev trc     ,00000]  Attaching to DB Server VAP (con_hdl=0,svchp=0x1113b97d8,srvhp=0
    x1113b99f8)
    4 ETW000                                                                              95  0.012
    423
    4 ETW000  [dboci.c     ,00000]  *** ERROR => OCI-call 'OCIServerAttach' failed: rc = 12541
    4 ETW000                                                                            4556  0.016
    979
    4 ETW000  [dbsloci.    ,00000]  *** ERROR => CONNECT failed with sql error 12541.
    4 ETW000                                                                              59  0.017
    038
    4 ETW000  [dev trc     ,00000]     set_ocica() -> OCI or SQL return code 12541        39  0.017
    077
    4 ETW000  [dev trc     ,00000]  Try to connect with default password                 184  0.017
    261
    4 ETW000  [dev trc     ,00000]  Connecting as SAPVAP/<pwd>@VAP on connection 0 (nls_hdl 0) ...
    (dbsl 640 180309)
    4 ETW000                                                                              46  0.017
    307
    4 ETW000  [dev trc     ,00000]  Nls CharacterSet                 NationalCharSet              C
          EnvHp      ErrHp ErrHpBatch
    4 ETW000                                                                              48  0.017
    355
    4 ETW000  [dev trc     ,00000]    0 UTF8                                                      1
    0x1113a4400 0x1113b6b00 0x1113b63b8
    4 ETW000                                                                              48  0.017
    403
    4 ETW000  [dev trc     ,00000]  server_detach(con_hdl=0,stale=0,svrhp=0x1113b99f8)
    4 ETW000                                                                              54  0.017
    457
    4 ETW000  [dev trc     ,00000]  Detaching from DB Server (con_hdl=0,svchp=0x1113b97d8,srvhp=0x1
    113b99f8)
    4 ETW000                                                                              54  0.017
    511
    4 ETW000  [dev trc     ,00000]  Deallocating server context handle 0x1113b99f8        42  0.017
    553
    4 ETW000  [dev trc     ,00000]  Allocating server context handle                      33  0.017
    586
    4 ETW000  [dev trc     ,00000]  Attaching to DB Server VAP (con_hdl=0,svchp=0x1113b97d8,srvhp=0
    x1113b99f8)
    4 ETW000                                                                              54  0.017
    640
    4 ETW000  [dboci.c     ,00000]  *** ERROR => OCI-call 'OCIServerAttach' failed: rc = 12541
    4 ETW000                                                                            2547  0.020
    187
    4 ETW000  [dbsloci.    ,00000]  *** ERROR => CONNECT failed with sql error 12541.
    4 ETW000                                                                              45  0.020
    232
    4 ETW000  [dev trc     ,00000]     set_ocica() -> OCI or SQL return code 12541        28  0.020
    260
    4 ETW000  [dblink      ,00428]  ***LOG BY2=>sql error 12541  performing CON [dblink#3 @ 428]
    4 ETW000                                                                             220  0.020
    480
    4 ETW000  [dblink      ,00428]  ***LOG BY0=>ORA-12541: TNS:no listener [dblink#3 @ 428]
    4 ETW000                                                                              42  0.020
    522
    2EETW169 no connect possible: "DBMS = ORACLE                           --- dbs_ora_tnsname = 'V
    AP'"
    Checked the listener service. It is already started and status is OK. Please help.
    Regards
    Shashank Shekhar

    Hi
    Yes, I am trying it with orasid user also. There in trans.log file it is showing:
    '4 ETW000 R3trans version 6.13 (release 640 - 07.01.08 - 14:25:00).
    4 ETW000 unicode enabled version
    4 ETW000 ===============================================
    4 ETW000
    4 ETW000 date&time   : 22.06.2009 - 15:54:42
    4 ETW000 control file: <no ctrlfile>
    4 ETW000 R3trans was called as follows: R3trans -d
    4 ETW000  trace at level 2 opened for a given file pointer
    4 ETW000  [dev trc     ,00000]  Mon Jun 22 15:54:42 2009                             109  0.000
    109
    4 ETW000  [dev trc     ,00000]  db_con_init called                                    27  0.000
    136
    4 ETW000  [dev trc     ,00000]  create_con (con_name=R/3)                             61  0.000
    197
    4 ETW000  [dev trc     ,00000]  Loading DB library '/usr/sap/VAP/SYS/exe/run/dboraslib.o' ...
    4 ETW000                                                                              79  0.000
    276
    4 ETW000  [dev trc     ,00000]  load shared library (/usr/sap/VAP/SYS/exe/run/dboraslib.o), hdl
    0
    4 ETW000                                                                            8174  0.008
    450
    4 ETW000  [dev trc     ,00000]  Library '/usr/sap/VAP/SYS/exe/run/dboraslib.o' loaded
    4 ETW000                                                                              43  0.008
    493
    4 ETW000  [dev trc     ,00000]  function DbSlExpFuns loaded from library /usr/sap/VAP/SYS/exe/r
    un/dboraslib.o
    4 ETW000                                                                              61  0.008
    554
    4 ETW000  [dev trc     ,00000]  Version of '/usr/sap/VAP/SYS/exe/run/dboraslib.o' is "640.00",
    patchlevel (0.276)
    4 ETW000                                                                             430  0.008
    984
    4 ETW000  [dev trc     ,00000]  function dsql_db_init loaded from library /usr/sap/VAP/SYS/exe/
    run/dboraslib.o
    4 ETW000                                                                              46  0.009
    030
    4 ETW000  [dev trc     ,00000]  function dbdd_exp_funs loaded from library /usr/sap/VAP/SYS/exe
    /run/dboraslib.o
    4 ETW000                                                                              76  0.009
    106
    4 ETW000  [dev trc     ,00000]  New connection 0 created                              48  0.009
    154
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = -000000001 state = DISCONNECTED, perm =
    YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              53  0.009
    207
    4 ETW000  [dev trc     ,00000]  db_con_connect (con_name=R/3)                         57  0.009
    264
    4 ETW000  [dev trc     ,00000]  find_con_by_name found the following connection for reuse:
    4 ETW000                                                                              54  0.009
    318
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = 000000000 state = DISCONNECTED, perm =
    YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              49  0.009
    367
    4 ETW000  [dev trc     ,00000]  Got ORACLE_HOME=/oracle/VAP/102_64 from environment
    4 ETW000                                                                             526  0.009
    893
    4 ETW000  [dev trc     ,00000]  -->oci_initialize (con_hdl=0)                         84  0.009
    977
    4 ETW000  [dev trc     ,00000]  got NLS_LANG='AMERICAN_AMERICA.UTF8' from environment
    4 ETW000                                                                              64  0.010
    041
    4 ETW000  [dboci.c     ,00000]  *** ERROR => OCI-call 'OCIEnvCreate(mode=16384)' failed: rc = -
    1
    4 ETW000                                                                            1464  0.011
    505
    4 ETW000  [dev trc     ,00000]     set_ocica() -> OCI or SQL return code -1           40  0.011
    545
    4 ETW000  [dboci.c     ,00000]  *** ERROR => OCI-call 'OCIErrorGet' failed: rc = -2
    4 ETW000                                                                              58  0.011
    603
    4 ETW000  [dblink      ,00428]  ***LOG BY2=>sql error -1     performing CON [dblink#3 @ 428]
    4 ETW000                                                                              74  0.011
    677
    4 ETW000  [dblink      ,00428]  ***LOG BY0=>Cannot get Oracle error text. [dblink#3 @ 428]
    4 ETW000                                                                              55  0.011
    732
    2EETW169 no connect possible: "DBMS = ORACLE                           --- dbs_ora_tnsname = 'V
    AP'"
    Someone suggested 'The solution is to download the new oracle client dll into the kernel'. Can anyone tell from where i can get the client dll for the kernel.
    Regards
    Shashank Shekhar

  • Entity Object (EO) issue using "Derived from SQL Expression" funtionality

    I am using JDeveloper 11.1.1.6
    In my use case I am trying to get my EO to return results from a query such as the following:
                   SELECT table1.my_id,table1.my_des,
                   count(table2.store_num) as storeCount
                   FROM table1
                   LEFT JOIN table2
                   ON table1.my_id = table2.my_id
                   group by table1.my_id,table1.my_des
    I have chosen to follow the path described in the following URL:
    http://www.exploreoracle.com/2010/09/07/using-transient-attribute-with-derived-from-sql-expression-in-jdeveloper-11g/
    To begin with, I created my EO's and VO's by using the "Business Components from Tables" wizard. This created EO and VO's for my 2 tables based on the DB schema.
    I added the VO's to an app module and tested both VO's. I was able to navigate both VO's.
    I then crreated a new attribute for the table1 EO. Please note that table1 does include 7 fields prior to this field therefore this becomes the 8th field. That is important once you get to the exception being thrown. The XML is as follows
              <Attribute
              Name="StoreCount"
              IsUpdateable="false"
              IsQueriable="false"
              IsPersistent="false"
              Precision="5"
              Scale="0"
              ColumnName="STORECOUNT"
              SQLType="NUMERIC"
              Type="oracle.jbo.domain.Number"
              ColumnType="NUMBER"
              Expression="(select coalesce(count(*),0) as StoreCount from table2 where my_id = table1.my_id)">
              <Properties>
              <SchemaBasedProperties>
                   <LABEL
                   ResId="STORE_COUNT"/>
              </SchemaBasedProperties>
              </Properties>
              </Attribute>
    I then tested the VO's again in the app module and everything continues to work fine.
    I then added the new attribute to the VO by doing "Add Attribute from Entity".
    I then tested the VO for Table1 and now get the following error. Could you please advise me as to what I might be doing wrong.
    [132] oracle.jbo.AttributeLoadException: JBO-27021: Failed to load custom data type value at index 8 with java object of type oracle.jbo.domain.Number due to java.sql.SQLException.
         at oracle.jbo.server.OracleSQLBuilderImpl.doLoadFromResultSet(OracleSQLBuilderImpl.java:1375)
         at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:2536)
         at oracle.jbo.server.ViewRowImpl.populate(ViewRowImpl.java:3885)
         at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:2555)
         at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:6044)
         at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:5822)
         at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:3693)
         at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:3548)
         at oracle.jbo.server.QueryCollection.get(QueryCollection.java:2261)
         at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:5111)
         at oracle.jbo.server.ViewRowSetIteratorImpl.doFetch(ViewRowSetIteratorImpl.java:2971)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2827)
         at oracle.jbo.server.ViewRowSetIteratorImpl.refresh(ViewRowSetIteratorImpl.java:3068)
         at oracle.jbo.server.ViewRowSetImpl.notifyRefresh(ViewRowSetImpl.java:2785)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1259)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1060)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2810)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2787)
         at oracle.jbo.server.ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1616)
         at oracle.jbo.server.ViewRowSetImpl.first(ViewRowSetImpl.java:3544)
         at oracle.jbo.server.ViewObjectImpl.first(ViewObjectImpl.java:10165)
         at oracle.adf.model.binding.DCIteratorBinding.setupRSIstate(DCIteratorBinding.java:779)
         at oracle.adf.model.binding.DCIteratorBinding.refreshControl(DCIteratorBinding.java:679)
         at oracle.jbo.uicli.binding.JUIteratorBinding.refreshControl(JUIteratorBinding.java:474)
         at oracle.adf.model.binding.DCIteratorBinding.refresh(DCIteratorBinding.java:4474)
         at oracle.adf.model.binding.DCExecutableBinding.refreshIfNeeded(DCExecutableBinding.java:347)
         at oracle.adf.model.binding.DCIteratorBinding.getRowSetIterator(DCIteratorBinding.java:1605)
         at oracle.jbo.jbotester.panel.BindingPanel.setBindingContext(BindingPanel.java:116)
         at oracle.jbo.jbotester.panel.BindingPanel.<init>(BindingPanel.java:88)
         at oracle.jbo.jbotester.panel.BindingPanel.<init>(BindingPanel.java:71)
         at oracle.jbo.jbotester.form.BindingForm.createMasterPanel(BindingForm.java:63)
         at oracle.jbo.jbotester.form.BindingForm.init(BindingForm.java:98)
         at oracle.jbo.jbotester.form.JTForm.<init>(JTForm.java:72)
         at oracle.jbo.jbotester.form.BindingForm.<init>(BindingForm.java:50)
         at oracle.jbo.jbotester.form.FormType$1.createForm(FormType.java:63)
         at oracle.jbo.jbotester.form.FormType.createForm(FormType.java:199)
         at oracle.jbo.jbotester.form.FormType.createTab(FormType.java:270)
         at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:248)
         at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:207)
         at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:203)
         at oracle.jbo.jbotester.tree.ObjTreeNode.showForm(ObjTreeNode.java:140)
         at oracle.jbo.jbotester.tree.ObjTreeNode.showForm(ObjTreeNode.java:123)
         at oracle.jbo.jbotester.tree.ObjTreeNode$ShowAction.doAction(ObjTreeNode.java:399)
         at oracle.jbo.jbotester.AbstractJboAction.actionPerformed(AbstractJboAction.java:97)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:809)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:850)
         at java.awt.Component.processMouseEvent(Component.java:6289)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
         at java.awt.Component.processEvent(Component.java:6054)
         at java.awt.Container.processEvent(Container.java:2041)
         at java.awt.Component.dispatchEventImpl(Component.java:4652)
         at java.awt.Container.dispatchEventImpl(Container.java:2099)
         at java.awt.Component.dispatchEvent(Component.java:4482)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
         at java.awt.Container.dispatchEventImpl(Container.java:2085)
         at java.awt.Window.dispatchEventImpl(Window.java:2478)
         at java.awt.Component.dispatchEvent(Component.java:4482)
         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
         at java.awt.EventQueue.access$000(EventQueue.java:85)
         at java.awt.EventQueue$1.run(EventQueue.java:603)
         at java.awt.EventQueue$1.run(EventQueue.java:601)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
         at java.awt.EventQueue$2.run(EventQueue.java:617)
         at java.awt.EventQueue$2.run(EventQueue.java:615)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Caused by: java.sql.SQLException: Invalid column index
         at oracle.jdbc.driver.OracleResultSetImpl.getBytes(OracleResultSetImpl.java:1494)
         at oracle.jbo.domain.Number$1facClass.createDatum(Number.java:113)
         at oracle.jbo.server.OracleSQLBuilderImpl.doLoadFromResultSet(OracleSQLBuilderImpl.java:1326)
         ... 81 more
    ## Detail 0 ##
    java.sql.SQLException: Invalid column index
         at oracle.jdbc.driver.OracleResultSetImpl.getBytes(OracleResultSetImpl.java:1494)
         at oracle.jbo.domain.Number$1facClass.createDatum(Number.java:113)
         at oracle.jbo.server.OracleSQLBuilderImpl.doLoadFromResultSet(OracleSQLBuilderImpl.java:1326)
         at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:2536)
         at oracle.jbo.server.ViewRowImpl.populate(ViewRowImpl.java:3885)
         at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:2555)
         at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:6044)
         at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:5822)
         at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:3693)
         at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:3548)
         at oracle.jbo.server.QueryCollection.get(QueryCollection.java:2261)
         at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:5111)
         at oracle.jbo.server.ViewRowSetIteratorImpl.doFetch(ViewRowSetIteratorImpl.java:2971)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2827)
         at oracle.jbo.server.ViewRowSetIteratorImpl.refresh(ViewRowSetIteratorImpl.java:3068)
         at oracle.jbo.server.ViewRowSetImpl.notifyRefresh(ViewRowSetImpl.java:2785)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1259)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1060)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2810)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2787)
         at oracle.jbo.server.ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1616)
         at oracle.jbo.server.ViewRowSetImpl.first(ViewRowSetImpl.java:3544)
         at oracle.jbo.server.ViewObjectImpl.first(ViewObjectImpl.java:10165)
         at oracle.adf.model.binding.DCIteratorBinding.setupRSIstate(DCIteratorBinding.java:779)
         at oracle.adf.model.binding.DCIteratorBinding.refreshControl(DCIteratorBinding.java:679)
         at oracle.jbo.uicli.binding.JUIteratorBinding.refreshControl(JUIteratorBinding.java:474)
         at oracle.adf.model.binding.DCIteratorBinding.refresh(DCIteratorBinding.java:4474)
         at oracle.adf.model.binding.DCExecutableBinding.refreshIfNeeded(DCExecutableBinding.java:347)
         at oracle.adf.model.binding.DCIteratorBinding.getRowSetIterator(DCIteratorBinding.java:1605)
         at oracle.jbo.jbotester.panel.BindingPanel.setBindingContext(BindingPanel.java:116)
         at oracle.jbo.jbotester.panel.BindingPanel.<init>(BindingPanel.java:88)
         at oracle.jbo.jbotester.panel.BindingPanel.<init>(BindingPanel.java:71)
         at oracle.jbo.jbotester.form.BindingForm.createMasterPanel(BindingForm.java:63)
         at oracle.jbo.jbotester.form.BindingForm.init(BindingForm.java:98)
         at oracle.jbo.jbotester.form.JTForm.<init>(JTForm.java:72)
         at oracle.jbo.jbotester.form.BindingForm.<init>(BindingForm.java:50)
         at oracle.jbo.jbotester.form.FormType$1.createForm(FormType.java:63)
         at oracle.jbo.jbotester.form.FormType.createForm(FormType.java:199)
         at oracle.jbo.jbotester.form.FormType.createTab(FormType.java:270)
         at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:248)
         at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:207)
         at oracle.jbo.jbotester.form.FormType.showForm(FormType.java:203)
         at oracle.jbo.jbotester.tree.ObjTreeNode.showForm(ObjTreeNode.java:140)
         at oracle.jbo.jbotester.tree.ObjTreeNode.showForm(ObjTreeNode.java:123)
         at oracle.jbo.jbotester.tree.ObjTreeNode$ShowAction.doAction(ObjTreeNode.java:399)
         at oracle.jbo.jbotester.AbstractJboAction.actionPerformed(AbstractJboAction.java:97)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:809)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:850)
         at java.awt.Component.processMouseEvent(Component.java:6289)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
         at java.awt.Component.processEvent(Component.java:6054)
         at java.awt.Container.processEvent(Container.java:2041)
         at java.awt.Component.dispatchEventImpl(Component.java:4652)
         at java.awt.Container.dispatchEventImpl(Container.java:2099)
         at java.awt.Component.dispatchEvent(Component.java:4482)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
         at java.awt.Container.dispatchEventImpl(Container.java:2085)
         at java.awt.Window.dispatchEventImpl(Window.java:2478)
         at java.awt.Component.dispatchEvent(Component.java:4482)
         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
         at java.awt.EventQueue.access$000(EventQueue.java:85)
         at java.awt.EventQueue$1.run(EventQueue.java:603)
         at java.awt.EventQueue$1.run(EventQueue.java:601)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
         at java.awt.EventQueue$2.run(EventQueue.java:617)
         at java.awt.EventQueue$2.run(EventQueue.java:615)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    [133] JUErrorHandlerDlg.reportException(oracle.jbo.AttributeLoadException)
    [134] LoadFromResultSet failed (8)
    [135] DCBindingContainer.reportException :oracle.jbo.AttributeLoadException
    [136] oracle.jbo.AttributeLoadException: JBO-27021: Failed to load custom data type value at index 8 with java object of type oracle.jbo.domain.Number due to java.sql.SQLException.
         at oracle.jbo.server.OracleSQLBuilderImpl.doLoadFromResultSet(OracleSQLBuilderImpl.java:1375)
         at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:2536)
         at oracle.jbo.server.ViewRowImpl.populate(ViewRowImpl.java:3885)
         at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:2555)
         at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:6044)
         at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:5822)
         at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:3693)
         at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:3548)
         at oracle.jbo.server.QueryCollection.get(QueryCollection.java:2261)
         at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:5111)
         at oracle.jbo.server.ViewRowSetIteratorImpl.doFetch(ViewRowSetIteratorImpl.java:2971)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2827)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2787)
         at oracle.jbo.server.ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1616)
         at oracle.jbo.server.ViewRowSetImpl.first(ViewRowSetImpl.java:3544)
         at oracle.jbo.server.ViewObjectImpl.first(ViewObjectImpl.java:10165)
         at oracle.adf.model.binding.DCIteratorBinding.internalGetCurrentRowInBinding(DCIteratorBinding.java:2258)
         at oracle.jbo.uicli.binding.JUIteratorBinding.internalGetCurrentRowInBinding(JUIteratorBinding.java:500)
         at oracle.adf.model.binding.DCIteratorBinding.getCurrentRow(DCIteratorBinding.java:2203)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.internalCheckPermission(JUCtrlActionBinding.java:2050)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.isOperationEnabled(JUCtrlActionBinding.java:325)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.isActionEnabled(JUCtrlActionBinding.java:296)
         at oracle.jbo.uicli.controls.JUNavigationBar._isEnabled(JUNavigationBar.java:1342)
         at oracle.jbo.uicli.controls.JUNavigationBar._updateButtonStates(JUNavigationBar.java:1331)
         at oracle.jbo.jbotester.NavigationBar._updateButtonStates(NavigationBar.java:99)
         at oracle.jbo.uicli.controls.JUNavigationBar$3.run(JUNavigationBar.java:1246)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:642)
         at java.awt.EventQueue.access$000(EventQueue.java:85)
         at java.awt.EventQueue$1.run(EventQueue.java:603)
         at java.awt.EventQueue$1.run(EventQueue.java:601)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:612)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
         at java.awt.Dialog$1.run(Dialog.java:1046)
         at java.awt.Dialog$3.run(Dialog.java:1098)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.awt.Dialog.show(Dialog.java:1096)
         at java.awt.Component.show(Component.java:1585)
         at java.awt.Component.setVisible(Component.java:1537)
         at java.awt.Window.setVisible(Window.java:842)
         at java.awt.Dialog.setVisible(Dialog.java:986)
         at oracle.jbo.uicli.controls.JUErrorDialog.showError(JUErrorHandlerDlg.java:289)
         at oracle.jbo.uicli.controls.JUErrorHandlerDlg$1myRunnable.run(JUErrorHandlerDlg.java:370)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:642)
         at java.awt.EventQueue.access$000(EventQueue.java:85)
         at java.awt.EventQueue$1.run(EventQueue.java:603)
         at java.awt.EventQueue$1.run(EventQueue.java:601)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:612)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Caused by: java.sql.SQLException: Invalid column index
         at oracle.jdbc.driver.OracleResultSetImpl.getBytes(OracleResultSetImpl.java:1494)
         at oracle.jbo.domain.Number$1facClass.createDatum(Number.java:113)
         at oracle.jbo.server.OracleSQLBuilderImpl.doLoadFromResultSet(OracleSQLBuilderImpl.java:1326)
         ... 60 more
    ## Detail 0 ##
    java.sql.SQLException: Invalid column index
         at oracle.jdbc.driver.OracleResultSetImpl.getBytes(OracleResultSetImpl.java:1494)
         at oracle.jbo.domain.Number$1facClass.createDatum(Number.java:113)
         at oracle.jbo.server.OracleSQLBuilderImpl.doLoadFromResultSet(OracleSQLBuilderImpl.java:1326)
         at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:2536)
         at oracle.jbo.server.ViewRowImpl.populate(ViewRowImpl.java:3885)
         at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:2555)
         at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:6044)
         at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:5822)
         at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:3693)
         at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:3548)
         at oracle.jbo.server.QueryCollection.get(QueryCollection.java:2261)
         at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:5111)
         at oracle.jbo.server.ViewRowSetIteratorImpl.doFetch(ViewRowSetIteratorImpl.java:2971)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2827)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2787)
         at oracle.jbo.server.ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1616)
         at oracle.jbo.server.ViewRowSetImpl.first(ViewRowSetImpl.java:3544)
         at oracle.jbo.server.ViewObjectImpl.first(ViewObjectImpl.java:10165)
         at oracle.adf.model.binding.DCIteratorBinding.internalGetCurrentRowInBinding(DCIteratorBinding.java:2258)
         at oracle.jbo.uicli.binding.JUIteratorBinding.internalGetCurrentRowInBinding(JUIteratorBinding.java:500)
         at oracle.adf.model.binding.DCIteratorBinding.getCurrentRow(DCIteratorBinding.java:2203)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.internalCheckPermission(JUCtrlActionBinding.java:2050)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.isOperationEnabled(JUCtrlActionBinding.java:325)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.isActionEnabled(JUCtrlActionBinding.java:296)
         at oracle.jbo.uicli.controls.JUNavigationBar._isEnabled(JUNavigationBar.java:1342)
         at oracle.jbo.uicli.controls.JUNavigationBar._updateButtonStates(JUNavigationBar.java:1331)
         at oracle.jbo.jbotester.NavigationBar._updateButtonStates(NavigationBar.java:99)
         at oracle.jbo.uicli.controls.JUNavigationBar$3.run(JUNavigationBar.java:1246)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:642)
         at java.awt.EventQueue.access$000(EventQueue.java:85)
         at java.awt.EventQueue$1.run(EventQueue.java:603)
         at java.awt.EventQueue$1.run(EventQueue.java:601)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:612)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
         at java.awt.Dialog$1.run(Dialog.java:1046)
         at java.awt.Dialog$3.run(Dialog.java:1098)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.awt.Dialog.show(Dialog.java:1096)
         at java.awt.Component.show(Component.java:1585)
         at java.awt.Component.setVisible(Component.java:1537)
         at java.awt.Window.setVisible(Window.java:842)
         at java.awt.Dialog.setVisible(Dialog.java:986)
         at oracle.jbo.uicli.controls.JUErrorDialog.showError(JUErrorHandlerDlg.java:289)
         at oracle.jbo.uicli.controls.JUErrorHandlerDlg$1myRunnable.run(JUErrorHandlerDlg.java:370)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:642)
         at java.awt.EventQueue.access$000(EventQueue.java:85)
         at java.awt.EventQueue$1.run(EventQueue.java:603)
         at java.awt.EventQueue$1.run(EventQueue.java:601)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:612)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

    The Is Updatable attribute on the EO is false which I assume is the same as never. Here is the current config for it:
    <Attribute
    Name="StoreCount"
    IsUpdateable="false"
    IsQueriable="false"
    IsPersistent="false"
    Precision="5"
    Scale="0"
    ColumnName="STORECOUNT"
    SQLType="NUMERIC"
    Type="oracle.jbo.domain.Number"
    ColumnType="NUMBER"
    Expression="(select coalesce(count(*),0) as StoreCount from table2 where my_id = table1.my_id)">
    <Properties>
    <SchemaBasedProperties>
    <LABEL
    ResId="STORE_COUNT"/>
    </SchemaBasedProperties>
    </Properties>
    </Attribute>
    This attribute is in the same order in the VO and it is in the EO. The VO code is as follows:
    <ViewAttribute
    Name="StoreCount"
    IsUpdateable="false"
    IsQueriable="false"
    IsPersistent="false"
    PrecisionRule="true"
    EntityAttrName="StoreCount"
    EntityUsage="MyTable2EO"/>
    The VORowImpl has the attributes in the same order as well.
    Do you have any additional suggestions.

  • Trouble with SQL Expressions

    Hello everyone,
    I'm having trouble with this SQL expression that works in 8.5, and XI R2 runtime and designer, but I cannot edit the expression.  As soon as I open the SQL Expression and click the X-2 check button, the error following
    SQL Expression I'm trying to run:
    (Select Distinct b1.CandEmploymentType
        from ceistaffing a1
        inner join ceisubmittal b1 on a1.submittalid = b1.ceisubmittalid
    Where a1.Staffingchainid = CEIHRPROJECTEDACTUAL."STAFFINGCHAINID"
        and b1.createdate in (Select max(b2.createdate) from ceistaffing a2 inner join ceisubmittal b2 on a2.submittalid = b2.ceisubmittalid where a2.staffingchainid = a1.staffingchainid))
    The Errror I Receive After Clicking the X-2 button:
    Crystal Reports
    Error in compiling SQL Expression :
    Failed to retrieve data from the database.
    Details: ADO Error Code: 0x
    Source: SalesLogix OLE DB Provider
    Description: The multi-part identifier "CEIHRPROJECTEDACTUAL.STAFFINGCHAINID" could not be bound.
    Native Error:  [Database Vendor Code: 181797304 ].
    OK  
    This is the SQL statement passed to the database:
    SELECT (Select Distinct b1.CandEmploymentType
    from ceistaffing a1
    inner join ceisubmittal b1 on a1.submittalid = b1.ceisubmittalid
    Where a1.Staffingchainid = CEIHRPROJECTEDACTUAL."STAFFINGCHAINID"
    and b1.createdate in (Select max(b2.createdate) from ceistaffing a2 inner join ceisubmittal b2 on a2.submittalid = b2.ceisubmittalid where a2.staffingchainid = a1.staffingchainid))
    If I reverse the order of the where clause as follows, I do not get the error
    (Select Distinct b1.CandEmploymentType
    from ceistaffing a1
    inner join ceisubmittal b1 on a1.submittalid = b1.ceisubmittalid
    Where CEIHRPROJECTEDACTUAL."STAFFINGCHAINID" = a1.Staffingchainid
    and b1.createdate in (Select max(b2.createdate) from ceistaffing a2 inner join ceisubmittal b2 on a2.submittalid = b2.ceisubmittalid where a2.staffingchainid = a1.staffingchainid))
    This is the working SQL statement passed to the database.
    SELECT (Select Distinct b1.CandEmploymentType
    from ceistaffing a1
    inner join ceisubmittal b1 on a1.submittalid = b1.ceisubmittalid
    Where CEIHRPROJECTEDACTUAL."STAFFINGCHAINID" = a1.Staffingchainid
    and b1.createdate in (Select max(b2.createdate) from ceistaffing a2 inner join ceisubmittal b2 on a2.submittalid = b2.ceisubmittalid where a2.staffingchainid = a1.staffingchainid))
    FROM   "sysdba"."CEIHRPROJECTEDACTUAL" "CEIHRPROJECTEDACTUAL"
    I figured I would just reverse the where clause statements, but then I came to this one that I couldn't get to work:
    (Select case when tmp.restartcount = 0 then 'F' else 'T' end from
    (Select Count(b.restart) as restartcount from ceistaffing a inner join ceihrprojectedactual b on a.staffingchainid = b.staffingchainid
    where a.candcontactid = (Select distinct candcontactid from ceistaffing a2 where a2.staffingchainid = CEIHRPROJECTEDACTUAL."STAFFINGCHAINID")
    and b.restart = 'T'
    and a.createdate = (Select min(a1.createdate) from ceistaffing a1
                   where a1.createdate > (Select max(a3.createdate)
                                  from ceistaffing a3
                                  where a3.staffingchainid = CEIHRPROJECTEDACTUAL."STAFFINGCHAINID")
                   and a1.candcontactid = a.candcontactid)) as tmp )
    I've burned an entire day trying to find some solution.  Are there any patches out there that will fix this?
    I'm running Crystal Report XI Release 2 SP2 - Version 11.5.8.826
    Thank you, ...Rob

    Okay, to simplify the illustration of the problem Iu2019m facing, Iu2019ve created a bare bones example as described below:
    I've created a report that returns all contacts from our "CONTACT" table.  On the report, I've created a SQL expression to return a count of all contacts with the similar last name, as shown below:
    (Select count(a1.ContactID) from CONTACT a1 where a1.LASTNAME = "CONTACT"."LASTNAME")
    When I try to save the SQL expression,  I get this error:
    Crystal Reports
    Error in compiling SQL Expression :
    Failed to retrieve data from the database.
    Details: ADO Error Code: 0x
    Source: SalesLogix OLE DB Provider
    Description: The multi-part identifier "CONTACT.LASTNAME" could not be bound.
    Native Error:  [Database Vendor Code: 205193720 ].
    OK  
    This SQL expression works fine in CRW 8.5, but no luck in XI R2 SP4 - As mentioned above in the thread, this seems to be an issue solely with how XI R2 is parsing the SQL Expression.  If I remove the "A1" alias from my expression all is good, but that will not work for some of the more advanced SQL expressions I have that are using joins and sub queries.
    What will it take to get this recognized as an issue worthy of a hot fix?  I'm at a stand-still here, facing the unfortunate possibility of having to re-architect many of my reports.  Please help.
    Thank you, ...Rob
    Edited by: Rob Bartram on Aug 6, 2008 3:45 PM

  • CAS Policy Manager error when installing Server SQL express 2012

    Hello everyone,
    I was wondering if anyong can help me with this.
    I am trying to install SQL server express 2012 on a windows 7 computer and am unable to install it.
    When I try to start the installer I get the error "Microsoft .NET Framework CAS Policy Manager has stopped working"
    Problem signature:
      Problem Event Name: APPCRASH
      Application Name: caspol.exe
      Application Version: 2.0.50727.5420
      Application Timestamp: 4ca2b8df
      Fault Module Name: ntdll.dll
      Fault Module Version: 6.1.7601.18247
      Fault Module Timestamp: 521eaf24
      Exception Code: c0000005
      Exception Offset: 0000000000027689
      OS Version: 6.1.7601.2.1.0.256.1
      Locale ID: 1033
      Additional Information 1: 00a4
      Additional Information 2: 00a4a2975d5a28cfbbc1bf906fc7eacd
      Additional Information 3: 0146
      Additional Information 4: 0146abaed829ebf2f677c0e9088e54ea
    And after I hit close program on that I get the error:
    CasPol.exe - Application Error
    The application was unable to start correctly (0x0000005). Click OK to close the application.
    And I have tried redownloading it multiple times.
    I have run the .net cleanup tool and a repair tool
    I have uninstalled and reinstalled .net as well to the lastest version.
    With no luck at all.
    Any suggestions on what I might be able to do to fix this?
    An help would be greatly appreciated.

    Hello,
    It points to fact that your .Net Framework is corrupt.Use below tool to repair .Net framework
    .Net framework repair tool
    Additional helpful articles to refer
    CAS policy error message
    CAS policy error message when
    installing SQL server
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Client access from W7 to Server 2008 with SQL Express 2008 R2 not possible anymore (since installing yesterdays patches)

    Hi everyone!
    We are suddenly having Problems to access our SQL Express Server from our Clients (SBS 2008 with W7 clients).
    Till yesterday evening everything was working fine. At night we installed the latest MS patches für our Server 2008 (SBS2008).
    Since then we are not able to connect to the SQL Express Server over the Network. Locally (on the Server) it runs fine.
    Switching the Windows Firewall off on the Server also lets the clients connect ...
    The Windows Firewall still has all the ports open needed for SQL Server, we havn't changed anything.
    All the incoming rules that worked for years are still there (untouched).
    We just deinstalled all the latest patches, but problem still is here ... not sure if this was just a coincidence ...
    Any ideas what could be the Problem?
    Thanks in advance for your help
    Best regards
    Thomas

    Check firewall rules
    enable traffic on TCP 1433 and UDP 1434 (if isn't a named instance) or check sql using ports.
    Check Sql Server Browser in Configuration Manager and also net protocols.
    let's know about it
    Best regards,
    P.Ceglie
    Questo post è fornito "così com'è". Non conferisce garanzie o diritti di alcun tipo. Ricorda di usare la funzione "segna come risposta" per i post che ti hanno aiutato a risolvere il problema e "deseleziona come risposta" quando
    le risposte segnate non sono effettivamente utili. Questo è particolarmente utile per altri utenti che leggono il thread, alla ricerca di soluzioni a problemi similari. ENG: This posting is provided "AS IS" with no warranties, and confers no rights.
    Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • SSIS error authenticating proxy with SQL Agent

    Hello,
    I'm a BI Analyst (not DBA) and I've asked our IT department for access to SSIS and SQL Server Agent to deploy packages to import data from Oracle nightly and transform it into a dataset in SQL Server 2012 using SSIS.
    I've written several packages, deployed these to a SQL Server. These run fine when ran locally through Object Explorer > Integration Services Catalog > SSIDB by right clicking/execute. 
    However our DBA has set up an SSIS Proxy that I can use in conjunction with SQL Server Agent to run these packages. However, when I try to use this proxy I get the error message:
    'Unable to start execution of step 1 (reason: error authoenticating proxy ad\[name removed], system error. The username or password is incorrect. The step failed.'
    I've tried packages with security for 'dontsavesensitive' and 'encryptsensitivewithuserkey' but neither work. I'd like to rule anything out that I'm not doing, however I think it is a permissions issue (happy to be proven wrong though). 
    Can anyone offer suggestions for next steps please?
    Thanks, 
    ZP

    Hi V, 
    Thanks again. 
    I went to the general tab and it is all greyed out and the credentials box is empty - though I can click on the button with three dots on. However, it just takes me to a credentials form but doesn't give me any options to select from. The box for SSIS is
    ticked though. 
    It is all greyed out - I presumed this is because I haven't got permissions to set what the proxy can do?
    I tried select * from sys.credentials - didn't return any information (zero rows).
    I'm (mostly!) convinced the packages are fine - I've created several simple packages to demonstrate the same thing to our DBA and these simple packages all run fine when executed directly through SSMS but never work through SQL Agent with SSIS Proxy. His
    thinking is that its because I need to run them with security as 'dontsavesensitive' but these dont work either. 
    Do you know if I should be asking for a specific permission/credential?
    Thanks!

  • Error Establishing Socket with SQL Server 2000

    I have a java application that uses JDBC to connect to a source of data.
    The application has been installed on many platforms using many different data sources, but one combination has beaten me.
    I am using Windows Server 2003 and SQL Server 2000 Enterprise, when the application starts up it fails to connect to the database with the following message:
    [Microsoft][SQL Server 2000 Driver for JDBC] Error Establishing Socket
    I have looked at a lot of forums and tried many things but nothing has fixed the problem for me:
    To summarise:
    The URL I am using is jdbc:microsoft:sqlserver://locahost:1433
    I have also tried using the name of the machine and it's actual IP address
    I have checked that TCP/IP is enabled and using the correct port (1433)
    Both SQL Server and Windows authentication are enabled and I can connect using both method from ODBC
    I can connect to it and use it with c#.net, vb.net and ODBC from the same machine
    I have installed the latest SQL Server 2000 service pack
    The application works with SQL Server 2000 Developer on Windows XP
    If anyone has any other suggestions, I would love to hear from you.

    If you printed out the SQL state and error code that would be a bit more info:
    catch (SQLException e)
        e.printStackTrace();
        System.err.println("SQL state: " + e.getSQLState());
        System.err.println("SQL error: " + e.getErrorCode());
    }Maybe that will give you more detail as to exactly why this is happening.
    The only other thought I had was security. Maybe there's a permission to access the port that would have to be granted explicitly as part of M$'s new emphasis on security. You did say it was Windoze Server 2003. Maybe that's the difference between all the other installs and this one.
    No joy from me, sorry. - MOD

  • Understanding replica volume and recovery point volume usage with SQL Express Full Backup

    I am running some trials to test DPM 2012 R2's suitability for protection a set of SQL Server databases and I am trying to understand what happens when I create a recovery point with Express Full Backup.
    The databases use simple recovery model and in the tests I have made so far I have loaded more data into the databases between recovery points since that will be a typical scenario - the databases will grow over time. The database files are set to autogrowth
    by 10%
    I have been looking at the change in USED space in the replica volume and in the recovery point volume after new recovery points and have a hard time understanding it.
    After the first test where data was loaded into the database and an Express Full Backup recovery point was created, I saw an increase in used space in the replica volume of 85 Gb and 29 GB in the recovery point volume. That is somewhat more than I think
    the database grew (I realize that should have monitored that, but did not), but anyway it is not completely far out.
    In the next test I did the same thing except I loaded twice as much data into the database.
    Here is where it gets odd: This causes zero increased usage in the replica volume and 33 GB increased use in the recovery point volume.
    I do not understand why the replica volume use increases with some recovery points and not with others.
    Note that I am only discussing increased usage in the volumes - not actual volume growth. The volumes are still their original size.
    I have been using 3-4 days on the test and the retention period is set to 12 days, so nothing should be expired yet.

    Hi,
    The replica volume usage represents the physical database file(s) size. The database file size on the replica should be equal to the database file size on the protected server.  This is both .mdf and .ldf files.  If when you load data
    into the database and you overwrite current tables versus adding new ones, or if there is white space in the database files and the load simply uses that white space, then there will not be any increase in the file size, so there will not be any increase
    in the replica used space.
    The recovery point volume will only contain delta changes applied to the database files.  As the changed blocks overwrite the files on the replica during express full backup, VSS (volsnap.sys) driver copies the old blocks about to be overwritten
    to the recovery point volume before allowing the change to be applied to the file on the replica. 
    Hope this helps explain what you are seeing.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT]
    This posting is provided "AS IS" with no warranties, and confers no rights.

  • Is it possible to use MERGE with sql*plus and if yes how?

    Hello everybody,
    I have an xls file and I have to load its data with sql*loader, but instead of "APPEND" operation stated in the control file I need MERGE operation.Here is what my control file contains:
    LOAD DATA
    INFILE 'C:\WORK\DSK_WH\LOAD_FIRST\sqlldr\data.csv'
    BADFILE 'C:\WORK\DSK_WH\LOAD_FIRST\sqlldr\p_badfile.txt'
    APPEND
    INTO TABLE D_ACCOUNT_NAMES_TMP
    FIELDS TERMINATED BY ";"
    TRAILING NULLCOLS
    (account_number , consignment, sub_consignment, consign_sub_consign, account_name_bg, account_number_2, consign_parent_2, account_name_bg_2, account_number_3, account_name_bg_3, account_number_4, account_name_bg_4, account_number_5 , ACCOUNT_NAME_BG_5 ).
    How can I use merge in this case , instead of insert ?
    Regards,
    Maria

    I'm not sure if there is any MERGE thing in SQL*Loader, but you can have a backup table which gets loaded by SQL*Loader and then use MERGE statement from backup to the original table, if your data is not huge to become a performance barrier. This is just a suggestion, may be you can try some reading of SQL*Loader here.
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96652/part2.htm#436160
    Cheers
    Sarma.

Maybe you are looking for

  • It looks like my MBP optical drive is dead - arg!

    I have a Macbook Pro - circa 2006. This one does not have apple care. I've got a blank cdr stuck inside it. As near as I can tell the macbook does not even know it has a cd/dvd drive anymore. The drive is spinning, but the OS does not see a disk. Not

  • Windows 7 and Acrobat 9 Pro (CS4)

    Oh please, oh please won't someone help me.  Someone else HAS to have run into this. I install CS4 and enter serial number on a Windows 7 RTM machine (64-bit).  It tells me I'm activated.  And I can use all the products just fine - except Acrobat.  A

  • Use of Oracle Concurrent Requests to drive Essbase load and calc

    Hi all, we currently have a process which kicks off a check to see if users are online (maxl) , logoff users if necessary (maxl), run essbase calculation with maxl, run eis job if necessary, evaluate if there was any error and report the error back.

  • My wifes iphone 4 is disabled and askes for pass code but we dont remember it now it will not open

    it askes me for a pass code to connect to itunes but i do not have how can i hard reset my wifes iphone 4

  • Sync Alert - Change more than 5%

    Hi all, I am currently syncing between a MacBook Pro, a PowerBook G4 and a Sony Ericsson cell phone. Quite often on the laptops, I receive the error that states, "more than 5% of your calendar/contacts will be changed... are you sure you want to sync