Passing SSO user id to database?

I would like to run my 10g forms in SSO mode and I know that I can get the SSO user id using the get_application_property built-in. How do I pass this user id to the database to be used in a database trigger.

Thanks Frank,
I suspected I would have to do something like that, but I have limited experience with calling stored procedures from forms. Would every form need to do this or could I just call the stored procedure and keep it in a variable for the duration of the session? We're probably going to have a form that acts as a menu and calls all other forms.

Similar Messages

  • How to check SSO user from database?

    Hi:
    I've posted this topic in Forms forum:
    How to check SSO user from database?
    then as I've been told, it's better to post it here, so ...... here is the question:
    I'm writing a "before delete trigger" to insert into log table before delete. Is there a way that I know from database the current SSO user when SSO users share one database user?
    Just like in Oracle Application Express there is v('APP_USER') to know the current user.
    Saad,

    End users are manipulating data through Oracle Forms(and SSO through portal) and the thing I need is to trace the SSO username from database without modifying forms, I mean purely from database taking into consideration that SSO users are sharing one database user. Is it possible?
    Saad,

  • How to Get  the SSO Logged user information in database trigger

    I need to track which SSO user is inserting data into a table , so how can i get the information of that user in a database trigger on that table
    thanks

    Try using portal30.wwctx_api.get_user returns a varchar2 (PUBLIC) or the Username that is logged in
    I need to track which SSO user is inserting data into a table , so how can i get the information of that user in a database trigger on that table
    thanks

  • How to Identify database sessions used by forms sso user sessions?

    Hi:
    When using forms with SSO, all database sessions are opened by the same OSUSER (usually oracle), from the same machine (usually the forms server) and by the same program (usually [email protected] [TNS V1-V3]).
    I need a way to identify the database session (v$session) that is beeing used by a specific SSO user. By using SSO, we say implicitly that all users using that SSO resource will be connect to the database by a specific database user.
    So, what can I do to identify the database session that a specific forms user is using ?
    Thanks
    Joao Oliveira

    You could try something like the following in a when new form instance trigger:
    declare
    authenticated_username varchar2(30);
    begin
    authenticated_username := get_application_property(`sso_userid');
    DBMS_APPLICATION_INFO.SET_CLIENT_INFO (
    client_info IN VARCHAR2);
    end;
    This will store the sso userid in the client_info field of v$session.
    I hope this works for you.
    Randy McGregor

  • How to get the SSO user from PL/SQL with Windows native authen

    I connect to a 10g daabase using SSO through Windows Native Authentication wher the OID user mapps to a single Database user.
    I need to get the SSO user from pl/sql
    My fornt end is Portal & Forms

    Hmm, I see.
    Well your problem boils down to being in the database and needing to have access to web environment variables. The SSO sets specific variables in the environment but your stored procedure is not privy to them.
    Now having said that, note that the mod_plsql Web Toolkit has a utility for accessing cgi variables. For instance,
    owa_util.get_cgi_env('Osso-User-Dn')
    If your web application cannot capture the SSO info and pass it to the stored proc in a parameter, OWA may be the only way.
    Check out the Single Sign-On Developers Guide, specifically the part about developing statically protected PLSQL applications.
    Hope this helps.
    regards,
    tt

  • How to authenticate SSO dynamically to the database?

    I want to know how can i auth users with SSO dynamically. For instance I want to know if it's possible to specify that SSO/LDAP user A connects with database user X1 and SSO/LDAP user B connect to the database with database user Y2. I want to run Forms with SSO users but i want that DB connection should not be static.
    Is it possible ?

    If you're trying to do this in a SELECT, you can use the LIKE verb in your WHERE clause.
    Here's an Example
      SELECT obj_name FROM tadir
        INTO prog
        WHERE pgmid = 'R3TR'
          AND object = 'PROG'
          AND obj_name LIKE 'Z%'.
    In this case it will select every row that obj_name starts with Z. 
    If you wanted to find every row that the field obj_name contains say... 'WIN'  you use LIKE '%WIN%'.
    Edited by: Paul Chapman on Apr 22, 2008 12:32 PM

  • Audit SSO User

    How can I audit a SSO USER from login in OID to connect on a database i.e. which SSO USER is connected with the database?
    Michael

    Take a look at metalink note 260840.1 and think this will answer some of your questions. There is a script in this note that similates how SSO connects to OID to validate a user/password.
    In summary SSO connects to OID using the DN orclApplicationCommonName=ORASSO_SSOSERVER,cn=SSO,cn=Products,cn=OracleContext

  • How to pass dynamic values to JDBC Database adapter in PureSQL operation?

    I want to fetch the records from the table via JDBC database adapter with the criteria but I should not hardcode the values inside my query. I am using Execute by PureSQL operation. Values might change in future and it is the reason I should not hardcode the values and instead I should pass it dynamically.
    This is my query:
    SELECT FROM Table0 t0, Table1 t1 WHERE t0.Field1= 'ABC' AND t0.Field2= 'DEF' AND t0.Field3 = 'CBA' AND t1.FLAG IS NULL AND t1.Field1 = t0.Field4*
    The values 'ABC', 'DEF', 'CBA', 'NULL' are not fixed and it can be changed. Hence, I need to pass the values for these fields dynamically. What must be passed in the query and where to pass the User Defined Values during the run time.
    Please can anyone suggest how to resolve this. I am using SOA 11g.
    Thanks in advance.

    Hi,
    Ensure that you use the Adapter Configuration Wizard to do the query modification suggested by Arik. This will allow the schema for the DB Adapter getting created automatically. Also revisit this schema to assure that the data types of the bind parameters (parameters with #) have been correctly populated in the schema.
    You can get some help from this too although this doesn't fully match your use-case.
    Regards,
    Neeraj Sehgal

  • How to pass dynamic parameter to a database function in OBIEE

    Hi,
    I have a requirement like this. I have to create one report in OBIEE which was in Discoverer. Now in discoverer report there are some calculated item in the worksheet based on database pkg.functions. The parameter which user gives at run time that parameters are then passed to the discoverer calculated items dynamically. But I am not able to do this in OBIEE answers.
    Can anyone tell me step by step how I can able to pass the user selected parameter values in OBIEE answer level.
    The example:
    GET_COMM_VALUE_PTD("AFE Cost & Commitment".Afe Id,:"Period Name(AFE)","AFE Cost & Commitment".Data Sel,"AFE Cost & Commitment".Org Id)
    GET_COMM_VALUE_PTD --- Function database
    ("AFE Cost & Commitment".Afe Id,:"Period Name(AFE)","AFE Cost & Commitment".Data Sel,"AFE Cost & Commitment".Org Id --- Parameters... :"Period Name(AFE)" is the dynamic parameter selected run time by user.
    Please help.
    Thanks
    Titas

    Hi,
    I already did that. But the existing discoverer re value report is showing correct value but the OBIEE report with EVALUATE function shows incorrect value.
    The requirement is to create a OBIEE Dashboard from a Discoverer existing report. Now in discoverer report theere are several calculated items in worksheet level where database custom function is used and user selected parameter value is passed run time in that function. But when that is created in OBIEE with EVALUATE function in RPD, the report shows incorrect data. Could not understand how to pass the parameter value runtime.
    Below is the discoverer 'Show SQL' query and EVALUATE function syntax which has been used.
    SELECT APPS.XXBG_PL_PROJ_ANALYSIS_AFE_PKG.GET_COMM_VALUE_PTD(XXBG_PL_PROJ_AFE_V.AFE_ID,
    :"Period Name(AFE)",
    XXBG_PL_PROJ_AFE_V.DATA_SEL,
    XXBG_PL_PROJ_AFE_V.ORG_ID),
    XXBG_PL_PROJ_AFE_V.AFE_DESC,
    XXBG_PL_PROJ_AFE_V.AFE_NUMBER,
    XXBG_PL_PROJ_AFE_V.APPROVED_AFE_AMOUNT
    FROM APPS.PA_PERIODS_ALL PA_PERIODS_ALL,
    APPS.XXBG_PL_PROJ_AFE_V XXBG_PL_PROJ_AFE_V
    WHERE ((XXBG_PL_PROJ_AFE_V.ORG_ID = PA_PERIODS_ALL.ORG_ID))
    AND (XXBG_PL_PROJ_AFE_V.DATA_SEL = :"Data Selection(AFE)")
    AND (PA_PERIODS_ALL.PERIOD_NAME = :"Period Name(AFE)")
    AND (XXBG_PL_PROJ_AFE_V.AFE_NUMBER = :"AFE Number(AFE)")
    AND (XXBG_PL_PROJ_AFE_V.OPERATING_UNIT = :"Operating Unit(AFE)")
    The EVALUATE function syntax is as below:
    EVALUATE('XXBG_PL_PROJ_ANALYSIS_AFE_PKG.GET_COMM_VALUE_PTD(%1,%2,%3,%4)' AS FLOAT , "BG PL Project Analysis Report_1"."AFE Cost & Commitment"."AFE Cost & Commitment.Afe Id", "BG PL Project Analysis Report_1"."Periods 1"."Periods 1.Period Name", "BG PL Project Analysis Report_1"."AFE Cost & Commitment"."AFE Cost & Commitment.Data Sel", "BG PL Project Analysis Report_1"."AFE Cost & Commitment"."AFE Cost & Commitment.Org Id")
    The PERIOD needs to be passed at run time which user will select.
    Please help to solve the issue.

  • Issue in passing Oracle User Defined Types to PL SQL from Websphere Applica

    HI,
    I am facing an issue when trying to pass Oracle collection object(User Defined Types) from Java to PL SQL. The issue happens inside J2EE application which is running inside Websphere Application Server 6.x. My database is Oracle 10g and i am using ojdbc1.4.jar as thin driver.
    The issue is that when i pass the Oracle Object from java side, the attribute values of the collection objects at the Oracle PL SQL side is coming as empty. I have tried the same java code in a standalone application and it works fine. The issue happens only when the application is running inside WAS.
    Anybody has any idea how to pass Oracle User Defined Types from WAS 6.x server to Oracle PL SQL?

    Andy Bowes wrote:
    Hi
    I am using WebLogic 8.14 & Oracle 9i with thin JDBC driver.
    Our application needs to perform the same DB operation for every item in a Java Collection. I cannot acheive the required performance using the standard Prepare & Execute loop and so I am looking to push the whole collection to Oracle in a single invocation of a Stored Procedure and then loop on the database.
    Summary of Approach:
    In the Oracle database, we have defined a Object Type :
    CREATE OR REPLACE
    TYPE MYTYPE AS OBJECT
    TxnId VARCHAR2(40),
    Target VARCHAR2(20),
    Source VARCHAR2(20),
    Param1 VARCHAR2(2048),
    Param2 VARCHAR2(2048),
    Param3 VARCHAR2(2048),
    Param4 VARCHAR2(2048),
    Param5 VARCHAR2(2048),
    and we have defined a collection of these as:
    CREATE OR REPLACE
    TYPE MYTYPE_COLLECTION AS VARRAY (100) OF MYTYPE
    There is a stored procedure which takes one of these collections as an input parameter and I need to invoke these from within my code.
    I am having major problems when I attempt to get the ArrayDescriptor etc to allow me to create an Array to pass to the stored procedure. I think this is because the underlying Oracle connection is wrapped by WebLogic.
    Has anyone managed to pass an array to an Oracle Stored procedure on a pooled DB connection?
    Thanks
    AndyHi. Here's what I suggest: First please get the JDBC you want to work in a
    small standalone program that uses the Oracle thin driver directly. Once
    that works, show me the JDBC code, and I will see what translation if
    any is needed to make it work with WLS. Will your code be running in
    WebLogic, or in an external client talking to WebLogic?
    Also, have you tried the executeBatch() methods to see if you can
    get the performance you want via batches?
    Joe

  • Reset SAP* user in DB2 database

    hi gurus,
    Can anyone give me instructions or commands on how to reset sap* password in the database level? we are using db2 ver. 9 database. I am familiar how it is being done in oracle but one of our client is using DB2 and there, we encountered the problem.
    Pls. advise.
    Best regards,
    Jay

    Hi
    First make sure that the parameter
    <b>login/no_automatic_user_sapstar is set to 0 (false)</b>
    otherwise you will not be able to login using SAP* by the default password "<b>pass</b>". So make this sure before carrying out the following activity:
    Log on to the database with userid <b>ora<sid></b> and
    execute the following SQL:
    <b>delete from sap<SID>.usr02 where bname='sap*' and mandt='XXX';</b>
    <b>commit;</b>
    Once this is done check the entry again in the table usr02.
    Now try to log into the corresopnding client with user "<b>sap*</b>" and password "<b>pass</b>".
    This is how you can reset SAP* user at the database level.
    Regards,
    Sumit

  • SSO Userid required from database package/trigger

    I've done a search but cannot find the answer to my problem.
    If I log into a Forms application using SSO I can get the SSO userid and database USER.
    How do I get the SSO Userid from a database package or trigger that is called from Forms. Is there a database function that will return the SSO Userid?
    Thanks
    Stewart

    Rosario,
    Yes, I know how to retrieve the information but do I have to populate it first.
    E.g. 'SYS_CONTEXT('USERENV','CLIENT_IDENTIFIER') Returns an identifier that is set by the application through the DBMS_SESSION.SET_IDENTIFIER procedure'
    Do I have to call 'DBMS_SESSION.SET_IDENTIFIER' from my application before
    calling SYS_CONTEXT('USERENV','CLIENT_IDENTIFIER')?
    Thanks
    Stewart
    Message was edited by:
    stewartdawson
    Message was edited by:
    stewartdawson

  • Passing variables along url for database update of record?

    Hi,
    Over past few days i have been asking questions about dreamweaver CS4 database tools stating that i dont understand them.
    Well things have change now and i am loving cs4 even more. I watched over 10 videos teaching how to use the database tools in dreamweaver and i have successully saved myself from buying something like datassist etc saving money and realising there is more functionality by using what is already built into dreamweaver.
    I basically have a list page that lists all records from database, 15 records per page, a delete page, insert page and update page.
    What i am focusing on with some help is the list page and update page.
    Using dreamweaver tools built in when i click on the unique id on the list page it bines the id to the url and loads the update page with all user details intact great stuff. Now on the update page i set it to filter by id and url parameter which obviously works and needs to be as i am using the id link.
    Thing i want to do now is link the username and email address to the update page like i did for the id, problem is when i create the link using dreamweaver tools same like i did for ID apart from this time it passes the username to the url which is good but it does not show the users information on update page.
    Now i think this maybe something to do with on the update page that it is filtered to id and url paramenter, so how do i basically link the username and email address to the update page so when i click on the username or email address it shows there information on the update page?
    it works fine for id but i think because it is set to filter via id url parameter why it wont work the username and email address so i am trying to figure out how to come over this so i can click on username or email address and let the same thing happen as when i do for ID.
    Now sorry i don't think this may make any sence i am relatively new to dreamweaver and doing my best to explain.
    Thank you
    guypc

    Hi i am sorry for confusing.
    I have a database that has
    id
    status
    username
    first_name
    last_name
    email
    password
    ip
    date_time
    activation key
    now on my list page i have it showin: ID / Status / Username / First Name / Last Name / Email
    now after creating a recordset and making it show 15 records per page etc i then clicked on the id in table and choose from properties window browse (the folder icon) then selected the file update.php and then clicked on parameters gave the name id and value id so when i then click on a users id  it takes me to the update.php page and shows there information as it suppose to by passing the user id along the url.
    This is fine. now i want to make the username and email address do the same so when i click on them it takes me to the update page and loads the user information from DB like it does with the ID. Basically same thing but different text link.
    Is that better explained?
    it just basically allows me to select either id, username or email address instead of just id, just preference really.
    thank you
    guypc

  • Administering SSO Users

    Hello,
    I am new to Oracle and this group, so please let me know if I should post this question in a different group.
    I am a Java Web application developer (Apache/Tomcat etc.). I have been tasked to use Oracle AS 10g to adminster SSO user activities, such as create, modify, delete users, assigning roles and user groups. To get started, we will populate the OID with a set of users and use an Oracle AS 10g instance as a test platform for development. Where can I find how to architect the system best ? Where to use JSP's to interface with other SSO applications ? I have read a lot of white papers and documentation, but none of them give detailed technical information on how the interaction happens.
    Thanks for any suggestions.

    dba_users is in the database. SSO is in middleware. Not real sure what you need, so I guess start with http://www.oracle.com/technetwork/middleware/id-mgmt/esso-suite-technical-whitepaper-1519077.pdf

  • Integrating SSO users and Discoverer users

    Hi,
    I want to integrate SSO user with discoverer users. The discoverer users are database users. Is there any way by which I can authenticate discoverer user via single sign on. And if SSO user changes his password or a new SSO user is added, then the changes are reflected in discoverer users.
    Regards.

    I am having this problem too.
    In fact I would prefeer to have only one shared database user for all SSO users, and use only VPD and database roles for access control. But discoverer uses the database user for controling access to the workbooks. So any user can delete all the workbooks that other users saved when sharing the database account.
    Discoverer plus could have a option to use the SSO user instead of the database user, like it does when using a Applications mode EUL.

Maybe you are looking for

  • Dump error while creating or double click the info package

    Hello experts, I have actived infocube 0FIAR_C03 in BI content. Ago, The creation infopackage have been deleted in the past , today, I  created a infopackage, while I update mode selected u2018initialize delta processu2019, then click save button , t

  • Attached object(BUS2038) doesn`t open new window

    Hi guys, In my workflow I send an workitem with a business object attached to allow the approver see the PM Note. I meant, when the link is clicked it should open the transaction IW22(Edit PM orders). In my development server this was working for all

  • Help recover the password on the BIOS

    Help recover the password on the BIOS HP pavilion g7 KEY: 88560454 Thanks!

  • How to populate selection field

    Hi All, I have two selection paramaters for abap program. i.e sales org hier level Based on sales org entered by user, hier level field needs to be populated. The value of hier level for that sales org is available in another table. Also i want to ke

  • Sort Datetime and Varchar Challenge

    Hi! I want to sort datetime (converted to varchar) and varchar together , here is test data generation sql. SELECT CONVERT(VARCHAR(10),GETDATE()-3,111) AS TEST_DATE INTO #TMP_TEST INSERT INTO #TMP_TEST SELECT CONVERT(VARCHAR(10),GETDATE()-5,111) INSE