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.

Similar Messages

  • Creating user in oracle 12i

    Hi everybody,
    Where can I find information about creating users in oracle e business suite 12(12i)? Though I know how to do such procedure but I am thinking of a thorough mannual to integrate what I know about this matter.
    All the best,

    Check the [User Guide|http://download.oracle.com/docs/cd/B34956_01/current/acrobat/120sasg.pdf].
    By
    Vamsi

  • Creating Users for Oracle DB residing in xMII server

    Hi,
    We are on xMII 12.0.3 Build(107). We have the Oracle 10g database residing in the xMII server. Now, in order to create users to access the DB, do we have to create in SAP front or externally create users on oracle front?
    Thanks in advance,
    Regards,
    Prasanna

    create users on oracle front.

  • How to create user in Oracle 11g Console Administration through browser

    Hi
    I installed Oracle 11g on my Windows XP system
    then i opened the console through IE 8.0 using the address "https://serversys:1158/em"
    then i logged into this console by the username SYS/SYS@orcl as SYSDBA
    then i opened the SCHEMA tab
    but here i didn't found any link like "USERS" to create/manage users
    How can i create the users..?
    thanks in advance
    jk

    user10922309 wrote:
    Yes, Hans i am planning to become a DBA from India.Good. If you ever move to North America to become a DBA, let us know. >:)
    With the help of your link "admqs_administer_users.htm"
    i found that bold "Users" link in "Server" tab bold
    but right now i am getting the error "ora-01301: insufficient privilages"
    then i granted the 'create user' privilege to SYS
    error is coming..If you have properly logged on as SYS, as shown by the 'Logged in as SYS' note in the upper right corner, you should not be getting the 1301. Try logging out and following the steps in the document I gave you starting at chapter 1.

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

    Hello,
    I would like to use a BPEL process to create a new User in Oracle EBS. In the {color:#0000ff}Integration Repository {color}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. What are the required input parameter?
    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.
    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
    Edited by: Christine Riley on Jan 22, 2009 11:00 AM
    Edited by: Christine Riley on Jan 27, 2009 1:07 PM

    Hello,
    I would like to use a BPEL process to create a new User in Oracle EBS. In the {color:#0000ff}Integration Repository {color}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. What are the required input parameter?
    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.
    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
    Edited by: Christine Riley on Jan 22, 2009 11:00 AM
    Edited by: Christine Riley on Jan 27, 2009 1:07 PM

  • Error while creating user on Unix through OIM timeout waiting for user password

    Hello all ,
    we made integration with Unix using connector  , while creating user  we receive the following error
    <Jun 27, 2013 1:30:14 PM AST> <Error> <ORACLE.IAM.CONNECTORS.ICFCOMMON.PROV.ICPROVISIONINGMANAGER> <BEA-000000> <oracle.iam.connectors.icfcommon.prov.ICProvisioningManager : createObject : Error while creating user
    org.identityconnectors.framework.common.exceptions.ConnectorException: Exception occured while setting the password.org.identityconnectors.framework.common.exceptions.OperationTimeoutException: Command timed-out while waiting for: new[\s](unix[\s])?password:
            at org.identityconnectors.genericunix.GenericUnixConnection.setUserPassword(GenericUnixConnection.java:866)
            at org.identityconnectors.genericunix.operation.GenericUnixCreate.setUserPassword(GenericUnixCreate.java:193)
            at org.identityconnectors.genericunix.operation.GenericUnixCreate.analyzeResult(GenericUnixCreate.java:233)
            at org.identityconnectors.genericunix.operation.GenericUnixCreate.createOp(GenericUnixCreate.java:180)
            at org.identityconnectors.genericunix.operation.GenericUnixCreate.create(GenericUnixCreate.java:111)
            at org.identityconnectors.genericunix.GenericUnixConnector.create(GenericUnixConnector.java:200)
            at org.identityconnectors.framework.impl.api.local.operations.CreateImpl.create(CreateImpl.java:80)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.identityconnectors.framework.impl.api.local.operations.ConnectorAPIOperationRunnerProxy.invoke(ConnectorAPIOperationRunnerProxy.java:93)
            at $Proxy363.create(Unknown Source)
    any one can support me how to fix this

    Try increasing the commandTimeout from 100seconds to 200seconds and see if this works?
    Also, look at the Section 5.2.5 in the connector doc.

  • How to create user in oracle 11 g

    Hi.
    i am new to oracle 11 g. i am learning for oragle 11g dummies pdf.i have some doubts about create user in that what is for identified by used in create user.
    eg: create user acme_own identified by acme_own2008 temporary tablespace temp, default tablespace user,
    in this what identified user is used and what it does.
    if anyone tell me it will be very helpfull.

    Hi;
    Please see below notes if you have still doubt please update thread:
    http://docs.oracle.com/cd/E11882_01/network.112/e16543/users.htm#BABGIFFE
    http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_8003.htm
    http://www.adp-gmbh.ch/ora/sql/create_user.html
    Regard
    Helios

  • Limit for creating users in oracle 9i/10g database

    what is limit of users to be created to connect to the database?
    is there any limit?
    my database size is 10gb.

    It depends on what type of license you have
    Processor perpetual or Named user license....
    If it processor perpetual then it is unlimited and if it named user then you can create users based on How many user licens you have purchased
    http://oraclestore.oracle.com/OA_HTML/ibeCCtpSctDspRte.jsp?section=11365&media=os_user_minimums

  • Create user from oracle form builder 10g

    dear all,
    anyone to help me? I want to try, to create a new user from form builder oracle 10g in windows, I use a default script like 'create user user_name identified 123' in toad 9.0 for oracle and the result is success but when I try to combine with form builder oracle 10g this script doesn't work...I hope somebody can help me to solve my problem..
    thank you,,,
    Dedy Prasetyo T.

    Dear Francois,,
    I've tried the way you suggested and success. but how if I take the value of user_name and password from the data block to insert table dba_users ? would you like to help me?
    regard,
    Dedy P.T

  • Not able to create users in OID through OIM

    HI,
    I am creating users in OIM and provisioning them to OID. The create user is working fine but provisioning is not working.
    The create user task is getting rejected with error message as :
    Response: Target Unavailable Error
    Response Description: Target server not available
    In the weblogic console its showing error as:
    INFO,24 Feb 2010 18:42:13,140,[XL_INTG.OID], Parameter Variables passed into co
    m.thortech.xl.integration.OID.tcUtilOIDUserOperations:createUser(S,S,S,S,S): are
    sContainerDN = ou=AGI(ENI UK Ltd),o=Shippers,dc=xoserve-apps,dc=com, sFirstName
    = testuser17, sLastName = testuser17, sUserDNParam = TESTUSER17,
    INFO,24 Feb 2010 18:42:13,156,[XL_INTG.OID],com.thortech.xl.integration.OID.uti
    l.tcUtilLDAPOperations : connectToAvailableOID() : SSL option is not selected in
    ITResource
    ERROR,24 Feb 2010 18:42:16,156,[XL_INTG.OID],===================================
    =================
    ERROR,24 Feb 2010 18:42:16,156,[XL_INTG.OID], ERROR in OID:connectToAvailableOID
    () CommunicationExceptionUnable to create Initial LDAP Context
    ERROR,24 Feb 2010 18:42:16,156,[XL_INTG.OID],===================================
    =================
    ERROR,24 Feb 2010 18:42:16,156,[XL_INTG.OID],===================================
    =================
    ERROR,24 Feb 2010 18:42:16,156,[XL_INTG.OID],10.224.29.51:389
    ERROR,24 Feb 2010 18:42:16,156,[XL_INTG.OID],===================================
    ERROR,24 Feb 2010 18:42:16,171,[XL_INTG.OID],com.thortech.xl.integration.OID.uti
    l.tcUtilLDAPOperations : disconnectFromLDAP() : : Unable to close LDAP Context.
    The context was probably not created, since it is null
    ERROR,24 Feb 2010 18:42:16,171,[XL_INTG.OID],===================================
    =================
    ERROR,24 Feb 2010 18:42:16,171,[XL_INTG.OID],===================================
    =================
    ERROR,24 Feb 2010 18:42:16,171,[XL_INTG.OID], ERROR in com.thortech.xl.integrati
    on.OID.tcUtilOIDUserOperations:createUser(S,S,S,S,S) NoInitialContextExceptionEr
    ror while connecting to target
    ERROR,24 Feb 2010 18:42:16,171,[XL_INTG.OID],===================================
    =================
    ERROR,24 Feb 2010 18:42:16,171,[XL_INTG.OID],===================================
    =================
    ERROR,24 Feb 2010 18:42:16,171,[XL_INTG.OID],com.thortech.xl.integration.OID.uti
    l.tcUtilLDAPOperations: Unable to close LDAP Context. The context was probably n
    ot created, since it is null
    ERROR,24 Feb 2010 18:42:16,171,[XL_INTG.OID],===================================
    =================
    Please help.
    Thanks in advance.

    Thank a zillion to both of you...
    It was connection problem. Somebody changed my OID's IP address.
    Now my users are getting provisioned.
    One more doubt how to give points to both of you. I dont know how to give points in this forum.

  • Strong concerns about creating users programatically vs. through Portal GUI

    Hi,
    I am working with a Portal install right now where we have created some portal users through the Portal GUI, and some users using PORTAL30_SSO.WWSSO_API_USER_ADMIN.CREATE_USER procedure.
    The strong concerns come when I select the USER_NAME from WWSEC_PERSON$ connected as PORTAL30, and I only get the users created through the portal GUI.
    However, if I connect as PORTAL30_SSO I get all the users created programatically, as well as the users created through the GUI.
    Is there a reasonable explanation for this?
    Thanks.
    null

    Daniel,
    I was in the same quandry. But, you will notice a record automatically created in portal30's wwsec_person$ table, when the user logs in the first time. It is almost as if the Login server checks for the existence of the record. No one in Portal Dev. confirmed this, but it seems like the most logical explanation. Try it. Create a user programmatically, you should see the new user in SSO, but not in portal30. Login as the new user and then see the diff.
    hth
    Sanjay

  • Create users in Oracle for exchange server

    Hi everyone!
    I would like to know if Oracle Communications Messaging Exchange Server works just like Exchange Server.
    How can the users I create in Oracle be used in Exchange server instead of users being created again in Exchange Server?
    Hope to get some enlightenment on this issue.
    Thanks.

    If publishing to a .Mac space, you can password
    protect the site, and blog.
    It'll still only allow for comments, rather than
    allowing users to create new blog entries, but at
    leat you'll know it's by one of those you have
    allowed in.
    I expected something like that to be honest with you, the whole point is to have the website open and at the same time use several users to work on it, apparently it is not possible, I will send a new form to request an improvement on iWeb for that.
    Thanks very much for your answer
    MacBook   Mac OS X (10.4.8)   Xerox Office Printers attached
    MacBook   Mac OS X (10.4.9)   Xerox Office Printers attached

  • Creating user's objective through API ot working

    I am making use of the HR_OBJECTIVES_API API to create objective for users. to test the API, I run the small script below. It create a new row in the per_objective table but the HRMS interface fail to recognize it. It does not appear in the scorecard of the user. What am I missing?
    /* Auto Generation of Script Start */
    DECLARE
         -- Start of Variable declarations, Initialize Variables with appropriate values to test the script
         -- VARCHAR2 size is set to 2000 by default, please enter target table name to retrieve the exact limit
         -- Input Variables
         V_VALIDATE                      BOOLEAN:=false;
         V_EFFECTIVE_DATE                DATE := trunc(sysdate);
         V_BUSINESS_GROUP_ID             NUMBER:=81;
         V_NAME                          VARCHAR2(2000):='Just a Second test from TOAD';
         V_START_DATE                    DATE:=trunc(sysdate);
         V_OWNING_PERSON_ID              NUMBER:=264;
         V_TARGET_DATE                   DATE;
         V_ACHIEVEMENT_DATE              DATE;
         V_DETAIL                        VARCHAR2(2000);
         V_COMMENTS                      VARCHAR2(2000);
         V_SUCCESS_CRITERIA              VARCHAR2(2000);
         V_APPRAISAL_ID                  NUMBER;
         V_ATTRIBUTE_CATEGORY            VARCHAR2(2000);
         V_ATTRIBUTE1                    VARCHAR2(2000);
         V_ATTRIBUTE2                    VARCHAR2(2000);
         V_ATTRIBUTE3                    VARCHAR2(2000);
         V_ATTRIBUTE4                    VARCHAR2(2000);
         V_ATTRIBUTE5                    VARCHAR2(2000);
         V_ATTRIBUTE6                    VARCHAR2(2000);
         V_ATTRIBUTE7                    VARCHAR2(2000);
         V_ATTRIBUTE8                    VARCHAR2(2000);
         V_ATTRIBUTE9                    VARCHAR2(2000);
         V_ATTRIBUTE10                   VARCHAR2(2000);
         V_ATTRIBUTE11                   VARCHAR2(2000);
         V_ATTRIBUTE12                   VARCHAR2(2000);
         V_ATTRIBUTE13                   VARCHAR2(2000);
         V_ATTRIBUTE14                   VARCHAR2(2000);
         V_ATTRIBUTE15                   VARCHAR2(2000);
         V_ATTRIBUTE16                   VARCHAR2(2000);
         V_ATTRIBUTE17                   VARCHAR2(2000);
         V_ATTRIBUTE18                   VARCHAR2(2000);
         V_ATTRIBUTE19                   VARCHAR2(2000);
         V_ATTRIBUTE20                   VARCHAR2(2000);
         V_ATTRIBUTE21                   VARCHAR2(2000);
         V_ATTRIBUTE22                   VARCHAR2(2000);
         V_ATTRIBUTE23                   VARCHAR2(2000);
         V_ATTRIBUTE24                   VARCHAR2(2000);
         V_ATTRIBUTE25                   VARCHAR2(2000);
         V_ATTRIBUTE26                   VARCHAR2(2000);
         V_ATTRIBUTE27                   VARCHAR2(2000);
         V_ATTRIBUTE28                   VARCHAR2(2000);
         V_ATTRIBUTE29                   VARCHAR2(2000);
         V_ATTRIBUTE30                   VARCHAR2(2000);
         V_SCORECARD_ID                  NUMBER:=9193;
         V_COPIED_FROM_LIBRARY_ID        NUMBER;
         V_COPIED_FROM_OBJECTIVE_ID      NUMBER;
         V_ALIGNED_WITH_OBJECTIVE_ID     NUMBER;
         V_NEXT_REVIEW_DATE              DATE;
         V_GROUP_CODE                    VARCHAR2(2000);
         V_PRIORITY_CODE                 VARCHAR2(2000);
         V_APPRAISE_FLAG                 VARCHAR2(2000):='Y';
         V_VERIFIED_FLAG                 VARCHAR2(2000);
         V_TARGET_VALUE                  NUMBER;
         V_ACTUAL_VALUE                  NUMBER;
         V_WEIGHTING_PERCENT             NUMBER;
         V_COMPLETE_PERCENT              NUMBER;
         V_UOM_CODE                      VARCHAR2(2000);
         V_MEASUREMENT_STYLE_CODE        VARCHAR2(2000):='N_M';
         V_MEASURE_NAME                  VARCHAR2(2000);
         V_MEASURE_TYPE_CODE             VARCHAR2(2000);
         V_MEASURE_COMMENTS              VARCHAR2(2000);
         V_SHARING_ACCESS_CODE           VARCHAR2(2000);
         -- Output Variables
         V_WEIGHTING_OVER_100_WARNING    BOOLEAN;
         V_WEIGHTING_APPRAISAL_WARNING   BOOLEAN;
         V_OBJECTIVE_ID                  NUMBER;
         V_OBJECT_VERSION_NUMBER         NUMBER;
    BEGIN
        DBMS_output.enable(800000);
         --  Calling API HR_OBJECTIVES_API.CREATE_OBJECTIVE
         HR_OBJECTIVES_API.CREATE_OBJECTIVE(P_VALIDATE                     => V_VALIDATE
                                           ,P_EFFECTIVE_DATE               => V_EFFECTIVE_DATE
                                           ,P_BUSINESS_GROUP_ID            => V_BUSINESS_GROUP_ID
                                           ,P_NAME                         => V_NAME
                                           ,P_START_DATE                   => V_START_DATE
                                           ,P_OWNING_PERSON_ID             => V_OWNING_PERSON_ID
                                           ,P_TARGET_DATE                  => V_TARGET_DATE
                                           ,P_ACHIEVEMENT_DATE             => V_ACHIEVEMENT_DATE
                                           ,P_DETAIL                       => V_DETAIL
                                           ,P_COMMENTS                     => V_COMMENTS
                                           ,P_SUCCESS_CRITERIA             => V_SUCCESS_CRITERIA
                                           ,P_APPRAISAL_ID                 => V_APPRAISAL_ID
                                           ,P_ATTRIBUTE_CATEGORY           => V_ATTRIBUTE_CATEGORY
                                           ,P_ATTRIBUTE1                   => V_ATTRIBUTE1
                                           ,P_ATTRIBUTE2                   => V_ATTRIBUTE2
                                           ,P_ATTRIBUTE3                   => V_ATTRIBUTE3
                                           ,P_ATTRIBUTE4                   => V_ATTRIBUTE4
                                           ,P_ATTRIBUTE5                   => V_ATTRIBUTE5
                                           ,P_ATTRIBUTE6                   => V_ATTRIBUTE6
                                           ,P_ATTRIBUTE7                   => V_ATTRIBUTE7
                                           ,P_ATTRIBUTE8                   => V_ATTRIBUTE8
                                           ,P_ATTRIBUTE9                   => V_ATTRIBUTE9
                                           ,P_ATTRIBUTE10                  => V_ATTRIBUTE10
                                           ,P_ATTRIBUTE11                  => V_ATTRIBUTE11
                                           ,P_ATTRIBUTE12                  => V_ATTRIBUTE12
                                           ,P_ATTRIBUTE13                  => V_ATTRIBUTE13
                                           ,P_ATTRIBUTE14                  => V_ATTRIBUTE14
                                           ,P_ATTRIBUTE15                  => V_ATTRIBUTE15
                                           ,P_ATTRIBUTE16                  => V_ATTRIBUTE16
                                           ,P_ATTRIBUTE17                  => V_ATTRIBUTE17
                                           ,P_ATTRIBUTE18                  => V_ATTRIBUTE18
                                           ,P_ATTRIBUTE19                  => V_ATTRIBUTE19
                                           ,P_ATTRIBUTE20                  => V_ATTRIBUTE20
                                           ,P_ATTRIBUTE21                  => V_ATTRIBUTE21
                                           ,P_ATTRIBUTE22                  => V_ATTRIBUTE22
                                           ,P_ATTRIBUTE23                  => V_ATTRIBUTE23
                                           ,P_ATTRIBUTE24                  => V_ATTRIBUTE24
                                           ,P_ATTRIBUTE25                  => V_ATTRIBUTE25
                                           ,P_ATTRIBUTE26                  => V_ATTRIBUTE26
                                           ,P_ATTRIBUTE27                  => V_ATTRIBUTE27
                                           ,P_ATTRIBUTE28                  => V_ATTRIBUTE28
                                           ,P_ATTRIBUTE29                  => V_ATTRIBUTE29
                                           ,P_ATTRIBUTE30                  => V_ATTRIBUTE30
                                           ,P_SCORECARD_ID                 => V_SCORECARD_ID
                                           ,P_COPIED_FROM_LIBRARY_ID       => V_COPIED_FROM_LIBRARY_ID
                                           ,P_COPIED_FROM_OBJECTIVE_ID     => V_COPIED_FROM_OBJECTIVE_ID
                                           ,P_ALIGNED_WITH_OBJECTIVE_ID    => V_ALIGNED_WITH_OBJECTIVE_ID
                                           ,P_NEXT_REVIEW_DATE             => V_NEXT_REVIEW_DATE
                                           ,P_GROUP_CODE                   => V_GROUP_CODE
                                           ,P_PRIORITY_CODE                => V_PRIORITY_CODE
                                           ,P_APPRAISE_FLAG                => V_APPRAISE_FLAG
                                           ,P_VERIFIED_FLAG                => V_VERIFIED_FLAG
                                           ,P_TARGET_VALUE                 => V_TARGET_VALUE
                                           ,P_ACTUAL_VALUE                 => V_ACTUAL_VALUE
                                           ,P_WEIGHTING_PERCENT            => V_WEIGHTING_PERCENT
                                           ,P_COMPLETE_PERCENT             => V_COMPLETE_PERCENT
                                           ,P_UOM_CODE                     => V_UOM_CODE
                                           ,P_MEASUREMENT_STYLE_CODE       => V_MEASUREMENT_STYLE_CODE
                                           ,P_MEASURE_NAME                 => V_MEASURE_NAME
                                           ,P_MEASURE_TYPE_CODE            => V_MEASURE_TYPE_CODE
                                           ,P_MEASURE_COMMENTS             => V_MEASURE_COMMENTS
                                           ,P_SHARING_ACCESS_CODE          => V_SHARING_ACCESS_CODE
                                           ,P_WEIGHTING_OVER_100_WARNING   => V_WEIGHTING_OVER_100_WARNING
                                           ,P_WEIGHTING_APPRAISAL_WARNING  => V_WEIGHTING_APPRAISAL_WARNING
                                           ,P_OBJECTIVE_ID                 => V_OBJECTIVE_ID
                                           ,P_OBJECT_VERSION_NUMBER        => V_OBJECT_VERSION_NUMBER
    dbms_output.put_line('Successfully created objective: ' || v_objective_id ||
         ' for TARGET PERSON_ID: ' || v_owning_person_id );
    exception when others then
         dbms_output.put_line('error : ' || sqlerrm);
    END;

    Hi,
           Can you just try by giving effective date and start date as some previous date rather than sysdate?
    Regards,
    Vinod

  • Create user field image through coding

    i want to create type general and  structure image through coding in vb
    please help

    Hi,
    Below is a table from SAP's SDK documentation. You should use the last option.
    Application
    DI API
    Type
    Structure
    Type
    SubType
    Alphanumeric
    Regular
    db_Alpha
    st_None
    Alphanumeric
    Address
    db_Alpha
    st_Address
    Alphanumeric
    Phone
    db_Alpha
    st_Phone
    Alphanumeric
    Text
    db_Memo
    st_None
    Numeric
    None
    db_Numeric
    st_None
    Date/Hour
    Date
    db_Date
    st_None
    Date/Hour
    Hour
    db_Date
    st_Time
    Units And Totals
    Rate
    db_Float
    st_Rate
    Units And Totals
    Sum
    db_Float
    st_Sum
    Units And Totals
    Price
    db_Float
    st_Price
    Units And Totals
    Quantity
    db_Float
    st_Quantity
    Units And Totals
    Percent
    db_Float
    st_Percentage
    Units And Totals
    Measure
    db_Float
    st_Measurement
    General
    Link
    db_Memo
    st_Link
    General
    Image
    db_Alpha
    st_Image
    Beni.

  • URGENT: issue while creating user through reconciliation of AD

    Hi,
    We have a requirement where we need to create users in IDM through reconcilition against Active Directory. For certain type of account Ids I want to trigger a custom workflow used for user creation. So I set "viewOptions.Process" to my custom workflow in the user form assigned to the admin who is the proxy admin for the reconcilaition process. But it doesn't seem to kick off my custom workflow. Will this work? Is this the correct form to specify the custom workflow to be triggered?
    Also I tried putting some trace satements in the default "Create User" workflow to see that if it is being called during user creation by recon. In the logs I don't see my trace statements. So the question is: Which is the workflow that is called when a user is created through reconciliation? How to specify a custom workflow name in this regard?
    Thanks,
    kIDMan.

    I'm wondering if you have an answer to this?
    I need to do a similar thing. For me, I reconcile against an oracle DB and there are Active and Inactive users. I only want to reconcile Active users. I put the following code in the user form but it still created Inactive users. "Exclude Inactive User" is an empty WF that has only start and end activities.
    <Field name='viewOptions.Process'>
    <Expansion>
    <s>Exclude Inactive User</s>
    </Expansion>
    <Disable>
    <neq>
    <ref>global.status</ref>
    <s>I</s>
    </neq>
    </Disable>
    </Field>

Maybe you are looking for