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

Similar Messages

  • 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

  • Bug in oracle portal: problem in pl/sql item type

    I created a pl/sql item type... based on a stored proc... whenever I make a change to the store proc I have to readd the item based on this item type since the result on the item type is not updated is this some bug in oracle portal

    I created a pl/sql item type... based on a stored proc... whenever I make a change to the store proc I have to readd the item based on this item type since the result on the item type is not updated is this some bug in oracle portal

  • 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

  • Mapping between oracle data types and ms sql server data types

    hello
    i need mapping between oracle data types and ms sql server data types
    where can i find them ?

    read this
    http://download.oracle.com/docs/cd/E10405_01/doc/appdev.120/e10379/ss_oracle_compared.htm

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

  • Pl/sql and oracle portal session

    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?
    Thank you in Advance,
    Antonis

    Hi Antonis,
    Perhaps you question is better asked in [Oracle Application Server Portal|http://forums.oracle.com/forums/forum.jspa?forumID=14] forum
    Regards
    Peter

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

  • Oracle Portal - Omniportlet and datadirect drivers

    I need to create an omniportlet to connect to each of a SQL Server database and a Sybase database. I tryied downloading the datadirect drivers, but they wont load into portal.
    I have followed the directions found here, http://www.oracle.com/technology/products/ias/portal/html/omniportlet_how_to_use_datadirect_jdbc_drivers.html#install. this was also the page that has the links to download the datadirect drivers.
    how are the drivers installed and used?

    I found the solution through one of the documents on the Datadirect website
    http://www.datadirect.com/download/docs/jdbc/jdbcref/jdbcref.zip.
    You have to call the procedure without specifying a placeholder for the Ref Cursor and then get the results using getResultSet() method of the CallableStatement. The driver automatically converts the Ref Cursor to a Resultset.

  • Oracle Portal 10  and Singel sign-on

    Can Oracle single sign-on allow authenticated windows users to connect to portal directly. How can applications like Salesforce also be integrated the same way.
    Will Portal 11g use the same single sign-on system or will there be some other method available.

    You need DIP for get this, with this option you will let that the autentification is performed trew Active Directory and Portal will use SSO with AD.
    It's possible but you need to configure the comunitcation between AD and OID and that OID delegates the autentification to AD.
    Greetings

  • Oracle 8i Lite and XML SQL Utility

    Can I use XML SQL Utility with Oracle 8i Lite
    using the Oracle 8i Lite Driver
    null

    There will be an version of the XML SQL Utility appearing here shortly. In the meantime you can download the current version of the XSQL Servlet which has the new v2 compatible oraclexmlsql.jar.
    Oracle XML Team

  • Oracle 9.x and java.sql.Timestamp

    Are there any documents or examples illustrating the interaction of the Oracle 9.x [SQL92] TIMESTAMP and the timezone varient of TIMESTAMP?

    Erm,
    One way to find out, I reckon.
    Good Luck,
    Avi.

  • Sample  PL/SQL Portlet Source Code for Oracle Portal 9ias

    Hi, I'm a newbie of Oracle Portal technology, and I have a problem:
    I would create a PL/SQL portlet that realizes the following functions:
    1) Retrieve the username of the portal user logged from WWCTX_API.GET_USER function.
    2) Insert into an oracle db table two values about two hidden fields in the HTML FORM of the portlet.
    3) Realize the insert commit through the click on the submit button on the Html form of the portlet. I would redirect by the same button to an other page url also.
    I've never developed in Portal, and may be useful if someone could post me the source code of the SHOW MODE SECTION in the PROCEDURE SHOW of a SAMPLE PL/SQL PORTLET that realizes the upper functions.
    Thanks a lot....

    Hi
    Here's the code from Helloworld_Portlet example:
    procedure show
    p_portlet_record wwpro_api_provider.portlet_runtime_record
    is
    l_portlet wwpro_api_provider.portlet_record;
    begin
    if (not is_runnable(
    p_provider_id => p_portlet_record.provider_id
    ,p_reference_path => p_portlet_record.reference_path)
    ) then
    raise wwpro_api_provider.PORTLET_SECURITY_EXCEPTION;
    end if;
    Retrieve the portlet information.
    l_portlet := get_portlet_info(
    p_provider_id => p_portlet_record.provider_id
    ,p_language => p_portlet_record.language
    if (p_portlet_record.exec_mode = wwpro_api_provider.MODE_SHOW) then
    if (p_portlet_record.has_title_region) then
    Draw the portlet header and specify what links are available
    from that header (i.e. details, customize, help, and about).
    The has_title property is set at the page region level.
    wwui_api_portlet.draw_portlet_header
    p_provider_id => p_portlet_record.provider_id
    ,p_portlet_id => p_portlet_record.portlet_id
    ,p_title => l_portlet.title
    ,p_has_details => true
    ,p_has_edit => true
    ,p_has_help => true
    ,p_has_about => true
    ,p_referencepath => p_portlet_record.reference_path
    ,p_back_url => p_portlet_record.page_url
    end if;
    Draw the portlet borders.
    The has_border property is set at the page region level.
    wwui_api_portlet.open_portlet(p_portlet_record.has_border);
    Display the content of the portlet in the show mode.
    Use the wwui_api_portlet.portlet_text() API when
    generating the content of the portlet so that the
    output uses the portlet CSS.
    htp.p(wwui_api_portlet.portlet_text(
    p_string => 'Hello World - Mode Show'
    ,p_level => 1
    if (p_portlet_record.has_border) then
    wwui_api_portlet.close_portlet;
    end if;
    elsif (p_portlet_record.exec_mode = wwpro_api_provider.MODE_SHOW_ABOUT) then
    Display the about page for the portlet.
    htp.p('Hello World - Mode Show About');
    elsif (p_portlet_record.exec_mode = wwpro_api_provider.MODE_SHOW_EDIT) then
    Display the edit page for the portlet.
    htp.p('Hello World - Mode Show Edit');
    elsif (p_portlet_record.exec_mode = wwpro_api_provider.MODE_SHOW_HELP) then
    Display the help page for the portlet.
    htp.p('Hello World - Mode Show Help');
    elsif (p_portlet_record.exec_mode = wwpro_api_provider.MODE_SHOW_EDIT_DEFAULTS) then
    Display the edit defaults page for the portlet.
    htp.p('Hello World - Mode Edit Defaults');
    elsif (p_portlet_record.exec_mode = wwpro_api_provider.MODE_SHOW_DETAILS) then
    Display the details page for the portlet.
    htp.p('Hello World - Mode Show Details');
    elsif (p_portlet_record.exec_mode = wwpro_api_provider.MODE_PREVIEW) then
    Display the preview page for the portlet.
    htp.p('Hello World - Mode Show Preview');
    end if;
    end show;
    I think you need to add this:
    You can get the values of your html-form with this command:
    v_hidden_1 varchar2(256);
    v_hidden_2 varchar2(256);
    v_hidden_1 := wwpro_api_parameters.get_value('name_of_hidden_1_in_html_form','p');
    v_hidden_2 := wwpro_api_parameters.get_value('name_of_hidden_2_in_html_form','p');
    You can get the actual URL with this command:
    v_url := p_portlet_record.page_url;
    Hope that helps.
    Regards,
    Mark

  • Webvpn and Oracle Portal 10.1.4.2

    We are attempting to upgrade Oracle portal 9.0.4 however we have got problems accessing our portal via webvpn. We are using a cisco 5500 asa. When using anyconnect , portal works fine. When using webvpn to access the new portal we get "invalid portal session" and other "an error has occurred" error messages. I have looked in the portal activity log and we seems to be getting multiple connections connecting via webvpn and ora 20000 and ora 20001 errors which relate to cookie errors.
    Portal 9.0.4 works without any problems

    Something must be wrong with the consumer, then. Here you can see the portlets consumed by Oracle and NetUnity.
    Peter

Maybe you are looking for