Failed to refresh the mview belonging to another schema

Oracel 10 gr 2
Solaris 10

I have the following:
1 materialized view called MV_A belonging to the schema SCH_A.
2 SCH_A source table is TBL_B;
3. TBL_B in the SCH_B schema. and
4. a third schema, SCH_C, tries to run dbms_snapshot.refresh ("SCH_A.MV_A", "C");

The error returned is:
ERROR on line 1:
ORA-01031: insufficient privileges
ORA-06512: at "SYS." DBMS_SNAPSHOT", line 2255
ORA-06512: at "SYS." DBMS_SNAPSHOT", line 2461
ORA-06512: at "SYS." DBMS_SNAPSHOT", line 2430
ORA-06512: at line 1

SCH_C has the following privileges:
run on sys.dbms_snapshot;
Insert MV_A priv; and
Select on SCH_B.TBL_B

This seems to be a simple question but I went through the documentation and research were unsuccessful. Thanks in advance.

create the PL/SQL procedure named SCH_A_REFRESH belonged to SCH_A which is dbms_snapshot.refresh ("SCH_A.MV_A", "C");

GRANT EXECUTE ON SCH_A_REFRESH TO SCH_C

Tags: Database

Similar Questions

  • How to give subsidies on the packages belonged to another apps schema

    Hello

    Could you help me by giving subsidies on the packages belonged to another apps schema.

    to give the grant that we can use to either run or debug, but I'm not sure that him on the behaviour of this donation.

    (1) if I give subsidies to the parcel if it may harm data or objects associated with this object IE apps.

    The user who got grants on these packages if it executes this package - make changes in the environment.

    with respect,
    Surya

    Published by: SuryaSrinivas on June 30, 2009 02:31

    Hello

    I think that it should run no problem granting privilege on the packaging of custom schemas apps. However, you must give approval with cautious execute as account APPS is a powerful user and you need to know the implication to give privileges to other diagrams.

    Kind regards
    Hussein

  • How to share data in the tables ' User_ * ' with another schema

    I want to share the data in the table WHERE USER_SEGMENTS with another schema. If I create a view and grant select on the view, when the other schema queries the view data are identical to themselves querying the SYS.user_segments table directly.
    create view sys_user_segments as select * from sys.user_segments;
    grant select on sys_user_segments to A;
    My guess is that the SYS.user_segments table is a view based on the current user.

    Is there a way to share such data without creating a copy of the table?

    Oracle: 10g

    Thank you

    If the ADMINISTRATOR is concerned about B access to DBA_SEGMENTS (or by creating DBA_SEGMENTS views that belongs to a user who has access on top and then grant access to this view of B), it seems pretty crazy allow that kind of database connection.

    If you create a database link belonged to B that connects to A, B is, in substance, given any privilege that has exercises. But it is done in a very, very dark which will no doubt be neglected in the future when someone gets a check. He'll be sitting here to wait that someone (accidentally or intentionally) Decides to exploit the security hole and do something that is causing a problem (by removing all data from a table, grabbing all the sensitive data in a table, etc.). Risks of this almost certainly far, far* far * outweigh the risks of even leaving B to obtain direct access to DBA_SEGMENTS.

    Justin

  • Failed to refresh the acstore for the [IP] user

    Hello

    Yesterday, I had a problem with "OCS Calendar Server".

    The web interface on the front-end server is not accessible. In the log files, it was not error...

    But on the back-end server, I have seen this error on the dwp.log file: "General error: could not update the acstore for the user [IP]'.»» After some power, the error was gone.

    I don't understand this error. Could someone explain to me?


    Thank you


    Joint Inspection Unit

    Once the calendar server is not able to user preferences and data from the LDAP server, you will see the message reported. In this case, it might be useful to check the log of the LDAP access as well.

    NOTE:

    Calendar Server 6.3 is in the same time to support (no more bug fixes). It is therefore highly recommended to migrate to Version 7 of Calendar Server.

  • Failed to refresh the CC Office...

    Environment - SMB

    -Computer account is a member of a Windows domain

    -Microsoft Windows 8.1 Enterprise (64-bit)

    (1) the user receives a notification of update available for CC

    (2) the user tries to install the updates

    (3) the user doesn't have admin privileges so that they receive the following error message

    'Administrator privileges are required to continue with the installation. (() Code d'erreur: 3) contact customer'


    (4) technicians (with the domain administrator-level privileges) closes all known Adobe processes in the Task Manager

    (5) technicians (with the domain administrator-level privileges) lance Cloud.exe Creative uses attempts to "Run as Administrator" to install updates

    (6) technicians (with the domain administrator-level privileges) receives the following error message

    "Administrator privileges are needed to continue the installation. (() Code d'erreur: 3) customer contact"

    (7) technicians (with the domain administrator-level privileges) user disconnects and connects with the domain administrator account

    (8) technicians (with privileges to domain level administrator domain administrator) closes all known processes of Adobe launched at startup

    Launches 9) technical staff (with the administrators of domain level privileges connected as a domain administrator) Creative Cloud.exe using 'Run as Administrator' tries to install updates

    (10) technicians (with privileges to domain level administrator domain administrator) receives the following error message

    "Administrator privileges are needed to continue the installation. (() Code d'erreur: 3) customer contact"


    (11) technical contact Adobe support by Chat

    (12) support adobe recommends to kill all associated Adobe process and installation of updates to Admin Local count (even if the Domain Admins group is a member of the Administrators Local Group)

    (13) technicians (logged in as Local administrator) closes all known processes of Adobe launched at startup

    Launches of 14) technical staff (logged in as Local administrator) creative Cloud.exe using 'Run as Administrator' tries to install updates

    (15) technicians (logged in as Local administrator) receives the following error message

    "Administrator privileges are needed to continue the installation. (() Code d'erreur: 3) customer contact"


    At this point, we are perplexed - how can we get the application to apply the updates?


    The answer to this question for us was in fact related to GPO.

    In efforts to reduce the area exposed to recent "ransomware" threats, IT Dept will often refuse the execution of certain types of files stored in %APPDATA%\microsoft\windows\sendto or %LocalAppData%.

    As is the case with many applications based on the web, Desktop CC tries to use a .exe file localappdata % or %AppData% during the update process.

    While some programs will give you a popup telling you that the program has been blocked, the CC Office Update does not trigger this popup.

    Check the event viewer for:

    Event ID 865 ' access to the < %=""> has been restricted by your administrator by software restriction policy level by default. "

    Event ID 866 ' access to the < %=""> has been restricted by your administrator by location with policy {%} placed on path rule < %=""> .»

    You will need to create exceptions (whether by the signature of trust, path or hash value) on the RPS.

    While accurate executables and their way hinted me at present, I hope that it will point some of you in the right direction.

    Thank you!

  • Failed to refresh the database after a forced shutdown of the business rule

    Hello Experts!

    I am currently test and adjustment of performance of business rules in Hyperion Planning 9.3.1. I started a business rule in the Regional service Console that ran a lot too long so I decided to stop it manually. But after this manual stop when I try to refersh Essbase of Hyperion Planning (Administration > manage the database > database update) I get the following error:

    + com.hyperion.planning.olap.EssbaseException: impossible to restructure. There are other active users on the database [%s] (1013101).

    I remember having forced company rule stops earlier in other Hyperion Planning 9.3.1 deployments and they did not generate such errors. So could you help me on how to stop Hyperion Planning of this error after manual business rule stops because it's very likely I'll have do them in the future? Thank you very much!

    Are you sure he permanently stopped and everyone is out of the database, you can enter into the EAS, see view sessions.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • ORA-01031: insufficient privileges while selectin view belongs to another schema in oracle database 11g

    Hello

    DB version 11.2.0.3.0

    We have a few views resides in the application schema, we cerated user and granted select on the view through the roles.

    but the user becomes ORA-01031: insufficient privileges when accessing the content view

    appreciated inputs

    BR

    Praaksh GR

    > I issued a grant select on Z.table - X with the option grant.

    This isn't what you need - you should

    Grant select on Z.table y with the option grant.

    Grant select on Y.view to X;

  • grant the privilege on the SQL types to another schema

    I created two SQL types under the APP_OWNER scheme as follows:

    CREATE or REPLACE TYPE t_instr_info as an OBJECT
    (NUMBER IMNT_KY)

    CREATE or REPLACE TYPE t_tab_instr_info
    AS THE t_instr_info TABLE

    The privilege on these two types as follows:

    Grant execute on t_tab_instr_info to vprods_app2

    Grant execute on t_instr_info to vprods_app2

    The stored procedures must be developed in the scheme of the APP. In the scheme of the APP, I need to call this type to declare the array as follows:

    v_tab_output app_owner.t_tab_instr_info: = app_owner.t_tab_instr_info ();

    I get a PLS-00905: object owner.t_tab_instr_info is not valid

    I tried giving EVERYTHING instead of run, but the problem persists.

    Help, please. As a policy of all objects including tables, types etc. must be app_owner and the app schema privileges

    Thank you in advance.

    One thing I forgot to mention (since you do not explicitly specify how you are granting things) is that you need to issue DIRECT subsidies (as in my example above), you cannot compile the code if you have subsidies via a role (but you can execute anonymous blocks).

    This is an example

    create user APP_OWNER identified by APP_OWNER default tablespace users temporary tablespace temp;
    grant connect, resource, create role to APP_OWNER;
    
    create user APP_SCHEMA identified by APP_SCHEMA default tablespace users temporary tablespace temp;
    grant connect, resource to APP_SCHEMA;
    
    connect APP_OWNER/APP_OWNER@xe
    
    create role for_apps;
    
    CREATE OR REPLACE TYPE t_instr_info as OBJECT
    (IMNT_KY NUMBER);
    / 
    
    CREATE OR REPLACE TYPE t_tab_instr_info
    AS TABLE OF t_instr_info;
    / 
    
    grant execute on t_instr_info to for_apps;
    grant execute on t_tab_instr_info to for_apps;
    
    grant for_apps to app_schema;
    
    connect APP_SCHEMA/APP_SCHEMA@xe
    APP_SCHEMA_XE?create or replace procedure test
      2  as
      3     v_tab_output app_owner.t_tab_instr_info := app_owner.t_tab_instr_info();
      4  begin
      5     null;
      6  end;
      7  /
    
    Warning: Procedure created with compilation errors.
    
    Elapsed: 00:00:01.17
    APP_SCHEMA_XE?show err
    Errors for PROCEDURE TEST:
    
    LINE/COL ERROR
    -------- -----------------------------------------------------------------
    3/17     PL/SQL: Item ignored
    3/17     PLS-00201: identifier 'APP_OWNER.T_TAB_INSTR_INFO' must be
             declared
    
    APP_SCHEMA_XE?declare
      2     v_tab_output app_owner.t_tab_instr_info := app_owner.t_tab_instr_info();
      3  begin
      4     null;
      5  end;
      6  /
    
    PL/SQL procedure successfully completed.
    
    Elapsed: 00:00:01.17
    
  • Code and the database tables in different schemas

    Hello
    My version of db: database Oracle 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    I would like to understand the advantages and disadvantages of the following situation:
    We have only one request.
    The design of the db for this application has 44 paintings, of which 28 are base tables related by PK and FK relations. The other 16 are look upward and refer to tables that are not related to one.
    The team has decided to place the tables in a diagram 28 A and the other 16 in another schema B within the same database. (The reason for this is... because it's done in other projects to do it here too).
    Coming now to the code (stored procedures, functions, packages, etc.). Teams want to ask most of the code in the diagram B with the Ref 16 tables. (the reason being again the same).
    What are the advantages and disadvantages this?
    Please advice.

    PS:
    I have googled and find something on these lines:
    cons:  
    o harder to manage
    o harder to upgrade
    o harder to patch
    o harder to maintain
    o causes your shared pool size to increase 1,000 times (shared sql goes down the tubes)
    o takes more space
    o queries against the dictionary will be impacted
    o latching on the shared pool goes WAY up (latching = locks = serialization device = 
    slows you down)
    
    pros:
    o none that I can think of.

    From my experience, if you see natural divisions that give you smaller patterns, well contained, you should take advantage of them and start with separate schemas. If done correctly, it can greatly improve the maintainability of your application.

    Assume that your initial project will have 60 paintings and they might fall into three groups of 15, 20 and 25 tables respectively. There are also objects of code such as PL/SQL packages. Your choice is:
    -Use a single scheme of 60 paintings, suppose that with 100 objects in code.
    -Use 3 diagrams divided as described. The total code objects will probably be a little more that unique schema design, because they need to provide interfaces with others. So let's assume that schemas will have 30, 40 and 50 code objects each.

    Now, wait 3 years.

    The history of single-schema:
    -The single-schema is passed to 120 tables. There has been a corresponding increase in code, now more than 200 objects. But they are very complex. Over time, each piece of code will interact with the tables more and more and many other objects in code.
    -You (the architect or Manager) can not really apply any internal for this structure since no subsidy is required to add dependencies. Therefore, if you change a table there is a vast impact.
    -You can easily divide the responsibilities because everything affects everything else. You can't manage simultaneous development efforts because the impact widespread changes cause the same tables/components to be affected by multiple projects. If you have the project execution dependencies / as you have interdependencies technique/code.
    -You have a "big ball of mud" and it is very difficult to get out of this situation.

    Multi-schema history:
    -Each of the 3 original patterns has grown, but some more than others. A fourth was added a year ago, when there was a major expansion in a new district, as a result of "natural divisions.
    -On the inside of each of these schemas, it is always a challenge to impose internal structure. But those patterns more smaller and therefore more small problems.
    -Through schemes, subsidies are necessary to allow interaction, this is not a "wild west" where everyone can access everything (and introduce dependencies on everything). Teams to define interfaces (packages or the views that are specifically intended to be interface points) where the interactions with other scehmas are necessary.
    -If changes to a table are needed, the impact can be limited to the schema that contains naturally. You know that no one else has created dependencies at this table, because you were never issued grants on this.
    -The responsibility for these schemas was divided between 2 teams, each team having full responsibility for its 2 diagrams.
    -Teams can complete projects much more easily, even with a parallel development, because there is less than a "domino effect" with each change.

    Now, these benefits depend on "natural divisions that give you the diagrams smaller, well contained." If you make the wrong choice here, you will always have a mess. You design with the end in mind scenario.

  • Drop database link in another scheme that DBA is not working

    How to remove an object for example, database 'MYDB. MYDBLINK"that is present in the SCOTT schema.

    When I try the following options of logged in as DBA , it is in error.

    "DROP DATABASE LINK"SCOTT" MYDB. MYDBLINK1 ';
    ORA-2024: connection to database not found.

    DROP DATABASE LINK SCOTT. MYDB. MYDBLINK1;
    ORA-2024: connection to database not found.

    DROP DATABASE LINK 'SCOTT'.' MYDB. MYDBLINK1';
    ORA-2024: connection to database not found.

    DROP DATABASE LINK SCOTT. MYDB. MYDBLINK1;
    ORA-2024: connection to database not found.

    I always connect like SCOTT to drop the MYDB database link. MYDBLINK1 that is present in the SCOTT schema.

    Please provide the way to drop the database link in another schema, without logging as the schema owner, so that I can connect a DBA (SYSTEM or SYS).

    You cannot remove a database link in the schema of another user. One solution is:

    SQL > CREATE PROCEDURE scott.drop_db_link AS
    BEGIN
    EXECUTE IMMEDIATE 'drop database link LINK1. "
    END drop_db_link; 2 3 4
    7 m

    Created procedure.

    SQL > exec scott.drop_db_link

    PL/SQL procedure successfully completed.

    Source: http://dbaoracletips.blogspot.com/2011/11/how-to-dropcreate-database-link-from.html
    http://laurentschneider.com/wordpress/2012/10/drop-database-link-in-another-schema.html

  • FRM - 40654 Record has been updated by another user. Refresh the file

    Hello

    Scenario of

    ------------
    Header block - H1
    Multi disc child block - C1
    ----------------
    Update of a field - rate of change in the header block - should change two fields - "price and quantity" in the block of records child multi - C1.
    There is no trigger database on all the tables.
    We have treated the logic above in the update of H1 post-declencheur.

    Updated explicit statemetns still appear in the subsequent update trigger, whose purpose is to update the table of the child of the block - price and quantity columns.

    -------------------
    Question
    Is it correct to use an update statement in the post update trigger oto updated the table of the child block. Otherwise, the wheat is the right way?
    We are also updating a column of synthesis called 'sum_amount' which belongs to H1.
    -----------------------
    We get the error:
    -------------
    FRM - 40654 Record has been updated by another user. Refresh the folder to display the change.
    -----------------

    Updates on this would be useful. We stayed by the suggestions in this forum... and were not able to solve this problem...
    Concerning
    SR

    If it is not updated in later day, what's the alternative outside using post - update trigger so that the prices of columns and the amount are updated as soon as the exchange rate is updated.

    Have you commented the trigger for update again?

    In general, I tend to use the over - or before fires (suite-update / Pre - Update). However, I think that you'll get the same error using these triggers. More importantly, I need to know the answer to my previous question:

    We are also updating a summary column called "sum_amount" that belongs to H1.
    

    How are you on this column of table of contents? The SUM_AMOUNT column is a calculated field or you have written the code that updates this article? The column SUM_AMOUNT is a field of database? >
    My first reaction is that this process is the most likely cause of your error FRM-40654, but that's just a guess.

    Craig...

  • Calendar failed to refresh events in the calendar "calendar".

    My exchange calendar Office 365 always worked but somehow, an invitation he has screwed up and now it is showing

    Calendar failed to refresh events in the calendar "calendar".

    There was an error trying to send your changes to the exchange server.

    You can have the same problem like this:

    Apple and Microsoft Exchange calendar

  • Can a site the browser to examine all the links (relative to the root) as belonging to another area?

    One of my sites gets its images on another server (and domain). Therefore, instead of paths relative to the root, I use full http:// URL.

    Is not a big deal, except that the area where these images are stored too, sometimes changes. I have to find/replace all http:// on the right, so they point to the new domain.

    I just thought that a cleaner solution (which can - hopefully - already exist) might be to insert a single line at the top of the HTML file indicating the browser to view all the links related to the root as belonging to another area.

    Something like:

    < meta domain = "alternatesite.com" / > "

    "< img src="/images/image.jpg "/ >

    Where only one line should be changed, and the code would read as it is located on alternatesite.com, even if it is com.

    It is already doable and if so, what is the right syntax?

    Thank you!

    You have skills with the script server? It would certainly be a way to do.

  • How to refresh the listview that is in another function

    Hi all,
    I have a problem with a refreshing of the listview.

    I have 3 features in the application, let's say 'feature A' 'feature B' and 'C'.

    I also have 2 tables and sqlite db (local) .and 1 view their names are 'A table', 'table B' and 'see C.

    View C is like this:

    create view C as

    Select a.oneColumn

    Table has a

    Union

    Select b.oneColumn

    Table B b;

    Each function has the main amx.page and each of them has listview values from the (local) sqlite DB.


    According to A, I can add new row to the database (line update or delete) and the list is updated with the help of the "ProviderChangeSupport".

    Same thing happens in the function (B) everything is ok so far. But according to C, there also listview. When I delete operation or update functionality or B.

    the listview in C function is not updated.


    I hope you all can easily understand the problem and help me with the solution. Oracle Mobile Application Framework.

    Hello

    you need to reset a feature - navigating it--you want to ensure the functionality and so refreshes the view. The change of supplier support works in the ClassLoader (feature film) it is issued to. You can use a listener to refresh the controls collection of data used by a list, but it does not work automatically.

    Frank

  • Failed to initialize the Application example in Hyperion Planning

    Hello

    I'm new on Essbase and Hyperion EPM system 11.1.1.1.0 and I'm trying to test the functionality of planning. I have installed and configured the EPM system, and when I run the Diagnostics of the EPM system, everything is successful unless connecting to Essbase Studio Server (which is a separate issue from another thread).

    I'm working with the example of planning application included with the installation. I followed the instructions given here from the blog of John Goodwin, but I encounter an error when I try to initialize the sample application. I also tried creating the application through the workspace, which is documented here. I get the same error during initialization of the sample application.

    I get the error message said: "failed to initialize the sample Application. See the log for more details. "Where this journal of planning? I'm running on Tomcat.

    When I try to create the database, following the blog of John, through the Administration > manage the database > Create, I also am getting an error on step 18 of 21: [console] verification of member formulas. The error reads as follows:

    com.hyperion.planning.olap.HspVerifyOutlineException: check the plan failed with the following errors:
    Error [1200497] discovered in the formula of Member for "411100" members
    Error [1200497] discovered in the formula of Member for "412100" members
    Error [1200497] discovered in the formula of Member for members "412200."
    Error [1200497] discovered in the formula of Member for "451000" members
    Error [1200497] discovered in the formula of Member to Member "501111".
    Error [1200497] discovered in the formula of Member to Member "501112".
    Error [1200497] discovered in the formula of Member to Member '501130.
    Error [1200497] discovered in the formula of Member to Member "501240".
    Error [1200497] discovered in the formula of Member to Member "501250".
    Error [1200497] discovered in the formula of Member to Member '511200.
    Error [1200497] discovered in the formula of Member to Member '511300.
    Error [1200497] discovered in the formula of Member to Member '511400.
    Error [1200497] discovered in the formula of Member to Member "511500".
    Error [1200497] discovered in the formula of Member to Member "511600".
    Error [1200497] discovered in the formula of Member to Member '511700.
    Error [1200497] discovered in the formula of Member to Member '511800.

    What should I do to get this application example upwards and running so I can see what he does?
    How to initialize the sample application?
    Why can't create a database correctly (without the above error), so I can then load data into the database of the Consol via the Essbase Administration Services Console? Currently, the outline in environmental assessments do not check (it gives me the same list of members of the above error messages), and so I can't load the sampleapp_data into the database. If someone saw, please help. Thank you.

    -Scott

    Hello

    If you remove the application, back, restart schedule, create the sample application again and initialize you should be fine, then you can return the clock to its normal state.

    You always make the changes on the side planning and when you refresh these changes will be pushed to essbase (which you can see with EAS).

    See you soon

    John
    http://John-Goodwin.blogspot.com/

Maybe you are looking for

  • HP B210

    Will be not copy print or scan

  • Discharge the battery when 'off' on Satellite

    If I leave my machine "off" for a week or two the battery capacity decreases by 20%. Assuming that the battery capacity is 2.5Ah (it takes about 2-3 hours to load 'off') this means that it uses at least 0.5ah / SEM, which equals a minimum continuous

  • 3 digital inputs for the structure of the case

    I'm in the early stages of development a VI that will monitor 3 digital input lines. Only a single digital input will be active at any time. For each digital input, a VI runs under different.  Currently, I use 3 structures distinct case (attached). I

  • Button display the desktop and windows + d shortcut works do not.

    Separated from this thread. Although his same old thing happens in my system... regsvr32 /i shell32.dll works not

  • BBM Blackberry id will not associate

    Hello Recently, I exchanged a worker from a blackberry to a classic blackberry q5 co. -We did a full backup using the q5 -then transferred the blackup to the classic blackberry -for the launch of bbm it is said 'transfer of your data from BBM surveys