Oracle Profile and Role scripts

RDBMS :Oracle 10.2
Hi,
I have several Profile and Roles on my server.
Can I extract sql to create those Profile and Roles ?
e.g. I have role datareader, I want to extract its creation script and it include all the privileges assigned to that role
thanks

try
SELECT dbms_metadata.get_ddl('ROLE', 'datareader') FROM dba_roles;
SELECT dbms_metadata.get_granted_ddl('ROLE_GRANT', 'datareader) FROM dual;
SELECT dbms_metadata.get_granted_ddl('SYSTEM_GRANT','datareader') FROM dual;
SELECT dbms_metadata.get_granted_ddl('OBJECT_GRANT','datareader') FROM dual;
datareader should be in CAPS

Similar Messages

  • Duplicate profiles and Roles

    Hi,
    I created a few profiles with special roles and metadata fields in my ucm.
    I did all the work in my computer and now i want to change the machine(computer) and i don't want to loose all my work.
    Are there any ideas how to duplicate all my profiles and roles(my configuration) to another computer??
    NOTE: I just want to duplicate my custom environment of the ucm.
    Eran z

    For this purpose you have Administration -> Comfig Migration Admin (Configuration Migration Utility).
    http://download.oracle.com/docs/cd/E17904_01/doc.1111/e10792/c06_migration.htm#CHDBIJAJ
    Regards,
    Boris

  • Profile and roles internet sales

    Hi.
    I need profiles and roles that are use in internet sales.
    Thanks

    There are basic three type of user in ISA.
    1) B2B_FULL
    2) B2B_ORDER
    3) B2B_VIEW
    <b>For B2B Full below is the Roles</b>
    SAP_ISA_B2B_FULL
    SAP_ISA_SUB_BILLING_VIEW
    SAP_ISA_SUB_CATDISPLAY
    SAP_ISA_SUB_CATPRICE
    SAP_ISA_SUB_CONTRACT_UI
    SAP_ISA_SUB_CUSTOMER_READ
    SAP_ISA_SUB_ORDER_MAINTAIN
    SAP_ISA_SUB_QUOT_DISPLAY_UI
    SAP_ISA_SUB_QUOTATION_UI
    SAP_ISA_SUB_RFC
    SAP_ISA_SUB_TEMPLATE_MAINTAIN
    <b>For B2B_ORDER</b>
    SAP_ISA_B2B_ORDER
    SAP_ISA_SUB_CATDISPLAY
    SAP_ISA_SUB_CATPRICE
    SAP_ISA_SUB_CONTRACT_UI
    SAP_ISA_SUB_CUSTOMER_READ
    SAP_ISA_SUB_ORDER_MAINTAIN
    SAP_ISA_SUB_QUOT_DISPLAY_UI
    SAP_ISA_SUB_RFC
    SAP_ISA_SUB_TEMPLATE_MAINTAIN
    <b>For B2B_VIEW</b>
    SAP_ISA_B2B_VIEW
    SAP_ISA_SUB_CATDISPLAY
    SAP_ISA_SUB_CATPRICE
    SAP_ISA_SUB_CUSTOMER_READ
    SAP_ISA_SUB_RFC
    SAP_ISA_SUB_TEMPLATE_MAINTAIN
    pl. reward a point if it helps you.
    Thanks and Regards.
    Ashish Patel.

  • Difference between profile and role

    Can any explain me the difference between profile and role.
    I was given a user Id on ABAP stack of XI.
    My profile: SAP_ALL
    I was not assigned any roles.
    I am not sure if I need different roles or this profile
    would serve the purpose.
    -Naveen.

    Hi Naveen,
    Adding to Gus points a few more inputs.
    Profiles were the menas of assiging authorizations to users until 4.0 Versions.
    Later to the same it was upgraded to the concept of Roles. The crux always remains the same.
    Be it a profile or a role, it contains the Auth Object and the respective values.
    But in present scenario, you can get confused by the profiles that are assignable to Users.
    IN short the following points can be helpful.
    1. The profiles like SAP_ALL;SAP_NEW,S_SPO_ALL etc are standard Profiles delivered by SAP which when assigned to a user in his profile in SU01 would get all the related authorizations.
    ( You must be lucky to have SAP_ALL assigned to ur ID by ur basis guy)
    2. A role is created by assigning a few transactions to this role and when this role is generated, it generates a PROFILE. But this profile is a system generated one and cannot be ever assigned to any user. These profiles can be sorted out as they have the standard naming like T-XXXXXXXX where they are the numbers and it can never be assigned to any user.
    3. Note prior to 4.0 its all Profiles that are assigned to users and later to the same came the concept of Roles and hence this change.
    Hope the answer is helpful in making u undersand a few inputs form my side.
    FYI:
    Method to create a role can be checked out from the link below.
    http://help.sap.com/saphelp_bw21c/helpdata/en/52/6714b6439b11d1896f0000e8322d00/frameset.htm
    Br,
    Sri
    Award points if answer is helpful.

  • Creatkion of customized profiles and roles

    Dear Experts,
    Im new to SAP and SDN.
    My requirement is that i need to create a new profile for technical people
    as z_tech_role giving access to transactions as SE38,S71,smartforms etc.
    Similarly a functional one needs to be developed as z_func_role access to Se16,
    solar01,solar02 ,va01,ad other VA transactions.
    The same for a workflow profile.
    Can you please provide me with steps how i need to create this profile and how to attach roles in it to the profile.
    Thanks in advance

    Hi,
    There is one forum for SAP Security, you've to post this message in that forum to get quick and exact reply..
    Anyways, please follow the help.sap link above povided already.
    Somebasic concepts:
    1. Tcodes are assigned to Roles.
    2. When Roles are generated, they create profiles.
    3. Roles are assigned to Users. (profiles are not directly assigned, except few like sap_all, sap_new etc)
    So what you can do, create a role z_tech_role in PFCG and add transaction SE38,S71.. etc.then maintain authorizations, generate the role. and then go to user tab, add the users whom you want to be assigned with the new role z_tech_role. (role assignement can also be done in SU01, roles tab)
    Thanks,
    Debasis.

  • Two user with same profile and role having different authorization

    Dear All,
    I have very strange case of authorization . We have a new abap developer in our company . Her profile as copied from an exiting abap developer's profile in Development system. But she don't have authorization for lot of transaction that the existing user have. I checked the profile tabs , role tabs . then done the user compare for all the roles , but of no use.
    I did a compare of the two uses using S_BCE_68001430 and could see is that the existing abap user is having authorization starting with T_PXXXXXXXX that is giving him extra rights. These authorization is not present in any of the existing role he is assigned to (checked using S_BCE_68001396). The authirsaction in the roles start with T-DXXXXXXXX
    Will appreciate if any one can give any input . The problem is i need to assign each authorisation the existing user having manually to the new user.
    regards
    Tony

    Thanks for the mail.
    I check the "Reference User for Additional Rights" -- there is no refernce user assgined.
    I checked the table USR04 the no. of Profle for the two users are diffrent and in the table UST04 also the the existing uer is having addtional profiles.
    I like to add one more point Some of the roles of the  two users are composite roles and both the composite and its orignial roles are included the profile of both users.
    Does any one have idea of the authorisations starting with T_PXXXXXXXX
    regards
    tony
    MANDT BNAME          PROFILE    
    100   CHARLHO        B_LSMW_ALL 
    100   CHARLHO        T-D1780054 
    100   CHARLHO        T-D1780057 
    100   CHARLHO        T-D1780058 
    100   CHARLHO        T-D17800581
    100   CHARLHO        T-D1780075 
    100   CHARLHO        T-D17800751
    100   CHARLHO        T-D1780086 
    100   CHARLHO        T-D17800861
    100   CHARLHO        T-D17800862
    100   CHARLHO        T-D17800863
    100   CHARLHO        T-D17800864
    100   CHARLHO        T-D1780087 
    100   CHARLHO        T-D1780088 
    100   CHARLHO        T-D1780247 
    100   CHARLHO        T-D1780304 
    100   CHARLHO        T-D1781182 
    100   CHARLHO        T_P0920411 
    100   CHARLHO        T_P09204111
    100   CHARLHO        T_P092041110
    100   CHARLHO        T_P09204112
    100   CHARLHO        T_P09204113
    100   CHARLHO        T_P09204114
    100   CHARLHO        T_P09204115
    100   CHARLHO        T_P09204116
    100   CHARLHO        T_P09204117
    100   CHARLHO        T_P09204118
    100   CHARLHO        T_P09204119
    100   TESTUSER2      B_LSMW_ALL 
    100   TESTUSER2      T-D1780054 
    100   TESTUSER2      T-D1780057 
    100   TESTUSER2      T-D1780058 
    100   TESTUSER2      T-D17800581
    100   TESTUSER2      T-D1780075 
    100   TESTUSER2      T-D17800751
    100   TESTUSER2      T-D1780086 
    100   TESTUSER2      T-D17800861
    100   TESTUSER2      T-D17800862
    100   TESTUSER2      T-D17800863
    100   TESTUSER2      T-D17800864
    100   TESTUSER2      T-D1780087 
    100   TESTUSER2      T-D1780088 
    100   TESTUSER2      T-D1780247 
    100   TESTUSER2      T-D1780304 
    100   TESTUSER2      T-D1781182

  • Custom Auth. Object with Profile and role assignment not working

    Hi,
    I have created custom Authorization Object with field ACTVT with allowed values - 01,02, 03. Now test it with custom program using AUTHORITY-CHECK OBJECT 'Z_AUTHORIZ' it is working fine and returning sy-subrc 12. At this point i have not created any role using this Auth Object.
    Now I have created custom role ZPM_**** and assigned above Auth object to it with value ACTVT 03. Assigned this role to user.
    When I try to test the above custom program with any ACTVT value it is giving sy-subrc as 0. Used below custom code in program.
    AUTHORITY-CHECK OBJECT 'Z_AUTHORIZ'
                ID 'ACTVT'  FIELD '01'.
    Am I missing anything? The profiles are generated correctly. 
    Best Regards,
    Nilesh

    Below are the screen shots for PFCG:

  • BAPI to create,get Profiles and roles

    Hi,
    I am using the SAP RFC SDK to do the provisioning of entities in the SAP environment.
    My SAP system is 6.20 .
    I wanted to know if there are BAPI's which exist for the following
    a)Profile creation
    b)Profile Fetching
    c)Role creation
    d)Role Fetching
    I could not find the same in the SAP IDM document provided for IAM vendors
    Best Regards
    Manoj

    Hi Manoj,
    Everything you need to know about this, and more, can be found in the following PDF from SAP: <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/668e6629-0701-0010-7ca0-994cb7dec5a3">SAP Identity Management APIs</a>.
    In summary:
    To find a user's roles and profiles, use <b>BAPI_USER_GET_DETAIL</b>.
    To assign & delete a user's roles, use <b>BAPI_USER_ACTGROUPS_ASSIGN</b> and <b>BAPI_USER_ACTGROUPS_DELETE</b>.
    To assign and delete a user's profiles, use <b>BAPI_USER_PROFILES_ASSIGN</b> and <b>BAPI_USER_PROFILES_DELETE</b>.
    Hope this helps,
    Darren
    <a href="http://www.fortybeans.com/">My blog</a>

  • Oracle profile and password limits

    Hi there, I don't understand what's limiting my password selection. It appears that the profile is default and doesn't have limitations.
    Any help would be appreciated.
    Thanks
    db2> alter user system identified by "xxxxx";
    alter user system identified by "xxxxx"
    ERROR at line 1:
    ORA-28003: password verification for the specified password failed
    ORA-20003: Password should contain at least one \
    digit, one character and one punctuation
    db2> select profile from dba_users where username='SYSTEM';
    PROFILE
    DEFAULT
    db2> select resource_name, resource_type, limit from dba_profiles where profile='DEFAULT';
    RESOURCE_NAME RESOURCE
    LIMIT
    COMPOSITE_LIMIT KERNEL
    UNLIMITED
    SESSIONS_PER_USER KERNEL
    UNLIMITED
    CPU_PER_SESSION KERNEL
    UNLIMITED
    RESOURCE_NAME RESOURCE
    LIMIT
    CPU_PER_CALL KERNEL
    UNLIMITED
    LOGICAL_READS_PER_SESSION KERNEL
    UNLIMITED
    LOGICAL_READS_PER_CALL KERNEL
    UNLIMITED
    RESOURCE_NAME RESOURCE
    LIMIT
    IDLE_TIME KERNEL
    UNLIMITED
    CONNECT_TIME KERNEL
    UNLIMITED
    PRIVATE_SGA KERNEL
    UNLIMITED
    RESOURCE_NAME RESOURCE
    LIMIT
    FAILED_LOGIN_ATTEMPTS PASSWORD
    UNLIMITED
    PASSWORD_LIFE_TIME PASSWORD
    UNLIMITED
    PASSWORD_REUSE_TIME PASSWORD
    UNLIMITED
    RESOURCE_NAME RESOURCE
    LIMIT
    PASSWORD_REUSE_MAX PASSWORD
    UNLIMITED
    PASSWORD_VERIFY_FUNCTION PASSWORD
    SFDC_VERIFY_PWD
    PASSWORD_LOCK_TIME PASSWORD
    UNLIMITED
    RESOURCE_NAME RESOURCE
    LIMIT
    PASSWORD_GRACE_TIME PASSWORD
    UNLIMITED
    16 rows selected.

    I found what the issue was. Does anyone know how to
    look at the Resource limits and there value?Other than the DBA_PROFILES view that you queried in the previous post? Or some other resource limits (i.e. Resource Manager limits?)
    Justin

  • Client SP3 IR4 and Mandatory profile and login script

    Anyone have this working on Windows 7 or is this still broken? saw this was supposed to be fixed in SP2 ir3 but cant get it to work
    Anyone have ideas?
    Thanks!

    jb001,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://forums.novell.com/

  • Oracle Profile Vs Oracle Resource Manager in Oracle 11g

    Hi Friends,
    Whats is the Avantages / Dis advantages of using Oracle Profile and Oracle Resource Manager to limit the oracle resources to oracle users in Oracle 11.2.0.1
    Regards,
    DB

    If you have a single database servicing multiple Services / Applications / Schemas (e.g. a typical database consolidation), you could use Profiles and Resource Manager to place limits on resource usage by Service / Application / Schema. That way, for example, a 32 CPU database server running a single database can still limit the number of cores for each Service / Application / Schema using the Resource Manager.
    Hemant K Chitale

  • Oracle Data Profiling and Data Quality

    Hi,
    How to create metabase for Oracle Data Profiling and Data Quality.Is metabase and repository are same.

    Hi,
    You can create a metabase in the Metabase Manager:
    - Expand Control Admin
    - Click on Metabases
    - in the Metabases window, right-click on the white area and select Add...
    - go through the wizard to create your metabase
    This is documented in the ODQ/ODP tutorial (http://www.oracle.com/technology/products/oracle-data-quality/pdf/oracledq_tutorial.pdf) and in the Documentation (in Metabase Manager or Oracle Data Quality go to Help and then Manuals).
    Thanks,
    Julien

  • Analysis Authorization (Role, Profile and Direct Assignments)

    <b>Analysis Authorization Question:</b>
    1)     In BW 3.x environment, customers have used Role Maintenance Process to assign proper object level security and then assign to the users.
    2)     Most of the places R/3 security team takes over support/administration function of BI Security and they continue to use Role method to assign “Reporting Authorizations” as per the process defined in BW 3.x system.
    3)     Customer sometime have 100 + Roles to have 3.X “Reporting Authorizations”. This is Managed, assigned, approved using role concept.
    <b>
    Migration Options:</b>
    1)     New Analysis Authorization makes process of Role Maintenance like "hierarchy authorizations" of BW 3.x. You have to create Value in other transactions and assign them in Role as a pointer or link object. With Analysis Authorization concept, Actual value of the Object Assigned “Like Company code 1100” not visible in Role Maintenance PFCG transactions. It is only visible in Transaction code RSECADMIN.
    2)     Analysis Migration Tool - RSEC_MIGRATION does not update “ROLES”. It creates or changes “PROFILES”.
    3)     Profiles are assigned to the users and Roles does not reflect any Impact by Analysis Authorization migration.
    <b>Questions</b>
    a)     This means customer need to update all the roles by hand. If they want to use Roles to manage the assignment of the Security to users. Migration Tool does not update Roles, it only updates PROFILES.
    b)     Does any one use direct assignment to Users? It is good business practice?
    c) Is <b>Profiles</b> recommended method of Authorization Maintenance?
    d) Can we run migration tool to create Analysis Authorizations, but not assign to the users as a Profile. But stop at creating Analysis Authorizations. If Customer wants to use Roles maintenance process then, they can do not have delete profile assignments from all users before updating Roles using Analysis Authorizations.
    Just want to check how other folks have done migration that can be supported going forward.
    Pankaj Gupta

    Hey Pankaj,
    In general, assigning the analysis authorization directly to user makes a lot of sense for granular levels of authorization. For example, if you had 3,000 users, 3,000 specific authorization combinations, and 3,000 roles, using roles is a lot of additional overhead. If you had 12 roles and 3,000 users, your role concept makes a lot of sense.
    Therefore, the recommendation is that it varies on what makes the most sense logically. Authorization groups can be created to group analysis authorizations and combine them. Also, you have the ability to generate analysis authorizations using the Content Datastores for this. That is an option as well.
    RSEC_MIGRATION does use profiles as you've stated. If you want, there would be manual work to convert to roles afterwards. In case you haven't seen Marc's presentation on security, it's pretty good and covers how to generate authorizations from the datastore.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/ac7d7c27-0a01-0010-d5a9-9cb9ddcb6bce

  • Background job fails for BDC profile creation and role assignment

    Hi Experts,
    I have created a BDC Function module for Tcode 'PFCG' for profile creation and role assignment, and called this FM in my zprogram. the problem is that when i run this program in foreground it executes succesfully, but if i schedule it in background it fails throwing error in job log 'Role 'Z...' does not contain any active authorizations'. But i have created one more program to create authorization objects which runs before this zprogram.I have also checked the authorization object in 'RSECADMIN', it reflects active. I dont understand whats happening exactly when it runs background.
    Below is the process of job
       1. ZMIS_AUTH_OBJECT_CREATE
           Variant : auth-create
       2. ZMIS_AUTH_ASSIGN_TO_ROLE
           Variant : auth-assign
    The problem is in second program, runs in foreground but fails in background.
    Code which i have written in my second program
    ***BDC for Profile creation and assignment to Roles
        CALL FUNCTION 'ZROLE'
          EXPORTING
           ctu                     = 'X'
           mode                    = p_mode
           UPDATE                  = 'L'
    *   GROUP                   =
    *   USER                    =
    *   KEEP                    =
    *   HOLDDATE                =
           nodata                  = '/'
            agr_name_neu_001        = wa_role-role_name
            text_002                = wa_role-desc
            text_003                = wa_role-desc
            text_004                = wa_role-desc
           value_01_005            = 'T-ML330881'
            h_fval_low_01_006       = wa_role-auth
            profn_007               = lv_profile
            ptext_008               = lv_text1
    * IMPORTING
    *   SUBRC                   =
         TABLES
           messtab                 = temp_message.
    ***Generation of Profile created
    CALL FUNCTION 'PRGN_AUTO_GENERATE_PROFILE_NEW'
         EXPORTING
           activity_group                      = wa_role-role_name
    *     PROFILE_NAME                        =
    *     PROFILE_TEXT                        =
          no_dialog                           = ' '
          rebuild_auth_data                   = ''
          org_levels_with_star                = ' '
          fill_empty_fields_with_star         = 'X'
          template                            = ' '
          check_profgen_tables                = 'X'
          generate_profile                    = 'X'
          authority_check_pfcg                = 'X'
       EXCEPTIONS
         activity_group_does_not_exist       = 1
         activity_group_enqueued             = 2
         profile_name_exists                 = 3
         profile_not_in_namespace            = 4
         no_auth_for_prof_creation           = 5
         no_auth_for_role_change             = 6
         no_auth_for_auth_maint              = 7
         no_auth_for_gen                     = 8
         no_auths                            = 9
         open_auths                          = 10
         too_many_auths                      = 11
         profgen_tables_not_updated          = 12
         error_when_generating_profile       = 13
         OTHERS                              = 14  .
    Experts please help me out its very urgent. your help is appreciated and rewarded. Thanking you in advance.
    Regards,
    Chetan

    Hi Praveen,
    Yeah definately, my requirement is that I have to access of some BI reports to certain users, so contract data will be downlaoded from ECC on application server, need to read that file from application server and for the each contract i ahould create a authorization object, role creation and assigning of role to the user and profile generation and activation.
    To achieve this i have written two programs
    1) ZMIS_AUTH_OBJECT_CREATE- This program will create the Authorization Object using BDC and Role creation Using the BAPI
    "" Creation of Authorization Object
    CALL FUNCTION 'ZAUTHOBJ'
            EXPORTING
             ctu                    = 'X'
             mode                   = p_mode
             UPDATE                 = 'L'
    *   GROUP                  =
    *   USER                   =
    *   KEEP                   =
    *   HOLDDATE               =
             nodata                 = '/'
             g_authname_001         = 'ZDUMMY_MIS'
              g_targetauth_002       = wa_tab-auth
              g_authtxt_003          = wa_tab-short_desc
              g_authtxtmd_004        = wa_tab-med_desc
             marked_04_005          = 'X'
              g_authtxt_006          = wa_tab-short_desc
              g_authtxtmd_007        = wa_tab-med_desc
             tctiobjnm_04_008       = 'ZBUS_UNIT'
              g_authtxt_009          = wa_tab-short_desc
              g_authtxtmd_010        = wa_tab-med_desc
             marked_05_011          = ''
             opt_01_012             = 'EQ'
              low_01_013             = wa_tab-bu
              g_authtxt_014          = wa_tab-short_desc
              g_authtxtmd_015        = wa_tab-med_desc
             marked_04_016          = 'X'
              g_authtxt_017          = wa_tab-short_desc
              g_authtxtmd_018        = wa_tab-med_desc
             tctiobjnm_04_019       = 'ZCONTRCT'
              g_authtxt_020          = wa_tab-short_desc
              g_authtxtmd_021        = wa_tab-med_desc
             marked_05_022          = ''
             opt_01_023             = 'EQ'
              low_01_024             = lv_contract
              g_authtxt_025          = wa_tab-short_desc
              g_authtxtmd_026        = wa_tab-med_desc
              g_authtxt_027          = wa_tab-short_desc
              g_authtxtmd_028        = wa_tab-med_desc
              g_authname_029         = wa_tab-auth
    * IMPORTING
    *   SUBRC                  =
           TABLES
             messtab                = temp_message.
    "" Creation of role
    LOOP AT it_role INTO wa_role.
          CLEAR wa_text.
          wa_text-text = wa_role-desc.
          wa_text-langu = 'E'.
          APPEND wa_text TO it_text.
          wa_jobrole-agr_name = wa_role-role_name.
          wa_parentrole-agr_name = 'ZM_CT_DUMMY_MIS'.
          wa_method-usmethod = 'CHANGE'.
          CALL FUNCTION 'ZBAPI_JOBROLE_CLONE'
            EXPORTING
              jobrole          = wa_jobrole
             parent           = wa_parentrole
             method           = wa_method
           TABLES
    *   RETURN           =
             shorttext     = it_text
    *   LONGTEXT         =
    *   MENU_NODES       =
    *   MENU_TEXTS       =.
        ENDLOOP.
    2) ZMIS_AUTH_ASSIGN_TO_ROLE - This program will generate the profile created assign it to the role.
      ""*BDC for Profile creation and assignment to Roles
        CALL FUNCTION 'ZROLE'
          EXPORTING
           ctu                     = 'X'
           mode                    = p_mode
           UPDATE                  = 'L'
    *   GROUP                   =
    *   USER                    =
    *   KEEP                    =
    *   HOLDDATE                =
           nodata                  = '/'
            agr_name_neu_001        = wa_role-role_name
            text_002                = wa_role-desc
            text_003                = wa_role-desc
            text_004                = wa_role-desc
           value_01_005            = 'T-ML330881'
            h_fval_low_01_006       = wa_role-auth
            profn_007               = lv_profile
            ptext_008               = lv_text1
    * IMPORTING
    *   SUBRC                   =
         TABLES
           messtab                 = temp_message .
       COMMIT WORK AND WAIT.
    ""*Generation of Profile created
      LOOP AT it_role INTO wa_role.
        CALL FUNCTION 'PRGN_AUTO_GENERATE_PROFILE_NEW'
         EXPORTING
           activity_group                      = wa_role-role_name
    *     PROFILE_NAME                        =
    *     PROFILE_TEXT                        =
          no_dialog                           = ' '
          rebuild_auth_data                   = ''
          org_levels_with_star                = ' '
          fill_empty_fields_with_star         = 'X'
          template                            = ' '
          check_profgen_tables                = 'X'
          generate_profile                    = 'X'
          authority_check_pfcg                = 'X'
       EXCEPTIONS
         activity_group_does_not_exist       = 1
         activity_group_enqueued             = 2
         profile_name_exists                 = 3
         profile_not_in_namespace            = 4
         no_auth_for_prof_creation           = 5
         no_auth_for_role_change             = 6
         no_auth_for_auth_maint              = 7
         no_auth_for_gen                     = 8
         no_auths                            = 9
         open_auths                          = 10
         too_many_auths                      = 11
         profgen_tables_not_updated          = 12
         error_when_generating_profile       = 13
         OTHERS                              = 14
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      ENDLOOP.
    For creating authorization objects, role & profile i have created one dummy auth, dummy role & dummy profile respectively.
    i have created dummy objects to copy the roles from dummy object and assign the same to new Auth obj, role & profile.
    Let me know what needs to be done. because these both the programs run perfectly in foreground, but fails in background.
    Regards,
    Chetan

  • Oracle Provider for Membership and Roles not running

    Hi Everyone,
    I ran the ASP.Net Configuration and select the 'Provider' tab.
    When I choose 'Select a single provider for all site management data', only AspNetSqlProvider is shown.
    When I choose 'Select a different provider for each feature (advanced)', I see the Oracle Provider for Membership and Roles. I select both then try to enter 'Security' tab. It will hang then come back with this error:
    "There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store. "
    Any solutions to this...........
    Regards
    Sid

    Thanks for the reply but i stil have the problem...............
    My Current machine.config has this to say in that particular section
    <connectionStrings>
    <add name="LocalSqlServer" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>
    <add name="OraAspNetConString" providerName="Oracle.DataAccess.Client" connectionString=" "/>
    </connectionStrings>
    What can be done.........................in this case
    Thanks

Maybe you are looking for