Grant system views to app user

Hi all,
11.2.0.1
Tha batch process at night encounters lock problem hence their report generations affected and delayed.
I give the operators this command, so that they will kill or stop the process holding the lock:
SELECT TO_CHAR(sysdate,'DD-MON-YYYY HH24:MI:SS')||' User '||s1.username||'@'|| s1.machine||' ( SID= '|| s1.sid||
        ' ) with the statement: '||sqlt2.sql_text||' is blocking the SQL statement on '||s2.username||'@'||s2.machine||
        ' ( SID='||s2.sid||' ) blocked SQL -> '||sqlt1.sql_text AS blocking_status
   FROM Gv$lock l1,Gv$session s1,Gv$lock l2,Gv$session s2,Gv$sql sqlt1,Gv$sql sqlt2
  WHERE s1.sid =l1.sid
    AND s2.sid =l2.sid
    AND sqlt1.sql_id= s2.sql_id
    AND sqlt2.sql_id= s1.prev_sql_id
    AND l1.BLOCK =1
    AND l2.request > 0
    AND l1.id1 = l2.id1
    AND l2.id2 = l2.id2;
But this needs system views and can not run to the app user id.
In connection to the ruling of security audit or without breaching it , do I need to grant select to all the system views being accessed by this script to the app user, then create synonyms to it 1 by 1?
Or is there a one time grant for all system views? So I do not need to type one  by one plus creating the synonyms so that I may not miss any?
Thanks,
petra k.

f55237a7-2c38-4db3-a7a3-1d77256f0730 wrote:
Hi all,
11.2.0.1
Tha batch process at night encounters lock problem hence their report generations halted.
I give the operators this command, so that they will kill or stop the process holding the lock:
SELECT TO_CHAR(sysdate,'DD-MON-YYYY HH24:MI:SS')||' User '||s1.username||'@'|| s1.machine||' ( SID= '|| s1.sid||
        ' ) with the statement: '||sqlt2.sql_text||' is blocking the SQL statement on '||s2.username||'@'||s2.machine||
        ' ( SID='||s2.sid||' ) blocked SQL -> '||sqlt1.sql_text AS blocking_status
   FROM Gv$lock l1,Gv$session s1,Gv$lock l2,Gv$session s2,Gv$sql sqlt1,Gv$sql sqlt2
  WHERE s1.sid =l1.sid
    AND s2.sid =l2.sid
    AND sqlt1.sql_id= s2.sql_id
    AND sqlt2.sql_id= s1.prev_sql_id
    AND l1.BLOCK =1
    AND l2.request > 0
    AND l1.id1 = l2.id1
    AND l2.id2 = l2.id2;
But this needs system views and can not run to the app user id.
In view of the security audit or without breaching it , do I need to grant select to all the system views being accessed by this script to the app user, then create synoyms to it 1 by 1?
Or is there a one time grant for all system views? So I do not need to type one  by one so that I may not miss any?
Thanks,
petra k.
while posted approach will eventually work, it is like making three left turns around the block;
instead of making a single right term.
Place the desired SQL into a procedure (FIND_LOCKER) owned by highly privileged schema; then do as below
GRANT EXECUTE ON FIND_LOCKER TO OPERATOR_USER;

Similar Messages

  • Grant tables/views to other user

    i have 3 user (a,b,c)
    i want to grant select previlege of all the tables/views of user a,b to c
    please help me out which one is the shortest method to doing this

    sukhijank wrote:
    grant select any table to a,b,c;
    select 'grant select on '|| OWNER || '.' ||view_name || ' to ' || '<USERNAME>;' from dba_views;
    This is considered lazy and bad practice. A better practice would be to create a role, make individual grants on the tables and views owned by a and b to the role and then grant the role to c.
    This is assuming c will be just querying the objects and not referencing the objects in its own objects (ie views packages etc). If this is the case then direct grants from a and b to c are needed. Once again, you should only grant the minimum necessary and resist the temptation to do a quick fix and grant system privs to ordinary users.
    Andre

  • How to grant to apps user through system user

    I have created directory by loging system user but when i try to grant to apps user getting error " table or view does not exists'.

    Login to system and try this.
    SELECT *
      FROM dba_directories
    WHERE directory_name = '<your directory name in upper case>';When it shows row then try this
    GRANT READ ON DIRECTORY <dirname> TO apps;  -- optional is write....Cheers,
    Manik.

  • Grants for non-apps user to view APIs in oracle application module browser

    Hi,
    Im trying to make a connection with E-Business Suite using the Oracle Applications Adapter and the Enterprise Service Bus. I follow all the steps for creating the connection pools, connection data sources and connection factories using the standar apps user. After setting up the environment I can drag the oracle applications adapter to a ESB project and choose from all the modules available the especific functionality I want.
    The problem comes when I try to use a user different from apps. When I try to set the connection with other user no E-Business Suite modules are display in the Adapter wizard.
    Are there any specific privileges I should set up to this database user (non-apps) to give him acces to API, XML Gateways, Tables/views,Business Events, etc??.

    Could you let me know the procedure/steps to assign privileges and/or responsibilities for new oracle apps userI understand this is for an application user.
    when I am trying to import a journalAgain, you have to run this as an application user.
    Same import is working fine with default Oracle applications 11i "APPS" user.APPS is a database user (NOT an application user). So, the Application user you want to create and assign him responsibilities has nothing to do with the database user. If you assign the same responsibilities which the other user has (the one which you use to import journals) to the new application user, then you should be able to do the task successfully.

  • Discoverer Viewer/Plus does not work with Custom EUL owned by APPS user

    I am facing a unique issue with one of my customers. They have a custom EUL named XX_EUL_US and this does not allow connecting through discoverer viewer or discoverer plus.
    I have worked with custom EULS before at other customers and this was never the case. I am being told that this issue is happening as the EUL owner is APPS instead of some other user. Is this the case? Can discoverer viewer not be used with EULs owned by apps user?
    Please not that the Default EUL in ICX profiles is set to this EUL and no other EUL profiles are set.
    Appreciate any thoughts on this.

    Hi,
    I am not sure what you mean when you say you have a "custom EUL named XX_EUL_US". The EUL table should be created in a schema named XX_EUL_US. This will then be the EUL owner. You will then need to connect to Discoverer Administrator as the EUL owner and grant privileges to Apps users and/or responsibilities.
    The user should then be able to connect to Discoverer Plus/View using their apps username, responsibility and password.
    To be able to connect directly from an apps menu you need to have the ICX parameters set correctly. The ICX: Discoverer Default End User Layer Schema Prefix should be set to XX_EUL (without the _US). The ICX: Discoverer End User Layer Language Override should be set to US or not set at all.
    Rod West

  • Grant permission to all objects of a schema to apps user(Oracle 10g)

    Dear Fiiends,
    I would like to grant permission on all objects of a particular schema to apps user(Oracle 10g).How do I do it?
    (ex)grant all on <schemaname>.<objectname> to apps with grant option.
    This is the permission i want to give but i can't do it for all objects one by one so how do i do it in a single command.
    Regards,
    Arun

    You can't do it in a single command. You have to give object-by-object privileges (you could grant something like SELECT ANY TABLE, but that applies to every schema in the database and is generally a rather bad idea). You can, however, use a bit of dynamic SQL to do the job, i.e.
    FOR x IN (SELECT * FROM user_tables)
    LOOP
      EXECUTE IMMEDIATE 'GRANT ALL ON schema_name.' || x.table_name || ' TO apps WITH GRANT OPTION';
    END LOOP;You can do the same with other object types, hit DBA_TABLES rather than USER_TABLES if you don't want to run this as the object owner, etc.
    Justin

  • Which view I can query to get the granted objects privilege to a user?

    Hi all,
    which view I can query to get the granted objects privilege to a user?
    for example:
    grant execute on accounting.get_name to scott;
    Which view has above object granted information?
    Thanks

    SQL> select * FROM all_tab_privs where grantor = upper('accounting');
    no rows selected

  • Grant read only to one user

    Hello everyone,
    I'd gone through unlimited forums and blogs but not got any proper solution and is getting confused as I'm not good in sql.
    I had created a db user.
    I need grant it following privileges same as read only apps user:-
    (1) It can only select all tables except dba related tables, views etc.
    (2) It can only select any table of any user
    (3) It can only select any function, procedures and every custom objects.
    (4) it can select any table without prefixing apps. before table.
    Step by step instructions required with sql statements.

    Hi,
    Richa wrote:
    Hello everyone,
    I'd gone through unlimited forums and blogs but not got any proper solution and is getting confused as I'm not good in sql.
    I had created a db user.
    I need grant it following privileges same as read only apps user:-
    (1) It can only select all tables except dba related tables, views etc.
    (2) It can only select any table of any userThe SELECT ANY TABLE system privilege enables a user to select from any table including dba related tables and views. If you want to exclude them, then you have to give SELECT privileges on all the other tables, one at a time, and remember to do it for new tables as they are created.
    (3) It can only select any function, procedures and every custom objects.The EXECUTE ANY PROCEDURE system privilege does that.
    (4) it can select any table without prefixing apps. before table.Don't be sill. That's like saying "it can select from any table without giving the table name", or "without typing anything".
    You might reduce how often you have to qualify the table name with the schema name by using "ALTER SESSION SET CURRENT_SCHEMA = schema_name;".
    Step by step instructions required with sql statements.To give the privileges mentioned in (1), (2) and (3) to user FUBAR, log in as SYSTEM and say
    GRANT  SELECT ANY TABLE          TO fubar;
    GRANT  EXECUTE ANY PROCEDURE     TO fubar;

  • Creating a materialized view for another user

    I don't seem to find the correct setup for this....
    With the user "dummy"
    CREATE MATERIALIZED VIEW dummy.thetable BUILD IMMEDIATE REFRESH FORCE ON DEMAND AS select * from real.thetable;
    And the materialized view is created ok.
    With a DBA user:
    CREATE MATERIALIZED VIEW dummy.thetable BUILD IMMEDIATE REFRESH FORCE ON DEMAND AS select * from real.thetable;
    ORA-01031: insufficient privileges
    I don't want to be switching back and forth from the user to create materialized views, am I missing a permission here? DBA of course has create any materialized view

    From the SQL Reference Guide:
    To create a materialized view in another user&#8217;s schema:
    - You must have the CREATE ANY MATERIALIZED VIEW system privilege.
    - The owner of the materialized view must have the CREATE TABLE system privilege. The owner must also have access to any master tables of the materialized view that the schema owner does not own (for example, if the master tables are on a remote database), and to any materialized view logs defined on those master tables, either through a SELECT object privilege on each of the tables or through the SELECT ANY TABLE system privilege.
    I suspect that, if you first GRANT CREATE TABLE TO DUMMY, you will be able to create the MV.

  • Required Oracle FND tables for Discoverer Install (Oracle App user)

    Hi does anyone know of set documentation or, via SQL Trace, which existing tables Discoverer looks for when setting up an EUL? For instance, our install requires you select the Oracle Apps User Schema and put in the password for that schema where your FND tables reside.
    Assuming some are missing in our current setup, what would be required in order for Discoverer to work in conjunction with the Oracle applications roles and responsibilities, etc.
    I found this list in Discoverer documentation and confirmed I know have that setup correctly with proper grants, etc.. The EUL is created but does return an error of "Table or View does not Exist" which can be passed over and you can proceed into the EUL - but there is an error upon logging into EUL.
    grant select on FND_USER to &EULOWNER
    grant select on FND_APPLICATION to &EULOWNER
    grant select on FND_USER_RESPONSIBILITY to &EULOWNER
    grant select on FND_RESPONSIBILITY_VL to &EULOWNER
    grant select on FND_ORACLE_USERID to &EULOWNER
    grant select on FND_DATA_GROUP_UNITS to &EULOWNER
    This is Discoverer 10g and Oracle 10g database.
    Thanks,
    Mike

    Rod,
    I have confirmed that the Discoverer Administrator Responsibility has Administration, Desktop & Plus privelages.
    Furthermore, the account I am trying to login as - DSCADMIN has those permissions and is assigned that responsibility as well.
    It should be noted that when logging into the EUL as the DSCADMIN account, it prompts me to create a new EUL as one does not exist....however under the EUL ADMIN account (where the EUL was created), it recognizes the EUL since it is the owner.
    Am I missing something further - I've been through the documentation several times and can't figure this out - I have continually made progress but then hit a speed bump each time.
    It should also be noted that DSCADMIN is a database user schema account and also an Apps user as well - but this is how it was setup in our old enviornment so I wouldn't think this would make a difference.

  • Created Migration Repository by accident as Apps User! Can I undo it?

    I am a very stupid fool, and I am scared that I might have done something to one of our clones on PROD via something I just did in SQL Developer. I am too much of a coward to mention it to one of our DBAs as violence may result from my admission!
    I was following this guide:
    http://www.oracle.com/technology/obe/11gr1_db/appdev/msamigrate/msamigrate.htm
    In case you need it, this is the result from "select * from v$version":
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE     10.2.0.4.0     Production
    TNS for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Productio
    NLSRTL Version 10.2.0.4.0 - Production
    Anyway, I got to this bit, while connected to the DB as apps user (yes, stupid I know).
    On the web guide, I got to this step:
    Creating the Migration Repository > 3 > Now you can create the repository in this users connection. Right click on the omwbrep_orcl connection and select Associate Migration Repository
    As soon as I clicked it, and it started churning away, I realised I was way, way, way out of my depth, creating stuff on the DB as an apps user (aaaaah, I am a fool).
    I cancelled the operation, and was told that something had been created.
    I am now really worried I've done something really bad on the database, but I have no idea what I just did, how to check what I did, and if possible, how to undo it.
    Any advice much appreciated, and my apologies for being so stupid, and doing stuff as an Apps user without knowing what I was doing.
    Thanks

    Aaah. I just read this in the JDeveloper help doc:
    Delete or Truncate Repository
    The Delete Repository dialog box is displayed if you click Migration, then Repository Management, then Delete Repository; the Truncate Repository dialog box is displayed if you click Migration, then Repository Management, then Truncate Repository.
    Deleting a repository removes all schema objects that are used for the migration repository. Truncating a repository deletes all data from schema objects that are used for the migration repository, but does not delete the schema objects themselves, effectively leaving you with an empty repository.
    Repository: Name of the database connection in which to delete or truncate the migration repository.
    I therefore went to Migration Repository > Delete Migration Repository, thinking I would be able to confirm / view anything first, but it just went ahead and deleted a load of stuff.
    Can anyone advise please if I have just done something even more stupid than creating a repository in the first place, and then cancelling the operating part way through?
    Good grief, I am so stupid :(

  • Using different configured views for different user group in crm2007

    Hello SAP Expert,
    Want to clarify if the BADI (Configuration Access Determination BADI ; BSP_DLC_ACCESS_ENHANCEMENT)  is used as design time or Run time. By looking the help of this BADI it says "This Business Add-In (BAdI) is used in the UI Configuration Tool (CRM-FRW-CON) component." Looks like this is at configuration time not at run time.
    The actual requirement is that for a set of users which work on a particular department, we want to have some extra information on 2 views and rest of the views they would be using same as entire organization. We are inclined towards using config role rather than zviews. If we were to use zviews then it would not be a difficult one.
    We were thinking of a mechanism to show the configured view based on user's Business Role at runtime. e.g. we have 2 roles A and B. Role A user have only 2 views specific to them and all other views they use same as Role B. We do not want to use ZView rather use Role Config Key to distinguish the views. What I was thinking that we should be able to create these 2 views with Config Role A and all  views (including these 2) with Config Role B. On Business Role A and Business Role B both, We will assign Config Role "B". but at runtime system should determine if the Business Role is A and Component is CMP1 then use the view V1 with Config Role A not the default view with config role B. (we can maintain that information in a Z table). This is not based on runtime profile but to use configured view at runtime.
    Any thoughts/ help really appreciated.
    Best regards,

    Hi Amithab,
    you can use badi CRM_BP_UIU_VIEW_CONFIG  of enhancement spot CRM_UIU_BP_ENHANCEMENT for your requirements. Please read the badi documentation because you need also a implementation of badi CRM_BP_UIU_CONFIG_CALLBACK (same spot). SAP considers badi CRM_BP_UIU_VIEW_CONFIG only for use at dynamically loading different configuartions of view details for business partners or contact persons at runtime. But you can use your badi implementation also for other views. You have to redefine method DO_CONFIG_DETERMINATION in your views. And call your badi from there. For this copy&paste the logic of DO_CONFIG_DETERMINATION of bp details to the views you have to load dynamically at runtime.
    We have used this approach for access controll and granting special access to views dependent on different employee functions.
    Best regards
    Michael

  • Uable to login through APPS user

    hi,
    after 10 days of i started my system Oracle 11i R12 on Linux EL.
    when try to login through APPS user it is rejecting.
    i tryied to view the user name by going through sqlplus.
    select username from dba_users where user name='APPS';
    it is there , account is not expired, nor it is locked.
    then tryied to alter user passowrd with same as APPS.
    then try to login in login window. even unable to login.
    But i am able to login in via OPERATIONS user.
    by loging OPERATIONS there i went to SYSTEM ADMINISTRATOR - > SECURITY -> USERS- >DEFINE, THERE I TRY TO FINE USER NAME WITH APPS , THERE IS NO APPS BUT THERE IS APPSADMIN and APPSMGR.
    WHAT IS THE PROBLEM. WHY I CAN'T ABLE TO LOGIN THROUGH APPS USER?
    CAN ANY ONE HEMP ME.

    Thanks for reply.
    Actully i am facing one problem as i am learing R12 , i have study materials. 11i. i want to enter Customer and address. as study materials sujjesting
    1 ) Responsibility = Receivables, Vision Operations.
    2) Navigate to the Custromers window for quick Entry.
    (N) Customers > Quick.
    I can't find Quick option, i loged through Operations user then went to      Receivables, Vision Operations (USA)->Customers->Customers .
    I can't fine any "Quick" and any button to fine.
    that's why i thought that it may have apps user previlege.

  • How can I view my app purchases when it keeps sending me to iTunes which does not work on my iPad and yet shows activity?

    I Just received a receipt from the App Store. It was for opening one section of a game when I had already bought the full game. I went to the bottom to check on my purchases. It took me to the App Store for view history. I entered my Apple ID and then it switched me to ITune which doesn't work on my iPad! And yet it showed activity in ITunes. A few months ago I had a purchase show up that I didn't make. I contacted the developers because I love their new products so much and wanted to see if it might be a bug in their system because the confusion was within their games only. I would REALLY like to view my APP STORE history but it only lets me get to the part where you can open the apps that are showing. Is their a way to view my full APP history, with dates, money spent etc? I would love to know how to get there. Thank you, Diane Maya

    Pay attention to the numerous posts on this tonight.....try again tomorrow.
    GB

  • Any way to create a form that allows users to create profiles that can be viewed by other users?

    I'm working on a social media site, and I would like to give users the ability to create simple profiles that can be viewed by other users. Is there any way I can do this in Muse CC? Any good resource websites with code I can embed?

    Muse form widgets can only email the form submission data to a specified email address for non-BC hosting at this time. For BC with webCommerce plan and above, this should be possible with the help of webApps however, that is an advanced topic and would require some knowledge of CMS and HTML to implement <http://helpx.adobe.com/business-catalyst/partner/web-apps.html>.
    Also this will not be possible with Muse on its own as Muse outputs static pages only and what you are looking for requires backend technology to work (that BC offers).
    Thanks,
    Vinayak

Maybe you are looking for