PL/SQL items

How can we use a PL/SQL item (an idex for exemple) in a PL/SQL function or procedure belonging to the same database schema ?

I would like to know abou this as well.
When I select "Add Item", I have a choice of item types. PL/SQL is one of the choices. I added a simply "empno" query in an anonymnous block and saved. When I selected the link associated with that item, all that was returned was a blank page. The query should have returned the name "SMITH".
Any ideas?

Similar Messages

  • 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

  • Portal PL/SQL Item - getting connection id for Discoverer

    Finding the connection ID of a connection in Portal PL/SQL item.
    I am using a PL/SQL item in Portal to build a link to Oracle Discoverer.
    Everything is ok; except the user needs to enter a password to login to discoverer.
    I want to start discoverer plus using a private connection. The private connection ID of each user will be different.
    Is there any PL/SQLcode I can use to get this information?
    I am using to PORTAL.wwctx_api.get_user to get userid. I would like to dynamically get the connection id.
    I have hardcoded a private connection id and the link worked fine.
    Since each user has a unique private connection the hardcoding is not practical.
    Any help would be appreciated!! Thanks.

    Hi,
    I'm looking for the same answer. Anything?
    regards
    Malin

  • Portal URL for file v. text v. PL/SQL item types?

    I am using Portal 10.1.2.2.0. From the Portal OWA logger data, how can I tell a file item type from a text item type from a PL/SQL item type?
    The OWA_LOGGER_DOC view iis looking for url like '%/docs/%', but all the document URLs are '%/ITEM/%'. The URLs to text items also appear to be '%/ITEM/%'.
    How can I tell that a Portal URL is pointing to a document?

    OK, I figured out a way to do this in my environment (Oracle Portal Version: 10.1.2.0.2 (Build: 150) ). Your mileage may vary.
    I created a procedure which includes the following:
        p_headingText IN VARCHAR2,
        p_fileName IN VARCHAR2,
        p_descriptionText IN VARCHAR2)
    is
        l_portalGuid VARCHAR2(50);
    begin
        select GUID into l_portalGuid from portal.wwv_things where ID = p_fileName;
        htp.p('<p class="PortletText1"><a href="http://[HOSTNAME]/pls/portal/url/item/' || l_portalGuid || '">' || p_headingText || '</a> ' || p_descriptionText || '</p>');
    end;This seems to work for me. (Sorry about the long line.) p_headingText, p_filename, and p_description are passed from the custom item type. Good luck!

  • LS/SQL item content not refreshed until I resave the properties of this ite

    Hi everybody.
    I have developed a page in OAS Portal containing several PL/SQL items in it. This items have procedures stored in the database, and they take the data from the database.
    The problem is that this items only take the information the first time, the rest of the times when I refresh the page, they always show the same information, they don`t refresh themselves!! The problem is because of the caching, they store the information in the OAS Portal cache and they always show the same information.
    The only way to solve it is to modify the call to the stored procedure (in the properties menu of the PL SQL item) and resave it. In this way, the next time the item will show the new information, but only for one time!!! The rest of the times the problem is always the same. i have also tried to modify the cache configuration in the page properties, but it doesn´t make anything.
    I have read several threads that deal about the same problem, but I do not have met any clear solution.
    Plase, can anybody give me some advice?.... or the solution??
    Thanks very much.
    Juan

    i have also tried to modify the cache configuration in the page properties
    Hey! I spoke about turning off Portal Cache and Web Cache!
    Portal Cache
    1. OAS EM: Portal:portal -> Portal Cache Settings -> Caching Off
    2. Restart HTTP_Server & OC4J_Portal
    Web Cache
    1. Portal: Administer -> Global Settings -> Cache -> Maximum Expiry Time 0 Minutes
    2. Maybe you need to invalidate items in cache... I forgot
    Of course, it's not the best workaround to turn off caches :-(((

  • Unable to display PL/SQL item

    Hi
    Why do I get this message whith this PL/SQL expression or function display only item /
    ORA-06550: Ligne 1, colonne 27 : PLS-00103: Symbole "DECLARE" rencontré à la place d'un des symboles suivants : ( - + case mod new not null avg count current exists max min prior sql stddev sum variance execute forall merge time timestamp interval date pipe
         Error      ERR-1020 Error in PLSQL item processing (function).
    This is the code :
    DECLARE X VARCHAR2 (4000);
    BEGIN
    x := 'SELECT NULL LINK, a.DATE1, b.pourcentage_remplissage
    FROM    EVV_'||:P13_SITE|| a, bassin_remplissage b
    ' WHERE CLEF_VAR = (SELECT CLEF_VAR FROM SITE_ECHELLE WHERE SITE='''||:P13_SITE||''')
    AND     round(a.valeur, 1) = b.cote_ngf
    AND     a.DATE1 BETWEEN
    TO_DATE ('''||:P13_DATE_DEBUT||'000000'', ''DD/MM/YYYYHH24MISS'') AND
    TO_DATE ('''||:P13_DATE_FIN||'235959'', ''DD/MM/YYYYHH24MISS'')
    ORDER BY DATE1';
    RETURN (X);
    END;Thank you for your kind help.
    Christian

    Christian from France,
    I miss a quitation mark between :P13_SITE|| and a, bassin
    I miss a quitation mark and a || between remplissage b and ' WHERE CL (or delete q.mark)
    Regards
    Andree

  • Sql item - get url from page

    Hi I'm trying to display a menu from a table, and then I want to mark the current page in that menu by reading the url of the current page.
    This is what i've got so far:
    DECLARE
    loc Varchar2(40);
    BEGIN
    loc := htp.script('document.url');
    htp.print('<table border=1>');
    for rec in (select id, name, parent_id, url from fgj_menu where parent_id=0) loop
       HTP.print ('<tr>');
       HTP.print ('<td><a href="' || rec.url || '">' || rec.name || '</a></td></tr>');
       for rec2 in (select id, name, parent_id, url from fgj_menu where parent_id = rec.id) loop
    if rec2.url = loc then
       HTP.print ('<tr>');
       HTP.print ('<td>  >> <a href="' || rec2.url || '">' || rec2.name || '</a></td></tr>');
    else
       HTP.print ('<tr>');
       HTP.print ('<td>    <a href="' || rec2.url || '">' || rec2.name || '</a></td></tr>');
    end if;
    end loop;
    END LOOP;
    htp.print('</table>');
    END;fails on 4th line :
    loc := htp.script('document.url');Any suggestions?
    Message was edited (format edits) by:
    Botzy

    Hi Botzy
    You can put your javascript code in an HTML portlet, but I prefer to put a page under htdocs, it's much easier to develop, and then use an url item that displays the url directly in the page.
    About the code :
    var xhr_object = null;
    if(window.XMLHttpRequest) // Firefox
         xhr_object = new XMLHttpRequest();
    else if(window.ActiveXObject) // IE
         xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
    xhr_object.open("POST", "/portal/pls/portal/my_schema.my_proc", true);
    xhr_object.onreadystatechange = function()
    if(xhr_object.readyState == 4) alert(xhr_object.responseText);
    xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
    xhr_object.send('p_param1=value1&p_param2=value2');
    That's really simple to use, you just have to change the name of your proc and its parameters, and you'll get what it "htp.prints". Be sure to grant exec to public on you proc.
    By the way, I've just imagined an even more simple solution :
    - do not pass any param to your procedure. Let it just write always the same code whatever the page it is on
    - identify each entry of your menu with a javascript id, for instance
    <table>
    <tr><td id="url1">page 1</td></tr>
    <tr><td id="url2">page 2</td></tr>
    etc...
    Then use a small javascript code at the end of your page with something lie this :
    document.getElementById(document.location.href).style = a different color
    or
    document.getElementById(document.location.href).innerHTML = something different
    or whatever you want.

  • PL/SQL for Items / Substitution Tags

    Is there any documentation listing how to retrieve the label / value / style for items (such as portal smart links) and substitution tags (used in page and content templates) using PL/SQL?
    For me, using items is good just to get something up and running, but I find I just don't have enough control over the final look and feel (all those TABLE/TR/TDs just kill me!) to produce a quality result. I'm thinking of something like the instant portal, which looks great, but AFAIK is entirely coded in custom PL/SQL.
    I've seen a few posts relating to "how do I get the XXX field", such as this one: Re: User first name, last name Information in welcome message so I guess there are some other users out there with the same problem.
    If this doco does not exist anywhere, maybe we could start a thread here (or on a wiki somewhere???) and people could add individual cases as they use them, and that way build up a quick reference for anyone to use.
    Cheers,
    Barney

    <No idea what happened to the formatting there - same post again>
    Nope - saw that.
    As I understand it, these are only available within either page templates or content layout templates. For instance, I can't even see a way to produce the simplest of welcome strings:
    Welcome #USER.FULLNAME# (#USER#)
    (and I'd really like it if #USER# returned the user id in the case it is stored in the OID, rather than converting it to upper case!)
    I can try to construct this out of items, but then I end up in a table/tr/td formatting hell.
    In this specific case, I can achieve this by constructing a content layout which displays this HTML but not the actual item content, and using it in a region with a single dummy item (the USER fields are not documented in the content layout section, but do appear to work), but then try to add the logout URL to the mix and I'm stuck again.
    Two solutions spring to mind to make this work:
    1. Improve the HTML Portlet to understand / translate these substitution tags
    2. Document how/where to get the info from. It's all on the database somewhere, and hence accessible via PL/SQL items.
    I don't hold out much hope of seeing (1) in the near future, so was going for (2).
    Cheers,
    Barney

  • Calling a java loaded API from PL/SQL

    HI,
    I have a java program loaded in the Database.
    For sake of clarity I am posting the java Program also.
    package mypackage1;
    public class WriteClob extends CLOB
    public static void main(String[] args) {
    Connection conn = null;
    String url = null;
    String user = null;
    String password = null;
    Properties props = new Properties();
    String fileName = null;
    String xml_test ="KINGSTON";
    StringBuffer s_xml = new StringBuffer();
    // PreparedStatement ps = null;
    OraclePreparedStatement ps=null;
    int ret_int=0;
    props.put("user", "apps" );
    props.put("password", "apps");
    long len=0;
    int temp;
    ResultSet rs = null;
    SimpleDateFormat fSDateFormat = null;
    props.put("SetBigStringTryClob", "true");
    long first=System.currentTimeMillis();
    url = "jdbc:oracle:thin:@ap619sdb:4115:owf12dev";
    user = "apps";
    password = "apps";
    try
    DriverManager.registerDriver(new OracleDriver()); // Get the database connection
    conn = DriverManager.getConnection( url, props );
    long second=System.currentTimeMillis();
    System.out.println("Time between conn. "+(second-first));
    first=System.currentTimeMillis();
    for (int i =0;i<1000;i++){
    s_xml.append(xml_test);
    second=System.currentTimeMillis();
    System.out.println("Time between loop "+(second-first));
    first=System.currentTimeMillis();
    ps =(OraclePreparedStatement) conn.prepareStatement("insert into xml_clob_temp1 values(:1)");
    ps.setString(1,s_xml.toString());
    ps.executeUpdate();
    second=System.currentTimeMillis();
    System.out.println("Time between loop "+(second-first));
    } catch(SQLException sqlexp){ sqlexp.printStackTrace(); }
    Now i am trying to create a procedure to call this Java API.
    create or replace package load_perf as
    procedure WriteClob ;
    end;
    create or replace package body load_perf as
    procedure WriteClob
    is
    language java name 'mypackage1.WriteClob.main(java.lang.String)';
    end;
    I have tried debugging this a lot and am not able to overcome this error while creating the procedure.
    LINE/COL ERROR
    3/1 PL/SQL: Item ignored
    5/15 PLS-00311: the declaration of
    "mypackage1.WriteClob.main(java.lang.String)" is incomplete or
    malformed
    I have earlier created Java APIs which have returned some value and have been able to load them in the DB and call through a PL/SQL function wrapper.
    But I am unable to create a procedure for this.
    I have tried all sorts of debugging but always am getting error around this.
    Can someone Please take a look at this Pronblem.
    Thanks In Advance,
    Gaurav

    A proper designed application in the database tier is far more scalable and performs better than using a separate middle tier for the application.
    This should be self evident.
    A middle tier requires more moving parts between the application and data. There now sits a network pipe between application and data. There are more software layers that slows down the interaction of the application with the data - more stuff that can go wrong. More stuff that needs to be maintained and configured and secured.
    What's more, the database tier is a lot more scalable than the middle tier. Oracle Real Application Clusters. Oracle Parallel Processing. Oracle Shared Server. Etc.
    These are robust and mature technologies.
    One major fact that seems to be missed by so-called IS architects favouring a middle tier is that the middle tier cannot make a single database query or transaction go faster.
    Scaling the middle tier is done by throwing more hardware at it. But not a single additional mid-tier h/w platform will make the database tier any faster. Will make the database tier scale.
    Then there is also the issue of costs. A middle tier requires additional hardware. It requires support and maintenance agreements with the vendors. It requires middle tier software to be purchased. It requires a new set of skills to do middle tier development. It deals with different technology and different programming languages.
    Why? How can this approach be sensible when:
    - Oracle scales exceedingly well (and this scalability is not dependent on more h/w purchasing)
    - Oracle deals with a single programming language (PL/SQL)
    - Oracle supports high availability
    - Oracle supports redudancy
    - Oracle supports the complete application tier inside the database
    If you have problems now leveraging Oracle (as an application tier), then you will have more problems when doing it a middle layer. Why?
    Because the lack of experience/skill/knowledge required to make Oracle work for you, is not now suddenly negated and not needed when moving the application tier to Java.

  • Call url in pl/sql code

    I am adding a pl/sql item in a content area. On click in this item i want to redirect in a page. This is the code i added.
    owa_util.redirect_url('http://www.oracle.com');
    The problem is that on click appears the message :
    << Location: http://www.oracle.com >> whithout explore the page i want (http://www.oracle.com)
    Does anybody knows the correct procedure in order to explore the url i want?

    OK. I found it. The procedure i want is portal30.wwv_redirect.url('http://...')

  • Mapping with dynamic sql

    Ok boys, another homework problem gone awry...
    I'm trying to create a mapping function to sort by NAME...here's the code:
    ----------CREATE MEMBER-----------------
    CREATE OR REPLACE TYPE BODY item_ot
    AS
      MEMBER FUNCTION mapping
       RETURN VARCHAR2
    IS
      lv_sorting VARCHAR2(100);
    BEGIN
    IF ITEM IS NOT NULL THEN
       lv_sorting:=ID||', '||NAME||', '||DESCRIPTION;
    ELSE
       lv_sorting:='No item exists.';
    END IF;
    RETURN lv_sorting;
    END;
    MAP MEMBER FUNCTION mapping RETURN VARCHAR2
    IS
    BEGIN
      RETURN name;
    END;
    END;
    /Here's the errors:
    3/19     PLS-00539: subprogram 'MAPPING' is declared in an object type
             body and must be defined in the object type specification
    6/26     PLS-00538: subprogram or cursor 'MAPPING' is declared in an
             object type specification and must be defined in the object type
             body
    8/2      PL/SQL: Statement ignored
    8/5      PLS-00201: identifier 'ITEM' must be declared
    15/12    PL/SQL: Item ignored
    15/12    PLS-00305: previous use of 'MAPPING' (at line 3) conflicts with
             this use
    15/21    PLS-00539: subprogram 'MAPPING' is declared in an object type
             body and must be defined in the object type specification----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    For good measure, here's the objects leading up to this point:
    ------------CREATE OBJECT TYPE-----------
    CREATE OR REPLACE TYPE item_ot AS OBJECT
      (ID  NUMBER(2),
       NAME   VARCHAR2(25),
       DESCRIPTION   VARCHAR2(100));
    -----------CREATE TABLE------------------
    CREATE TABLE bb_coffee
    (PRICE    NUMBER(6,2),
      TYPE     CHAR(1),
      ITEM     item_ot);
    ----------INSERT ROWS TO TABLE-----------
    INSERT INTO bb_coffee
    VALUES ( 38.00, 'E', item_ot(12, 'Cafe Press', 'Steel French Coffee Press'));
    INSERT INTO bb_coffee
    VALUES (10.00, 'c', item_ot(76, 'Espresso','Roasted Italian Style'));
    INSERT INTO bb_coffee
    VALUES (24.50, 'E', item_ot(44, 'Coffee Carafe', 'Thermal Insulated Carafe'));
    -----------ADD METHOD FOR SORTING-------
    ALTER TYPE item_ot
    ADD MAP MEMBER FUNCTION mapping RETURN VARCHAR2 CASCADE;

    Here's an example from Chapter 14 of Oracle Database 11g PL/SQL Programming that might help:
    CREATE OR REPLACE TYPE map_comp IS OBJECT
    ( who VARCHAR2(20)
    , CONSTRUCTOR FUNCTION map_comp (who VARCHAR2) RETURN SELF AS RESULT
    , MAP MEMBER FUNCTION equals RETURN VARCHAR2 )
    INSTANTIABLE NOT FINAL;
    CREATE OR REPLACE TYPE BODY map_comp IS
    CONSTRUCTOR FUNCTION map_comp (who VARCHAR2) RETURN SELF AS RESULT IS
    BEGIN
    self.who := who;
    RETURN;
    END map_comp;
    MAP MEMBER FUNCTION equals RETURN VARCHAR2 IS
    BEGIN
    RETURN self.who;
    END equals;
    END;
    DECLARE
    -- Declare a collection of an object type.
    TYPE object_list IS TABLE OF MAP_COMP;
    -- Initialize four objects in mixed alphabetical order.
    object1 MAP_COMP := map_comp('Ron Weasley');
    object2 MAP_COMP := map_comp('Harry Potter');
    object3 MAP_COMP := map_comp('Luna Lovegood');
    object4 MAP_COMP := map_comp('Hermione Granger');
    -- Define a collection of the object type.
    objects OBJECT_LIST := object_list(object1, object2, object3, object4);
    -- Swaps A and B.
    PROCEDURE swap (a IN OUT MAP_COMP, b IN OUT MAP_COMP) IS
    c MAP_COMP;
    BEGIN
    c := b;
    b := a;
    a := c;
    END swap;
    BEGIN
    -- A bubble sort.
    FOR i IN 1..objects.COUNT LOOP
    FOR j IN 1..objects.COUNT LOOP
    IF objects(i).equals = LEAST(objects(i).equals,objects(j).equals) THEN
    swap(objects(i),objects(j));
    END IF;
    END LOOP;
    END LOOP;
    -- Print reorderd objects.
    FOR i IN 1..objects.COUNT LOOP
    dbms_output.put_line(objects(i).equals);
    END LOOP;
    END;
    DROP TABLE persistent_object;
    CREATE TABLE persistent_object
    ( persistent_object_id NUMBER
    , mapping_object MAP_COMP );
    CREATE SEQUENCE persistent_object_s1;
    INSERT INTO persistent_object
    VALUES (persistent_object_s1.nextval,map_comp('Bilbo Baggins'));
    INSERT INTO persistent_object
    VALUES (persistent_object_s1.nextval,map_comp('Frodo Baggins'));
    INSERT INTO persistent_object
    VALUES (persistent_object_s1.nextval,map_comp('Peregrin Took'));
    INSERT INTO persistent_object
    VALUES (persistent_object_s1.nextval,map_comp('Meriweather Took'));
    INSERT INTO persistent_object
    VALUES (persistent_object_s1.nextval,map_comp('Sam "Wise" Gamgee'));
    SELECT map_comp().map
    FROM persistent_object
    ORDER BY 1;

  • Adding items to regions dinamically

    Hi,
    I create the following PL/SQL item in a region:
    DECLARE
    item_id NUMBER;
    BEGIN
    item_id := WWSBR_API.add_item(
    p_caid => 34,
    p_folder_id => 34293,
    p_display_name => 'Display name add_item',
    p_type_id => wwsbr_api.ITEM_TYPE_TEXT,
    p_type_caid => wwsbr_api.SHARED_OBJECTS,
    p_region_id => 3668,
    p_category_id => wwsbr_api.GENERAL_CATEGORY,
    p_category_caid => wwsbr_api.SHARED_OBJECTS,
    p_image_filename => '1905.GIF',
    p_image_alignment => wwsbr_api.ALIGN_LEFT,
    p_description => 'Description add_item',
    p_publish_date => '04-APR-03',
    p_expire_mode => wwsbr_api.PERMANENT
    END;
    The code should dynamically create an item. But I have the following error executing it:
    Error 30584: DBMS_SQL has raised an unhandled exception. ORA-29532: Java call terminated by uncaught Java exception: java.lang.NullPointerException
    Any suggestion?
    Thank you,
    Alessandro

    try 'p_type_id => wwsbr_api.ITEM_TYPE_FILE'.

  • Missing Shortcut under Conditionnal Item Display in popup window

    Just under each Condition Type in APEX, we have nice Shortcut Like [PL/SQL] [item=value] [item not null]...
    Do you know why you dont put these shortcuts in the popup windows in Conditional Item Display region when you active the Edit Links on the yellow bar ?
    I'm think is missing.
    Sylvain Michaud
    Homepage : http://www.insum.ca
    InSum Solutions' blog : http://insum-apex.blogspot.com

    Sylvain,
    Thanks for pointing this out. We'll fix it. Note that if you edit a "button item" you see these quick links.
    Scott

  • Developing portlets for dummies (sql queries)

    Hello, I've been trying to build a dynamic menu. First I went with just plain old plsql: i created a function in the portal schema that returns an unordered, nested list of the pages in my pagegroup and called that function in a regular pl/sql item on my portal page. I did this by querying the wwpob_page$ table and that went just great in my test&development setup (of which I am the admin of course :))
    Then I realized that since I'm not an administrator of the server hosting our portal and I only have very limited privileges (I am only a page group administrator) I will probably not be allowed to utilize this function nor will they agree to install it in the portal schema, and I decided I should build a portlet that does the same thing (so it can be registered and so on, and so it can use the synonyms and tools that are available to registered providers). There already is such a portlet (and provider) registered for use in the target portal, but I don't like it because i uses tables and hard-coded styles so I will cook my own, better version. :)
    So I downloaded an example portlet and am getting the hang of it, but now I just can't for the life of me figure out how to enable any sql-queries. I have run the provsyns-.sql script, logged in as test_provider/portal and installed my portlet-package as test_provider user. I can see the available pl/sql packages in Toad, but there are no tables or views for me to to see. That means I can't query the portal tables that I need to.
    edit: ok, stupid user error; I suck at using Toad, so I was looking at the wrong schema altogether :D So now i see the public views and packages, so forget that bit of the question.
    But still, I cannot see even wwsbr_all_folders -view, much less the wwpob_page$ -table. I cannot see any way to find the pages that are in my page group. Somehow it must be doable, right?
    Have I done something wrong, missed a step in enabling my test-provider / schema perhaps? I don't really know what I'm doing, but I followed instructions here: http://home.c2i.net/toreingolf/oracle/portal/my_first_plsql_portlet.htm (excellent instructions, thanks!)
    So should my portlet be able to access those tables or not? How the heck has the third partly portlet maker done it?
    i'm on OracleAS Portal 10g Release 2 (10.1.4)
    Edited by: Baguette on 23-Apr-2009 05:13
    Edited by: Baguette on 23-Apr-2009 05:32

    i see your perspective now. and let me give a perspective to my first reply too.
    what i proposed to you was the answer of what i quoted in the message. that is, why didn't you see those views in the new schema you created! and it is still ok but it is done in the portal schema for which you should have privielges too and i assumed you had. my mistake!
    now, i can relate your privacy concerns with your earlier message:
    Hello, I've been trying to build a dynamic menu. First I went with just plain old plsql: i created a function in the portal schema that returns an unordered, nested list of the pages in my pagegroup and called that function in a regular pl/sql item on my portal page. I did this by querying the wwpob_page$ table and that went just great in my test&development setup (of which I am the admin of course :))
    +Then I realized that since I'm not an administrator of the server hosting our portal and I only have very limited privileges (I am only a page group administrator) I will probably not be allowed to utilize this function nor will they agree to install it in the portal schema, and I decided I should build a portlet that does the same thing (so it can be registered and so on, and so it can use the synonyms and tools that are available to registered providers). There already is such a portlet (and provider) registered for use in the target portal, but I don't like it because i uses tables and hard-coded styles so I will cook my own, better version. :)+
    +So I downloaded an example portlet and am getting the hang of it, but now I just can't for the life of me figure out how to enable any sql-queries. I have run the provsyns-.sql script, logged in as test_provider/portal and installed my portlet-package as test_provider user. I can see the available pl/sql packages in Toad, but there are no tables or views for me to to see. That means I can't query the portal tables that I need to.+
    - by downloading an example portlet, you probably mean you created a new schema. because provsyns work on a schema.
    - if you are not the administrator of the portal, and may not be able to access some portions of the portal, it means that you do not use the portal user (the user which serves as the owner of the portal schema).
    - now, your plan to create a new schema and give those privielges would still not work. because, by creating a new schema you cannot sneak in to the oriignal portal schema if you do not have privileges to do it. obvious, right? otherwise, it would be a vulnerability of the software that you can see what you are not allowed to see by creating a new schema.
    - however, there is a bright side here. the views give records based on your privileges.
    - so if your administrators have generated them already or if they generate on the original portal schema, then you may see the pages and items that you have privileges to see and no more.
    so now, you may ask the administrators if they have already done it, and if not, then if they would be willing to do it.
    hope that helps!
    AMN

  • Public user sees old content of items in content area/portlets

    I have items in my Content Area, as pl/sql folders, text and pl/sql items. These are all published as portlets. Access is set to public. The content of these items have been altered a couple of times during development, and they work as they should when I4m logged in as a user.
    However, when I access these items (both directly by an url to the content area and by an url to the page containing the portlets) as the public user (not logged in), the content of these items is old. The content could be several weeks old, actually it is possible that the displayed content is the original content of the specific item (as it was when I first created the items).
    To me, it sounds like a cache issue, and I tried to set "Enable plsql caching" to "no", with no improvement.
    What can I do to solve this?
    /Sara

    You could try flushing the cache content by navigating to
    $ORACLE_HOME/Apache/modplsql/cache
    ..and deleting the directories and all content beneath them.
    This is guaranteed to cause a cache rewrite.
    You should also set your page cache settings to 'Dont Cache' which will guarantee that the cache is not being used.
    You can check the caching status of a portlet on a page by adding _debug=1 to the URL you are viewing.
    You can read more about it here..
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/OTN_CONTENT/MAINPAGE/ARCHITECTURE/TROUBLESHOOTING_ISSUES_IN_ORACLE9IAS_PORTAL2.HTM#31
    What patch/version are you running ?

Maybe you are looking for

  • Mac mini losing signal over vga when using adapter.

    At my church we are installing 2014 Mac minis in the classrooms and occasionally when we power them up the main display works perfect but the projector which is plugged in through the mini display port to vga adapter the screen will just be blue like

  • Purchasing an app

    How in the world does this website work?  I have repeatedly tried to purchase a crossword app, clicked on the "purchase" button, and it merely sends me back to the login over and over again.  It seems pretty stupid not to be able to purchase an app o

  • Importing business packages?

    Hello, Can anyone send me some link or doc which explains how i could import "Business Packages for Specialists" in EP 6.0? If there is any doc that is specifically meant for importing "Business Package for SAP CRM 4.0" then it would be really great.

  • MacBook Pro (version 10.7.5) got some features such as toolbar, mail, safari and other only in English

    After installing the MacKeeper (now uninstalled) in my MacBook Pro (version 10.7.5) got some features such as toolbar, mail, safari and other in English (use in Portuguese - Brazil). I've already set the System and Preferences> Language & Text, for u

  • Firewire Drive (miniStack)

    I just got my miniStack and am using it as my main drive so my question is can I wipe the internal drive and use it for more storage or should I keep a bootable system on there for safety?