Update profile options at user level?

Hi All,
Need a script for,
update profile options at user level, for example we should be able to update a profile xyz for a user abc using that script?
or please provide the document related to that..

Hi All,
Thanks for all sugessions,
i have written an script for updating profile option value from backend.
SELECT d.level_id,c.user_name, b.profile_option_name, a.user_profile_option_name,d.profile_option_value
FROM fnd_profile_options_tl a,
fnd_profile_options b,
fnd_user c,
fnd_profile_option_values d
WHERE d.profile_option_id = b.profile_option_id
AND d.level_id = 10004
AND a.profile_option_name = b.profile_option_name
AND d.level_value = c.user_id
AND c.user_name = '&USER_NAME'
update query
update fnd_profile_option_values
set profile_option_value = '&Profile_Option_Value'
where profile_option_id in
(select profile_option_id from fnd_profile_options where profile_option_name
=(select profile_option_name from fnd_profile_options_tl
where user_profile_option_name = ('&User_Profile_Option_Name')))
and level_id = 10004
and level_value in (select user_id from fnd_user
where user_name in ('&User_Name'))
Thanks
One

Similar Messages

  • Profile options at USER level in EBS r12

    Hi Gurus
    I'm an new to Oracle EBS can some one help with this,
    1. Turn on debugging using the following profile options at USER level :
    FND: Debug Log Enabled : Yes
    FND: Debug Log Level : Statement
    2. Run the Create Accounting Program
    3. Derive debug message using the following query and upload in excel format :
    SELECT substr(module,1,70), MESSAGE_TEXT, timestamp, log_sequence
    FROM fnd_log_messages msg, fnd_log_transaction_context tcon
    WHERE msg.TRANSACTION_CONTEXT_ID = tcon.TRANSACTION_CONTEXT_ID
    AND tcon.TRANSACTION_ID = <’Accounting program ‘ request ID>
    ORDER BY LOG_SEQUENCE
    4. Upload the LOG and OUTPUT files for the :
    - Create Accounting
    - Accounting Program
    Will be waiting for you reply.
    Best Regards
    Babu.

    Hi Babu,
    FND: Debug Log Enabled : Yes
    FND: Debug Log Level : Statement
    - Navigate to sysadmin responsibility > profile > system
    - Find for the respective profiles eg: FND: Debug Log Enabled
    - Set your desired value.
    2. Run the Create Accounting Program
    Run the create accounting conncurrnet program View > Request > New from the respective module
    SELECT substr(module,1,70), MESSAGE_TEXT, timestamp, log_sequence
    FROM fnd_log_messages msg, fnd_log_transaction_context tcon
    WHERE msg.TRANSACTION_CONTEXT_ID = tcon.TRANSACTION_CONTEXT_ID
    AND tcon.TRANSACTION_ID = <’Accounting program ‘ request ID>
    ORDER BY LOG_SEQUENCE
    Run this query from backend, and provide the Concurrent ID of the Create accounting program (replace this at <’Accounting program ‘ request ID>)
    - Create Accounting
    - Accounting Program
    Upload the the logfile and output files of the respective program and the output of the above query.
    I believe this is an action plan from the SR, you may also get the assistance from the SR itself and they will help you. Anyways let us know if you need any assistance
    Thanks &
    Best Regards

  • Script to check finding profile option at user level

    HI Friends,
    i want to find out
    script to check finding profile options at user level using sql in oracle apps 11i.
    Please suggest me.
    Thanks,
    DBA

    i want to find out
    script to check finding profile options at user level using sql in oracle apps 11i.Note: 470102.1 - How To Check If a Profile Option Is Set In Oracle Application
    Note: 201945.1 - How to list E-Business Suite Profile Option values for all levels using SQLPlus
    Note: 282382.1 - How to Search all of the Profile Options for a Specific Value
    Note: 367926.1 - How To Find All Users With A Particular Profile Option Set?
    Note: 282382.1 - How to Search all of the Profile Options for a Specific Value
    How To Set A System Profile Value Without Logging In To The Applications [ID 364503.1]
    How to Change Profile Option Value Without Forms [ID 943710.1]
    Thanks,
    Hussein

  • How to create a profile value at user level programatically

    Dear all,
    I want to create a profile value at user level programatically, I refer to the developer guide and try to use fnd_profile.put() to create a new value.
    But I find out the value is just created in session level, not be inserted into base table.
    So is there anyone know how to realize this function in PL/SQL?
    Any idea is appreciated.
    Best Regards,
    Kenny

    Check Note: 364503.1 - How to Set a System Profile Value Without Logging in to the Applications
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=364503.1

  • Profile chance at user level

    hi,
    two things i wanted to know.
    (1) Can i change site name at user level ? (i tried updatable for user th' Application Developer responsibility)
    (2) The default color for query mode is Yellow. I want to change it to blue. Is this possible ?
    TIA
    dbaapps.

    Hi Babu,
    FND: Debug Log Enabled : Yes
    FND: Debug Log Level : Statement
    - Navigate to sysadmin responsibility > profile > system
    - Find for the respective profiles eg: FND: Debug Log Enabled
    - Set your desired value.
    2. Run the Create Accounting Program
    Run the create accounting conncurrnet program View > Request > New from the respective module
    SELECT substr(module,1,70), MESSAGE_TEXT, timestamp, log_sequence
    FROM fnd_log_messages msg, fnd_log_transaction_context tcon
    WHERE msg.TRANSACTION_CONTEXT_ID = tcon.TRANSACTION_CONTEXT_ID
    AND tcon.TRANSACTION_ID = <’Accounting program ‘ request ID>
    ORDER BY LOG_SEQUENCE
    Run this query from backend, and provide the Concurrent ID of the Create accounting program (replace this at <’Accounting program ‘ request ID>)
    - Create Accounting
    - Accounting Program
    Upload the the logfile and output files of the respective program and the output of the above query.
    I believe this is an action plan from the SR, you may also get the assistance from the SR itself and they will help you. Anyways let us know if you need any assistance
    Thanks &
    Best Regards

  • Disable profile option updation at user level

    I want to disable the profile option HR: Security Profile or for that matter any other profile option at user level. The user should be able to see the value set by the system administrator (Field should be grayed out) and user should not be able to update it.
    How to do it??

    Try a personalization combined with custom PLSQL, like this:
    1) Acces System Profiles
    2) Help->Diagnostics->Custom Code->Personalize
    3) In the newly displayed Form Personalization form, create a line with a description like this: Prevent modification of USER_VISIBLE_VALUE
    4) In the Conditions tab, set Trigger Event = WHEN-NEW-ITEM-INSTANCE
    5) Set Trigger Object = PROFILE_VALUES.USER_VISIBLE_VALUE
    6) In the Condition text area, enter:
    apps.xxror_test_sysprofile(:PROFILE_VALUES.USER_PROFILE_OPTION_NAME,'USER')=1
    7) Set Processing Mode to Both
    8) Switch to the Actions tab and create two actions:
    first:
    type = property
    description = Don't update
    Language=all
    enabled=yes
    object type=Item
    target object=PROFILE_VALUES.USER_VISIBLE_VALUE
    property name=UPDATE_ALLOWED
    value=false
    second:
    type=property
    description=Don't enter
    language=all
    enabled=yes
    object type=Item
    target object=PROFILE_VALUES.USER_VISIBLE_VALUE
    property name=ALTERABLE_PLUS
    value=false
    9) Repeat steps 3-8 if desired for other levels, such as:
    Prevent modification of SITE_VISIBLE_VALUE
    Prevent modification of APPL_VISIBLE_VALUE
    Prevent modification of RESP_VISIBLE_VALUE
    Prevent modification of SERVER_VISIBLE_VALUE
    Prevent modification of ORG_VISIBLE_VALUE
    paying attention to update the corresponding names for xxx_VISIBLE_VALUE.
    10) Create the following PLSQL function:
    CREATE OR REPLACE function xxror_test_sysprofile (
    prof_opt_name in varchar2,
    lvl in varchar2
    return number
    is
    v_ret number;
    s_prof varchar2(1024);
    s_uname varchar2(100);
    s_lvl varchar2(10);
    begin
    -- returns 0 if the user "uname" must be granted access the profile named "prof_opt_name" at the "lvl" level
    -- returns 1 if the user "uname" must be forbidden to access such a profile at such a level.
    -- important assumption: the "lvl" parameter may have only one of the following values:'SITE', 'APPL', 'RESP', 'USER', 'SERVER', 'ORG'
    -- or else this function will return 1, thus forbidding the access
    s_uname:=substr(upper(trim(nvl(fnd_profile.value('USERNAME'),''))),1,100);
    if s_uname in ('MY_ADMIN_1','MY_ADMIN_2','SYSADMIN') then
    v_ret:=0; -- no restrictions
    else
         if s_uname in ('MY_POWERUSER_1','MY_POWERUSER_2') then
         -- restrict to only the below mentioned profiles
         s_prof:=substr(upper(trim(nvl(prof_opt_name,''))),1,1024);
              s_lvl:=substr(upper(trim(nvl(lvl,''))),1,10);
              if
              (s_prof like '%WHATEVER%')
              then
                   if s_lvl in ('SITE', 'APPL', 'RESP', 'USER', 'SERVER', 'ORG') then
                        v_ret:=0; -- level acceptable for these users on these profiles
                   else
                        v_ret:=1; -- unknown level, so reject
                   end if;
              else
                   -- these users may not access these profiles, so reject
                   v_ret:=1;
              end if;
         else
              if s_lvl = 'SITE' then
              -- no way any other user than those above may modify site-level profiles
              v_ret:=1;
              else
                   -- any other user than those above may modify lower-level profiles, but
                   -- for now reject all
                   v_ret:=1;
              end if;
         end if;
    end if;
    return v_ret;
    end;
    Pls be aware that testing first on a test instance is always advisable.

  • Profile option update at responsibility level from backend

    Hi,
    I referred few online and oracle support document to update the profile option from backend. I was able to change the profile option at site level, but when I am trying to update the profile at responsibility ( or any level such as user etc), I am unable to do so. Though the script says that profile option has been updated, it doesn't show up when I check on frontend.
    EBS 11.5.10.2
    DB 11.2.0.1
    The script which I use to change profile at site level is this:-
    DECLARE
    stat boolean;
    BEGIN
    dbms_output.disable;
    dbms_output.enable(100000);
    stat := FND_PROFILE.SAVE('SITENAME', 'ABDVLP', 'SITE');
    IF stat THEN
    dbms_output.put_line( 'Stat = TRUE - profile updated' );
    ELSE
    dbms_output.put_line( 'Stat = FALSE - profile NOT updated' );
    END IF;
    commit;
    END;
    I tweaked the above script to include the responsibility level change, but its not changing. Both the below scripts are not making any changes.
    SCRIPT - 1
    DECLARE
    stat boolean;
    BEGIN
    dbms_output.disable;
    dbms_output.enable(100000);
    stat := FND_PROFILE.SAVE('ICX_DISCOVERER_LAUNCHER', 'http://nalinoes01.abd.ad.acco.com:8003/discwb4/html/discolaunch.htm?Connect=[APPS_SECURE]', 'RESP',51889,671);
    IF stat THEN
    dbms_output.put_line( 'Stat = TRUE - profile updated' );
    ELSE
    dbms_output.put_line( 'Stat = FALSE - profile NOT updated' );
    END IF;
    commit;
    END;
    Note: I found the responsibility id from the below query
    SELECT responsibility_id  ,application_id
         FROM fnd_responsibility_tl
        WHERE responsibility_name = 'DIRECT CA IBE CUSTOMER';
    ===============================================================================
    SCRIPT-2
    DECLARE
       stat           BOOLEAN;
       resp_id        NUMBER;
       appl_id        NUMBER;
       resp_appl_id   NUMBER;
    BEGIN
       DBMS_OUTPUT.DISABLE;
       DBMS_OUTPUT.ENABLE (100000);
       -- Set the Profile Option value at responsibility level
       SELECT responsibility_id, application_id
         INTO resp_id, resp_appl_id
         FROM fnd_responsibility_tl
        WHERE responsibility_name = 'DIRECT CA IBE CUSTOMER';
       stat :=
          fnd_profile.SAVE
             (x_name                        => 'ICX_DISCOVERER_LAUNCHER',   -- Profile name you are setting
              x_value                       => 'http://nalinoes01.abd.ad.acco.com:8003/discwb4/html/discolaunch.htm?Connect=[APPS_SECURE]',   -- Profile value you are setting
              x_level_name                  => 'RESP',   -- Level that you're setting at: 'SITE','APPL','RESP','USER', etc.
              x_level_value                 => resp_id,   -- Default NULL Level value that you are setting at, e.g. user id for 'USER' level. X_LEVEL_VALUE is not used at site level.
              x_level_value_app_id          => resp_appl_id,   -- Default NULL. Used for 'RESP' and 'SERVRESP' level; Resp Application_Id.
              x_level_value2                => NULL   -- 2nd Level value that you are setting at.  This is for the 'SERVRESP' hierarchy.
       IF stat
       THEN
          DBMS_OUTPUT.put_line ('Stat = TRUE - profile updated');
       ELSE
          DBMS_OUTPUT.put_line ('Stat = FALSE - profile NOT updated');
       END IF;
       COMMIT;
    END;

    I tried to change at SERV level and still the profile never gets updated. Kindly help.

  • Gray out site-level profile options

    Hi All,
    Kindly let me know if there is any sql statement for graying out site-level profile otion for all the profile optinos.
    So that the dev user can only modify the profile options at user or resp level but not at the site level.
    Kindly help me out with some sql query which can gray out the site - level field at profile options.
    Thanks is advance.

    Hi,
    But they can simply login to Application Developer responsibility (assign it to themselves if they do not have it as they have access to System Administrator) and revert all the changes :)
    If each use has his/her own username, you should be able to know who is the one who updated the profile option value.
    As mentioned in my first reply, update the site updatable columns in the table, this should stop the users from updating those profile options (try this on a test/dev instance and take a backup of the table first -- please do not apply the same on your production instance).
    One other possible workaround/solution would be using forms personalization to hide the system profile option values at the site level but again if some one has the apps password and System Administrator responsibility he should be able to disable the code.
    Thanks,
    Hussein

  • HR: Security Profile at User Level

    Hi
    As HR: Security Profile is not enabled for user level, but sometime we need it for some users. Workaround is set up a different responsibility for the same.
    Also We can go to Application Developer Responsibility and set enable user level for HR: Security Profile option. Is it Ok to do it or this may break the system at some point.
    Suggestions Please.

    Gaurav,
    I am not an expert in this area, but I do not think enabling the profile at the user level will cause any issues. In our site, what we have done is to create a security profile specific to that user and assigned it in the HR module (not sure of the specifics, but I can find out if you are interested) - we did not enable the profile option at the user level as you are wanting to do. SR can provide you with another opinion :-)
    HTH
    Srini

  • Setting profile option values using Java Concurrent Program

    Hi,
    I have a java concurrent program in which i am trying to update a profile option which is enabled only at site level, but the values are not getting committed once the CP completes.
    1. I am using CpContext.getProfileStore().SetProfile(<name>,<value>) to set the value.
    2. I am printing CpContext.getProfileStore().getProfile(<name>) in the same run and this works.
    3. BUt once the CP completes, the values are gone. Seems we have to issue a commit.
    3. So i used CpContext.getJDBCConnection().commit; Even this doesn't commit.
    Pls. suggest. Has anyone used these APIs to update profile options?
    Thanks,
    Suresh.

    I am not not a java expert, but pl see if MOS Docs 305710.1 (A SAMPLE JAVA CONCURRENT PROGRAM) and 827563.1 (How To Create a Java Concurrent Program?) can help
    HTH
    Srini

  • Can we do personalization at user level under iprocurement

    Hi,
    Using the personalization i have enabled the exchang rate and exchange date for Non-catalog request items in iProcurement since, we are facing exchang rate issue.
    i have enabled the personalization at responsibility level so all users are viewing the personalize fields. Now i want to restrict the personalize fields at the user levle. Is there any way i can do the personalization at the user levles?
    Note: we are using the 11.5.10.2 version.
    Please let me know..
    Regards,
    Kevin.

    Hi,
    There's another way apart from personalizations.
    Hi Suppose you have two fields say A and B and two users David and Henry.
    You want David should see both the fields and Henry shoudn't...
    Then in that case in the controller of the page in process request you cvan capture the Username from profile option
    String user = (String)pageContext.getUserName();
    if("David".equals(user))
    field A .setRendered(true);
    field B .setRendered(true);
    else if("Henry".equals(user))
    field A .setRendered(false);
    field B .setRendered(false);
    You can proceed this way....
    Thanks,
    Gaurav

  • How to add a new system profile option?

    ear all,
    I would like to add one profile option in some of the responsibilities. . .how can I do that?
    Best Regards,
    Amy

    Please review the following thread;
    How to create a profile value at user level programatically
    Hope it is helpful.
    Adith

  • Accessing Profile Option

    Hi,
    I have a validation to be made in the Controller of a OAF page.
    If the uSer is Logged in with XYZ Responsibility and if the value for a Custom Profile OPtion for that Responsibility is 'True' ... Do certain things.
    How to achieve this? How to get the responsibility name and the value of a profile option at responsibility level for that responsibility?
    Thanks

    pageContext.getProfile("<Profile Name>")
    You need not specify responsibility. Framework is smart enough to get the profile value based on the current responsibility context.

  • Value of profile option, ICX: Requisition Sever(ICX_REQ_SERVER)

    Hi,
    I need to know how do we find out the value to be stored in the profile option, ICX: Requisition Sever(ICX_REQ_SERVER). The value currently we have in our client instance seems to be wrong.
    My requirement is to prepare a URL to access a SQL Loader's bad file. While clicking on the URL should open the bad file from the interface directory in the UNIX server.
    Please comment.
    Regards,

    Hi,
    There are many scripts available, please see these documents for details.
    Note: 470102.1 - How To Check If a Profile Option Is Set In Oracle Application
    Note: 201945.1 - How to list E-Business Suite Profile Option values for all levels using SQLPlus
    Note: 282382.1 - How to Search all of the Profile Options for a Specific Value
    Note: 367926.1 - How To Find All Users With A Particular Profile Option Set?
    Note: 282382.1 - How to Search all of the Profile Options for a Specific Value
    Note: 803587.1 - Script To List The Values Of A Profile Option At All Levels
    Thanks,
    Hussein

  • Not able to get the profile option value

    Hi,
    Not able to get the profile option value after i changed the new value in the application.
    I am using fnd_global.apps_initialize to initialize the apps from PLSQL code to get the updated profile option value. But fnd_profile.value is not getting fetched the updated value. Still it is fetching the old one. I mean it is stored in database cache. Please any one let me know how to get the new value every time after i changed the value.
    Thanks

    What is the application release?
    Is this a custom or seeded profile option?
    Can you confirm that the value got changed from the application (query the profile option and verify the value)?
    Can you reproduce the issue if you use an API to update this profile option as per (How to Change Profile Option Value Without Forms? [ID 943710.1])?
    Thanks,
    Hussein

Maybe you are looking for

  • Report Generation Toolkit and Labview 8 ?

    I currently have Labview 7.1 on my computer, and Labview 8.  I have installed the Report generation Toolkit 1.1.1, but when I try to open several of the excel and word vi's in labview 8, I get the error that "constants wired to case structures were c

  • Itunes 7.7 and windows Vista not working!

    Hello, I have been plagued with iTunes and Vista problems ever since i got it on my Pc over 9 months ago!! I had hoped that a multimillion company like apple most successful in this nich of the market would want to keep its customers and provide us w

  • Ipod to computer

    can u tranfer music from your ipod to your music library and if yes, how i connect my ipod to the pc and try to drag it but will not take

  • Can I get an old receipt?

    I bought my iMac on 2008, It is in Venezuela right now and I want to bring it back to Canada. To do that, I have to present the receipt to the Venezuelan customs. How can I get that old receipt? Thank you. Alicia

  • How to record in HD 720? Please help!

    When I record something and upload on Youtube its not even HD It's 240 ***!? How do I set my iPhone 4 to HD mode or 720 mode? I don't see no options? I upload my video to youtube by my iPhone not on my Laptop. Please someone help, also what is HDR? D