Error while running due to tabletype

Hi All,
I am getting error while runnning procedure but it compiled successfully.
ORA-00932: inconsistent datatypes: expected - got -
I have created a Object Type and by referring that tobject type, i have created a table type. then i have created a variable of that table type.
But when i am using that vairiable in Cursor's fetch statement, it throws the above error at runtime.
The code is something like this:
create or replace procedure PROC_SP_MASTER_UPLOAD(p_Return Out Number) is
-- Creating Table Type
-- ot_sp_master is Object Type
Type tt_ot_sp_master is Table of ot_sp_master;
--creating Cursor
TYPE c_ref_cursor IS REF CURSOR;
--Declaring Variables
old_cursor_sp c_ref_cursor;
v_tt_ot_sp_master tt_ot_sp_master := tt_ot_sp_master();
v_sql_existing_instrument varchar(1000):= ' SELECT T_INSTRUMENT_ID,T_INSTRUMENT_ANALYSIS_GROUP,T_ASSET_LIABILITY_ID,T_REGION_ID,T_INSTRUMENT_STATUS,
T_INSTRUMENT_WEB,T_APPROVED_INVESTMENT FROM T_MASTER_SP WHERE T_INSTRUMENT_ID IS NOT NULL ';
Begin
Open old_cursor_sp for v_sql_existing_instrument;
Loop
Fetch old_cursor_sp Bulk collect into v_tt_ot_sp_master LIMIT 5000; // throws error at this line
ForAll i in v_tt_ot_sp_master.first..v_tt_ot_sp_master.last
Update MST_INSTRUMENT mst set
mst.region_id =TREAT(v_tt_ot_sp_master(i) as ot_sp_master).region_id,
mst.issuer_country =TREAT(v_tt_ot_sp_master(i) as ot_sp_master).issuer_country,
mst.asset_liab_id =TREAT(v_tt_ot_sp_master(i) as ot_sp_master).asset_liability_id,
mst.instrument_web =TREAT(v_tt_ot_sp_master(i) as ot_sp_master).instrument_web,
mst.instrument_analysis_group =TREAT(v_tt_ot_sp_master(i) as ot_sp_master).instrument_analysis_group,
mst.approved_inv =TREAT(v_tt_ot_sp_master(i) as ot_sp_master).approved_investment
Where mst.instrument_id=TREAT(v_tt_ot_sp_master(i) as ot_sp_master).instrumentid;
Exit When old_cursor_sp%NOTFOUND;
End Loop;
End PROC_SP_MASTER_UPLOAD;
I don't know why it is throwing this error, may be due to object type......
Thanks

may be try this, make sure the mappining in update set column is correct
CREATE OR REPLACE PROCEDURE PROC_SP_MASTER_UPLOAD (
  p_Return          OUT NUMBER)
IS
  CURSOR cur
  IS
    SELECT T_INSTRUMENT_ID,
           T_INSTRUMENT_ANALYSIS_GROUP,
           T_ASSET_LIABILITY_ID,
           T_REGION_ID,
           T_INSTRUMENT_STATUS,
           T_INSTRUMENT_WEB,
           T_APPROVED_INVESTMENT
      FROM T_MASTER_SP
     WHERE T_INSTRUMENT_ID IS NOT NULL;
  TYPE tt_ot_sp_master IS TABLE OF cur%ROWTYPE;
  v_tt_ot_sp_master tt_ot_sp_master;
BEGIN
  OPEN cur;
  LOOP
    FETCH cur
    BULK COLLECT INTO v_tt_ot_sp_master LIMIT 5000;                                                                   
    FORALL i IN v_tt_ot_sp_master.FIRST .. v_tt_ot_sp_master.LAST
      UPDATE MST_INSTRUMENT mst
         SET mst.region_id = v_tt_ot_sp_master (i).T_REGION_ID,
             mst.issuer_country = v_tt_ot_sp_master (i).T_issuer_country,
             mst.asset_liab_id = v_tt_ot_sp_master (i).T_ASSET_LIABILITY_ID,
             mst.instrument_web = v_tt_ot_sp_master (i).T_INSTRUMENT_WEB,
             mst.instrument_analysis_group = v_tt_ot_sp_master (i).T_INSTRUMENT_ANALYSIS_GROUP,
             mst.approved_inv = v_tt_ot_sp_master (i).T_APPROVED_INVESTMENT
       WHERE mst.instrument_id = v_tt_ot_sp_master (i).T_INSTRUMENT_ID;
    EXIT WHEN old_cursor_sp%NOTFOUND;
  END LOOP;
commit;
END PROC_SP_MASTER_UPLOAD;added commit which was missing in original post
Message was edited by:
devmiral

Similar Messages

  • 500 Internal server error while running sqlsrv_query in PHP

    Hello everyone I am having a problem with sqlsrv_query I will be grateful to you please provide some help.
    I am running a query through php:
    $ls_parcel_query = "select  * from  ParcelDetail order by ExtractDate";
    $result = sqlsrv_query($conn, $ls_parcel_query, array(), array("Scrollable"=>"keyset","QueryTimeout"=>300));
    $no_of_rows = sqlsrv_num_rows($result);
    echo "<br/>".$no_of_rows;
    It gives (After 30 seconds):
    500 - Internal server error.
    There is a problem with the resource you are looking for, and it cannot be displayed.
    I have php.ini settings like below:
    max_execution_time = 90
    memory_limit = 128M
    While running this query in SQL SERVER 2008 R2, it successfully gives result in some times in 1 minute and sometimes in 2 minutes.

    Hello,
    A 500 Error will be caused due to many reason.To troubleshooting this issue, you can try to check out the error log and get more information on what is causing the error.
    Reference :
    "500 Internal Server Error" while running PHP
    HTTP Error 500 Internal server for php pages and solution
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Error While Running the report in oracle apps

    Hi All,
    I got an error while running the report.The error is
    "FDPSTP failed due to ORA-06510: PL/SQL: unhandled user-defined exception".
    Please anyone give ur idea to resolve this issue as it is urgent.
    Thnaks
    Surya

    Hi;
    I got an error while running the report.The error is
    "FDPSTP failed due to ORA-06510: PL/SQL: unhandled user-defined exception".
    Please anyone give ur idea to resolve this issue as it is urgent.What is EBS version? You get this error on which steps or report? If you make search at metalik as FDPSTP failed due to ORA-06510: PL/SQL: there are 35 similar docs avaliable
    Regard
    Helios

  • Error while running the process chain

    Hi, I am getting following error while running the process chain.
    "Lock NOT set for: Deleting the data completely from a data target"
    Please suggest.
    amit

    hi,
    This is due to a lock on the objects which is being used by ur load.
    Even if master data used by this would be in a lock by an attribute change run. wait till that attribute change run finishes and then repeat.
    If this target itself is locked by someother process like rollup , compression , this error would appear. In this case also repeat the step after those locking process finish.
    some general locks during loading:
    Sometimes parallel processing in DTP might lead to this, its better set the DTP and infopackage in serial processing. In this case change the settings and then repeat the process.
    There is a specific case in which the Serial DTP gets locked by itself, in this case repeat it untill it succeeds.
    You can identify the above scenario as below. This is applicable only if the DTPs processing mode is serial.
    if u see in SM 37 this load would have three DTP processes running.
    it should have only two.
    In this case cancel the process and repeat it untill u get it right.
    hope this helps u
    regard,
    ranjith
    Edited by: Ranjith  Kumar Murugesan on Sep 12, 2008 10:44 AM
    Edited by: Ranjith  Kumar Murugesan on Sep 12, 2008 10:46 AM

  • Getting error while running page application page developed in Jdev ADF

    Hi,
    i m facing this error while running page application page developed in Jdev ADF
    can anybody help??
    JBO-30003: The application pool (model.ChakDeTrackersLocal) failed to checkout an application module due to the following exception:oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-25222: Unable to create application module.

    Hi,
    try to test JDBC connection used by AM if it is ok
    regards,
    Branislav

  • ERROR while running attribute change run.

    hi sap xperts,
    I got an error while running the attribute change run in a process chain.
    At first i got an error "The action is locked by a change run"
    SO I DID THE FOLLOWING STEPS.
    1.RUN ATTRIB CHANGE RUN MANUALLY  IT RUN SUCCESSFULLY,but the process chain is still red.
    Q1.Is there any way to link the manually run attrib chnage to process chain so that the process chain becomes Green?
    2.SM12 - realease the locks and right click the pc and repeat.It didn't work
    Q1.While removing the locks what should we remove,bcoz i removed all the locks?
    3.I again removed the lock and repeat the process but still i didn't work.Now its chowing "SQL ERROR OCCURED WHILE ACCESSING"
    So the Process chain got stuck,Can any body help me to run the attrib chnage run.
    If possible can anybody send the Process chain monitoring documents to my email id:
      <email ID removed>
    please.thanks in advance,i know how to say thanks in sdn.

    At any point in time only one attribute change run can run in the system. The other ACR's will fail due to locks. In your case, to set the process chain to green, try the following steps.
    Open the messages of a failed step by right clicking on it and selecting 'display messages'.
    In the opened popup click on the tab 'Chain'.
    In a parallel session goto transaction se16 for table rspcprocesslog and display the entries with the following selections:
    1. copy the variant from the popup to the variante of table rspcprocesslog
    2. copy the instance from the popup to the instance of table rspcprocesslog
    3. copy the start date from the popup to the batchdate of table rspcprocesslog
    Press F8 to display the entries of table rspcprocesslog.
    Now open another session and goto transaction se37. Enter RSPC_PROCESS_FINISH as the name of the function module and run the fm in test mode.
    Now copy the entries of table rspcprocesslog to the input parameters of the function module like described as follows:
    1. rspcprocesslog-log_id -> i_logid
    2. rspcprocesslog-type -> i_type
    3. rspcprocesslog-variante -> i_variant
    4. rspcprocesslog-instance -> i_instance
    5. enter 'G' for parameter i_state (sets the status to green).
    Now press F8 to run the fm.
    The above steps will help you continue with the rest of the process chain (thus avoiding manual runs) but the failed step might still remain red. Hope this helps.

  • URGENT: Error while running page

    Hi,
    I am getting below error while running my page, but page is working fine, but it's taking time because of the error, can any one help me how to resolve this.
    <May 20, 2010 1:10:07 PM EDT> <Notice> <Stdout> <BEA-000000> <<UIXRegion><getRegionModel>
    java.lang.IllegalStateException: The expression "#{viewScope.tabContext.tabs[12].binding.regionModel}" (that was specified for the RegionModel "value" attribute of the region component with id "pt_region12") evaluated to null.
    This is typically due to an error in the configuration of the objects referenced by this expression. Now using an empty RegionModel instead.
         at oracle.adf.view.rich.component.fragment.UIXRegion.getRegionModel(UIXRegion.java:439)
         at oracle.adfinternal.view.faces.taglib.region.RegionTag.doStartTag(RegionTag.java:109)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:50)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspIterationTagNode.executeHandler(OracleJspIterationTagNode.java:45)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspIterationTagNode.executeHandler(OracleJspIterationTagNode.java:45)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspIterationTagNode.executeHandler(OracleJspIterationTagNode.java:45)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspIterationTagNode.executeHandler(OracleJspIterationTagNode.java:45)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspIterationTagNode.executeHandler(OracleJspIterationTagNode.java:45)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspIterationTagNode.executeHandler(OracleJspIterationTagNode.java:45)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspIterationTagNode.executeHandler(OracleJspIterationTagNode.java:45)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspIterationTagNode.executeHandler(OracleJspIterationTagNode.java:45)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspIterationTagNode.executeHandler(OracleJspIterationTagNode.java:45)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
         at oracle.jsp.runtime.tree.OracleJspNode.execute(OracleJspNode.java:76)
         at oracle.jsp.runtimev2.ShortCutServlet._jspService(ShortCutServlet.java:88)
         at oracle.jsp.runtime.OracleJspBase.service(OracleJspBase.java:29)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:423)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:729)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:653)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:499)
         at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:429)
         at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:163)
         at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:184)
         at oracle.adfinternal.view.faces.taglib.region.IncludeTag.__include(IncludeTag.java:443)
         at oracle.adfinternal.view.faces.taglib.region.IncludeTag.doEndTag(IncludeTag.java:233)
         at oracle.adfinternal.view.faces.taglib.region.PageTemplateTag.doEndTag(PageTemplateTag.java:143)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:62)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:260)
         at oracle.jsp.runtime.tree.OracleJspNode.execute(OracleJspNode.java:76)
         at oracle.jsp.runtimev2.ShortCutServlet._jspService(ShortCutServlet.java:88)
         at oracle.jsp.runtime.OracleJspBase.service(OracleJspBase.java:29)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:423)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:729)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:653)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:500)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:248)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
         at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:267)
         at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:473)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:141)
         at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
         at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:710)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:273)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:205)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)>

    Hi,
    well I think you did not give us all information about your implementation. The ADF Region area on the page that does not work tries to read its task flow binding reference from a memery attribute in view scope, which for the attempted location (the 12th in the array) is null
    Frank

  • Program was terminated by signal 6 Concurrent Manager encountered an error while running Oracle*Report

    Hi,
    My concurrent request failed due to
    Program was terminated by signal 6
    Concurrent Manager encountered an error while running Oracle*Report
    stat_low = 6
    stat_high = 0
    emsg:was terminated by signal 6
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    # A fatal error has been detected by the Java Runtime Environment:
    # SIGSEGV (0xb) at pc=0xf7176d3e, pid=17695, tid=4096898752
    # JRE version: 6.0_32-b05
    # Java VM: Java HotSpot(TM) Server VM (20.7-b02 mixed mode linux-x86 )
    # Problematic frame:
    # V [libjvm.so+0x5f5d3e] ParallelScavengeHeap::tlab_capacity(Thread*) const+0xe
    # An error report file with more information is saved as:
    # /oracle/tst3/inst/apps/tst3_ora-web2/logs/appl/conc/log/hs_err_pid17695.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    what could be the reason behind this error.
    If any one knows this Please help me..
    Thank You

    Hi,
    Please provide your environment details.
    Is this a custom program? was this report working fine? If yes, what changes were made lately?
    Thanks &
    Best Regards,

  • PatchBay error while running ATG application

    Hi All,
    I am getting the following error while running ATG application.
    Error  /atg/dynamo/messaging/MessagingManager PatchBay failed to startup properly : a Scheduler job will be registered to continue trying to bring PatchBay up : note this will may result in further errors atg.nucleus.ServiceException: An error occurred trying to obtain an XATopicConnection from factory "dynamo:/atg/dynamo/messaging/SqlJmsProvider" in provider "sqldms" in definition file "/atg/dynamo/messaging/dynamoMessagingSystem.xml": javax.jms.JMSException: service was either unable startup due to possible DB errors or has been stopped+
    ***** Error Fri Jan 25 14:21:19 GMT 2013 1359123679337 /atg/dynamo/messaging/MessagingManager  at atg.dms.patchbay.Provider.initializeTopicConnection(Provider.java:325)*
    ***** Error Fri Jan 25 14:21:19 GMT 2013 1359123679337 /atg/dynamo/messaging/MessagingManager  at atg.dms.patchbay.PatchBayManager.createAdministeredDestinations(PatchBayManager.java:2471)*
    ***** Error Fri Jan 25 14:21:19 GMT 2013 1359123679337 /atg/dynamo/messaging/MessagingManager  at atg.dms.patchbay.PatchBayManager.doStartService(PatchBayManager.java:536)*
    ***** Error Fri Jan 25 14:21:19 GMT 2013 1359123679337 /atg/dynamo/messaging/MessagingManager  at atg.dms.patchbay.PatchBayRestarter.performScheduledTask(PatchBayRestarter.java:146)*
    ***** Error Fri Jan 25 14:21:19 GMT 2013 1359123679337 /atg/dynamo/messaging/MessagingManager  at atg.service.scheduler.ScheduledJob.runJobs(ScheduledJob.java:441)*
    ***** Error Fri Jan 25 14:21:19 GMT 2013 1359123679337 /atg/dynamo/messaging/MessagingManager  at atg.service.scheduler.Scheduler$2handler.run(Scheduler.java:760)*
    ***** Error Fri Jan 25 14:21:19 GMT 2013 1359123679337 /atg/dynamo/messaging/MessagingManager*
    Could you please help on this.
    Thanks and regards,

    Hi Gareth,
    No, the error is not coming during managed server startup time.
    It is coming during the application run and page navigation.
    Thanks and regards,

  • Error while running Process Chain

    Hello all,
    I am getting following error while running the process chain.
    "Process Activate ODS Object Data, variant PROCESS PSA_TO_ODS_ZFIGL_O1 has status Canceled (instance )".
    Due to this others are get affected..
    Plz provide solution.
    amit

    Hello all,
    I am getting following error while running the process chain.
    "Process Construct Database Statistics, variant DB_STAT_0PY_C02 has status Canceled (instance) ".
    Due to this others are get affected..
    Plz provide solution.
    amit

  • Error while running script HyperV - Dash Board - VM and Storage Report

    Hi Team,
    I am getting below error while running HyperV dashoboard monitor & storage report script from Technet script library.
    HyperV - Dash Board - VM and Storage Report
    Finished processing VM  - xxxx
    Processing VM - xxxxx
    Get-VHD : Unable to cast COM object of type 'System.__ComObject' to interface type 'System.Management.IWbemServices'.
    This operation failed because the QueryInterface call on the COM component for the interface with IID
    '{9556DC99-828C-11CF-A37E-00AA003240C7}' failed due to the following error: The requested object does not exist.
    (Exception from HRESULT: 0x80010114).
    At C:\Scripts\HyperV-DashBoard-v2.1.ps1:210 char:10
    +                     If (Get-VHD -VMID $vmDetails.VMID -ComputerName $cNodes.Name[$i])
    +                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Get-VHD], InvalidCastException
        + FullyQualifiedErrorId : Unspecified,Microsoft.Vhd.PowerShell.GetVhdCommand
    Get-VMNetworkAdapter : Unable to cast COM object of type 'System.__ComObject' to interface type
    'System.Management.IWbemServices'. This operation failed because the QueryInterface call on the COM component for the
    interface with IID '{9556DC99-828C-11CF-A37E-00AA003240C7}' failed due to the following error: The requested object
    does not exist. (Exception from HRESULT: 0x80010114).
    At C:\Scripts\HyperV-DashBoard-v2.1.ps1:238 char:12
    +                      If ((Get-VMNetworkAdapter -VMName $vmDetails.Name -ComputerName $cNodes.Na ...
    +                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Get-VMNetworkAdapter], InvalidCastException
        + FullyQualifiedErrorId : Unspecified,Microsoft.HyperV.PowerShell.Commands.GetVMNetworkAdapterCommand

    Hi ,
    I found that the problem had been solved in the script blog by your self :
    http://gallery.technet.microsoft.com/scriptcenter/HyperV-Dash-Board-VM-Disk-299bac7d/view/Discussions#content
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Error while running FDM 11.1.2.2 Import

    I am getting below error while running FDM import:
    Error - System.Runtime.InteropServices.COMException (0x80040211): Error executing rule. AIF_ODI_ERR:ODI-1424
       at Oracle.Erpi.ErpiFdmCommon.ExecuteRule(String userName, String ssoToken, String ruleName, String executionMode, String priorPeriodKey, String periodKey, String& loadId)
       at fdmERPIfinE1.clsGetFinData.fExecuteDataRule(String strERPIUserID, String strDataRuleName, String strExecutionMode, String strPeriodKey, String strPriorPeriodKey)
    What might be the reason for the error ? Please help.

    Hi,
    This could be due to mismatch of the installers you are trying to install on 64 bit Environment.
    While performing an install make sure that you download and install only the 64 bit, some components may be generic though.
    And also have you downloaded the EPM architect and EPM installer, not sure if they are available in the version (11.1.2) that you had mentioned.
    But if there is one try to extract and see if that helps.
    And also I am not sure if R2 is supported for your version (11.1.2).
    Hope this helps,
    Thank you,
    Charles Babu J

  • Database Adapter -- Getting Error While Running

    Team
    i was getting the following error while working on database adapter..
    Faulted while invoking operation "GetSQDBAdapter" on provider "GetSQDBAdapter".
    - <messages>
    - <input>
    - <InvokeGetSeq_GetSQDBAdapter_InputVariable>
    - <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="GetSQDBAdapterInput_msg">
    <GetSQDBAdapterInput xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/GetSQDBAdapter"/>
    </part>
    </InvokeGetSeq_GetSQDBAdapter_InputVariable>
    </input>
    - <fault>
    - <bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
    - <part name="code">
    <code>
    null
    </code>
    </part>
    - <part name="summary">
    <summary>
    file:/D:/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_AdapterProcess_1.0_7dc192de7b9309bf2a5733e111075804.tmp/GetSQDBAdapter.wsdl [ GetSQDBAdapter_ptt::GetSQDBAdapter(GetSQDBAdapterInput_msg,GetSQDBAdapterOutputCollection) ] - WSIF JCA Execute of operation 'GetSQDBAdapter' failed due to: Could not create/access the TopLink Session.
    This session is used to connect to the datastore. [Caused by: loc/DBConnection1DataSource not found]
    ; nested exception is:
         ORABPEL-11622
    Could not create/access the TopLink Session.
    This session is used to connect to the datastore. [Caused by: loc/DBConnection1DataSource not found]
    See root exception for the specific exception. You may need to configure the connection settings in the deployment descriptor (i.e. $J2EE_HOME/application-deployments/default/DbAdapter/oc4j-ra.xml) and restart the server. Caused by Exception [TOPLINK-7060] (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptions.ValidationException
    Exception Description: Cannot acquire data source [loc/DBConnection1DataSource].
    Internal Exception: javax.naming.NameNotFoundException: loc/DBConnection1DataSource not found.
    </summary>
    </part>
    - <part name="detail">
    <detail>
    Exception Description: Cannot acquire data source [loc/DBConnection1DataSource].
    Internal Exception: javax.naming.NameNotFoundException: loc/DBConnection1DataSource not found
    </detail>
    </part>
    </bindingFault>
    </fault>
    </messages>
    [2011/01/12 19:38:37]
    "{http://schemas.oracle.com/bpel/extension}bindingFault" has been thrown.
    - <bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
    - <part name="code">
    <code>
    null
    </code>
    </part>
    - <part name="summary">
    <summary>
    file:/D:/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_AdapterProcess_1.0_7dc192de7b9309bf2a5733e111075804.tmp/GetSQDBAdapter.wsdl [ GetSQDBAdapter_ptt::GetSQDBAdapter(GetSQDBAdapterInput_msg,GetSQDBAdapterOutputCollection) ] - WSIF JCA Execute of operation 'GetSQDBAdapter' failed due to: Could not create/access the TopLink Session.
    This session is used to connect to the datastore. [Caused by: loc/DBConnection1DataSource not found]
    ; nested exception is:
         ORABPEL-11622
    Could not create/access the TopLink Session.
    This session is used to connect to the datastore. [Caused by: loc/DBConnection1DataSource not found]
    See root exception for the specific exception. You may need to configure the connection settings in the deployment descriptor (i.e. $J2EE_HOME/application-deployments/default/DbAdapter/oc4j-ra.xml) and restart the server. Caused by Exception [TOPLINK-7060] (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptions.ValidationException
    Exception Description: Cannot acquire data source [loc/DBConnection1DataSource].
    Internal Exception: javax.naming.NameNotFoundException: loc/DBConnection1DataSource not found.
    </summary>
    </part>
    - <part name="detail">
    <detail>
    Exception Description: Cannot acquire data source [loc/DBConnection1DataSource].
    Internal Exception: javax.naming.NameNotFoundException: loc/DBConnection1DataSource not found
    </detail>
    </part>
    </bindingFault>
    i dont have much idea about BPEL, iam a newbie to it . Please help me in this.
    regards
    sridhar

    Hi Team,
    iam getting the following error while running the sample : *122.DBAdapter/File2Table.*
    Please help me out why it is giving the error. Did i miss any configuration ?
    i followed the configuration which is mentioned in the : File2Table/README.txt
    Invoke_1
    *[2011/02/05 22:37:30]*
    Faulted while invoking operation "merge" on provider "Database".
    - <messages>
    - <input>
    - <outputVariable>
    - <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PurchaseorderCollection">
    - <PurchaseorderCollection xmlns:top="http://xmlns.oracle.com/pcbpel/adapter/db/top/File2Table" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/File2Table">
    - <Purchaseorder xmlns="">
    *<id/>*
    *<requestDate/>*
    - <billTo>
    *<address/>*
    *<city/>*
    *<id/>*
    *<name/>*
    *<phone/>*
    *<state/>*
    *<zip/>*
    *</billTo>*
    - <lineitemCollection>
    - <Lineitem>
    *<item/>*
    *<line/>*
    *<price/>*
    *<quantity/>*
    - <shipTo>
    *<address/>*
    *<city/>*
    *<id/>*
    *<name/>*
    *<phone/>*
    *<state/>*
    *<zip/>*
    *</shipTo>*
    *</Lineitem>*
    *</lineitemCollection>*
    - <shipTo>
    *<address/>*
    *<city/>*
    *<id/>*
    *<name/>*
    *<phone/>*
    *<state/>*
    *<zip/>*
    *</shipTo>*
    *</Purchaseorder>*
    *</PurchaseorderCollection>*
    *</part>*
    *</outputVariable>*
    *</input>*
    - <fault>
    - <bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
    - <part name="code">
    *<code>*
    -5150
    *</code>*
    *</part>*
    - <part name="summary">
    *<summary>*
    *file:/D:/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_File2Table_1.0_89ae3479c7199e576774b60c48e8454b.tmp/DBOutbound.wsdl [ DBOutbound_ptt::merge(PurchaseorderCollection) ] - WSIF JCA Execute of operation 'merge' failed due to: Could not create/access the TopLink Session.*
    *This session is used to connect to the datastore. [Caused by: [POL-5150] access violation]*
    *; nested exception is:*
    *     ORABPEL-11622*
    Could not create/access the TopLink Session.
    *This session is used to connect to the datastore. [Caused by: [POL-5150] access violation]*
    *See root exception for the specific exception. You may need to configure the connection settings in the deployment descriptor (i.e. $J2EE_HOME/application-deployments/default/DbAdapter/oc4j-ra.xml) and restart the server. Caused by Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptions.DatabaseException*
    *Internal Exception: java.sql.SQLException: [POL-5150] access violationError Code: -5150.*
    *</summary>*
    *</part>*
    - <part name="detail">
    *<detail>*
    *Internal Exception: java.sql.SQLException: [POL-5150] access violationError Code: -5150*
    *</detail>*
    *</part>*
    *</bindingFault>*
    *</fault>*
    *</messages>*
    Copy details to clipboard
    *[2011/02/05 22:37:30]*
    *"{http://schemas.oracle.com/bpel/extension}bindingFault" has been thrown.*
    - <bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
    - <part name="code">
    *<code>*
    -5150
    *</code>*
    *</part>*
    - <part name="summary">
    *<summary>*
    *file:/D:/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_File2Table_1.0_89ae3479c7199e576774b60c48e8454b.tmp/DBOutbound.wsdl [ DBOutbound_ptt::merge(PurchaseorderCollection) ] - WSIF JCA Execute of operation 'merge' failed due to: Could not create/access the TopLink Session.*
    *This session is used to connect to the datastore. [Caused by: [POL-5150] access violation]*
    *; nested exception is:*
    *     ORABPEL-11622*
    Could not create/access the TopLink Session.
    *This session is used to connect to the datastore. [Caused by: [POL-5150] access violation]*
    *See root exception for the specific exception. You may need to configure the connection settings in the deployment descriptor (i.e. $J2EE_HOME/application-deployments/default/DbAdapter/oc4j-ra.xml) and restart the server. Caused by Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptions.DatabaseException*
    *Internal Exception: java.sql.SQLException: [POL-5150] access violationError Code: -5150.*
    *</summary>*
    *</part>*
    - <part name="detail">
    *<detail>*
    *Internal Exception: java.sql.SQLException: [POL-5150] access violationError Code: -5150*
    *</detail>*
    *</part>*
    *</bindingFault>*
    Copy details to clipboard

  • Error while running a Java Program

    Can anyone help me,
    I am getting the following error while running a Java program, Below is the exception thrown, please help.
    java.nio.BufferOverflowException
    at java.nio.Buffer.nextPutIndex(Buffer.java:425)
    at java.nio.DirectByteBuffer.putChar(DirectByteBuffer.java:463)
    at org.jetel.data.StringDataField.serialize(StringDataField.java:295)
    at org.jetel.data.DataRecord.serialize(DataRecord.java:283)
    at org.jetel.graph.DirectEdge.writeRecord(DirectEdge.java:216)
    at org.jetel.graph.Edge.writeRecord(Edge.java:288)
    at com.tcs.re.component.RESummer1.run(RESummer1.java:505)
    java.nio.BufferOverflowException
    at java.nio.Buffer.nextPutIndex(Buffer.java:425)
    at java.nio.DirectByteBuffer.putChar(DirectByteBuffer.java:463)
    at org.jetel.data.StringDataField.serialize(StringDataField.java:295)
    at org.jetel.data.DataRecord.serialize(DataRecord.java:283)
    at org.jetel.graph.DirectEdge.writeRecord(DirectEdge.java:216)
    at org.jetel.graph.Edge.writeRecord(Edge.java:288)
    at com.tcs.re.component.RECollectCont.run(RECollectCont.java:304)

    Ok, let's see. Write the following class:
    public class Grunt {
      public static void main(String[] args) {
        System.out.println("Hello Mars");
    }Save it as "C:\Grunt.java", compile by typing:
    javac c:\Grunt.javaRun by typing:
    java -classpath "C:\" GruntDoes it say "Hello Mars"? If yes, go back to your program and compare for differences (maybe you used the "package" statement?).
    Regards

  • Error while running a report

    Hi all,
    I am getting this particular error while running a report. The error is:
    <b>SQL Error: 604
    System error in program SAPLRRK0 and form RSRDR;SRRK0F30-01-
    Diagnosis
    This internal error is a targeted termination since the program has an
    incorrect status.
    Procedure
    Analyse the situation and inform SAP.
      Notification Number BRAIN 299 </b>
    Could anyone tell me what that means?
    Thanks In advance,
    Raj

    Hi Raj,
    There are a few OSS Notes for your issue.
    If your Query has hierarchy in it then check 734184
    If your query is based on Infoset then check Note 784502 and 701941.
    Also check 668921.
    Bye
    Dinesh

Maybe you are looking for

  • Charts & Scatter Plots in Apex

    Hi, I know this is a subject that has come up before. However, I wonder if anyone knows of any new ideas or news on the subject. Does anyone know if there is a way (currently) or in the foreseeable future of producing a scatter plot with Oracle Apex?

  • What is this whole mess in OTN ? where the glibc 2.1 patch ?

    Hi Everbody I can't seem to figure how this OTN thing is organised, so many information scattered everywere without any design pricniple, no URL to design pages, the find function doesn't display any real usefull information, to broad or to narrow. S

  • Conversion factor error in sales order - Unit of measure

    Hi All, I have uploaded a sales item in to sales order with alternate UoM. The base unit of measure for that material is TO but i have uploaded with a alternate UoM KG. After that i have created project deliveries, invoices and accounted those invoic

  • -Xmx1024M is working with Jrockit but not with Sun JDK.

    Hi, We have a window server box with 8GB RAM. in which there are few other processes running apart from that we have more than 1GB space available. We have weblogic 10.3 present in this system. when we try to Run a managed server with JRockit JVM wit

  • Conditional Display of Interactive Report Based On Different SQL Query

    Hello, I have two drop down list on top of my page and below that I have a interactive report. Based on user selection of values from drop down, interactive report should change based on different SQL queries. Is it possible to have different SQL que