Restricting user from ODBC, SQL PLus, Toad etc

Hello,
We would like to restrict user accessing database from anyODBC driver, s/w like Toad or sqlplus. They can only access dataabse through loggin to Application. Is there a way to do it.
I have been looking into VPD but could not find any info there.
Thanks
Suhail

Don't you need to be able to create a session before you can invoke a secure application role?
What, exactly, are you trying to prevent. Are you trying to prevent well-meaning users from discovering that they can use Access to "fix" the data in the database when there are problems? Or are you trying to prevent a rogue employee from being able to access the database with anything other than your application?
If it is the former, something simple like a login trigger that checks the program used to log in would probably work. If it is the latter, I fear you are out of luck. If your application can connect, a moderately competent hacker can access the database rather quickly, particularly if he has access to your application executable.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC

Similar Messages

  • How to change the default directory from within SQL*Plus ?

    Hello,
    I want to change the default directory directly from within SQL*Plus to be able to launch my command files with simple instructions like :
    @my_command.sql
    If I haven't launched SQL*Plus from the directory containing the file my_command.sql, how do I change the default directory to the directory of my command files ?
    I've searched through the Oracle documentation, there's no SET DEFAULTDIR or something like that. When I do a SHOW ALL, there's no variable containing the default directory.
    If you have an idea...
    regards,
    Jérôme.

    Hi Jérôme (J鲴me ?),
    You cannot directly do that, but you can use @@ instead of @ to run subscripts in the same directory as the superscript
    # head /tmp/tl30/xxx/[xyz].sql                    
    ==> /tmp/tl30/xxx/x.sql <==
    prompt call y
    @y
    prompt call z
    @@z
    quit
    ==> /tmp/tl30/xxx/y.sql <==
    prompt i am in y
    ==> /tmp/tl30/xxx/z.sql <==
    prompt i am in z
    # pwd                                             
    /root
    # sqlplus -s scott/tiger@lsc62 @/tmp/tl30/xxx/x.sql
    call y
    SP2-0310: Datei "y.sql" konnte nicht geöffnet werden
    call z
    i am in zKind regards
    Laurent Schneider
    OCM DBA

  • How to restrict users from printing documents and exporting to local file

    Hi SAP gurus,
    I have two questions.
    1. How can I restrict users from printing a document? i.e. billdoc? I would like to know if I could block it though authorization. If yes, what auth obj to use?
    2. How to restrict certain users from exporting to local file? the System> List>Save-->Local File. I have tried restricting it using auth object S_GUI but it seems it is only applicable to older versions of SAP. im on ecc6.
    Thank you in advance.

    Hi,
    Check this:
    Create your own gui status and attach it to the list in the event START-OF-SELECTION.
    In the menu painter extra -> adjust template.
    Make it a list status and you will see all the standard list options appear including list->download
    Deactivate the ones you don't want. 
    If you just want to prevent users from downloading the list you can achieve this with authorization object S_GUI, activity 61. Menu option will still be there though.
    Please note that if you remove authorisation for S_GUI activity 61 then all downloads will not be possible. 
    If you just want to disable downloads only for a particular report, you can try this test program:
    Code:
    REPORT ztest. 
      DATA: PROGNAME LIKE SY-CPROG value 'Z_CHECK_AUTH', 
            FORMNAME LIKE SY-XFORM value 'F_CHECK_AUTH'.
    START-OF-SELECTION. 
        CALL FUNCTION 'SET_DOWNLOAD_AUTHORITY' 
             EXPORTING 
                  FORM    = FORMNAME 
                  PROG    = PROGNAME 
             EXCEPTIONS 
                  OTHERS  = 1.
      WRITE: / 'TEST'.
    You also need this:
    Code:
    PROGRAM z_check_auth.
    FORM f_check_auth USING pe_result TYPE i. 
      pe_result = 5. 
    ENDFORM.
    Also have a look at the exit SGRPDL00.
    Hope this helps you.
    Rgds,
    Raghu

  • Need to restrict users from adding or modifying folders or reports

    Requirement: Need to restrict users from adding or modifying folders or reports through Info view and to reflect the modifications only thriough LCM.
    Issue: Customer wants to restrict users from adding or modifying existing reports from Infoview and need to force users to do make the changes through Life cycle manager tool.
    As per my understanding LCM can only be used to to promote folders and objects from one environment to another and to schedule the promotion of these jobs on a daily basis.My query is:
    Can we add or modify existing reports or folders using the LCM tool?
    Could you please help me out in this issue and provide me your suggestions.
    Thanks in advance.
    Prashanthi Rayaprolu.

    You can not restrict that using LCM. Need to modify the rights at the folder level.
    Explicitly remove the following rights for the user group,
    Add objects to the folder
    Edit objects
    Delete objects
    Copy objects to another folder (check this if required)
    Once the above four are denied then users wont be able to Edit/Add/Delete reports in that folder.

  • Restricting user from changing price in me22n after goods receipt

    i want to restrict the users from changing the price of the material in me22n after after goods receipt.
    pls tell me the userexit for it with detail.

    Okay, then let me play the role of the bad man.
    Why would you need to restrict users from changing a price after GR ?
    Do you think that users are changing prices just for fun or to mess up the system?
    Have you talked to users why they want change the price after a GR?
    do you have an alternative plan, for the case that the price really needs to be changed to be able to post the invoice?  do you want to cancel always the GR in this case? Is is possible? What if the stock is already issued? do you then want to cancel the entire chain? what if a month end closure was already done?

  • Restrict users from editing and deleting not owned items

    Hello guys.
    I'm trying to restrict users from editing and deleting items created by other users. I know, that it can be achieved by using SPList.WriteSecurity parameter, but if I change its value to 2 or 4 - nothing happens... 
    May be there are some list permissions that can override this security setting? I tried to combine permissions in different ways but users either cannot modify any items or can edit/delete all of them... 
    By the way, setting ReadSecurity=2 works as it should work regardless of user permissions...
    Please help.

    Hi,
    I understand that you want to change the write security for the document library. You can try the PowerShell script below:
    $web = Get-SPWeb http://serverURL
    $list = $web.Lists["Document library"]
    $list.ReadSecurity = 2
    $list.WriteSecurity =2
    $list.Update()
    $web.Dispose()
    This setting will not affect the site collection administrator, he will always be able to edit the documents. You need to sue another account to have a test. If this still doesn't work, I think you need to manually edit the permission for each documents.
    Thanks,
    EnTan Ming
    Entan Ming
    TechNet Community Support

  • Restricting User from creating new records using when-validate-record

    Hi,
    I have a requirement for which I have to restrict he user from creating a record in the Supplier Master form if the suppliier type is 'Affiliate Supplier'.
    I have done the following setups
    Seq 10
    Description Restricting user from creating Affiliate records
    Level Function
    Enabled Yes
    Condition:
    Trigger Event WHEN-VALIDATE-RECORD
    Trigger object VNDR
    Condition "${item.VNDR.VENDOR_TYPE_DISP_MIR.value} is NOT NULL
    and
    ${item.VNDR.VENDOR_TYPE_DISP_MIR.value} LIKE 'Affiliate%'
    Processing Mode BOTH
    Context
    Level User
    Value User Name
    Action Sequence 1
    Type Message
    Action Description Saving Affiliate record
    Language ALL
    Message Type Show
    Message Text You Cannot Create Affiliate records Here
    Action Sequence 2
    Type Builtin
    Action Description Stop Proceesing
    Language ALL
    Action Enabled Yes
    Builtin Type RAISE FORM_TRIGGER_FAILURE;
    This is working good on one instance but when I moved it to another instance
    when I query the form and try to navigate to the bank accounts tab of the form which is based on a differnt block i.e VNDR_USES block, the when-validate-record trigger fires there also and stops the processing.
    Any suggestions on this would be higly appriciated.
    Thanks in Advance.

    Hi Srini,
    Yes, it does work...but in a Form Session if i Create more then one Item, in some cases it fires for the first records and not sleeps for the second.
    Sometimes it doesn't give any response.
    Appreciated if you divert to the link to check the Pacthes for 11.5.10 on Form Personalization.
    Please share any ideas/example if yiou have to achieve the below requirement.
    Requirement:
    Once New record is created , a Custom Procedure should be invoked.
    with out closing Form i am able to create n number of Items, so for every Item it should invoke Custom PLSQL Code on Save.
    Let me know if i can achieve the same in Custom.pll .....as i can use either of Options.(Form Personalization/Custom.pll)
    Thanks & regards,
    Edited by: user632004 on Mar 16, 2010 7:50 PM
    Edited by: user632004 on Mar 16, 2010 8:09 PM

  • Restrict users from archiving PST to local computer

    Hi all,
    I would like to restrict users from archiving emails in outlook to the local computer. We have a serious problem that users are archiving emails to the local computer and then they can copy those emails to external devices or that they can attach this local
    pst file to their personal outlook profile which they can forward it to external recipients. We have ran into a serious problem now and I am try to resolve this problem by restricting users to archive the emails to their local computer. Is there any way I
    can do this?
    Only designated users should be able to archive the outlook emails (from the support team) and they can save it to a central file server.
    Please share me your thoughts. Thank you all for taking time to read this and for your suggestions.

    Hi Friend,
    Use Group Policy Feature and enable the “DisablePST” Reg value as it will not allow users to create new  PST file or even remove the Archive function from their Outlook interface.
    Registry path to disable PST File authentication (Group policy):
    HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\12.0\Outlook
    Take a brief explanation about various restrictions over PST File:
    https://www.simple-talk.com/sysadmin/exchange/using-group-policy-to-restrict-the-use-of-pst-files/
    Note: Improve community discussions by marking the answers helpful otherwise respond back for further help.
    Thanks
    Clark Kent

  • Restrict users from using Manual series

    Hi SAP,
    Is there a way to restrict users from using the Manual series?
    Thanks,
    Janice

    Hi Rahul,
    Ok, i have seen already the authorization for document manual numbering and it is available only for 8.8 versions and not on 2007 version of SAP.
    Anyway, when im doing the testing i found out that for banking transactions like incoming, user can still use the manual series even if he has no authorization for manual document numbering.
    Another concern from our client was  the use of manual series only, is it also possible in SAP? I tried to give user authorization in the manual document numbering and no authorization to series group no but user cannot already open the transaction window. Let us know if their inquiry is possible so i could inform them that only manual series can be restricted.
    Thanks for your help.
    Regards,
    Janice

  • Restrict users from changing roles

    Is there a way to restrict users from changing roles
    themselves? If a user goes to My Connections and then clicks Edit,
    they could, in theory, change to any group they want--except to the
    administrator group because you have to enter a password. If the
    admin isn't watching the site 24/7, the user can change their roll,
    let's say from a writer to a publisher, and publish something
    before the admin can notice.
    Is there anything that can be done to restrict that?

    You can use connection keys...this will only allow a user to
    change their name and email address (I think...I can check on this
    tomorrow). We use these at my work and it allows for a lot more
    control over who is assigned to the proper groups.

  • Restrict users from input

    Hi Experts,
    Is there a way to restrict users from sending data through input schedules ?
    My requirement is to lock the weeks as we go . for example if data has already been sent in week1 no one should be able to modify it through input schedules.
    other weeks should be open for sending data. The weeks that have passed need this restriction.
    Any ideas ?
    Thanks

    Hi,
    You should first maintain the work status at the appset level. Please refer to the below link from help.sap:
    http://help.sap.com/saphelp_bpc75/helpdata/en/f8/d51b881cfa4c5992de481ccfa05db3/content.htm
    Hope this helps.

  • Restrict Users from saving files on Local PC but forced to Network Shared Location

    Hi,
    We have the Domain in Windows 2003 Standard.
    How can I restrict users from saving files in their Local PC? 
    Also, need to forced them to save the files in Network Location with permissions...
    Thanks.
    ~CoolPra~

    Hi,
    You can create a file screen to prevent users from saving files on a certain volume. File screens are used to block specific types of files from being saved on a volume or in a folder tree. A file screen affects all folders in the designated path. You need
    to update the server to Windows Server 2003 R2 to install the File Server Resource Manager.
    File Screening Management
    http://technet.microsoft.com/en-us/library/cc772675(v=ws.10).aspx
    Best Regards,
    Mandy 
    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.

  • Is their any way to restrict user from overriding  the graphs in SAP APO?

    Dear All,
    As we know, we can copy the graphs to other users using /n/sapapo/sdp_graph. But is their any way to restrict user from overriding the graph to particular user.
    Scenarios:
    In a project we have super user and semi-super user, whenever super user uses above t-code to copy graph to all users (he has included semi-super user id to target user list) but semi-super user does not want to override his graph by super user.
    Do we have such function in APO to restrict?
    Hope it is clear to understand.
    Regards,
    Pravin Tikar

    Hi Amol,
    thanks,
    I have checked SP Note 400434 - Authorizations in APO demand planning Also.
    Will check the authorization and will update the same.
    regards,
    Pravin Tikar

  • How to get the SSO user from PL/SQL with Windows native authen

    I connect to a 10g daabase using SSO through Windows Native Authentication wher the OID user mapps to a single Database user.
    I need to get the SSO user from pl/sql
    My fornt end is Portal & Forms

    Hmm, I see.
    Well your problem boils down to being in the database and needing to have access to web environment variables. The SSO sets specific variables in the environment but your stored procedure is not privy to them.
    Now having said that, note that the mod_plsql Web Toolkit has a utility for accessing cgi variables. For instance,
    owa_util.get_cgi_env('Osso-User-Dn')
    If your web application cannot capture the SSO info and pass it to the stored proc in a parameter, OWA may be the only way.
    Check out the Single Sign-On Developers Guide, specifically the part about developing statically protected PLSQL applications.
    Hope this helps.
    regards,
    tt

  • Restricting users from removing EFB paramter

    Dear all,
    We have defined user parameter EFB in OMET to ensure users have reference documents when creating a PO. This EFB parameter is then added to the user profile via SU3's parameter tab.
    However, all users have access to SU3 to define their own set of parameters. With that, we run into the risk of users removing the assigned EFB parameter themselves, thus allowing creation of PO without reference.
    Is there anyway that we can restrict users from removing this parameter or are there any alternatives?
    Thanks.

    Hello,
    Sorry, but there´s no option to prevent the change if the user parameters.
    I could find the answer from a developer:
    "the maintenance of PIDs is designed without any authorization check. The background is that every user should have the possibility to fit his/her own PIDs for daily work.".
    Best Regards,
    Arminda Jack

Maybe you are looking for

  • Access to Oracle 8i migration

    Hi, What is the best method to use to migrate DB schema and data from an access db to Oracle 8i. We will need to do this quite often, so if you have any scripts, that would be nice! Thanks

  • URGENT HELP WITH DATES

    Hi, I need to compare two dates, so I can get the difference betweem them in hours.

  • Exporting scheduled financial report batches with LCM

    Hi folks. Running 11.1.1.3 EPM here. I'm trying to use LCM to export scheduled Financial Reporting batches. When I am in Shared Services under Reporting and Analysis, under the Scheduled Objects drilldown, I don't see any scheduled objects yet I have

  • Really Basic OO Class Question...

    heres the complete code for my applet...As i understand it this should make a "Car" class then should be generating a "car" object with the constructors marked...then i just use the g.drawstring to output this...but i get a nasty error message. Its s

  • I can't update an iPhone 4 from IOS 4.2.1 to IOS 6 via iTunes?

    Ive been trying to update my iPhone 4 from version IOS 4.2.1. to version IOS 6. I've updated my iTunes to version 11.0.2. and afterwards when told ' You're currently on version 4.2.1.... update to IOS version 6' and me agreeing and selecting... I get