Trigger for blocking user using third party tool !

Dear Friends ,
I have to block the users from using sqlplus, TOAD, PLsldev etc (Except SYSTEM user) from client end using the below trigger :
create or replace trigger check_logon
after logon on database
declare
cursor c_check is
select
sys_context('userenv','session_user')
username,
s.module,
s.program
from v$session s
where
sys_context('userenv','sessionid')=s.audsid;
lv_check c_check%rowtype;
begin
open c_check;
fetch c_check into lv_check;
if lv_check.username in ('SYSTEM')
then
null;
elsif upper(lv_check.module) like
('%SQL*PLUS%') or
upper(lv_check.program) like
('%SQLPLUS%')  or
upper(lv_check.module) like
('%T.O.A.D%') or
upper(lv_check.program) like
('%TOAD%')    or
upper(lv_check.program) like
('%PLSQLDEV%')    or
upper(lv_check.program) like
('%BUSOBJ%')    or
upper(lv_check.program) like
('%EXCEL%')
then
close c_check;
raise_application_error(-
20100,'Banned! Contact with Database Admin!');
end if;
close c_check;
end;
It works fine all normal user cannot access the database using above third party tools .
But the problem is , user with DBA privileges can access the database with generating an trace file . Is there any way to restrict DBA Privileged user ? or is there any mechanism to create a log/trace file so that If there any  DBA Privilege user acess to the Database , then we can get the information from that specified log/trace file ? 
Waiting your kind reply ... ...

Hi,
If the DBA users has the DBA role granted to them so they will by passes the logon trigger. For example, the SYSTEM user has the DBA role and the DBA role has the ADMINISTER DATABASE TRIGGER privilege. The ADMINISTER DATABASE TRIGGER by pass the logon trigger. If you want to restrict the access to a DBA user, then you need to revoke the ADMINISTER DATABASE TRIGGER privilege from the DBA role or grant individual privileges except the ADMINISTER DATABASE TRIGGER privilege to the DBA users.
Cheers
Legatti

Similar Messages

  • Using third party tool to initiate a Forte batchprogram

    Hello Forte Users,
    Our company has acquired a software product called Maestro. It's a
    production scheduling facility that manages tasks for batch mode execution.
    We would like to know if anyone out there has had any experience using this
    product with Forte. One recommendation that we discussed was to have
    Maestro start a script on Escript to communicate to an agent that would
    start the batch process at a specified time. Has anyone done something
    similar or can offer any suggestions ?
    Thanks in advance,
    Jean Mercier
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Jean,
    We use Maestro for all our scheduling scripts. To start\stop the
    environment and start\stop applications. We create a shell script that uses
    escript to start/stop applications. Maestro just calls the shell scripts
    and monitor it for completion. I think you have to write the shell script
    in a standard way to return an error if it does not finish properly. Here
    is an example:
    #!/bin/csh
    source /appls/forte/fortedef.csh
    $FORTE_ROOT/install/bin/start_nodemgr -fm "(x:300000)" -e TR2ProdEnv
    ps -fu forte | grep -v grep|grep nodemgr>/appls/forte/production/scripts/KBB
    set KBB=/appls/forte/production/scripts/KBB
    if (-z $KBB) then
    exit 1
    else
    exit 0
    endif
    Hope this helps.
    ka
    Kamran Amin
    Forte Technical Leader, Core Systems
    (203)-459-7362 or 8-204-7362 - Trumbull
    [email protected]
    From: Jean Mercier[SMTP:[email protected]]
    Sent: Monday, April 12, 1999 10:36 AM
    To: Forte-Users (E-mail)
    Subject: Using third party tool to initiate a Forte batch program
    Hello Forte Users,
    Our company has acquired a software product called Maestro. It's a
    production scheduling facility that manages tasks for batch mode
    execution.
    We would like to know if anyone out there has had any experience using
    this
    product with Forte. One recommendation that we discussed was to have
    Maestro start a script on Escript to communicate to an agent that would
    start the batch process at a specified time. Has anyone done something
    similar or can offer any suggestions ?
    Thanks in advance,
    Jean Mercier
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Currency Conversion using third party tool

    Hi,
    I am trying to access BW from a third party tool and so far been quite successfull accessing BW Infocubes and Bex Queries by using OLAP BAPIs. However my customer wants to use currency conversion as it is available in BEX in the third party tool as well. I need some thoughts in this direction from experts who have worked on Business Objects and BW integration.
    I believe Business Objects has a similar interface with BW using OLAP BAPIs. Is there a currency conversion functionality available in Business Objects for BW? Would really appreciate if somebody, who has tried out this feature, can share some of his/her experience.
    Thanks,
    Anurag.

    Jean,
    We use Maestro for all our scheduling scripts. To start\stop the
    environment and start\stop applications. We create a shell script that uses
    escript to start/stop applications. Maestro just calls the shell scripts
    and monitor it for completion. I think you have to write the shell script
    in a standard way to return an error if it does not finish properly. Here
    is an example:
    #!/bin/csh
    source /appls/forte/fortedef.csh
    $FORTE_ROOT/install/bin/start_nodemgr -fm "(x:300000)" -e TR2ProdEnv
    ps -fu forte | grep -v grep|grep nodemgr>/appls/forte/production/scripts/KBB
    set KBB=/appls/forte/production/scripts/KBB
    if (-z $KBB) then
    exit 1
    else
    exit 0
    endif
    Hope this helps.
    ka
    Kamran Amin
    Forte Technical Leader, Core Systems
    (203)-459-7362 or 8-204-7362 - Trumbull
    [email protected]
    From: Jean Mercier[SMTP:[email protected]]
    Sent: Monday, April 12, 1999 10:36 AM
    To: Forte-Users (E-mail)
    Subject: Using third party tool to initiate a Forte batch program
    Hello Forte Users,
    Our company has acquired a software product called Maestro. It's a
    production scheduling facility that manages tasks for batch mode
    execution.
    We would like to know if anyone out there has had any experience using
    this
    product with Forte. One recommendation that we discussed was to have
    Maestro start a script on Escript to communicate to an agent that would
    start the batch process at a specified time. Has anyone done something
    similar or can offer any suggestions ?
    Thanks in advance,
    Jean Mercier
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Suggestion for Iridium I/O third party tool use in production environment. Is Good or bad to use?

    Hello Everyone,
    we are planing to use Iridium I/O third party tool in one of our critical production environment to improve the performance.
     but i want to know is it recommended  for such type of critical servers?.
    if i use this tool find any performance improvement.

    Hi Baraiya,
    Iridium I/O is certified by Microsoft. It can help to fix SQL Server performance instead of just pointing out performance problems . Benefits of using Iridium include the following aspects. Refer to:
    Iridium I/O for SQL Server.
    •Faster transactions
    •Faster batch jobs
    •Reduced blocking and deadlocking
    •Faster sorting in tempdb
    •Speeds up queries from 3rd Party apps that can't be tuned
    •Speeds up queries that are already "fully tuned"
    •Speeds up the 95% of queries that the DBA never has time to tune
    In addition, there will be no impact on the SQL databases when Iridium is removed. Personally, I recommend you install the Iridium I/O in a test environment, and check if it meets your requirement, then use it in the production server.
    For more details , you can also review this blog:
    SQL SERVER – Iridium I/O – SQL Server Deduplication that Shrinks Databases and Improves Performance.
    Thanks,
    Lydia Zhang

  • How to minify code in DW CS6 without using third party tools?

    I work in a secure environment without access to the internet or third party plugins. We just have access to Dreamweaver CS6 and I am looking for ways to minify (remove all the white space) in my code (CSS, JS, HTML, etc). I did see a tutorial about simply selecting white space in the code and then doing a FIND AND REPLACE and clicking the "REPLACE ALL" button to remove the white space, but that did not work on my system.
    Does anyone have any solutions? I am open to copying and pasting the code in something like notepad if there's a way to remove the whitespace that way, I could also possibly copy a php script to my system, but that will take some time to get cleared by the IT folks.
    Thanks!

    Use Edit > Preferences > Code Format > Tag Libraries to set up how you want your code to appear.   Then use Command > Apply Source Formatting.  It won't minify your code to the extent that other on-line minification tools will, but it might help a little.
    Removing all white spaces from scripts can cause them to fail so I don't think doing a global Find & Replace is what you want.
    Nancy O.

  • How to consume SAP enterprise services over https using third party tools?

    Hi guys,
    am just testing consumption of ES using jboss instead of NW for client applications. The ES in our internal ERP are bit strange, ie. they are using HTTPS transport even though you can configure ES with HTTP transport. (in this case, the requests are always redirected to HTTPS one). Wanna hear from perhaps someone who had similar experiences about
    - Have you encountered the situation that ES can only exposed as HTTPS WS. Is there any way to enable HTTP ES?
    - The way to consume ES over HTTPs. How to configure and generate the client which can talk HTTPs with ES?
    Any comnments are thankful.
    Best,
    Ji
    Edited by: Ji Hu on Oct 1, 2010 3:20 PM

    Thanks.
    Have solved the problem. I need to configure my client, i.e. JVM to connect the server with https. The generated ws client stub itself does not need to care about HTTPS or HTTP transport.
    In some case, one do have enabled HTTP transport via soamanager, but it never became HTTP (redirected to HTTPS). I have no idea why, but have to talk in  HTTPS as the only one option.

  • What easy to use (MS or third party) tool can I use to create and host a webservice API on a SQL server database

    I'm looking for a (MS or third party) tool with which I can create, publish and host webservice API's on a custom SQL database. For example a API which presents all customers, or validates a user login.
    I prefer a tool that can be used without .NET programming skills, just using database scripts and queries.
    Could somebody suggest a tool for this?
    Many thank,
    Slowytech

    Use Visual Studio (Microsoft Visual Studio Express 2013 for Web ) and the WebAPI framework.  You can easily create REST endpoints for your data.  You can even
    use ODATA to enable RESTful queries over your data.
    See
    http://www.asp.net/web-api/overview/odata-support-in-aspnet-web-api
    David
    David http://blogs.msdn.com/b/dbrowne/

  • CONNECT ORACLE11g database in sharepoint 2013 without using metaman or any third party tool

    Hi!
              I want to access ORACLE db and bring it as an external list  in SharePoint 2013. How can it be achieved without using third party tools? So far i referred Creating
    web service, .Net connectivity assembly or crafting the BCS xml model file manually are the techniques that can be employed to achieve. Can anyone share the code to create External content type and External list by adopting any one of the techniques.
    Thanks in advance.

    Hi,
    To connect SharePoint to your Oracle Database, you should use the BCS.
    You will find here what is the structure of the XML File to create to access your Oracle DB.
    http://msdn.microsoft.com/en-us/library/office/ff464424(v=office.14).aspx
    Once you finished your BDCM, you will be able to import it with the following mehod :
    http://www.manula.com/manuals/lightning-tools/bcs-meta-man-for-windows/1/en/topic/importing-the-bdc-model-into-sharepoint
    The last step will be to create your external list from your BDCM.
    http://msdn.microsoft.com/en-us/library/office/ee558778(v=office.14).aspx
    Best Regards,
    Frederic
    Please remember to click "Mark As Answer" if a post solves your problem or "Vote As Helpful" if it was useful.

  • Sending data directly from BW To Oracle DW via Open hub Third party tools

    HI All
    We need to send data from SAP BW 7.0 to Oracle 11g DW. The requirement is to pass data through open hubs. So we wanted to explore the option of directly passing the data from BW to Oracle using third party tools. So i tried to gather information on the third party tools and came across list of APIs and some pointers on creating a RFC through SM59. But dont know how to do it or what parameters to pass. Could you please point me in the direction or list me step by step detailed instructions as to how I can achieve this?

    Hi Amit..
      I can see  the following  will make things work for  you.
    1) BODS.
    2) PI ( XI).
    3) BI7.0 to FTP and from FTP  you to push these tp  your oracle system..
    Regards,
    rajesh

  • How to integrate DRM with third party tool for loading metadata in SQL table

    Experts,
    I am new to DRM and I have a requirement in which we want to integrate DRM with third party tool(lets say SQL table) as target and load metadata from DRM (Parent node, name , alias etc) to SQL table (same column name)
    Is there any way we can integrate DRM to export the same to table directly instead to files. If yes what are the steps we have to follow.
    Is there anyway we can customize DRM to execute queries or run batch
    Can I have a basic example please.
    Thanks in advance,
    Regards,

    1. Use DRM Export to Table option, for that create an External Connection first for the Target Database and select the respective Tables to which you wish to Export the Hierarchy information.
    2. You can perform most of the DRM Actions via the DRM_BATCH_CLIENT.exe.
        Please refer to Using the Data Relationship Management Batch Client of DRM User guide.
    let me know if you have any issues.

  • Third party tool for document preview in sharepoint 2013

    Hello,
    we are looking for third party tool which provide preview of any documents in documnet library in sharepoint 2013. So when users just hover over the document, they can see the preview. Do
    any of you please provide a good suggetion in case if you have used in the past? In my research I came across
    Knowledgelake and harepoint. Also I think there is one Metalogix but I know for sure it a way too costly. So please help if you know who does this job with a fair amount of price.
    Thanks.

    I've found Ontolica Preview to be adequate for this. Reasonable product and supports a lot of formats
    http://www.sharepointreviews.com/component/content/article/69-sharepoint-auditing/202-Ontolica-BehaviorTracking-for-SPS-2003-.pdf
    Might also be worth spending some time on SharePointreviews.com for other suggestions
    http://www.sharepointreviews.com/
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Third party tool for faster message recovery?

    Does anyone know if a third party tool for message recovery?  Restoring mailbox data from a Recovery Mailbox Database is very time consuming.  One of our Mailbox databases is almost 400 GB, and the restore alone is timely.  Our Recover Deleted
    Items is set to 14 days.  We could increase this recovery setting, but there may be situations where users are looking for data over 30 days deleted.
    Thanks in advance for any input.
    Fran

    Hi Fran,
    What version of Exchange server do you have? Based on my knowledge, Exchange 2013 can keep the deleted items for 24,855 days. 
    More details to see:
    https://technet.microsoft.com/en-us/library/ee364752%28v=exchg.150%29.aspx?f=255&MSPPError=-2147217396
    Also provide an useful article for your reference:
    Restore Data Using a Recovery Database
    https://technet.microsoft.com/en-us/library/ee332351(v=exchg.141).aspx
    Thanks
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Mavis Huang
    TechNet Community Support

  • Disable third party tools in Product User Profile

    Hi all,
    I want to disable third party tools(like TOAD, PL/SQL Developer etc.) from performing DDL commands in my database.
    Can i have to write the trigger for this& if i have to write trigger, how to find the user activity if it is DDL or DML
    Please provide me suggestion on this .
    Thanks,
    Sandeep

    sandeep_b wrote:
    Thanks Ananth.
    Can you please provide me any suggestions to prevent the developers to performs DDL and DML activities on any schema in my database?
    Thanks,
    SandeepDon't grant them anything beyond CREATE SESSION and SELECT.

  • Create a Web Service to connect a third party tool using ABAP.

    Hi Guru's,
    I wanted to create a web service to access a third party tool for fetching data from it. Can anyone guide me on how to do that and what are the basic needs that we should have to use Web services? To execute a web service, do we need a J2EE engine?
    Thanks & Regards,
    Veerabhadra Rao A.

    Hi Rich,
    Thanks for your immediate response.
    Can you please explain me the technical point of view for fetching the data from a third party application using web service? Which method would be correct for this (i.e., BAPI/FM/FG/Message Interface)? What is the step by step process to fetch data? If I use a function module, how do I pass the data to the web service? Can you give me some more inputs to it?
    Please help.
    Thanks & Regards,
    Veera.

  • Way to use Visual Web part in sharepoint 2010 without using/installing third party tools

    I want to know the way to use Visual Web part in sharepoint 2010 without using/installing third party tools.
    Please provide me a link where i can actually know how it is done.

    + to _eNo_,
    Visual Studio 2010 has support for visual webpart, you can find that under Visual C# node in the Installed Templates section (if your preferred language is C#)
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

Maybe you are looking for

  • Unable to download new songs from iTunes

    I have iTunes 7.6.2 and when I plug in my iPod I get 'syncing' then 'its ok to disconnect' message and I'm unable to download new songs I just bought. I tried this on 2 computers and the same results. One is running XP Pro SP1 and one is running Vist

  • Top level navigation repeat tab

    Hi Guys, Simple one here, just cant point my fingers to it. The top level navigation tab in my portal is repeating itsself. There are 1 additional set of tabs. HOw do i sort this out? thanks regards, johan

  • Automation of file attachment in VA41 transaction (case managemnt)

    Hi Experts, We are facing problem in attaching file to the sales scheduling agreement, as we have to do mass attachment without manual intervation. We are migrating our data to to a new system, where we have tio attach file to all sales scheduling ag

  • Load program is read a wrong position

    Hi all,       I faced a problem as below:      IDOC:  1000.00   1001000001      When i upload the data to PSA, the error is "1000.00 1001" is not number.      on the words, the program is read a wrong position and wrong value.      And on the anther

  • Original document in Balance Sheet Readjustment run

    Hello After running the Balance Sheet Readjustment run  when I am checking the log through F.5F - Display Log System is giving the document number after posting the transaction . How can I know the original document relevant to the adjustment posting