Access to Oracle Database by a specific user from a client system.

Hi All,
I need to restrict a particular client system to access the database only by a specific user credentials. I mean system A(hostname) can only connect the database PQR only and only by user U123. Any help is sincerely appreciated.
Regards
Swapan

Hi,
I solved it by a trigger at logon on V$SESSION which validates MACHINE like [HOSTNAME] and username not like [the_user_I_would_allow].
It works now.
Thanks for your reply.
Regards
Swapan

Similar Messages

  • Possible to delete Offline Files content for a specific user from the Client Side Cache (CSC) ?.

    Hello Everyone,
    We would like to implement a script to delete the offline files in the Client Side Cache (CSC) for a nominated user (on Windows 7 x64 enterprise).
    I am aware that;
    1. We can use a registry value to flush the entire CNC cache (for all users) next time the machine reboots.
    2. If we delete the user's local profile it appears that Windows 7 also removes their content from the local CSC.
    However, we would like to just delete the CSC content for a particular nominated user without having to delete their local user profile.
    In our environment we have many users that share workstations but only use them occasionally. We don't use roaming profile so we would like to retain all the users' local profiles but still delete the CSC content for any users that haven't
    logged on in a week.
    Any ideas or info would be appreciated !
    Thanks, Makes

    Hi,
    I don't think this is possible.
    If you want to achieve it via script, I suggest you post it in official script forum for more professional help:
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?category=scripting
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Karen Hu
    TechNet Community Support

  • Oracle Database Lite API Specification JDBC

    Hello.
    I would like to create a schema with Oracle Database Lite API Specification.
    I have done a script to create an application in the Mobile Server in this way:
    "Platform p = new Platform("WINCE_ARMV4_US_OLITE_STD42");"
    "Application app = new Application(nombre_app, ruta_virtual_app, p);"
    And using ConsolidatorManager for the conection:
    "ConsolidatorManager cm = new ConsolidatorManager();"
    "cm.openConnection(user, password, dir_repository);"
    But after that, I can't get the application. Could you help me, please?
    Thank you.
    With best regards.

    Is this subscription parameter causing a problem?
    unless the subscription parameter name is referenced in the select statements for any of the publication item definitions, it will be ignored by the processing as the subsetting parameters are just used to supply values for bind variables at query time
    If you have other valid subsetting parameters for the user, then try (if all your set up is done via APIs and you do not have an APPLICATION, only a PUBLICATION, this may not work)
    1) go into the mobile manager > users
    2) search for user name, and click on the link under the user name
    3) go to subsetting parameters and pick a valid one
    4) select the data and do cntrl C cntrl V (cut and paste)
    5) press the save button
    The above has the effect of resetting the user account, and refreshes sequence values, c$all_client_items etc.
    If you can do the above steps, but this does not remove the subsetting variable, you should be able to go to it and set the value to NULL
    I do not think that there is a delete function due to the dependancy to the select statements which would be complex to validate

  • Can Forms Builder access non-Oracle Database?

    Does any one know whether Pracle Forms can access othe non-Oracle database via ODBC or JDBC to MS Access or MySQL?

    12282,
    In general, HTML DB gives you access to Oracle database facilities. These include heterogeneous services. Please search this forum for keyword "heterogeneous" and you can follow the threads that interest you.
    As for the comparison with brain surgery, I'd rank them about the same in terms of raw thrill.
    Scott

  • Can you access non-Oracle database with HTML DB?

    Can you access non-Oracle database with HTML DB? If not, will this be possible in the future?
    I realize HTML DB is not an open-source product. However, it is necessary sometimes to get non-Oracle database info. JDeveloper supports this. It does not appear to me that HTML DB does. This is a major drawback to it being a product for more potential applications that rely on other database technology such as MySQL, etc.
    If it is possible, is this brain surgery to do it. HTML DB offers fast simplified development and it would be good if it was built in. Does anyone know of an example of accessing non-Oracle database that is available?

    12282,
    In general, HTML DB gives you access to Oracle database facilities. These include heterogeneous services. Please search this forum for keyword "heterogeneous" and you can follow the threads that interest you.
    As for the comparison with brain surgery, I'd rank them about the same in terms of raw thrill.
    Scott

  • Unable to connect to Oracle database running on Windows machine from linux.

    Hi,
    I'm not able to connect to oracle database running on Windows machine from Linux machine. I'm geting the below mentioned error. I have given below the code I used to connect to database and database propertes.Do I need to use any specific driver?
    Please help me.
    Thanks,
    Sunjyoti
    Code :
    import oracle.jdbc.pool.OracleDataSource;
    import java.sql.Connection;
    import java.util.*;
    import java.sql.*;
    import java.io.*;
    class try2{
    public static void main(String args[]) {
    try {
              System.out.println("hi");
    // Load the properties file to get the connection information
    Properties prop = new Properties();
    prop.load(new FileInputStream("/home/sreejith/EDIReader/Connection.properties"));
    // Create a OracleDataSource instance
    OracleDataSource ods = new OracleDataSource();
    System.out.println("prop is "+prop);
    configureDataSource(ods, prop);
    Connection conn=null;
    // Create a connection object
    conn = ods.getConnection();
         System.out.println("Connection is"+conn);
    // Sets the auto-commit property for the connection to be false.
    conn.setAutoCommit(false);
    } catch (SQLException sqlEx){ // Handle SQL Errors
    System.out.println("In exception "+sqlEx);
    } catch(Exception excep) { // Handle other errors
    System.out.println(" Exception "+ excep.toString());
    private static void configureDataSource(OracleDataSource ods, Properties prop) {
    // Database Host Name
    ods.setServerName(prop.getProperty("HostName"));
    // Set the database SID
    ods.setDatabaseName(prop.getProperty("SID"));
    // Set database port
    ods.setPortNumber( new Integer( prop.getProperty("Port") ).intValue());
    // Set the driver type
    ods.setDriverType ("thin");
    // Sets the user name
    ods.setUser(prop.getProperty("UserName"));
    // Sets the password
    ods.setPassword(prop.getProperty("Password"));
    Connection properties :
    # Your Database Connection details
    HostName = 10.20.3.19
    SID = EDIREAD
    Port = 1521
    UserName = dbuser
    Password = dbuser
    Error I'm getting is
    error while trying to connect with odbc datasource
    [root@iflexpau2217 EDIReader]# java try2
    hi
    prop is {HostName=10.20.3.19, Password=dbuser, UserName=dbuser, SID=EDIREAD, Port=1521}
    In exception java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    Also I tried to connect with weblogic JDBC driver
    Code is here:
    import java.io.BufferedReader;
    import java.io.ByteArrayInputStream;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.FileReader;
    import java.io.IOException;
    import java.sql.Blob;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.SQLException;
    //import com.entrust.toolkit.util.ByteArray;
    public class trial{
         public static void main(String args[]) throws IOException{
              System.out.println("hi");
              Connection p_conn = null;
              PreparedStatement xml_insert = null;
              try {
         // Load the JDBC driver
                   System.out.println("hi2");
         // String driverName = "oracle.jdbc.driver.OracleDriver";
    String driverName = "weblogic.jdbc.oracle.OracleDriver";
         System.out.println("hi2");
         Class.forName(driverName);
         // Create a connection to the database
         String serverName = "10.20.3.19";
         String portNumber = "1521";
         String sid = "EDIREAD";
         //String url = "jdbc:oracle:thin:@" + serverName + ":" + portNumber + ":" + sid;
    String url = "jdbc:bea:oracle://10.20.3.19:1521";
         String username = "dbuser";
         String password = "dbuser";
    System.out.println("connection is:"+p_conn+"user name is"+username+"password is"+password);
         p_conn = DriverManager.getConnection(url, username, password);
         System.out.println("connection is:"+p_conn+"user name is"+username+"password is"+password);
              xml_insert=p_conn.prepareStatement("insert into PRTB_SUBUNIT (SUBUNT_ID,SUBUNT_SUB_UNIT,SUBUNT_PHYUNT_ID) values (?,?,?)");
              //InputStream in=null;
              File l_file=new File("/home/sreejith/EDIReader/propertyfiles/inputfile/BUG_10802_ES_CSB19_68.txt");
              BufferedReader input =null;
              input=new BufferedReader(new FileReader(l_file));
              String line = null;
              StringBuffer trial=new StringBuffer();
              while (( line = input.readLine()) != null){
                   trial.append(line);
                   trial.append(System.getProperty("line.separator"));
              //InputStream is = new BufferedInputStream(new FileInputStream(l_file));
              System.out.println(trial.toString());
              //Blob b ;
              //byte[] bytes=trial.toString().getBytes();
              //System.out.println("Size-->"+bytes.length);
              xml_insert.setString(1,new String("SpecailChar"));
              //xml_insert.setBinaryStream(2,new ByteArrayInputStream(bytes),15920);
              xml_insert.setString(3,"SpecailChar");
              xml_insert.executeUpdate();
              p_conn.commit();
              } catch (ClassNotFoundException e) {
                   System.out.println("ClassNotFoundException:"+e.getMessage());
              // Could not find the database driver
              } catch (SQLException e) {
                   System.out.println("SQEXCEPTIN:"+e.getMessage());
              // Could not connect to the database
              }catch (FileNotFoundException e) {
                   System.out.println("filenot found:"+e.getMessage());
              // Could not connect to the database
    Error I'm getting is
    error while trying with jdbc:
    SQEXCEPTIN:[BEA][Oracle JDBC Driver]Error establishing socket to host and port: 10.20.3.19:1521. Reason: Connection refused

    Is the Windows firewall active? Have you enabled the port on the firewall, if it is?

  • Exclude specific user from aaa authorization commands

    Hi there,
    I am trying to find a solution to exclude specific users from being authorized (AAA command authorization) when entering commands on the switch/router.
    We use an AAA setup with Cisco ACS. On the devices we use:
    aaa authorization config-commands
    aaa authorization commands 1 default group tacacs+ local
    aaa authorization commands 5 default group tacacs+ local
    aaa authorization commands 15 default group tacacs+ local
    is it possible, to exclude an  user, say User1, from being command authorized?
    In other words, when User1 logs on the switch/router, the switch/router shouldn't check the ACS if User1 is authorized to use this command.
    We tried this with method lists in combination with ACL's on the VTY's:
    line VTY 0
    access-class 1 in
    line VTY 1
    access-class 2 in
    Let's say, User1 always logs in from a specific IP, which is mentioned in access-list 2, the switch would use the method mentioned within the line vty 1.
    But apparently, when a remote connection is being established, the switch/router uses the first VTY which is available, instead of watching which ACL can be matched to the source IP from the User.
    Does anyone have some tips/tricks how to handle this?
    Maybe a custom attribute from the ACS?
    Kind Regards

    If that user belongs to a unique group then you can write a policy where "if the user is in group x then return "access_reject" Or return "access_accept" but set the privilege level to "1" and block all commands. 
    Thank you for rating helpful posts!

  • Database version and patchset applied from the operating system level in so

    How to find out the database version and patchset applied from the operating system level in solaris?

    [oracle@rac1 udump]$ cd $ORACLE_HOME/OPatch/
    [oracle@rac1 OPatch]$ pwd
    /u01/app/oracle/product/10.2.0/db_1/OPatch
    [oracle@rac1 OPatch]$ export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
    [oracle@rac1 OPatch]$ ./opatch lsinventory
    Invoking OPatch 10.2.0.1.0
    Oracle interim Patch Installer version 10.2.0.1.0
    Copyright (c) 2005, Oracle Corporation. All rights reserved..
    Oracle Home : /u01/app/oracle/product/10.2.0/db_1
    Central Inventory : /u01/app/oracle/oraInventory
    from : /u01/app/oracle/product/10.2.0/db_1/oraInst.loc
    OPatch version : 10.2.0.1.0
    OUI version : 10.2.0.1.0
    OUI location : /u01/app/oracle/product/10.2
    Edited by: rajeysh on Jul 31, 2010 1:19 AM

  • How can I move particular users from one client to another client

    Hi, I am trying to find a way to move few or many user from one client to another. Is there a transaction available or program to move them. e.g. there is a SCC1 available to move transport only from one client to another without going through TMS.
    Is there any trick available ?
    thnx in advance

    closing this one. thnx

  • Access of oracle database through sys user

    Hi All,
    Can any one suggest me what are the possibility to access database through SYS user...I install oracle database 10.2.0.4 on Win-2003 SE.
    Now I want to make restrict that no one can be able to logged in database as a sys user so I do one thing that in sqlnet.ora file at server side make none in sql authentication line. What are the other possible way that user can access through sys user?
    Please suggest me...
    Thanks...

    user505 wrote:
    Hi All,
    Can any one suggest me what are the possibility to access database through SYS user...I install oracle database 10.2.0.4 on Win-2003 SE.
    Now I want to make restrict that no one can be able to logged in database as a sys user so I do one thing that in sqlnet.ora file at server side make none in sql authentication line. What are the other possible way that user can access through sys user?One other possibility can be to come from the remote system as the Sys user. So you can set remote_loginpasswordfile to shared. This will ensure that without knowing the password, person won't be able to connect.
    That said, there is no stopping for the person who would be knowing the credentials of your o/s or sys user.
    HTH
    Aman....

  • Allocating certain percentage of database resource to specific user

    Hi,
    Is it posisble to allocate a certain percentage of database reosurce to a specific user?
    We are using Oracle 11.2.0.3 on IBM Power Series 7 (AIX operating system) and find that if have to run the standard ETL during the day, the resources are swallowed up by this user.
    Oracle enterprise with partitioning license.
    It would be godd if could say ensure pl/sqwl ran on another separate schema always had x%age of resource?
    Is this possible?
    Thanks

    Hi
    I think You can do it creating resuorce plan and including the user into the corresponding group
    DBMS_RESOURCE_MANAGER.CREATE_PLAN( ...Regards,
    Pavel

  • How to assign read only access for a database to a single user?

    Hi All,
    I have created a login for one of the user , and i used deny view to deny that user access to any of the databases to be shown.Now, he cannot see any databases in the explorer window.
    My question is now i want to give this user permission ( read-only) to a single database. How can i do that? I have googled around and found some solutions but nothing is working.
    Can someone please help me with any suggestions.
    Thanks a lot for your time and suggestions in advance.
    Thanks

    Hi Bhanu,
    Thanks for your reply, I am not sure i got it. I have a user created with the name of 'msam_test' and if i login into management studio with this userid and password i dont see any databases showing up because i used the DENY View command to hide which is
    working fine.Now i just want to see only 1 database named 'suresh3_test' with a read only access to this database.
    I tried using your code in the below way
    USE [suresh3_test]
    CREATE USER [<msam_test>] FOR LOGIN [<msam_test>] WITH DEFAULT_SCHEMA=[dbo]
     exec SP_ADDROLEMEMBER 'DB_DATAREADER','<msam_test>'
    But i receive an error saying
    Msg 15007, Level 16, State 1, Line 3
    '<msam_test>' is not a valid login or you do not have permission.
    Msg 15410, Level 11, State 1, Procedure sp_addrolemember, Line 75
    User or role '<msam_test>' does not exist in this database.
    Can you please help me on this.
    Thanks

  • DATA IMPORT from MS.ACCESS TO ORACLE DATABASE

    I have an MS ACCESS MDB file , I to import all the Tables and Data into ORACLE DATABASE through FORMS.Because this file is on Client side, and maintain on daily basis ,so it is very hard to import manually daily through traditional ODBC method,for that our one team member busy all day with that issue.
    Is it possible in our forms to import data from MS.ACCESS to ORACLE. I tried HOST command but it doesn't work.
    Data structure and Table Name are same both is MS Access and Oracle.
    We are Oracle 8i and Developer 6i

    Like i said in my previous post, the same steps that you used to do manually, you need to do it through forms, it's not that straight forward, you need to do lots of coding.
    connect form to MS Access db read the data, and insert them into oracle tables.
    Search the forum, there are solutions previously posted, and keep checking the online help .
    Tony

  • Problem with Oracle 9i client to access multiple oracle databases

    I am having problem setting up oracle client 9i to access multiple oracle db. When I finish installing Oracle 8.x client, I simply replace the tnsnames.ora that the installation created with the ones that I have. I can access three different databases. I only need to add three diffrent entries in the tnsnames.ora file. I cannot be able to do this with Oracle 9i client. I follow the instruction from the CD installation to use local naming method. It appears that Oracle client try to create multiple entries on my tnsnames.ora file but I can only be able to access one db.
    Any help is appreciated.
    Thanks! HD

    the old tnsnames.ora is working with Oracle 8 client. The new tnsnames.ora (if I use the Oracle Net config) have two entries, one is dev and the other is prod.
    Thanks!

  • Accessing non-oracle databases from oracle

    Is there any way to access from oracle to non-oracle databases and copy the data using COPY command?

    Hi Nitin!
    You can access these legacy applications as so-called external applications. Check out the Application Server Single Sign On guide.
    cu
    Andreas

Maybe you are looking for

  • Can not connect Macbook Pro to IPhone 6 Plus via bluetooth.

    I have a MacBook pro late 2011 with Yosemite 10.10.1 and bluetooth ver. 2.1 EDR. I can not connect my IPhone 6 Plus Ver. 8.1 via bluetooth.  I can see the the iPhone 6 on my MacBook and MacBook on IPhone 6, and can select connect but the iPhone 6 has

  • How to find out which documents are linked to a graphic

    We're in the process of cleaning up our network drive by moving relevant files to a new drive and deleting duplicate or other unnecessary files. We have a lot of files and it would not be practical to do this migration in mass so we would like to do

  • Vendor bankrupt

    vendor bankrupt how we can setupin sap and  for the alternative payee settings

  • Lost centralized view..

    The first time I used Messages I could see multiple recipients in the list, for whatever reason they've switched to small individual windows, and I can't see an option to switch back to regular view. Mine are stuck like this: The only way I can switc

  • Lightroom Thinks My Serial Number is Invalid

    I have a purchased copy of Adobe Lightroom 5. I replaced my desktop computer, and am trying to install Lightroom 5 on it. I downloaded Lightroom 5 via the Creative Cloud installer, and when I go to activate it, it tells me my serial number is invalid