Invalid table name when pass in the table name as variable in dynamic sql

Hi,
I need to create a stored procedure which will return a list of data to my java application like the following.
first, select the table name from the first table.
For example : SELECT T_NAME FROM MDR_SMSTABLES
second, select the data from the table which returned by first select statement
For example : SELECT * FROM T_NAME.
I use dynamic sql with cursor to select the data. But it returns "java.sql.SQLException: ORA-00903: invalid table name"
I fetch the table name to varchar2. I think this might the cause it returns me the this error. But i don't know what type should i put for the table name other then varchar2.
val2 VARCHAR2(200);
OPEN cv FOR
SELECT T_NAME FROM MDR_SMSTABLES WHERE T_DATE=d_dt_sent;
FETCH cv INTO val2;
WHILE cv%FOUND
LOOP
OPEN refcur FOR
'SELECT * FROM :t WHERE MID = :m' USING val2, msg_id;
EXIT WHEN refcur IS NOT NULL;
FETCH cv INTO val2;
END LOOP;
As my stored procedure is quite long, so i just paste some of the code here. Hope the information is enough. Can anyone please help?
Thanks

DECLARE
val2 VARCHAR2 (200);
cv sys_refcursor;
refcur sys_refcursor;
BEGIN
OPEN cv FOR
SELECT table_name
FROM user_tables
WHERE table_name IN ('EMP', 'DEPT');
FETCH cv INTO val2;
WHILE cv%FOUND
LOOP
OPEN refcur FOR 'SELECT * FROM '||val2;
EXIT WHEN refcur IS NOT NULL;
FETCH cv INTO val2;
END LOOP;
END;

Similar Messages

  • How to find the query name when we know the program name? Urgent!!!!!

    The same as the title, thanks in advance!
    For example, the program for the query is:AQZZZSAPQUERY===ZPAYMENT_MEDIA.

    Hi ,
    I think you have not given the correct name of the program .
    normally it will be AQZZ/SAPQUERY/ABZPAYMENT_MEDIA====
    Take the characters from the end i.e. before '=' sign and search in SQ01 to get the query name.
    for your example, Query name may be ZPAYMETN_MEDIA itself.
    Hope it helps you.
    Kind Regards,
    Ravi Sankar.Z

  • How can i fetch the city name from database according the state name

    If you have any example of Dyamic List box.
    How can i fetch the city name from database according the state name when i select the state name in a dynamic list box.
    Thanks

    When i run the this code it is giving the an exception
    org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: 'com.mypackage.MyBean'.. class com.mypackage.MyBean : java.lang.NullPointerException
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:541)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:417)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
         org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
         org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
         org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
         org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
    root cause
    javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: 'com.mypackage.MyBean'.. class com.mypackage.MyBean : java.lang.NullPointerException
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
         org.apache.jsp.test_jsp._jspService(test_jsp.java:95)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
         org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
         org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
         org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
         org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
    root cause
    javax.faces.el.EvaluationException: javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: 'com.mypackage.MyBean'.. class com.mypackage.MyBean : java.lang.NullPointerException
         com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:190)
         com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
         com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:406)
         javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1019)
         javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1046)
         javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:761)
         javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:451)
         com.sun.faces.taglib.html_basic.SelectOneMenuTag.doStartTag(SelectOneMenuTag.java:487)
         org.apache.jsp.test_jsp._jspx_meth_h_005fselectOneMenu_005f0(test_jsp.java:259)
         org.apache.jsp.test_jsp._jspx_meth_h_005fpanelGroup_005f0(test_jsp.java:219)
         org.apache.jsp.test_jsp._jspx_meth_h_005fpanelGrid_005f0(test_jsp.java:189)
         org.apache.jsp.test_jsp._jspx_meth_h_005fform_005f0(test_jsp.java:160)
         org.apache.jsp.test_jsp._jspx_meth_f_005fview_005f0(test_jsp.java:127)
         org.apache.jsp.test_jsp._jspService(test_jsp.java:86)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
         org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
         org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
         org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
         org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
    root cause
    javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: 'com.mypackage.MyBean'.. class com.mypackage.MyBean : java.lang.NullPointerException
         com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:292)
         com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:97)
         com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:145)
         com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:166)
         com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
         com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:160)
         com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
         com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:406)
         javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1019)
         javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1046)
         javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:761)
         javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:451)
         com.sun.faces.taglib.html_basic.SelectOneMenuTag.doStartTag(SelectOneMenuTag.java:487)
         org.apache.jsp.test_jsp._jspx_meth_h_005fselectOneMenu_005f0(test_jsp.java:259)
         org.apache.jsp.test_jsp._jspx_meth_h_005fpanelGroup_005f0(test_jsp.java:219)
         org.apache.jsp.test_jsp._jspx_meth_h_005fpanelGrid_005f0(test_jsp.java:189)
         org.apache.jsp.test_jsp._jspx_meth_h_005fform_005f0(test_jsp.java:160)
         org.apache.jsp.test_jsp._jspx_meth_f_005fview_005f0(test_jsp.java:127)
         org.apache.jsp.test_jsp._jspService(test_jsp.java:86)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
         org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
         org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
         org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
         org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
    root cause
    javax.faces.FacesException: Can't instantiate class: 'com.mypackage.MyBean'.. class com.mypackage.MyBean : java.lang.NullPointerException
         com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:229)
         com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:282)
         com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:97)
         com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:145)
         com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:166)
         com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
         com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:160)
         com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
         com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:406)
         javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1019)
         javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1046)
         javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:761)
         javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:451)
         com.sun.faces.taglib.html_basic.SelectOneMenuTag.doStartTag(SelectOneMenuTag.java:487)
         org.apache.jsp.test_jsp._jspx_meth_h_005fselectOneMenu_005f0(test_jsp.java:259)
         org.apache.jsp.test_jsp._jspx_meth_h_005fpanelGroup_005f0(test_jsp.java:219)
         org.apache.jsp.test_jsp._jspx_meth_h_005fpanelGrid_005f0(test_jsp.java:189)
         org.apache.jsp.test_jsp._jspx_meth_h_005fform_005f0(test_jsp.java:160)
         org.apache.jsp.test_jsp._jspx_meth_f_005fview_005f0(test_jsp.java:127)
         org.apache.jsp.test_jsp._jspService(test_jsp.java:86)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
         org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
         org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
         org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
         org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
    root cause
    java.lang.ClassNotFoundException: class com.mypackage.MyBean : java.lang.NullPointerException
         java.beans.Beans.instantiate(Unknown Source)
         java.beans.Beans.instantiate(Unknown Source)
         com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:223)
         com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:282)
         com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:97)
         com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:145)
         com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:166)
         com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
         com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:160)
         com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
         com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:406)
         javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1019)
         javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1046)
         javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:761)
         javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:451)
         com.sun.faces.taglib.html_basic.SelectOneMenuTag.doStartTag(SelectOneMenuTag.java:487)
         org.apache.jsp.test_jsp._jspx_meth_h_005fselectOneMenu_005f0(test_jsp.java:259)
         org.apache.jsp.test_jsp._jspx_meth_h_005fpanelGroup_005f0(test_jsp.java:219)
         org.apache.jsp.test_jsp._jspx_meth_h_005fpanelGrid_005f0(test_jsp.java:189)
         org.apache.jsp.test_jsp._jspx_meth_h_005fform_005f0(test_jsp.java:160)
         org.apache.jsp.test_jsp._jspx_meth_f_005fview_005f0(test_jsp.java:127)
         org.apache.jsp.test_jsp._jspService(test_jsp.java:86)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
         org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
         org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
         org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
         org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
    root cause
    java.lang.NullPointerException
         javax.faces.model.SelectItem.setValue(SelectItem.java:254)
         javax.faces.model.SelectItem.<init>(SelectItem.java:138)
         javax.faces.model.SelectItem.<init>(SelectItem.java:96)
         com.mypackage.MyBean.fillCountryItems(MyBean.java:80)
         com.mypackage.MyBean.<init>(MyBean.java:28)
         sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         java.lang.reflect.Constructor.newInstance(Unknown Source)
         java.lang.Class.newInstance0(Unknown Source)
         java.lang.Class.newInstance(Unknown Source)
         java.beans.Beans.instantiate(Unknown Source)
         java.beans.Beans.instantiate(Unknown Source)
         com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:223)
         com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:282)
         com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:97)
         com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:145)
         com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:166)
         com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
         com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:160)
         com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
         com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:406)
         javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1019)
         javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1046)
         javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:761)
         javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:451)
         com.sun.faces.taglib.html_basic.SelectOneMenuTag.doStartTag(SelectOneMenuTag.java:487)
         org.apache.jsp.test_jsp._jspx_meth_h_005fselectOneMenu_005f0(test_jsp.java:259)
         org.apache.jsp.test_jsp._jspx_meth_h_005fpanelGroup_005f0(test_jsp.java:219)
         org.apache.jsp.test_jsp._jspx_meth_h_005fpanelGrid_005f0(test_jsp.java:189)
         org.apache.jsp.test_jsp._jspx_meth_h_005fform_005f0(test_jsp.java:160)
         org.apache.jsp.test_jsp._jspx_meth_f_005fview_005f0(test_jsp.java:127)
         org.apache.jsp.test_jsp._jspService(test_jsp.java:86)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
         org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
         org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
         org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
         org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)

  • Creating a Mat View having the same name with that of the table name

    Hi everyone,
    After dropping the mat view name "QQ.TRDLN_DIM_MV", I'm trying to re-create it by having the same name as that of the table but I got an error stating that "name is already used by an existing object". How can create a mat view to look like the object owned by schema "GQ", having a name that is the same as that of the table name, without dropping the table?
    OWNER_O OBJECT_TYPE CREATED LAST_DDL_ TIMESTAMP STATUS OBJECT_NAME
    ===
    GQ MATERIALIZED VIEW 05-NOV-08 13-DEC-08 2008-11-05:06:31:46 VALID TRDLN_DIM_MV
    GQ TABLE 05-NOV-08 15-DEC-08 2008-11-05:06:31:00 VALID TRDLN_DIM_MV
    QQ TABLE 17-AUG-07 16-MAR-09 2007-08-17:17:05:21 VALID TRDLN_DIM_MV
    SQL&gt;CREATE MATERIALIZED VIEW QQ.TRDLN_DIM_MV
    2 TABLESPACE FPLC01S
    3 NOCACHE
    4 NOLOGGING
    5 COMPRESS
    6 PARALLEL ( DEGREE 2 INSTANCES 1 )
    7 BUILD IMMEDIATE
    8 REFRESH FORCE ON DEMAND
    9 WITH PRIMARY KEY
    10 AS
    11 select /*+ NO_REWRITE */ trdln_id,
    12 trdln_skid,
    13 trdln_end_date,
    14 first_value(trdln_end_date) over (partition by trdln_id order by trdln_end_date DESC) as MaxDate
    15 from QQ.trdln_dim;
    from QQ.trdln_dim
    ERROR at line 15:
    ORA-00955: name is already used by an existing object
    I appreciate your help. Many thanks in advance!
    Regards,
    Radic

    You'd have to rename the table (using ALTER TABLE tablename RENAME TO othername; ) before you create the MV.
    You can't have both existing with the same name in the same schema.
    What you see in the GQ schema is that the "table" is the underlying table for the Materialized View.
    When you do a CREATE MATERIALIZED VIEW MY_MV AS ...
    Oracle creates two objects with the same name, one being the Materialized View MY_MV and the other being the table MY_MV which is the physical storage. {Remember that a Materialized View is a means of getting a physical representation of a View}.
    In the QQ schema what you have is either
    a. a real Table
    or
    b. an improperly dropped MV, resulting in the underlying Table still present.

  • Getting error message when passing data into table: Primary Key

    Getting an error in a process that is feeding the invoice creation in SAP, violation of PRIMARY KEY constraint 'INV1_Primary', cannot insert duplicate key in object 'INV1'. I assume this is due to duplicate key values being passed into the table INV1, however I get this error even when I am passing unique record combinations of the key fields docentry and linenum. This is on 2005A SP01.
    Thanks

    Hi Peter,
    Could you provide a code sample of the routine that is causing the error please?
    It sounds like a data corruption issue (though it could possibly be a bug in the DI API). I recommend you speak to SAP support. There is a utility that can validate the document numbering but you'll need to speak to SAP support before you run this as it can have other negative effects, depending on the state of your data. They may ask for a copy of your database to test.
    Kind Regards,
    Owen

  • My numbers tables will not open correctly on screen, the preview shows but when I open the table it only shows blank. When I print a copy it prints ok any solutions?

    my numbers tables will not open correctly on screen, the preview shows but when I open the table it only shows blank. When I print a copy it prints ok any solutions?

    Rebooted computer works now ok

  • What are the tables impacted when we done the migo

    hi,
    what are the tables impacted when we done the migo.

    The tables invoved are :-
    MARD -   Storage Location Data for Material
    MARC - Plant Data for Material
    MSEG - Document Segment: Material
    MBEW - Material Valuation
    MKPF - Headr : Material Document
    EKBE - History per Purchasing Document
    EBEW - Sales Order Stock Valuation
    Edited by: Briesh Patel on Apr 22, 2008 4:42 PM

  • The power went out and when it returned the network name and password was lost.  I can see the network in my connections and connect to it.  How do I get it back to the orginal name and password.  I have an HP laptop

    The power went out and when it returned the network name and password was lost.  I can see the network in my connections and connect to it.  How do I get it back to the orginal name and password? I have an HP laptop. 

    Chances are, there was a signficant power surge or voltage fluctuation just before the power went out. This type of thing can cause the AirPort Extreme to reset back to default settings.
    If this occurs, your only option is re-configure the device again, just as you did originally.
    In order to improve your chances this next time this happens, (especially if you live in an area where thunderstorms are severe), a good quality surge suppressor / voltage limiting power strip will really help, and may save you the entire device or a nearby computer next time something like this occurs.

  • TS1292 I'm trying to activate my itunes gift card but it keeps saying invalid code. When I follow the iTunes support it keeps taking me round in circles to the same page. What do I do?

    I'm trying to activate my itunes gift card but it keeps saying invalid code. When I follow the iTunes support it keeps taking me round in circles to the same page. What do I do?

    I imagine a ton of people are attempting to activate after the update, and the server is getting overloaded. Simple patience, maybe keep trying, and if possible, try a little later. Think of it as all those people lining up at Apple Stores + about a million more.

  • I am trying to install premier elements 11 that I purchased back in 2012 on a new machine with 8.1. I get "invalid serial number" when I enter the serial number I received with the original activation e-mail when I purchased the product, thanks!

    I am trying to install premier elements 11 that I purchased back in 2012 on a new machine with 8.1. I get "invalid serial number" when I enter the serial number I received with the original activation e-mail when I purchased the product, thanks!

    Error "The serial number is not valid for this product" | Creative Suite

  • If I have a pic in more than one album, does iPhoto make more than one copy of that pic?  When I search the file name on finder, it seems to be showing one copy of that file for every album it's in.

    If I have a pic in more than one album, does iPhoto make more than one copy of that pic?  When I search the file name on finder, it seems to be showing one copy of that file for every album it's in.

    No it doesn't. Albums simply reference the photos in the Library. A single shot can be in 100 albus and use no extra disk space at all.
    If you have the same shot in two Events then yes, the file is duplicated.
    When I search the file name on finder, it seems to be showing one copy of that file for every album it's in.
    The Finder doesn't really understand the iPhoto Library. It's quite possible for the iPhoto Library to contain many files with the same name. The Library also contains different versions of the same shot - thumbnail, originals and edited version. This is normal.
    Regards
    TD

  • Using sqlldr to load XML files and the file name ?  or access the file name

    I can use sqlldr to load the XML files when I declare the target table of XMLTYPE, but I need to load the filename and a sequence also with the XML in a table so we can mark wether the file passed validation or not.
    something like ....
    Create table test1
    lobfn varchar(200),
    load_number number,
    XML_COL XMLTYPE
    --------------- here is my sqlldr command
    sqlldr xml_user/xml_user load_test1.ctl
    LOAD DATA
    INFILE *
    INTO TABLE test1
    append
    xmltype(XML_COL)
    lobfn FILLER char TERMINATED by ',',
    XML_COL LOBFILE(lobfn) TERMINATED BY EOF
    BEGINDATA
    filename1.xml
    filename2.xml
    filename64.xml
    sqlldr comes back and says "commit point reached - logical record count 64
    but when I select count(*) from test1; it returns 0 rows.
    and when I
    SELECT X.* FROM tst1 P2,
    XMLTable ( '//XMLRoot//APPLICATION'
    PASSING P2.XML_COL
    COLUMNS
    "LASTNAME" CHAR(31) PATH 'LASTNAME',
    "FIRSTNAME" CHAR(31) PATH 'FIRSTNAME'
    ) AS X;
    It tells me invalid identifier ,
    Do I need to use a function to get the XML_COL as a object_value ???
    But when I create the table like
    create table test1 of XMLTYPE;
    and use sqlldr it works, but I dont have the file name, or dont know how to access it ??
    and I can use
    SELECT X.* FROM tst1 P2,
    XMLTable ( '//XMLRoot//APPLICATION'
    PASSING P2.object_value
    COLUMNS
    "LASTNAME" CHAR(31) PATH 'LASTNAME',
    "FIRSTNAME" CHAR(31) PATH 'FIRSTNAME'
    ) AS X;

    BTW
    Here's a trivial example of what you appear to be trying to do..
    C:\xdb\otn\sqlLoader>sqlplus scott/tiger @createTable
    SQL*Plus: Release 10.2.0.2.0 - Production on Wed Aug 2 22:08:10 2006
    Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> DROP TABLE TEST_TABLE
      2  /
    Table dropped.
    SQL> CREATE TABLE TEST_TABLE
      2  (
      3    filename    VARCHAR2(32),
      4    file_content xmltype
      5  )
      6  /
    Table created.
    SQL> quit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    C:\xdb\otn\sqlLoader>type sqlldr.ctl
    LOAD DATA
    INFILE 'filelist.txt'
       INTO TABLE TEST_TABLE
       FIELDS TERMINATED BY ','
        FILENAME       CHAR(32),
        FILE_CONTENT   LOBFILE(FILENAME) TERMINATED BY EOF
    C:\xdb\otn\sqlLoader>type filelist.txt
    testcase1.xml
    testcase2.xml
    C:\xdb\otn\sqlLoader>type testcase1.xml
    <foo/>
    C:\xdb\otn\sqlLoader>type testcase1.xml
    <foo/>
    C:\xdb\otn\sqlLoader>sqlldr userid=SCOTT/TIGER control=sqlldr.ctl log=sqlldr.log -direct
    SQL*Loader: Release 10.2.0.2.0 - Production on Wed Aug 2 22:08:11 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Load completed - logical record count 2.
    C:\xdb\otn\sqlLoader>sqlplus scott/tiger
    SQL*Plus: Release 10.2.0.2.0 - Production on Wed Aug 2 22:08:18 2006
    Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> select * from TEST_TABLE
      2  /
    FILENAME
    FILE_CONTENT
    testcase1.xml
    <foo/>
    testcase2.xml
    <baa/>
    SQL>
    If you are interested in the 11g beta program please contact me directory at
    markDOTdrakeAToracleDOTcom

  • IPod won't sync - "Itunes could not copy (name of song) to the ipod (name of ipod) Because an unknown error occurred (-53)"

    I recently bought a used iPod Classic (my previous one was stolen). I still had my iTunes library on my computer so I was just going to hook it up and sync my library over, replacing what was on there from the previous user. When I first hooked it up to my computer (Windows 7 64-bit) there was a message saying the drivers were not installed properly. I un-plugged it, and plugged it back in to the same result. I tried 1 more time and didn't get the error message. I then opened iTunes and clicked on the iPod. I checked for updates, then clicked "Restore this iPod". Next, I set it up to sync music, and the sync began. It seemed to work for a while, the "Syncing iPod" message was displayed at the top, and it said it was copying songs over. It did this for about 10 minutes before I finally got the following message:
    "Itunes could not copy (name of song) to the ipod (name of ipod) Because an unknown error occurred (-53)"
    After that happens, everything seems to freeze up. iTunes says it's still syncing, but nothing ever seems to happen. If I click the eject button, nothing happens either. I eventually have to just disconnect the iPod. The iPod seems frozen for a while, then it seems to reboot itself (the gray apple window displays), then the interface displays and I can get to the songs on there. But, only a very small portion of my library makes it to the iPod. I've tried several times now and it always seems to be the same songs that DO make it onto the iPod. However, it's a different song listed in the error message each time, so it doesn't seem to be just 1 song causing the problem. Also, once I hook the iPod back to the computer, Windows displays a message prompting me to scan the drive and fix errors. I did it once and it said it found some errors and fixed them.
    I saw this thread: https://discussions.apple.com/thread/3924425
    and some people were suggesting removing everything from your library then re-adding it, in case the paths were messed up. I tried that and still got the same results. I also updated iTunes to the latest version, and I've tried different USB ports and 2 different USB cables.
    I also found instructions for a batch file you can run that, I believe, updates the iTuens DLLs, I did that as well but it did not help: http://support.apple.com/kb/TS1539
    What else can I try to fix this?

    bump (if that's allowed)

  • TS1463 Itunes could not copy (name of song) To the ipod (name of ipod) Because an unknown error occurred (-50)

    Itunes could not copy (name of song) To the ipod (name of ipod) Because an unknown error occurred (-50)

    I had this problem with a new album I downloaded this week from Amazon. It looks like they changed their cloud player download functionality within the last few weeks.
    I previously tried the steps listed here: http://support.apple.com/kb/TS1539
    I had also tried Windows Updates and a few other suggestions I found on this topic and nothing had worked.
    In iTunes, when I right-click on the track to "Get Info," I noticed it lists WHERE at the bottom of the Summary tab to show where the file is located. It said the file was located in \\?\C:\mp3\... Amazon automatically downloads my mp3's to this directory and imports them to iTunes. I assumed there was something wrong with the mapping, due to the \\?\.
    If you notice your files are not mapped to a valid location:
    Highlight the affected tracks and press the <Delete> key on your keyboard.
    Select the Remove option when prompted to remove the files from your Library. Take care to Keep Files if prompted so you don't completely remove them from your computer.
    Locate the files on your computer and drag them to import back into iTunes. If you check the location mapping in Get Info, the directory should now be valid.
    I think the USB workaround above might resolve this issue, but this probably helps to explain that the files locations weren't referenced in iTunes correctly in the first place.
    Message was edited by: artfuldodgr42

  • I wish to modify the name of one of the field name in the sales order.

    HELLO GURRRUS,
                 i wish to modify teh name of one of the field name in the sales ordder.
    what is the procdure,path and steps involved in that.it would be of great help of me if u take some  time and suggest me.
    bye take care hav a happy and peaceful life

    Hi Sameer,
    If you want to change the name or description of the field in the Sales order,
    you have to use the userexit MV45AFZZ and use the Form USEREXIT_FIELD_MODIFICATION.
    Get the help of the ABAPer and decide where do you want to make the change in the Header or the Line items.  Accordingly give the requirements to the ABAPer.
    He will do it.
    Thanks
    Augustine Ponraj

Maybe you are looking for

  • HT4623 Sound and other problems with Ipad 3 after ios 6.1.3 update

    I purchased Ipad 3 last year and got problem of losing sound when I restored the Ipad throgh itunes. The sound came back automatically after I charged the device to 100%. Recently I got the same problem when the operating system was Ios 6.1.2 and the

  • Problem in scenario : file to idoc through bpm

    hi,     iam working on a scenario ,which splits invoice packets and sends it various receivers.          i encounter an error when sending the split message to the receiver.the error is,     [i<b>]"cannot convert the sending service into an ale logic

  • Is updating from Robohelp X5.0.2 to latest version a difficult task?

    I realize this is a pretty subjective question, but for someone who is fairly comfortable using version X5.0.2, would it take a day, or a week, or possible a couple months to update a project that contains three chm files, with hundreds of htm files?

  • About log4j and java

    I have following code in log4j, but after execution I am unable to find file "resultFil" anywhere. appender name="resultFile" class="org.apache.log4j.RollingFileAppender"> <param name="file" value="result.log"/> <param name="MaxFileSize" value="100KB

  • Is there any way to clean the CD/DVD drive?

    Is there any way that you can clean the CD/DVD drive?