App user

Im trying to use app_user within a process but so far with no succsess, below is the code, any help appreciated.
SELECT incident_tmp.report_id,
incident_tmp.report_type,
incident_tmp.report_no,
actions_tmp.report_no,
actions_tmp.due_date,
actions_tmp.progress,
actions_tmp.last_update
FROM incident_tmp, actions_tmp
WHERE incident_tmp.report_id = actions_tmp.report_id
and actions_tmp.progress < 100
AND UPPER(SUBSTR(actions_tmp.actionee,10)) = v('APP_USER')
Marco

it would be best-practice to only use bind_variables in you're SQL (because of possible sql-injection ed.) in this case it is not that criticl, ince you are using an apex derived item APP_USER. But in other cases, let say P1_WHERE, which lets the user give the input for the item P1_WHERE. it is better not to just use the substitition &P1_WHERE. notation because of possible injections.
In this case i would use:
AND UPPER(SUBSTR(actions_tmp.actionee,10)) = :APP_USER
instead of v('APP_USER'). This is for performance reasons, since using the v-function, will make the sql-engine have to switch to the pl/sql engine, and because of no caching in de v-function, this has to be done for every row!
therefor USE BIND_VARIABLES!

Similar Messages

  • 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

  • Why an insert journal concurrent works for one app user and not for other?

    We have two app users. User A and User B. They have same responsibilities and grants over same functions and menus. When they run  a custom insert journal concurrent, only user A can execute it successfully.
    User B uses same parameters and data  as User A, but when User B  runs concurrent, it  always  fails
    What is the difference between this users?
    How we can check this difference?

    Hi,
    did you check user specific profile option settings as well?
    In addition, it would be helpful to have some more input
    regarding the error which is raised when user B runs the
    concurrent (concurrent log file output).
    Regards

  • Pro Apps User licence cannot be used in Boot Camp?

    I use Logic Studio and so I have a "Pro Apps User" license that enables QT Pro in OSX where I have Logic installed, but there's no registration code (it says "Automatic"). However I also use Boot Camp to run XP on my MBP and I need to use QTPro in XP: must I buy a separate license for running QT Pro under XP with BootCamp? Or is there some way to use this license for both? In this context, there's only one copy of QT Pro being used at any one time.
    Thanks.

    To my understanding, since QuickTime Pro has separate license keys for OSX and for Windows, the "Pro Apps" is for OSX only (since Logic Studio only runs in OSX). So, yes, to use Pro on the Windows partition would be a separate license.

  • 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.

  • 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.

  • 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;

  • 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 :(

  • Create a new DB user like APPS user

    Hi all,
    I want to create a database user that have [select] and [execute] privilages for all tables under all schemas in eBusiness Suite database instance.
    My aim, is to create a safe user that can execute any query like APPS user do, but he can not update\insert\delete like APPS user do. Because APPS user should be limited to a few DBAs only, while other IT developers need to select or exexte programs only.
    the problem come from that not all eBusiness Suite DB objects under one schema, they are distributed under many schemas like APPS, HR, ..ect.
    Any advice on how to create such user pls?
    Regards
    Bas.

    Check the following thread:
    Create read only user like apps
    create read only  user like apps

  • 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

  • How to Link AD user with Apps user

    Hi,
    We are in process of authenticating EBusiness suite users against their Active Directory credentials.
    We did the following:
    1. Import Apps users into OID
    2. Import AD users into OID
    We dont know how to link AD account with EBz account. Are we on right track?
    Please let me know if there is any document which explains the linking process.

    FYI
    I sucessfully authetnicated the AD user in OID against AD password using external auth.
    Do I really need to import ebusiness apps users into OID and then establish a link? Pls help me explain the process.

  • PDF download on website limited to app users

    Dear All,
    We are creating an iPhone tour app in Dreamweaver CS6 and want to post additional material on our website in PDF format that can be downloaded by people who purchase our iPhone app.  Is there any way to limit a PDF download on a Dreamweaver CS6 website to only people who enter a code or in some way separate themselves from others who might want to download the PDF files?   In other words, I don't want everyone to be able to download the PDF files, just those who have paid for the iPhone app and are entitled to the additional material without charge. How can I go about restricting the PDF download to those who have already paid for the app? Thanks.
    Small Town Gal

    Dear Ken,
    Thanks for your reply.  You have made me think of something.  Perhaps I should not use our regular website but create another website that was restricted only to iPhone app users with the link to the website visible only within the iPhone app.  Would creating a Facebook page offer the same download capabilities with a "like" function by the app user?
    I could also create something in Muse or Business Catalyst?
    Small Town Gal

  • Export/Import with apps user or EUL schema owner ?

    Hi,
    I am working with a migration plan to move Discoverer 9 to Discoverer 10.
    It is an apps mode EUL, where business areas and workbooks have been granted to Apps Users & Responsibilities.
    Customer has only maintained the EUL with the database user of the EUL owner.
    What is recommended for exporting/importing the EUL from 9 to 10.
    To connect to Administrator as the EUL owner, or to connect as an apps user ( SYSADMIN ? )
    Will all the grants to apps users/responsibilities work when importing as schema owner ?
    I tried to create a entire EUL export file connected as EUL owner, and for the workbooks the export log contained :
    1234#.Workbook name1
    2345#.Workbook name 2
    1234 is the user_id for the workbook owner ( All workbooks have been created by an apps user )
    Will the import process manage to convert this user_id, and set the correct owner for the imported workbooks ?
    ( I will use the option Only take ownership if original owner not found )
    I am not sure, but I think I have seen the following syntax in other projects when exporting an apps mode EUL
    SYSADMIN.Workbook name 1
    SYSADMIN.Workbook name 2

    >
    What is recommended for exporting/importing the EUL from 9 to 10.
    To connect to Administrator as the EUL owner, or to connect as an apps user ( SYSADMIN ? )
    Will all the grants to apps users/responsibilities work when importing as schema owner ?
    Hi,
    The best that i know is that you should export using the DB user so that you will not have problem with workbooks or BA that you are not granted for (or any other grants or privileges).
    The import should be done using the APPS user (the super user you use).
    That way if you import a workbook that the owner will not be found then you will get the ownership and you can after migration deal with it.
    If you'll do that with the DB (EUL owner) user after migration you will not have access to those workbooks.
    Any way about the workbooks i suggest you'll save them as DIS files for cases that the import of the workbooks or the owner association for them fail.

  • Session holding lock..need to find the apps user holding that SID

    Hello
    in v$lock
    a session is blocking another session..Sid is displayed there
    now i can kill that session if it is holding a lock for too long and i do so too
    But i want to know which apps user was it..there more than 500 users that connect from EBS r12..how would i know whichh user that sid belongs to
    so basically i need to know the apps user holding that SID which is blocking the other session
    Please advice
    Thanks

    Refer to the following links/notes:
    [Which FND_USER is locking that table |http://oracle.anilpassi.com/which-fnd-user-is-locking-that-table-2.html]
    Note: 180683.1 - What is the Supported Method for Releasing a Oracle Application User's Lock on a Table?
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=180683.1
    Note: 109061.1 - How to Check Whether an AOL Table is Locked
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=109061.1
    Note: 185762.1 - Script: How To Identify The apps User Using The O/S PID For Forms Users In 11i
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=185762.1

  • Need to Apex App user login last login details

    Hi All.
    how will get the Apex App user login details ? is it have any table or please suggest me on this...

    Not sure what is your exact requirement, but did you look at "Monitor Activity" under "Administration" (you should be an Administrator to the workspace)?

  • Unable to connect to database as apps user

    ORA-12203: TNS:unable to connect to destination .
    when iam trying to connect to database as apps user iam getting this error..
    as sysdba i could connect...database listener is up and application services are also up....but couldnt connect to database as apps user? how to resolve this issue.

    ORA-12203: TNS:unable to connect to destination .
    when iam trying to connect to database as apps user iam getting this error..What is your EBS release? OS? DB version?
    as sysdba i could connect...database listener is up and application services are also up....but couldnt connect to database as apps user? how to resolve this issue.Are you trying to connect remotely? Can you connect from the application tier node as apps user?
    Please run Autoconfig on both tier nodes, bounce the services and check then.
    Thanks,
    Hussein

Maybe you are looking for

  • Cannot create target element /Invoice. Values missing in queue context.

    Hi Experts, I am working on Idoc to File scenario using SAP PI 7.1. In this scenario I am mapping Invoic02 Idoc with Invoice xsd. I am able to test the mapping in ESR with status as success. In ID Tools --> Test Configuration I used the same payload

  • How do I get the file date...

    Hi, In Oracle form, after I upload the file to server from client machine using FileUploader90 or WebUtil, beyond the file name and directory, I would like to get the file date also. Does anyone know how? Thanks, Jess

  • Itunes wont burn cd

    Can somebody please help? I've selected the songs to burn onto a blank cd. The burn settings box comes up. I select my options, click burn, it shows checking play list and then nothing happens. Any help is appreciated! Thanks in advance

  • Latitude/Longitude on Oracle Locator

    Hi, I'm using Oracle Locator I'm trying to select latitude and longitude through this query SELECT t.X AS LATITUDE, t.Y AS LONGITUDE FROM geo.cultura c, TABLE(SDO_UTIL.GETVERTICES(c.geometry)) t; but the numbers are coming from different 90 and -90 A

  • Vista/Elements 5.0 RAW will not open

    I installed the Raw plug in 4.3.1 on XP and it worked fine. On a new computer with Vista I installed 5.02 to make Elements 5.0 work with Vista. Everything works but my ability to use/import RAW files from my Canon Rebel XTi which worked fine with XP.