Cskbctxp.sql          FAILED

Hello ,
when recompile object through adadmin I am getting an error.
sqlplus -s APPS/***** @/u04/oa11iprod/propertyappl/cs/11.5.0/patch/115/sql/cskbctxp.sql &un_apps &un_cs CTXSYS
declare
ERROR at line 1:
ORA-20000: Oracle Text error:
DRG-10703: invalid framework object korean_lexer
ORA-06512: at "CTXSYS.DRUE", line 160
ORA-06512: at "CTXSYS.CTX_DDL", line 26
ORA-06512: at "CTXSYS.AD_CTX_DDL", line 150
ORA-06512: at line 64
I could not find any solution. if anyone gone through this error please let me know.
Thanks
Prince

Hi,
What is the application release? database version and OS?
Please see these docs.
cskbctxp.sql fails with error DRG-10703: invalid framework object korean_lexer [ID 443894.1]
cssrctxp.sql fails with DRG-10703: Invalid Framework Object Korean_lexer [ID 402422.1]
Thanks,
Hussein

Similar Messages

  • Cssrcrix.sql failes with DRG-10703: invalid framework object korean_lexer

    hi,
    While applying 11.5.10.2 patch on RHEL 5.5 with DB 10.2.0.5 one of the worker got failed
    as fallows:
    sqlplus -s APPS/***** @/appltest/preprod/prodappl/cs/11.5.0/patch/115/sql/cssrcrix.sql &un_apps &un_cs CTXSYS
    declare
    ERROR at line 1:
    ORA-20000: Oracle Text error:
    DRG-10703: invalid framework object korean_lexer
    ORA-06512: at line 224
    Please suggest if you have any idea

    Please see (cssrctxp.sql fails with DRG-10703: Invalid Framework Object Korean_lexer [ID 402422.1]).
    Thanks,
    Hussein

  • APEX SSO - execution of regapp.sql failing

    Hi All,
    I have Database 11.1.0.6.0. APEX version is 3.0.1
    I am trying to Configure SSO(single sign-on) with Apex.
    I am logged in as FLOWS_030100 into the database
    I am facing following issues when trying to execute the regapp.sql, which is extracted from ssosdk902.zip. I got this zip from 10.1.2.0.1 Oracle App Server and trying to use it for configuration for version 10.1.3.1
    1. It fails with following error.
    Partner Application Configuration
    ERROR: Error in registration. Please try again
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    PL/SQL procedure successfully completed.
    Commit complete.
    I figured out it was complaining for the l_ip_check varchar2(1); size, I increased that but then I got the following message:
    Partner Application Configuration
    ERROR: Error in registration. Please try again
    User-Defined Exception
    PL/SQL procedure successfully completed.
    Commit complete.
    No errors.
    I am wondering why is it not prompting for the values. Is there some change I should be doing to the regapp.sql to get it working for 11g DataBase.
    Please reply.
    Thanks
    Pooja
    Edited by: user539270 on Mar 19, 2009 11:57 PM

    Hi Scott
    Thanks for the reply!
    I got the script working without any change when executed from SQL Developer.
    How ever I am facing issue after getting the APEX configured with Oracle SSO. I have opened another thread with the details.
    (Facing Issues: APEX Configuration with SSO
    Please have a look.
    Regards
    Pooja

  • ADF UIX doSelect override with PL/SQL fails to allow insert

    I've been trying to create an ADF-UIX web app for simple insert/update/delete of records to a table.
    The schema simply has 2 tables - master and detail where the detail pk is made up of the master id and a start date:
    CREATE TABLE master (
    id NUMBER NOT NULL,
    name VARCHAR2 (10) NOT NULL,
    CONSTRAINT pk_master
    PRIMARY KEY ( id ));
    CREATE TABLE detail (
    id NUMBER NOT NULL,
    start_date DATE NOT NULL,
    name VARCHAR2 (10) NOT NULL,
    description VARCHAR2 (100),
    CONSTRAINT pk_detail
    PRIMARY KEY ( id, start_date ));
    ALTER TABLE detail ADD CONSTRAINT d_m_fk FOREIGN KEY (id) REFERENCES master(id)
    This works fine when I create it in a similar manner to that described in the "Complete ADF UIX Application ..." tutorial doc.
    http://www.oracle.com/technology/products/jdev/collateral/tutorials/9050/adfuix_tut.html
    I then tried to override the ADF doSelect and doDML methods as outlined in ADF_BC_StoredProcedures.zip example app allowing me to use PL/SQL stored pkg for dml.
    http://www.oracle.com/technology/sample_code/products/jdev/10g/ADF_BC_StoredProcedures.zip
    On trying to insert a new row my web app now fails with a null pointer exception when I press the Submit button. The app calls doSelect->handleStoredProcSelect which fails to get the value of a column.
    void handleStoredProcSelect() {
    CallableStatement st = null;
    try {
    String stmt = "BEGIN test_api.do_select(?,?,?,?,?); END;";
    DBTransaction tr = getDBTransaction();
    st = tr.createCallableStatement(stmt,1);
    ## This line works, I'm guessing because the value is populated from the master record I've selected in the form ...
    st.setLong(1,getTestId().longValue());
    ##FAILS HERE st.setDate(2,getStartDate().dateValue());
    Update,delete still work ok. And if I run the test app (right click on AppModule and select Test) all works ok.
    I'm not sure why doSelect is called on an insert so I commented out:
    doSelect
    handleStoredProcSelect
    handleStoredProcLock
    compareOldAttrTo
    Web App now lets me insert as expected.
    So finally ....my question is:
    Whilst the app now works does commenting out the doSelect leave me open to problems I haven't thought off
    and if not if you did want to use it how can you allow inserts?
    Any thoughts or similar experiences appreciated ...
    Cheers
    Ian

    I've been trying to create an ADF-UIX web app for simple insert/update/delete of records to a table.
    The schema simply has 2 tables - master and detail where the detail pk is made up of the master id and a start date:
    CREATE TABLE master (
    id NUMBER NOT NULL,
    name VARCHAR2 (10) NOT NULL,
    CONSTRAINT pk_master
    PRIMARY KEY ( id ));
    CREATE TABLE detail (
    id NUMBER NOT NULL,
    start_date DATE NOT NULL,
    name VARCHAR2 (10) NOT NULL,
    description VARCHAR2 (100),
    CONSTRAINT pk_detail
    PRIMARY KEY ( id, start_date ));
    ALTER TABLE detail ADD CONSTRAINT d_m_fk FOREIGN KEY (id) REFERENCES master(id)
    This works fine when I create it in a similar manner to that described in the "Complete ADF UIX Application ..." tutorial doc.
    http://www.oracle.com/technology/products/jdev/collateral/tutorials/9050/adfuix_tut.html
    I then tried to override the ADF doSelect and doDML methods as outlined in ADF_BC_StoredProcedures.zip example app allowing me to use PL/SQL stored pkg for dml.
    http://www.oracle.com/technology/sample_code/products/jdev/10g/ADF_BC_StoredProcedures.zip
    On trying to insert a new row my web app now fails with a null pointer exception when I press the Submit button. The app calls doSelect->handleStoredProcSelect which fails to get the value of a column.
    void handleStoredProcSelect() {
    CallableStatement st = null;
    try {
    String stmt = "BEGIN test_api.do_select(?,?,?,?,?); END;";
    DBTransaction tr = getDBTransaction();
    st = tr.createCallableStatement(stmt,1);
    ## This line works, I'm guessing because the value is populated from the master record I've selected in the form ...
    st.setLong(1,getTestId().longValue());
    ##FAILS HERE st.setDate(2,getStartDate().dateValue());
    Update,delete still work ok. And if I run the test app (right click on AppModule and select Test) all works ok.
    I'm not sure why doSelect is called on an insert so I commented out:
    doSelect
    handleStoredProcSelect
    handleStoredProcLock
    compareOldAttrTo
    Web App now lets me insert as expected.
    So finally ....my question is:
    Whilst the app now works does commenting out the doSelect leave me open to problems I haven't thought off
    and if not if you did want to use it how can you allow inserts?
    Any thoughts or similar experiences appreciated ...
    Cheers
    Ian

  • Item Values Not Set - Dynamic SQL Fails to Parse.

    ** Think I've fixed this **
    (By simply defining some page computations I was able to set the item values to some default. Please don't feel the need to reply :-))
    I have a page consisting of 5 report parameters and a report, all in one region, 4 parameters are LOVs and one is a text field which in the query are all compared to table column values. The report region type is SQL Query(PL/SQL function body returning SQL Query).
    If I load the page in a new session with default values for the LOVs as '%' and a null text field, I get the following error message:-
    failed to parse SQL query:
    ORA-00936: missing expression
    If I examine the session state, I see that none of the parameter values are set, which is probably why the dynamic sql is failing.
    If I set one of the parameters to something, eg. choose another value in an LOV or type some text in the text field, and re-run the report, it executes without error.
    What's the easiest way to fix this, is it to set the page items to some specific values when the page is first loaded? If so how do I do that? I'm not having much luck creating some process to do it.
    All help appreciated.
    Ian
    Message was edited by:
    Ian_F

    Hi Ian,
    Did you already try to put a default value for that lov?
    Or try to do a computation before header?
    Thanks,
    Dimitri
    -- http://dgielis.blogspot.com
    -- http://apex-evangelists.com

  • 11g upgrade script gen_inst.sql fails to export all users

    I'm trying to upgrade a database from 10g XE to 11g XE; however, the upgrade script gen_inst.sql that's included with the installation media fails to include all of the database users in the sql file it generates. Out of 33 users, only 3 are included in the ws.sql file that is created. I can't seem to find any difference between the users that are included and those that are missed, all have the same roles and default tablespaces, but I'm new to Oracle XE so I might be missing something. Does anyone know why the script might miss certain users?

    The homepage says its Application Express 2.1.0.00.39.
    If I'm understanding this correctly there should still be more than 3 schema owners, for example when I run the query "select distinct owner from dba_tables" I see the rest of the users that I was expecting.
    When I imported the data onto the 11g server (using impdp) I can see in the logs that it's importing the other schemas (e.g. imported "MP_DOC"."TEXT" ... in this case MP_DOC does not show up in the list of workspaces or users after running the install.sql script, but MP_DOUG does, and from what I can see they both should be there).
    My apologies if I'm not being clear or understanding this right.

  • Delay SCOM Validation on SQL Failed Job

    Hi Everyone,
    Let me explain the scenario, so anyone can give an idea whether this is possible or not.
    We use SCOM to monitor SQL Server and it means we use it for monitoring all aspects for SQL Server such as: SQL Agent Jobs.
    We have a case where a SQL Job can fail due a busy activity on the server, and basically when this happens we just connect on SQL Instance and start the job again, but meanwhile an alert was generated.
    We are thinking to use SQL Retry Job option, so in this case we avoid to connect on the server to just start it again. 
    So, based on that I'd like to know if there is any option on SCOM that delays the validation or waits until the job is really finished, so I avoid the first failure and let the retry option do its job.
    Any inputs will be appreciated.
    Att,
    Marcos Freccia [MTA|MCTS|MCITP|MCT SQL Server 2008]
    Blog|Twitter
    Assine também os feeds clicando
    aqui

    Hi
    you can disable current monitoring by creating override and recreate monitor with consolidation. for more information refer below link
    http://msdn.microsoft.com/en-us/library/ee809324.aspx
    http://technet.microsoft.com/en-us/library/hh457566.aspx
    Regards
    sridhar v

  • Custom Sql fails when using Date Parameter

    I need to do following using DB adapter
    select count(*) from some_table where creation_date >= #from_date and creation_date <= #to_date
    I used Custom sql options, but It did not asked for add params. so I added manually above params in the query. I am getting following query. I don't know how to get this working. i am on 10.1.3.
    Here I am getting from and to dates from a AQ message. AQ has from and to_date as date type elements. I am doing copy assign of these to SQL input params
    below is the error.
    <messages><input>
    <RecordCount_service_InputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    name="XI_RecordCount_serviceInput_msg"><XI_RecordCount_serviceInput xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/XI_RecordCount_service">
    <ns0:v_fromdate1 xmlns="" xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/db/XI_RecordCount_service">2008-01-01T00:00:00.000-06:00</ns0:v_fromdate1>
    <ns0:v_todate1 xmlns="" xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/db/XI_RecordCount_service">2008-01-31T00:00:00.000-06:00</ns0:v_todate1>
    <ns0:v_fromdate2 xmlns="" xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/db/XI_RecordCount_service">2008-01-01T00:00:00.000-06:00</ns0:v_fromdate2>
    <ns0:v_todate2 xmlns="" xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/db/XI_RecordCount_service">2008-01-31T00:00:00.000-06:00</ns0:v_todate2>
    </XI_RecordCount_serviceInput>
    </part></RecordCount_service_InputVariable></input><fault><bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>1861</code>
    </part><part name="summary"><summary>file:/u01/app/oracle/product/10.1.3/bpm/bpel/domains/arun/tmp/.bpel_XI_P2EU_Allegro_Service_1.0_79d8666bc8efe5a375691e0a5f06e2e4.tmp/XI_RecordCount_service.wsdl [ XI_RecordCount_service_ptt::XI_RecordCount_service(XI_RecordCount_serviceInput_msg,XI_RecordCount_serviceOutput) ] - WSIF JCA Execute of operation 'XI_RecordCount_service' failed due to: Pure SQL Exception.
    Pure SQL Execute of select count(*) record_count FROM XI_TABLE WHERE ( (trunc(CREATION_DATE) >= ? AND TRUNC(CREATION_DATE) &lt;= ?) OR (trunc(last_update_date) >= ? AND TRUNC(last_update_date) &lt;= ?) ) failed. Caused by java.sql.SQLException: ORA-01861: literal does not match format string
    ; nested exception is:
         ORABPEL-11633
    Pure SQL Exception.
    Pure SQL Execute of select count(*) record_count FROM XI_TABLE WHERE ( (trunc(CREATION_DATE) >= ? AND TRUNC(CREATION_DATE) &lt;= ?) OR (trunc(last_update_date) >= ? AND TRUNC(last_update_date) &lt;= ?) ) failed. Caused by java.sql.SQLException: ORA-01861: literal does not match format string
    The Pure SQL option is for border use cases only and provides simple yet minimal functionality. Possibly try the "Perform an operation on a table" option instead.
    </summary>
    </part><part name="detail"><detail>ORA-01861: literal does not match format string
    </detail>
    </part></bindingFault></fault></messages>

    I think the database accepts only your database format' dd-mm-yyyy'.
    Try to define #from_date & #to_date as string and use to_date() in your custim sql statement.
    Marc

  • SQL failing in my C program

    I have compiled the following program with Visual C++ 6 on my XP machine and it fails to return the correct information despite the contained SQL working fine in SQL Developer.
    #include <stdio.h>
    #include <ocilib.h>
    void err_handler(OCI_Error *err)
        printf("code  : ORA-%05i\n"
               "msg   : %s\n"
               "SQL   : %s\n",
               OCI_ErrorGetOCICode(err),
               OCI_ErrorGetString(err),
               OCI_GetSql(OCI_ErrorGetStatement(err))
    int main(int argc, char *argv[])
        OCI_Connection* cn;
        OCI_Statement* st;
        OCI_Resultset* rs;
        int Counter = 0;
        int ret;
        FILE *SlotsFile;
        char *Database, *UserName, *UserPassword, *StartDate, *EndDate;
        char Message[512] = "";
        Database = argv[1];
        UserName = argv[2];
        UserPassword = argv[3];
        StartDate = argv[4];
        EndDate = argv[5];
    //      printf("%s %s %s %s %s\n",Database,UserName,UserPassword, StartDate, EndDate);
        if (!OCI_Initialize(err_handler, NULL, OCI_ENV_DEFAULT))
            printf("We failed\n");
            return EXIT_FAILURE;
        cn = OCI_ConnectionCreate(Database, UserName, UserPassword, OCI_SESSION_DEFAULT);
        st = OCI_StatementCreate(cn);
    // the following is for Slots
        sprintf(Message, "select rownum,MemNumber,Turnover from(select members.mem_number MemNumber,sum(turnover/100) Turnover from members join egmplayersession on members.mem_number = egmplayersession.mem_number where enddate between to_date('%s') and to_date('%s') and mem_barred = 0 and members.mem_number <> '2020139607' group by members.mem_number order by turnover desc) where rownum <=200", StartDate, EndDate);
    //    printf(Message);
        OCI_Prepare(st, Message);
        OCI_Execute(st);
        rs = OCI_GetResultset(st);
        SlotsFile = fopen("Slots.html", "wt");
        while (OCI_FetchNext(rs))
            if (Counter < 9)
                fprintf(SlotsFile, "&nbsp&nbsp&nbsp&nbsp% 4d - %u<br/>", ++Counter, OCI_GetString(rs, 1));
            else
            if (Counter < 99)
                   fprintf(SlotsFile, "&nbsp% 4d - %u<br/>", ++Counter, OCI_GetString(rs, 1));
            else fprintf(SlotsFile, "% 4d - %u<br/>", ++Counter, OCI_GetString(rs, 1));
        ret = fclose(SlotsFile);
        OCI_Cleanup();
        return EXIT_SUCCESS;
        } My 1st attempt at a repair was to use to_date() as I felt that the date format was wrong but that made no change and wether I use to_date() or not it always works in sql developer.
    MemNumber is defined as a varchar2 of 12 bytes. Do I use OCI_GetString to retrieve it's value?
    BTW There no error messages. Program behaves as if it was successful.
    Please make suggestions on how I may fix this problem.

    Thank you for confirming that I should use OCI_GetString().
    However I also understand that you and the documentation says that OCI_GetString(rs, 1) would get the 1st variable but when I tried OCI_GetString(rs, 2) I got the value of Turnover rather than the value of MemNumber?
    Edited by: StrayGrey on Dec 8, 2008 7:02 AM
    Edited by: StrayGrey on Dec 8, 2008 7:03 AM

  • SQL Fails when a division is included in query (in Java Code)

    Not sure this is the correct Forum to as this:
    Running Oracle 10g R2 on XP/Vista
    I have a query that contains a division operation (y.value as x.value/z.value) runs in SQLPlus and The NetBeans 6.5.1 Query Editor OK but when I insert it into Java (1.6) code (abc.java) it fails.
    I tried to escape the "\" operator <whatever> (\/) and that dows not work either.
    Can someone help me with this
    Thanks
    J.

    Thanks ... You got me on that one... should havr provided the query upfront..
    However, I thought it was more likely that there was something one always has to do to get "functions" to run inside a query inside Java code
    Here's the query plus some code
    Pls note the: round(((x.VALUE/226672)*100),2) as Percentage
    r_dayEBOMDataProvider.setCachedRowSet((javax.sql.rowset.CachedRowSet) getValue("#{Page1.r_dayEBOMRowSet}"));
    r_dayEBOMRowSet.setDataSourceName("java:comp/env/jdbc/ABC_Oracle");
    r_dayEBOMRowSet.setCommand("WITH vals AS (SELECT date_day, value, site_datatype_id FROM r_day WHERE site_datatype_id = '1234' AND date_day > date_day - 367) SELECT x.date_day,x.VALUE,y.date_day,y.VALUE AS valuem1w,z.date_day,z.VALUE AS valuem1y,round(((x.VALUE/226672)*100),2) as Percentage FROM vals x, vals y, vals z WHERE y.date_day(+) = x.date_day - 7 AND z.date_day(+) = ADD_MONTHS (x.date_day,-12) AND y.site_datatype_id(+) = x.site_datatype_id AND z.site_datatype_id(+) = x.site_datatype_id AND x.date_day = TO_DATE('16-Feb-2010','DD-MON-YYYY')");
    r_dayEBOMRowSet.setTableName("R_DAY");
    Again, this works fine inside of SqlPlus and NetBeans Query Editor
    not in Java code thought.
    Thanks
    J.

  • Icxr12mi.sql fails on ORA-00001

    Dear All,
    When applying patch 6678700 to UPGRADE FROM 11.5.10.2 TO 12.1.1, it was failed on icxr12mi.sql and showed following error:
    sqlplus -s APPS/***** @/erpapfs/erpprod/apps/apps_st/appl/icx/12.0.0/patch/115/sql/icxr12mi.sql &un_inv &batchsize 4 28
    DECLARE
    ERROR at line 1:
    ORA-20000: icxr12mi.sql(1700): ORA-00001: unique constraint
    (ICX.ICX_CAT_ITEMS_CTX_HDRS_TLP_PK) violated
    ORA-06512: at line 215
    HELP!!!
    Thanks,
    Jackie
    Edited by: Jackie Han on Jul 6, 2011 2:12 AM

    Hi,
    Pls check solution provided in below MOS:-
    Upgrade From 11.5.10 To 12.1 Failing On ICXR12MI.SQL Unique Constraint [ID 1050849.1]
    Errors On Script icxr12mi.sql During Upgrade To Release 12.1.1 - ORA-20000 ORA-01403 ORA-06512 [ID 1114603.1]
    Icxr12mi.Sql Getting Unique Constraint Error While Applying Driver U4440000.Drv [ID 464798.1]
    Thanks,
    JD

  • SQL failing

    I am having issues with running update SQL calls on a php form that includes text fields. The issue is that users are cutting and pasting information from various word processing software such as Word and the formatting coming from those tools is cauing the SQL statement to error out when it runs. Is there a way to set up the php text fields so that this formatting is removed, which will allow the SQL to run the update and not fail, or is there something that can be done to the DB fields to except the information the user pastes in? As of right now the DB fields are just varchars set to a limit to a size I limit the users to entering in the text fields.

    I know Word can mess yout texts up, we have been dealing with it as well. You should be doing a cleanup on the client side in PHP, not for just this reason, but also for security reasons. I suggest you read something about SQL injection.
    Prepare a cleanup function, that will pass only safe characters and remove any special chars as well as HTML code, for example (depends on your application, what you want allow). Then pass all the inputs thru this function. You may impose some length limitation as well in this cleanup, either by cutting the text or issuing an error message to users and asking them to correct their input (the latter is preferred).
    Bye,
    Michal

  • Help Needed ! OTN Team, Re: @initjvm.sql failer!

    I have installed ORA816 on WindowsNT (128M). I failed to run initjvm.sql for several times, even I have give 120 M Share Pool Size and 120M Java Pool Size. meanwhile I also enlarge the virtual memory to 512M.
    The error is always the same:
    create or replace java system;
    ORA-03113: end-of-file on communication channel
    I do not know why this happened. what should I do next?
    Thanks
    Henry
    null

    Hi, Viswanathan Anand,
    First, Thanks a lot.
    What if I have only 256M Physical memory, is it possible to run the script initjvm.sql?
    I have set more virtual memeory 840M to 1024M under Windows NT, the larger RBS with 512M, 128M share_pool and 84M java_pool. Unfortunately I failed. I do not know why the initial database has less space specifications and we can not deal the sql script with it. Other suggestions?
    Thanks again.
    Henry
    null

  • EXEC SQL FAILS

    Hi,
    I am having 2 SQL blocks which calls the function HPS_SELECT_PIN_NB and INC_PIN_ERROR_NUMBER in oracle . Now the problem is that in the function inc_pin_error_number () .I see the trace event
    trace_event("Debut inc_pin_error_number()", PROCESSING);
    but i am NOT able to execute the EXEC SQL EXECUTE statement ( I guess that the control is not going in this EXEC statement ) , but when i call this same function (HPS_INC_PIN_NB) from the function load_pin_error_number it works .
    Please have a look at the two functions below and suggest as to why the functions is NOT being called from inc_pin_error_number .
    BLOCK 1
    int load_pin_error_number (V_card_number,
    V_pin_verification_number)
    char *V_card_number;
    int *V_pin_verification_number;
    EXEC SQL BEGIN DECLARE SECTION;
    int response_code;
    VARCHAR T_card_number[22];
    int T_pin_verification_number;
    VARCHAR ERREUR[256];
    EXEC SQL END DECLARE SECTION;
    char buffer[LG_MAX];
    trace_event("Debut load_pin_error_number()", PROCESSING);
    memset(T_card_number.arr, 0, sizeof(T_card_number.arr));
    memcpy(T_card_number.arr, V_card_number, strlen(V_card_number));
    T_card_number.len = strlen(V_card_number);
    response_code =999;
    EXEC SQL EXECUTE
    BEGIN
    :response_code:= HPS_SELECT_PIN_NB (:T_card_number,
    :T_pin_verification_number);
    EXCEPTION
    WHEN OTHERS THEN BEGIN
    :response_code :=-2;
    :ERREUR := SQLERRM;
    END;
    END;
    END-EXEC;
    if (response_code == -2)
    memset(buffer, 0, sizeof(buffer));
    sprintf(buffer,"GET PIN ERROR ERROR : %s\n", ERREUR.arr);
    trace_event(buffer, ERROR);
    *V_pin_verification_number = T_pin_verification_number;
    sprintf(buffer,"V_pin_verification_number %d\n", V_pin_verification_number);
    trace_event(buffer,V_pin_verification_number);
    trace_event("Fin load_pin_error_number()", PROCESSING);
    sprintf(buffer,"Response_code %d\n", response_code);
    trace_event(buffer,response_code);
    return(response_code);
    BLOCK 2
    int inc_pin_error_number (V_card_number)
    char *V_card_number;
    EXEC SQL BEGIN DECLARE SECTION;
    int response_code;
    VARCHAR T_card_number[22];
    VARCHAR ERREUR[256];
    EXEC SQL END DECLARE SECTION;
    char buffer[LG_MAX];
    trace_event("Debut inc_pin_error_number()", PROCESSING);
    memset(T_card_number.arr, 0, sizeof(T_card_number.arr));
    memcpy(T_card_number.arr, V_card_number, strlen(V_card_number));
    T_card_number.len = strlen(V_card_number);
    response_code =-1;
    EXEC SQL EXECUTE
    BEGIN
    :response_code:= HPS_INC_PIN_NB (:T_card_number);
    EXCEPTION
    WHEN OTHERS THEN BEGIN
    :response_code :=-2;
    :ERREUR := SQLERRM;
    END;
    END;
    END-EXEC;
    if (response_code == -2)
    memset(buffer, 0, sizeof(buffer));
    sprintf(buffer,"INC PIN ERROR ERROR : %s\n", ERREUR.arr);
    trace_event(buffer, ERROR);
    trace_event("Fin inc_pin_error_number()", PROCESSING);
    return(response_code);
    Regards
    Dhananjay Javalkar
    null

    Perhaps you can trap (profile) the query in Oracle to see what it gets submitted,
    thing is this query
    select id from table where ProcessedStatusColumn is null and DateColumn = (sub select to get most recent date in table where ProcessedStatusColumn is null)
    is not guaranteed to return a value, you need a default returned in case the search failed e.g.
    select
    NVL(id, 0)
    from table where ProcessedStatusColumn is null and DateColumn =
    (sub select to get most recent date in table where
    ProcessedStatusColumn is null)
    Arthur My Blog

  • SQL Failed login Report - SSRS or HTML

    Working on to create SSRS or HTMl Report for Failed Login from more then one server. 
    1) Get all Failed login information with server name and store it into one table 
    2) Create SSRS report. 
    Or If anyone has better script and Idea..
    Thanks 
    Please Mark As Answer if it is helpful. \\Aim To Inspire Rather to Teach A.Shah

    Hi,
    You can use the sp_readerrorlog to get the current error log and only return failed logins. See:
    Auditing Failed Logins in SQL Server
    Simply, you can add multiple data sources and datasets with sp_readerrorlog stored procedure. The number of them depends on the number of SQL Servers which you want to audit. And add multiple tables in your report with the corresponding datasets in your
    report.
    You can use PowerShell to retrieve the information from multiple servers. It is similar to the method which mentioned in the following articles:
    Check the Last SQL Server Backup Date using Windows PowerShell
    http://www.mssqltips.com/sqlservertip/1784/check-the-last-sql-server-backup-date-using-windows-powershell/
    Retrieve a List of SQL Server Databases and their Properties using PowerShell
    http://www.mssqltips.com/sqlservertip/1759/retrieve-a-list-of-sql-server-databases-and-their-properties-using-powershell/
    Automate collection and saving of failed logins for SQL Server
    http://www.mssqltips.com/sqlservertip/1750/automate-collection-and-saving-of-failed-logins-for-sql-server/
    Hope the information helps.
    Tracy Cai
    TechNet Community Support

Maybe you are looking for