Revoke execute on packages from Public

Dear all.
I've got a doubt. I did the Oracle recommendations and on my Primary Database I revoke execute priviledge on the packges UTL_FILE, UTL_TCP, UTL_SMTP and UTL_HTTP using the command revoke execute on <package> from public.
I tryed to do the same on my Physical Standby Database but it wasn't possible. I got a message saying that the database isn't open. My question is: When I do the faiolver, will the physical standby database apply thoe changes I had made on the Primary?
Thanks a lot.

It will be applied to the standby by archive log recovery.
When I ran these "recommended" revokes I ended up with a broken database due to invalid objects, so make sure you compile invalid objects before and after the revoke, and compare counts to see if they have increased.

Similar Messages

  • REVOKE EXECUTE ON UTL_HTTP FROM public in apps database

    Hello,
    could any one share your knowledge to me for database security on oracle apps.
    my client's aduit have some issue on public acceess.
    select table_name from dba_tab_privs
    where grantee='PUBLIC'
    and privilege ='EXECUTE'
    and table_name in
    ('UTL_SMTP', 'UTL_TCP', 'UTL_HTTP', 'UTL_FILE',
    'DBMS_RANDOM','DBMS_LOB', 'DBMS_SQL','DBMS_JOB',
    'DBMS_BACKUP_RESTORE','DBMS_OBFUSCATION_TOOLKIT');
    I know we could not revoke any privileges from public.
    IS there any document says that don't revoke public access for E-bus database?
    I could not find out any document in metalink. if have any one document could you please share with me.
    Thanks
    Prince

    Hi Prince,
    Oracle does not say "do not revoke privileges from PUBLIC." Oracle suggests caution when revoking privileges from PUBLIC. :-) Have a look at the following Metalink Note: [Be Cautious When Revoking Privileges Granted to PUBLIC|https://metalink2.oracle.com/metalink/plsql/showdoc?db=NOT&id=247093.1|Metalink Note 247093.1].
    To satisfy your auditors, you could identify which database users actually need to use UTL_HTTP, and assign that privilege directly to the individual users. Then you should be able to revoke those privileges from PUBLIC.
    For more information about securing E-Business Suite itself, review [Best Practices for Securing the E-Business Suite|https://metalink2.oracle.com/metalink/plsql/showdoc?db=NOT&id=189367.1|Metalink Note 189367.1], or for Release 12, [Best Practices For Securing Oracle E-Business Suite Release 12|https://metalink2.oracle.com/metalink/plsql/showdoc?db=NOT&id=403537.1|Metalink Note 403537.1].
    Regards,
    John P.
    http://only4left.jpiwowar.com

  • 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

  • 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

  • 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

  • Error executing SSIS packages from Agent

    Hi All,
         I designed SSIS package that loads data from Oracle table to SQl server table along with loading data into Diension and fact tables using SSIS packages only. First I created all SSIS packages that loads data into Staging tables from
    Oracle table in next level loading data into Dimension table and final level is loading data into Fact table. At lasts I created One master package there I'm calling all packages (Execute package task) differently.
    Configuration type: Parent package configuration for All child packages. XML config for parent package.
    When I execute SSIS package from BIDS data is loading up to Fact table. When I execute SSIS packages through Sql server agent ( Using File System Deployment)When I execute SSIS package from Sql server agent it is throwing an error message like 
    Message
    Executed as user: . Microsoft (R) SQL Server Execute Package Utility  Version 11.0.2100.60 for 32-bit  Copyright (C) Microsoft Corporation. All rights reserved.    Started:  10:45:10 PM  Error: 2013-10-17 22:45:12.60    
    Code: 0xC00220E6     Source: Master Data      Description: There is no project to reference.  End Error  Error: 2013-10-17 22:45:12.61     Code: 0xC0024107     Source:
    Master Data      Description: There were errors during task validation.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  10:45:10 PM  Finished: 10:45:13 PM  Elapsed: 
    2.59 seconds.  The package execution failed.  The step failed.
    I'm uploaded config file also while at the time of scheduling job.
    Regards,
    Praveen
    Regards, Praveen

    Hi Praveen,
    The issue may occur if the SQL Server Agent Service Account or Proxy account doesn’t have sufficient permissions. Please create a SQL Server Agent Proxy account that has the permissions to execute the package and perform update operations on the SQL Server
    fact tables.
    Reference:
    http://technet.microsoft.com/en-us/library/ms175834.aspx
    Regards,
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Problem with execute SSIS package from stored procedure

    Hi,
    I would like to execute SSIS package from stored procedure. Therefore, I implemented sp which exec SSISDB.CATALOG.CREATE_EXECUTION method. When I try to test it from SSMS on remote server, I got error that
    I was able to solve by adding “WITH EXECUTE AS …”. Then I got another error: The server principal "Domain\user" is not able to access the database "SSISDB" under the current security context. On Internet, I found a couple post that describe
    how to access SSIS catalog (one of them by Ke Yang -
    http://blogs.msdn.com/b/mattm/archive/2012/03/20/ssis-catalog-access-control-tips.aspx). It didn’t help. I’m still getting the error message.
    How to debug this issue?
    Any suggestion?
    Thanks
    SQL Server 2014 BI

    SSMS does not propagate user credentials thus the error
    Arthur
    MyBlog
    Twitter

  • Whats the difference between executing a package from SQL and Visual Studio?

    Hi,
    We have a package that is currently failing to run when deployed to SQL. This has been tried from a schedule and also executed manually both are failing.
    I have tried from Visual studio running on various machines (windows 8, server 2012) and in all cases run perfectly.
    I am trying to understand the differences between deploying to SQL and running from VS so maybe I can figure out why this is happening.
    I have the following errors when I run from SQL.
    DTS_E_PROCESSINPUTFAILED - all errors like this point to the 'Sort' tasks in the script
    dts_e_processinputerror not enough storage is available
    I have tested in four environments and all fail from SQL but not from VS!
    Last night I tried from my laptop and executed the package from SQL - it didn't fail but was still running in the morning so I terminated. Note this takes around 20 mins running from VS! why would it be so quick from VS but fail or take so long on SQL?
    The test running at the moment is on a server with dynamic memory currently at 14GB. I decreased SQLs RAM to 4GB and it hasn't failed yet but has been running for two hours. Before changing this the package failed after a short time.
    I thought it may have something to do with running from a virtual machine but doesn't explain why it couldn't run locally on my laptop.
    All ideas welcome :) Many thanks,
    Davina

    I will try to address issues one by one
    The error doesn't seems to be related to SSISDB configuration mode. It may be because of
    Change in package definition (please confirm that the package which you are running on your laptop is the same on your msdb? - reload your SQL package from MSDB in BIDS/SSDT and recreate your source and destination components)
    As your error message shows, "not enough memory available" (may be because of multicast)  - Usually you can override this error by restarting SQL Server [not an optimal solution but it work & if that work it shows that your package fills
    the memory - Keep an eye on task manager]
    Make sure that your statics on table are updated [run EXEC sp_updatestastics] 
    Make sure your indexes are not de-fragmented [run rebuild indexes]
    If you are dealing with many rows may be 40000 * 12 (because of multicast) = 4,800,000 rows the try to separate package. 
    Check your excel file format/column data type is correct
    Check user permission who is running the job has required permission on folder/file.
    Understand that sort is a blocking transformation and it requires all your data in memory before it sorts. so, if there are large number of rows then your complete memory will be occupied. 
    Difference between Visual Studio & BIDS/SSDT
    Nothing much, other than BIDS runs on 32 bit while jobs on 64 bit (but there run time environment are configurable, though) 
    There shouldn't be any performance difference until your
    package is on network location because transferring data to the network may slow the package. If package runs on SQL Server it uses SQL buffer pool to fetch data via SQL statement and then SSIS works on its own memory allotment. 
    Hope this will help you to understand and fix the issue.
    Glad to help! Please remember to accept the answer if you found it helpful. It will be useful for future readers having same issue.

  • *Error executing SSIS Package from BPC 5.1*

    All -
    I'm trying to execute a perfectly working SSIS package from BPC 5.1. When I execute the package it instantly completes executing (Failure) with nothin written to the Log file.
    After doing further analysis, we have found the root cause to be "Sequence Containers" in SSIS Packages. We can execute the same package if we remove the sequence container.
    When we try to edit the SSIS package via BPC, containing the Sequence Containers", we receive the following error:
    [QuerytoServer] An error occurred while getting a package information. System.InvalidCastException: Unable to cast object of type 'Microsoft.SqlServer.Dts.Runtime.Sequence' to type 'Microsoft.SqlServer.Dts.Runtime.TaskHost' at Osoft.Services.Application.DataMgr.PackageExecute.DTSX.GetPackageInfor()
    When we try to edit SSIS packages via BPC, containing NO Sequence Containers", everything is wonderful.
    Does anyone have any suggestions, besides removing all of the Sequence Containers and moving the tasks to the base SSIS package level?
    I trully appreciate any help you guys can provide.

    Hi Lars,
    Could you be more specific the step you did?
    1. It works fine in Visual Studio,
    2. It is not working with Excel Front-end. Call the package from Excel.
    3. It worked few days ago, ==> Do you mean it was working with #2 step?
    I think this might be caused by authentication,
    1. could you check your athentication you have for #1 and #2?
    2. Did you introduce BPC DM to call the package? BPC DM uses impersonated ID even you use ID which has restrictive to use system resource, there will be no problem for the authentication.
    3. As you see the log, it points FLOW task and OLEDB SOURCE, check your connection string in OLEDB SOURCE also.
    Hope this helps,
    Regards,
    YH Seo

  • What is the best way to handle executing multiple packages from the Agent?

    I have several packages that have to be executed in sequence. I thought the best way to do that was by creating a job for each package then have a master job that executes the other packages. In my master job,  I'm using sp_start_job to call the other
    jobs. The problem is, the master job moves from step to step without waiting for the child jobs to finish; basically they all execute together.
    That is the way I've seen it done in other places so I feel like I'm doing something wrong. In the alternative, I know it's possible to set the individual steps up so they execute the packages directly without calling an external job. I prefer the first
    way though.
    Which way should I jump on this?

    So basically what I'm hearing is just call the packages in a mulit step job. Creating a master package and calling child packages sounds a little crazy and unscaleable especially considering that the packages have master child relationships
    within themselves. It's SSIS Package Inception. 
    Sorry whats the issue with that?
    Provided you're setting the package sequence correctly based on your dependency it will work fine as loop gets iterated based on how you set the package list.
    What we have is a audit and control mechanism which even have details on the dependency so based dependency set only the packages gets ordered and listed for the loop to iterate through and executing. Also tomorrow if a new package comes into being, all
    it takes for us is to tweak the audit table to add a new entry for the package and set the dependency and it will continue to work fine including the new package without touching the existing job for any modification whatsoever.
    Another advantage of this table is we also capture audit details in it like date when package got last executed, its status of execution,rows processed (insert,modified, deleted) etc which can be used for easy monitoring of the data processing tasks as well.
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Problem while executing my package from a different schema

    Hi,
    I developed a package.
    Now when i try to execute my package( which is in Schema1) from a different schema(Sc2) in the same database(9.2.0.1)
    i.e. execute <Sc1>.<package_name.Package_main_proc>;
    I'm able to execute the package successfully.. but .. my package is deleting all records in all the tables used by the package !!
    If I run the same package from my schema(Sc1).. everything is working fine.
    i.e. its deleted only unwanted records after executing the whole package.
    Can anyone pls help me.
    Regards
    Jack

    Guido,
    I'm sorry for asking a really vague question.
    I included all the dbms_output.put_line() in my code. As i executed in my schema. I couldnt find any error.
    So now, instead of calling my package from Sc1.
    I compiled my package in Sc2( I dint get any errors) and then executed it.
    Even now data is deleted from the tables.
    So now i tried thru another schema(SC3)..
    again compiled it and executed it.. now everything is working fine.
    So to my understanding i just there is some dependency is Schema 2. But i'm not able to figure it out as i'm not getting any error.
    Am i going is right direction. If not please correct me .
    Thanks

  • Need help on executing ssis package from ssrs report

    i want to develop a load test tool.
    we do load test on beta servers i need to capture server statistics during load test and make a report out of it.
    basically as a tool to start and stop capturing server info from ssrs report.
    Any help is highly appreciated !!

    Whats the need of a report for starting and stopping of jobs here? Isnt it enough to capture the details from MSDB system tables or SSISDB tables (in case of 2012) for capturing the details. The package execution can be done using procedures/t-sql scripts
    using sp_start_job or  catalog.create_execution procedure
    http://msdn.microsoft.com/en-us/library/ff878034.aspx
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Executing MSI package from the command line

    I am running the following command from DOS (share server) to be install in windows 7 machine
    with the following switch.
    "\\servname\folder\someSetup.exe" /NOREBOOT /PASSIVE /QUIET /CONTROLLERS "servname.domain.dc" /ENABLE_HDX_PORTS /ENABLE_REAL_TIME_TRANSPORT
    I noticed that in the middle of the execution a popup reboot menu appears. How can I suppress the popup menu?
    michael john ocasio

    http://unattended.sourceforge.net/InnoSetup_Switches_ExitCodes.html
    michael john ocasio

  • Oracle recommends that you revoke EXECUTE privileges on powerful packages f

    Oracle recommends that you revoke EXECUTE privileges on powerful packages from PUBLIC
    Got on error on the home page of Enterprise Manager and read that I should run the code below to correct the problem, but when I click on the link at the bottom of EM to go to iSQL*Plus and choose to connect as sysdba I get a popup asking for me to input a password for my computer so I tried my local computer username and password, my network username and password and even my database username and password and neither lets me in. I can login under Normal but then I do not have rights to execute the command.
    revoke execute on utl_file from public;
    I know I have my computer username and password correct because I had to enter it to shutdown the database yesterday.
    And I had a problem with my listener not knowing the SID, but the error has since went away, but I do have an error on my listener saying
    Disk Utilization for 0 C: is 151.45%
    Edited by: jamesH2 on Aug 29, 2008 9:20 AM

    Hi James,
    Where you saw that Oracle recommend that? If you are refering to the Db console recomendations please take a look on this note also: Note:343620.1
    If you revoke any privilege from PUBLIC it becomes your own responsibility
    to ascertain that all your applications will keep working. The same goal can often be accomplished
    by replacing the privileges formerly granted to PUBLIC to some individual users or
    roles.
    Please take a look on this Metalink Note: 247093.1 Be Cautious When Revoking Privileges Granted to PUBLIC
    Regards,
    Francisco Munoz Alvarez
    www.oraclenz.com
    Edited by: F. Munoz Alvarez on Aug 30, 2008 1:31 AM

  • Revoke unnecessary privileges from public = enterpise manager problems

    Hi,
    After revoking the execute privilege on the following packages from public I have problems with enterprise manager (DB version 10.1.0.3.0) :
    UTL_SMTP
    UTL_TCP
    UTL_HTTP
    UTL_FILE
    DBMS_OBFUSCATION_TOOLKIT
    I have revoked the privileges via sqlplus:
    revoke execute on utl_smtp from public;
    If I login now on enterprise manager (user sys)
    the home tab on enterprise manager says "Status pending", the performance/administration and maintenance tabs work.
    Does anyone knows how to solve this?
    Thank You.

    I have had pretty good luck with the following - YMMV
    revoke execute on sys.utl_http from public;
    revoke execute on sys.utl_smtp from public;
    revoke execute on sys.utl_tcp from public;
    revoke execute on sys.dbms_random from public;
    revoke execute on sys.utl_file from public;
    revoke execute on sys.dbms_lob from public;
    revoke execute on dbms_job from public;
    grant execute on sys.utl_http to ORDPLUGINS;
    grant execute on sys.utl_file to xdb;

Maybe you are looking for

  • A crash, volume needs repair?

    Hi, I have no idea what has happened. It's embarrassing but I can't even tell you accurately what OS X I was using but all my software was up to date. When I try to open applications like Safari, it says "you cannot use the application Safari with th

  • Viewiew MPEG-4 streaming with other players

    I have hinted MPEG-4 files for streaming from Darwin Streaming Server. Can the users view them with other ISO-compliant players, or only with QuickTime player ?   Windows XP Pro  

  • FCP to PP questions: part 5

    13) In FCP if you right click on a clip it shows you, amongst other info, the duration of the clip in the timeline. I can't seem to find that same information in PP. Does it exist in an easily accessible way and if so where? 14) In FCP when you have

  • Verizon DSL speed/latency lower than a month ago

    A little over a month ago I upgraded to the faster Verizon DSL with "speeds up to 3mbps." I wasn't expecting 3mbps and was content with the speeds I was getting, which were pretty much twice as fast as what I had before. My Westell 7500 modem gateway

  • Viewing by keyword in Aperture

    Hello everyone, I'm the new proud parent of a 17" Macbook Pro and I've been playing around with Aperture quite a bit. I've imported my photos and have been tagging them, which is really cool! I've looked through the help guides a lot, which are incre