How to allow connect to user only from specified ip addresses?

Hello.
How to allow connect to user only from specified ip addresses?
For example,.
User1 can connect only from 192.168.1.10
User2 can only connect from 192.168.1.11
and etc...
Thank you.

Web says:

CREATE OR REPLACE TRIGGER "A1_AFTER_LOGON" AFTER LOGON ON DATABASE BEGIN
IF UPPER(SYS_CONTEXT('USERENV','IP_ADDRESS')) <> '192.168.1.10' THEN

HOW TO FORBID ACCESS ????

END IF;
END;
ALTER TRIGGER "A1_AFTER_LOGON" ENABLE

How to deny access?

Check the blog post that I've provided above

RAISE_APPLICATION_ERROR(-20000, 'You don't have permission to login!');

Tags: Database

Similar Questions

  • Pavilion s5710f: How can I connect my model s5710f from desktop to my Wi - Fi?

    How can I connect to my Wi - Fi?  The only internet option to choose in the installer is broadband.  Thank you.

    Hello:

    Here is the link to the page of product for your PC specifications.

    http://h22207.www2.HP.com/us-en/document/c02627981

    It does not come with wireless networking capabilities, or this feature should have been included as well as the 10 Base T wired network specification.

    The best thing to do to give your PC wireless networking capabilities would be to install an external usb wireless network adapter.

    It's the one I use on two of my HP desktop PC.  It works with several OSes including Windows 10.

    http://www.Amazon.com/Linksys-dual-band-Wireless-N-adapter-AE3000/DP/B007ZLGXA8

    I guess that you have a connection broadband (cable or DSL) and a wireless router.

  • How to permanently remove a user account from Vista home premium at all times

    I have tried to delete a few old my laptop turned off user accounts and cannot do so for a reason any. I can prevent them to appear on the login screen, but they still appear in the "USERS" folder ??? Someone at - it a

    the idea that actually works?

    Hello

    Be sure to back up all files under this user account before removing.

    How to delete an account in Vista
    http://www.Vistax64.com/tutorials/93026-user-account-delete.html

    Vista: How to remove a user account
    http://www.tech-recipes.com/Rx/2054/vista_how_to_delete_user_account/

    Manage user accounts - scroll to the bottom to create a new user account
    http://www.vista4beginners.com/manage-user-accounts

    I hope this helps.

  • How can I change a user profile from local/temp to a permanent user profile?

    How to change a local "Temp" / "' user profile to a user profile permanent so that I can keep my settings/bookmarks and access my files in Windows 7 Home Premium?  I can't access my files and have to start over as a new user whenever I start my pc.

    I would like to use system restore to set Windows to a point before this problem appeared.

  • How to change the name 'user comments' from English to my native language?

    It used to be in Russian, but after that I reinstalled Lion two months previously (on top existing without erasing files) I now see that it is in English all the time. I want it like before, how do I change his name to that Russian permanently?

    Change the language used on the login on your Mac - Apple Support screen

  • How to allow a standard user to enable or disable devices in Device Manager

    I wand to greater access to a standard user to enable or disable devices in Device Manager also start stop service permission.

    I wand to greater access to a standard user to enable or disable devices in Device Manager also start stop service permission.

    You must do this through an agent as follows: create a scheduled task that is running under the account system once every five minutes. If the task detects a semaphore file (which is created by the standard user), and then it run devcon.exe (to toggle a device) or sc.exe (to start/stop a service). To do this successfully requires skills in scripting.

  • Mac Mail: How to divorce a common incorrect name from an email address

    Apple Mail 8.2 on Yosemite OS X 10.10.5

    Recently, an email address of a colleague is associated with the subject of an email.

    for example Steve and Carol <[email protected]> now each email Melissa comes with that line associates and even if I deleted all e-mails from my computer by mail and sent an email to the correct address

    (his name <[email protected]>) his response showed once again as Steve and Carol...

    What should I do to restore the correct full address and the e-mail address of the wick of Steve and Carol divorce?

    Do I need to do on the cloud as well or is there a special place where to live these addresses?

    Check the Contact application and make sure that the address is not listed as a name inside that people listed email addresses or contact.

    In Mail, open the list of previous winners (under the window in the menu). Remove all references to this address. Also if you have any iOS devices, you can view the past winners their typing the name in a new e-mail message and to see if the address is in the list. If so, click the circle icon 'i' and delete it.

  • How to allow access to all users of the connection on my computer?

    How to allow access to all users of the connection on my computer?

    Your question is hard to understand.  I interpret as:

    "How to allow all the users on my computer to access some files or folders?

    The answer depends somewhat on the question of whether you have XP Pro or XP Home, but a general answer is found the following article.

    "How to use file sharing Simple to share files in Windows XP"
      <>http://support.Microsoft.com/kb/304040 >

    Click on "level 3: files in shared documents available to local users"

    HTH,
    JW

  • How can I connect to a user on my drive c that are not not on my user account in my control panel

    Thanks for your help...

    Here's the question...

    I am not able to connect to the user account.  When I check the c drive of the user is referenced, but when I checked under the user Panel is not listed.

    The question is how can I connect a user account in my c drive not registered on my user account in my control panel?

    Files in the folder (C:\Users) user account are left after the removal of the user of a computer account.

    Presence of a user account in the C drive does not necessarily a real account by this name need to exist.

  • How to print in black ink only or grayscape

    I have a HP Deskjet 3520 printer e-all-in-one-series.  I only need to print documents using a black ink and found no reason to print anything in color.

    I would be grateful if someone could tell me how I can set up my printer so it prints only in black or grayshade documents as some call it.

    Thank you

    Hello Mindfl,

    I extracted the how to print in black ink only from HP Deskjet 3520 User Guide.

    You can check the "Page 13" user guide if you wish.

    See you soon,.

  • How to enable the end user determine the type of sort?

    Helllo all,.

    I use APEX 4.2.2. Oracle 11.2.0.3.

    In a classic Rerpot (line custom model), how to allow the end user to determine the type of sorting?

    I use decoding to select the column that the sort is done, but how to determine: Asc / Desc?

    order by decode(:P2_SORT, 'PRICE', v.PRICE, 'PROP_SIZE', v.PROP_SIZE , 'BEDS' , v.BEDS , 'AREA' , v.AREA) 
    

    Kind regards

    One way may be to use a second element which maintain the sort order. Lets call it P2_ASCDESC.

    Your order by condition might look like this:

    order by decode(:P2_ASCDESC,'ASC', decode(:P2_SORT, 'PRICE', v.PRICE, 'PROP_SIZE', v.PROP_SIZE , 'BEDS' , v.BEDS , 'AREA' , v.AREA), null) asc
            ,decode(:P2_ASCDESC,'DESC', decode(:P2_SORT, 'PRICE', v.PRICE, 'PROP_SIZE', v.PROP_SIZE , 'BEDS' , v.BEDS , 'AREA' , v.AREA), null) desc
    

    I don't like this solution, since you réimplémentez one of the nicer features that apex was already out of the box. Better would be to stick to a classic report template and allow the standard user-defined sort order. Why do you think that you need your own non-standard solution?

  • How to connect the database to a single ip address to another pc ip. ?

    Hai,

    IAM back to the obiee. I have the database during the investigation period: 198.0.0.0(for ex) and I have to connect through odbc to my pc ip: 198.0.0.1 (for ex). Please explain how we can connect to the database from our pc to import this database into our bi Administrator tool.

    Thanks in advance,

    Hello...

    install the client software on your machine
    perform, configuring the listener using net configuration assistant,
    Now using this name of the listener, you create a DSN and use in SPR, you want to develop

    OR

    go to ODBC Data Source Administrator & and add with Microsoft ODBC for Oracle DSN
    in the server field, you write your parent machine\listenername
    and use it in SPR... I hope the other works...

  • How can I connect to a computer witch works on win 3.1.1 from a xp computer. 3.1.1 victory has only Board of LAN and a Perrine.

    How can I connect to a computer witch works on win 3.1.1 from a xp computer. 3.1.1 victory has only Board of LAN and a Perrine. No update is possible at the victory of 3.1.1

    Hi george!

    3.1.1 Windows is no longer supported by Microsoft.

  • How to limit a certain user of data Oracle can connect only certain IP

    Hi gurus,

    I want to connect the user to oracle database with its own IP address of the client. for example, the user has

    can single connection in the database of its own Machine (unique IP).


    and if he /She tries to connect by using the same database user name and password of the another machine other than his own machine.


    Then it cannot connect to the database.


    any suggestion?

    This will be the easiest way:

    
    create or replace trigger trg_prevent_login
    after logon on database when (user='HR')
    begin
      if nvl(sys_context('userenv','ip_address'),'127.0.0.1')!='192.168.56.101' then
          raise_application_error(-20001,'The login from your ip address is forbidden');
      end if;
    end;
    /
    
  • How-to: set up another user to connect separately

    How to set up another user to open a session on their desktop separately from myself?  Is it not logical to have more than one user name on a PC when there is more than one user?

    How to set up another user to open a session on their desktop separately from myself?  Is it not logical to have more than one user name on a PC when there is more than one user?

    In general, for the purposes of personal confidentiality, each user has access to his user account and so own name username and password which will be known only to this particular user.

    Which means... every user will log on access to his own office with access to its own username and password.

    Based on this principle, Yes, it is quite logical.

    In addition, the general tule of thumb is that, there is an account administrator accessible only to the administrator.
    The rest of the accounts are standard accounts that do not have administrator privileges.
    For preventive measures, it is also wise to have 2 Administrator accounts. One will be a "backup" for an emergency so that if an admin fails to connect, there is another to retreat.

    I guess you don't know how to create user accounts. Yes?
    If not, please after return.

Maybe you are looking for