Insufficient privileges in the creation of MV that he select another schema table

Hello

Before asking this question, I checked with similar questions in the forum, but I don't see my situation, or I'd say I'm not clear on the solution.

I got the privileges CREATE MATERIALIZED VIEW and CREATE ANY MATERIALIZED VIEW and I want to create a MV in my schema, but the MV selects data in another schema, and I had the privilege to choose this table. Here is my code

Create VIEW MATERIALISEE CPY_GL_HANDS_OFF_DTL

UPDATE THE BEGINNING WITH THE LARGEST (SYSDATE, TO_DATE ('2013.10.30.23.30.00 ',' YYYY.)) MM DD. HH24.MI. THE NEXT SS SYSDATE')) + (50519 /(24*60*60)) FULL

ENABLES QUERY REWRITE

SELECT

*

Of

User_a.GL_HANDS_OFF_DTL@dblink;

I run it, and I get ORA-01031: insufficient privileges. According to my research so far, the schema of the latter requires the CREATE TABLE privilege, even though she already had RESOURCES (which already includes the CREATE TABLE). Is this true? That's my problem. I only have read access to the table of the dblink, I can't control the privileges of this scheme. Advise please if this is the real problem?

Thanks and greetings

acquired through ROLE privileges do NOT apply in the PL/SQL name procedures

Tags: Database

Similar Questions

  • Error of insufficient privileges on the creation of model running in a stored procedure

    Hello

    I get the error of insufficient privileges on execution of the DBMS_DATA_MINING. Script CREATE_MODEL in a stored procedure.

    If I run the same DBMS_DATA_MINING. Script CREATE_MODEL in an anonymous block with just begin... end;

    I am able to create a model successfully, but if I do the same thing after having stored the script in the stored procedure, it is throwing error of insufficient privileges.

    Scripts:

    BEGIN

    DBMS_DATA_MINING. () CREATE_MODEL

    Model_name = > < template name >

    mining_function = > dbms_data_mining. CLASSIFICATION,

    DATA_TABLE_NAME = > < data table name >

    CASE_ID_COLUMN_NAME = > < case ID >

    target_column_name = > < target column >

    SETTINGS_TABLE_NAME = > < settings table >

    DATA_SCHEMA_NAME = > < schema >

    SETTINGS_SCHEMA_NAME = > < schema >

    );

    END;

    The foregoing, works very well and created a model with the model given with success.

    But if I keep the above, in a stored procedure as - MINING_TESTING

    create or replace procedure MINING_TESTING as

    BEGIN

    DBMS_DATA_MINING. () CREATE_MODEL

    Model_name = > < template name >

    mining_function = > dbms_data_mining. CLASSIFICATION,

    DATA_TABLE_NAME = > < data table name >

    CASE_ID_COLUMN_NAME = > < case ID >

    target_column_name = > < target column >

    SETTINGS_TABLE_NAME = > < settings table >

    DATA_SCHEMA_NAME = > < schema >

    SETTINGS_SCHEMA_NAME = > < schema >

    );

    END;

    Compiles correctly.

    Enforcement - EXEC MINING_TESTING;

    Error message throw sufficient privileges.

    The error message complete below:

    Error report:

    ORA-01031: insufficient privileges

    ORA-06512: at "SYS." DBMS_DATA_MINING', line 1798

    ORA-06512: at "MIS_ORABI_ODM.CA_MINING_TESTER", line 3

    ORA-06512: at line 1

    01031 00000 - "insufficient privileges".

    * Cause: An attempt was made to change the user name or password

    without the privilege appropriate. This error also occurs if

    trying to install a database without the need for employment

    access privileges.

    When Trusted Oracle is configure in DBMS MAC, this error may occur

    If the user has been granted the privilege necessary for a higher label

    that the connection is active.

    * Action: Ask the database to perform the operation or grant administrator

    the required privileges.

    For users Trusted Oracle get this error, well that granted the

    the privilege that is suitable for the top label, ask the database

    administrator to grant the privilege to the appropriate label.

    Hello

    DataMiner UI grants privileges to a role, so if you're depending on these privileges you must proceed as follows when you create a stored procedure.

    Your stored procedure was created with the default authid which is definers. It will not use the privileges for the role. Solution is to create the stored procedure with authid current_user. This will pick up the privileges for the role. Another option is to apply the following subsidies directly to the user account:

    grant CREATE MINING MODEL

    CREATE THE TABLE,

    IN ORDER TO CREATE

    Example of stored procedure:

    create or replace procedure MINING_TESTING AUTHID CURRENT_USER as

    BEGIN

    DBMS_DATA_MINING. () CREATE_MODEL

    MODEL_NAME =>

    mining_function-online dbms_data_mining. CLASSIFICATION,

    DATA_TABLE_NAME =>

    CASE_ID_COLUMN_NAME =>

    target_column_name =>

    SETTINGS_TABLE_NAME =>

    DATA_SCHEMA_NAME =>

    SETTINGS_SCHEMA_NAME =>

    );

    END;

    Thank you, Mark

  • VDM - insufficient privilege on the vCenter Server

    I started playing with a view and I was able to create pools without problem.  But for some reason, now I am unable to create everything.  My "customization specification" make their appearance is no longer in VDM.  I see in vCenter and can deploy the model of their use.  If I jump the customization I get the following error 'Insufficient Privilege on the vCenter server' at the end of the creation of the pool.

    Help, please

    Will Johnson

    VCP on VI3 / vSphere VI4

    Will, what version of view you running now?       When you deploy in vCenter you use the same ID that is used for the VMware View connection with vCenter?

    If you have found this device or any other useful post please consider the use of buttons useful/correct to award points

    Twitter: http://twitter.com/mittim12

  • Hi Please clarify me the requirment system so that I don't have tables and data on more than 20 billion?

    Hi Please specify me the system requirements so that I don't have tables and data on more than 20 billion?

    SET ECHO OFF;

    SET FEEDBACK OFF;

    SET SERVEROUTPUT ON;

    GAME CHECK

    SET PAGES 0;

    ALIGN THE HEAD

    Set linesize 200 trimspool on

    the value of colsep «,»;

    SELECT 2013 AS YEAR, 3 AS A PERIOD, 'RQ' AS PERIOD_TYP, 'SRVC_DT' AS ANALYSIS_TYP, NO_MEM_SRVCD AS MLTS_TYP, SRVC_CATG_CDE, SRVC_SUB_CATG, SUM (COST), SUM (NO_CLAIMS) AS NO_CLAIMS, SUM (NO_MEM_SRVCD) AS 'NMLTS '.

    OF ICUSER. CLAIM_DETAIL, ICUSER. SSCATG_SCATG_MAP_MSTR

    WHERE SRVC_SUB_CATG = SRVC_SUB_CATG_CDE

    AND ((YEAR_SRVC = 2013 ET MONTH_SRVC))<=>

    OR (YEAR_SRVC = 2012 AND MONTH_SRVC > = 10))

    GROUP HERE 2013, 3, 'RQ', 'SRVC_DT', 'NMLTS', SRVC_CATG_CDE, SRVC_SUB_CATG

    COIL C:\Users\ATCS23\Desktop\Sql_Ldr\testscript10.txt

    /

    spool off

    You may need to adjust the number of linesize.

    David Fitzjarrell

  • Vs role directly privilege on the creation of the procedure

    I gave an our develpers create them all procedure/run procedures privleges and also granted him a role that has choose, update privileges, but always as insufficient privileges error when attempting to create a procedure.

    On the other hand, when I grant the same privilege directly to the user, it is able to create the procedure without error.

    What I'm doing wrong - I'd like only to all privilege granted through roles.

    Your input please.

    acquired through ROLE privileges do NOT apply within the named PL/SQL procedures

  • ORA-01031: insufficient privileges during the activation of a unique constraint

    Hello
    DB is Oracle 10 g.
    I have a problem, which allows a unique constraint on a table using a stored procedure.
    The procedure travels a few queried from the view all_constraints primary key constraints allowing them without any problem.

    Then, on the first unique constraints, it throws the exception
    ORA-01031: insufficient privileges

    The sql line built at the source of the problem is
    run immediately ' alter table 'My_Schema_Name '. "' My_TableName ' enable the 'UNIQUE_Myconstraint_UQ' CONSTRAINT '.

    What confuses me, is that the same line (without "immediate execution") run from the console window of the sql developers, which was used to make the appeal process that has failed, will succeed.

    The user used to make the call is not owner of the scheme, but has Alter_Any_Table system permissions (and, as mentioned above, the call will succeed if entered directly in the sql developer worksheet).

    Stored procedures running in a different (limited) security context (sorry if the setting isn't right) than that of the calling user?
    Or what is the problem here?

    Any help is appreciated.
    Markus.

    Note:
    Before, I don't have the name of constraint in quotes and allowing the primary key failed with error ORA-02430: impossible to enable the constraint (PK_ConstraintName) - no such constraint 02430. 00000 - "could not activate constraint (%s): no such constraint ', which is an interesting problem in itself, but now fixed. In any case, thoughtI would mention it

    Hello

    This means that alter table system privilege is given to the user through certain roles. If it's true that the roles has no effect when executing stored procedures. You must give the direct privilege to this user and not by role.

    With regard to your note:
    This means that you created the constraint in lower case or mix of lower and upper case in quotes. Therefore you should now always return in the same case in quotes each time you reference any object. So it is always advisable to create objects on top of case (if the use of the quotes) or do not use quotation marks.

    Concerning
    Anurag

  • ORA-01031: insufficient privileges after the cloning of RAC

    Hello.

    I have 2 CARS with 2 DBs nodes and 1 OEBS with option of CARS. 5.11 for Linux. IM 11.2.0.3.9. DB 11.2.0.3.9.

    Data disks when presented by iSCSI.  Data, OCR, voting are in ASM on a diskgroup.

    For testing purposes this RAC has been cloned, including lun data.

    After that successful cloning IG has been tested and verified. Everything is ok.

    DB homes have been reconfigured successfully. Unfortunately tries to connect to sqlplus / as sysdba a ccure of error:

    ERROR:

    ORA-01031: insufficient privileges

    Any suggestions will be much appreciate.

    Thank you in advance.

    Finally, it works.

    export NEWHOSTNAME=node1
    export G01=OSDBA_GROUP=dba
    export G02=OSOPER_GROUP=oper
    export G03=OSASM_GROUP=
    
    eval "perl ${ORACLE_HOME}/clone/bin/clone.pl -silent ORACLE_BASE=$ORACLE_BASE ORACLE_HOME=$ORACLE_HOME ORACLE_HOME_NAME=OraDb11g_home1 INVENTORY_LOCATION=/u01/app/oraInventory -O'\"CLUSTER_NODES={$NEWHOSTNAME}\"' -O'\"LOCAL_NODE=$NEWHOSTNAME\"' $G01 $G02 $G03"
    

    In this case, config.c contains appropriate Van Overstraeten:

    #define SS_DBA_GRP "dba"
    #define SS_OPER_GRP "oper"
    #define SS_ASM_GRP ""
    
  • ORA-01031: insufficient privileges in the work of snapshot

    Hello
    10 gr 2 on Win 2003, I have the following error in alertlog:
    Wed Jan 25 21:00:01 2012
    Errors in file t:\oradba\admin\pods\bdump\DB_j001_3836.trc:
    ora-12012 error on auto execute of job 4111
    ORA-01031: insufficient privileges
    ORA-06512: à "SYS.DBMS_SNAPSHOT", ligne 2254
    ORA-06512: à "SYS.DBMS_SNAPSHOT", ligne 2460
    ORA-06512: à "SYS.DBMS_IREFRESH", ligne 683
    ORA-06512: à "SYS.DBMS_REFRESH", ligne 195
    ORA-06512: à ligne 1
    I'm looking for which snapshot or whose employment has been? We have so many shots. I have querried dba_jobs but:

    Select * from all_jobs of employment where = 4111
    no selected line.

    Thank you.

    Wed Jan 25 21:00:01 2012
    Errors in the t:\oradba\admin\pods\bdump\DB_j001_3836.trc file:
    error ORA-12012 on auto work 4111
    ORA-01031: insufficient privileges
    ORA-06512: at "SYS. DBMS_SNAPSHOT", line 2254
    ORA-06512: at "SYS. DBMS_SNAPSHOT", line 2460
    ORA-06512: at "SYS. DBMS_IREFRESH', line 683
    ORA-06512: at "SYS. DBMS_REFRESH", line 195
    ORA-06512: at line 1

    Check also any planned Mview job or not

    SQL > select master, mview_name, dba_mviews LAST_REFRESH_DATE;

    If you find this job, check the query in the same point of view, if she has privileges to select/change according to the application.

    Thank you.

  • ORA-01031: insufficient privileges on the addition of constraints

    Hello

    I'm working on Oracle 11.2.0.2.0 and AIX.
    I'm just trying to alter a table to add the foreign key constraint by using...

    ALTER TABLE USER1. TAB1 ADD CONSTRAINT TAB1_TAB2_FK FOREIGN KEY (CUST_ID) REFERENCES USER2. TAB2 (TAB1_ID) ACTIVE;

    TAB1
    Cust_id (child table FK)

    TAB2
    TAB1_ID (PK)

    but I'm getting

    ORA-01031: insufficient privileges

    I gave all select, insert, update for the USER1 user on all the tables of the verse even vise user2...

    even, I gave grant dba to user1 and user2... as well...
    I tried to run sql even as sysdba but getting same message...

    Any idea what I can do... where I need to make changes...?

    Try

    grant references on user2.tab2 to user1;
    
  • Privilege for the creation and deletion of the indexes on all the tables/diagrams

    Hello

    I have a database running on the HPUnix bit ia64 platform. The version of the db is 10.2.0.3
    I have a schema named DPYBATCH.

    I need grant creation/deleting indexes on all the tables/diagrams.
    I know create a clue will solve the purpose of the creation. But I am confused with deleting indexes.

    If I give-> GRANT CREATE ANY INDEX OF DPYBATCH, it will not solve the purpose. He will have the privilege to be able to delete/move the index as well?
    If this is not the case, what is the privilege to grant to delete/move the index. Please let me know!

    Thank you!

    You must use DROP ALL INDEX: http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_8015.htm#i2066885.

  • OK... whenever I go to the creation of windows dvd, I select all the files and all the items, I would like to add... the style of the menu favorite... but then I click on burn, then it is said that I have to choose a dvd burner or make sure that one is in

    Windows vista DVD maker, home premium one... I used it before and it even worked... but now it doesn't, and the sign above keeps poping up

    Hello

    I just fix and I want to help other people to:

    I'm using Win7 x 64 RC

    the same clean "BURNER NOT FOUND"!

    1 - Go to the Device Manager "do right click in the icon my computer."
    2 - Select DVD /CD-ROM
    3. disable all virtual rom you like "farston Virtual cd or dvd driver image.
    4. it will be said, you need to restart your PC after a reboot, your DVD maker it will burn corect!
    and now im burning my DVD!
    After that finsh, you can re-enable the virtual DVD/Cd...

    I know its annoying whenever you want to create a dvd, you need to do this step! and if I find another solution, I'll post it here...

  • Creation of interface that won't use c $ table while getting data from one table to the other.

    Hello

    That was the question asked in an interview.

    Given the scenario has been that I have two servers say s1 and s2, each containing a database with tables source1 and source2 respectively...

    And I have a target table on server 2 with name target 1.

    Cent were as

    1 can data ufetch target1 source1 without creating table C $? If Yes, how can it be achieved.

    2. how temporary will be created all to get ata in source1 and source2 to target1? Explain the same thing?

    Also I would like to know what is the actual use of the c arrays $? Why they are used.

    I would be very grateful for answers.

    Thank you and best regards,

    Mahesh

    Hello

    Look at these links.

    http://odiexperts.com/why-creating-a-separate-schema-for-temporary-tables-in-ODI/

    Also this

    http://odiexperts.com/direct-load-by-interface-with-no-work-tables/

    Concerning

  • Backup file on my personal profile to an external hard drive impossible. I get an error saying "the directory is read-only, please select another.

    Was able to backup from the Admin profile.

    Manufactures States problem is a file or a parameter block transfer, maybe a problem of attrib file. How to find the problem to be fixed.

    Last backup in the month of August without problem.

    Not aware of any major changes to the computer, can have added AVG anti virius since the last update protection.

    Hi LovingMN,

    · What is the full error message that you receive?

    · What type of backup you make?

    · Are there data saved on the external hard drive?

    Change the attributes of the file. You can check the link for the steps below: how to set, view, change, or remove special permissions for files and folders in Windows XP: http://support.microsoft.com/kb/308419

    This can also be caused by the destination drive. If there is no data saved on the external hard drive, you can format the drive and then try to save and check the results.

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Treatment of the variables in ColdFusion that resides inside a database table

    One of my table stores an HTML form that contains the coldfusion variables. In my code I question this table and I need display the form in the front. But while dsiplaying, I'm getting the coldfusion variable name itself instead the transformed value of the variables.

    HTML form stored in the db table:

    ================================

    < do action = "" name = "ci_entry_form" id = "ci_entry_form" method = "post" > "

    < table width = "100%" height = "100%" border = "0" >

    < b >

    < td align = "right" > < style b = "color: red" > * < /b > < class label = "pop_up_letter_font" > G/L #: < / label > < table >

    < td > < input class = "pop_up_textbox" type = "text" name = "gl_number_text" id = "gl_number_text" maxlength = value = "#ARGUMENTS.chkDetails.GL_ACCT_NBR #"21"" required / > "

    < select class = "pop_up_dd" name = "gl_number_drop" id = "gl_number_drop" onChange = "enableDisableGL ()" >

    < option value = "" > - Select - < / option >

    < option value = "new" > enter a new G/L number < / option >

    < cfoutput query = "glNumbers" >

    < option value = "#glNumbers.GL_ACCT_NBR #" > #glNumbers.GL_ACCT_NBR # < / option >

    < / cfoutput >

    < / select >

    < table >

    < /tr >

    < /table >

    < / make >

    Method (cffunction) contains the code to query the html form for the db table and return the form html below.

    ========================================================================================== ==

    < name cfquery = "qry_getTemplate" datasource = "#APPLICATION.dsn #" >

    Select FORM_TXT in the HTML_FORMS where REQ_ID = 172

    < / cfquery >

    < cfsavecontent variable = "form_content" >

    #qry_getTemplate.FORM_TXT < cfoutput > # < / cfoutput >

    < / cfsavecontent >

    But when I dump the cfcontent (form_content) variable I get the HTML form without transformation of the coldfusion variables (* #ARGUMENTS.chkDetails.GL_ACCT_NBR #, #glNumbers.GL_ACCT_NBR #*).

    I'm missing something. Can someone help me solve this problem.

    Your timely help is well appreciated.

    Thanks in advance.

    Add the cfoutput tag:

  • How to create a signature to emails customized with the fonts and colors that I select instead of the default values?

    create a snazzy to my e-mail signature

    Hi, I want to create a signature in my windows mail email... He will be only with the police, which is the standard... How do I create a jazzy, as have the font and the color I want? Thank you

    Note: The HTML Signatures must be less than 4 KB.

    Open a new Message window and create your signature. (Insert the graphic & text). Click on the Source tab (view |) Source Edit if not already checked). Highlight the complete source code and copy / paste into Notepad. File | Save under and in the file name field, save as htm, (i.e. Sig1.htm). It will be saved in My Documents by default. Go to tools | Options | Signatures. Click: File | Browse and insert your saved signature | Apply. You can now rename it if you wish.

    Of course, if the recipient reads in plain text, they don't see the it.

Maybe you are looking for

  • Satellite U400: Installation of XP and change the partitions

    Hello! First of all, sorry for my English, it is not good, I hope you understand me! I have a Satellite U400, and I would like to create a partition to install XP and have a dual boot with Vista. My first question is:I have seen that it is possible t

  • HP1510 0 x 00000709 can not set as the default printer

    I installed my new HP1510 printer on computer with Windows 7, but I can not set as default in Control Panel printer, get error message 0 x 00000709. This means I can't print a PDF file as my previous printer, which I uninstalled it, is always shown a

  • GPIB-ENET/100

  • Generate the Application 7 error

    Hey everybody, I had a computer problem, and HE had to reinstall some hardware on my PC - now when I try to compile the application it comes up with error 7, no matter where I put it. It seems that is not the creation of the file at the destination.

  • Installation of windows update command

    Windows Server 2003 SP2 file server role. I plan to install updates (and reboot) to the file server. It's some time I do not install because of the high availability, so I have many updates to install. What I want to do, is to install 4, 5 updates on