Sys privileges needed to execute dbms_wm package

What (if any) system privilege does a user need to be grant in order to execute dbms_wm.* besides WM_ADMIN_ROLE and without using the dbms_wm.GrantSystemPriv procedure?

As sys you should only grant execute on sys.dbms_metadata package and have the select_catalog_role assigned.
~ Madrid

Similar Messages

  • Privilege error while running dbms_wm package

    Hi,
    I just built an database server with window 2003, oracle 10.1.0.4 with 10.1.0.2 version of oracle workspace manager. I imported my database (with the same DB versions) however I'm not able to execute the dbms_wm commands. My test user has the wm_admin_role and is able to enable and disable versioning however, I can not create a workspace. I get the following error when I attempt to run dbms_wm.GrantSystemPriv logged in as any DBA user with wm_admin_role:
    ora-20076: insufficient privileges to grant priv_ANY_WORKSPACE
    ora-06512: at "SYS.LTPRIV"
    ora-06512: at "SYS.LTPRIV"
    ora-06512: at "SYS.LT"
    I am able to select dbms_wm.getworkspace from dual and 'LIVE' workspace is returned. However, if I attempt to run dbms_wm.gotoworkspace('LIVE') it returns
    ora-20122: workspace 'LIVE' does not exist
    Any info is greatly appreciated...
    TCT

    Hi,
    Were there any versioned tables in the original database that were being imported into your new database ? I can't say for sure based on the information that you provided, but I would guess that something happened during the import that left the database and/or workspace manager in an incompatible state. The fact that you can not even goto the LIVE workspace suggests that the basic metadata needed by Workspace Manager to function properly is not present.
    If you are not importing any versioned tables into your new database, you may also be able to fix this by uninstalling workspace manager, and then reinstalling it.
    If that is not possible, I would suggest filing a TAR on this as they would be better able to collect the necessary information needed to resolve the issue. This would include a log of the export/import as well as a trace of the GrantSystemPriv, GotoWorkspace procedures.
    Regards,
    Ben

  • Error when execute a package from SQL Server Agent

    We have the next problem:
    When we execute a package from a Job of SQL Server agent, it shows the success messege, but reviewing the results, the package didnt do all the tasks.
    When we run it mannually by MSIS the package, it shows the success message and it works fine.
    The workflow of the package is :
    1) Shrink the databases (executing a sql file)
    2) Backup the databases (Back up Database task of MSIS)
    3) Rename the files to .BAK extension (by the Foreach loop container and fyle system task)
    4) Execute command to compress the it (by a .bat)
    5) Move the compress file to another location  (by another Foreach loop)
    Manually run correct, but when is a a SQL AGent Job that execute the package it does only the first 2 steps.
    we are ussing Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (X64) Jun 17 2011 00:54:03 Copyright (coffee) Microsoft Corporation Enterprise Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) 
    We are using a user with administrator privilegies
    Cheers 

    Can you check if account running package has proper access. You may need to define a proxy account for that.
    See
    http://www.databasejournal.com/features/mssql/article.php/3789881/Proxy-Accounts-in-SQL-Server.htm
    http://gqbi.wordpress.com/2014/01/30/setting-up-a-proxy-account-to-run-sql-server-integration-services-ssis-2012-packages/
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Privileges needs for EnableVersioning/Disable Versioning

    Hi ..
    Does anyone know which privileges a users needs to have to able to successfully execute dbms._wm.EnableVersioning and dbms_wm.DisableVersioning ?
    I have the wm_admin_role granted to this user , and the user has resource as well. Create Table and Create Sequence has also been explicitly granted. Cannot do enableversioning or disableversioning successfully though.
    Thanks
    Pierre

    Hi Pierre,
    What errors are you getting when you execute dbms_wm.EnableVersioning and dbms_wm.DisableVersioning? After the error occurs if you query the all_wm_vt_errors view, that would tell you exactly which statements are failing.
    This information should allow me to tell you exactly which privileges are missing, if that is the source of the error. Also, what version of the database and Workspace manager are you using?
    Regards,
    Ben

  • Error while executing a package in ODI

    Hi,
    I am new to Oracle technology and when i am trying to execute one package through Oracle Data Integrator i am getting the below error. Even when i am trying to execute the procedure 'GENERATE_NAT_KEY' i am getting the error
    ODI-1228: Task Generate Natural Key (Procedure) fails on the target ORACLE connection ORACLE_OII.
    Caused By: java.sql.SQLSyntaxErrorException: ORA-00904: : invalid identifier
    ORA-06512: at "OII_ST.GENERATE_NAT_KEY", line 65
    ORA-06512: at line 2
    I am not able to figure out the issue. Can any one help me in this regards.

    Hi;
    You have to login https://support.oracle.com/CSP/ui/flash.html and you have to CSI account.
    This site is oracle site for tech. documents for can rise SR etc.. for more details please check Re: Installing Oracle Database 10.2.0.4
    you need to customer support identifier which is called CSI for can login metalink(https://support.oracle.com/CSP/ui/flash.html)
    If you dont have metalink account there is no way to see that doc.
    Pretty simple process:
    1) You purchase a perpetual or term license from Oracle;
    2) At the beginning of the period, during the valid term you purchase
    Support for the period (1 year);
    3) Oracle sends you the CSI.
    Easy to do at http://store.oracle.com armed with a credit card.
    Regard
    Helios

  • Need to run the package

    Hi friends,
    i need to run a package which will send a mail as soon after it runned. I have a package. But i need to run that package for each and every 10 min in a day. For that how i can create a job to execute that package.
    As a result of the job for each and every 10 min ill be receiving a mail. How to create a job to execute my package for every 10 min.
    Regards,
    Mini

    Hi srikanth and hoek,
    Thanks for your reply.
    i dont know why the job is not running and executing the package.
    if i compiled the package separately means, i can able to execute it successfully and also im receiving mails correspondingly.
    begin
    it_check_overdue_issues.email_overdue;
    end;But if i tried to execute the above package using a job means, it is not running corresponding to the time and also not receiving emails. This is my DBMS_JOB query that i used, it is compiling successfully without errors, but not working what is wrong with it.
    DECLARE
        jobno number;
    BEGIN
        DBMS_JOB.SUBMIT(
            job => jobno,
            what => 'BEGIN it_check_overdue_issues.email_overdue; END;',
            next_date => SYSDATE,
            interval => 'SYSDATE + (2/1440)');
        COMMIT;
    END;Regards,
    Mini

  • Execute SSIS Package from JOB which contains Execute Process Task calling a .bat file

    Hi All,
    I have a EXCEL Macro needs to be called from SSIS. We could not use Script task because of some internal reason.
    So we have taken an approach to call a .BAT file using Execute Process Task. This .BAT file will call a .VBS file which will execute the EXCEL Macro.
    The SSIS Package is running good if I execute the package from BIDS.
    But the real problem is with the scheduling this SSIS Package using SQL JOB.
    If i execute this SSIS package from SQL Server Job, its executing the whole package successfully except the Execute Process Task.
    So the overall issue is SQL Server Job is not executing properly if I call any .BAT file from the SSIS Package.
    Please give me suggestion to get rid of the issue. Thanks in advance.

    Hi Sai.N,
    If you run the SQL Server Agent job manually from SSMS, does the package execute properly? If the package executes properly when you run the job manually, the issue should occur due to permission issue. In this case, I suggest that you create a SQL Server
    Agent proxy based on the current Windows account which you use to log onto the operating system, and run the job under the proxy account.
    If it is not the issue, please enable logging in the package as Visakh mentioned and post the warning/error message for further analysis.
    Regards,
    Mike Yin
    TechNet Community Support

  • Getting Error while Execute SSIS Package from Console Application

    Dear All,
    SSIS package working fine directly.
    I got following error while execute SSIS package from C# console application.
    The connection "{79D920D4-9229-46CA-9018-235B711F04D9}" is not found. This error is thrown by Connections collection when the specific connection element is not found.
    Cannot find the connection manager with ID "{79D920D4-9229-46CA-9018-235B711F04D9}" in the connection manager collection due to error code 0xC0010009. That connection manager is needed by "OLE DB Destination.Connections[OleDbConnection]"
    in the connection manager collection of "OLE DB Destination". Verify that a connection manager in the connection manager collection, Connections, has been created with that ID.
    OLE DB Destination failed validation and returned error code 0xC004800B.
    One or more component failed validation.
    There were errors during task validation.
    Code : 
       public static string RunDTSPackage()
                Package pkg;
                Application app;
                DTSExecResult pkgResults;
                Variables vars;
                app = new Application();
                pkg = app.LoadPackage(@"D:\WORK\Package.dtsx", null);
         Microsoft.SqlServer.Dts.Runtime.DTSExecResult results = pkg.Execute();
    I have recreate the application with again new connection in SSIS.
    Still not working, Please provide solution if any one have.
    DB : SQL Server 2008 R2
    Thanks and regards,
    Hardik Ramwani

    The connection "{79D920D4-9229-46CA-9018-235B711F04D9}" is not found. This error is thrown by Connections collection when the specific connection element is not found.
    Cannot find the connection manager with ID "{79D920D4-9229-46CA-9018-235B711F04D9}" in the connection manager collection due to error code 0xC0010009. That connection manager is needed by "OLE DB Destination.Connections[OleDbConnection]"
    in the connection manager collection of "OLE DB Destination". Verify that a connection manager in the connection manager collection, Connections, has been created with that ID.
    Are you sure that you are running the same package via .NET which works fine from Visual Studio?
    By reading error message, I can say that you have copied OLEDB task from another package OR you have deleted one OLEDB connection manager. Now when package is run this task tries to use the connection manager and not found thus throws error message.
    Open all OLEDB destination tasks and you find connection manager missing. Connection Manager name should be provided there
    Cheers,
    Vaibhav Chaudhari
    MCSA - SQL Server 2012

  • Problem dequeueing even with sys privilege - DEQUEUE ANY

    On one database instance we are seeing this; Connected user has DEQUEUE ANY sys privileges;
    However, a dequeue fails saying insufficient privileges; This works on other database instances?
    Any ideas? This is with database - (10.2.0.3.0 - 64bit Production)
    Thanks
    Vijay
    SQL> select * from USER_SYS_PRIVS;
    USERNAME PRIVILEGE ADM
    PUBLIC DEQUEUE ANY QUEUE NO
    PUBLIC ENQUEUE ANY QUEUE NO
    PUBLIC DEBUG CONNECT SESSION NO
    PUBLIC DEBUG ANY PROCEDURE NO
    PUBLIC SELECT ANY DICTIONARY NO
    6 rows selected.
    SQL> DECLARE
    2 dOpt dbms_aq.DEQUEUE_OPTIONS_T;
    3 mprop dbms_aq.message_properties_t;
    4 deq_msgid RAW(16);
    5 payLoadData MyPayload;
    6 BEGIN
    7
    8 dOpt.wait := 1;
    9
    10
    11 dbms_aq.dequeue(
    12 queue_name => 'MyQueue',
    13 dequeue_options => dOpt,
    14 message_properties => mprop,
    15 payload => payLoadData,
    16 msgid => deq_msgid);
    17
    18 END;
    19 /
    DECLARE
    ERROR at line 1:
    ORA-01031: insufficient privileges
    ORA-06512: at "SYS.DBMS_AQ", line 335
    ORA-06512: at line 11
    SQL>

    Thanks for the comment;
    I don't think this is a design flaw; Design is such that queues are owned by a separate
    schema user; Our install/upgrade architecture requires that the DDL be executed by
    a separate user. This prevents me from granting object level privileges on the queues
    because they have to be granted as the owner of the queue; I get around that by
    granting "DEQUEUE ANY QUEUE" sys privilege which can be granted by a non
    queue object owner (by SYS or DBA).
    See this related topic.
    Granting queue privileges as a DBA user to queues not owned by DBA
    Also, if this was a design flaw, then why would it work on other database instances?
    The fact that I am granting "DEQUEUE ANY QUEUE" to PUBLIC should be sufficient for
    any database user to dequeue the message.

  • How to Execute SSIS package through MySQL Procedure

    Hi Everyone,
    How to Execute SSIS package from MySQL Stored Procedure.
    Please share your suggestions on this.
    Regards,
    Vaishu

    I am not sure whether you have SSIS license version installed in the system where MYSQL is there. In order to run SSIS package we need to have DTEXEC executable file and it comes with SSIS license version.
    An SSIS package can be executed from command prompt as,
    C:\>dtexec /f E:\package.dtsx
    I am not expert in MYSQL however in TSQL we can run dos command or scripting language such as vbscript.
    Similarly you need to check in MYSQL. This is MSSQL Server forum.
    Refer
    http://www.ehow.com/how_8789576_call-ssis-package-vbscript.html
    http://www.mssqltips.com/sqlservertip/1775/different-ways-to-execute-a-sql-server-ssis-package/
    Regards, RSingh

  • Deployed Package Execution - Is there a way to execute a package a host has remotely through the client?

    If I have an Program/Package deployed to clients so they can manually run it as needed, is there a way I can remote execute that package on the targeted machine locally (but programattically) instead of having to interface with the SCCM server? 
    Like, through a WMI class or something?  Thanks.

    Well, Roger's client center is open source, so you can always download his code and look at how he's doing it.
    The SDK has a complete section on Software Dist:
    http://msdn.microsoft.com/en-us/library/cc143006.aspx
    Ultimately, everything is done using WMI so initiating WMI functions remotely is quite easy.
    This should get you started also:
    http://wbracken.wordpress.com/2009/10/13/vbscript-run-optional-sccm-advertisements/
    Jason | http://blog.configmgrftw.com

  • WHEN-TREE-NODE-SELECTED need 2 Execute-Query on Master-Detail data block

    I optimize tree using this link
    http://andreas.weiden.orcl.over-blog.de/article-29307730.html_+
    For huge amount of data (Accountings)
    All i need for now is
    WHEN-TREE-NODE-SELECTED need 2 Execute-Query on the data block
    DECLARE
    htree ITEM;
    node_value VARCHAR2(100);
    BEGIN
    IF :SYSTEM.TRIGGER_NODE_SELECTED = 'TRUE' THEN
    -- Find the tree itself.
    htree := FIND_ITEM ('BL_TREE.IT_TREE');
    node_value := FTREE.GET_TREE_NODE_PROPERTY( htree, :SYSTEM.TRIGGER_NODE ,  ftree.node_value  );
       GO_BLOCK ('GL_ACCOUNTS');
       set_block_property('GL_ACCOUNTS', DEFAULT_WHERE , 'ACCOUNT_ID ='|| node_value  );
    EXECUTE_QUERY;
    END IF;
    END;The above code is working fine 4 the detail block which is *'GL_ACCOUNTS'*
    when i substitute is Master block which is 'GL_ACCOUNTS_TYPES' it doesn't display all data
    Help is Appriciated pls.
    Regards,
    Abdetu...

    Hello
    In WHEN-TREE-NODE-SELECTED i modified the following code :_
    DECLARE
            htree ITEM;
           node_value VARCHAR2(100);
           parent_node FTREE.NODE;
    BEGIN
      IF :SYSTEM.TRIGGER_NODE_SELECTED = 'TRUE' THEN
      -- Find the tree itself.
      htree := FIND_ITEM ('BL_TREE.IT_TREE');
      -- Get the parent of the node clicked on. 
                  parent_node := FTREE.GET_TREE_NODE_PARENT ( htree, :SYSTEM.TRIGGER_NODE );
           GO_BLOCK('GL_TYPES');
                set_block_property('GL_TYPES', DEFAULT_WHERE , 'TYPE_ID ='|| parent_node  );
                  EXECUTE_QUERY;
      -- Get the detail of the parent node
          node_value := FTREE.GET_TREE_NODE_PROPERTY( htree, :SYSTEM.TRIGGER_NODE ,  ftree.node_value  );
               GO_BLOCK('GL_ACCOUNTS');
               set_block_property('GL_ACCOUNTS', DEFAULT_WHERE , 'ACCOUNT_ID ='|| node_value  );     
                   EXECUTE_QUERY;
          END IF;
    END;
    FRM-40350 : Query caused no records to be retrieved but i have records in the data base ...!
    Well, Do u think that's because in ur package i retrieve only the detail block ?
    Regards,
    Abdetu...

  • Execute a package

    I have executed procedures before from SQLPLUS. HOw do we execute the completed package.
    For example:
    CREATE OR REPLACE PACKAGE PKG_NEW_LOAD
    AS
         PROCEDURE SP_UPD_PROC1(09,2004);
         PROCEDURE SP_UPD_PROC2;
         PROCEDURE SP_UPD_PROC3;
    END PKG_NEW_LOAD;
    As of now I am execurting this way one by one:
    execute PKG_NEW_LOAD.SP_UPD_PROC1(MM IN INTEGER, YYYY IN INTEGER);
    execute PKG_NEW_LOAD.SP_UPD_PROC2;
    execute PKG_NEW_LOAD.SP_UPD_PROC3;
    I am sure there must be a way to execute the package at one go like:
    execute PKG_NEW_LOAD;
    Can someone please correct me here.
    Thank you.
    Message was edited by:
    user484723

    You cannot execute a package because its is logical grouping for encapsulation of other objects with some benefits.
    If you need to run procedures at once run the code below in sqlplus session
    BEGIN
       pkg_new_load.sp_upd_proc1 (09, 2004);
       pkg_new_load.sp_upd_proc2;
       pkg_new_load.sp_upd_proc3;
    END
    [pre]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • MNU command to execute one package link

    Hi experts,
    My scenario is:
    I need to run a package link thru VBA
    I've tried the following command on a specific cell, because I've not found an specific mnu command to run a LINK.
    EVMNU("MNU_eDATA_SELECTPACKAGE","run DM","BPC_BW_RH,CP_BI_BPC_RH1,Company,System Administration")
    Question:
    1-Do we have an specific mnu command to execute PACKAGE LINK ?
    Thanks and Regards,
    Jadir Mendes

    =EVMNU("MNU_eData_RUNPACKAGELINK ","RUN PACKAGE")
    Parameters are not required only you have to write above code and your package list will display run from the list

  • Execute a package with an abap routine

    Hi experts,
    I need to execute an infopackage througth an abap routine.
    Can anybody tell me what is the code i need to implement it?
    Thanks.

    Hello Olivier,
    We need run the same IP simultaneously with different selections.
    This selections have to be configured with an ABAP routine.
    The ABAP routine is into a standard BADI.
    The BADI is always called when a user runs a task in the consolidation monitor of BCS.
    In the BADI a method returns all the parameters that we need to configure the selection in the package filters.
    I´ve tried run the same IP with different selections and there was no problems.
    "would say you should create one InfoPackage    for each set of selection and you can run all of them together using a process chain or InfoPackage    group"
    It is impossible because we would have more than 1000 selection combinations so we would need the same number of IPs. When a user calls a task in the consolidation monitor, the task depends on the society, version, period, year ...
    I hope this helps to understand better the requirement.
    Regards

Maybe you are looking for

  • IS_DIRTY dataloss popup is NOT working properly

    Hi Folks, Issue is not able to get * Data Loss Popup* I am working with SAP NetWeaver 2004s, and created a webdynpro application using FPM. I have implimented interfaces in my component: IF_FPM_UI_BUILDING_BLOCK & IF_FPM_WORK_PROTECTION and also used

  • Error while designing the process Chain.

    Hi All, I have created the Process Chain. 1. Start Variant. 2. Load data to PSA for ODS 1. 3. Load data to ODS 2 4. Activate the ODS 2 5. Read PSA and load data target to ODS 1. 6. Activate the ODS 1. While checking the process Chain, i am getting th

  • When a file is downloaded to my computer, where does it go so I can find it again.

    Today I downloaded a file from HP.com.  I would like to know where on my computer I can locate these files that are downloaded (photos, text, etc.) because if I don't need to keep them, I'd like to get rid of them since they are taking up precious me

  • How to create a new line in TEXT_ITEM in WAD ???

    Hi all, I would like to create an online help on my WAD application. Thus, I'm using TEXT_ITEM to write/display my help but forum text is lost everytime. How can I do something like that in a TEXT_ITEM ? - blablabalabla - blablabalabla At the moment

  • How to refer to MainPage?

    Hi, been using VB 2010, and now using 2013 to write a phone app, getting the hang of it. How do I refer to the MainPage? Previously, my main page was a FORM object, so I could call a function like Form1.Beep () or refer to a control with Form1.ListBo