Jdeveloper with VPD / FGAC possible ? i.e. oracle portal tables and views

I am trying to create some view objects based on oracle portals views and tables. However I always get the following error.
ORA-06510: PL/SQL: unhandled user-defined exception
ORA-06512: at "PORTAL.WWCTX_SSO", line 1407
ORA-06510: PL/SQL: unhandled user-defined exception
ORA-06512: at "PORTAL.WWCTX_SSO", line 1216
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at "PORTAL.WWCTX_SSO", line 1469
ORA-06512: at "PORTAL.WWCTX_API", line 152
This is because I have not set the context using plsql. i.e
portal.wwctx_api_private.set_context(p_user_name => 'PORTAL',p_update_flat => true);
Is there a way of using portal views in jdevloper and setting the context first. I am thinking the portal database uses vpd, fine grained access control.
Regards
Orlando

Hi,
using ADF BC you can override the prepare session method on the AM to set the context.
public void prepareSession(Session _session)
super.prepareSession(_session);
// some PLSQL like
String appContext = "Begin ctxhrpckg.set_userinfo('"+getApplicationUserName()+"'); END;";
java.sql.CallableStatement st= null;
try
st = getDBTransaction().createCallableStatement(appContext,0);
st.execute();
} catch (java.sql.SQLException s)
throw new oracle.jbo.JboException(s);
} finally
try
if (st!= null)
st.close();
} catch (java.sql.SQLException s2){}
Frank

Similar Messages

  • How to search tables and views used in the code of oracle fmb 6i from another form???

    Hii guys, this is a very interesting question and i hope that it will have ample amount of answers.
    My requirement is to know the number of tables and views and backend functions/procedures which are used in the code written in the oracle forms 6i,
    all i want is to display whole views, tables or functions/procedures which are written  in the code of a particular fmb, i do have the path of that fmb and i want to read the code and search through it's entire code for the tables/views/backend procedures/functions written in the code. So how to search through the entire code of a particular form (6i) and make it display through another form.
    I am using oracle forms 6i.
    Please help me out....
    With Regards:
    Ankit Chandra

    Here is a modified dealForm.jsp that merges the 2 steps - both symbol submission and Yahoo convert is done by it. Play with it and add your DB code to it:
    <html>
    <head><title>IPIB Database Selection</title></head>
    <body bgcolor="#DFDFFF">
    <H1><CENTER>IPIB Database Selection</CENTER></H1>
    <font size=4>
    <%@ page language="java" %>
    <%@ page import="java.net.*,java.io.*,java.util.*" %>
    <%
    String symbol = request.getParameter("symbol");
    if (symbol != null) {
    String urlString = "http://finance.yahoo.com/download/javasoft.beans?SYMBOLS=" + symbol + "&format=ab";
    try {
    URL url = new URL(urlString);
    URLConnection con = url.openConnection();
    InputStream is = con.getInputStream();
    InputStreamReader isr = new InputStreamReader(is);
    BufferedReader br = new BufferedReader(isr);
    String line = br.readLine();
    StringTokenizer tokenizer = new StringTokenizer(line,",");
    String name = tokenizer.nextToken();
    name = name.substring(1, name.length()-2);
    String price = tokenizer.nextToken();
    price = price.substring(1, price.length()-2);
    %>
    <p>
    Original line from yahoo <%= line %>
    </p> <p>
    Name: <%= name %>
    </p> <p>
    Price: <%= price %>
    </p> <p>
    Pub DB processing code from dealLoad.jsp here
    </p>
    <%
    } catch (IOException exception) {
    System.err.println("IOException: " + exception);
    } else { %>
    <form action="dealForm.jsp"method="GET">
    <p>Enter Symbol: <input size="20" name="symbol">
    <inputtype="submit" value="Submit">
    </p></form>
    <% } %>
    </font>
    </body>
    </html>

  • Integration Oracle Portal 10g and PeopleSoft 9

    Hi all,
    I need to accomplish the integration of Oracle Portal 10g with features of PeopleSoft 9, where some functions of PeopleSoft 9 will be accessed via Oracle Portal 10g, and to access them the users must be authenticated.
    Anyone have any clue or idea how can I do this?
    Thanks

    I just met this problem too,and I found there are http server both under ASinfrasture and portal home,I guess they confused each other.I wonder the solution too.

  • Where do i see all the default tables and views in oracle 10g

    hi,
    I have installed oracle 10g in the linux os.
    I just wanna see the list of deffault tables and views created by oracle.
    can anyoone hlep me on this
    thanx in advance....

    Check DBA_OBJECTS for all seeded objects in an Oracle database. For tables, check DBA_TABLES. For views, check DBA_VIEWS. All of this is documented in the fine documentation - take some time out to read thru it.
    http://docs.oracle.com/cd/E11882_01/server.112/e25513/statviews_4156.htm#REFRN23146
    http://docs.oracle.com/cd/E11882_01/server.112/e25513/statviews_5056.htm#sthref2482
    http://docs.oracle.com/cd/E11882_01/server.112/e25513/statviews_5085.htm#sthref2521
    HTH
    Srini

  • The Relation between tables and views in oracle financial

    Dears
    I am work in oracle e business r12
    and i need to build report as xml
    when run my select its need big time to view data i have a huge of data so i need to clear the relation of this tables if there is miss and if there another technique in select statement
    this is my select statement
    select
    j_hdr.je_header_id je_header_id,
    hdr.VENDOR_NAME supplier,
    SEGMENT1||'-'||SEGMENT2||'-'||SEGMENT3||'-'||SEGMENT4||'-'||SEGMENT5||'-'||SEGMENT6||'-'||SEGMENT7||'-'||SEGMENT8||'-'||SEGMENT9 Account_number,
    hdr.gl_date gl_date,
    j_hdr.CURRENCY_CODE CURRENCY_CODE,
    inv_lin.DESCRIPTION DESCRIPTION,
    j_lin.ENTERED_DR ENTERED_DR,
    j_lin.ENTERED_CR ENTERED_CR,
    j_lin.ACCOUNTED_DR ACCOUNTED_DR,
    j_lin.ACCOUNTED_CR ACCOUNTED_CR,
    j_hdr.JE_SOURCE JE_SOURCE,
    j_hdr.DEFAULT_EFFECTIVE_DATE Transaction_DATE,
    hdr.INVOICE_NUM INVOICE_NUM,
    QUICK_PO_NUMBER PO_NUMBER,
    null ASSET_CATEGORY_ID,
    hdr.VENDOR_ID VENDOR_ID
    from gl_je_headers j_hdr,gl_je_lines_v j_lin,ap_invoice_distributions dist,ap_invoices_v hdr,ap_invoice_lines_v inv_lin
    where code_combination_id = DIST_CODE_COMBINATION_ID
    and hdr.invoice_id = inv_lin.INVOICE_ID
    and dist.invoice_id = inv_lin.INVOICE_ID
    and j_hdr.JE_HEADER_ID = j_lin.JE_HEADER_ID
    and j_hdr.status = 'P'
    and nvl(:P_SOURCE,'Payables') = 'Payables'
    and je_source = 'Payables'
    and j_lin.CODE_COMBINATION_ID between ( select CODE_COMBINATION_ID
    from gl_code_combinations_kfv
    where CONCATENATED_SEGMENTS = :P_FROM_COMBINATION_CODE)
    and ( select CODE_COMBINATION_ID
    from gl_code_combinations_kfv
    where CONCATENATED_SEGMENTS = :P_TO_COMBINATION_CODE)
    AND TRUNC(dEFAULT_EFFECTIVE_DATE) BETWEEN NVL(:P_FROM_DATE, DEFAULT_EFFECTIVE_DATE) AND NVL(:P_to_DATE, DEFAULT_EFFECTIVE_DATE)
    Thanks in advance

    Welcome to the world of complicated Oracle Application queries. Didn't fully understand your question, so a few guesses -
    I think that you are asking how to make your query faster? I would reference the FAQ section on how to post a question regarding performance.
    Your title indicates you want to understand the relationship between tables and views. In general, Oracle Applications uses views for 2 reasons - to join data from multiple tables for display, and to differentiate data from different organizations. (I am still on 11i and have heard organizations are handled differently in 12 so I can't speak to that for sure).
    To understand the relationship between tables in a view, you can access the view's source code, either through a development tool such as PL/SQL Developer or TOAD (I'm guessing Oracle's tool does this also, but have never used it), or by querying the source from the dba_source table.
    select * from dba_source where name = (name of view) and type = 'VIEW' order by line;without the ( ) just the view name, in all capital letters i.e. , 'GL_JE_LINES_V'
    Good luck!

  • Oracle portal 9 and oracle webcenter and SSO

    dear team.
    we have oracle portal 9 and oracle webcetner in my orgnization. both have different usernames/passwords. is there a way to have only one single username/password (webcenter ones) how can i do that. or even can we implement SSO thrugh windows login.
    is there a way to intergrate both in a way to have only one username/password for both.
    any hint will help as this topic new to me.
    fadi

    They are separate products.
    Oracle Weblogic Portal and Oracle Portal 11g

  • Oracle Internet Expenses related tables and views

    In Oracle 11i when we go for internet expenses how to get the table and view details

    user12180635 wrote:
    Thanks for your reply. But didn't find any Schema or Tables related to Internet Expenses in eTRM. Can any one please specify them.IINM, it should be under AP/APPS schemas.
    SQL> select owner, object_name, object_type
    from dba_objects
    where object_name like 'OIE%';Thanks,
    Hussein

  • Oracle Portal 11 and WSRP 2.0 portlets

    Hello.
    I have found Oracle Portal 11g can't consume WSRP 2.0 portlets.
    I create and deploy ADF Faces Portlet into Weblogic Server
    as shown in http://download.oracle.com/docs/cd/E12839_01/portal.1111/e10238/pdg_java_intro.htm#CHDFDDBG.
    I register WSRP 1.0 producer using Jdeveloper 11g. Then I register that producer using Portal 11g. When I add portlet from the
    producer into portal page it's possible to view the portlet.
    But when I register WSRP 2.0 producer in JDeveloper 11g and then register that producer in Portal 11g, and then add same portlet
    into portal page it's impossible to view the portlet.
    Tell me please. Can Oracle Portal 11g consume WSRP 2.0 portlets or not?
    Many thanks, Andrew

    Oracle Portal 11g WSRP 2.0 Sample Portlets
    [http://www.oracle.com/technology/products/webcenter/release11_demos.html#wiki_blog_disc_samples|http://www.oracle.com/technology/products/webcenter/release11_demos.html#wiki_blog_disc_samples]

  • Oracle portal  session and pl/sql

    Hi all i use portal v.10.1.2.2.0 and i would like to play with a session variable. all i do is
    grant execute on wwsto_api_session to myportal from portal schema. and then i want to do
    l_store := portal.wwsto_api_session.load_session (p_domain, p_sub_domain);
    l_store.set_attribute ('myname', 'name');
    l_store.save_session;
    1) i do not know what is the p_domain, p_sub_domain
    2) when i do wwsto_api_session.get_sub_domain and wwsto_api_session.get_domain i get an error.
    How can i read and write to a variable session in oracle portal? to to like java set session and get session?
    Thank you in Advance,
    Antonis

    [email protected] wrote:
    Hi all i use portal v.10.1.2.2.0 and i would like to play with a session variable. all i do is
    grant execute on wwsto_api_session to myportal from portal schema. and then i want to do
    l_store := portal.wwsto_api_session.load_session (p_domain, p_sub_domain);
    l_store.set_attribute ('myname', 'name');
    l_store.save_session;
    1) i do not know what is the p_domain, p_sub_domain
    2) when i do wwsto_api_session.get_sub_domain and wwsto_api_session.get_domain i get an error."Storage is located by the combination of the domain and subdomain parameters, and the Login session ID.
    If a session store object has not previously been created for this combination of domain, sub-domain, and session ID, then an empty session store object is created and returned. "
    How can i read and write to a variable session in oracle portal? to to like java set session and get session?Hi,
    You may want to see the wwsto_api_session here in [Portal APIs|http://www.oracle.com/technology/products/ias/portal/html/plsqldoc/pldoc1012/index.html].
    "Working with the session object
    The general procedure for working with the session object is:
    1. Load the session object, with an appropriate domain and sub-domain combination, using the load_session method.
    2. Manipulate the content of the object using the set_attribute methods, or just access its content using the get_attribute methods.
    3. Force these changes to be saved, using the save_session method.
    Typically this sequence occurs within the scope of one client routine that extracts and/or sets all of the client states. For example:
    declare
    l_store portal30.wwsto_api_session;
    l_date date;
    begin
    l_store := portal30.wwsto_api_session.load_session ('PORTAL', 'TEST');
    l_store.set_attribute ('LAST_ACCESSED', sysdate);
    l_store.set_attribute ('USERNAME', 'SMITH');
    l_store.set_attribute ('COUNRTY_CODE', 1);
    l_store.set_attribute ('LOCATION', 'US');
    l_store.set_attribute ('LAST_LOGGED_ON', sysdate);
    l_store.set_attribute_as_string
    ('OFFICE_LOCATION', 'CALIFORNIA', 'US', 'STRING');
    l_store.save_session;
    end;
    The login session that creates the session storage object is defined by wwctx_api.get_sessionid. "
    ref: wwsto_api_session for Portal 10.1.2
    then, look for the functions for getting attributes as number, varchar2, string or index, etc. in the above link.
    hope that helps!
    AMN

  • Problem w/ Oracle temp tables and WL61SP3

    I have an odd problem that arises when I use Weblogic 6.1, Oracle, callable statements,
    and a stored procedure that uses temporary tables. Specifically I don't get the
    result set pack I expect.
    Specifically, I have a stored procedure which first populates a temporary table,
    then joins the temporary table with the additional tables to build the final result
    set--i.e. which it returns as a cursor.
    I've tested this procedure and it works fine when called from PLSQL and from Jboss
    (using Oracle's driver). When I switch to Weblogic 6.1, *using the same database
    and the same Oracle driver*, the returned result set (cursor) has no records.
    I've added additional debugging to the stored procedure and find that it indeed
    is populating the temporary table, but for some reason, the select/join acts like
    the temporary table has no records. Similar 'exists' or 'in' clauses likewise
    do not work.
    In playing with the stored procedure I found that removing the join with the
    temporary table brings back results. This isn't functionally correct--i.e. the
    final result set has too many rows--but it confirmed that the problem lies in
    the temporary tables.
    Again, we've developed to run on multiple app servers so can switch from jboss
    to Weblogic simply by running an ant task. The same callable statement executed
    using the same driver, but from different app servers lead to different results.
    The next step is to try to mess with the 'on commit preserve rows' clause in the
    'create global temporary table' section and see if this has any effect. This procedure
    doesn't perform any commits, however, so this shouldn't produce any changes.
    Any suggestions? Thanks in advance.
    bill milbratz

    william milbratz wrote:
    I have an odd problem that arises when I use Weblogic 6.1, Oracle, callable statements,
    and a stored procedure that uses temporary tables. Specifically I don't get the
    result set pack I expect.
    Specifically, I have a stored procedure which first populates a temporary table,
    then joins the temporary table with the additional tables to build the final result
    set--i.e. which it returns as a cursor.
    I've tested this procedure and it works fine when called from PLSQL and from Jboss
    (using Oracle's driver). When I switch to Weblogic 6.1, *using the same database
    and the same Oracle driver*, the returned result set (cursor) has no records.First, make sure you are using the same driver, by ensuring the driver you want
    is in front of all weblogic stuff in the classpath the server startup script creates for the
    server. We ship a version of oracle's thin driver, so it could be picked up instead
    of yours if the classpath is weblogic-first.
    Second, and this is a long shot, are you using our connection pools? I guess not,
    but let me know...
    Joe
    >
    >
    I've added additional debugging to the stored procedure and find that it indeed
    is populating the temporary table, but for some reason, the select/join acts like
    the temporary table has no records. Similar 'exists' or 'in' clauses likewise
    do not work.
    In playing with the stored procedure I found that removing the join with the
    temporary table brings back results. This isn't functionally correct--i.e. the
    final result set has too many rows--but it confirmed that the problem lies in
    the temporary tables.
    Again, we've developed to run on multiple app servers so can switch from jboss
    to Weblogic simply by running an ant task. The same callable statement executed
    using the same driver, but from different app servers lead to different results.
    The next step is to try to mess with the 'on commit preserve rows' clause in the
    'create global temporary table' section and see if this has any effect. This procedure
    doesn't perform any commits, however, so this shouldn't produce any changes.
    Any suggestions? Thanks in advance.
    bill milbratz

  • Error with Sun App. Server 9...table or view does not exist..

    I am not sure where to post this but here it is:
    I am using Sun App. Server 9 along with a XE database...I use two schemas in my web app but on the first I get ORA error -table or view does not exist from SAS ,although it exists..the second works fine...
    Q: I cannot use 2 simultaneous connection with XE? or what seams to be the problem...
    PS: I also experimented randomly a oracle.toplink error that my Persistance Unit was unable to connect

    two PU's
    two Database Connections (in fact jsf pages ware generate based on entity classes-witch ware made using the connection)
    two schemas: HR and CONTA
    On a second thought I think somehow you're right ...it must be some connection error regarding the schema used...
    I'll look into it...but later...
    Florin POP

  • Oracle Portal Setup and hosting prices.

    Hello Everyone,
    I am new to this community, and will like to know what it cost to setup, and host an Oracle portal. I am doing a little research for school, and will greatly appreciate any answers. Thanks.

    It really depends on what you want, how many users will be using it, what it's for, and how many servers you would need to accommodate it and what type of Oracle package you choose to purchase and if you have Oracle consultants help you with the installation and creation or if you hire your own specialists to do it.
    It's not really a question with an easy answer. What I would do, is I would assess a few different scenarios that are similar to different types of environments business would use it in and then research the components they require and for how large of a scale.
    Portal isn't a stand alone product you really don't have a business using JUST portal. They are using Application Server and using the other products that come with along with Application Server such as Portal, Discoverer, Data Warehouse, Reports and other Oracle Tool kits and custom tool kits to achieve specific end results dependent on the requirements of the business. Portal is just a user friendly way of bring that information to either the public through the internet or your users though intranet and SSO.

  • Is it possible to have Oracle client 7 and 9 at the same time?

    I have Windows XP and I need to have both clients at the same time in the same machine.
    Is it possible to have multiple oracle homes, one for each client version?
    thanks.

    Hi,
    Thanks for the quick replay...I supposed that answers but I have seen some info where it said that Oracle Client releases previous to 8.0.4 supports only single home.
    The case is my customer has already installed and Oracle Client 7 to access some old database, now we need to install on the same computer a Oracle Client 9.2, you mean there is no problem with this ?
    Thanks in advance....

  • Possible to have Oracle Java 6 and 7 installed?

    I installed jre/jdk from the AUR when installing Arch last week and am now wanting to install Java 6 as well.  Can this be done and, if so, how?
    Thanks,
    Lee

    Check out jre6-compat package in AUR.
    And just FYI, you can install any package to any specific location in arch. This requires a little manual work, of course.
    One have to edit PKGBUILD and install scripts replacing paths with desired locations and to remove conflicts/provides declaration from PKGBUILD if necessary.

  • Need help recreating this in Oracle (Temporary Table and a Cursor)

    Hey all,
    My client has asked me to see if it's possible to move his SQL Queries into Oracle, and then move EVERYTHING off of MSSQL into this new oracle environment. The problem is, I wrote the entire MSSQL system, and i know nothing about Oracle.
    Basically, I need some examples. I have been stumbling around Oracle for about a year now, so i'm 'somewhat' familiar with it.
    Basically, i'm going to create a script/stored procedure that will first:
    Create and define a temporary table that is used when the script/proc is called.
    Then, thru cursors, i'm going to add a bunch of lines to it.
    Finally, i'm going to Run a select statement against the temporary table we created.
    Now, I can't create a table on the server, as the production environment will not allow it, so i need to be able to create this virtually inside the script, and then it automatically self destructs at the end of the script.
    If anyone knows if this is possible, please post me a few links to examples, or just lay down the code to get the temprary table made.
    We're using TOAD as the interface.
    Thanks,
    Dan

    Thank you for the warm welcome.
    The SQL looks something like this:
    (Before you get lost in the code, this is an abreviation of the code, but every function is represented. This will also work in TOAD Script? I'm most worried about the use of how a Table is declared in Oracle, as i've seen many different versions of how to do this. Thanks)
    ~Dan
    Declare @AREA nvarchar(50)
    Declare @tmpTable Table (
         [AC_PROPERTY_ID] [INT] NULL,
         [PROPNUM] [nvarchar](50) NULL,
         [SORT_ORDER] [INT] NULL,
         [IS_TOTAL] [BIT] NULL,
         [FIELD] [nvarchar](200) NULL,
    [AREA] [nvarchar](200) NULL,
         [ENG] [nvarchar](200) NULL,
         [RSV_CAT] [nvarchar](200) NULL,
         [WELL_NAME] [nvarchar](200) NULL,
         [SHORTS_PROGRAM] [nvarchar](15) NULL,
         [SHORT_MO] [nvarchar](6) NULL,
         [SHORTS_YR] [nvarchar](6) NULL,
         [SHORTS_DESC] [nvarchar](100) NULL)
    Insert Into @tmpTable ([AC_PROPERTY_ID],[PROPNUM],[FIELD],[AREA],[ENG],[RSV_CAT],[WELL_NAME],[SHORTS_PROGRAM],[SHORT_MO],[SHORTS_YR],[SHORTS_DESC])
    Select AC_PROPERTY_ID],[PROPNUM],[FIELD],[AREA],[ENG],[RSV_CAT],[WELL_NAME],[SHORTS_PROGRAM],[SHORT_MO],[SHORTS_YR],[SHORTS_DESC] from dbo.someoldtablenameimadeup where propnum>1000
         DECLARE idcursor cursor
         FOR
         Select Distinct AREA
         from @tmpTable
         Open idcursor
         Fetch Next from idcursor into @AREA
              While (@@FETCH_STATUS <> -1)
                   BEGIN
                   IF (@@FETCH_STATUS <> -2)
                        <Do stuff for each record in the cursor>
              FETCH NEXT FROM idcursor INTO @AREA
              END
              CLOSE idcursor
              DEALLOCATE idcursor

Maybe you are looking for

  • User exit for Dlvy Block at header for sales order for Companycode & materl

    Hi all, I have a requirement. I need to apply a Delivery Block for all sales orders which fall In a particualr company code "999" and if they have any configurable material in the item level. When a Sales Order is generated, during the process of gen

  • BB Curve 9320 messages deleted

    For the past few days  email messages disappear from my inbox. They are on my computer but no longer on my BB inbox. Any idea?

  • FCE: Problem with markers

    I dont understand this behaviour. Say, I 'have a clip 'Clip 1' with two markers 'Marker 1' and 'Marker 2'. These are shown in the browser. When I now double click on Marker 1 in the browser, the viewer shows the clip from Marker 1 to Marker 2 in the

  • How to implement custom view of certain elements in a JTextPane?

    Hi. I'm writing an application with a JTextPane in which I want to allow a style or attribute to be added to an (arbitrary) span of text, which will then result in a rectangle being drawn around that span of text. But I'm not sure how to do this. I f

  • Query optimization...provide thoughts..

    Could someone suggest improvements to my query? SELECT 'B'||','||GC.GEO||','||GC.PROD||','||','||','||','||','||','||SUM(GC.FACT_AMT)||','||GC.CURRENCY||','||GC.DUE_PERD||','||GC.MEASR content FROM (SELECT FD.GEO,FD.PROD,PROFT_CTR,FD.MEASR,(FACT_AMT_