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;
/

Tags: Database

Similar Questions

  • I teach online and all my classes have the same user name and password. Now that I clicked "remember me next time", I can connect only in one class. How to unlock my password. Carol in English

    I teach online and all my classes have the same user name and password. Now that I clicked "remember me next time", I can connect only in ONE class. How to unlock my login and my password, so that I can use it for all classes. Carol in English

    "Remember Me" for the site connections automatically when you return to the Web site is done with a Cookie the site in Firefox.

    Try to clear your Cookies for this Web site.

    Tools > Options-> life privacy - Cookies = the button show Cookies.

    You must use the custom settings for history at the top of this tab to see the View the Cookies button.

    Enter the domain name in the top search bar and all Cookies for this URL will be displayed. Unless you can figure out which is Cookie to "remember me", you will need to delete them all.

    Hold the {Ctrl} key while you click each Cookie in the small window. When this list is all highlighted, click the Cookie delete button at the bottom left.
    When you are finished click Close.

  • How user by VM (XP) can connect at the same time?

    Hello guys,.

    We test VMware View 4 and so far work fine, but I have a question? How many user by VM can connect at the same time? I test with 2 VM (XP) in the pool, but I want to use more than 2 users, but when I try to login doesn't say "no resources available", what that means is that a single user by VM? Us who is running Terminal Server and try to find alternatives.

    Thank you

    It's the same as with a XP machine. 1 single user can connect at the same time.

    André

  • How to make a user able to connect only once? and how do I restrict a user authorized to vote only 15 candidates and the brand of vote count?

    Hello

    I'm just doing my project which is the voting system. So my first question is how to make a user or a voter can connect once only using their username and password? After that they brought their vote, they can not be able to connect to a vote. Here, the user name, I replace it with IC and the password I can replace the ID (student ID). Here is my code for the connection:

    <?php
    if(isset($_POST["submit"])){
    $user=$_POST['IC'];
    $pass=$_POST['ID'];
    
    
    $con=mysql_connect('localhost','root','pass') or die(mysql_error());
    mysql_select_db('ses') or die("Cannot select DataBase");
    
    
    $query=mysql_query("SELECT * FROM voters WHERE IC='".$user."' AND ID='".$pass."'" );
    $numrows=mysql_num_rows($query);
    if($numrows!=0)
    {
    while($row=mysql_fetch_assoc($query))
    {
    $dbusername=$row['IC'];
    $dbpassword=$row['ID'];
    
    
    }
    
    
    if($user == $dbusername && $pass == $dbpassword )
    {
    session_start();
    $_SESSION['sess_user']=$user;
    $_SESSION['sess_pass']=$pass;
    
    
    
    
    /*Redirect browser*/
    header("Location: main.php");
    }
    }else{
    echo "Invalid IC Number and ID Number!";
    }
    }
    ?>
    
    

    for the second question is how to limit a voter to vote only 15 candidates and counting of the vote that voters go? When the vote is made with 15, then the popup script appears informed that the elector make themselves with their vote.for this I use box as a method of voting and each checkbox have the id which is the primary key. I appoint the id as 'No' and set it as the primary key. Here is the code for voting:

    <?php
    $servername = "localhost";
    $username = "root";
    $password = "pass";
    $dbname = "ses";
    
    
    // Create connection
    $conn = new mysqli($servername, $username, $password, $dbname);
    // Check connection
    if ($conn->connect_error) {
         die("Connection failed: " . $conn->connect_error);
    }
        
    $sql = "SELECT No, Calon, ID, Jurusan, Image FROM candidates";
    $result = $conn->query($sql);
    
    if(isset($_POST['vote'])) {
        
    //get the ID value from the radio button form field and store in an array.
    $update_vote = $_POST['candidate_id'];
    
    //loop through the array and update the database
    foreach ($update_vote as $value) {
    $vote_sachin = "UPDATE candidates SET Undi=Undi+1 WHERE No=".$value."";
    $run_sachin = mysqli_query($conn, $vote_sachin);
    
    
        }
    
      header("Location:http://localhost/VotingSystem/");
    }
    
    
    ?>
    
    
    <form method="post" id="form1" action="main.php">
    <?php
    if ($result->num_rows > 0) {
    echo "<table border >
    
    
    <tr>
    <th>NO</th>
    <th>Candidate</th>
    <th>INFO</th>
    <th>Vote</th>
    </tr>";
    // output data of each row
    while($row = $result->fetch_assoc()) {
    echo "<tr>
    <td align='center'>" . $row["No"]. "</td>
    <td><img src=" . $row['Image'] . " width=120px height=150px></td>
    <td><br/>" . $row["Calon"]. " <br/>" . $row["ID"]. " <br/>" . $row["Jurusan"]. "<br/></td>
    <td align='center'><input type='checkbox' name='candidate_id[]' value='".$row['No']."'></td>
    </tr>";
    }
        echo "<tr><td></td><td></td><td></td>
        <td><input type='submit' name='vote' value='VOTE'</td>
        </tr>";
    echo "</table>";
    
    
    } else {
    echo "0 results";
    }
    $conn->close();
    
    
    ?>
    
    

    I hope someone can help me with this because I'm still trying to learn this by my own php code...

    Thank you

    # 1, add a Boolean column in the table (VoteSubmitted) and the value initially FALSE to follow if the user has already voted.  Check this field when they connect. If the field is set to TRUE, displays a message and cannot vote again. When they get it vote, update the field from FALSE to TRUE.

    # 2, I would like to do this with javascript to allow them to select all their candidates and submit once. You could start with something like this:

    Cut paste & limit the number of boxes checked script

  • Apex 5: How can calendar, I limit what an entry by date

    It is in the suite with the thread can not add links in the calendar Apex5

    Calendar of the apex, we can add number of events per day. How can I limit an event by date only. Can anyone help me this.

    Thank you

    Hi Benjamin,

    not really can be prevented it can click 'create '. Don't forget a multi user scenario where two users view the calendar. The first adds a new entry for a date, but the second user sees only the entrance still until he updates the calendar. User 2 should always be prevented to create an additional entry for that date. Only one validation will ensure that it is prevented.

    But to give feedback to the user earlier that you can change your form page, the user immediately Gets an error message when opening the form page and an entry for this day already exists. You can do this in

    (1) adding an additional region to your form page that does not have a condition of type "rows returned.

    (2) where the source region said something like "a record exists already for the current date.

    (3) put a 'no. lines returned' condition on your ' Create/save' button / region that contains input fields

    Concerning

    Patrick

  • How to find how many times a certain data is repeated in a character field

    Hello
    I am user of Oracle 9i and a newbie to SQL.

    How to find how many times a certain data is repeated in a field in a table of character?

    for example.

    DEPT_NAME
    ------------------------------------
    Homeopathy
    Medicine
    Homeopathy
    Erices
    Homeopathy
    Surgery
    Urology
    Cardiology
    Homeopathy
    Opthamology

    DEPT_NAME here is an area of character and I want to know how many times _ 'Homeopathy' is repeated in the field "DEPT_NAME."

    [email protected] wrote:
    Hello
    I am user of Oracle 9i and a newbie to SQL.

    How to find how many times a certain data is repeated in a field in a table of character?

    for example.

    DEPT_NAME
    ------------------------------------
    Homeopathy
    Medicine
    Homeopathy
    Erices
    Homeopathy
    Surgery
    Urology
    Cardiology
    Homeopathy
    Opthamology

    DEPT_NAME here is an area of character and I want to know how many times _ 'Homeopathy' is repeated in the field "DEPT_NAME."

    You can use the COUNT aggregate function.

    SELECT count(*) FROM  WHERE dept_name = 'Homeopathy'
    
  • How to limit the search to only certain web browsing websites?

    Hey, guys!

    I would like to know how to limit my computer to certain websites. I know how to set up parental controls, but I don't want to do that. I would like to limit the administrator account, but Windows won't let me because I am the administrator. Is there another way to do this? What I try to do is set up the computer so that it has access to some Web sites (similar to what you can do with parental controls). I don't want to block certain websites. I want to access some Web sites only and does not allow the computer to access all websites except those on the list to. Is there a way to do this? Is there a way the administrator to do without having to set up another account username or account of parental control?

    Thank you.

    R. best

    There is not a way to make this built-in function.  I'm sure there are programs online that can help you (although as an administrator, you can always circumvent or disable the software).

    If you want to only block some sites, you can change your hosts file.  However if you want to block "everything but a small number", it would be impossible because you can block only - not allow - sites using the hosts file.

  • How the PopUp open for every 15 minutes until the user saves data

    Hi all

    I'm working on an application where I need to open a popup for every 15 minutes until the user saves data and stop after users register data. I'm not able to get the idea on how it could be done. Please post some views in which it could be done.

    Thanks in advance.

    Hello
    an alternative is the uncommittedDataWarning property is one out of the box functionality, but don t has setup time.

    https://blogs.Oracle.com/Shay/entry/warning_of_uncommitted_unsaved_changes

    If not, you can use an af:poll in combination with a pop-up message

  • How to access a certain date in the date and time field SQL Server

    I have a field named job_date in a table in my database of the 8 SQL Server.

    The data type is datetime.

    Thus, the values for the fields as the 2013-03-11 15:55:52.000 look.

    How to query this field to include only the values of a certain date?

    For example

    < cfquery name = "get_job_name" datasource = 'abc' >

    SELECT FROM job_info job_date WHERE Job_name = March 12, 2013"

    < / cfquery >

    When I query the field now I get NO RECORDS.

    This is because as the fields like this 15:55:52.000 2013-03-11. instead of this March 12, 2013"

    How to access a certain date in the date and time field SQL Server when its formatting as this 15:55:52.000 2013-03-11. ?

    where job_date > = TheDateYouWant

    and job_date<>

    In addition, the format is irrelevent.  The only issue of date formats time is when you want to display.

  • How can I uninstall or repair and I HID Non-User Input data filter?

    (He was installed by windows update & failed because the "fatal error", it continualy attempts to install start-up & fails.) There NOW in some SORT NOW picked UP MY wireless keyboard Microsoft THAT DO WORK MORE, AS THE PROGRAM CACHE IS DEFECTIVE!  When I stop & reboot, the KEYBOARD is NON-OPERATIONAL & I can't GET THE PIN TO LOGON! In desperation I dug an old logitech keyboard and eventually be able to log on to come here for HELP, someone please. Sorry for the cries of joy, (capitals), but I had a full head of hair when I started but I'm now almost bald!
    Brian McGDR

    Hi BrianMcGDR,

    1. When you are unable to install the Microsoft HID Non-User Input update data filter?

    2. What is the full error message you received during the installation of this update?

    3. do you have security software installed on the computer?

    4. What is the model number of the keyboard? What happens when you try to connect the keyboard to the computer?

    The update of the Microsoft HID Non-User Input data filter must be installed if you experience the problem that is mentioned in the Microsoft article below.

    The screen saver does not start after the installation of a wireless pointing device

    http://support.Microsoft.com/kb/913405

    I suggest that you download and install the latest drivers for keyboard, check if it helps.

    http://www.Microsoft.com/hardware/en-us/downloads

    See the update history for the exact error for failure put up-to-date and after return with details.

    (a) open Windows Update by clicking Start , all programsand then click Windows Update.

    (b) in the left pane, click view update history.

    (c) to view more information about an update, double-click it.

  • How to limit Ganymede user to logon to another device of base on the location profile group

    Does anyboby knows how to prevent a user from Ganymede to logon to another device? Our company has a manufacturing in many place around the world, and we wanted to keep all of our engineers based on their geographic location. For example engineers networks base on Asia is limited to access all devices located in the United States needs but we engineers access to all devices that are installed in different locations. I am using Cisco Secure ACS 5.3 and I am not able to do this. The test account I created which is belong to a specific group (i.e. ASIA) can connect to a set of devices that are located in the United States with read access but do not write access because of the restriction that I created. All I wanted is for this test user to block his access to these devices located in the United States.

    Well, lets assume that you have created two American and Asian communities

    you have defined two clients AAA US1 and Asia 1

    also, you have two identity of the groups USgroup and Asiagroup

    (1) If a user tries to access the peripheral USgroup Asia should be rejected

    (2) If a user attempts to access US Asiagroup device should be rejected as well

    other access

    If you need to customize the authorization policy in respect of the device admin access service

    to register the identity group and NDG:location where you can put in the result of the conditions

    What shell never set of profile or the command you want.

    Rule 1: Usgroup NDG:location y US grnat access to profiles of shell and command the necessary value

    Rule 2: Asiagroup NDG:location we Asia grant access to profiles of shell and set of commands necessary

    default: deny access

    ----------------------------------------------------------------------

    Please ensure good answers to rate

  • How to limit the data download duplicate via WebADI

    Hello Experts,

    The isue is in what regards the data transfer WebADI. Currently system allows the user to download the same set of records repeatedly, even if they could have already been pushed to the project.

    This system leads to double upload of documents by the user behavior. It could be a valid case when the user tries to download the first time data sheet, sheet visiting non-responsive State, with the transfer having been completed
    but in the background.

    Nowwhen the user trying to download, the system is not validate if the records have already been processed and sent to the Oracle projects.

    Is it possible in the rows of flag during treatment, in order to avoid duplicate downloads.

    Any provision of the custom extensions?

    Kind regards

    Shan

    Hi Shan,

    Here are the details, the use of your Source of the Transaction. Try n use Unique Trx ID...

    When WebADI imports data Oracle projects because this is information known by the user and which comes from outside of projects.

    But in business case doesn't want duplicates to come in, they can write an Import Client Extension operation (prior to importation) so that you can put your custom logic to see, already, whether it exists in the system. If already exists then you can stop the download.

     

    Allow a double reference

    Enable this option allow multiple transactions with the source of the transaction use the same original system. If you enable this option, you cannot uniquely identify the source of the transaction and the original system reference element.

    Concerning

    Christopher K

  • How to limit users in oracle applications

    Hello

    I want to restrict users in the oracle applications without using the database
    can someone contact me please how resttrict users by using average level

    Thank you
    Gita

    Hello Gita,

    Please see (11i - R12 - how to lock E-Business Suite users and allow specific users [605538.1 ID]).

    Thank you
    Hussein

  • How to limit the use of data on my wifi router?

    I can connect to my wifi router at home and in 3 days that my 1 GB of data on my wifi router is complete.

    I didn't do any updates and I don't know what is with my data.

    I connect to the router wifi, as my cell signal is not good at home, so if I connect to my wifi router, the signal is much better.

    Hello

    Is the router on your home phone line if it is to ask your data network provider much more

    I use at least 150G per month if you can get unlimited optical fiber on £16:50 per month in the United Kingdom.

    See you soon

    Brian

  • How to limit the access of users to shell Exec in CSACS v5.1

    Salvation;

    I'm giving a user access to a single user on a switch (show interfaces) mode command.  I want to him refuse to enter Exec mode altogether.  The switch is configured as:

    AAA authorization exec default group Ganymede + authenticated if
    AAA authorization commands 1 default group Ganymede + authenticated if

    In the v5.1 release CSACS profile of the user's shell has a default privilege of 1 and a maximum privilege to 1.  His set of the command show license interfaces and I explicitly refuse to see the (without arguments) and activate (without arguments).  In user mode, everything works well; the user can run only display Interfaces.  But he is able to enter can get in Exec mode and when in exec mode, he can enter any command exec-level (but user-level commands are still limited).

    I thought just set its maximum 1 privilege would have worked.  Can anyone help?

    Thank you!  Glenn

    Glenn,

    You must put this command

    AAA authorization commands 15 default group Ganymede + authenticated if

    Another router does not check permission of GBA. Orders that we issue in enable mode are priv 15, that's why we need this command.

    Kind regards

    ~ JG

    Note the useful messages!

Maybe you are looking for

  • Why isn't my gadget weather access to the server?

    Maybe this isn't really a problem in Mozilla (it just occurred to me). I selected Gadgets in the right click menu on my desktop (Dell with Windows 7) and selected the weather gadget. It worked fine for months, but about six days ago he ceased to upda

  • How can I access the file address with all the details and print it?

    I wish I could print the address information, telephone numbers, etc., but not make that one contact at a time, I'm looking for a file that might have all the contact information available in one place that I can access.

  • Beetwin difference Satellite M70-160 and M70-192?

    What is the difference beetwin subj Principial models (except 20 GB HARD drive)?Why the public price differ over $ 200?

  • Satellite L30 - BSOD with 2 GB of RAM

    Hi all I have some problems, I can not explain on my * PSL33E L30 *. I bought 2 GB of RAM to put in it, but it makes Windows crashes (BSOD). I already tested memories, they all work alone. Of course they have all the right tip.Is there something to c

  • BlackBerry Smartphones 9720 email synchronization

    I just had to replace my 9720 that the previous "collapsed". All emails that I always had in my Inbox on my old camera disappeared (new emails are received) Can someone help me get back the previous emails on the new device Thank you very much martin