Error in creating dynamic view

Hi,
I am using the following to create a dynamic view which will be created on runtime and conditions will be provided by user. Here is the code:
CREATE OR REPLACE PROCEDURE DYN_VIEW_PROC(PARA IN NUMBER)
AS
DEPT_NO NUMBER(3) := PARA;
DYN_QUERY VARCHAR2(1000);
BEGIN
DYN_QUERY := ' CREATE OR REPLACE VIEW DYN_VIEW
AS SELECT EMPNO,ENAME,DEPTNO FROM EMP_NEW
WHERE DEPTNO > :1 ';
EXECUTE IMMEDIATE DYN_QUERY USING DEPT_NO;
END;
But when i execute this code i got the following error:
SQL> EXEC DYN_VIEW_PROC(10);
BEGIN DYN_VIEW_PROC(10); END;
ERROR at line 1:
ORA-01027: bind variables not allowed for data definition operations
ORA-06512: at "SYS.DYN_VIEW_PROC", line 9
ORA-06512: at line 1
If i hardcode the condition in the defenation of view then it works fine. Any solution of it.

It looks strange.And more so, since the view name seems the same across each invocation (unless the example is missing that detail). So, if two users were creating this view one after the other and then subsequently try to use it, what would each user see in their output???
Not the rows based on their where condition, possbily.
You would create the view only once with all the necessary joins and any static conditions. Then users would use it as and when necessary, supplying their custom where condition on top of it.
What is the need you are trying to solve using this dynamic view creation?

Similar Messages

  • Error in using Dynamic View Object

    Hi
    I am doing a experiment to create dynamic VO and using it.
    Experiment details:
    I want to create dynamic VO and dynamic message choice and associate the dynamic VO to dynamicaly cretaed message choice.
    code scriplet
    In AM
    public void dynamicVO()
    OADBTransactionImpl txn =(OADBTransactionImpl) this.getTransaction();
    OAViewDef viewDef = txn.createViewDef();
    // viewDef.addEntityDerivedAttrDef();
    viewDef.setSql("select EmpEO.EMPNO, EmpEO.ENAME, EmpEO.JOB, EmpEO.DEPTNO from EMP EmpEO");
    viewDef.setExpertMode(true);
    viewDef.addEntityUsage("EmpEO","va.oracle.apps.fnd.experiment.server.EmpEO",false);
    viewDef.setViewObjectClass("oracle.apps.fnd.framework.server.OAViewObjectImpl");
    viewDef.setViewRowClass("oracle.apps.fnd.framework.server.OAViewRowImpl");
    viewDef.addPersistentAttrDef("Empno", "EmpEO", "Empno", true, AttributeDef.UPDATEABLE);
    viewDef.addPersistentAttrDef("Ename", "EmpEO", "Ename", true, AttributeDef.UPDATEABLE);
    viewDef.addPersistentAttrDef("Job", "EmpEO", "Job", true, AttributeDef.UPDATEABLE);
    viewDef.addPersistentAttrDef("Deptno", "EmpEO", "Deptno", true, AttributeDef.UPDATEABLE);
    // OAViewObject
    // ViewObject
    ViewObject vo = createViewObject("MyEmpVO", viewDef);
    In Controller
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    am.invokeMethod("dynamicVO");
    System.out.println("am.invokeMethod dynamicVO");
    OAMessageChoiceBean popList = (OAMessageChoiceBean)this.createWebBean(pageContext,OAMessageChoiceBean.MESSAGE_CHOICE_BEAN);
    //popList.setListViewObject(pageContext,MyEmpVO);
    popList.setPickListViewUsageName("MyEmpVO");
    popList.setListDisplayAttribute("Job");
    popList.setListValueAttribute("Job");
    webBean.addIndexedChild(popList);// when i comment out this a blank page runs otherwise following error appears
    Error stack
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: select EmpEO.EMPNO, EmpEO.ENAME, EmpEO.JOB, EmpEO.DEPTNO from EMP EmpEO
    at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
    at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2898)
    at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2700)
    at OA.jspService(OA.jsp:48)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
    at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.sql.SQLException: ORA-01003: no statement parsed
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
    at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
    at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1983)
    at oracle.jdbc.ttc7.TTC7Protocol.executeFetch(TTC7Protocol.java:1002)
    at oracle.jdbc.dbaccess.DBAccess.executeFetchNeedDefines(DBAccess.java:283)
    at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2604)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2854)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:622)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:550)
    at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:627)
    at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:515)
    at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3347)
    at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:825)
    at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4465)
    at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574)
    at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544)
    at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619)
    at oracle.jbo.server.ViewObjectImpl.executeDetailQuery(ViewObjectImpl.java:3311)
    at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3298)
    at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:439)
    at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.createListDataObject(OAWebBeanPickListHelper.java:973)
    at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.getListDataObject(OAWebBeanPickListHelper.java:818)
    at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.getList(OAWebBeanPickListHelper.java:446)
    at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.getList(OAWebBeanPickListHelper.java:403)
    at oracle.apps.fnd.framework.webui.beans.message.OAMessageChoiceBean.getList(OAMessageChoiceBean.java:762)
    at oracle.apps.fnd.framework.webui.OADataBoundValuePickListData.getValue(OADataBoundValuePickListData.java:86)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.getAttributeValueImpl(OAWebBeanHelper.java:1760)
    at oracle.apps.fnd.framework.webui.beans.message.OAMessageChoiceBean.getAttributeValueImpl(OAMessageChoiceBean.java:369)
    at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
    at oracle.apps.fnd.framework.webui.OADataBoundValuePickListSelectionIndex.getValue(OADataBoundValuePickListSelectionIndex.java:61)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.getAttributeValueImpl(OAWebBeanHelper.java:1760)
    at oracle.apps.fnd.framework.webui.beans.message.OAMessageChoiceBean.getAttributeValueImpl(OAMessageChoiceBean.java:369)
    at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
    at oracle.cabo.ui.collection.UINodeAttributeMap.getAttribute(Unknown Source)
    at oracle.cabo.ui.collection.AttributeMapProxy.getAttribute(Unknown Source)
    at oracle.cabo.ui.BaseUINode.getAttributeValueImpl(Unknown Source)
    at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
    at oracle.cabo.ui.collection.UINodeAttributeMap.getAttribute(Unknown Source)
    at oracle.cabo.ui.BaseUINode.getAttributeValueImpl(Unknown Source)
    at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
    at oracle.cabo.ui.laf.base.BaseLafUtils.getLocalAttribute(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.getSelectedIndex(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.populateOptionInfo(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.createOptionInfo(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.prerender(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.ChoiceRenderer.prerender(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.FormElementRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderNamedChild(Unknown Source)
    at oracle.cabo.ui.laf.base.SwitcherRenderer._renderCase(Unknown Source)
    at oracle.cabo.ui.laf.base.SwitcherRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
    at oracle.cabo.ui.composite.UINodeRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.RowLayoutRenderer.renderChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.InlineMessageRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.composite.ContextPoppingUINode$ContextPoppingRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.laf.oracle.desktop.HeaderRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderIndexedChildren(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
    at oracle.cabo.ui.composite.UINodeRenderer.render(Unknown Source)
    at oracle.cabo.ui.laf.oracle.desktop.PageLayoutRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.BodyRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.apps.fnd.framework.webui.beans.OABodyBean.render(OABodyBean.java:398)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.partial.PartialPageUtils.renderPartialPage(Unknown Source)
    at oracle.apps.fnd.framework.webui.OAPageBean.render(OAPageBean.java:3209)
    at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2888)
    at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2700)
    at OA.jspService(OA.jsp:48)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
    at java.lang.Thread.run(Thread.java:534)
    java.sql.SQLException: ORA-01003: no statement parsed
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
    at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
    at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1983)
    at oracle.jdbc.ttc7.TTC7Protocol.executeFetch(TTC7Protocol.java:1002)
    at oracle.jdbc.dbaccess.DBAccess.executeFetchNeedDefines(DBAccess.java:283)
    at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2604)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2854)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:622)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:550)
    at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:627)
    at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:515)
    at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3347)
    at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:825)
    at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4465)
    at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574)
    at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544)
    at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619)
    at oracle.jbo.server.ViewObjectImpl.executeDetailQuery(ViewObjectImpl.java:3311)
    at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3298)
    at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:439)
    at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.createListDataObject(OAWebBeanPickListHelper.java:973)
    at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.getListDataObject(OAWebBeanPickListHelper.java:818)
    at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.getList(OAWebBeanPickListHelper.java:446)
    at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.getList(OAWebBeanPickListHelper.java:403)
    at oracle.apps.fnd.framework.webui.beans.message.OAMessageChoiceBean.getList(OAMessageChoiceBean.java:762)
    at oracle.apps.fnd.framework.webui.OADataBoundValuePickListData.getValue(OADataBoundValuePickListData.java:86)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.getAttributeValueImpl(OAWebBeanHelper.java:1760)
    at oracle.apps.fnd.framework.webui.beans.message.OAMessageChoiceBean.getAttributeValueImpl(OAMessageChoiceBean.java:369)
    at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
    at oracle.apps.fnd.framework.webui.OADataBoundValuePickListSelectionIndex.getValue(OADataBoundValuePickListSelectionIndex.java:61)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.getAttributeValueImpl(OAWebBeanHelper.java:1760)
    at oracle.apps.fnd.framework.webui.beans.message.OAMessageChoiceBean.getAttributeValueImpl(OAMessageChoiceBean.java:369)
    at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
    at oracle.cabo.ui.collection.UINodeAttributeMap.getAttribute(Unknown Source)
    at oracle.cabo.ui.collection.AttributeMapProxy.getAttribute(Unknown Source)
    at oracle.cabo.ui.BaseUINode.getAttributeValueImpl(Unknown Source)
    at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
    at oracle.cabo.ui.collection.UINodeAttributeMap.getAttribute(Unknown Source)
    at oracle.cabo.ui.BaseUINode.getAttributeValueImpl(Unknown Source)
    at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
    at oracle.cabo.ui.laf.base.BaseLafUtils.getLocalAttribute(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.getSelectedIndex(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.populateOptionInfo(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.createOptionInfo(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.prerender(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.ChoiceRenderer.prerender(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.FormElementRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderNamedChild(Unknown Source)
    at oracle.cabo.ui.laf.base.SwitcherRenderer._renderCase(Unknown Source)
    at oracle.cabo.ui.laf.base.SwitcherRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
    at oracle.cabo.ui.composite.UINodeRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.RowLayoutRenderer.renderChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.InlineMessageRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.composite.ContextPoppingUINode$ContextPoppingRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.laf.oracle.desktop.HeaderRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderIndexedChildren(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
    at oracle.cabo.ui.composite.UINodeRenderer.render(Unknown Source)
    at oracle.cabo.ui.laf.oracle.desktop.PageLayoutRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.BodyRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.apps.fnd.framework.webui.beans.OABodyBean.render(OABodyBean.java:398)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.renderContent(Unknown Source)
    at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.BaseUINode.render(Unknown Source)
    at oracle.cabo.ui.partial.PartialPageUtils.renderPartialPage(Unknown Source)
    at oracle.apps.fnd.framework.webui.OAPageBean.render(OAPageBean.java:3209)
    at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2888)
    at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2700)
    at OA.jspService(OA.jsp:48)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
    at java.lang.Thread.run(Thread.java:534)
    Mithun

    Mithun,
    Don't repost the issues. Follow the original on Re: Error in using Dynamic view object
    --Shiv                                                                                                                                                                                                                                                                                       

  • Error while creating parameterise view

    I m getting below error while creating parameterise view
    CREATE OR REPLACE VIEW rdr_le_info_view (v_run_number , v_isin_cob )
    AS
    SELECT l.strategic_le
    ,cun.ucn cunucn
    ,cun.date
    ,cccs.ucn ucn
    ,cccs.agr_num
    FROM strat_le l
    ,ucn_name cun
    ,customer_setup cccs
    WHERE l.gfa_until_dt = '31-dec-9999'
    AND l.glas_until_dt = '31-dec-9999'
    AND l.int_until_dt = '31-dec-9999'
    AND cccs.run_num = v_run_num
    AND cccs.ucn_lead_office = cun.ucn
    AND cun.OID = l.client_oid;
    AND cccs.run_num = v_run_num
    ERROR at line 13:
    ORA-00904: "V_RUN_NUM": invalid identifier
    Plese help me in above.

    Try
    CREATE OR REPLACE VIEW rdr_le_info_view
    AS
    SELECT l.strategic_le
    ,cun.ucn cunucn
    ,cun.date
    ,cccs.ucn ucn
    ,cccs.agr_num
    FROM strat_le l
    ,ucn_name cun
    ,customer_setup cccs
    ,cccs.run_num run_num
    WHERE l.gfa_until_dt = '31-dec-9999'
    AND l.glas_until_dt = '31-dec-9999'
    AND l.int_until_dt = '31-dec-9999'
    AND cccs.ucn_lead_office = cun.ucn
    AND cun.OID = l.client_oid;Then call it like:
    select *
    from rdr_le_info_view
    where run_num = v_run_num;

  • How to create dynamic view in hr report category

    i want to make company code mandetory in in selection screen given by logical data base PNP here i want to make field mandetory. so how to create dynamic view in hr report category.
    thanks in advance

    solved by self

  • How to create dynamic View Object and Dynamic Table

    Dear ll
    I want to create a dynamic view object and display the output in a dynamic table on the page.
    I am using Jdeveloper 12c "Studio Edition Version 12.1.2.0.0"
    This what I did:
    1- I created a read only view object with this query "Select sysdate from dual"
    2- I added this View object to the application module
    3- I created a new method that change the query of this View object at runtime
        public void changeVoQuery(String dbViewName) {
            String sqlstm = "Select * From " + dbViewName;
            ViewObject dynamicVo = this.findViewObject("DynamicVo");
            if (dynamicVo != null) {
                dynamicVo.remove();
            dynamicVo = this.createViewObjectFromQueryStmt("DynamicVo", sqlstm);
            dynamicVo.executeQuery();
    4- I run the application module for testing the method and I passed "Scott.Emp" as a parameter and the result was Success
    5- Now I want to show the result of the view on the page, so I draged and dropped the method from the data control as a parameter form
    6- I dragged and dropped the view Object "DynamicVo" as a table and I choose "generate Column Dynamically at runtime". This is the page source
    <af:panelHeader text="#{viewcontrollerBundle.SELECT_DOCUMTN_TYPE}" id="ph1">
            <af:panelFormLayout id="pfl1">
                <af:inputText value="#{bindings.dbViewName.inputValue}" label="#{bindings.dbViewName.hints.label}"
                              required="#{bindings.dbViewName.hints.mandatory}"
                              columns="#{bindings.dbViewName.hints.displayWidth}"
                              maximumLength="#{bindings.dbViewName.hints.precision}"
                              shortDesc="#{bindings.dbViewName.hints.tooltip}" id="it1">
                    <f:validator binding="#{bindings.dbViewName.validator}"/>
                </af:inputText>
                <af:button actionListener="#{bindings.changeVoQuery.execute}" text="changeVoQuery"
                           disabled="#{!bindings.changeVoQuery.enabled}" id="b1"/>
            </af:panelFormLayout>
        </af:panelHeader>
        <af:table value="#{bindings.DynamicVo.collectionModel}" var="row" rows="#{bindings.DynamicVo.rangeSize}"
                  emptyText="#{bindings.DynamicVo.viewable ? 'No data to display.' : 'Access Denied.'}"
                  rowBandingInterval="0" selectedRowKeys="#{bindings.DynamicVo.collectionModel.selectedRow}"
                  selectionListener="#{bindings.DynamicVo.collectionModel.makeCurrent}" rowSelection="single"
                  fetchSize="#{bindings.DynamicVo.rangeSize}" filterModel="#{bindings.DynamicVoQuery.queryDescriptor}"
                  queryListener="#{bindings.DynamicVoQuery.processQuery}" filterVisible="true" varStatus="vs" id="t1"
                  partialTriggers="::b1">
            <af:iterator id="i1" value="#{bindings.DynamicVo.attributesModel.attributes}" var="column">
                <af:column headerText="#{column.label}" sortProperty="#{column.name}" sortable="true" filterable="true"
                           id="c1">
                    <af:dynamicComponent id="d1" attributeModel="#{column}"
                                         value="#{row.bindings[column.name].inputValue}"/>
                </af:column>
            </af:iterator>
        </af:table>
    when I run the page this error is occured
    <Nov 13, 2013 2:51:58 PM AST> <Error> <oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter> <BEA-000000> <ADF_FACES-60096:Server Exception during PPR, #1
    javax.el.ELException: java.lang.NullPointerException
    Caused By: java.lang.NullPointerException
    Can any body help me please
    thanks

    Have you seen Shay's video https://blogs.oracle.com/shay/entry/adf_faces_dynamic_tags_-_for_a
    All you have to do is to use the dynamic table to get your result.
    Timo

  • Create Dynamic Views

    Hi,
    I've a procedure that compiles correctly but give errors when executing in a Oracle 10g environment.
    CREATE OR REPLACE PROCEDURE gen_wasc(sch_id NUMBER,fis_yr NUMBER)
    Authid current_user
    IS
    BEGIN
         EXECUTE IMMEDIATE
        'CREATE OR REPLACE VIEW ' || 'WASC_SCH' || sch_id || 'L_STU_' || fis_yr ||
        'AS
         SELECT     sd.stuid,sd.name_first,sd.name_last,se.sess,se.sch_id,se.status_cd,sd.dist_entry_dt,
         se.entry_dt,sd.dist_exit_dt,se.exit_dt,se.fiscal_yr,se.grd_lvl
         FROM STUDENTS sd, ENROLLMENT se
         WHERE se.stu_id = sd.stu_id
         AND se.fiscal_yr= ' || fis_yr ||
        'AND se.sch_id = ' || sch_id ||
        'AND se.sess =2';
    END;
    BEGIN
    gen_wasc (2,2004);
    END;
    The error is:
    ORA-00905: missing keyword
    ORA-06512 at, line 6
    ORA-06512: at line 2
    00905.0000 - "missing keyword"I'm not sure what the error is. Could someone give me a hand with this.
    Thanks

    > I've to pass in different school id and fiscal year to generate a report. The intent of the
    dynamic view is to hand the script to the DBA to install on production server so I can just
    call the procedure without handing him a different set views each time for the different
    school id and fiscal year.
    /me sobbing uncontrollably
    (that is what I would do if I was your DBA - either that or pull out my lead pipe and take a good swipe at this
    <insert dirty words here> approach)
    Question. Do you know what SQL is? Do you what the purpose of SQL is? Do you realise that SQLs are programs that
    contains instructions on how to process/manipulate/fetch data? And that like all programs, support variables? And
    that is is truly silly to create a thousand and one copies of the very same program to fetch a data where the only
    difference in the program is the values?

  • Error: while creating a view - Help needed

    When i am trying to create the view i am getting the error msg as:
    ==>ORA-02070: database does not support operator NLS_CHARSET_DECL_LEN in this context<==
    Please advise in this regard to overcome this issue.
    the view is nothing but
    ================
    create or replace view f_test as
    WITH metadata1 as
    (SELECT DISTINCT * FROM
    (SELECT fre_id, bu_id, eff_from_dt, rec_eff_from_dt,
    rec_eff_to_dt, rec_type, eff_to_dt,
    active_flg, nm_long, nm_short,
    rplcmnt_bu_id, pc_cc_cd, tax_cd, bu_type_cd,
    ledger_cd, internal_id, create_dt,
    last_upd_dt, last_upd_id,
    DENSE_RANK () OVER (PARTITION BY fre_id, bu_id, eff_from_dt
    ORDER BY fre_id, bu_id, eff_from_dt, rec_eff_from_dt) RANK
    FROM AUD_TEST)
    aud1 AS
    (SELECT column_name,
    DECODE (column_id,
    7, TO_CHAR (eff_to_dt, 'MMDDRRRR'),
    8, active_flg,
    9, nm_long,
    10, nm_short,
    11, rplcmnt_bu_id,
    12, pc_cc_cd,
    13, tax_cd,
    14, bu_type_cd,
    15, ledger_cd) col_val_new,
    '' col_val_old, fre_id, bu_id, eff_from_dt, rec_eff_from_dt, rec_type, rank
    FROM metadata1, all_tab_columns u
    WHERE table_name = 'AUD_TEST'
    AND column_name IN
    ('EFF_TO_DT',
    'ACTIVE_FLG',
    'NM_LONG',
    'NM_SHORT',
    'RPLCMNT_BU_ID',
    'PC_CC_CD',
    'TAX_CD',
    'BU_TYPE_CD',
    'LEDGER_CD'
    AND rank = '1')      ,
    aud2 AS
    (SELECT column_name,
    DECODE (column_id,
    7, TO_CHAR (eff_to_dt, 'MMDDRRRR'),
    8, active_flg,
    9, nm_long,
    10, nm_short,
    11, rplcmnt_bu_id,
    12, pc_cc_cd,
    13, tax_cd,
    14, bu_type_cd,
    15, ledger_cd) col_val_new,
    '' col_val_old, fre_id, bu_id, eff_from_dt, rec_eff_from_dt, rec_type, rank
    FROM metadata1 m, all_tab_columns u
    WHERE table_name = 'AUD_TEST'
    AND column_name IN
    ('EFF_TO_DT',
    'ACTIVE_FLG',
    'NM_LONG',
    'NM_SHORT',
    'RPLCMNT_BU_ID',
    'PC_CC_CD',
    'TAX_CD',
    'BU_TYPE_CD',
    'LEDGER_CD')
    AND rank = '2'),
    aud3 AS
    (SELECT column_name,
    DECODE (column_id,
    7, TO_CHAR (eff_to_dt, 'MMDDRRRR'),
    8, active_flg,
    9, nm_long,
    10, nm_short,
    11, rplcmnt_bu_id,
    12, pc_cc_cd,
    13, tax_cd,
    14, bu_type_cd,
    15, ledger_cd) col_val_new,
    '' col_val_old, fre_id, bu_id, eff_from_dt, rec_eff_from_dt, rec_type, rank
    FROM metadata1 m, all_tab_columns u
    WHERE table_name = 'AUD_TEST'
    AND column_name IN
    ('EFF_TO_DT',
    'ACTIVE_FLG',
    'NM_LONG',
    'NM_SHORT',
    'RPLCMNT_BU_ID',
    'PC_CC_CD',
    'TAX_CD',
    'BU_TYPE_CD',
    'LEDGER_CD')
    AND rank = '3'),
    aud4 AS
    (SELECT column_name,
    DECODE (column_id,
    7, TO_CHAR (eff_to_dt, 'MMDDRRRR'),
    8, active_flg,
    9, nm_long,
    10, nm_short,
    11, rplcmnt_bu_id,
    12, pc_cc_cd,
    13, tax_cd,
    14, bu_type_cd,
    15, ledger_cd) col_val_new,
    '' col_val_old, fre_id, bu_id, eff_from_dt, rec_eff_from_dt, rec_type, rank
    FROM metadata1 m, all_tab_columns u
    WHERE table_name = 'AUD_TEST'
    AND column_name IN
    ('EFF_TO_DT',
    'ACTIVE_FLG',
    'NM_LONG',
    'NM_SHORT',
    'RPLCMNT_BU_ID',
    'PC_CC_CD',
    'TAX_CD',
    'BU_TYPE_CD',
    'LEDGER_CD')
    AND rank = '4'),
    aud5 AS
    (SELECT column_name,
    DECODE (column_id,
    7, TO_CHAR (eff_to_dt, 'MMDDRRRR'),
    8, active_flg,
    9, nm_long,
    10, nm_short,
    11, rplcmnt_bu_id,
    12, pc_cc_cd,
    13, tax_cd,
    14, bu_type_cd,
    15, ledger_cd) col_val_new,
    '' col_val_old, fre_id, bu_id, eff_from_dt, rec_eff_from_dt, rec_type, rank
    FROM metadata1 m, all_tab_columns u
    WHERE table_name = 'AUD_TEST'
    AND column_name IN
    ('EFF_TO_DT',
    'ACTIVE_FLG',
    'NM_LONG',
    'NM_SHORT',
    'RPLCMNT_BU_ID',
    'PC_CC_CD',
    'TAX_CD',
    'BU_TYPE_CD',
    'LEDGER_CD')
    AND rank = '5'),
    aud6 AS
    (SELECT column_name,
    DECODE (column_id,
    7, TO_CHAR (eff_to_dt, 'MMDDRRRR'),
    8, active_flg,
    9, nm_long,
    10, nm_short,
    11, rplcmnt_bu_id,
    12, pc_cc_cd,
    13, tax_cd,
    14, bu_type_cd,
    15, ledger_cd) col_val_new,
    '' col_val_old, fre_id, bu_id, eff_from_dt, rec_eff_from_dt, rec_type, rank
    FROM metadata1 m, all_tab_columns u
    WHERE table_name = 'AUD_TEST'
    AND column_name IN
    ('EFF_TO_DT',
    'ACTIVE_FLG',
    'NM_LONG',
    'NM_SHORT',
    'RPLCMNT_BU_ID',
    'PC_CC_CD',
    'TAX_CD',
    'BU_TYPE_CD',
    'LEDGER_CD')
    AND rank = '6'),
    aud7 AS
    (SELECT column_name,
    DECODE (column_id,
    7, TO_CHAR (eff_to_dt, 'MMDDRRRR'),
    8, active_flg,
    9, nm_long,
    10, nm_short,
    11, rplcmnt_bu_id,
    12, pc_cc_cd,
    13, tax_cd,
    14, bu_type_cd,
    15, ledger_cd) col_val_new,
    '' col_val_old, fre_id, bu_id, eff_from_dt, rec_eff_from_dt, rec_type, rank
    FROM metadata1 m, all_tab_columns u
    WHERE table_name = 'AUD_TEST'
    AND column_name IN
    ('EFF_TO_DT',
    'ACTIVE_FLG',
    'NM_LONG',
    'NM_SHORT',
    'RPLCMNT_BU_ID',
    'PC_CC_CD',
    'TAX_CD',
    'BU_TYPE_CD',
    'LEDGER_CD')
    AND rank = '7'),
    aud8 AS
    (SELECT column_name,
    DECODE (column_id,
    7, TO_CHAR (eff_to_dt, 'MMDDRRRR'),
    8, active_flg,
    9, nm_long,
    10, nm_short,
    11, rplcmnt_bu_id,
    12, pc_cc_cd,
    13, tax_cd,
    14, bu_type_cd,
    15, ledger_cd) col_val_new,
    '' col_val_old, fre_id, bu_id, eff_from_dt, rec_eff_from_dt, rec_type, rank
    FROM metadata1 m, all_tab_columns u
    WHERE table_name = 'AUD_TEST'
    AND column_name IN
    ('EFF_TO_DT',
    'ACTIVE_FLG',
    'NM_LONG',
    'NM_SHORT',
    'RPLCMNT_BU_ID',
    'PC_CC_CD',
    'TAX_CD',
    'BU_TYPE_CD',
    'LEDGER_CD')
    AND rank = '8'),
    aud9 AS
    (SELECT column_name,
    DECODE (column_id,
    7, TO_CHAR (eff_to_dt, 'MMDDRRRR'),
    8, active_flg,
    9, nm_long,
    10, nm_short,
    11, rplcmnt_bu_id,
    12, pc_cc_cd,
    13, tax_cd,
    14, bu_type_cd,
    15, ledger_cd) col_val_new,
    '' col_val_old, fre_id, bu_id, eff_from_dt, rec_eff_from_dt, rec_type, rank
    FROM metadata1 m, all_tab_columns u
    WHERE table_name = 'AUD_TEST'
    AND column_name IN
    ('EFF_TO_DT',
    'ACTIVE_FLG',
    'NM_LONG',
    'NM_SHORT',
    'RPLCMNT_BU_ID',
    'PC_CC_CD',
    'TAX_CD',
    'BU_TYPE_CD',
    'LEDGER_CD')
    AND rank = '9'),
    aud10 AS
    (SELECT column_name,
    DECODE (column_id,
    7, TO_CHAR (eff_to_dt, 'MMDDRRRR'),
    8, active_flg,
    9, nm_long,
    10, nm_short,
    11, rplcmnt_bu_id,
    12, pc_cc_cd,
    13, tax_cd,
    14, bu_type_cd,
    15, ledger_cd) col_val_new,
    '' col_val_old, fre_id, bu_id, eff_from_dt, rec_eff_from_dt, rec_type, rank
    FROM metadata1 m, all_tab_columns u
    WHERE table_name = 'AUD_TEST'
    AND column_name IN
    ('EFF_TO_DT',
    'ACTIVE_FLG',
    'NM_LONG',
    'NM_SHORT',
    'RPLCMNT_BU_ID',
    'PC_CC_CD',
    'TAX_CD',
    'BU_TYPE_CD',
    'LEDGER_CD')
    AND rank = '10'),
    metadata2 as
    (select aud1.column_name,
    aud1.col_val_new,
    '' col_val_old,
    aud1.fre_id,
    aud1.bu_id,
    aud1.eff_from_dt,
    aud1.rec_eff_from_dt,
    aud1.rec_type,
    aud1.rank
    from aud1
    union all
    select aud2.column_name, DECODE(aud2.rec_type,'D','',aud2.col_val_new) col_val_new, aud1.col_val_new col_val_old, aud2.fre_id, aud2.bu_id,
    aud2.eff_from_dt, aud2.rec_eff_from_dt, aud2.rec_type, aud2.rank
    from aud1, aud2
    where (aud1.fre_id = aud2.fre_id and aud1.bu_id = aud2.bu_id and aud1.eff_from_dt = aud2.eff_from_dt
    and aud1.column_name = aud2.column_name
    and ( (aud2.rec_type = 'C' and nvl(aud1.col_val_new,'^') <> nvl(aud2.col_val_new,'~') ) or
    (aud2.rec_type <> 'C' or (nvl(aud1.col_val_new,'^') <> nvl(aud2.col_val_new,'~'))))
    union all
    select aud3.column_name, DECODE(aud3.rec_type,'D','',aud3.col_val_new) col_val_new, aud2.col_val_new col_val_old, aud3.fre_id, aud3.bu_id,
    aud3.eff_from_dt, aud3.rec_eff_from_dt, aud3.rec_type, aud3.rank
    from aud2, aud3
    where (aud2.fre_id = aud3.fre_id and aud2.bu_id = aud3.bu_id and aud2.eff_from_dt = aud3.eff_from_dt
    and aud2.column_name = aud3.column_name
    and ( (aud3.rec_type = 'C' and nvl(aud2.col_val_new,'^') <> nvl(aud3.col_val_new,'~') ) or
    (aud3.rec_type <> 'C' or (nvl(aud2.col_val_new,'^') <> nvl(aud3.col_val_new,'~'))))
    union all
    select aud4.column_name, DECODE(aud4.rec_type,'D','',aud4.col_val_new) col_val_new, aud3.col_val_new col_val_old, aud4.fre_id, aud4.bu_id,
    aud4.eff_from_dt, aud4.rec_eff_from_dt, aud4.rec_type, aud4.rank
    from aud3, aud4
    where (aud3.fre_id = aud4.fre_id and aud3.bu_id = aud4.bu_id and aud3.eff_from_dt = aud4.eff_from_dt
    and aud3.column_name = aud4.column_name
    and ( (aud4.rec_type = 'C' and nvl(aud3.col_val_new,'^') <> nvl(aud4.col_val_new,'~') ) or
    (aud4.rec_type <> 'C' or (nvl(aud3.col_val_new,'^') <> nvl(aud4.col_val_new,'~'))))
    union all
    select aud5.column_name, DECODE(aud5.rec_type,'D','',aud5.col_val_new) col_val_new, aud4.col_val_new col_val_old, aud5.fre_id, aud5.bu_id,
    aud5.eff_from_dt, aud5.rec_eff_from_dt, aud5.rec_type, aud5.rank
    from aud4, aud5
    where (aud4.fre_id = aud5.fre_id and aud4.bu_id = aud5.bu_id and aud4.eff_from_dt = aud5.eff_from_dt
    and aud4.column_name = aud5.column_name
    and ( (aud5.rec_type = 'C' and nvl(aud4.col_val_new,'^') <> nvl(aud5.col_val_new,'~') ) or
    (aud5.rec_type <> 'C' or (nvl(aud4.col_val_new,'^') <> nvl(aud5.col_val_new,'~'))))
    union all
    select aud6.column_name, DECODE(aud6.rec_type,'D','',aud6.col_val_new) col_val_new, aud5.col_val_new col_val_old, aud6.fre_id, aud6.bu_id,
    aud6.eff_from_dt, aud6.rec_eff_from_dt, aud6.rec_type, aud6.rank
    from aud5, aud6
    where (aud5.fre_id = aud6.fre_id and aud5.bu_id = aud6.bu_id and aud5.eff_from_dt = aud6.eff_from_dt
    and aud5.column_name = aud6.column_name
    and ( (aud6.rec_type = 'C' and nvl(aud5.col_val_new,'^') <> nvl(aud6.col_val_new,'~') ) or
    (aud6.rec_type <> 'C' or (nvl(aud5.col_val_new,'^') <> nvl(aud6.col_val_new,'~'))))
    union all
    select aud7.column_name, DECODE(aud7.rec_type,'D','',aud7.col_val_new) col_val_new, aud6.col_val_new col_val_old, aud7.fre_id, aud7.bu_id,
    aud7.eff_from_dt, aud7.rec_eff_from_dt, aud7.rec_type, aud7.rank
    from aud6, aud7
    where (aud6.fre_id = aud7.fre_id and aud6.bu_id = aud7.bu_id and aud6.eff_from_dt = aud7.eff_from_dt
    and aud6.column_name = aud7.column_name
    and ( (aud7.rec_type = 'C' and nvl(aud6.col_val_new,'^') <> nvl(aud7.col_val_new,'~') ) or
    (aud7.rec_type <> 'C' or (nvl(aud6.col_val_new,'^') <> nvl(aud7.col_val_new,'~'))))
    union all
    select aud8.column_name, DECODE(aud8.rec_type,'D','',aud8.col_val_new) col_val_new, aud7.col_val_new col_val_old, aud8.fre_id, aud8.bu_id,
    aud8.eff_from_dt, aud8.rec_eff_from_dt, aud8.rec_type, aud8.rank
    from aud7, aud8
    where (aud7.fre_id = aud8.fre_id and aud7.bu_id = aud8.bu_id and aud7.eff_from_dt = aud8.eff_from_dt
    and aud7.column_name = aud8.column_name
    and ( (aud8.rec_type = 'C' and nvl(aud7.col_val_new,'^') <> nvl(aud8.col_val_new,'~') ) or
    (aud8.rec_type <>'C' or (nvl(aud7.col_val_new,'^') <> nvl(aud8.col_val_new,'~'))))
    union all
    select aud9.column_name, DECODE(aud9.rec_type,'D','',aud9.col_val_new) col_val_new, aud8.col_val_new col_val_old, aud9.fre_id, aud9.bu_id,
    aud9.eff_from_dt, aud9.rec_eff_from_dt, aud9.rec_type, aud9.rank
    from aud8, aud9
    where (aud8.fre_id = aud9.fre_id and aud8.bu_id = aud9.bu_id and aud8.eff_from_dt = aud9.eff_from_dt
    and aud8.column_name = aud9.column_name
    and ( (aud9.rec_type = 'C' and nvl(aud8.col_val_new,'^') <> nvl(aud9.col_val_new,'~') ) or
    (aud9.rec_type <> 'C' or (nvl(aud8.col_val_new,'^') <> nvl(aud9.col_val_new,'~'))))
    union all
    select aud10.column_name, DECODE(aud10.rec_type,'D','',aud10.col_val_new) col_val_new, aud9.col_val_new col_val_old, aud10.fre_id, aud10.bu_id,
    aud10.eff_from_dt, aud10.rec_eff_from_dt, aud10.rec_type, aud10.rank
    from aud9, aud10
    where (aud9.fre_id = aud10.fre_id and aud9.bu_id = aud10.bu_id and aud9.eff_from_dt = aud10.eff_from_dt
    and aud9.column_name = aud10.column_name
    and ((aud10.rec_type = 'C' and nvl(aud9.col_val_new,'^') <> nvl(aud10.col_val_new,'~') )
    or (aud10.rec_type <> 'C' or (nvl(aud9.col_val_new,'^') <> nvl(aud10.col_val_new,'~'))))
    select * from metadata2
    where (rec_type = 'C' and (col_val_new is not null or col_val_old is not null))
    or (rec_type <> 'C');

    create or replace view frd_bu_test as
    WITH metadata1 as
    (SELECT DISTINCT * FROM
    (SELECT fre_id, bu_id, eff_from_dt, rec_eff_from_dt,
    rec_eff_to_dt, rec_type, eff_to_dt,
    active_flg, nm_long, nm_short,
    rplcmnt_bu_id, pc_cc_cd, tax_cd, bu_type_cd,
    ledger_cd, internal_id, create_dt,
    last_upd_dt, last_upd_id,
    DENSE_RANK () OVER (PARTITION BY fre_id, bu_id, eff_from_dt
    ORDER BY fre_id, bu_id, eff_from_dt, rec_eff_from_dt) RANK
    FROM AUD_TEST)
    aud1 AS
    (SELECT column_name,
    DECODE (column_id,
    7, TO_CHAR (eff_to_dt, 'MMDDRRRR'),
    8, active_flg,
    9, nm_long,
    10, nm_short,
    11, rplcmnt_bu_id,
    12, pc_cc_cd,
    13, tax_cd,
    14, bu_type_cd,
    15, ledger_cd) col_val_new,
    '' col_val_old, fre_id, bu_id, eff_from_dt, rec_eff_from_dt, rec_type, rank
    FROM metadata1, all_tab_columns u
    WHERE table_name = 'AUD_TEST'
    AND column_name IN
    ('EFF_TO_DT',
    'ACTIVE_FLG',
    'NM_LONG',
    'NM_SHORT',
    'RPLCMNT_BU_ID',
    'PC_CC_CD',
    'TAX_CD',
    'BU_TYPE_CD',
    'LEDGER_CD'
    AND rank = '1')      ,
    aud2 AS
    (SELECT column_name,
    DECODE (column_id,
    7, TO_CHAR (eff_to_dt, 'MMDDRRRR'),
    8, active_flg,
    9, nm_long,
    10, nm_short,
    11, rplcmnt_bu_id,
    12, pc_cc_cd,
    13, tax_cd,
    14, bu_type_cd,
    15, ledger_cd) col_val_new,
    '' col_val_old, fre_id, bu_id, eff_from_dt, rec_eff_from_dt, rec_type, rank
    FROM metadata1 m, all_tab_columns u
    WHERE table_name = 'AUD_TEST'
    AND column_name IN
    ('EFF_TO_DT',
    'ACTIVE_FLG',
    'NM_LONG',
    'NM_SHORT',
    'RPLCMNT_BU_ID',
    'PC_CC_CD',
    'TAX_CD',
    'BU_TYPE_CD',
    'LEDGER_CD')
    AND rank = '2'),
    aud3 AS
    (SELECT column_name,
    DECODE (column_id,
    7, TO_CHAR (eff_to_dt, 'MMDDRRRR'),
    8, active_flg,
    9, nm_long,
    10, nm_short,
    11, rplcmnt_bu_id,
    12, pc_cc_cd,
    13, tax_cd,
    14, bu_type_cd,
    15, ledger_cd) col_val_new,
    '' col_val_old, fre_id, bu_id, eff_from_dt, rec_eff_from_dt, rec_type, rank
    FROM metadata1 m, all_tab_columns u
    WHERE table_name = 'AUD_TEST'
    AND column_name IN
    ('EFF_TO_DT',
    'ACTIVE_FLG',
    'NM_LONG',
    'NM_SHORT',
    'RPLCMNT_BU_ID',
    'PC_CC_CD',
    'TAX_CD',
    'BU_TYPE_CD',
    'LEDGER_CD')
    AND rank = '3'),
    aud4 AS
    (SELECT column_name,
    DECODE (column_id,
    7, TO_CHAR (eff_to_dt, 'MMDDRRRR'),
    8, active_flg,
    9, nm_long,
    10, nm_short,
    11, rplcmnt_bu_id,
    12, pc_cc_cd,
    13, tax_cd,
    14, bu_type_cd,
    15, ledger_cd) col_val_new,
    '' col_val_old, fre_id, bu_id, eff_from_dt, rec_eff_from_dt, rec_type, rank
    FROM metadata1 m, all_tab_columns u
    WHERE table_name = 'AUD_TEST'
    AND column_name IN
    ('EFF_TO_DT',
    'ACTIVE_FLG',
    'NM_LONG',
    'NM_SHORT',
    'RPLCMNT_BU_ID',
    'PC_CC_CD',
    'TAX_CD',
    'BU_TYPE_CD',
    'LEDGER_CD')
    AND rank = '4'),
    aud5 AS
    (SELECT column_name,
    DECODE (column_id,
    7, TO_CHAR (eff_to_dt, 'MMDDRRRR'),
    8, active_flg,
    9, nm_long,
    10, nm_short,
    11, rplcmnt_bu_id,
    12, pc_cc_cd,
    13, tax_cd,
    14, bu_type_cd,
    15, ledger_cd) col_val_new,
    '' col_val_old, fre_id, bu_id, eff_from_dt, rec_eff_from_dt, rec_type, rank
    FROM metadata1 m, all_tab_columns u
    WHERE table_name = 'AUD_TEST'
    AND column_name IN
    ('EFF_TO_DT',
    'ACTIVE_FLG',
    'NM_LONG',
    'NM_SHORT',
    'RPLCMNT_BU_ID',
    'PC_CC_CD',
    'TAX_CD',
    'BU_TYPE_CD',
    'LEDGER_CD')
    AND rank = '5'),
    aud6 AS
    (SELECT column_name,
    DECODE (column_id,
    7, TO_CHAR (eff_to_dt, 'MMDDRRRR'),
    8, active_flg,
    9, nm_long,
    10, nm_short,
    11, rplcmnt_bu_id,
    12, pc_cc_cd,
    13, tax_cd,
    14, bu_type_cd,
    15, ledger_cd) col_val_new,
    '' col_val_old, fre_id, bu_id, eff_from_dt, rec_eff_from_dt, rec_type, rank
    FROM metadata1 m, all_tab_columns u
    WHERE table_name = 'AUD_TEST'
    AND column_name IN
    ('EFF_TO_DT',
    'ACTIVE_FLG',
    'NM_LONG',
    'NM_SHORT',
    'RPLCMNT_BU_ID',
    'PC_CC_CD',
    'TAX_CD',
    'BU_TYPE_CD',
    'LEDGER_CD')
    AND rank = '6'),
    aud7 AS
    (SELECT column_name,
    DECODE (column_id,
    7, TO_CHAR (eff_to_dt, 'MMDDRRRR'),
    8, active_flg,
    9, nm_long,
    10, nm_short,
    11, rplcmnt_bu_id,
    12, pc_cc_cd,
    13, tax_cd,
    14, bu_type_cd,
    15, ledger_cd) col_val_new,
    '' col_val_old, fre_id, bu_id, eff_from_dt, rec_eff_from_dt, rec_type, rank
    FROM metadata1 m, all_tab_columns u
    WHERE table_name = 'AUD_TEST'
    AND column_name IN
    ('EFF_TO_DT',
    'ACTIVE_FLG',
    'NM_LONG',
    'NM_SHORT',
    'RPLCMNT_BU_ID',
    'PC_CC_CD',
    'TAX_CD',
    'BU_TYPE_CD',
    'LEDGER_CD')
    AND rank = '7'),
    aud8 AS
    (SELECT column_name,
    DECODE (column_id,
    7, TO_CHAR (eff_to_dt, 'MMDDRRRR'),
    8, active_flg,
    9, nm_long,
    10, nm_short,
    11, rplcmnt_bu_id,
    12, pc_cc_cd,
    13, tax_cd,
    14, bu_type_cd,
    15, ledger_cd) col_val_new,
    '' col_val_old, fre_id, bu_id, eff_from_dt, rec_eff_from_dt, rec_type, rank
    FROM metadata1 m, all_tab_columns u
    WHERE table_name = 'AUD_TEST'
    AND column_name IN
    ('EFF_TO_DT',
    'ACTIVE_FLG',
    'NM_LONG',
    'NM_SHORT',
    'RPLCMNT_BU_ID',
    'PC_CC_CD',
    'TAX_CD',
    'BU_TYPE_CD',
    'LEDGER_CD')
    AND rank = '8'),
    aud9 AS
    (SELECT column_name,
    DECODE (column_id,
    7, TO_CHAR (eff_to_dt, 'MMDDRRRR'),
    8, active_flg,
    9, nm_long,
    10, nm_short,
    11, rplcmnt_bu_id,
    12, pc_cc_cd,
    13, tax_cd,
    14, bu_type_cd,
    15, ledger_cd) col_val_new,
    '' col_val_old, fre_id, bu_id, eff_from_dt, rec_eff_from_dt, rec_type, rank
    FROM metadata1 m, all_tab_columns u
    WHERE table_name = 'AUD_TEST'
    AND column_name IN
    ('EFF_TO_DT',
    'ACTIVE_FLG',
    'NM_LONG',
    'NM_SHORT',
    'RPLCMNT_BU_ID',
    'PC_CC_CD',
    'TAX_CD',
    'BU_TYPE_CD',
    'LEDGER_CD')
    AND rank = '9'),
    aud10 AS
    (SELECT column_name,
    DECODE (column_id,
    7, TO_CHAR (eff_to_dt, 'MMDDRRRR'),
    8, active_flg,
    9, nm_long,
    10, nm_short,
    11, rplcmnt_bu_id,
    12, pc_cc_cd,
    13, tax_cd,
    14, bu_type_cd,
    15, ledger_cd) col_val_new,
    '' col_val_old, fre_id, bu_id, eff_from_dt, rec_eff_from_dt, rec_type, rank
    FROM metadata1 m, all_tab_columns u
    WHERE table_name = 'AUD_TEST'
    AND column_name IN
    ('EFF_TO_DT',
    'ACTIVE_FLG',
    'NM_LONG',
    'NM_SHORT',
    'RPLCMNT_BU_ID',
    'PC_CC_CD',
    'TAX_CD',
    'BU_TYPE_CD',
    'LEDGER_CD')
    AND rank = '10'),
    metadata2 as
    (select aud1.column_name,
    aud1.col_val_new,
    '' col_val_old,
    aud1.fre_id,
    aud1.bu_id,
    aud1.eff_from_dt,
    aud1.rec_eff_from_dt,
    aud1.rec_type,
    aud1.rank
    from aud1
    union all
    select aud2.column_name, DECODE(aud2.rec_type,'D','',aud2.col_val_new) col_val_new, aud1.col_val_new col_val_old, aud2.fre_id, aud2.bu_id,
    aud2.eff_from_dt, aud2.rec_eff_from_dt, aud2.rec_type, aud2.rank
    from aud1, aud2
    where (aud1.fre_id = aud2.fre_id and aud1.bu_id = aud2.bu_id and aud1.eff_from_dt = aud2.eff_from_dt
    and aud1.column_name = aud2.column_name
    and ( (aud2.rec_type = 'C' and nvl(aud1.col_val_new,'^') <> nvl(aud2.col_val_new,'~') ) or
    (aud2.rec_type <> 'C' or (nvl(aud1.col_val_new,'^') <> nvl(aud2.col_val_new,'~'))))
    union all
    select aud3.column_name, DECODE(aud3.rec_type,'D','',aud3.col_val_new) col_val_new, aud2.col_val_new col_val_old, aud3.fre_id, aud3.bu_id,
    aud3.eff_from_dt, aud3.rec_eff_from_dt, aud3.rec_type, aud3.rank
    from aud2, aud3
    where (aud2.fre_id = aud3.fre_id and aud2.bu_id = aud3.bu_id and aud2.eff_from_dt = aud3.eff_from_dt
    and aud2.column_name = aud3.column_name
    and ( (aud3.rec_type = 'C' and nvl(aud2.col_val_new,'^') <> nvl(aud3.col_val_new,'~') ) or
    (aud3.rec_type <> 'C' or (nvl(aud2.col_val_new,'^') <> nvl(aud3.col_val_new,'~'))))
    union all
    select aud4.column_name, DECODE(aud4.rec_type,'D','',aud4.col_val_new) col_val_new, aud3.col_val_new col_val_old, aud4.fre_id, aud4.bu_id,
    aud4.eff_from_dt, aud4.rec_eff_from_dt, aud4.rec_type, aud4.rank
    from aud3, aud4
    where (aud3.fre_id = aud4.fre_id and aud3.bu_id = aud4.bu_id and aud3.eff_from_dt = aud4.eff_from_dt
    and aud3.column_name = aud4.column_name
    and ( (aud4.rec_type = 'C' and nvl(aud3.col_val_new,'^') <> nvl(aud4.col_val_new,'~') ) or
    (aud4.rec_type <> 'C' or (nvl(aud3.col_val_new,'^') <> nvl(aud4.col_val_new,'~'))))
    union all
    select aud5.column_name, DECODE(aud5.rec_type,'D','',aud5.col_val_new) col_val_new, aud4.col_val_new col_val_old, aud5.fre_id, aud5.bu_id,
    aud5.eff_from_dt, aud5.rec_eff_from_dt, aud5.rec_type, aud5.rank
    from aud4, aud5
    where (aud4.fre_id = aud5.fre_id and aud4.bu_id = aud5.bu_id and aud4.eff_from_dt = aud5.eff_from_dt
    and aud4.column_name = aud5.column_name
    and ( (aud5.rec_type = 'C' and nvl(aud4.col_val_new,'^') <> nvl(aud5.col_val_new,'~') ) or
    (aud5.rec_type <> 'C' or (nvl(aud4.col_val_new,'^') <> nvl(aud5.col_val_new,'~'))))
    union all
    select aud6.column_name, DECODE(aud6.rec_type,'D','',aud6.col_val_new) col_val_new, aud5.col_val_new col_val_old, aud6.fre_id, aud6.bu_id,
    aud6.eff_from_dt, aud6.rec_eff_from_dt, aud6.rec_type, aud6.rank
    from aud5, aud6
    where (aud5.fre_id = aud6.fre_id and aud5.bu_id = aud6.bu_id and aud5.eff_from_dt = aud6.eff_from_dt
    and aud5.column_name = aud6.column_name
    and ( (aud6.rec_type = 'C' and nvl(aud5.col_val_new,'^') <> nvl(aud6.col_val_new,'~') ) or
    (aud6.rec_type <> 'C' or (nvl(aud5.col_val_new,'^') <> nvl(aud6.col_val_new,'~'))))
    union all
    select aud7.column_name, DECODE(aud7.rec_type,'D','',aud7.col_val_new) col_val_new, aud6.col_val_new col_val_old, aud7.fre_id, aud7.bu_id,
    aud7.eff_from_dt, aud7.rec_eff_from_dt, aud7.rec_type, aud7.rank
    from aud6, aud7
    where (aud6.fre_id = aud7.fre_id and aud6.bu_id = aud7.bu_id and aud6.eff_from_dt = aud7.eff_from_dt
    and aud6.column_name = aud7.column_name
    and ( (aud7.rec_type = 'C' and nvl(aud6.col_val_new,'^') <> nvl(aud7.col_val_new,'~') ) or
    (aud7.rec_type <> 'C' or (nvl(aud6.col_val_new,'^') <> nvl(aud7.col_val_new,'~'))))
    union all
    select aud8.column_name, DECODE(aud8.rec_type,'D','',aud8.col_val_new) col_val_new, aud7.col_val_new col_val_old, aud8.fre_id, aud8.bu_id,
    aud8.eff_from_dt, aud8.rec_eff_from_dt, aud8.rec_type, aud8.rank
    from aud7, aud8
    where (aud7.fre_id = aud8.fre_id and aud7.bu_id = aud8.bu_id and aud7.eff_from_dt = aud8.eff_from_dt
    and aud7.column_name = aud8.column_name
    and ( (aud8.rec_type = 'C' and nvl(aud7.col_val_new,'^') <> nvl(aud8.col_val_new,'~') ) or
    (aud8.rec_type <>'C' or (nvl(aud7.col_val_new,'^') <> nvl(aud8.col_val_new,'~'))))
    union all
    select aud9.column_name, DECODE(aud9.rec_type,'D','',aud9.col_val_new) col_val_new, aud8.col_val_new col_val_old, aud9.fre_id, aud9.bu_id,
    aud9.eff_from_dt, aud9.rec_eff_from_dt, aud9.rec_type, aud9.rank
    from aud8, aud9
    where (aud8.fre_id = aud9.fre_id and aud8.bu_id = aud9.bu_id and aud8.eff_from_dt = aud9.eff_from_dt
    and aud8.column_name = aud9.column_name
    and ( (aud9.rec_type = 'C' and nvl(aud8.col_val_new,'^') <> nvl(aud9.col_val_new,'~') ) or
    (aud9.rec_type <> 'C' or (nvl(aud8.col_val_new,'^') <> nvl(aud9.col_val_new,'~'))))
    union all
    select aud10.column_name, DECODE(aud10.rec_type,'D','',aud10.col_val_new) col_val_new, aud9.col_val_new col_val_old, aud10.fre_id, aud10.bu_id,
    aud10.eff_from_dt, aud10.rec_eff_from_dt, aud10.rec_type, aud10.rank
    from aud9, aud10
    where (aud9.fre_id = aud10.fre_id and aud9.bu_id = aud10.bu_id and aud9.eff_from_dt = aud10.eff_from_dt
    and aud9.column_name = aud10.column_name
    and ((aud10.rec_type = 'C' and nvl(aud9.col_val_new,'^') <> nvl(aud10.col_val_new,'~') )
    or (aud10.rec_type <> 'C' or (nvl(aud9.col_val_new,'^') <> nvl(aud10.col_val_new,'~'))))
    select * from metadata2
    where (rec_type = 'C' and (col_val_new is not null or col_val_old is not null))
    or (rec_type <> 'C');

  • Error while creating a View Cluster

    Hello Gurus,
         I have created two maintenance views ZVIEW1 & ZVIEW2  with table maintenance generator.Know I am trying
         to create a view cluster using these views.
         I have Proceeded with the following steps to create the View Cluster:
         1. Tcode : SE54 --> GIven the name ZVIEWCLUSTER as View Cluster name & pressed ENTER.
         2. Filled the description of the View cluster.
         3.Selected the tab OBJECT STRUCTURE  and filled it with ZVIEW1 & ZVIEW2.
         4.Selected view ZVIEW1 and clicked on button "FIELD-DEPENDENCE" ,System throws a message
             "Field-dependence generated succesfully"
         5. Selected view ZVIEW2 and clicked on button "FIELD-DEPENDENCE" ,System throws an error message
             "No log generated".
          Am stuck up at point 5 in the above mentioned steps.
          Please guide me in coming out of this error message.
    Regards,
    Najam

    Hi Najam,
    I don't think you need to define field dependencies for both tables, you only define the relationship from the second table to the first.
    Double-click on the Field dependencies folder and check the link between the two tables is correctly defined, if so you don't need to generate the field dependency twice.
    Regards,
    Nick

  • Error while creating materialized view which using database link

    Helo!
    I'm getting error "ORA-00942: table or view does not exist" when I want to create materialized view.
    Details:
    1. On destination database I create a database link:
    CREATE DATABASE LINK SDATABASE
    CONNECT TO MYUSER
    IDENTIFIED BY MYUSERPASS
    USING 'ORCL';
    => Command "SELECT * FROM TABLE1@SDATABASE" returns data normally!
    2. On source database I create MATERIALIZED VIEW LOG:
    CREATE MATERIALIZED VIEW LOG
    ON TABLE1
    WITH PRIMARY KEY
    INCLUDING NEW VALUES;
    3. Now, when I want to create MATERIALIZED VIEW on destination database:
    CREATE MATERIALIZED VIEW TABLE1
    REFRESH FAST
    START WITH SYSDATE
    NEXT SYSDATE + 1/1440
    WITH PRIMARY KEY
    AS SELECT * FROM TABLE1@SDATABASE;
    ...I get error "ORA-00942: table or view does not exist"!
    How is that possible if command "SELECT * FROM TABLE1@SDATABASE" returns data normally?
    Thanks,
    Voranc

    And, I'm using Oracle 10g.
    Voranc

  • Error while creating a view

    Hi All,
    I am getting the below errors while creating view.
    ORA-03135:connection lost contact
    ORA-03134:not connected to ORACLE
    Please suggest. Thanks
    AJR

    check this link... even this can also be a reason
    Ravi Kumar

  • Error while creating a view and creating navigation link

    Hi,
    i created one view with one button and on click of button it has to navigate to DeleteOperationview.This is the exception i am getting while running.
    can u plz tell me where the problem might beee...
    com.sap.tc.webdynpro.services.exceptions.CreationFailedException: Cannot create view element implementation com.sap.tc.webdynpro.clientserver.uielib.standard.impl.Caption
    *     at com.sap.tc.webdynpro.progmodel.view.ViewElementFactory.createElement(ViewElementFactory.java:161)*
    *     at com.sap.tc.webdynpro.progmodel.view.View.createElement(View.java:177)*
    *     at com.utc.pwc.tasklistm.wdp.InternalDeleteOperation.wdCreateUITreeForGroup(InternalDeleteOperation.java:282)*
    *     at com.utc.pwc.tasklistm.wdp.InternalDeleteOperation.wdCreateUITree(InternalDeleteOperation.java:259)*
    *     at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.createUITree(DelegatingView.java:74)*
    *     at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:443)*
    *     at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)*
    *     at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:709)*
    *     at com.sap.tc.webdynpro.progmodel.view.ViewManager.bind(ViewManager.java:555*
    Regards
    Padma N

    Hi Padma,
    In Outline check the <b>id </b> property of the <b> Caption-Header </b> view elements from the properties window it seems some of the ids are duplicate it should be unique.
    Other wise delete the container elements and design the view layout once again.
    Re: dynpro table -dynamically change table header name
    Regards,
    Mithu

  • Error While Creating Materialized View

    Hello,
    I am getting error ORA-22818: subquery expressions not allowed here while creating materialized view. I am using Oracle9i Enterprise Edition Release 9.2.0.1.0. Below pasted is my SQL Script.
    Any help is highly appreciable.
    Thanks
    *********SQL************
    select distinct(id),NAME,(select count(GRADE) from employees where
    nationality like '%US%'and id=a.organization_id and grade=a.grade
    group by ID,GRADE) US,(select count(GRADE) from employees where
    nationality not like '%US%' and organization_id=a.organization_id and grade=a.grade
    group by ORGANIZATION_ID,GRADE) NON_US,grade from employees a
    where grade is not null
    group by GRADE,ID,name
    order by to_number(grade) desc

    Hi,
    This is a documented restriction on MVs. You cannot have a scalar express (i.e a select statement) in the select list.
    You can get round this by joining your select count(grade).. expression in as an inline view in your FROM clause. Or you can create a normal view without the scalar expression, create your MV as a select from this view, then re-define your view to contain the query you want.
    Hope that helps,
    Rod West

  • Error while creating a VIEW.Please GUIDE.

    Hi,
    I am getting the error
    FROM sdi S where S.sdi_num=35128
    Error: missing expression
    when I Try to create a VIEW AS defined below:
    Am I missing out anything please?
    Create or Replace VIEW sdiview
    AS
    SELECT sdi_num,
    vers_num,
    cursor(SELECT acnt
    FROM sdi_account A WHERE
    A.sdi_num = S.sdi_num) Account,
    FROM sdi S where S.sdi_num = 35128;

    Not sure the CURSOR expression works with Oracle 9.0.2 or not.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.4.0 - Production
    SQL> create or replace view emp_dept_vw
      2  as (select deptno, deptname, cursor(select empno from emp a
      3  where a.deptno = d.deptno) empno from dept d
      4  where d.deptno = 10);
    as (select deptno, deptname, cursor(select empno from emp a
    ERROR at line 2:
    ORA-22902: CURSOR expression not allowedWhat about 10g?
    Thanks
    BB

  • Error while creating Power View Report via BISM connection.

    I am able to create a PowerView Report using Microsoft BI Semantic Model connection without any problem. Everything works from home. But when I try to create Power View report using a BISM connection, I am running into errors. I've verified all permissions
    are all set correctly and SQL Browser service is running as well. Please see below error message. Greatly appreciate any pointers.
    Detailed error message
    Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: , Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Cannot create a connection to data source 'TemporaryDataSource'. ---> Microsoft.AnalysisServices.AdomdClient.AdomdConnectionException:
    A connection cannot be made to redirector. Ensure that 'SQL Browser' service is running. ---> System.Net.Sockets.SocketException: The requested name is valid, but no data of the requested type was found     at System.Net.Sockets.TcpClient..ctor(String
    hostname, Int32 port)     at Microsoft.AnalysisServices.AdomdClient.XmlaClient.GetTcpClient(ConnectionInfo connectionInfo)     --- End of inner exception stack trace ---     at Microsoft.AnalysisServices.AdomdClient.XmlaClient.GetTcpClient(ConnectionInfo
    connectionInfo)     at Microsoft.AnalysisServices.AdomdClient.XmlaClient.OpenTcpConnection(ConnectionInfo connectionInfo)     at Microsoft.AnalysisServices.AdomdClient.XmlaClient.OpenConnection(ConnectionInfo connectionInfo, Boolean&
    isSessionTokenNeeded)     at Microsoft.AnalysisServices.AdomdClient.XmlaClient.Connect(ConnectionInfo connectionInfo, Boolean beginSession)     at Microsoft.AnalysisServices.AdomdClient.XmlaClient.GetInstancePort(ConnectionInfo connectionInfo)
        at Microsoft.AnalysisServices.AdomdClient.XmlaClient.GetTcpClient(ConnectionInfo connectionInfo)     at Microsoft.AnalysisServices.AdomdClient.XmlaClient.OpenTcpConnection(ConnectionInfo connectionInfo)     at Microsoft.AnalysisServices.AdomdClient.XmlaClient.OpenConnection(ConnectionInfo
    connectionInfo, Boolean& isSessionTokenNeeded)     at Microsoft.AnalysisServices.AdomdClient.XmlaClient.Connect(ConnectionInfo connectionInfo, Boolean beginSession)     at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.XmlaClientProvider.Connect(Boolean
    toIXMLA)     at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.ConnectToXMLA(Boolean createSession, Boolean isHTTP)     at Microsoft.AnalysisServices.AdomdClient.AdomdConnection.Open()     at Microsoft.ReportingServices.DataExtensions.AdoMdConnectionBase.InternalOpen()
        at Microsoft.ReportingServices.Diagnostics.DataExtensionConnectionBase.OpenConnection(IProcessingDataSource dataSourceObj, DataSourceInfo dataSourceInfo, IDbConnection conn)     --- End of inner exception stack trace ---;

    So , have you actually came to a conclusion about the problem. I have a similar one in my environment.
    <detail><ErrorCode xmlns="http://www.microsoft.com/sql/reportingservices">rsCannotRetrieveModel</ErrorCode><HttpStatus
    xmlns="http://www.microsoft.com/sql/reportingservices">400</HttpStatus><Message xmlns="http://www.microsoft.com/sql/reportingservices">Erro
    ao carregar o modelo para o item ou a fonte de dados 'http://gasmignethml/BICenter/Galeria%20PowerPivot/BIGASMIG.bism'. Verifique se as informações de conexão estão corretas e se você tem permissões para acessar a fonte de dados.</Message><HelpLink
    xmlns="http://www.microsoft.com/sql/reportingservices">http://go.microsoft.com/fwlink/?LinkId=20476&amp;EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&amp;EvtID=rsCannotRetrieveModel&amp;ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&amp;ProdVer=11.0.5058.0</HelpLink><ProductName
    xmlns="http://www.microsoft.com/sql/reportingservices">Microsoft SQL Server Reporting Services</ProductName><ProductVersion xmlns="http://www.microsoft.com/sql/reportingservices">11.0.5058.0</ProductVersion><ProductLocaleId
    xmlns="http://www.microsoft.com/sql/reportingservices">127</ProductLocaleId><OperatingSystem xmlns="http://www.microsoft.com/sql/reportingservices">OsIndependent</OperatingSystem><CountryLocaleId
    xmlns="http://www.microsoft.com/sql/reportingservices">1033</CountryLocaleId><MoreInformation xmlns="http://www.microsoft.com/sql/reportingservices"><Source>ReportingServicesLibrary</Source><Message
    msrs:ErrorCode="rsCannotRetrieveModel" msrs:HelpLink="http://go.microsoft.com/fwlink/?LinkId=20476&amp;EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&amp;EvtID=rsCannotRetrieveModel&amp;ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&amp;ProdVer=11.0.5058.0"
    xmlns:msrs="http://www.microsoft.com/sql/reportingservices">Erro ao carregar o modelo para o item ou a fonte de dados 'http://gasmignethml/BICenter/Galeria%20PowerPivot/BIGASMIG.bism'.
    Verifique se as informações de conexão estão corretas e se você tem permissões para acessar a fonte de dados.</Message><MoreInformation><Source>Microsoft.ReportingServices.ProcessingCore</Source><Message msrs:ErrorCode="rsErrorOpeningConnection"
    msrs:HelpLink="http://go.microsoft.com/fwlink/?LinkId=20476&amp;EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&amp;EvtID=rsErrorOpeningConnection&amp;ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&amp;ProdVer=11.0.5058.0"
    xmlns:msrs="http://www.microsoft.com/sql/reportingservices">Não é possível criar uma conexão com a fonte de dados 'TemporaryDataSource'.</Message><MoreInformation><Source>Microsoft.AnalysisServices.AdomdClient</Source><Message>A
    connection cannot be made to redirector. Ensure that 'SQL Browser' service is running.</Message><MoreInformation><Source>System</Source><Message>The
    requested name is valid, but no data of the requested type was found</Message></MoreInformation></MoreInformation></MoreInformation></MoreInformation><Warnings xmlns="http://www.microsoft.com/sql/reportingservices"
    /></detail>
    Any help will be very welcome.
    Thanks in advance
    abcoura | osmanos.org

  • Syntax error while creating Calculation view script based

    Hi Folks,
    I'm creating Calc view based on script and drafted a simple code but I'm getting syntax error.
    Its just fetching few coloumns from two tables products and purchaseorderitem.
    /********* Begin Procedure Script ************/
    BEGIN
      var_out = select productid , category, nameid, currency, grossamount, quantity
      FROM sap.hana.democontent.epm.data.products AS P , sap.hana.democontent.epm.data.purchaseorderitem AS B
      where P.productid = B.productid;
    END /********* End Procedure Script ************/
    Could you pls take a look and let me know what wrong I'm doing?
    Error logs are:-
    sap.hana..package.project.folder.mytest.CALCSCRIPTVIEWInternal deployment of object failed;Repository: Encountered an error in repository runtime extension;Internal Error:Deploy Calculation View: SQL: sql syntax error: incorrect syntax near "democontent": line 5 col 18 (at pos 439)nSet Schema DDL statement: set schema "SYSTEM"nType DDL: create type "_SYS_BIC"."sap.hana..package.project.folder.mytest/CALCSCRIPTVIEW/proc/tabletype/VAR_OUT" as table ("PRODUCTID" NVARCHAR(10), "CATEGORY" NVARCHAR(2), "NAMEID" NVARCHAR(10), "CURRENCY" NVARCHAR(5), "GROSSAMOUNT" DECIMAL(15,2), "QUANITYT" DECIMAL(13,3))nProcedure DDL: create procedure "_SYS_BIC"."sap.hana.package.project.folder.mytest/CALCSCRIPTVIEW/proc" ( OUT var_out "_SYS_BIC"."sap.hana.package.project.folder.mytest/CALCSCRIPTVIEW/proc/tabletype/VAR_OUT" ) language sqlscript sql security definer reads sql data as n /********* Begin Procedure Script ************/ n BEGIN n t var_out = select productid , category, nameid, currency, grossamount, quantityn t FROM sap.hana.democontent.epm.data.products AS P , sap.hana.democontent.epm.data.purchaseorderitem AS Bn t where P.productid = B.productid;nnEND /********* End Procedure Script ************/n

    Hi Rubane,
    I don't have EPM installed here but based on this Table User Defined Functions( Table UDF ) in HANA  you are not properly defining the source table.
    In your case missing 1) schema of EPM, 2) not using double quotes, 3) separation of package and view, 4) missing camel case on purchaseOrderItem:
    FROM sap.hana.democontent.epm.data.products AS P , sap.hana.democontent.epm.data.purchaseorderitem AS B
    On blog:
    from "SAP_HANA_EPM_DEMO"."sap.hana.democontent.epm.data::businessPartner" as a
    SAP_HANA_EPM_DEMO is the schema
    sap.hana.democontent.epm.data is the package
    businessPartner is the view
    Start simple... before the seletion try it out on Studio SQL.
    Regards, Fernando Da Rós

Maybe you are looking for

  • IPhoto won't open because of problem 10.6.8

    Recently my iTunes and iPhoto stop opening on my Macbook Pro running 10.6.8 Every time I open either one, it crashes and i get this notification saying there's a problem. Any idea on how i can reinstall or fix the problem without the startup disc? He

  • How Do I Get Siri To Show Me The "Now Playing" Screen?

    When I'm driving, it's great to be able to push the home button and get Siri to play a playlist or all songs from an artist. But how do I get her to show me the Now Playing screen? When you say "show me the 'now playing' screen," (or just about anyth

  • SSRS 2008 DateTime picker to UNIX/EPOCH field

    Im trying to write a report that presents data based on a date range(selected by the person running the report) using SQL Server reporting. I build the start date and the end date as parameters and as a selectable date/Time data type and create a dat

  • Startup Class

    I'm trying to setup a startup class. I am having some difficulties. In the startup I put the following:           NAME: MYSTARTUPCLASS           CLASSNAME: .\config\mydomain\applications\myStartUp.class           I also have tried some other variatio

  • When installing clusterware, shared storage trouble

    I was trying to install clusterware. When I typed location of OCR, I got error below: Oracle Cluster Registry (OCR) is not shared across all the nodes in the cluster Then, I found I can not mount ocfs2 on both nodes at the same time. But I can mount