Portal's db custom usage?

Hello,
Is it possible to use portal's db to store any data that my
application might require? Is there any APIs at the portal
that allow to work with portal's db (create tables/add records/
remove/update)? If not, where and how my own portal application
can manage all the required data?
Thank you,
Yuri

Okei,
This document describes everything you need to know :
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/Use%20SAP%20J2EE%20Database%20Pooling%20Service
The code given in this pdf is (with some modifications, could do a lot of compacation in order to increase readability)
public Connection getConnection () {
InitialContext m_ctx = null;
DataSource m_ds = null;
//note  LocalPool is the pool Alias.
String m_datasource_name = "jdbc/LocalPool";
String m_contextUrl = "";
String m_contextFactory
  = "com.inqmy.services.jndi.InitialContextFactoryImpl";
Connection con;
Properties properties = new Properties();
properties.put  (InitialContext.INITIAL_CONTEXT_FACTORY,m_contextFactory);
try{
  //getting JNDI InitialContext
  m_ctx = new InitialContext(properties);
  //getting the Datasource from the context
  m_ds = (DataSource)m_ctx.lookup(m_datasource_name);
  //getting the connection from the Datasource
  con = m_ds.getConnection();
  return con;
}catch (NamingException ne){
  //pool not created in J2EE. Handle this in someway
  ne.printStackTrace();
  return null;
}catch (SQLException sqle){
  //could not get connection from database
  //perhaps database is down or J2EE pool points
  //to wrong database url
  sqle.printStackTrace();
  return null;
}catch (Exception e){
   //some other exception might happen (don't
   //think you need this
   e.printStackTrace();
   return null;

Similar Messages

  • Custome Usage Report

    I've created a custom usage report using a query from the APEX_WORKSPACE_LOG_SUMMARY_USR table. I've noticed that records seem to age off of this report. For instance, when viewing today, The earliest connection to my application I see is 7 days ago. Is there a way to see a complete history?

    1. Please share your first name and put it in your handle and/or profile to help us.
    2. The data you see in the activity log views are kept in rotating log tables that are purged at relatively short intervals. For details about how to deal with that see these threads:
    Re: Apex Administration Service as Select Statement
    Cumulating application statistics
    Scott

  • How to Create Custom Usage Decisions

    Hi,
    I am working in ECC 6.0. I want to create a Custom Usage decision (Plant Specific). I can not remember where to go to set this up?
    If I use transaction QS41 and set up my own Code Group under Catalog type 3 (Usage Decision), where can I attach the Selected Set that tells the system how to post the Usage Decision (i.e. Unrestricted, Restricted, Scrap...)
    Any help with this would be huge.
    Thanks so much,
    -Bruce

    Thanks for your quick feedback.
    I get confused sometimes with this.
    When I go into QS51..I get to choose Catalog Type 3 (Usage Decision) and my Plant. Then I create my Selected Set. I highlight that and Double Click on Selected Set Codes. Inside there I create my Accept and Reject codes and assign Posting Proposals. From there I save.
    I just ran a MIGO transaction and created an 01 type Inspection Lot. I tried to go in and do a Usage Decision on it. When I hit the drop down...it gives me the Original SAP Catalog. I do not see my Selected Set I just created.
    Can you tell me what I'm doing wrong?
    Thanks a Ton!

  • Changing the portal banner with customized banner!

    Hi Friends,
    I want to change the portal banner with customized banner with logo. So for that, I created a customized banner and named as bg_banner.jpg by renaming the original as bg_banner1.
    I modified them in both paths
    D:\OracleBI\web\app\res\s_oracle10\b_mozilla_4\ and
    D:\OracleBI\oc4j_bi\j2ee\home\applications\analytics\analytics\res\s_oracle10\b_mozilla_4
    Also restarted both Presentation Services and OC4J
    But still, I'm unable to view my customized banner instead I see the original LOGO missing. But able to view the rest of the banner with standard dashboard links.
    Please correct me, where am I missing and do the needful.
    Best regards
    User622248

    Use a copy of the original and paint in this.
    Than replace it there:
    \bi\web\app\res\s_oracle10\b_mozilla_4
    \bi\web\app\res\s_oracle10\b_mozilla_4\rtl
    \bi\oc4j_bi\j2ee\home\applications\analytics\analytics\res + rtl.
    Perhaps you forgot the \rtl\ banner?
    Regards,
    Stefan

  • How can i find the requested portal page in custom login.jsp

    We are using a customized login, logout and change password page built in JSP.
    The wwsso_ls_configuration_info$ has been updated to point to the customized
    JSP pages. Everything works fine so far but we would like to show different
    content inside the customized login page depending on which portal page that
    was requested.
    eg suppose the user requested a page that belong to page group X we want to
    show login page with html content relevant to page group X. If page group Y is
    requested, then it show relevant information for Y.
    The ssousername, password field and other parameter needed for login page will
    be left to the standard names defined by oracle login requirements.
    For this purpose, we need to find which portal page was requested by user in
    the customized login.jsp( as users tend to bookmark the portal page eg.
    http://domain/portal/page?_pageid=33,30983,33_30985&_dad=portal&_schema=PORTAL)
    Once i know the requested portal page, i can parse the _pageid to get the page group.

    Were you ever able to get this issue resolved? I would be interested in the solution if one was ever found. Thanks.

  • Query on Customer usage on a VMs

    Hi Team,
    I need assistance on the following queries
    We are trying to check the feasibility of using VCloud usage meter but we are not able to understand how we can achieve following things
    1) Customer X has been provided access to VM Cloud machine. some ip address machine.
    2) I need to know how to configure this Customer X usage in vCloud usage meter on VM A. ITs not allowing me check the particular users usage on each VM? I mean I want to understand how this Customer X used the VM and charge him accordingly for his usage.
    Like wise I have many users using the VMs.
    Thanks and request you to please email me if you have any queries
    Regards,
    Shiva Shankar Sheela

    Hello
    I am facing an issue on User exit usage. I am doing following steps.
    1. Dragging Calander year/month characteristic.
    2. Define a varaible (Technical Name: ZCALMONTH) with Customer exit as processing by and Single value with entry "Optional" field. 
    3. Go in CMOD and oepn EXIT_SAPLRRS0_001.
    4. Open include "ZXRSRU01".
    5. Write following code and activate it.
    data: l_s_range type rsr_s_rangesid.
    data: l_help(8) type c.
    case 'i_vnam'.
    when 'ZCALMONTH'.
    clear: l_s_range.
    l_help = sy-datum. "actual day
    l_help+6(2) = '01'. "first of month
    l_help = l_help - 1. "previous month
    l_s_range-low = l_help(6).
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    append l_s_range to e_t_range.
    endcase.
    After doing all above steps, variable default value remains blank. Please let me know if i am wrong or missing any step.
    Thanks

  • How to generate graph's in portal based on customer data

    Hi
    customer wants graphs based on BW data in the portal.is it possible to generate graph's in BW and display it in portal?
    Prasad

    Yes, you would need to integrate the BEX URL in the BW iView.
    Otherwise if the whole BW role needs to be imported into the portal, please use role upload functionality in System Admin.
    If your BW is BW 3.5 then you can directly publish BW reports from BW to the portal.
    Vibhu

  • How to get HTML form name for use in Portal Form's custom layout?

    I want to add a date selector to a Portal Form but the NAME attribute of the FORM HTML tag is dynamic.
    To add a calendar icon that opens a date selector, I add the following tags to the custom layout after the date form field:
    <img src="/images/calendar.gif" height="16" width="16" border="0">
    The <form field name> is static, but the <form name> appears to be dynamic (e.g. WWVM3115, WWVM3116, WWVM3117, ...).
    The custom layout uses substitution variables for the form fields and labels. Is there a substitution variable for the form name?

    Here's the javascript function someone recommended several years ago (on an oracle portal forum) that I've used successfully to reference fields in non-portlet portal forms:
    function findItem(pFieldName) {
    var vFormElements = document.forms[0].elements;
    for(var i = 0; i < vFormElements.length; i++) {
    if (vFormElements.name.indexOf("."+pFieldName+".") > -1) return i;
    document.write(i);
    return -1;
    You can then reference the portal form field name using the column/field name only:
    document.forms[0].elements[(findItem('COLUMN_NAME_HERE'))]

  • How to crate custom usage analytics using javascript

    hi friends
    i am working on usage reports in sharepoint 2013.
    i need to show user infromation in reports, like most visited and least visited user names. but it is not possible through out of the box functionalities. how to do that using javascript.

    Hi,
    According to your post, my understanding is that you wanted to custom the usage analytics report.
    Per my knowledge, we can see the top visitor and least visitor with the out of the box feature.
    In the Site Collection Web Analytics Reports, there is an option called Top Visitors, it shows the top visitor and least visitor.
    You can custom the report by clicking the Customize Report button on the Analyze tab of the ribbon.
    Or you may create your own analysis with data in WSS_Logging database:http://social.technet.microsoft.com/Forums/en/sharepoint2010setup/thread/8ba7b6e9-0b5d-4c4b-bd66-d2c72bb538b3
    More reference:
     http://blogs.msdn.com/b/tejasr/archive/2010/12/26/customizing-web-analytics-in-sharepoint.aspx
    http://todd-carter.com/post/2011/04/26/Extending-The-SharePoint-2010-Health-Usage-Part-1-Feature-and-Capability-Overview.aspx
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Portal Collaboration - Forums customizing

    We recently started testing the Forums capability under Collaboration.
    Our portal is running as SAP NW 2004 at SP20.
    There are however a few things that need some customizing for our solution.
    The first thing I would like to discuss is:
    Once you explicitly set permissions for a user/group to just be able to "read" the forum, the options for "new thread" and "reply" are still visible. Once you follow these links, it presents the user with a login screen.
    I need to be able to either:
    1. Prevent the links for "New thread" and "reply" not be visible.
    2. Modify the login page to inform the user that they don't have the correct permissions
    Please let me know if you have information on this.
    Thank you in advance
    Danie de Kock

    Please ignore

  • Portal runtime error, custom logon page HElpp

    Hi,
    I'm new to EP, please kindly help me to solve my problem
    I've read so many topic about this, but I still can't understand what I'm supposed to do.
    I want to change umHelpPage, so I download by using system administration -> support -> support desk -> portal runtime -> browse deployment -> root -> web-inf -> portal ->portalapps -> com.sap.runtime.logon
    Then, download and I make certain changes in UmHelpPage, directly in winzip,without extract it. Save, and then change .zip to .par, by using system administration -> support -> support desk -> portal runtime -> administratioin console -> upload -> com.sap.runtime.logon.par
    At first, after I upload the com.sap.runtime.logon, all of my jsp files are missing. And then I'm facing the following error :
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    The exception was logged. Inform your system administrator..
    See the details for the exception ID in the log file
    Previously, I have backed up my com.sap.runtime.login.par in my local. After several times trying to upload , my jsp files still missing. Then, I tried to copied them manually one by one, from my original backup to folder /irj/root/web-inf/portal/portalapps using unix. But, the error still exists.
    I also download .bak one in the pcd directory and renamed in .par and upload it again, but it doesn't make any changes.
    I've also checked the .jar files. In my lib folder I have 2 files :
    - com.sap.runtime.logon.logon_api.jar
    - umelogonbase.jar
    but i don't have the com.sap.runtime.logon.logon_core.jar one. Is the file also important ? if so, in which directory I can have it?
    Please tell me, what I have to do ?
    I have original back up in my local, and seems like I accidentaly erase the original one in the portal.

    Hi Desiana,
    I think you are missing something in your portalapp.xml
    See the sample..
    <components>
        <component name="DeploymentChecker">
          <component-config>
            <property name="ClassName" value="com.shell.ep.sapportals.epone.adminviews.page.DeploymentChecker"/>
          </component-config>
          <component-profile>
            <property name="tagLib.inheritance" value="final"/>
            <property name="tagLib.value" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
                                      </component-profile>
        </component>
      </components>
    Regards,
    [email protected]

  • Where the public folder htdocs in Oracle Portal 11g for custom files ?

    hi ,
    In oracle portal 10g I used the folder xxxxx/Apache/Apache/htdocs for css, js, img.
    In Oracle 11g portal where this folder ?
    tks
    Carlo
    Edited by: cgiorgi on Dec 15, 2009 2:48 PM

    hi carlo,
    in portal 11g, this folder is in Oracle Instance and not in Oracle home, here.
    config/OHS/<ohs_name>/htdocs
    hope that helps!
    AMN

  • Calling Portal Application from Custom WD Application

    Hi,
    I'm developing a custom WD Application which has to call the already implemented ESS application such as Personal Information application and I'm struck with the following questions:
    1. Do I have to reuse that particular ESS DC in my current DC?
    2. IF I have reused ESS DC, how could I call that Personal Information IView from my WD Application?
    Please suggest me.
    Regards,
    RN

    RN,
    check this link http://help.sap.com/saphelp_sm32/helpdata/en/b5/424f9c88970f48ba918ad68af9a656/content.htm
    Re: WDPortalNavigation.navigateAbsolute question - urgent!
    http://wiki.sdn.sap.com/wiki/display/WDJava/creatingahomepageasdashboardusingwebdynproiviews
    Thanks
    Bala Duvvuri

  • SAP NetWeaver Portal on Cloud + customizing

    Hello,
    if we use SAP NetWeaver Portal on Cloud how wide is the possibility to customize it?
    a) will support packages installed automatically?
    b) can we customize the portal on cloud with the same possibilities as portal non proemise?
    c) how can we integrate iviews from apllications, whiche are not on cloud?
    d) how can portal on cloud uintegrade in the cts+ , which is not on cloud?
    Regards Oliver

    As explained in another thread of yours, there is no such thing as "SAP NetWeaver Portal on Cloud" and if your questions are about SAP HANA Cloud Portal, please post them in the corresponding space: SAP HANA Cloud Portal.
    Cheers,
    --Vlado

  • Enterprise Portal Business Objects and usage in VC

    Dear all,
    environment : Enterprise Portal / mySAP ERP 2005 / Visual Composer.
    I would like to use e.g. List Order Fulfilment ( a BO in the pcd)
    PCD location : pcd:Business_Objects/com.sap.pct.erp.common
    Object type : com.sapportals.portal.businessobject
    in Visual Composer
    In the Portal Content, I found the BO. I wnet into the BO Editor, there is no iView.
    How can I use those BO as Services in Visual Composer ?
    Please advise.
    Regards
    Olivier

    I found the answer in
    How to use web service in ECC 6.0
    Thank you

Maybe you are looking for