Total Pageviews

Saturday, October 18, 2014

complilation error at Jdeveloper without Oimclient.jar and OIMServer.jar(required jar file)


after connecting Jdeveloper at your local windows machine with MDS database at unix machine you  need to have 2 .jar files(Oimclient.jar and  OIMServer.jar) copied from your OIM installation to your local Jdeveloper libraries in order to compile a java class. without that once you will compile java class in Jdeveloper you will get an error.


in order to do that you need to right click on to your class file and go to Project Properties
click on Libraries and ClassPath -->
Click on Add JAR / Directory
specify OimClient.jar and OIMServer.jar file
 

jdeveloper error jdeveloper java.io.FileNotFoundException: configurations.ser (The system cannot find the file specified)

when you are trying to connect to OIM 11gr2  MDS database using Jdeveloper. after you enter credentials, window closes and once you look into the logs. you see below error


DEBUG [ObjectSerializer] IOException occured while reading object from file system:
java.io.FileNotFoundException: configurations.ser (The system cannot find the file specified)


Solution:
this error is happening because you are not specifying correct connect credentials. make user you are providing correct connect string to connect to database including userver and sid for connection.

please correct these information it will fix the issue.

 

How to setup MetaData Store in Jdeveloper 11g

in order to modify/Create Notification in OIM 11gR2ps you can utilize Jdeveloper. Jdeveloper will connect to OIM MDS database in order to modify templates.
here is the process to connect Jdeveloper with MDS database


1. First you go to your local 11g Jdeveloper installation folder. In my case it isC:\JDEV_HOME11.1.1.3\jdeveloper\integration\ folder (if you have already applied third party plugin patch provided by oracle then you will see seed folder by default with all previous configuration done). If not create a seed folder under integration folder.

2. Now create folder with name apps under seed (remember to create folder with name apps else you might face issue this oracle documents say i didn’t try out).

3. Under apps you can create your folder structure to place all your XSD, WSDL files.

4. We can create a SOA_MDS connection in Jdeveloper as below -

New à Connections — > SOA-MDS Connection

 

5. The SOA-MDS connection can be created in two ways. One is File Based MDS and other is Data Based MDS.

6. In Create SOA_MDS Connection window, select File Based MDS as Connection              Type for file based MDS connection, we will point to the local folder in our system               where all the WSDL and XSD files are placed as shown below. So when we use the wsdl         and xsd files in the  project, they will be referred from the local system.

7. Click OK. Now the File Based MDS connection is created.

8. Lets see how to create DB based MDS connection. In Create SOA_MDS Connection window, select DB Based MDS as Connection Type for file based MDS connection.

 

9. For DB Based MDS connection, we should have created all the schema for the weblogic in the database by running the Repository Creation Utility (RCU) wizard. After RCU execution, the DEV_MDS schema will get created in the database. We need to use the DEV_MDS schema connection and soa-infra as MDS Partition while creating the DB Based MDS connection as shown in the above screen shot.

10. Click OK. Now the DB Based MDS connection is created.

 

Friday, October 10, 2014

simple sql command to update colum value

to update any value of the table in SQL, use below simple command

UPDATE "table_name"
SET "column_1" = [new value]
WHERE "condition";

make sure to commit after update otherwise value will not be saved for everyone to use

commit;
 

oim 11.1.2.2.0 setting up default page display at login

if you want when user login to OIM they should see their profile page by default. you can implement this requirement by enabling below property at Sysadmin console using System Configuration tab.
 
login to Sysadmin console
Click System Configuration
search for property name Homepage for Self Service console  (you can use wild card search using any of these keywords. e.g *Homepage*).
 
click on the property Homepage for Self Service console
enter the value of my_info  (by default it is empity).
restart OIM
 
doing above once user will login to oim identity console they will see My Information page.
 
you can also specify other pages to be displayed once they login. other values can be following
 
This property is used to set the page to be displayed after a user logs in to Oracle Identity Manager Self Service.
You can set one of the following as the value of this property:
  • my_access: Displays the My Access page
  • my_info: Displays the My Information page
  • home: Displays the Home page
  • catalog_home:Displays the Catalog page
  • none: Displays no page
Note: After modifying the value of this property, you must restart Oracle Identity Manager server for the changes to take effect.


oim 11.1.2.2.0 implementing roll base UI access (customizing admin screen view)

Showing or Hiding UI Components Conditionally

here is how you can implement UI Customization requirement at 11.1.2.2.0.

At Below example I am hiding Administration Tab at OIM Admin console

1. create sand box
2.click on Customize. I will show Editing page bar at the top of logo bar.
3. click on View than select Source.
4. if prompted of warning about customization say Edit.
5. From bottom panel scroll down to Administration.
6. click on Administration.(it will highlight whole area of Administration). make sure complete Administration box is selected.
7. Click on Edit at top panel. it will open up a POP up window.
8. at Display Option go at the bottom of the page.
9. at Show Component select next to and down ^ button. you will see 3 options.
10. Select first option Expression Builder.
11. at Type a Value or expression remove true and put below line

#{oimcontext.currentUser.roles['SYSTEM ADMINISTRATORS'] != null}

12. click Test( it will show true value)
13. Click OK.
14. at second popup click Apply or OK.
15. Close Editing Page.
16 Publish Sandbox.

Now any user who have 'SYSTEM ADMINISTRATORS' will be able to see Administration Screen. same way you can hide all other tabs that you want to hide.

Below are some other options that you can use as per your requirement.

  • To show a UI component if the logged-in user has the System Administrators admin role:
    #{oimcontext.currentUser.roles['SYSTEM ADMINISTRATORS'] != null}
    
    Similarly, the EL expression can be modified to check if the logged-in user has any other role.
  • To show a UI component if signed-in user has the System Administrator admin role:
    #{oimcontext.currentUser.adminRoles['OrclOIMSystemAdministrator'] != null}
    
    Similarly, the EL expression can be modified to check if the logged-in user has any other admin role.
  • To show a UI component if the usr_key attribute of the logged-in user is 1:
    #{oimcontext.currentUser['usr_key'] == 1}
    
  • To show a UI component if the logged-in user's last name is Doe:
    #{oimcontext.currentUser['Last Name'] == 'Doe'}
    
  • To show a UI component if the logged-in user belongs to the Xellerate Users organization:
    #{oimcontext.currentUser['Organization Name'] == 'Xellerate Users'}
    
  • To show a UI component if the user's UDF attribute called UDF_NAME equals to UDF_VALUE:
    #{oimcontext.currentUser['UDF_NAME'] == 'UDF_VALUE'}

 

Wednesday, October 8, 2014

oim 11.1.2.2.0 modifying system property usefull information

after creating system property thru sysadmin console. here are more details if you want to modify system property that you added. if you don't want some of the properties can be deleted from sysadmin console you can set data leve to 1

other details is below

  1. Table 16-3 Fields of the Create System Property Form
    FieldDescription
    Property Name
    Enter a name of the system property.
    Keyword
    Enter a unique ID for the system property. You can enter the keyword in any format.
    Note: The property name can be translated to various locales, but the keyword cannot be translated.
    Value
    Enter a value for the system property, for example, 4.
  2. Click Perform to create the system property. A message confirming that the system property has been created is displayed. For the new system property that is created, by default, the data level is set to 2 and login_required is set to true.
    After the system property is created, you can use SQL to set the values for the following system property fields that are automatically added to the system property recorded in the PTY table of the database:
    • Data Level: Every system property has a data level associated with it. The data level field determines the kind of operations that can be performed on a system property. Data levels are a means of specifying the operations that can be performed on a system property. For example, a data level value of 1 for a system property indicates that the system property can neither be modified nor deleted. The default value of this field is 2.
      The data level field cannot be modified by using the UI. It can only be modified by using a SQL script. Table 16-3lists and describes the various data levels associated with a system property.
      Table 16-4 Data Levels Associated with a System Property
      Data LevelDescription
      0
      Indicates that the system property can be modified or deleted
      1
      Indicates that the system property cannot be modified or deleted
      2
      Indicates that the system property can only be modified
      3
      Indicates that a system property can only be deleted
    • Log In Required: This field specifies whether or not a login is required to access the system property. The default value of this field is 1, which means that a login is required to access the system property. You can change the value of this field to 0 by using a SQL script.
    • LKU_KEY: This field determines the set of values that can be specified in the Value field of a system property. The default value of this field for a newly created system property is null.
      Oracle Identity Manager represents sets using two tables, the LKU and LKV tables. The LKU table holds keys that identify each set. The LKV table defines the members of each set, in which each row in the LKV table uses one column to identify the set (a LKU_KEY column in the LKU table), and another column to declare a value that will be a member of that set.
      LKU_KEY is a column in the LKU table of the Oracle Identity Manager database. For a system property with non-null value in the LKU_KEY column, you can insert the values in this column from a predefined set of values that are in the LKV table. This is done by using a SQL script to include any valid LKU_KEY column value from the LKU table to associate multiple values with the system property. See step 7 for more details.
  3. If you want to modify the data level of the system property, then run the following SQL statement:
    UPDATE PTY SET PTY_DATA_LEVEL=DATA_LEVEL_VALUE WHERE PTY_KEYWORD = SYSTEM_PROPERTY_KEYWORD;
    In this SQL statement:
    • DATA_LEVEL_VALUE is any value listed in the Data level column of Table 16-4.
    • SYSTEM_PROPERTY_KEYWORD is the unique ID for the system property that you entered in the Keyword field in Step 4.
    Note:
    Any special character (.) is not allowed in the beginning or end of Keyword fields while creating or updating a system property. In case of Value fields, special characters are allowed in the beginning or in the end.
  4. If you want to modify the value of the Log In Required field, then run the following command:
    UPDATE PTY SET PTY_LOGINREQUIRED=LOGIN_REQUIRED_VALUE WHERE PTY_KEYWORD = SYSTEM_PROPERTY_KEYWORD;
    In this command:
    • LOGIN_REQUIRED _VALUE can take a value of either 0 or 1.
      If a login is required for accessing the system property, then enter 1. Otherwise, enter 0.
    • SYSTEM_PROPERTY_KEYWORD is the unique ID for the system property that you entered in the Keyword field in Step 4.
  5. If you want to define the set of values that can be specified in the Value field of a system property, then run the following commands:
    1. Run the following command to insert a row into the LKU table:
      INSERT INTO LKU (LKU_KEY, LKU_LOOKUP_KEY, LKU_TYPE, LKU_GROUP, LKU_REQUIRED, LKU_TYPE_STRING_KEY, LKU_FIELD, LKU_DATA_LEVEL, LKU_CREATE, LKU_CREATEBY, LKU_UPDATE, LKU_UPDATEBY, LKU_NOTE, LKU_ROWVER) VALUEs (LKU_KEY_VALUE, LKU_LOOKUP_KEY_VALUE,...);
      
      For example, if you want to update a set of values for the Title field, then run the following INSERT statement:
      INSERT INTO LKU (LKU_KEY, LKU_LOOKUP_KEY, LKU_TYPE, LKU_GROUP, LKU_REQUIRED, LKU_TYPE_STRING_KEY, LKU_FIELD, LKU_DATA_LEVEL, LKU_CREATE, LKU_CREATEBY, LKU_UPDATE, LKU_UPDATEBY, LKU_NOTE, LKU_ROWVER) VALUES (201, Title, ...);
      
      Here, LKU_KEY_VALUE is 201 that uniquely identifies the record in the LKU table, and LKU_LOOKUP_KEY_VALUEis Title.
      Note:
      You must insert a record in the LKU table before inserting any record in the LKV table because the value of LKU_KEY is used in the LKV insert statement.
    2. Run the following command to insert a row into the LKV table:
      INSERT INTO LKV (LKV_KEY, LKU_KEY, LKV_ENCODED, LKV_DECODED, LKV_LANGUAGE, LKV_COUNTRY, LKV_VARIANT, LKV_DISABLED, LKV_DATA_LEVEL, LKV_CREATE, LKV_CREATEBY, LKV_UPDATE, LKV_UPDATEBY, LKV_NOTE, LKV_ROWVER) VALUES (LKV_KEY_VALUE, LKU_KEY_VALUE, LKV_ENCODED_VALUE, LKV_DECODED_VALUE, ...);
      
      For example, to define the set of values for the Title field as Mr, Ms, and Dr, run the following INSERT statements:
      INSERT INTO LKV (LKV_KEY, LKU_KEY, LKV_ENCODED, LKV_DECODED, LKV_LANGUAGE, LKV_COUNTRY, LKV_VARIANT, LKV_DISABLED, LKV_DATA_LEVEL, LKV_CREATE, LKV_CREATEBY, LKV_UPDATE, LKV_UPDATEBY, LKV_NOTE, LKV_ROWVER) VALUES (1001, 201, 'Ms', 'Miss', ...);
      
      INSERT INTO LKV (LKV_KEY, LKU_KEY, LKV_ENCODED, LKV_DECODED, LKV_LANGUAGE, LKV_COUNTRY, LKV_VARIANT, LKV_DISABLED, LKV_DATA_LEVEL, LKV_CREATE, LKV_CREATEBY, LKV_UPDATE, LKV_UPDATEBY, LKV_NOTE, LKV_ROWVER) VALUES (1002, 201, 'Mr', 'Mister', ...);
      
      INSERT INTO LKV (LKV_KEY, LKU_KEY, LKV_ENCODED, LKV_DECODED, LKV_LANGUAGE, LKV_COUNTRY, LKV_VARIANT, LKV_DISABLED, LKV_DATA_LEVEL, LKV_CREATE, LKV_CREATEBY, LKV_UPDATE, LKV_UPDATEBY, LKV_NOTE, LKV_ROWVER) VALUES (1003, 201, 'Dr', 'Doctor', ...);
      
      In this example:
      • LKV_KEY_VALUE is 1001, 1002, and 1003 respectively that uniquely identifies the records in the LKV table
      • LKV_ENCODED_VALUE is Ms, Mr, and Dr respectively
      • LKV_DECODED_VALUE is Miss, Mister, and Doctor respectively
      See Also:
      "Configuring Custom Attributes" in the Oracle Fusion Middleware Developer's Guide for Oracle Identity Manager for more information about the LKU and LKV tables
    3. Run the following command to update the value of the LKU_KEY column in the PTY table:
      UPDATE PTY SET LKU_KEY=LKU_KEY_COLUMN_IN_THE_LKV_TABLE WHERE PTY_KEYWORD = SYSTEM_PROPERTY_KEYWORD;
      In this command:
      • LKU_KEY_COLUMN_IN_THE_LKV_TABLE is the value of the LKU_KEY column in the LKV table.
      • SYSTEM_PROPERTY_KEYWORD is the unique ID for the system property that you entered in the Keyword field in Step 4.
        Note:
        If you want to view the changes in Oracle Identity Manager Advanced Administration, then you must run purge cache immediately after modifying a system property by using Microsoft SQL.