Issue authorizations of appeal procedure dynamically, from a different scheme,

Hello

I have a "master_user" scheme that you run the DDL on a scheme of 'secondary_user '.

There seems to be a kind of subtlety of permissions that I'm missing. Here are easy steps to create, test, and troubleshoot:

Secondary schema has a defined procedure:

-Run as a SYSTEM (at the time of construction)

CREATE OR REPLACE PROCEDURE secondary_user.execute_immediate (p_sql_statement IN VARCHAR2)

IS

BEGIN

EXECUTE IMMEDIATE p_sql_statement;

END;

GRANT EXECUTE ON secondary_user.execute_immediate TO master_user;

I then want to call this procedure of master_user executing DDL dynamically in secondary_user.

-Run as master_user

BEGIN

EXECUTE IMMEDIATE ' BEGIN secondary_user.execute_immediate ("DROP TABLE test1"); END;';

END;

/

ERROR on line 1:

ORA-00942: table or view does not exist

ORA-06512: AT SECONDARY_USER. EXECUTE_IMMEDIATE', line 5

ORA-06512: at line 1

ORA-06512: at line 2

RESOLUTION OF THE PROBLEMS SO FAR:

Now I can call this procedure directly:

- As master_user

Secondary_user.execute_immediate EXEC ('drop table test1')

PL/SQL procedure successfully completed.

I can call the procedure wrapped as different users:

- As secondary_user

BEGIN

EXECUTE IMMEDIATE ' BEGIN secondary_user.execute_immediate ("DROP TABLE test1"); END;';

END;

/

PL/SQL procedure successfully completed.

- Like SYSTEM

BEGIN

EXECUTE IMMEDIATE ' BEGIN secondary_user.execute_immediate ("DROP TABLE test1"); END;';

END;

/

PL/SQL procedure successfully completed.

Can you shed some light on this behavior? The master_user clearly has permission to execute the procedure, but he can't go in an anonymous block. But the SYSTEM can so what permission is SYSTEM who master_user does not work?

Much appreciated,

If

Oddly, the problem was that the secondary_user, who possessed the procedure, had not CREATE PROCEDURE private.

This means that the procedure cannot be called by another user in an anonymous block, but could still be called directly from sqlplus by these different users.

Looks like a 'characteristic' oracle to me!

Tags: Database

Similar Questions

  • dynamically the appeal procedure with OUTPUT in Forms_ddl parameter

    Hi guys,.


    DB procedure

    procedure (b, c number.);


    Need to call this procedure dynamically in the forms through

    form_ddl or any other characteristic.

    Need urgent help...


    Thanks in advance

    or call directly as said Silvere, or generate a wrapper to the procedure in the database and use EXECUTE IMMEDIATE in this procedure to call 'your' procedure dynamically.

  • Appeal procedure of stand-alone forms 6i

    Hello.

    I have the procedure proc_name in stand alone in the scheme of DB SCHEMA_1. In Forms6i I have form with button. In which key press triger I call this procedure by name PROC_NAME (parameters). When I connect aplication forms as owner of this procedure everithing works fine, but when I login as another user (not the owner) always throwing error as proc_name is not declared. When I call the procedure with the prefix of the scheme I can't compile in Forms 6i because of stupid mistakes.

    What I shoul do? Can I call this procedure or should I Pack to package?

    THX

    If you want to access an object to a different schema of users or you will need to prepend the name of schema, or you must create a synonym for it.

    Synonyms can be public or private to a user for all users.

    CREATE PUBLIC SYNONYM PROC_NAME FOR OWNER.PROC_NAME;
    
  • Create table form another table in different schema throwing error when dynamic sql

    Hello

    With the help of 11.2.0.3 and was following the issue.

    To create a table in a schema (b) using data from another schema (b)

    If independent run in sqlplus create works OK but same sql in dynamic sql block saying the table or view does not exist.

    SQL even in dynamic sql

    {code}

    v_sql: =' create table new_table in select * from schemab.table_name where...';

    run immediately (v_sql);

    [code}

    Other tables work fine.

    Any ideas - don't want to grant all the schemaa.table schema b if can avoid.

    Thank you

    You run the immediate execution in an anonymous block or a stored procedure?  If it is a stored procedure, then as others have said, the owner of the procedure must have select privileges on granted directly schemab.table_name.

    Another possibility, which would be the case for a stored procedure, or an anonymous block is that your code is something like:

    v_sql: =' create table new_table in select * from schemab.table_name where...';

    immediately run v_sql;

    Select count (*) in the l_count new_table;

    who will fail at compile time because new_table does not exist.

    When you create objects using dynamic sqly you dynamic sql user to reference them in the block of code.

    John

  • Dynamically connect to different groups

    Hello

    Is there a way to dynamically connect to different groups?

    I put in scene/QA/cache clusters and work on utility to handle all those of an admin tool. For example, is it possible to dynamically attach to the QA cluster, some operations, detach, then connect to the cluster scene later? If so, how to specify the configuration for the different clusters (for example xml files override consistency) programmatically?

    Thank you
    Harry

    Hi Harry,.

    There are at least two ways to achieve what you want.

    1. If at the same time, you want to connect to a single cluster, then you can stop the cluster with CacheFactory.shutdown () (be sure to release all references that hang to the caches and so on...) and change some Java properties programmatically (for example one pointing to the substitution file) and start consistency again as usual (by obtaining a cache or manually from the services, etc.).

    2. If you want to connect to multiple clusters at the same time, you have to load consistency several times for shippers of class independent parents (who is not the parent of one of the other ClassLoader). This requires thinking to start new threads with a custom class loader and the communication between these classes Chargers and the original code is somewhat restricted, but it can be done. I always wanted to do a page on this topic, seems a good time to do...

    Best regards

    Robert

  • What are the ways to access a remote database in a database completely different-schema - stored procedure?

    My source data in the remote database schema (say C3.case). And I am trying to insert data of this CASE table in my database table (for example SIMS.case) I use the stored procedure to load the data.

    I was going through the documentation and I thought that the creation of MV is not possible in this case is the source table in the remote database schema. Is this correct?

    or create a link DB is the only option available to access the remote database schema table.

    Thank you.

    Hello

    2929538 wrote:

    My apologies for the bad conventions help. I meant remote schema.

    the required data and the destination table, the two are in oracle, but in totally different schemas.

    Yes, you said a table is in a scheme called C3, and the other is in a schema called SIMS.  Are these schemas in the same database or in different databases?

    If they are in the same database, then you do not have a database link.  Or the other schema can reference tables in the other qualifying names correctly, for example

    SELECT *.

    OF C3. case_studies

    ...

    assuming that the right privileges have been granted.

    If the schemas are in different databases, a database link is the best way to access data in a database in a different database.

    Without a database link, you will probably use some kind of use outside the database to write the data to a database, the file if necessary, transport and read in other databases.  DataPump files of images or CSV files, as Paulzip said in answer to #1, could be used for this.

  • Display data from a different pattern 2 in oralce adf

    Hello

    I use jdev 11.1.1.6

    I have 2 s scheme.

    projects of two models each joint with different schema and a view controller project.

    I created two VO., one in each model project.

    Fragment I posted data from 2 VO using TF bounded homepage.

    When I do these data second VO is not coming and the following error is done.

    Configuration TestAppModuleLocal cannot be found.

    Error

    java.lang.NullPointerException

    Error

    java.lang.NullPointerException

    TestAppModuleLocal is the second Datacontrol.


    < RegionRenderer > < encodeAll > component in the region with the id: r1 has detected a page with several components of root fragment. More fragments of a root element may not display properly in a region and can have a negative impact on performance. It is recommended that you restructure the page fragment to have a single root element.

    < Utils > < buildFacesMessage > ADF: addition of the JSF error message: Configuration TestAppModuleLocal cannot be found.

    oracle.jbo.ConfigException: Houston-33005: Configuration TestAppModuleLocal cannot be found.

    at oracle.jbo.client.Configuration.getConfiguration(Configuration.java:618)

    at oracle.jbo.common.ampool.PoolMgr.loadConfiguration(PoolMgr.java:605)

    at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:526)

    at oracle.adf.model.bc4j.DCJboDataControl.findApplicationPool(DCJboDataControl.java:572)

    at oracle.adf.model.bc4j.DCJboDataControl.initializeSessionCookie(DCJboDataControl.java:396)

    at oracle.adf.model.bc4j.DCJboDataControl.initializeJboSession(DCJboDataControl.java:310)

    at oracle.adf.model.bc4j.DataControlFactoryImpl.createSessionInternal(DataControlFactoryImpl.java:220)

    at oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:130)

    at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:167)

    at oracle.adf.model.BindingContext.instantiateDataControl(BindingContext.java:1056)

    at oracle.adf.model.dcframe.DataControlFrameImpl.doFindDataControl(DataControlFrameImpl.java:1566)

    at oracle.adf.model.dcframe.DataControlFrameImpl.internalFindDataControl(DataControlFrameImpl.java:1438)

    at oracle.adf.model.dcframe.DataControlFrameImpl.findDataControl(DataControlFrameImpl.java:1398)

    at oracle.adf.model.BindingContext.internalFindDataControl(BindingContext.java:1189)

    at oracle.adf.model.BindingContext.get(BindingContext.java:1139)

    at oracle.adf.model.binding.DCParameter.evaluateValue(DCParameter.java:82)

    at oracle.adf.model.binding.DCParameter.getValue(DCParameter.java:111)

    at oracle.adf.model.binding.DCBindingContainer.getChildByName(DCBindingContainer.java:2713)

    at oracle.adf.model.binding.DCBindingContainer.internalGet(DCBindingContainer.java:2761)

    at oracle.adf.model.binding.DCExecutableBinding.get(DCExecutableBinding.java:115)

    at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:304)

    at oracle.adf.model.binding.DCBindingContainer.evaluateParameterWithElCheck(DCBindingContainer.java:1458)

    at oracle.adf.model.binding.DCBindingContainer.findDataControl(DCBindingContainer.java:1588)

    at oracle.adf.model.binding.DCIteratorBinding.initDataControl(DCIteratorBinding.java:2472)

    at oracle.adf.model.binding.DCIteratorBinding.getDataControl(DCIteratorBinding.java:2416)

    at oracle.adf.model.binding.DCIteratorBinding.getAttributeDefs(DCIteratorBinding.java:3201)

    at oracle.jbo.uicli.binding.JUCtrlValueBinding.fetchAttrDefs(JUCtrlValueBinding.java:510)

    at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeDefs(JUCtrlValueBinding.java:461)

    at oracle.jbo.uicli.binding.JUCtrlValueBinding.findAttributeDef(JUCtrlValueBinding.java:612)

    at oracle.jbo.uicli.binding.JUCtrlValueBinding.lookupAttributeDef(JUCtrlValueBinding.java:583)

    to oracle.jbo.uicli.binding.JUCtrlHierBinding$ 1JUCtrlHierHintsMap.internalGet(JUCtrlHierBinding.java:183)

    at oracle.jbo.common.JboAbstractMap.get(JboAbstractMap.java:54)

    at javax.el.MapELResolver.getValue(MapELResolver.java:164)

    at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173)

    at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200)

    at com.sun.el.parser.AstValue.getValue (unknown Source)

    at com.sun.el.ValueExpressionImpl.getValue (unknown Source)

    at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:68)

    at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.getProperty(BaseColumnRenderer.java:1094)

    at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.layoutHeader(BaseColumnRenderer.java:542)

    at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.encodeAll(BaseColumnRenderer.java:90)

    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)

    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)

    at oracle.adfinternal.view.faces.renderkit.rich.table.BaseTableRenderer.layoutColumnHeader(BaseTableRenderer.java:1125)

    at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.encodeAll(TableRenderer.java:527)

    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)

    at org.apache.myfaces.trinidad.component.UIXCollection.encodeEnd(UIXCollection.java:538)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)

    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:421)

    at oracle.adfinternal.view.faces.renderkit.rich.RegionRenderer._encodeChildren(RegionRenderer.java:278)

    at oracle.adfinternal.view.faces.renderkit.rich.RegionRenderer.encodeAll(RegionRenderer.java:201)

    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)

    at oracle.adf.view.rich.component.fragment.UIXRegion.encodeEnd(UIXRegion.java:300)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)

    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:421)

    at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:220)

    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)

    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:421)

    at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1324)

    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)

    at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:266)

    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)

    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)

    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:911)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:367)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:222)

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)

    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)

    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)

    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)

    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)

    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)

    at java.security.AccessController.doPrivileged (Native Method)

    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)

    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)

    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)

    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)

    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)

    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    < Utils > < buildFacesMessage > ADF: addition of the following JSF error: java.lang.NullPointerException

    java.lang.NullPointerException

    at oracle.adf.model.binding.DCIteratorBinding.initSourceRSI(DCIteratorBinding.java:1797)

    at oracle.adf.model.binding.DCIteratorBinding.callInitSourceRSI(DCIteratorBinding.java:1672)

    at oracle.adf.model.binding.DCIteratorBinding.internalGetRowSetIterator(DCIteratorBinding.java:1645)

    at oracle.adf.model.binding.DCIteratorBinding.refresh(DCIteratorBinding.java:4395)

    at oracle.adf.model.binding.DCExecutableBinding.refreshIfNeeded(DCExecutableBinding.java:341)

    at oracle.jbo.uicli.binding.JUCtrlHierBinding.getRootNodeBinding(JUCtrlHierBinding.java:93)

    to oracle.jbo.uicli.binding.JUCtrlHierBinding$ 1JUCtrlHierHintsMap.internalGet(JUCtrlHierBinding.java:209)

    at oracle.jbo.common.JboAbstractMap.get(JboAbstractMap.java:54)

    at javax.el.MapELResolver.getValue(MapELResolver.java:164)

    at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173)

    at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200)

    at com.sun.el.parser.AstValue.getValue (unknown Source)

    at com.sun.el.ValueExpressionImpl.getValue (unknown Source)

    at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:68)

    at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.getProperty(BaseColumnRenderer.java:1094)

    at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.layoutHeader(BaseColumnRenderer.java:542)

    at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.encodeAll(BaseColumnRenderer.java:90)

    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)

    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)

    at oracle.adfinternal.view.faces.renderkit.rich.table.BaseTableRenderer.layoutColumnHeader(BaseTableRenderer.java:1125)

    at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.encodeAll(TableRenderer.java:527)

    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)

    at org.apache.myfaces.trinidad.component.UIXCollection.encodeEnd(UIXCollection.java:538)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)

    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:421)

    at oracle.adfinternal.view.faces.renderkit.rich.RegionRenderer._encodeChildren(RegionRenderer.java:278)

    at oracle.adfinternal.view.faces.renderkit.rich.RegionRenderer.encodeAll(RegionRenderer.java:201)

    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)

    at oracle.adf.view.rich.component.fragment.UIXRegion.encodeEnd(UIXRegion.java:300)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)

    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:421)

    at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:220)

    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)

    at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:2633)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:421)

    at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1324)

    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)

    at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:266)

    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)

    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)

    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:911)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:367)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:222)

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)

    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)

    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)

    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)

    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:446)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)

    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)

    at java.security.AccessController.doPrivileged (Native Method)

    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)

    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)

    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)

    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3681)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)

    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)

    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    The problem is using the same name for the model and packages projects.

    DataBindings.cpx is confusing to a mapping between the 2 projects.

    Changed the name of the other project model and in the source databindings.cpx file name. It works very well.

    NGO.

  • How to import photos from a different catalog and keep the setting in this catalogue?

    How can I import photos from a different catalog and keep the setting in this catalogue?

    In a catalog, select the photos you want, then use file-> export as catalog

    In the 2nd catalog, use the file-> import from another catalog

  • Migration from db2 to Oracle - different schemas

    Using the Migration Wizard from the SQL Developer, can I migrate from a db2 schema to another Oracle schema?

    I know that I am able to do the following:

    Source: db2Database target: OracleDatabase.userA

    And the db2 schema (say UserA) is recreated in the OracleDatabase as UserA.

    However, I would like to make

    Source: db2Database.userA target: OracleDatabase:userB

    So far I have not much chance.  Any suggestion would be appreciated...

    Thank you

    \k

    I found a solution.

    I kept the privileges of the user in the State for UserB (is that I used the following)

    GRANT CREATE SESSION, RESOURCE, CREATE VIEW, CREATE MATERIALIZED VIEW, CREATE SYNONYM TO UserB.

    I also changed my preferences under Options Migration\Generation and selected the option of least privilege Schema Migration

    Before data movement occurs, manually, I went into the table MD_SCHEMAS in the migration repository and indicated to the schema UserB (by changing the column NAME for UserB)

    Then with the data step moving ==> it works.  Correctly, the data is migrated in the correct schema,

    Thanks for your help!

  • To find common data in 2 columns from two different tables.

    Hello

    Could someone help me with a querry to discover common data of 2 columns from two different tables?

    Thank you
    Rajesh

    Try as below.

    select col1 ,col2 from tab1
    intersect
    select col1 ,col2 from tab2;
    
  • How to include a model from a different directory

    Hello

    I have a page navigation menu that I placed in a template file.  All navigation files would then call this template file using cfinclude.

    Now, I want to call this file from a different directory.  However, which causes all of the url links and image to be wrong, because the template file uses the relative path of the root directory.

    I looked at using cfmodule, but it seems I have the same questions that if I do the absolute paths, which I try to avoid.

    I also thought adding to each link in the template file with a directory prefix variable that I pass the file calls.

    Is there a way easier and better to solve this problem?

    Thank you!

    Min

    Simple. Use the root, not related links-related links, in the included file.

  • Reports from two different domains

    Hi all

    Is it possible to account for two different subjects areas, i.e., a report that contains fields from two different areas? If so, how could we select fields from two different disciplines in a single report of responses?

    Thank you!!

    One thing to understand is that if you're imagining having two areas (SAs) poster and then by dragging the columns of each in your application without any preparation, then no, that cannot be done. You would need to make a join in the MDB layer and expose the column of the second subject area in the presentation layer.

    But if you indeed interested in UNION (or cross) queries, then do this:

    Build your first application in the first SA in the usual way. Note the number of columns and the data types of each column.

    Now at the bottom of the workspace of criteria, there is a button called "Combined with application similar." Until it clicks.

    Select your second. You will notice that the contours of the columns in your first query appear. This is to remind you that the number of columns in this second query must be the same as in the first. It also shows the data type of each column for the same reason.

    Once you select your columns and your filters, click result. (Oh, you need to decide what kind of combination you want - click the menu drop down.) The result will be a new application that has data from two SAs in the query and combined in the way you select (union, intersection, etc.)

    This should give you a start.

    They are now, some 'useful' or 'correct' points for users on this thread...

  • Appeal procedure in another procedure using the Out parameter slider - lesson

    Hello

    I am new to Oracle development so first I wonder if it is a good place with a simple way of the of on how to create stored procedures?  I'm looking for the most part at this stage for a quick read.

    Second, currently have hacked and slashed my way into getting one built.  It has 3 parameters and an output parameter sys_refcursor.  This procedure works.

    I want to have another created procedure that will call the above procedure and loop through each row in the setting out and write to a file.  Can someone point me to an example of this by any chance?

    Thanks for the help.

    Hello

    e28d78d3-c6c6-4BCE-b14f-0f6bf26fa17c wrote:

    Thanks for the reply.

    Here's what I have, but I'm getting many errors.  When I seem to fix one that I get a new one. Kind of like what it show me all questions vs one question at a time.  I never know if I create another error of my attempts at fixing what, in my view, could be the problem.  In any case, something to get used to.

    When you do any type of programming, take baby steps.  Write less code as possible, test what you wrote ' worm and, if it contains errors, correct them and test again.

    The PL/SQL compiler tries to show all errors, but often it is impossible to say what is a separate mistake, and which is a consequence of a previous error.  For example, the DECLARE statements in your code are perfectly valid PL/SQL statements, but they are the mistakes in the sense that they are not what you think, and you may not use them.  PL/SQL does not know that (I don't really know that, either, but I'm willing to guess in this case).  The works of compiler on the explanation that you really wanted to say SAID, until what it becomes obvious, maybe several lines later, that something makes no sense, but at this time, there is no way he could say that the undesirable DECLARE was the cause.

    So here is where I am stuck currently.  What I want should first, run the stored procedure and I think I do as you suggest.  Which returns data in the output parameter, which is of type sys_refcursor.  I think I would need to loop through each element that cursor and output to the file using the dbms_output you reference and like I did below.  This should be it.  Sounds simple enough, but it's where some of the basics for me.

    For example, by creating the procedure some examples have the name of the procedure and then some "AS", "IS".  When use the beginning and the end and when not I need?

    There is no difference betwwen

    CREATE PROCEDURE... AS and

    CREATE PROCEDURE... Use IS the one you prefer.  You must always one or the other, however.

    PL/SQL is written in blocks.  The basic structure of a block is

    DECLARE - optional, sometimes involved

    ...

    BEGIN

    ...

    -Optional EXCEPTION; forget it for now

    ...

    END;

    Almost all of the PL/SQL code is part of a block.  In fact, you could argue that anything not in a block isn't really PL/SQL.  (For example, CREATE PROCEDURE is really an SQL, PL/SQL not, it indicates the SQL that some PL/SQL compiler is coming.)

    You should always BEGIN and END keywords in a PL/SQL block; None is never optional.

    I think I'm doing the for loop correctly but I get an error on the portion of loop-end.  It is a part of these simple things that become I think that.

    That's what I have:

    CREATE OR REPLACE PROCEDURE APPS.boact_report_3

    AS

    DECLARE v_cur SYS_REFCURSOR;

    DECLARE v_file_out UTL_FILE.file_type;

    BEGIN

    I said earlier, DECLARED may be implied.  It's one of those places if there is nothing after CREATE PROCEDURE... IS and before STARTING, it is supposed to be a statement.

    You can have as many statements (0, 1, 2 or more) that you want in this section of the statement.  The semicolon at the end of each of them is all the separation you need each other; you don't need any keyword as STATED.

    Open the v_cur for

    bo_report (p_sv_id, p_start_date, p_end_date, out v_cur);  -stored procedure that girls v_cur witch is a sys_refcursor parameter.  It works

    END;

    BEGIN

    Don't forget, how to call a procedure is

    bo_report (x, y, z);

    not

    bo_report (x, y, z OUT);

    The key words are only necessary (and only used) in the declaration of a procedure, not in his appeal.  When you create a procedure, you decide if each argument is going to be an argument IN, an OUT argument, or IN OUT argument, and you tell the compiler that you decide.  When you call a procedure, you have no choice; each argument is IN, OUT or IN OUT has already been decided, and suffice to say compiling what are the variables (or expressions) that you use to play these predetermined roles.

    Dbms_output.put_line ('Date: ');

    v_file_out: =.

    UTL_FILE.fopen (' / public/scripts/smorau02 ', 'w_act.csv', 'W');

    FOR x IN v_cur

    LOOP

    () UTL_FILE.put_line

    v_file_out,

    x.cl_num | ','

    || x.wa_id | ','

    || x.Description | ','

    || x.a_date | ','

    || x.a_by | ','

    || x.v_Name | ','

    || x.SITE_NAME | ','

    || x.stage | ','

    || x.in_queue);

    END LOOP;

    UTL_FILE.fclose (v_file_out);

    END;

    Thanks again for the help.

    You have not to send the code to bo_report, so I can't run the procedure.  I do not notice any obvious mistakes immediately superior.

  • Appeal procedure plsql or PLL file servlet.

    Hi all

    I'll work on the process of personalization of forms of oracle applications 11i. I have to call the servlet from the plsql procedure or .pll file. And I want to call the servlet with court opening of the browser window. He'll call the servlet in the backend process.

    Help, please.

    Thank you
    Sylvie

    Salvation;

    "" For your question, I suggest farm your thread here that change the status of the thread to answered and move it to Forum Home "PL/SQL application development" forms
    that you can get a faster answer

    Respect of
    HELIOS

  • Appeal procedure for a page element

    Hi friends,

    I have a page element and I need to return a value for the page element by using the procedure. For this I created a procedure
    create or replace procedure xx_test_proc7(a number,b out varchar2) 
    as
    begin
    select sum(sal) into b from scott.emp where deptno=a;
    end;
    And called this procedure as the below in the section by default, by specifying the type as 'the plsql function body '.
    declare
    x varchar2(20);
    begin
    xx_test_proc7(20,x);------>20------>hardcoded
    dbms_output.put_line(x);
    end;
    But this element does not receive the value of the procedure.

    What is the problem with her friends.

    Brgds,
    Mini

    Hello

    Your code should be based, so try

    declare
    x varchar2(20);
    begin
    xx_test_proc7(20,x);------>20------>hardcoded
    RETURN x;
    end;
    

    Kind regards
    Jari

Maybe you are looking for