Create dummy user like oracle on linux OS?

Hi All,
Is it possible to take export import to the Oracle DB/Schema/Table from other linux user?
i have plan to create dummy user like oracle on Linux box, so developer will use this dummy user and logging to oracle BOX and take the dump.
I have created one user "TEST" in linux OS.
but what is the next?
what priviledge is requred or take dump from other linux user?
oracle:x:501:502::/home/oracle:/bin/bash
test:x:502:504::/home/test:/bin/bash

RK wrote:
Hi All,
Is it possible to take export import to the Oracle DB/Schema/Table from other linux user?
i have plan to create dummy user like oracle on Linux box, so developer will use this dummy user and logging to oracle BOX and take the dump.
I have created one user "TEST" in linux OS.
but what is the next?
what priviledge is requred or take dump from other linux user?
oracle:x:501:502::/home/oracle:/bin/bash
test:x:502:504::/home/test:/bin/bash
Why do you think you need to create a 'dummy' OS account?  export and import a simply client applications.  They connect to the database using normal database account credentials.  The OS account has nothing to do with it.  The developers don't even need an OS account at all, as they can run imp from their oracle client-enabled desktops.

Similar Messages

  • 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

  • Cannot create new user in oracle bam

    Hi Guys,
    Can anyone help me in creating new user in oracle bam. I've already follow the steps in bamadmin.pdf but i cannot connect to BAM using the one i've created.
    Please Help.
    Thank you!

    RRA wrote:
    Hello,
    How can I create a new user directly in database instead of creating from System Administrator menu in Oracle Applications R12 ?
    Also, is it possible to apply some default responsibilities when a creation of new user account take place via database ?
    Thanks.This topic was discussed many times in the forum before, please see old threads for the same topic/discussion along with the code you can use.
    Create Application User from the Backend
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Create+AND+Application+AND+User+AND+Backend&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Create+AND+Users+AND+API&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Assign Responsibilities API
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Assign+AND+Responsibilities+AND+API&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    FND_USER_PKG API
    https://forums.oracle.com/forums/search.jspa?threadID=&q=FND_USER_PKG&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    FND_USER_PKG.CreateUser
    https://forums.oracle.com/forums/search.jspa?threadID=&q=FND_USER_PKG.CreateUser+&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    FND_USER_PKG.AddResp
    https://forums.oracle.com/forums/search.jspa?threadID=&q=FND_USER_PKG.addresp&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • I have created a user in oracle BPM but it is not reflected in system-jazn-data.xml file and I am unable to authenticate that user to create context as needed in workflow client

    I have created a user in oracle BPM but it is not reflected in system-jazn-data.xml file and I am unable to authenticate that user to create context as needed in workflow client

    weblogic credentials are different.
    and using thode credentials I am able to login to weblogic server
    the users I am talking about is the process users defined in realm.
    in realm those users are defined as Default authenticator and OID authenticator.
    and I am trying to authenticate one of those users defined in realm using java api so that I an access a process defined In Oracle BPM 11g

  • API for creating new User in Oracle E-Business Suite through BPEL

    Hello,
    I would like to use a BPEL process to create a new User in Oracle E-Business Suite. In the Integration Repository I was able to find an API called FND_USER_PKG/LOAD_ROW that creates/updates Application's User data. Is this the API I should be using? If so, I would like to better understand how to use this API.
    I have created a simple BPEL process and added an Oracle Application Service, which uses this FND_USER_PKG/LOAD_ROW API. I set the following parameter before Invoking the Oracle Application Service: X_USER_NAME, X_ENCRYPTED_USER_PASSWORD and X_START_DATE. When I run the BPEL process I get the following error. I suspect that I am not passing all the required input parameters. Does anyone have any sample data I can use to get this API to load correctly? If I am using the wrong API, please let me know.
    Please note, I have also posted this question to the SOA Suite and BPEL discussion forums...
    Thank you kindly!
    Christine
    - <input>
    - <Invoke_OracleEBS_SecurityUser_InputVariable>
    - <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="InputParameters">
    - <InputParameters xmlns:db="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/FND_USER_PKG/LOAD_ROW/" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/FND_USER_PKG/LOAD_ROW/">
    <db:X_USER_NAME>
    CRILEY
    </db:X_USER_NAME>
    <db:X_ENCRYPTED_USER_PASSWORD>
    CRILEY
    </db:X_ENCRYPTED_USER_PASSWORD>
    <db:X_START_DATE>
    2009-01-01
    </db:X_START_DATE>
    </InputParameters>
    </part>
    </Invoke_OracleEBS_SecurityUser_InputVariable>
    </input>
    - <fault>
    - <bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
    - <part name="code">
    <code>
    20001
    </code>
    </part>
    - <part name="summary">
    <summary>
    file:/E:/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_OracleEBS_OnBoarding_1.0_d71e16636aa9ff51b9975926da6faeb2.tmp/OracleEBS_SecurityUser.wsdl OracleEBS_SecurityUser_ptt::OracleEBS_SecurityUser(InputParameters) - WSIF JCA Execute of operation 'OracleEBS_SecurityUser' failed due to: Error while trying to prepare and execute an API.
    An error occurred while preparing and executing the APPS.FND_USER_PKG.LOAD_ROW API. Cause: java.sql.SQLException: ORA-20001: APP-FND-02600: Unable to create user CRILEY due to the following reason(s):
    Unabled to call fnd_ldap_wrapper.create_user due to the following reason:
    ORA-20001: Unabled to call fnd_ldap_wrapper.create_user due to the following reason:
    An unexpected error occurred. Please contact your System Administrator...
    ORA-06512: at "APPS.APP_EXCEPTION", line 72
    ORA-06512: at "APPS.FND_USER_PKG", line 783
    ORA-06512: at "APPS.FND_USER_PKG", line 916
    ORA-06512: at "APPS.FND_USER_PKG", line 1035
    ORA-06512: at "APPS.FND_USER_PKG", line 645
    ORA-06512: at line 1

    Hello and thank you for your response. I am new to using APIs so please excuse my inexperience... I am not sure how to run the API outside of BPEL... Is that something you could easily walk me through?
    I have made the following changes in BPEL based on your recommendation: 1) Added Oracle Application Service and used the API, LDAP_WRAPPER_CREATE_USER, found in the Oracle Application Module Browser* under: Applications Technology (ATG_PF)&gt; User Management (UMX)&gt; User (FND_USER)&gt; PLSQL&gt; User (FND_USER_PKG)&gt; LDAP_WRAPPER_CREATE_USER
    2) Set the following parameter prior to Invoking the Oracle App Service: X_USER_NAME, X_UNENCRYPTED_PASSWORD,X_START_DATE, X_END_DATE, X_DESCRIPTION, X_EMAIL_ADDRESS, X_FAX, X_EXPIRE_PWD.
    3) Deploy and run BPEL through BPEL Control.
    I get the following {color:#ff0000}error on the Invoke{color}. {color:#339966}Do you see any issues with the values I am passing in the input{color}? Any idea why I am getting this error? Is there anything that I need to have configured for the API to work correctly, other than adding an Oracle Application Service in the BPEL?
    Thank you for your time,
    Christine
    bq. Faulted while invoking operation "OracleEBS_LDAP_Create_User" on provider "OracleEBS_LDAP_Create_User". \\     - &lt;messages&gt; \\     - &lt;input&gt; \\     - &lt;Invoke_OracleEBS_LDAP_Create_User_InputVariable&gt; \\     - &lt;part xmlns:xsi="[http://www.w3.org/2001/XMLSchema-instance]" name="InputParameters"&gt; \\     - &lt;{color:#339966}InputParameters{color} xmlns:db="[http://xmlns.oracle.com/pcbpel/adapter/db/APPS/FND_USER_PKG/LDAP_WRAPPER_CREATE_USER/]" xmlns="[http://xmlns.oracle.com/pcbpel/adapter/db/APPS/FND_USER_PKG/LDAP_WRAPPER_CREATE_USER/]"&gt; \\     &lt;db:X_USER_NAME&gt; \\     CRILEY \\     &lt;/db:X_USER_NAME&gt; \\     &lt;db:X_UNENCRYPTED_PASSWORD&gt; \\     CRILEY \\     &lt;/db:X_UNENCRYPTED_PASSWORD&gt; \\     &lt;db:X_START_DATE&gt; \\     2009-01-01 \\     &lt;/db:X_START_DATE&gt; \\     &lt;db:X_END_DATE&gt; \\     2010-01-01 \\     &lt;/db:X_END_DATE&gt; \\     &lt;db:X_DESCRIPTION&gt; \\     CRILEY \\     &lt;/db:X_DESCRIPTION&gt; \\     &lt;db:X_EMAIL_ADDRESS&gt; \\[[email protected]|mailto:[email protected]] \\ &lt;/db:X_EMAIL_ADDRESS&gt; \\     &lt;db:X_FAX&gt; \\     999-888-7777 \\     &lt;/db:X_FAX&gt; \\     &lt;db:X_EXPIRE_PWD&gt; \\     0 \\     &lt;/db:X_EXPIRE_PWD&gt; \\     &lt;/InputParameters&gt; \\     &lt;/part&gt; \\     &lt;/Invoke_OracleEBS_LDAP_Create_User_InputVariable&gt; \\     &lt;/input&gt; \\     - &lt;fault&gt; \\     - &lt;bindingFault xmlns="[http://schemas.oracle.com/bpel/extension]"&gt; \\     - &lt;part name="code"&gt; \\     &lt;code&gt; \\     20001 \\     &lt;/code&gt; \\     &lt;/part&gt; \\     - &lt;part name="summary"&gt; \\     &lt;summary&gt; \\     file:/D:/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_OracleEBS_OnBoarding_1.0_d71e16636aa9ff51b9975926da6faeb2.tmp/OracleEBS_LDAP_Create_User.wsdl [OracleEBS_LDAP_Create_User_ptt::OracleEBS_LDAP_Create_User(InputParameters) |http://forums.oracle.com/forums/]- WSIF JCA Execute of operation 'OracleEBS_LDAP_Create_User' failed due to: Error while trying to prepare and execute an API. \\     An error occurred while preparing and executing the APPS.FND_USER_PKG.LDAP_WRAPPER_CREATE_USER API. Cause: java.sql.SQLException: ORA-20001: Unabled to call fnd_ldap_wrapper.create_user due to the following reason: \\     ORA-20001: {color:#ff0000}Unabled to call fnd_ldap_wrapper.create_user due to the following reason: \\     An unexpected error occurred. Please contact your System Administrator.. \\     {color}ORA-06512: at "APPS.APP_EXCEPTION", line 72 \\     ORA-06512: at "APPS.FND_USER_PKG", line 3877 \\     ORA-06512: at line 1 \\\\     ;
    Edited by: Christine Riley on Jan 28, 2009 1:22 PM
    Edited by: Christine Riley on Jan 28, 2009 1:26 PM

  • Error while creating new user in Oracle 11i EBS

    I am getting following error while creating new user. How solve this issue?
    “Unable to load java class % specified profile option SIGNON_PASSWORD_CUSTOM. Please verify that the class exists and that it implements the java interface oracle.apps.fnd.security.PasswordValidation”.

    Following is the text from Note for Custom Password Validation logic:
    Customers who wish to use their own password validation logic may do
      so by writing their own Java classes that implement the
      oracle.apps.fnd.security.PasswordValidation Java interface.  The
      interface requires 3 methods to be implemented:
      1) public boolean validate(String user, String password)
        - This method takes a username and password, and then returns true
      or false, indicating whether the user's password is valid or invalid,
      respectively.
      2) public String getErrorStackMessageName()
        - This method returns the name of the message to display when the
      user's password is deemed invalid (i.e., the validate() method returns
      false).
      3) public String getErrorStackApplicationName()
        - This method returns the application shortname for the
      aforementioned error message.
      After writing the Java class to perform customized password
      validation, the customer must then set the value of the profile option
      SIGNON_PASSWORD_CUSTOM to be the full name of the class.  If, for
      example, the name of the Java class is
      oracle.apps.fnd.security.AppsPasswordValidation, then the value of the
      SIGNON_PASSWORD_CUSTOM profile option must be
      oracle.apps.fnd.security.AppsPasswordValidation.  Note that AOL/J
      will attempt to load this class dynamically.  Hence it is necessary to
      make the class accessible by AOL/J.  This means that in Forms, the
      class must first be loaded into the database using the loadjava
      command.
    You will need to apply the following patches for 11.5.1:
       1344802
       1363919
       1472974
       1351004
       1377615
    You will need to apply the following patches for 11.5.2:
       1377615

  • Create new user like another user with select privilege???

    our user requested create another user similar to "apps" , but only "selec t" privilege to "apps" objects and other user's objects which grant to "apps".
    In this case they can use tool login and do some work.
    Does anyone know how to "create a new user like APPS", bur only copy APPS "select" privilege to this new user?
    Thanks.

    This has been discussed many times in the forums. Pl see this thread Re: How to create a read only database or conduct a search for more hits.
    HTH
    Srini

  • Create New User In Oracle ERP R12.

    Hello,
    How can I create a new user directly in database instead of creating from System Administrator menu in Oracle Applications R12 ?
    Also, is it possible to apply some default responsibilities when a creation of new user account take place via database ?
    Thanks.

    RRA wrote:
    Hello,
    How can I create a new user directly in database instead of creating from System Administrator menu in Oracle Applications R12 ?
    Also, is it possible to apply some default responsibilities when a creation of new user account take place via database ?
    Thanks.This topic was discussed many times in the forum before, please see old threads for the same topic/discussion along with the code you can use.
    Create Application User from the Backend
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Create+AND+Application+AND+User+AND+Backend&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Create+AND+Users+AND+API&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Assign Responsibilities API
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Assign+AND+Responsibilities+AND+API&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    FND_USER_PKG API
    https://forums.oracle.com/forums/search.jspa?threadID=&q=FND_USER_PKG&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    FND_USER_PKG.CreateUser
    https://forums.oracle.com/forums/search.jspa?threadID=&q=FND_USER_PKG.CreateUser+&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    FND_USER_PKG.AddResp
    https://forums.oracle.com/forums/search.jspa?threadID=&q=FND_USER_PKG.addresp&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • How to create a user like orcladmin

    I need to create a user with the same privileges as orcladmin.
    Can anybody help me with the steps necesary to do it.
    Thanks in advance.

    i was also in need of the same.
    but didn't found any solution generic.
    to achieve this i went for a round circle to find out in which groups orcladmin is a uniquemember and added the one which i want to be same as orcladmin.
    hope this will help it out

  • Create Portal user within Oracle IAS9.0.4 (10g) using APIs

    With the Portal version 3.0 we created our users using the functions:
    1. wwsec_api.add_portal_user(...)
    2. wwsec_api.activate_portal_user(<user>)
    3. WWSSO_API_USER_ADMIN.CREATE_USER(...)
    Now with the Portal version 9.0.4 (10g) we can't create the users.
    Any sugestions?

    declare
    l_group varchar2(240);
    l_member varchar2(240);
    l_guid varchar2(32);
    l_id number;
    l_user_name varchar2(64) := 'user';
    l_pass varchar2(64):= 'user';
    l_email varchar2(64) := '[email protected]';
    begin
    --user to ldap
    l_guid := wwsec_oid.create_user_entry
    p_base => wwsec_oid.get_user_search_base,
    P_USER_NAME => l_user_name,
    p_password => l_pass,
    p_email => l_email
    commit;
    --include to default group
    l_group := 'cn=AUTHENTICATED_USERS,'||wwsec_oid.get_group_search_base;
    l_member := 'cn='||l_user_name||','||wwsec_oid.get_user_search_base;
    wwsec_oid.grant_group_membership
    (p_group_dn => l_group, p_member_dn => l_member);
    commit;
    --in portal default group
    wwsec_api.add_user_to_list(
    p_person_id => wwsec_api.id(l_user_name),
    p_to_group_id => wwsec_api.group_id('AUTHENTICATED_USERS'),
    p_is_owner => wwsec_api.not_owner
    commit;
    --add to portal
    l_id := portal.wwsec_api.add_portal_user(p_User_Name=>l_user_name,
    p_Portal_User=>'Y',
    p_Email => l_email);
    commit;
    end;
    lower('LUCK')

  • CREATE A USER LIKE ANOTHER

    Hi,
    how can I create an oracle applications USER exactly like another oracle applications user ?
    Many thanks before.

    Thank hsawwan, I found this :
    procedure CreateUser (
    x_user_name in varchar2,
    x_owner in varchar2,
    x_unencrypted_password in varchar2 default null,
    x_session_number in number default 0,
    x_start_date in date default sysdate,
    x_end_date in date default null,
    x_last_logon_date in date default null,
    x_description in varchar2 default null,
    x_password_date in date default null,
    x_password_accesses_left in number default null,
    x_password_lifespan_accesses in number default null,
    x_password_lifespan_days in number default null,
    x_employee_id in number default null,
    x_email_address in varchar2 default null,
    x_fax in varchar2 default null,
    x_customer_id in number default null,
    x_supplier_id in number default null)
    is
    dummy number;
    begin
    dummy := fnd_user_pkg.CreateUserId(
    x_user_name,
    x_owner,
    x_unencrypted_password,
    x_session_number,
    x_start_date,
    x_end_date,
    x_last_logon_date,
    x_description,
    x_password_date,
    x_password_accesses_left,
    x_password_lifespan_accesses,
    x_password_lifespan_days,
    x_employee_id,
    x_email_address,
    x_fax,
    x_customer_id,
    x_supplier_id);
    end CreateUser;
    in that package, but how to use it and how to use it for create like ?
    Many thanks.

  • Unable to create new user using Oracle Database vault

    Hi,
    can somebody help me to autorize user other then SYS user (e.g. system) to CREATE new and ALTER users when my database is secured by Oracle database vault with default installation settings;
    Thanks

    Reading the DV docs would be a great place to start.
    Consider, for a moment, that if the normal privileges provided to SYS using DV worked the same as they do in a regular database you wouldn't have a data vault you'd have a regular database.
    After you read the docs log on and try the following:
    SELECT username
    FROM dba_users
    WHERE username LIKE 'DV%';Aha!

  • How to create Database Users in Oracle enterprise?

    Help, I am new in using oracle database. All I need to do is to connect PHP to Oracle. But it keeps saying this Error
    *Warning: oci_connect() [function.oci-connect]: ORA-28000: the account is locked in*
    Really need some help.

    Welcome to the forum. Please next time remember that your friends are "search option", google, thaiti... and of course oracle documentation. All ORA-XXXX are documented so please next time, search for them.
    run:
    select account_status, username from dba_users;
    If the status is locked:
    alter user XXXXXX account unlock;
    If also is expired:
    ALTER USER xxxxx IDENTIFIED BY password;
    HTH
    Edited by: Fran on 30-may-2012 2:16

  • Create Read Only User in Oracle 10.2.0.4

    Hi., Friends,
    I want to create an user in Oracle 10.2.0.4 with read only rights of my hole database. I am not having Enterprise Manager Console so i want create from command prompt.Can u please explain me the step for create and assign read only role to user.
    Regards
    Mahendran

    Hi Mahendra,
    I am happy with Surendrajain's reply, but with this sql you will not able to view the data present in SAP Schema,
    The entire sql query with the comments in bracket  is given below
    1) create user PPMTEST identified by program1;    
    2) Create role PPMROLE;                           {  PPMROLE is the role name which will be later assigned to the user PPMTEST}
    3) Grant CONNECT to PPMROLE;                                 { CONNECT role allows the user to connect to oracle database}
    4) Grant SELECT_CATALOG_ROLE to PPMROLE;       { SELECT_CATALOG_ROLE role allows the user to view the oracle data dictionary}
    5) GRANT SELECT ANY TABLE to PPMROLE;             { "SELECT ANY TABLE" privilege allows the user to view the table which is present in the SAP schema}
    6) Grant PPMROLE to PPMTEST;                                         { Assigning the role PPMROLE to the user PPMTEST}
    7) COMMIT; 
    Thanks and Regards
    Debdeep

  • Creating user in oracle through JDBC

    I m trying to create a user in oracle through jdbc. When I m creating user through SQL plus I m able to do it successfully but when I m doing it through java code I can see that user�s entry in dba_users & dba_role_privs tables.But when I am trying to drop that user I get message �User doesn�t exist�. Also when I am trying to logged in through the newly created user (one that I have created through code)in SQL Plus , I get error �ORA-01017: invalid username/password ; logon denied�.If user doesn�t exist then how can I see it�s entry in dba_users & dba_role_privs?? One more thing �. I can drop that user through code but not using SQL Plus.
    This is the code�.In this code I have logged in using system-manager & I m trying to create user test88 with password test88.I am granting 3 roles to this user Connect , Resource & DBA same as Scott �Tiger. Please help.
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    import java.sql.Statement;
    public class OracleDB1 {
    public static final String isSUCCESS = "SUCCESS";
    public static final String isORACLE = "ORACLE";
    public static final String isFail = "ERROR";
    public String dbDriver;
    public String dbURL;
    public String dbUserName;
    public String dbName;
    public String dbPassword;
    public String dbType;
    private Connection con;
    private Statement stmt;
    * @param s Username
    * @param s1 Indentified by
    * @param s2 tablespace
    * @param s3
    * @return
    * @throws SQLException
    * @throws ClassNotFoundException
    public String createUserOracle(String s, String s1, String s2, String s3)
    throws SQLException, ClassNotFoundException {
    System.out.println("Creating user method ");
    String s4 = "";
    if (!s2.equals("")) {
    if (!s3.equals("")) {
    s4 = new String("CREATE USER \"" + s + "\" IDENTIFIED BY \""
    + s1 + "\" DEFAULT TABLESPACE " + s2 + " QUOTA " + s3
    + " ON " + s2);
    else {
    s4 = new String("CREATE USER \"" + s + "\" IDENTIFIED BY \""
    + s1 + "\" DEFAULT TABLESPACE " + s2
    + " TEMPORARY TABLESPACE TEMP QUOTA UNLIMITED ON " + s2);
    else {
    s4 = new String("CREATE USER \"" + s + "\" IDENTIFIED BY \"" + s1
    + "\"");
    try {
    con = this.init();
    System.out.println("The new user statemeent " + s4);
    stmt = con.createStatement();
    System.out.println("The new user statemeent " + s4);
    stmt.execute(s4);
    System.out.println("the info success "+stmt.SUCCESS_NO_INFO);
    stmt.close();
    } finally {
    if (null != con) {
    con.close();
    return "SUCCESS";
    public String grantRightsOracle(String s)
    throws SQLException, ClassNotFoundException
    String s1 = new String("GRANT connect , resource , dba to \"" + s + "\"");
    try
    con=this.init();
    stmt = con.createStatement();
    System.out.println("granting "+s+"with the connect priveleges");
    stmt.execute(s1);
    stmt.close();
    finally
    if(null != con)
    this.close(con);
    return "SUCCESS";
    public Connection init() throws SQLException, ClassNotFoundException {
    System.out.println("initialising");
    Class.forName("oracle.jdbc.driver.OracleDriver");
    dbURL = "jdbc:oracle:thin:@localhost:1521:priya";
    con = DriverManager.getConnection(dbURL, "system", "manager");
    return con;
    public void close(Connection connection) throws SQLException {
    if (!connection.isClosed()) {
    connection.close();
    public String disableUserOracle(String s) throws SQLException,
    ClassNotFoundException {
    String s1 = "REVOKE CONNECT, RESOURCE, SELECT ANY TABLE FROM \"" + s
    + "\"";
    try {
    con = this.init();
    stmt = con.createStatement();
    stmt.execute(s1);
    stmt.close();
    } finally {
    if (null != con) {
    this.close(con);
    return "SUCCESS";
    public String deleteUserOracle(String s) throws SQLException,
    ClassNotFoundException {
    String s1 = new String("DROP USER \"" + s + "\" CASCADE");
    try {
    con = this.init();
    stmt = con.createStatement();
    stmt.execute(s1);
    stmt.close();
    } finally {
    if (null != con) {
    this.close(con);
    return "SUCCESS";
    public static void main(String args[]) {
    String s = "";
    OracleDB1 oracleoperations = new OracleDB1();
    try {
    System.out.println("creating user");
    s = oracleoperations.createUserOracle("test88", "test88", "", "");
    System.out.println("creating user is " + s);
    s=oracleoperations.grantRightsOracle("test88");
    System.out.println("granting rights" + s);
    //s=oracleoperations.deleteUserOracle("test88");
    //System.out.println("deleting user" + s );
    } catch (Exception exception) {
    exception.printStackTrace();

    I read that by default, JDBC uses an operation mode called auto-commit. This means that every update to the database is immediately made permanent.Still for this program I have tried connection.commit() also , Still it is not working.
    I think that problem is not with commit otherwise I shouldn't be able to see that newly created user entry in these tables from Sql Plus:-
    1)DBA_ROLE_PRIVS
    2) DBA_USERS
    3) DBA_sys_privs
    Ya but these is no entry in DBA_OBJECTS table for this user.

Maybe you are looking for

  • Oracle-xe 10 installation problem on RHEL4

    I installed the oracle xe RPM package on RHEL4. Apparently it succeeded. There were no errors reported and the package is installed. However the GNOME menu doesn't match what the documentation would lead me to expect: "On Linux, click the Application

  • Can I download photos from my camera directly into PSE Editor?

    I am using Mac OSX Lion v 10-7.  If I install the PSE Editor from the Apple App store, will I be able to download my photos directly from camera into PSE Editor? I would like to process my photos with PSE as I have done for many years with Windows, t

  • Won't recognize my USB stick

    i recently bought my mac pro and i also bought a 4GB USB stick from office Depot, and every time i insert the stick in the port, nothing happens. i already tried to pull up the disk utility in application, but it is unrecognizable. what do i do?

  • How do I create a slide show in CS5?

    Does anyone know how to create a slideshow in photoshop CS5?

  • Feedback form working!

    I have at last got my feedback form working in a reasonably presentable manner. If you would like to test it, go to http://localhost/Corybas/index.php, click the yellow envelope at the bottom right of the home page, and send me a message. When I get