JDBC issue while calling queries in oracle- urgent

Hi !
Theres a peculiar problem being faced while calling queries(SQL statements having join of more than 2 tables) in oracle database. We are using JDBC thin driver.
We are calling SQL statements from stateless session EJBs deployed in weblogic app server and using connection pool facility to connect to oracle database.
Now, the issue is that select queries having more then 2 tables run fine & give proper result in java but when we see trace in oracle by setting sql_trace to true.. we see some column rowid added as first column selected in such queries and oracle shows such queries to be failed.
Can anyone tell why & how & who adds this rowid ?
Has anyone faces such a problem ?
regards'

Am I right in you saying that the data is returned to the app server, but the database is saying it's not???
Veeeeeerrrry strange.
...I mean, if I understand you right, then I have to ask if you're sure that's what's actually happening.
Can anyone tell why & how & who adds this rowid?...and that you're sure you're not adding this yourself in the join?
...since (you imply) you're not using entities, just sql queries against the datasource connection, did you try running that query direct against the database?
...and... oh never mind.
hth
/k1

Similar Messages

  • JDBC Exception while calling a web-service

    Hi all,
    We are getting the following JDBC Driver Timeout Exception while calling an external web-service..
    An exception occurred while executing a transaction. Details: An error occurred while accesing the database. Detail:SQL statement: ' SELECT INSTANCEDATA, PROCESSID, INSTID, THREADID, NAME, PARENTTHREAD, PRIORITY, CREATIONTIME, AUTHOR, PARTICIPANT, NEXTPARTICIPANT, PROCESSDEADLINE, ACTIVITYDEADLINE, RECEIVETIME, ACTIVITYNAME, NTHREADS, CTHREADS, FCTHREAD, TOTALTHREADS, STATE, SOURCEACTIVITYNAME, ROLEIN, PENDINGITEMID, LASTRESULT, ITEMDEADLINE, NCHANGES , NREMARKS, NATTACHMENTS, HASPARTFORROLE,MICROACTIVITYNAME FROM PPROCINSTANCE WHERE PROCESSID = 11AND INSTID = 10 AND THREADID = 0 FOR UPDATE' Caused by: [BEA][Oracle JDBC Driver][Oracle]ORA-02049: timeout: distributed transaction waiting for lock fuego.transaction.DatabaseException:
    How do we resolve this exception?
    We have increased the JTA timeout to 120 seconds.. in the engine..
    Our process is deployed on Weblogic Server

    Looks like specific record for the Instance id 10 is locked in the Engine table. I am not quite sure, what kind of Business scenraio you executed to end up in this issue.
    But you can try restarting the BPM engine or check with the Oracle DBA to see any lock on the rows in Engine database and perform required unlocking operations.
    -Lovin.V

  • XML Error while calling webservice from oracle function.

    I am getting an error while I am trying to call webservice from oracle function. Any ideas? Thanks.
    select get_new_string ('proxy:80', 'http://xxx/PatternVariations/SourceTest/WebMethods','Scott') from dual
    ERROR at line 1:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00225: end-element tag "H4" does not match start-element tag "P"
    Error at line 9
    ORA-06512: at "SYS.XMLTYPE", line 0
    ORA-06512: at "DORSBP00.DEMO_SOAP", line 82
    ORA-06512: at "DORSBP00.GET_NEW_STRING", line 11

    The error message implies that the web service is returning something that is not well formed xml. Can you verify what is being returned by the web service call

  • Issue while calling COBOL program from Component Interface in PeopleSoft HRMS 9.2

    In HRMS 9.2, I am facing problem while calling the remote call function through component interface. In GP_ABS_EESS_REQ (Navigation Main Menu > Self Service > Time Reporting > Report Time > Absence Request) component, we have “Forecast Balance” button as shown below:
    This button checks for eligibility for leave being applied. While using component interface, it executes FORCAST_PB field change event peoplecode which contains a remote call to a cobol program as below:
    RemoteCall("PSRCCBL", "PSCOBOLPROG", "GPPOLRUN", "NET_RETURN_CD", &NET_RETURN_CD, "NET_TXN_ID", &NET_TXN_ID, "NET_TXN_NUM", &NET_TXN_NUM, "NET_MSG_ID", &NET_MSG_ID, "NET_MSG_PRM_CNT", &NET_MSG_PRM_CNT, "NET_MSG_PRM1", &NET_MSG_PRM1, "NET_MSG_PRM2", &NET_MSG_PRM2, "NET_MSG_PRM3", &NET_MSG_PRM3);
    I am getting following error while executing it via component interface:
    (2,148) - Think-time PeopleCode event (RemoteCall), but a SQL update has occurred in the commit interval. (2,148) FUNCLIB_GP_ABS.FCST_PB.FieldFormula Name:Abs_ForecastExec  PCPC:5311  Statement:60
    Called from:GP_ABS_EESS_REQ.GBL.DERIVED_ABS_SS.FCST_PB.FieldChange  Statement:26
    (91,34) - Error changing value. {Z_GP_ABS_EESS_REQ_CI.FCST_PB} (91,34)
    (18,2) - Data being added conflicts with existing data. (18,2)
    (91,37) - Error saving Component Interface. {Z_GP_ABS_EESS_REQ_CI} (91,37)
      After commenting out this line of code, I was able to save the CI successfully. But I need to execute this statement before saving CI so that I can check the eligibility for leave being applied. Can anyone help me on this issue?

    When I tried to read the file using `CAT -vt <filename>`, I could see that the file contains special characters such as ^M and ^I. This may be because of the file transfer mode(but I transferred in ASCII mode, still the special characters where appearing).
    I opened a VI editor and pasted the same script. Save the file, tried to run the script, It was working fine.
    I still didn't get how the special characters appeared. I used notepad++ as my editor.

  • Authentication Issues while calling from OSB to REST

    I am routing from a proxy Service in OSB to a REST ful Web Services.I need to apply security settings while calling REST ful services so i created groups which has users who can only call the Web Services.I did all the security settings in the weblogic Server console.
    The authentication works fine but the problem is that when i doesnot give any username or password it should give me a "Authentication required" error.But instead it calls the web services .I need not want that to happen.
    Anyone pls help me in this issue

    My proxy service uses a http protocol and gets the query string and routes it to the business service which is a REST ful based web services.My need is to apply security settings betwwen business service and service component(REST ful based web services).
    I created the security settings in weblogic server console using the following steps
    1.I created an user in the user and groups option in the security realm tab with Default Authenticator as provider selected
    2.I created a Stand-Alone Web Application Scoped Role in the application scope in the security tab with XACML RoleMapper as the provider selected in the war(REST ful web services) file deployed in the console.
    3.I added the user created in the security realm tab in this Stand-Alone Web Application Scoped Role created.
    I then tested the business service(which connects to the REST ful web service component) with username and password in the transport option in testing console as the one created in the server console.
    The business service gives the response only when the username and password matches to the one created or when username/password is weblogic/welcome1(this is the username and password given while creating the OSB domain).
    It should throw me an Authentication failed error when the username is wrong and that works except for the condition that the username and password is empty.
    How to make the service to throw an error when the username and password is empty like the same as when the username is mismatched.
    Help me out in this issue.

  • Issue while installing SOA in Oracle Linux 6

    Hi,
    I am getting below errors while installing SOA in oracle Linux 6:-
    entryPoint: entryPoint = oracle.installType.all condition = null className = null
    contextFile:/tmp/OraInstall2012-04-13_08-04-44PM/prereq/oui/agent_prereq_context.xml
    The entry point is: oracle.installType.all
    Check Name:CertifiedVersions
    Check Description:This is a prerequisite condition to test whether the Oracle software is certified on the current O/S or not.
    $$$$$DEBUG>>>>CertifiedVersions
    Expected result: One of enterprise-5.4,enterprise-4,enterprise-5,redhat-5.4,redhat-4,redhat-5,SuSE-10,SuSE-11
    Actual Result: redhat-6.2
    Check complete. The overall result of this check is: Failed <<<<
    Check Name:Packages
    Check Description:This is a prerequisite condition to test whether the packages recommended for installing the product are available on the system.
    Check complete. The overall result of this check is: Not executed <<<<
    Please help.
    Check Name:Kernel
    Check Description:This is a prerequisite condition to test whether the minimum required kernel parameters are configured.
    Check complete. The overall result of this check is: Not executed <<<<

    it is not supported
    http://www.oracle.com/technetwork/middleware/downloads/fmw-11gr1certmatrix.xls
    just filter it on wls server on which soa runs rhel 5 is the latest

  • How to prevent plant locking issue while calling a BAPI? Please help!

    Hi Experts,
       I have following scenario:
       BizTalk sends 4B2 PIP to XI via JMS adapter. XI then sends the same to ECC system via ABAP Proxy.
       4B2 PIP in our case contains one PO header and one line item.
       In ECC, ABAP proxy calls BAPI to process the GR (Goods Receipt).
       The problem is BizTalk can send many 4B2 PIPs simultaneously (Parallel). When The first PIP is getting processed in ECC the BAPI locks some plant data till it completes the GR. But if second PIP request comes when the first once is still getting processed then we get "plant is locked" error.
       How can we avoid this plant locking error? What is the best option to solve this?
      While calling BAPI in my ECC ABAP Proxy if I use qRFC as given by the code below then will it solve the problem?
      Will this use only one queue "QUEUE01" for all the 4B2 PIP requests?
      Will it create a new queue for every request?
      If we assume that there are 3 PIP requests already in a queue. If the GR processing for the first PIP returns some data error (not the locking error) in the BAPIRETURN then will the second PIP gets processed or will it wait till the first one is successfully processed?
       CALL FUNCTION 'TRFC_SET_QUEUE_NAME'
          IMPORTING
             QNAME = 'QUEUE01'.
      CALL FUNCTION '<CREATE GR BAPI>'
      IN BACKGROUND TASK
      EXPORTING
         TABLES ....
      COMMIT WORK.
    Thanks & Regards
    Gopal

    Man, you guys/gals are great! You notice everything...I sure appreciate all the help so far. I've updated a few things, but I still can't get x1 in the method to pass the right input to line 39. For instance, if I set a=2, b=4, and c=-30, then x1 should = 3 and x2 should =-5, but both keep showing -5. They are always equal for some reason, even when they are not supposed to be.
    I see what you were saying with d always equalling zero. I was looking in the main where it doesn't always = zero, but in the method it was always set to zero. Thanks...good eye!
    num1 = quad(a, b, c, 1);                              //line 39
    num2 = quad(a, b, c, 2);                              //line 40
    JOptionPane.showMessageDialog(null, "There are two real roots. They are root 1 = "+ num1 + " , and root 2 = " + num2 + ".");I also added this to the method so d won't always = zero
    d = (Math.pow(b,2) - (4 * a * c));I also have all of the variables declared at the top, but I forgot to copy and paste all of them and I updated the System.exit(0) to close the JOptionPane along with extra } 's to close the program correctly.
    Again, thanks a bunch.

  • Issue While Calling a Function in Crystal from Oracle

    Post Author: digik
    CA Forum: Crystal Reports
    Hi there,
    I have a function in Oracle which fetches values in to table type. When I run this query in Oracle SQL Plus it is giving me records. But the same query in Crystal is giving zero records?
    Function SQL
    Create or Replace Function getReport(numTrades IN NUMBER,AsOfDateFrom IN DATE,AsOfDateTo IN DATE,compareDate IN DATE,productType IN VARCHAR2,dataGrade IN NUMBER,DataGradeThreshold IN NUMBER)Return top_movers_type_tableAStableRow top_movers_type := top_movers_type(NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,  NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,  NULL,NULL,NULL);resulttable top_movers_type_table := top_movers_type_table(); IDvar              VARCHAR2(12);         CURR_DATEvar         DATE;        PRODUCTvar          VARCHAR2(6);        DESCRIPTIONvar      VARCHAR2(100);        COUPONvar           NUMBER(14,10);        SETLMNT_DATEvar      DATE;        CURR_PRICEvar       NUMBER(14,10);        COMPARE_PRICEvar    NUMBER(14,10);        PRICE_DELTAvar      NUMBER(24,20);        PRICE_DELTA_PCTvar  NUMBER(24,20);        TRD_AMT_OR_UPBvar   NUMBER(20,2);        UPB_PRICE_DELTAvar   NUMBER(35,15);        COMPARE_DATEvar     DATE;        DATA_GRADEvar       NUMBER(4,0);        TRADE_PRICEvar     NUMBER(14,10);        TRADE_DATEvar      DATE;        PROD_SPECIFIC_FLDvar VARCHAR2(10);           COMPARE_PRICE_FROMvar  VARCHAR2(10);        TOT_COUNTvar NUMBER(10);                        CURSOR TopmoversCursor IS        select ID,CURR_DATE,  PRODUCT, DESCRIPTION, COUPON, SETLMNT_DATE,         CURR_PRICE, COMPARE_PRICE, PRICE_DELTA, PRICE_DELTA_PCT,         TRD_AMT_OR_UPB, UPB_PRICE_DELTA, COMPARE_DATE, DATA_GRADE,         TRADE_PRICE, TRADE_DATE, PROD_SPECIFIC_FLD, COMPARE_PRICE_FROM,   TOT_COUNT  from ( select SECU_CUSIP_ID ID,  FA_MTM_EFF_DT CURR_DATE, FA_TYP_DESC PRODUCT , FA_PTR COUPON,  TRD_STLM_DT SETLMNT_DATE,  CURR_PRC CURR_PRICE, DATA_QLTY_CD DATA_GRADE,  TRD_PRC_PCT TRADE_PRICE,  SECU_TRD_DT TRADE_DATE,  SECU_STAMPS_TYP_DESC DESCRIPTION,  COMPARE_PRC COMPARE_PRICE,   UPB TRD_AMT_OR_UPB, COMPARE_DATE COMPARE_DATE,  COMPARE_PRC_FROM COMPARE_PRICE_FROM,  PROD_SPC_FLD PROD_SPECIFIC_FLD,  PRC_DELTA PRICE_DELTA, ABS_PRC_DELTA,  UPB_PRICE_DELTA, PRC_DELTA_PCT PRICE_DELTA_PCT, dense_rank() over (order by ABS_PRC_DELTA desc) as TOPN, count(SECU_CUSIP_ID) over () as TOT_COUNT from ( select SECU_CUSIP_ID, FA_MTM_EFF_DT,FA_TYP_DESC,FA_PTR,  TRD_STLM_DT, CURR_PRC ,DATA_QLTY_CD, TRD_PRC_PCT ,  SECU_TRD_DT, SECU_STAMPS_TYP_DESC , COMPARE_PRC,  UPB,  COMPARE_DATE, COMPARE_PRC_FROM, PROD_SPC_FLD,  (CURR_PRC - COMPARE_PRC) as PRC_DELTA, abs(CURR_PRC - COMPARE_PRC) as ABS_PRC_DELTA, ((CURR_PRC - COMPARE_PRC)*100)/COMPARE_PRC as PRC_DELTA_PCT, ((CURR_PRC - COMPARE_PRC) *  UPB)/100000000  as UPB_PRICE_DELTA from ( select F1.SECU_CUSIP_ID, F1.FA_MTM_EFF_DT,F1.FA_TYP_DESC,F1.FA_PTR,  F1.TRD_STLM_DT, F1.FA_MTM_PRC_PCT as CURR_PRC ,F1.DATA_QLTY_CD, F1.TRD_PRC_PCT ,  F1.SECU_TRD_DT, decode(MVS.SECU_STAMPS_TYP_DESC,null,'N/A','','N/A',MVS.SECU_STAMPS_TYP_DESC) SECU_STAMPS_TYP_DESC , NVL(F2.FA_MTM_PRC_PCT,F1.TRD_PRC_PCT) COMPARE_PRC,  F1.FA_CURR_UPB_AMT/1000000 as UPB, NVL(F2.FA_MTM_EFF_DT,F1.SECU_TRD_DT) as COMPARE_DATE, Decode(F2.FA_MTM_PRC_PCT,null,'TRADE','INVENTORY') as COMPARE_PRC_FROM, DECODE(F1.FA_TYP_DESC,        'AGNCY',REMIC_AGNC_DTL.REMIC_CLS_PRIN_PMT_TYP_CD,        'MBS',MBS_DTL.MBS_WALA_NO,        'ARM',ARM_DTL.MBS_WALA_NO,        'REMIC',REMIC_DTL.REMIC_TYP_CD,        'MFMBS',MF_MBS_DTL.SECU_YLD_MANT_DELTA_TERM,        'CAB','N/A',        'PCERT','N/A',        'MRB','N/A',        'STRIP','N/A',        'SFWL','N/A',        'ARMWL','N/A',        'MFWL','N/A','NULL') as PROD_SPC_FLD from FA_MARK F1 , FA_MARK F2, MV_SEC_TYP MVS, MBS_DTL, MRB_DTL,  MF_MBS_DTL ,REMIC_AGNC_DTL ,REMIC_DTL, ARM_DTL where F1.SECU_CUSIP_ID = F2.SECU_CUSIP_ID () and F1.FA_MTM_ID = MBS_DTL.FA_MTM_ID () and F1.FA_MTM_ID = MRB_DTL.FA_MTM_ID () and F1.FA_MTM_ID = MF_MBS_DTL.FA_MTM_ID () and F1.FA_MTM_ID = REMIC_AGNC_DTL.FA_MTM_ID () and F1.FA_MTM_ID = REMIC_DTL.FA_MTM_ID () and F1.FA_MTM_ID = ARM_DTL.FA_MTM_ID () and F1.FA_TYP_DESC = F2.FA_TYP_DESC () and F1.TRD_STAT_CD = F2.TRD_STAT_CD () and F1.SECU_STAMPS_TYP_CD = MVS.SECU_STAMPS_TYP_CD () and F1.FA_MTM_EFF_DT >= '01-May-2007' and F1.FA_MTM_EFF_DT <= '31-May-2007' and F1.DATA_QLTY_CD >= 1 and F1.DATA_QLTY_CD <= 10 and F1.TRD_STAT_CD = 5 and F1.FA_TYP_DESC = 'MBS' and F2.FA_MTM_EFF_DT() = '30-Apr-2007' and F2.DATA_QLTY_CD ()>= 1        and F2.DATA_QLTY_CD (+)<= 10 ) where COMPARE_PRC > 0  order by ABS_PRC_DELTA desc )        ) where TOPN <= numTrades;BEGIN
    OPEN TopmoversCursor(numTrades ,AsOfDateFrom ,AsOfDateTo ,compareDate ,productType ,dataGrade ,DataGradeThreshold); LOOP  FETCH TopmoversCursor INTO IDvar,CURR_DATEvar,  PRODUCTvar, DESCRIPTIONvar, COUPONvar, SETLMNT_DATEvar,         CURR_PRICEvar, COMPARE_PRICEvar, PRICE_DELTAvar, PRICE_DELTA_PCTvar,         TRD_AMT_OR_UPBvar, UPB_PRICE_DELTAvar, COMPARE_DATEvar, DATA_GRADEvar,         TRADE_PRICEvar, TRADE_DATEvar, PROD_SPECIFIC_FLDvar, COMPARE_PRICE_FROMvar,   TOT_COUNTvar;  EXIT WHEN TopmoversCursor%NOTFOUND;  ResultTable.extend;  ResultTable(resultTable.Last):= top_movers_type(IDvar,CURR_DATEvar,  PRODUCTvar, DESCRIPTIONvar, COUPONvar, SETLMNT_DATEvar,         CURR_PRICEvar, COMPARE_PRICEvar, PRICE_DELTAvar, PRICE_DELTA_PCTvar,         TRD_AMT_OR_UPBvar, UPB_PRICE_DELTAvar, COMPARE_DATEvar, DATA_GRADEvar,         TRADE_PRICEvar, TRADE_DATEvar, PROD_SPECIFIC_FLDvar, COMPARE_PRICE_FROMvar,   TOT_COUNTvar); END LOOP;CLOSE TopmoversCursor;RETURN resultTable;END getReport;/
    Select Query
    select * from (getReport(1,sysdate,sysdate,sysdate,0,2,4))

    Post Author: digik
    CA Forum: Crystal Reports
    Hi there,
    I have a function in Oracle which fetches values in to table type. When I run this query in Oracle SQL Plus it is giving me records. But the same query in Crystal is giving zero records?
    Function SQL
    Create or Replace Function getReport(numTrades IN NUMBER,AsOfDateFrom IN DATE,AsOfDateTo IN DATE,compareDate IN DATE,productType IN VARCHAR2,dataGrade IN NUMBER,DataGradeThreshold IN NUMBER)Return top_movers_type_tableAStableRow top_movers_type := top_movers_type(NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,  NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,  NULL,NULL,NULL);resulttable top_movers_type_table := top_movers_type_table(); IDvar              VARCHAR2(12);         CURR_DATEvar         DATE;        PRODUCTvar          VARCHAR2(6);        DESCRIPTIONvar      VARCHAR2(100);        COUPONvar           NUMBER(14,10);        SETLMNT_DATEvar      DATE;        CURR_PRICEvar       NUMBER(14,10);        COMPARE_PRICEvar    NUMBER(14,10);        PRICE_DELTAvar      NUMBER(24,20);        PRICE_DELTA_PCTvar  NUMBER(24,20);        TRD_AMT_OR_UPBvar   NUMBER(20,2);        UPB_PRICE_DELTAvar   NUMBER(35,15);        COMPARE_DATEvar     DATE;        DATA_GRADEvar       NUMBER(4,0);        TRADE_PRICEvar     NUMBER(14,10);        TRADE_DATEvar      DATE;        PROD_SPECIFIC_FLDvar VARCHAR2(10);           COMPARE_PRICE_FROMvar  VARCHAR2(10);        TOT_COUNTvar NUMBER(10);                        CURSOR TopmoversCursor IS        select ID,CURR_DATE,  PRODUCT, DESCRIPTION, COUPON, SETLMNT_DATE,         CURR_PRICE, COMPARE_PRICE, PRICE_DELTA, PRICE_DELTA_PCT,         TRD_AMT_OR_UPB, UPB_PRICE_DELTA, COMPARE_DATE, DATA_GRADE,         TRADE_PRICE, TRADE_DATE, PROD_SPECIFIC_FLD, COMPARE_PRICE_FROM,   TOT_COUNT  from ( select SECU_CUSIP_ID ID,  FA_MTM_EFF_DT CURR_DATE, FA_TYP_DESC PRODUCT , FA_PTR COUPON,  TRD_STLM_DT SETLMNT_DATE,  CURR_PRC CURR_PRICE, DATA_QLTY_CD DATA_GRADE,  TRD_PRC_PCT TRADE_PRICE,  SECU_TRD_DT TRADE_DATE,  SECU_STAMPS_TYP_DESC DESCRIPTION,  COMPARE_PRC COMPARE_PRICE,   UPB TRD_AMT_OR_UPB, COMPARE_DATE COMPARE_DATE,  COMPARE_PRC_FROM COMPARE_PRICE_FROM,  PROD_SPC_FLD PROD_SPECIFIC_FLD,  PRC_DELTA PRICE_DELTA, ABS_PRC_DELTA,  UPB_PRICE_DELTA, PRC_DELTA_PCT PRICE_DELTA_PCT, dense_rank() over (order by ABS_PRC_DELTA desc) as TOPN, count(SECU_CUSIP_ID) over () as TOT_COUNT from ( select SECU_CUSIP_ID, FA_MTM_EFF_DT,FA_TYP_DESC,FA_PTR,  TRD_STLM_DT, CURR_PRC ,DATA_QLTY_CD, TRD_PRC_PCT ,  SECU_TRD_DT, SECU_STAMPS_TYP_DESC , COMPARE_PRC,  UPB,  COMPARE_DATE, COMPARE_PRC_FROM, PROD_SPC_FLD,  (CURR_PRC - COMPARE_PRC) as PRC_DELTA, abs(CURR_PRC - COMPARE_PRC) as ABS_PRC_DELTA, ((CURR_PRC - COMPARE_PRC)*100)/COMPARE_PRC as PRC_DELTA_PCT, ((CURR_PRC - COMPARE_PRC) *  UPB)/100000000  as UPB_PRICE_DELTA from ( select F1.SECU_CUSIP_ID, F1.FA_MTM_EFF_DT,F1.FA_TYP_DESC,F1.FA_PTR,  F1.TRD_STLM_DT, F1.FA_MTM_PRC_PCT as CURR_PRC ,F1.DATA_QLTY_CD, F1.TRD_PRC_PCT ,  F1.SECU_TRD_DT, decode(MVS.SECU_STAMPS_TYP_DESC,null,'N/A','','N/A',MVS.SECU_STAMPS_TYP_DESC) SECU_STAMPS_TYP_DESC , NVL(F2.FA_MTM_PRC_PCT,F1.TRD_PRC_PCT) COMPARE_PRC,  F1.FA_CURR_UPB_AMT/1000000 as UPB, NVL(F2.FA_MTM_EFF_DT,F1.SECU_TRD_DT) as COMPARE_DATE, Decode(F2.FA_MTM_PRC_PCT,null,'TRADE','INVENTORY') as COMPARE_PRC_FROM, DECODE(F1.FA_TYP_DESC,        'AGNCY',REMIC_AGNC_DTL.REMIC_CLS_PRIN_PMT_TYP_CD,        'MBS',MBS_DTL.MBS_WALA_NO,        'ARM',ARM_DTL.MBS_WALA_NO,        'REMIC',REMIC_DTL.REMIC_TYP_CD,        'MFMBS',MF_MBS_DTL.SECU_YLD_MANT_DELTA_TERM,        'CAB','N/A',        'PCERT','N/A',        'MRB','N/A',        'STRIP','N/A',        'SFWL','N/A',        'ARMWL','N/A',        'MFWL','N/A','NULL') as PROD_SPC_FLD from FA_MARK F1 , FA_MARK F2, MV_SEC_TYP MVS, MBS_DTL, MRB_DTL,  MF_MBS_DTL ,REMIC_AGNC_DTL ,REMIC_DTL, ARM_DTL where F1.SECU_CUSIP_ID = F2.SECU_CUSIP_ID () and F1.FA_MTM_ID = MBS_DTL.FA_MTM_ID () and F1.FA_MTM_ID = MRB_DTL.FA_MTM_ID () and F1.FA_MTM_ID = MF_MBS_DTL.FA_MTM_ID () and F1.FA_MTM_ID = REMIC_AGNC_DTL.FA_MTM_ID () and F1.FA_MTM_ID = REMIC_DTL.FA_MTM_ID () and F1.FA_MTM_ID = ARM_DTL.FA_MTM_ID () and F1.FA_TYP_DESC = F2.FA_TYP_DESC () and F1.TRD_STAT_CD = F2.TRD_STAT_CD () and F1.SECU_STAMPS_TYP_CD = MVS.SECU_STAMPS_TYP_CD () and F1.FA_MTM_EFF_DT >= '01-May-2007' and F1.FA_MTM_EFF_DT <= '31-May-2007' and F1.DATA_QLTY_CD >= 1 and F1.DATA_QLTY_CD <= 10 and F1.TRD_STAT_CD = 5 and F1.FA_TYP_DESC = 'MBS' and F2.FA_MTM_EFF_DT() = '30-Apr-2007' and F2.DATA_QLTY_CD ()>= 1        and F2.DATA_QLTY_CD (+)<= 10 ) where COMPARE_PRC > 0  order by ABS_PRC_DELTA desc )        ) where TOPN <= numTrades;BEGIN
    OPEN TopmoversCursor(numTrades ,AsOfDateFrom ,AsOfDateTo ,compareDate ,productType ,dataGrade ,DataGradeThreshold); LOOP  FETCH TopmoversCursor INTO IDvar,CURR_DATEvar,  PRODUCTvar, DESCRIPTIONvar, COUPONvar, SETLMNT_DATEvar,         CURR_PRICEvar, COMPARE_PRICEvar, PRICE_DELTAvar, PRICE_DELTA_PCTvar,         TRD_AMT_OR_UPBvar, UPB_PRICE_DELTAvar, COMPARE_DATEvar, DATA_GRADEvar,         TRADE_PRICEvar, TRADE_DATEvar, PROD_SPECIFIC_FLDvar, COMPARE_PRICE_FROMvar,   TOT_COUNTvar;  EXIT WHEN TopmoversCursor%NOTFOUND;  ResultTable.extend;  ResultTable(resultTable.Last):= top_movers_type(IDvar,CURR_DATEvar,  PRODUCTvar, DESCRIPTIONvar, COUPONvar, SETLMNT_DATEvar,         CURR_PRICEvar, COMPARE_PRICEvar, PRICE_DELTAvar, PRICE_DELTA_PCTvar,         TRD_AMT_OR_UPBvar, UPB_PRICE_DELTAvar, COMPARE_DATEvar, DATA_GRADEvar,         TRADE_PRICEvar, TRADE_DATEvar, PROD_SPECIFIC_FLDvar, COMPARE_PRICE_FROMvar,   TOT_COUNTvar); END LOOP;CLOSE TopmoversCursor;RETURN resultTable;END getReport;/
    Select Query
    select * from (getReport(1,sysdate,sysdate,sysdate,0,2,4))

  • Execute immediate issue while calling a procedure from plsql block

    Hi all,
    I have the following simple code ,my execute immediate is not working(I am pasting the error below as well)
    CREATE OR REPLACE PROCEDURE CALL_RAHUL_PROCEDURES
    AS
    strng varchar2(1000);
    BEGIN
    for i in (select proc_name,flag,id from rahul_procedures order by id)
    loop
    if (i.flag = 'Y')
    then
    strng := 'exec '||i.proc_name||'(''rahul'')';
    dbms_output.put_line(strng);
    execute immediate strng;
    end if;
    end loop;
    END CALL_RAHUL_PROCEDURES;
    Error:
    Connecting to the database INQDWD.
    ORA-00900: invalid SQL statement
    ORA-06512: at "ETLADMIN.CALL_RAHUL_PROCEDURES", line 17
    ORA-06512: at line 2
    exec RAHUL_HELLO_WORLD2('rahul');
    Process exited.
    Disconnecting from the database INQDWD.
    data in rahul_procedures table :
    Proc_name flag Id
    RAHUL_HELLO_WORLD     N     1
    RAHUL_HELLO_WORLD2     Y     2
    RAHUL_HELLO_WORLD     N     3
    RAHUL_HELLO_WORLD3     N     4
    please help.
    Regards
    Rahul

    Mac_Freak_Rahul wrote:
    Well I have to call 26 procedures one by one and the names of the procedures would be in a table'rahul_procedures' Which is 100% wrong.
    Data is stored in tables, program code is stored in procedures or view defintions.
    http://en.wikipedia.org/wiki/Data_%28computing%29
    >
    Data vs programs
    Typically, different files are used to store programs vs data. Executable files contain programs; all other files are data files.
    >
    So you have just violated the primary distinction between data and program code.
    I dont find anything strange in my question,Only because you do not appear to know what you are doing or the difference between data and program code.
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:1943344500346351703
    >
    ugh, what an ugly "design". I can see your life will be full of performance issues, strange 'bugs', and other unpleasant side effects. I mean, it all looks "so cool", but it'll be a nightmare to maintain and enhance.
    but then you have the issue of binds, which will be intractable. You'd have to know the binds at compile time, but you have hidden all of your sql in a magic generic table - so you cannot possibly know your binds at compile time.
    I would suggest you discard all of this code (I am DEAD SERIOUS) and start over. This is a bad idea from the get go. Or at least do me a favor and do not use plsql (you make it look like a good database implementation, but it isn't)
    The objective here is to store SQL Statements in a Table(a sql repository) and just call the required SQL from the application using the sqlid using the sql_execute procedure. ...
    CHANGE YOUR OBJECTIVE.
    How about this for a good objective:
    the objective here is to store sql statement in a plsql routine (a sql repository, you call a procedure and we run sql) and just call the required sql form the applicatoin using the STORED PROCEDURE
    sorry, can I think of hacks to get you going? yes, application contexts come to mind - a fixed number of binds comes to mind. Am I going to work them out? No - it is the wrong way to approach a database application.

  • Security Issue while calling a OBIEE report from SOAP UI

    I created a sample report in OBIEE and am trying to run the report from SOAP UI
    I am using the ReportService WSDL and runReport operation for the same.
    I am getting following error  failed: due to java.lang.SecurityException: Security violation: ~weblogic/Drafts/test.xdo, user: weblogic, permission: 0<
    The user weblogic is the default use and i have assigned all the groups.
    Again in application roles under the Application Strip in Obi i have assigned user weblogic to all the roles.
    Still i am not able to call this web service and is failing with the above mentioned message.
    Am i missing anything?

    Just in case the error message might help you to identify the issue.
    <soapenv:Fault>
             <faultcode>soapenv:Server.userException</faultcode>
             <faultstring>oracle.xdo.webservice.exception.OperationFailedException: PublicReportService::generateReport for reportAbsolutePath [~weblogic/_temp/Salary Report.xdo] failed: due to java.lang.SecurityException: Security violation: ~weblogic/_temp/Salary Report.xdo, user: weblogic, permission: 0</faultstring>
             <detail>
                <oracle.xdo.webservice.exception.OperationFailedException/>
                <ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">MachineName</ns1:hostname>
             </detail>
          </soapenv:Fault>

  • Security Issues while calling Web Service

    Hello,
    I have designed a flex client that calls .NET web service and
    displays the results in the data grid. The application executed
    properly when I launch it from the development (D:\FlexTest\bin),
    the one that I specified while creating Flex Project (FlexTest).
    However, if I copy the same files (or the whole folder) to another
    location on my laptop, I receive the following error.
    [RPC Fault faultString="Security error accessing url"
    faultCode="Channel.Security.Error" faultDetail="Unable to load
    WSDL. If currently online, please verify the URI and/or format of
    the WSDL (
    http://192.168.0.101/AjaxServiceInvoker2/AjaxServiceInvoker.asmx?wsdl)"
    at mx.rpc.soap::WSDLParser/::dispatchFault()
    at mx.rpc.soap::WSDLParser/
    http://www.adobe.com/2006/flex/mx/internal::httpFaultHandler()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.rpc::AbstractInvoker/
    http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
    at mx.rpc::AbstractInvoker/
    http://www.adobe.com/2006/flex/mx/internal::faultHandler()
    at mx.rpc::Responder/fault()
    at mx.rpc::AsyncRequest/fault()
    at ::DirectHTTPMessageResponder/securityErrorHandler()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/flash.net:URLLoader::redirectEvent()
    I incur the same problem when I place the same file on my
    laptop's web-server. Can anyone tell why Flash Runtime could not
    find the wsdl file?
    Regards,
    Jehanzeb

    I believe this is a security sandbox issue. You will need a
    crossdomain.xml file on the server that is serving the webService.
    Check the docs, archives, and google for more detail.
    Tracy

  • Issue while calling WS from Bpel

    Hi ,
    I am calling a WS fom Bpel , this WS is based on ADF Bc service , I am getting below error :
    java.lang.Exception: oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException:
    Failed state during prepare of WS-AT XAResource:WSATXAResource:
    We need WS-AT support in the communication.
    Please suggest.
    Thanks
    Sam

    Did anyone find the reason for this error message and a possible solution?
    I have 2 web service calls from a BPEL process both of which are set to transaction level of 'SUPPORTS'.
    The web services both are enabled for Atomic transaction.
    I am getting the exception Failed state during prepare of WS-AT XAResource:WSATXAResource:
    I tried the suggestions listed above with the same result.
    Any help would be great.
    thanks

  • Issue while calling the RFC in SAP quality system but not in SAP Dev sys

    Hi,
    Our scenario is FIle-RFC-File.
    We are calling the RFC from XI system in Development environment. This is working fine in Development environment, but not in Quality environment.
    This changes are moved/transported to Quality environment in both XI and SAP side. But we are getting the following error in Quality system:
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText><b>com.sap.aii.af.ra.ms.api.DeliveryException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: functiontemplate from repository was <null></b></SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Please provide the inputs, what we can check at SAP side and XI side.
    We have tried to test from XI Development to SAP quality environment, but we are getting the same error message.
    Waiting for the precious inputs.
    Thanks,
    Ramesh.

    Hi Ramesh,
    This might be because your RFC adapter would not have been configured properly. Just do a check on it,in RWB(adapter monitoring) and activate it once more in ID.
    Also check RFC comm. parameters such as host name/user id/password etc..
    Also check whether your XML document is having a mismatch with your RFC XML.
    Check with your payload ( from SXMB_MONI) and test it in your message mapping.
    All the best!
    cheers,
    prashanth
    P.S Please mark helpful answers

  • PInvoke - Issue while calling DJVU function from C# Code - Attempted to read or write protected memory

    Hi,
    I know there are many questions in this subject but none of them help to resolve the issue I am currently facing.
    Below is the signature of C Function from DJVULibre added in .NET code
    [DllImport("C:\\Program Files\\DJVULIBRE\\LIBDJVULIBRE.dll", CharSet=CharSet.Ansi, CallingConvention = CallingConvention.Cdecl)]
    private unsafe static extern int ddjvu_page_render(IntPtr page, ddjvu_render_mode_t mode, IntPtr pagerect,
    IntPtr renderrect,
    IntPtr pixelformat,
    ulong rowsize,
    [Out][MarshalAs(UnmanagedType.LPArray)]byte[] imagebuffer);Below is how I am calling this function in the c# codebyte* buffer = (byte *)Memory.Alloc(nSize);
    try
    IntPtr ptr1 = (IntPtr)Memory.Alloc(Marshal.SizeOf(prect));
    Marshal.StructureToPtr(prect, ptr1, false);
    IntPtr ptr2 = (IntPtr)Memory.Alloc(Marshal.SizeOf(rrect));
    Marshal.StructureToPtr(rrect, ptr2, false);
    byte[] array = new byte[nSize];
    fixed (byte* p = array) Memory.Copy(buffer, p, nSize);
    ddjvu_page_render(page, ddjvu_render_mode_t.DDJVU_RENDER_MASKONLY, ptr1, ptr2, fmt, (ulong)stride, array);
    finally
    Memory.Free(buffer);
    }call to ddjvu_page_render in above code is throwing "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
    Prior to this post I must have tried all the option could find in various blogs.
    Appreciate any help, is almost a day I am clueless, your timely help could save my job

    Thanks Viorel, below is the definition of original C function
    DDJVUAPI int
    ddjvu_page_render(ddjvu_page_t *page,
    const ddjvu_render_mode_t mode,
    const ddjvu_rect_t *pagerect,
    const ddjvu_rect_t *renderrect,
    const ddjvu_format_t *pixelformat,
    unsigned long rowsize,
    char *imagebuffer );below is how the code is calling this function in C#, the in pointers are all valid pointer I checked in debugging window byte* buffer = (byte *)Memory.Alloc(nSize);
    try
    IntPtr ptr1 = (IntPtr)Memory.Alloc(Marshal.SizeOf(prect));
    Marshal.StructureToPtr(prect, ptr1, false);
    IntPtr ptr2 = (IntPtr)Memory.Alloc(Marshal.SizeOf(rrect));
    Marshal.StructureToPtr(rrect, ptr2, false);
    byte[] array = new byte[nSize];
    fixed (byte* p = array) Memory.Copy(buffer, p, nSize);
    ddjvu_page_render(page, ddjvu_render_mode_t.DDJVU_RENDER_MASKONLY, ptr1, ptr2, fmt, (ulong)stride, array);
    finally
    Memory.Free(buffer);

  • MS CRM 2015 :DB locking issues while calling a web API inside an asynchronous Plugin.

    Hi,
    We have a SharePoint Integration where a Web API is deployed on SharePoint Server.We are calling this Web API in asynchronous plugin. Although the Plugin works fine. But  its causing DB issues .other custom applications like schedulers are breaking
    and showing time-out issues. 
    I analysed it and found that Web API sometime failed to instantiate the Proxy object ( Exception ::System.Net.WebException: The operation has timed out ).
    This results into the exception in  plugin OR cause of DB locking. 
    Kindly suggest how to resolve this issue.
    Thanks,
    If you find this post helpful then please "Vote as Helpful" and "Mark As Answer". Thanks and Regards, Mohammad Yusuf Ansari
    http://microxrm.blogspot.in

    ianp123,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://forums.novell.com/

Maybe you are looking for