Grants for a procedure to create a snapshot

Hi Forum,
I'm struggling with identifiying the necessary system rights to enable a procedure to create a snapshot using execute immediate.
Is anybody aware of the grants which have to be assigned to the user owning that proc?
Thx for any help,
Juergen

Hi,
sure:
I'd like to execute a statement such as the following:
Execute Immediate ('
create materialized view test_mv
start with sysdate
next round(sysdate + 1) + 2/24
as <select-statement>');
the statement works well if I send it to the database directly but fails with error 'insufficient rights' when executed from within a proc using the above kind of statement.
I granted 'CREATE ANY SNAPSHOT' to the owner of the procedure already.
Best regards,
Juergen

Similar Messages

  • Creating a job for a procedure with an input parameter

    Hi,
    I want to create a job for a procedure ( sp_proc ) with a input parameter.
    The input parameter is a date value.
    As per the syntax for dbms_job.submit procedure;
    dbms_job.submit (
    job IN BINARY_INTEGER,
    what IN VARCHAR2,
    next_date IN DATE,
    interval IN VARCHAR2 DEFAULT 'NULL',
    no_parse IN BOOLEAN DEFAULT FALSE);
    How should the procedure be declared in the 'what' parameter of the dbms_job.submit procedure ?
    Please guide.
    Thanks.

    Hi,
    You are wright, I have found this thread [DBMS_JOB -- how to pass parameters to the job|http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:351033761220].
    Regards,

  • Table Name for Partner Determination Procedure and created by data

    Dear Gurus,
    kindly let me know the table name for a list of "Partner Determination Procedure" and "created by" data under a client.
    if there is no such  table for this, kindly let me know how can i fetch these details.
    Wishes,
    Abhishek

    Hi Abhishek,
    You can get your required information by combining these 2 table by using SQVI
    TPAER where it gives PartnDet.Proc and Part.funct.
    TPAR where it gives Part.funct inforamtion.
    By using these tables i.e. by using Common field Part.funct. - PARVW
    Regards
    Durga Sana

  • Create filter for Prcing Procedure in Business Object

    in the intial Download, I need to download Pricing procedure from r/3. but I need to give criteria, which are the tables i need to give criteria.
       in intial dowload it overwrites the data or append?
    Please give the information asap.

    Hi,
    i'm coming from z/OS and there it is not allowed to create a synonym for a procedure, only tables or views:
    >-CREATE SYNONYMsynonym--
    >FORauthorization-name.--table-name-----
    >
    >......................................... '-view-name--'                                                                               
    Looking around in the IBM infocenter for LUW i didn't find any syntax diagram.
    regards
    Kay

  • Giving grant for creating temporary table only

    hi...
    i want to give grant for creating only temporary tables to a schema.
    no other grants should not be there strictly...
    I have created the following user widout any grants...plss suggest me how can i give the grants for creating only temporary tables..
    create user user_name
    identified by password
    default tablespace table_space
    temporary tablespace TEMP
    profile DEFAULT
    quota unlimited on table_space;
    grant select on V_$SESSION to user_name;
    thanks...
    Edited by: user12780416 on Mar 25, 2011 8:32 AM

    As has been pointed out, it would be **extremely** unusual to want to have a user that could create global temporary tables but not permanent tables. I'm very hard-pressed to imagine a scenario where that would make sense.
    However, if you grant the user the CREATE TABLE privilege but do not grant the user quota on any permanent tablespace, they would be unable to create permanent tables but should be able to create global temporary tables. You'll have to make sure that you don't grant the user UNLIMITED TABLESPACE which would give them unlimited quota on all tablespaces. If you are using 11g and you have enabled deferred segment creation, the users would actually be able to create tables in tablespaces they have no quota on though they would not be able to insert any data in those tables.
    Justin

  • Problem in creating Release group for Release Procedure for PR

    Hi Experts,
    I could not able to create Release Group ( 01 & 02 ) for Release Procedure and assigning it with a Class
    ( Z_CLASS_PR ) in Set up Procedure with Classification.
    The following error is getting displayed.
    Please check release classes (see long text)..
    How to over come this problem.
    Thanks in advance.
    Regards,
    Nani

    Release group:
    You are only allowed to use one class for each release object (1=PReq, 2=Purchase order). When you use the overall release (as of Release 4.0A), you are only allowed to use one class for the overall release or individual release. If you use the overall release for purchase requisitions, you must mark this for the document type (transaction OMEB, flag for V_T161-GSFRG) and the release group (transaction OMGQ, flag for V_T16FG-FRGFG). In the overall release, the system only takes into account characteristics that are identical for all items. If, for example, item 10 of a purchase requisition contains material group 001 and item 20 contains material group 002, the material group is set to BLANK for the strategy determination.

  • Want to create unix shell script for  Clone procedure in 11i and r12

    Want to create unix shell script for Clone procedure in 11i and r12 .Can anyone help me on this as I m new to oracle apps and scripting.
    Thanks in advance .

    user11958935 wrote:
    Thanks but I want it for application cloning ie adcfgclone and autoconfig etc .Please see old threads for similar topic/discussion.
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Automate+AND+Rapid+AND+Clone&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Automate+AND+AutoConfig&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Request for Step by step procedure to create SRM User in detail

    Hi All,
    Could you please provide Step by step procedure to create SRM User in detail.
    I have completed the following:
    1. I created SU01 User.
    2. I created Root Organistaion with PPOCA_BBP.
    3. I went into PPOMA_BBP Tr. code and added Organisation structure like Root Organisation -> Organisation for Company Code -> Organisation for Pur Org -> Organisation fro Pur Group -> Position.
    4. I got struck at assigning BusinessPartner for each organisation and creating Cntral Person
    Plase provide further steps to copmplete SRM USer creation.
    Thanks in advance,
    Regards,
    Siva

    Hi
    Are you using USERS_GEN transaction in SRM to create users ? Please read the SAP documentation in this case associated with the transaction using SRM GUI logon..
    Which option do you use in USERS_GEN : file upload ?
    In your case where the "US" (User) link is missing: is the SU01 user created ? Wasn't is already created before USERS_GEN ?
    If the system is not able to create the CP <-> US relation, you should get back an error message in USERS_GEN.
    Please go through the related very helpful pointers ->
    Central Person
    Re: Error while assigning user to a position
    Re: How to assign contact person user id to Vendor uploaded from ECC?
    Re: Central Person already exists
    Re: Correct relationships not being created from USERS_GEN
    Business Partner(BP) and Central Person(CP) distribution
    Contact person of vendors created inconsistently in my organizative structu
    Please revert in the event of any query.
    Regards
    - Atul

  • Why doesn't the "grant execute any procedure" work?

    Hi to all.
    I want to grant the execute privilege for all SYS schema functions/procedures. To achieve it I do the following:
    SQL> connect sys/*****@orcl
    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
    Connected as SYS
    SQL> create user test identified by test;
    User created
    SQL> grant create session to test;
    Grant succeeded
    SQL> grant execute any procedure to test;
    Grant succeeded
    According to the [http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_9013.htm] the "grant execute any procedure" - grants Execute procedures or functions, either standalone or packaged.
    So, the steps seem to be right. Then, I try to connect to the test user and execute any procedure from the SYS schema, for example, dbms_lock.sleep:
    SQL> connect test/test@dizzy/orcl
    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
    Connected as test
    SQL> begin
    2 sys.dbms_lock.sleep(1);
    3 end;
    4 /
    begin
    sys.dbms_lock.sleep(1);
    end;
    ORA-06550: line 3, column 1:
    PLS-00201: identifier 'SYS.DBMS_LOCK' must be declared
    ORA-06550: line 3, column 1:
    PL/SQL: Statement ignored
    So, the execution fails due to insufficient rights. However, the direct grant on the sys.dbms_lock works!
    SQL> connect sys/*****@dizzy/orcl as sysdba
    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
    Connected as SYS
    SQL> grant execute on dbms_lock; to test;
    grant execute on dbms_lock; to test
    ORA-00911: invalid character
    SQL> grant execute on dbms_lock to test;
    Grant succeeded
    SQL> connect test/test@dizzy/orcl
    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
    Connected as test
    SQL> begin
    2 sys.dbms_lock.sleep(1);
    3 end;
    4 /
    PL/SQL procedure successfully completed
    So, to be sure that the grant on any procedure from the definite scheme is given, should I avoid giving the execute any procedure grant?
    P.S. Is there any special tag for code?
    Thanks in advance.

    Sybrand, thank you for the reply.
    You are right. I tried to connect by another user NOT SYS and created the function:
    SQL> create user testic identified by i;
    User created
    SQL> grant create session, execute any procedure to testic;
    Grant succeeded
    SQL> create or replace function get1 return number is
      2  begin
      3  return 1;
      4  end;
      5  /
    Function created
    SQL> connect testic/i@orcl
    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
    Connected as testic
    SQL> select get1 from dual;
    select get1 from dual
    ORA-00904: "GET1": invalid identifier
    SQL> select kaisa_rgali.get1 from dual;
          GET1
             1Thank you for the tag. This's exactly what I asked about.
    Finally, I tried t open the hyperlink http://download.oracle.com/docgs/cd/B10501_01/server.920/a96521/privs.htm but it failed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Use a Procedure to create a DB User.

    I would like to know if there is a way to create a procedure that, in turn can be passed a parameter from a form and create a DB user (ie. create user XYZ identified by ABC). I am trying to create an application were the user could enter a few simple parameters and push a button that would call a procedure to create the user, add the profile, etc.. I am getting an error when trying to compile the procedure because of the "create user" statement. If it can't be done, is there another option that I could use?
    Thanks for any input.

    Hi,
    The answer is to use the dbms_sql package that comes with your DB.
    Yet, creating users and granting quotas in tablespaces is the BDA's job. And it is a serious job that can't be given to any luser.
    So, my advice is that you should put it in different way.
    Try to use roles, and have a limited number of Oracle users.
    If this doesn't do it, your application may have its own security layer, where you'd have "application-users" with their own passwords and roles. This is what we did, so that the lusers running the application don't even know the Oracle username and password (these being retrieved using stored procs that they don't know how to use).
    Regards,
    BD.
    null

  • How do I create a Snapshot without testing query?

    I'm working in an environment where the connection to the database server is done through a VPN that is sometimes broken and I have to wait for some time until it is restored. Other times, the database server is just down and in maintenance.
    In the meantime, I have to work with Director installed in a local virtual machine in my laptop.
    So, now I'm trying to develop some EDQ processes when there is no connection to the database, I'm unable to save snapshots because they require a test to occur (clicking in the Test button) before saving them, even if I'm providing a full SQL query to snapshot. I think it's because Director needs to know stuff like the data types of the columns to initialize properly the fields in the process.
    The problem is that I can't stop working just because there is no VPN. I should be able to create the processes and test them later when connection to the database is restored. I can do a lot of stuff (I can even copy-paste snapshots!) but I can't change nor create new ones, and that blocks me constantly.
    How can I do a snapshot save without database connection and have Director asking me the datatypes instead of trying to guess them from a "Test"?

    Hi,
    You can't create a snapshot without a connection to the database. A connection is needed when a snapshot definition is created in order to retrieve the column names and data types. As a solution to your problem, why not use data interfaces? Create a data interface that is of the required shape and refer to this in your processes (instead of the snapshot). You can then create mappings to different sources of data, e.g. snapshots, reference data, etc. You can test your processes when you're offline using a reference data mapping.
    regards,
    Nick

  • How to create a snapshot report on the specific destination?

    dear all
    How to create a snapshot report on the specific destination?
    thanks
    john

    user8779435 wrote:
    dear all
    How to create a snapshot report on the specific destination?
    thanks
    john
    Hi,
    when prompted just input the full path with filename for example
    Enter value for report_name: /tmp/awrreport.htmlHope this helps
    Cheers

  • Unable to create a snapshot in OAMCM

    Hi all,
    I have done the installation and configuration of OAMCM.
    I have created 4 environments and now when i am trying to create a snapshot for the environments i am getting the below error message.
    "- Snapshot of Config Data Failed[LDAP: error code 4 - Sizelimit Exceeded]"
    Please let me know your comments on this why i am getting this error.
    Thanks in advance.
    Siva Pokuri.

    Hi,
    Can any one..???

  • Creation of Routine for SD for Pricing procedure.

    Hi all,
    I am having a requirement from SD for creating a routine and to fix that in Pricing procedure as a requirement. So that when ever the sales order will be created by an user, and whenever the user selects that particular condition it should execute in the manner in which the routine is written.
    Can you all please help me to write routines and how to asign this routine to the condition?
    regards
    Vinod

    The procedure to create the new VOFM.
    1. Go to VOFM transaction
    2. Page down until you find a new spot on the page to put in the VOFM number and description.
    3. Put in the VOFM number and the description of the VOFM.
    4. Now the VERY IMPORTANT part of the process. Double click on the VOFM description not the VOFM number to create this as a Development/Correction and not as a repair. If you double click on the number then this copies some existing code and prompts you for a repair.
    5. Activate and generate the VOFM routine. Note: Configuration must be setup by the OM team for this step.
    for example Go to the routine number that needs to be copied.
    Put your cursor on the routine number field that needs to be copied.
    Overwrite that number with your new routine number and hit enter.
    The new routine will be created as a copy of the old routine and you can modify the new routine as you need it.
    Ex.
    You have to copy routine 104 to 904
    Routine number Description Active
    104 Bill.bus.item data X
    Put your cursor on 104 and then change it to 904 and hit enter.
    904 will be created as a copy of 104 and you can make your changes in 904.
    Don't forget to activate it after you are done.
    refer the below link
    https://forums.sdn.sap.com/click.jspa?searchID=3604222&messageID=994791
    Regards

  • Hyper-V creates hidden Snapshots - Howto merge

    First of all, is there a possibility to give information about a bug to microsoft without paying?
    As I haven't found one (which would be really NOT customerfriendly) and I hope to help others I will post my problem and solution here.
    Today our productive server which is a vm on a hyper-v host ran out of hdd space which was quite confusing for us as the assigned size of the disk is much less then the space the physical disk on the host has.
    The hyper-v manager didn't show any snapshots. In the filesystem we saw a vhd AND a avhd file, the avhd file being the newer one and causing the error as it took all the space left on the disk.
    We do NOT know where this avhd file comes from (maybe microsoft or some of you know how this could have happened?) but here comes the solution how I managed to merge the vhd and the avhd file.
    I created another snapshot. So now I had two avhd files and one vhd file. Now I also saw at least the LAST snapshot in the hyper-v manager. I deleted this last snapshot in the hyper-v-manager (DO NOT DELETE THE AVHD FILE IN THE FILESYSTEM!) and started merging
    the snapshot and the vhd. In this merging process also the hidden snapshot is merged and both avhd files dissappear and diskspace is free again.
    Reserve some time for the merging process - it took me about one hour.
    I'm quite alarmed about that now as we are just bying a new server and wanted to use hyper-v again. Would be really helpful to know where this hidden snapshots come from and how to avoid them so we can decide if we should stick to our decision to use hyper-v.
    Also I feel very unhappy with the fact that there iseems to be no possibility to contact microsoft without paying even if there seems to be a bug in their OS.
    Best regards,
    Tina

    Hi Tina, There are a few possibilities here.  The Virtual Server could have been moved from a previous Version of Hyper-v, leaving the AVHD file inplace, this wouldn't show up in the new hyper-V console.
    Or some backup solutions create independent snapshots, which are using to backup online Virtual servers
    Have you moved your Virtual Servers recently to new hardware ? you don't mention what version of Server your are using 2012 ? 2008R2 , 2012R2 ?.
    Also if you delete a snapshot on 2008R2, the snapshot can stay there until you power off the virtual server. at which point it then automatically merges back into the original VHD.
    When you delete a snapshot, the .avhd files that store the snapshot data remain in the storage location until the virtual machine is shut down, turned off, or put into a saved state. As a result, when you delete a snapshot, you will need to put
    the production virtual machine into one of those states at some point to be able to complete the safe removal of the snapshot.
    http://technet.microsoft.com/en-us/library/dd560637(WS.10).aspx
    thanks
    Mark

Maybe you are looking for

  • Calendar theme editing?  Changing layout of Calendar photo's.

    I want to rearrange photos on calendar in a slightly rotated layout. That is not perfectly vertical or horizontal. I want to lay them on the calendar in MY arragnement rather than the canned layouts from Apple. Is there anyway to rotate photos just a

  • Magic Mouse on a G4 computer

    My buddy has a 400 MHZ Power PC G4. It has 704 MB SDRAM and 10.4.11. I want to use a D-Link Bluetooth adaptor (usb) to have him be able to use a bluetooth mouth and keyboard on his computer. I had thought that all I would have to do was load the soft

  • Help! I just trashed my hard drive

    There are 2 hard drives in my G4. One is for my applications and the other is a 300 GB drive that had 4 partitions and lots of data: digital photos, iphoto, imusic, and other. I just downloaded some photos from a card. Normally, after downloading, th

  • Sound not working macbook pro

    I am unable to controll the speakers on my Macbook Pro 13" Mid 2012. But when i have headphones in my sound is fine. When i try to controll the volume on my keyboard there's just a "/" over the sound icon Any help appreciated

  • Calling C++ code from Flash/Flex

    Hi everybody! Does anyone know how to call a DLL (C++) -function in Flex or Flash with Actionscript, or any other (easy?) way to access C++ code? I love developing in Flex, but actionscript is an easy language with some restrictions, so that's why i'