How to tie a user oracle in a service rac

Hi all,
I have two services in my RAC environment with two nodes and I would like to know how to tie a username in a service from RAC.
The services are:
HMDPRD
HMDREL
So, I want that a username name called DBAHMD run only on instance PRD1 and the other users run only on instance PRD2.
Thanks.
Wander (Brazil)

You have two groups of usernames:
1) DBAHMD
2) Everyone else
If user 1 always connects from the same client machine, and the group of users in group 2 always connect from different machines, you can enforce this by having different tnsnames entries for user 1 vs. the list of users in group 2.
If all users can connect from any client machine, then you could have two different aliases and make sure that logging on as user DBAHMD always uses alias PRD1 and other connections have to user alias PRD2.
You can enforce it by an after database logon trigger that returns an error when someone logs on to the wrong instance.

Similar Messages

  • How to create a user in Opensso Identity Service Webservices api?

    Hi All,
    I am getting struck with the creation of user in OpenSSO through the webservices api they are providing.
    I used the following wsdl link to create the API's. http://localhost:8080/opensso/identityservices?WSDL
    Now my requirement is, i have to create a user profile through the program which has the api create(identity,admin) created by the WSDL link.
    Here identity is the com.sun.idsvcs.IdentityDetails and admin is the com.sun.idsvcs.Token. I want to append givenName,cn,sn,userPassword in that. But dont have any idea how to given these details in IdentityDetails. If anyone give any sample solution i can follow.
    Any Help Greatly Appreciated.
    Thanks in Advance.
    With Regards,
    Nithya.

    Hey, I've managed to implement OpenSSO user registration through SOAP.
    My code is:
    package ru.vostrets.service.implementation.helper.opensso;
    import ru.vostrets.model.person.Person;
    import org.springframework.beans.factory.annotation.Autowired;
    import org.springframework.stereotype.Service;
    import ru.vostrets.dao.PropertiesDao;
    import ru.vostrets.exception.FatalError;
    import com.sun.identity.idsvcs.opensso.*;
    import java.util.HashMap;
    import java.util.Map;
    import org.slf4j.LoggerFactory;
    import org.slf4j.Logger;
    import ru.vostrets.exception.ConfigurationError;
    * @author Kuchumov Nikolay
    * email: [email protected]
    @Service
    public class OpenSsoPersonServiceHelper
         private enum AttributeName
              USER_NAME("uid"),
              PASS_WORD("userpassword"),
              GIVEN_NAME("givenname"),
              FAMILY_NAME("sn"),
              FULL_NAME("cn"),
              EMAIL("mail");
              private final String name;
              AttributeName(String name)
                   this.name = name;
              public String getName()
                   return name;
         private static final Logger LOG = LoggerFactory.getLogger(OpenSsoPersonServiceHelper.class);
         private PropertiesDao propertiesDao;
         public void create(Person person)
              try
                   IdentityServicesImplService service = new IdentityServicesImplService();
                   IdentityServicesImpl servicePort = service.getIdentityServicesImplPort();
                   java.util.List<java.lang.String> attributeNames = null;
                   Token subject = new Token();
                   subject.setId(request.getParameter("token"));
                   UserDetails results = servicePort.attributes(attributeNames, subject);
                   for (Attribute attribute : results.getAttributes())
                        LOG.info("************ Attribute: Name = " + attribute.getName() + ", Values = " + attribute.getValues());
                   LOG.info("Roles = " + results.getRoles());
                   IdentityDetails identity = newIdentity
                             person.getCredentials().getUserName(),
                             getAttributes(person)
                    * Creates an identity object with the specified attributes.
                    * @param admin Token identifying the administrator to be used to authorize
                    * the request.
                    * @param identity object containing the attributes of the object
                    * to be created.
                    * @throws NeedMoreCredentials when more credentials are required for
                    * authorization.
                    * @throws DuplicateObject if an object matching the name, type and
                    * realm already exists.
                    * @throws TokenExpired when subject's token has expired.
                    * @throws GeneralFailure on other errors.
                   servicePort.create
                             identity,
                             authenticateAdministrator()
              catch (DuplicateObject_Exception exception)
                   throw new UserAlreadyExistsError();
              catch (Exception exception)
                   //GeneralFailure_Exception
                   //NeedMoreCredentials_Exception
                   //TokenExpired_Exception
                   throw new FatalError(exception);
         private Token authenticateAdministrator()
              try
                   IdentityServicesImplService service = new IdentityServicesImplService();
                   IdentityServicesImpl servicePort = service.getIdentityServicesImplPort();
                   if (propertiesDao.get().getAuthentication().getOpenSso().getAdministrator().getUserName() == null
                             || propertiesDao.get().getAuthentication().getOpenSso().getAdministrator().getPassWord() == null)
                        throw new ConfigurationError("OpenSSO administration properties not initialized");
                    * Attempt to authenticate using simple user/password credentials.
                    * @param username Subject's user name.
                    * @param password Subject's password
                    * @param uri Subject's context such as module, organization, etc.
                    * @return Subject's token if authenticated.
                    * @throws UserNotFound if user not found.
                    * @throws InvalidPassword if password is invalid.
                    * @throws NeedMoreCredentials if additional credentials are needed for
                    * authentication.
                    * @throws InvalidCredentials if credentials are invalid.
                    * @throws GeneralFailure on other errors.
                   Token token = servicePort.authenticate
                             propertiesDao.get().getAuthentication().getOpenSso().getAdministrator().getUserName(),
                             propertiesDao.get().getAuthentication().getOpenSso().getAdministrator().getPassWord(),
                   LOG.info("******************************** Admin token: " + token.getId());
                   return token;
              catch (Exception exception)
                   throw new FatalError(exception);
              com.sun.identity.idsvcs.opensso.IdentityServicesImplService service = new com.sun.identity.idsvcs.opensso.IdentityServicesImplService();
              QName portQName = new QName("http://opensso.idsvcs.identity.sun.com/" , "IdentityServicesImplPort");
              String request = "<authenticate  xmlns=\"http://opensso.idsvcs.identity.sun.com/\"><username>ENTER VALUE</username><password>ENTER VALUE</password><uri>ENTER VALUE</uri></authenticate>";
              try
                   // Call Web Service Operation
                   Dispatch<Source> sourceDispatch = null;
                   sourceDispatch = service.createDispatch(portQName, Source.class, Service.Mode.PAYLOAD);
                   Source result = sourceDispatch.invoke(new StreamSource(new StringReader(request)));
              catch (Exception exception)
                   // TODO handle custom exceptions here
         private Attribute newAttribute(AttributeName name, Object value)
              Attribute attribute = new Attribute();
              attribute.setName(name.getName());
              attribute.getValues().add(value.toString());
              return attribute;
         private Map<AttributeName, Object> fillAttributes(Map<AttributeName, Object> attributes, Person person)
              attributes.put(AttributeName.USER_NAME, person.getCredentials().getUserName());
              attributes.put(AttributeName.PASS_WORD, person.getCredentials().getPassWord());
              attributes.put(AttributeName.GIVEN_NAME, person.getPersonal().getGivenName());
              attributes.put(AttributeName.FAMILY_NAME, person.getPersonal().getFamilyName());
              attributes.put(AttributeName.FULL_NAME, person);
              attributes.put(AttributeName.EMAIL, person.getContacts().getEmail());
              return attributes;
         private Map<AttributeName, Object> getAttributes(Person person)
              return fillAttributes(new HashMap<AttributeName, Object>(), person);
         private IdentityDetails newIdentity(Object name, Map<AttributeName, Object> attributes)
              IdentityDetails identity = new IdentityDetails();
              identity.setName(name.toString());
              return fillAttributes(identity, attributes);
         private IdentityDetails fillAttributes(IdentityDetails identity, Map<AttributeName, Object> rawAttributes)
              for (Map.Entry<AttributeName, Object> rawAttribute : rawAttributes.entrySet())
                   identity.getAttributes().add(
                             newAttribute(rawAttribute.getKey(), rawAttribute.getValue()));
              return identity;
         @Autowired
         public void setPropertiesDao(PropertiesDao propertiesDao)
              this.propertiesDao = propertiesDao;
    }

  • How to Create Bulk Users in Hpyerion Shared Services Console

    Hi All,
    I need to create bulk users in Shared Services Console. Since i have huge number of users so i don't want to use Front End. Instead i prefer to upload some CSV sort of stuff.
    For this i export Shared Services console and open its Users.csv file.
    Now my plan is to add all my users here and then will Import that Shared Services Console backup.
    The only point where i am confused is that how should i specify Encrypted Passwords in Users.csv file and also what should i write in "internal_id" column

    If you are using LCM and these are native users then you should be able to enter an uncrypted password and when it is imported it should be encrypted.
    Leave the internal id column blank for new users, test by creating one new user.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to create new user for OBIEE presentation service

    Hello Guys
    I now only have 2 users on my OBIEE, demo1, demo2.. Now I'd like to create a new user call A and make this new user able to log on to OBIEE presenation service..
    So I went to the RPD admin tool and created new user there and gave password. It was done online mode and I checked out..
    I am able to login to admin tool with the new user account, but when I go to presentation service, I am not able to see this new user nor would I be able to log on using the new user account..
    So how does this work? If I wanted to create a new user and let it access dashboard, I'd I do it
    Any pointer will be greatly appreciated
    Thanks

    Hi.
    actually there is no option available in presentation service to create user. There you can just delete user and create and delete the groups.
    Anyhow, you said you have created a user in rpd.
    To see this user in answers, you must login into answers with this user once.
    are you able to login with the newly created user?
    (As you said you done the creation of user in online mode, this may not effect to the answers)
    if not, just login with administrator into answers, click on reload server metadata, then log off from there.
    Now, try to login with the new user. You may able to login.
    OR
    just restart your BI Server services.

  • How to disable the User directory in Shared Services?

    Hello,
    We need to disable (Not Delete) the User Directory in Hyperion Shared Services. We are using the Hyperion version 9.3.1. Is there a way we can do this?
    Thanks
    S

    From the 9.3.1 docs:
    "If you do not want to use a configured user directory that was used for provisioning, remove it from the search order so that the user directory is not searched for users and groups. This action maintains the integrity of provisioning information. It also enables you to use the user directory at a later time, if needed."
    http://docs.oracle.com/cd/E10530_01/doc/epm.931/html_cas_help/frameset.htm?removesearchord.htm
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to pass current user credential for PAPI service execution

    Hi All,
    As per my requirement I am using the SAP ME PAPI WS to start the SFC. I have used the SAPME PAPI Interface action block in ME within BLS and searched the service and operation also. Required input parameter mapping is also done and I have successfully executed the BLS and SFC is started in ME. In SAPME PAPI Interface action block I have used Credential alias which is standard configuration in MEINT for user MESYS.
    Now what I have seen is that, in ME the SFC is started by user MESYS. But I want to pass the user who is currently executing. Is there any way to pass the current user credential or session for executing the PAPI service. My final target is to use the BLS in IRPT through Xacute query.
    Thanks in Advance
    Chandan

    Hi Sergiy,
    It is only required for Sfc Start operation. It is a generic requirement for all PAPI WS. User ref is not available for all services. I have taken sfc Start operation as an example. But for  complete SFC operation there is no user ref. in Request structure. Then what would be our generic way to execute it through current user credential.
    Thanks
    Chandan

  • Create new user for Essbase Integration Services

    Hi,I have two users witch creates olap models and metaoutlines.So I would like to create new user at Essbase Integration Services. How to create new user at Essbase Integration Services level?My system:Essbase Server 6.5.1Essbase Integraion Services 6.5.1Essbase Administration Services 6.5.1Thanks,Grofaty

    A user at EIS level is actually a user set up on the relational catalog where your olap models/metaoutlines are stored. For instance if you got to the OLAP model properties dialog and the General tab you can see the owner here is the user you use to connect to your catalog. You can also prevent other users from accessing models not owned by them by setting the security option from the drop-down list on this tab.Mark Rixon www.analitica.co.uk

  • How do i allow users to change their oracle password?

    Please help.
    I need a procedure/module in my forms6 to allow users change their oracle database passwords. I am using Oracle 8.0.6.
    thanks for a reply

    SEND YOUR EMAIL SO I CAN SEND YOU A COMPLETE
    FORM HOW TO CHANGE THE USER PASSWORD
    MARK

  • How to create a user in oracle.

    how to create a user in oracle level.i know how to create from front end.can any body suggest.how to create oracle user from backend.
    Thanks,
    Dave

    Hi,
    We can use the 'hr_user_acct_internal.create_fnd_user' API to create the users. The sample code is as follows:
    BEGIN
    apps.hr_user_acct_internal.create_fnd_user
    (p_user_name => 'XXX',
    p_password => 'XXX',
    p_employee_id => 1234(This is the person id from per_all_people_f),
    p_user_id => x_user_id,
    p_user_start_date => SYSDATE,
    p_email_address => 'XXX',
    p_description => 'XXX',
    p_password_date => NULL
    COMMIT;
    END;
    and to add the responsibility to the user, we can use the following code.
    BEGIN
    fnd_user_pkg.addresp
    (username => 'XXX',
    resp_app => user_res_rec.application_short_name,
    resp_key => user_res_rec.responsibility_key,
    security_group => 'STANDARD',
    description => 'DESCRIPTION',
    start_date => SYSDATE,
    end_date => NULL
    END
    Best Regards
    Arun Kumar S.R
    Apps Associates

  • How to Restrict the users in oracle applications

    Hi,
    I want to Restrict the users in oracle applications without using database
    can any one please expalin me how to resttrict the users using middletier
    Thanks
    Gita

    HI srini ,
    my application version 12.0.4 and database is 10.2.0.4
    and i want to restrict the No of users
    exp i have have 500 users and i want restrict to 100 only
    how can i do that please explain
    Thanks,
    Sudheer

  • How to Validate a User on the click of a button in Oracle APEX

    Hi,
    How to Validate a User on the click of a button in Oracle APEX.
    say for e.g: I want to allow only a specific user to go beyond after clicking on a button and restrict all the other Users. Any ideas please.
    Thanks in Advance,
    Af

    Well , the actual idea was to hide the button for specific users and show the button only for some specific users... is this possible...?
    @ AndyH: yeah, what you have suggested also fits well for my requirement... Could you please let me know how can i achieve it...
    Regards,
    Af

  • How to get the users list that can Add/Remove or modify Vendors in Oracle?

    How to get the users list that can Add/Remove or modify Vendors in Oracle?
    I need to generate a report like name and responsibility. Thanks

    That query gives the Supplier information.
    But what i would be needing is to find out the USERS in oracle who can Add/Modify or Remove Vendors.
    I assume it should be based on the Responsibility.

  • How to add a user directory in oracle e-business?

    Dear all,
    How can I add user directory (for interface purpose) in utl_file_dir?
    Please advice.
    Thanks.

    Just the same way you create a directory in a standalone database.
    How to Copy , Rename , Delete a File And Create a Directory in PL/SQL in Oracle 8i and higher [ID 282190.1]
    Using CREATE DIRECTORY Instead of UTL_FILE_DIR init.ora Parameter [ID 196939.1]
    Top Articles On Using UTL_FILE Package to Perform File I/O (UNIX) [ID 44307.1]
    CREATE DIRECTORY
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/statements_5007.htm#SQLRF01207
    Thanks,
    Hussein

  • How to user ORACLE as username in SQL Developer

    Hi,
    I am new to sql developer. Could you please tell me how do I connect as "ORACLE" user in SQL developer?
    I have full privileges using sys & oracle. I tried using sql as sysdba too but it is not accepting it in spite of providing correct password.

    >
    When I tried connecting to the database as " username - sys as sysdba" in spite of providing correct password, it says, logon denied, incorrect username/password. The oracle database version is 10.2.0.4 & sql developer is 3.5.
    >
    Are you sure you are using Oracle's sql developer?
    This is the official product page
    http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html
    IT shows the current latest version is 3.1.07.42 so Oracle doesn't have a version 3.5 yet.
    And the official product does not have a " username - sys as sysdba" selection anywhere that I can find. There is a role selection dropdown that includes a SYSDBA choice.
    So you provided information that can't possibly be correct and you did not respond to any of the questions that I asked other than DB version.
    If you want help you need to provide SPECIFIC information about what steps you have taken and what results you got.
    What steps did you take, specifically, to create a user called "ORACLE"? What user was used to create the "ORACLE" user? What grants (roles & privileges) were granted to the user named "ORACLE"?
    As for me, since you are not willing to provide information about the other questions that were ask I can't help you so I wish you luck.

  • CloudControl12c: how to set metric for os-processes (user oracle)

    Hi ,
    I would like to set up a metric which monitors the number of processes of the user oracle. However, I haven't found any existing metric which offers this ability.
    Is the set up of a user defined metric the only option I have?
    Rgds
    JH

    You're looking for the VirtualBox forums. https://forums.virtualbox.org/
    This forum is for discussion of Oracle VM Server.

Maybe you are looking for

  • HT1420 Authorized/No longer Authorized error message

    I have authorized my computer but whenever I sync I get an error message that says "This computer is no longer authorized for apps installed on your iphone." It then asks me to authorize or it will delete apps from my phone.  When I click "Authorize"

  • How to deploy an App in an Enterprise environment

    hi @all, We have to following problem in our enterprise. We deliver some iPhones to our top management people pre-configured with the app "iAnywhere" and activated. We install the App "iAnywhere" with our internal Apple-ID Account. Now the problem: i

  • How to connect to a COM application?

    I am having some trouble talking to a COM application via LabVIEW. I use the "Automation Open" function to browse to the COM application file (.exe). When I run the VI, I get this error message; " Error 3005 occurred at Automation Open: Object specif

  • Cracked screen - UK

    Hi, I need some advice. I purchase my ipod nano when they first came out in the UK and at the time, the lady in the apple store encouraged me to buy a wallet for my nano, one that you can put your credit cards etc into it. Recently, I went to get my

  • Is it possible to play continous videos in my Ipad3

    I want to play continous videos on my ipad....how it can be possible.