Installiing OEHR Sample Objects

Hi,
I am trying to install the OEHR sample objects into my XE (http://oracle.su/docs/11g/appdev.112/e11945/about.htm) but keep getting this error message:
"ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful. ORA-01003: no statement parsed <pre>begin wwv_flow.g_import_in_progress := true; end; </pre> "
I am also not sure what I should select with File Character Set and for Parsing Scheme, I just used SYS. Could this be the reason?
Thanks in advance.
Sam

Hi user;
You are on wrong post site, please close your thread here as answered and move your issue to Forum Home » Database » Application Express which you can get more quick response
I also suggest check below doc
Oracle® Database Application Express Advanced Tutorials
http://download.oracle.com/docs/cd/B32472_01/doc/appdev.300/b32469/about.htm
http://www.mandsconsulting.com/apex-32-tutorial-preparation-and-oehr-sample-data-video-walkthrough
Regard
Helios

Similar Messages

  • Error installing OEHR sample objects for APEX 4.2

    Hello,
    I'm getting a weird error after importing the OEHR sample objects application from the script found at http://www.oracle.com/technetwork/testcontent/oehr-sample-objects-131098.zip
    The import process works, no errors, the application is created and so are the supporting objects.
    I then try to edit the application (using Application Builder). I click on the only page ("About") and it doesn't render. The message reads :
    Error during rendering of region "Page Rendering".
    ORA-01403: no data found
    If I try to run the application, I also get the same error (no data found). Which is bizarre, as this application is supposed to just show an "About" page.
    I don't really mind that the application doesn't work, since the supporting objects are created correctly, but I am worried that there could be a configuration problem that causes this issue...
    Has anyone else encountered this problem ?
    I'm running :
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    Application Express 4.2.2.00.11
    Other sample applications seem to run just fine. Very strange...
    Thanks very much !
    -Laura

    Hi Laura,
    As the name suggests, 'OEHR Sample Objects', is meant for importing of sample objects that are referenced in a number of OBEs and tutorials on APEX.  Those objects can then be used for the creation of the various applications and component examples in the tutorials, etc.  The application itself is not a functioning application, so the errors you see would be expected.  As stated in Chapter 3 of our 2 Day+ Application Developer's Guide, in the note at the end of section Importing the OEHR Supporting Objects:
    The OEHR Sample Objects application that you just installed functions solely as a way to install the sample objects needed to complete the exercises in this document. You will not directly use this application.
    If you wish to install sample applications, then I would recommend that you navigate to Application Builder > Packaged Applications, for the list of available packaged business productivity applications, as well as a number of sample code applications.  Please note that none of these applications are based upon the database objects that would have been created when you installed 'OEHR Sample Objects'.  Apologies for any confusion, but hopefully this helps to clarify things.
    Regards,
    Hilary

  • Installing OEHR Sample Objects

    INSERT INTO tony.oehr_employees VALUES
    ( 104
    , 'Bruce'
    , 'Ernst'
    , 'BERNST'
    , '590.423.4568'
    , TO_DATE('21-MAY-1991', 'dd-MON-yyyy')
    , 'IT_PROG'
    , 6000
    , NULL
    , 103
    , 60
    ORA-01843: not a valid month
    I checked
    select to_char(add_months(sysdate,-5),'MON') from dual;
    MAJ (In swedish)
    What parameter do I have to change so I can install the OEHR sample, NLS...?

    Hi Tobias,
    This is an error in the OEHR scripts (that the date value is not locale-neutral).
    Set your browser language to en-us and run the script again. After you submit the script, you should be able to set your browser language back. Sorry if this is a somewhat lame workaround.
    Joel

  • Errors when installing OEHR Sample Objects

    Has anyone seen this when running the 'oehr_sample_objects_installer.sql' for the 2dayplus application tutorial. I'm running Oracle 10g release 2 on HP-UX 11.11. I get a slew of other errors which I believe are stemming from this error.
    create tables
    CREATE TABLE oehr_customers
    ( customer_id NUMBER(6)
    , cust_first_name VARCHAR2(20) CONSTRAINT cust_fname_nn NOT NULL
    , cust_last_name VARCHAR2(20) CONSTRAINT cust_lname_nn NOT NULL
    , cust_address oehr_cust_address_typ
    , phone_numbers oehr_phone_list_typ
    , nls_language VARCHAR2(3)
    , nls_territory VARCHAR2(30)
    , credit_limit NUMBER(9,2)
    , cust_email VARCHAR2(30)
    , account_mgr_id NUMBER(6)
    , cust_geo_location MDSYS.SDO_GEOMETRY
    , CONSTRAINT oehr_cust_cl_max
    CHECK (credit_limit <= 5000)
    , CONSTRAINT oehr_customer_id_min
    CHECK (customer_id > 0)
    , CONSTRAINT oehr_customers_pk
    PRIMARY KEY (customer_id)
    ORA-00902: invalid datatype
    Any help would be appreciated. Thanks Chet.

    Sorry, I'm also getting this on the creation of the oehr_warehouses table
    CREATE TABLE oehr_warehouses
    ( warehouse_id NUMBER(3)
    , warehouse_spec SYS.XMLTYPE
    , warehouse_name VARCHAR2(35)
    , location_id NUMBER(4)
    , wh_geo_location MDSYS.SDO_GEOMETRY
    , CONSTRAINT oehr_warehouses_pk PRIMARY KEY (warehouse_id)
    ORA-00902: invalid datatype

  • OEHR Sample Objects incorrect installation

    Hi, i'm very new in this Apex world, i'm trying to follow the 2 Day + Application Express Developer’s Guide (http://www.oracle.com/technology/products/database/application_express/pdf/apex_datasheet_20.pdf) , one of the steps is download and install OEHR Sample Objects and also install supporting objects, i do that but in the installation summary i got the message telling me the installation occured with errors on: 'seed customers' and 'seed orders'. errors like "ORA-01843: not a valid month" and "ORA-02291: integrity constraint (ICOMS.OEHR_EMP_MANAGER_FK) violated - parent key not found".
    does any of you got the same message? is it a critical error?

    I can't find the link to download the OEHR Sample Objects as described in the link in this webpage:
    http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10498/get_start.htm#BABDJCJJ
    when i clicked the "Packaged Application" Link it did not show the download for the said OEHR Sample Object just as instructed in the link I've posted above.
    please advise.
    Edited by: 873152 on Jul 18, 2011 3:16 AM

  • OEHR Sample Objects Installation - ORA-00902: invalid datatype

    When I was trying to install the supporting objects, I received a CREATE TYPE privilege error previously. Then the DBA updated APEX to 2.2.1 to fix the problem. It did but know I'm gettingn ORA-00901:invalid datatype and othere errors with creating the tables, views,etc. Can somebody help me. I'm running APEX with database version 9.2

    Can somebody help me? I can not install the database objects. I get an invalid datatype error when the install script attempts to install the tables.
    Please help!

  • Newbie apex error when trying to install the OEHR Sample object.

    ORA-01653: unable to extend table FLOWS_030000.WWV_FLOW_ONLINE_HELP by 8 in tablespace APEX
    I got this error when trying to install.
    I will go back now and check the storage space.
    I could not find any error message on it.
    Thanks.Steve

    Just few minutes after asking this question on forum, I was able to find the workaround for opening the DashboardDesigner.exe.
    What I was trying earlier was that, In my "Business Intelligence Center" site,  i was trying to open the Dashboard Designer from "PerformancePoint Content" list by clicking "New Item" from "Items" tab in Ribbon.
    Instead Now I go to the connections library "Data Connections",  Go to "Documents" tab in Ribbon and then click on "New Document".
    Voila!
    Finally "DashboardDesinger.exe" opens up! :D
    Now from this designer application, I can add other Lists directly and can add "PerformancePoint Content" list for creating actual ScoreCards, Dashboards, KPIs etc.
    Happy Learning!
    Shri07

  • Installing OEHR application:  ORA-04023: Object APEX_030200.WWV_FLOW_INSTAL

    I am installing the OEHR Sample Objects application.
    I am getting the following error message after specifying “Supporting Objects”.
    I select “YES” and click Next
    Here is the error message:
    ORA-04023: Object APEX_030200.WWV_FLOW_INSTALL_WIZARD could not be validated or authorized
    Can you help?
    Thanks!

    I was able to fix it.
    I ran
    EXEC DBMS_UTILITY.compile_schema(schema => 'APEX_030200');
    This recompiled all object in the schema
    Thanks!

  • Learning APEX, need sample objects

    Hi, I've got the Oracle Database 2 Day+ Application Express Developer's Guide and I need the OEHR Sample Objects file. The guide says to goto http://www.oracle.com/technetwork/testcontent/oehr-sample-objects-131098.zip, then to OEHR Sample Objects, then download the zip file (unzip and extract). For the life of me, I cannot find this file. Have directory paths changed, is there any hope? I'd love to continue learning this app, asap. Thank you, anyone, for helpful information. Regards.

    Try the link without a comma at the end:
    http://www.oracle.com/technetwork/testcontent/oehr-sample-objects-131098.zip

  • Do me a favour and install the OEHR sample app on a 10.2.0.3 database

    Hello,
    Can someone out there install the OEHR sample application on to the following combination software:
    Oracle 10.2.0.3
    APEX 3.0.1.00.08
    I'm running on on AIX 5.2, but that shouldn't be an issue here.
    I just want someone to come back and say yes it all worked perfectly. It all installed and runs just as it says in the instructions. I've tried this install a dozen times now even building a completely new database and installing everything again from scratch and it still doesn't work.
    It all says it installs cleanly, but when I press the run application button after the install nothing happens and it asks me to install the supporting objects even though I've already done it and if I try to do it again it fails because everything is already there.
    In 10 years of being a DBA this is one of the most annoying issues I've ever come across ...
    Thanks,
    John.

    Hi John,
    I did so - just the other day on apex.oracle.com (which is 10.2.0.3). I tried it again this morning on an 11g database running APEX 3.0 and didn't have an issue. There's some rational explanation for this.
    1) When you go through the Install Supporting Objects wizard, are there any warnings about prerequisites at all?
    2) After the installation of supporting objects seems to succeed, do you end up with a page showing three icons and a message of "Your application's supporting objects have been installed"?
    3) What do you see when you click on the Install Summary? Does it show a total of 3,258 statements being executed? Any errors? If you browse the schema, does it appear that everything is installed?
    Joel

  • Error during installing the OEHR sample data application on Apex

    Hi,
    I have installed Oracle XE 10g edition and on the top I have installed Oracle Apex 3.2 on my laptop. I am able to login with SYSTEM as workspace and username and with password given during installation. I have created a user with developer and user privileges and tried to import the OEHR application in to the work space SYSTEM for the USER I have created. When I try to install the OEHR sample data I encounter with an error
    ***" ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful. ORA-01003: no statement parsed &lt;pre&gt;begin wwv_flow.g_import_in_progress := true; end; &lt;/pre&gt;"***
    Can any1 please suggest me, how to work around the issue and use the APEX installed on my laptop.

    Hi,
    my first try to install the OEHR sample data on Apex was also not successfull.
    After checking the User Guide and the Forum I increased the space quota of the waorkspace to 20MB and changed the language in the browser to en-us (see http://kr.forums.oracle.com/forums/thread.jspa?threadID=642849).
    The second try was then succesfull.
    Peter

  • Installing the sample schemas

    Hi I am new to sqlOracle
    I was trying to follow some Oracle tutorial,but i needed to install the sample schemas (OE-order entry) first
    http://www.oracle.com/technology/obe/obe1013jdev/common/OBEConnection.htm
    1. First i download the sample_schema_scripts.zip and extracted into the folder
    c:\schema that i created
    2. I start database from my database OracleEX10g
    3. go to the C:\schema that have the sql script (oe8_main.sql)
    4.use sqlplus
    5. login as system and put the password
    6. run the scripts oe8_main.sql with no problems
    7. it asked me for " specify password for oe8 as parameter 1:
    and i need to enter value for 1: which is i dont know
    8. i need to fil this value til parameter 6
    9. so i typed the value &1 for parameter 1 and &2 for parameter 2...til parameter 6
    10. it showned error:
    ERROR at line 1:
    ora-00988 : missing or invalid passwords(s)
    and user or role 'OE8" does not exist and
    ask me to enter value for database_name: which i dont know
    11. anyone can help to solve the problem and how can i know what are the passwords for 6 parameters
    12. Do i need to create my new user because i used system as a user
    13. this is the content of oe8_main.sql file attached:
    SET ECHO OFF
    PROMPT
    PROMPT specify password for oe8 as parameter 1:
    DEFINE pass = &1
    PROMPT
    PROMPT specify default tablespeace for oe8 as parameter 2:
    DEFINE tbs = &2
    PROMPT
    PROMPT specify temporary tablespace for oe8 as parameter 3:
    DEFINE ttbs = &3
    PROMPT
    PROMPT specify password for HR as parameter 4:
    DEFINE passhr = &4
    PROMPT
    PROMPT specify password for SYS as parameter 5:
    DEFINE pass_sys = &5
    PROMPT
    PROMPT specify path for log files as parameter 6:
    DEFINE log_path = &6
    PROMPT
    -- The first dot in the spool command below is
    -- the SQL*Plus concatenation character
    DEFINE spool_file = &log_path.oe8_main.log
    SPOOL &spool_file
    -- Dropping the user with all its objects
    DROP USER oe8 CASCADE;
    REM =======================================================
    REM create user
    REM
    REM The user is assigned tablespaces and quota in separate
    REM ALTER USER statements so that the CREATE USER statement
    REM will succeed even if the demo and temp tablespaces do
    REM not exist.
    REM =======================================================
    CREATE USER oe8 IDENTIFIED BY &pass;
    ALTER USER oe8 DEFAULT TABLESPACE &tbs QUOTA UNLIMITED ON &tbs;
    ALTER USER oe8 TEMPORARY TABLESPACE &ttbs;
    GRANT CONNECT TO oe8;
    GRANT RESOURCE TO oe8;
    GRANT CREATE MATERIALIZED VIEW TO oe8;
    GRANT QUERY REWRITE TO oe8;
    REM =======================================================
    REM grants from sys schema
    REM =======================================================
    rem KM: 01Aug02 - remove "AS SYSDBA" clause - NOT needed FOR GRANT
    CONNECT sys/&pass_sys&&database_name
    GRANT execute ON sys.dbms_stats TO oe8;
    REM =======================================================
    REM grants from hr8 schema
    REM =======================================================
    CONNECT hr8/&passhr&&database_name;
    GRANT REFERENCES, SELECT ON employees TO oe8;
    GRANT REFERENCES, SELECT ON countries TO oe8;
    GRANT REFERENCES, SELECT ON locations TO oe8;
    GRANT SELECT ON jobs TO oe8;
    GRANT SELECT ON job_history TO oe8;
    GRANT SELECT ON departments TO oe8;
    REM =======================================================
    REM create oe8 schema (order entry)
    REM =======================================================
    CONNECT oe8/&pass&&database_name
    ALTER SESSION SET NLS_LANGUAGE=American;
    ALTER SESSION SET NLS_TERRITORY=America;
    @@oe8_cre
    @@oe8_p_pi
    @@oe8_p_pd
    @@oe8_p_whs
    @@oe8_p_cus
    @@oe8_p_ord
    @@oe8_p_itm
    @@oe8_p_inv
    @@oe8_views
    @@oe8_comnt
    @@oe8_idx
    @@oe8_analz
    spool off

    Hi,
    HR sample schema already comes with Oracle XE, so you don't need to re-install it. Anyways ...
    C:\>sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.1.0 - Production on Sun Jun 22 12:58:20 2008
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SYS@XE> @C:\oraclexe\app\oracle\product\10.2.0\server\demo\schema\human_resources\hr_main.sql;
    specify password for HR as parameter 1:
    Enter value for 1: HR -- put here some password
    specify default tablespeace for HR as parameter 2:
    Enter value for 2: USERS
    specify temporary tablespace for HR as parameter 3:
    Enter value for 3: TEMP
    specify password for SYS as parameter 4:
    Enter value for 4: MANAGER -- password that you defined at Oracle XE installation
    specify log path as parameter 5:
    Enter value for 5: C:\
    User dropped.
    old   1: CREATE USER hr IDENTIFIED BY &pass
    new   1: CREATE USER hr IDENTIFIED BY hr
    User created.
    old   1: ALTER USER hr DEFAULT TABLESPACE &tbs
    new   1: ALTER USER hr DEFAULT TABLESPACE users
    old   2:               QUOTA UNLIMITED ON &tbs
    new   2:               QUOTA UNLIMITED ON users
    User altered.
    old   1: ALTER USER hr TEMPORARY TABLESPACE &ttbs
    new   1: ALTER USER hr TEMPORARY TABLESPACE temp
    User altered.
    Grant succeeded.
    Grant succeeded.
    Connected.
    Grant succeeded.
    Connected.
    Session altered.
    Session altered.
    ******  Creating REGIONS table ....
    Table created.
    Index created.
    Table altered.
    ******  Creating COUNTRIES table ....
    Table created.
    Table altered.
    ******  Creating LOCATIONS table ....
    Table created.
    Index created.
    Table altered.
    Sequence created.
    ******  Creating DEPARTMENTS table ....
    Table created.
    Index created.
    Table altered.
    Sequence created.
    ******  Creating JOBS table ....
    Table created.
    Index created.
    Table altered.
    ******  Creating EMPLOYEES table ....
    Table created.
    Index created.
    Table altered.
    Table altered.
    Sequence created.
    ******  Creating JOB_HISTORY table ....
    Table created.
    Index created.
    Table altered.
    ******  Creating EMP_DETAILS_VIEW view ...
    View created.
    Commit complete.
    Session altered.
    ******  Populating REGIONS table ....
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    ******  Populating COUNTIRES table ....
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    ******  Populating LOCATIONS table ....
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    ******  Populating DEPARTMENTS table ....
    Table altered.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    ******  Populating JOBS table ....
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    ******  Populating EMPLOYEES table ....
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    ******  Populating JOB_HISTORY table ....
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    Table altered.
    Commit complete.
    Index created.
    Index created.
    Index created.
    Index created.
    Index created.
    Index created.
    Index created.
    Index created.
    Index created.
    Index created.
    Index created.
    Commit complete.
    Procedure created.
    Trigger created.
    Trigger altered.
    Procedure created.
    Trigger created.
    Commit complete.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Comment created.
    Commit complete.
    PL/SQL procedure successfully completed.Cheers
    Legatti

  • Error when installing the supporting objects of OLL Packaged Application

    Hello,
    I am trying to install OLL Packaged Application|http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/apex/r41/inst_pkgapp/inst_pkgapp.htm#top
    but when installing the supporting objects, I got error when executing the code of "create_package_body"
    Error at line 274: PLS-00201: identifier 'UTL_TCP' must be declared
    create or replace package body eba_oll_log
    as
    g_start_time    number;
    procedure log_init
    is
    begin
        g_start_time := dbms_utility.get_time;
    end log_init;
    procedure log_page_view
    is
    begin
       insert into eba_oll_page_views
          ( APEX_USER,
            PAGE_ID,
            PAGE_NAME,
            VIEW_DATE,
            TS,
            ELAPSED_TIME,
            IP_ADDRESS,
            AGENT,
            APEX_SESSION_ID,
            CONTENT_ID,
            CONTENT_TITLE )
       values
          ( v('APP_USER'),
            v('APP_PAGE_ID'),
            wwv_flow.g_step_title,
            trunc(sysdate,'DD'),
            systimestamp,
            (dbms_utility.get_time-g_start_time)*(.01),
            owa_util.get_cgi_env('REMOTE_ADDR'),
            owa_util.get_cgi_env('HTTP_USER_AGENT'),
            v('APP_SESSION'),
            case when v('APP_PAGE_ID') = 24
                 then v('P24_CONTENT_ID')
                 else null
                 end,
            case when v('APP_PAGE_ID') = 24
                 then v('P24_CONTENT_TITLE')
                 else null
                 end );
       if v('APP_PAGE_ID') = 24 then
          insert into eba_oll_content_views
             ( APEX_USER,
               VIEW_DATE,
               TS,
               IP_ADDRESS,
               AGENT,
               APEX_SESSION_ID,
               CONTENT_ID,
               CONTENT_TITLE,
               NOTE )
          values
             ( v('APP_USER'),
               trunc(sysdate,'DD'),
               systimestamp,
               owa_util.get_cgi_env('REMOTE_ADDR'),
               owa_util.get_cgi_env('HTTP_USER_AGENT'),
               v('APP_SESSION'),
               v('P24_CONTENT_ID'),
               v('P24_CONTENT_TITLE'),
               'Viewed' );
       end if;
       commit;
    end log_page_view;
    procedure log_content_click
    is
    begin
       insert into eba_oll_content_views
          ( APEX_USER,
            VIEW_DATE,
            TS,
            IP_ADDRESS,
            AGENT,
            APEX_SESSION_ID,
            CONTENT_ID,
            CONTENT_TITLE,
            NOTE )
       values
          ( v('APP_USER'),
            trunc(sysdate,'DD'),
            systimestamp,
            owa_util.get_cgi_env('REMOTE_ADDR'),
            owa_util.get_cgi_env('HTTP_USER_AGENT'),
            v('APP_SESSION'),
            v('P24_CONTENT_ID'),
            v('P24_CONTENT_TITLE'),
            'Launched' );
       commit;
    end log_content_click;
    end eba_oll_log;
    create or replace package body eba_oll_api
    as
    function gen_id
       return number
    is
       l_id  number;
    begin
       select to_number(sys_guid(), 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
         into l_id
         from dual;
       return l_id;
    end gen_id;
    function eba_oll_tags_cleaner (
        p_tags  in varchar2,
        p_case  in varchar2 default 'U' ) return varchar2
    is
        type tags is table of varchar2(255) index by varchar2(255);
        l_tags_a        tags;
        l_tag           varchar2(255);
        l_tags          apex_application_global.vc_arr2;
        l_tags_string   varchar2(32767);
        i               integer;
    begin
        l_tags := apex_util.string_to_table(p_tags,',');
        for i in 1..l_tags.count loop
            --remove all whitespace, including tabs, spaces, line feeds and carraige returns with a single space
            l_tag := substr(trim(regexp_replace(l_tags(i),'[[:space:]]{1,}',' ')),1,255);
            if l_tag is not null and l_tag != ' ' then
                if p_case = 'U' then
                    l_tag := upper(l_tag);
                elsif p_case = 'L' then
                    l_tag := lower(l_tag);
                end if;
                --add it to the associative array, if it is a duplicate, it will just be replaced
                l_tags_a(l_tag) := l_tag;
            end if;
        end loop;
        l_tag := null;
        l_tag := l_tags_a.first;
        while l_tag is not null loop
            l_tags_string := l_tags_string||l_tag;
            if l_tag != l_tags_a.last then
                l_tags_string := l_tags_string||', ';
            end if;
            l_tag := l_tags_a.next(l_tag);
        end loop;
        return substr(l_tags_string,1,4000);
    end eba_oll_tags_cleaner;
    procedure eba_oll_tag_sync (
        p_new_tags          in varchar2,
        p_old_tags          in varchar2,
        p_content_type      in varchar2,
        p_content_id        in number )
    as
        type tags is table of varchar2(255) index by varchar2(255);
        l_new_tags_a    tags;
        l_old_tags_a    tags;
        l_new_tags      apex_application_global.vc_arr2;
        l_old_tags      apex_application_global.vc_arr2;
        l_merge_tags    apex_application_global.vc_arr2;
        l_dummy_tag     varchar2(255);
        i               integer;
    begin
        l_old_tags := apex_util.string_to_table(p_old_tags,', ');
        l_new_tags := apex_util.string_to_table(p_new_tags,', ');
        if l_old_tags.count > 0 then --do inserts and deletes
            --build the associative arrays
            for i in 1..l_old_tags.count loop
                l_old_tags_a(l_old_tags(i)) := l_old_tags(i);
            end loop;
            for i in 1..l_new_tags.count loop
                l_new_tags_a(l_new_tags(i)) := l_new_tags(i);
            end loop;
            --do the inserts
            for i in 1..l_new_tags.count loop
                begin
                    l_dummy_tag := l_old_tags_a(l_new_tags(i));
                exception when no_data_found then
                    insert into eba_oll_tags (tag, content_id, content_type )
                        values (l_new_tags(i), p_content_id, p_content_type );
                    l_merge_tags(l_merge_tags.count + 1) := l_new_tags(i);
                end;
            end loop;
            --do the deletes
            for i in 1..l_old_tags.count loop
                begin
                    l_dummy_tag := l_new_tags_a(l_old_tags(i));
                exception when no_data_found then
                    delete from eba_oll_tags where content_id = p_content_id and tag = l_old_tags(i);
                    l_merge_tags(l_merge_tags.count + 1) := l_old_tags(i);
                end;
            end loop;
        else --just do inserts
            for i in 1..l_new_tags.count loop
                insert into eba_oll_tags (tag, content_id, content_type )
                    values (l_new_tags(i), p_content_id, p_content_type );
                l_merge_tags(l_merge_tags.count + 1) := l_new_tags(i);
            end loop;
        end if;
        for i in 1..l_merge_tags.count loop
            merge into eba_oll_tags_type_sum s
            using (select count(*) tag_count
                     from eba_oll_tags
                    where tag = l_merge_tags(i) and content_type = p_content_type ) t
               on (s.tag = l_merge_tags(i) and s.content_type = p_content_type )
             when not matched then insert (tag, content_type, tag_count)
                                   values (l_merge_tags(i), p_content_type, t.tag_count)
             when matched then update set s.tag_count = t.tag_count;
            merge into eba_oll_tags_sum s
            using (select sum(tag_count) tag_count
                     from eba_oll_tags_type_sum
                    where tag = l_merge_tags(i) ) t
               on (s.tag = l_merge_tags(i) )
             when not matched then insert (tag, tag_count)
                                   values (l_merge_tags(i), t.tag_count)
             when matched then update set s.tag_count = t.tag_count;
        end loop;
    end eba_oll_tag_sync;
    procedure render_tag_cloud (
       p_selection          in varchar2 default null,
       p_app_id             in number,
       p_session_id         in number,
       p_min_nbr_tags       in number default 1,
       p_max                in number default 100,
       p_limit              in number default 10000,
       p_link_to_page       in varchar2 default '2',
       p_tag_item_filter    in varchar2 default 'P2_TAGS',
       p_clear_cache        in varchar2 default '2,CIR,RIR',
       p_more_page          in varchar2 default '62' )
    as
       l_printed_records    number := 0;
       l_available_records  number := 20;
       l_max                number;
       l_min                number;
       l_class_size         number;
       l_class              varchar2(30);
       type l_tagtype is table of varchar2(2000);
       l_tags l_tagtype;
       type l_numtype is table of number;
       l_cnts l_numtype;
       l_size number;
       l_total number :=0;
       l_buffer varchar2(32676);  
       CURSOR c_all_tags
       IS
           select tag, c from (
           select t.tag, count(*) c
             from eba_oll_content c,
                  eba_oll_tags t
            where c.content_id = t.content_id
              and c.display_yn = 'Y'
              and (p_selection is null or
                   (p_selection is not null and
                   (   (substr(p_selection,1,1) = 'R' and
                        substr(p_selection,2) in (select release_id
                                                    from eba_oll_content_products cp
                                                   where cp.content_id = c.content_id))
                    or (substr(p_selection,1,1) = 'C' and
                        substr(p_selection,2) in (select product_id
                                                    from eba_oll_content_products cp
                                                   where cp.content_id = c.content_id))
                    or (substr(p_selection,1,1) = 'P' and
                        (substr(p_selection,2) in (select product_id
                                                     from eba_oll_content_products cp
                                                    where cp.content_id = c.content_id) or
                         substr(p_selection,2) in (select p.parent_product_id
                                                     from eba_oll_content_products cp,
                                                          eba_oll_products p
                                                    where cp.content_id = c.content_id
                                                      and cp.product_id = p.product_id)))
                    or (substr(p_selection,1,1) = 'G' and
                        (substr(p_selection,2) in (select pg.group_id
                                                     from eba_oll_product_groupings pg,
                                                          eba_oll_content_products cp
                                                    where pg.product_id = cp.product_id
                                                      and cp.content_id = c.content_id) or
                         substr(p_selection,2) in (select pg.group_id
                                                     from eba_oll_product_groupings pg,
                                                          eba_oll_products p,
                                                          eba_oll_content_products cp
                                                    where pg.product_id = p.parent_product_id
                                                      and p.product_id = cp.product_id
                                                      and cp.content_id = c.content_id)))
            group by tag
           ) x where rownum < p_limit
                 and c >= p_min_nbr_tags
            order by upper(tag) ;
    begin
       -- Fetch tags into arrays
       open c_all_tags;
          loop
              fetch c_all_tags bulk collect into l_tags,l_cnts limit p_limit;
              exit;
          end loop;
       close c_all_tags;
       l_available_records := l_tags.count;
       -- Determine total count and maximum tag counts
       l_max := 0;
       l_min := 1000;
       FOR i in l_cnts.first..l_cnts.last loop
          l_total := l_total + l_cnts(i);
          if l_cnts(i) > l_max then
             l_max := l_cnts(i);
          end if;
          if l_cnts(i) < l_min then
             l_min := l_cnts(i);
          end if;
       end loop;
       if l_max = 0 then l_max := 1; end if;
       l_class_size := round((l_max-l_min)/6);
       -- Generate tag cloud --
       sys.htp.prn('<div class="tagCloud"><ul>');
       for i in l_tags.first..l_tags.last loop
           l_printed_records := l_printed_records + 1;
           if l_cnts(i) < l_min + l_class_size then
              l_class := 'size1';
           elsif l_cnts(i) < l_min + (l_class_size*2) then
              l_class := 'size2';
           elsif l_cnts(i) < l_min + (l_class_size*3) then
              l_class := 'size3';
           elsif l_cnts(i) < l_min + (l_class_size*4) then
              l_class := 'size4';
           elsif l_cnts(i) < l_min + (l_class_size*5) then
              l_class := 'size5';
           else l_class := 'size6';
           end if;     
           l_buffer := '<li><a class="'||l_class||'" href="'||
                  'f?p='||p_app_id||':'||p_link_to_page||':'||p_session_id||':::'||p_clear_cache||':'||
                  p_tag_item_filter||':'||htf.escape_sc(l_tags(i))||'">'||
                  htf.escape_sc(l_tags(i)) || '<span>' || l_cnts(i) || '</span></a></li>';
           sys.htp.prn(l_buffer);
           l_buffer := '';
           if  l_printed_records > p_max then
               exit;
           end if;
       end loop;
       sys.htp.prn('</ul></div>');
       -- print if there's more
       if l_tags.count - l_printed_records != 0 then
               htp.prn('<p><a href="f?p='||p_app_id||':'||htf.escape_sc(p_more_page)||
                     ':'||p_session_id||':::'||htf.escape_sc(p_more_page)||'">View all tags</a></p>');
       end if;
       exception when others then
          sys.htp.prn('<p>No tags found.</p>');
    end render_tag_cloud;
    procedure email_when_feedback (
       p_feedback_id  in  number,
       p_host_url     in  varchar2,
       p_app_id       in  number )
    is
       l_body       clob;
       l_body_html  clob;
    begin
    for c1 in (
       select f.feedback_comment, f.feedback_by,
              c.title, nvl(ct.feedback_contacts,'[email protected]') email
         from eba_oll_content_feedback f,
              eba_oll_content c,
              eba_oll_team ct
        where f.id = p_feedback_id
          and f.content_id = c.content_id
          and c.team_id = ct.team_id (+) )
    loop
       l_body := 'You have received feedback for a piece of content you own in the Oracle Learning Library (OLL) Application.
    Content: '|| c1.title || utl_tcp.crlf || '
    Feedback: '|| c1.feedback_comment || utl_tcp.crlf || '
    Left by: '|| lower(c1.feedback_by) ||'
    You can respond via the OLL Application, '||p_host_url||'f?p='||p_app_id||':47:::NO::P47_ID:' || p_feedback_id || '.';
       l_body_html := '<div style="border: 1px solid #DDD; background-color: #F8F8F8; width: 460px; margin: 0 auto; -moz-border-radius: 10px; -webkit-border-radius: 10px; padding: 20px;">
    <p style="font: bold 12px/16px Arial, sans-serif; margin: 0 0 10px 0; padding: 0;">
    You have received feedback for a piece of content you own in the Oracle Learning Library (OLL) Application.
    </p>
    <table style="width: 100%;" cellspacing="0" cellpadding="0" border="0">
    <tr>' || utl_tcp.crlf || '
    <td style="font: bold 12px/16px Arial, sans-serif; color: #666; padding: 0 10px 10px 0; vertical-align: top;">Content</td>
    <td style="font: normal 12px/16px Arial, sans-serif; padding: 0 10px 10px 0; vertical-align: top;"><a href="#" style="color: #000">'||c1.title||'</a></td>
    </tr>
    <tr>' || utl_tcp.crlf || '
    <td style="font: bold 12px/16px Arial, sans-serif; color: #666; padding: 0 10px 10px 0; vertical-align: top;">Feedback</td>
    <td style="font: normal 12px/16px Arial, sans-serif; padding: 0 10px 10px 0; vertical-align: top;">'||replace(c1.feedback_comment,CHR(10),'<br/>')||'</td>
    </tr>
    <tr>' || utl_tcp.crlf || '
    <td style="font: bold 12px/16px Arial, sans-serif; color: #666; padding: 0 10px 10px 0; vertical-align: top;">Left by</td>
    <td style="font: bold 12px/16px Arial, sans-serif; padding: 0 10px 10px 0; vertical-align: top;">'||lower(c1.feedback_by)||'</td>
    </tr>
    <tr>' || utl_tcp.crlf || '
    <td colspan="2" style="text-align: center; font: normal 12px/16px Arial, sans-serif; padding: 0 10px 10px 0; vertical-align: top;">
    <a href="'||p_host_url||'f?p='||p_app_id||':47:::NO::P47_ID:' || p_feedback_id ||'" style="display: block; padding: 10px; background-color: #EEE; font: bold 16px/16px Arial, sans-serif; color: #444">Respond to this Feedback</a>
    </td>
    </tr>
    </table>
    </div>';
       apex_mail.send (
          p_to        => c1.email,
          p_from      => '[email protected]',
          p_subj      => 'OLL - New Feedback for your team',
          p_body      => l_body,
          p_body_html => l_body_html );
    end loop;
    end email_when_feedback;
    procedure email_when_response (
       p_feedback_id  in  number,
       p_host_url     in  varchar2,
       p_app_id       in  number )
    is
       l_body       clob;
       l_body_html  clob;
    begin
    for c1 in (
       select f.feedback_comment, f.feedback_by, f.response, c.title
         from eba_oll_content_feedback f,
              eba_oll_content c
        where f.id = p_feedback_id
          and f.content_id = c.content_id )
    loop
       l_body := 'You have received a response to your feedback left in the Oracle Learning Library (OLL) Application.
    Content: '|| c1.title || '
    Feedback: '|| c1.feedback_comment || '
    Response: '|| c1.response || '
    You can also view this response via the OLL Application, '||p_host_url||'f?p='||p_app_id||':60:::NO::IR_ID:' || p_feedback_id || '.';
          l_body_html := '<div style="border: 1px solid #DDD; background-color: #F8F8F8; width: 460px; margin: 0 auto; -moz-border-radius: 10px; -webkit-border-radius: 10px; padding: 20px;">
    <p style="font: bold 12px/16px Arial, sans-serif; margin: 0 0 10px 0; padding: 0;">
    You have received a response to your feedback left in the Oracle Learning Library (OLL) Application.
    </p>
    <table style="width: 100%;" cellspacing="0" cellpadding="0" border="0">
    <tr>' || utl_tcp.crlf || '
    <td style="font: bold 12px/16px Arial, sans-serif; color: #666; padding: 0 10px 10px 0; vertical-align: top;">Content</td>
    <td style="font: normal 12px/16px Arial, sans-serif; padding: 0 10px 10px 0; vertical-align: top;"><a href="#" style="color: #000">'||c1.title||'</a></td>
    </tr>
    <tr>' || utl_tcp.crlf || '
    <td style="font: bold 12px/16px Arial, sans-serif; color: #666; padding: 0 10px 10px 0; vertical-align: top;">Feedback</td>
    <td style="font: normal 12px/16px Arial, sans-serif; padding: 0 10px 10px 0; vertical-align: top;">'||replace(c1.feedback_comment,CHR(10),'<br/>')||'</td>
    </tr>
    <tr>' || utl_tcp.crlf || '
    <td style="font: bold 12px/16px Arial, sans-serif; color: #666; padding: 0 10px 10px 0; vertical-align: top;">Response</td>
    <td style="font: bold 12px/16px Arial, sans-serif; padding: 0 10px 10px 0; vertical-align: top;">'||replace(c1.response,CHR(10),'<br/>')||'</td>
    </tr>
    <tr>' || utl_tcp.crlf || '
    <td colspan="2" style="text-align: center; font: normal 12px/16px Arial, sans-serif; padding: 0 10px 10px 0; vertical-align: top;">
    <a href="'||p_host_url||'f?p='||p_app_id||':60:::NO::IR_ID:' || p_feedback_id ||'" style="display: block; padding: 10px; background-color: #EEE; font: bold 16px/16px Arial, sans-serif; color: #444">View Response in OLL Application</a>
    </td>
    </tr>
    </table>
    </div>';
       apex_mail.send (
          p_to        => c1.feedback_by,
          p_from      => '[email protected]',
          p_subj      => 'Oracle Learning Library - Response to your Feedback',
          p_body      => l_body,
          p_body_html => l_body_html );
    end loop;
    end email_when_response;
    end eba_oll_api;
    /Error at line 274: PLS-00201: identifier 'UTL_TCP' must be declared
    Edited by: Fateh on Jan 13, 2012 7:32 AM

    Thanks & Sorry for not mentioning the full information about my environment.
    it was:
    Oracle 11g xe R2 on Windows 7 machine
    Apex listener deployed on Glass Fish server 3.1 on Windows 7 machine
    Apex 4.1
    Google Chrome
    So, to have OLL application worked locally . we need the following:
    grant execute on utl_tcp to [your_schema_name]And to
    Configure an Application Express Application as a Partner Application in Oracle AS Single Sign-On http://www.oracle.com/technetwork/testcontent/sso-partner-app-100552.html.
    I think I am going to install on my work space on apex.oracle.com.
    Regards,
    Fateh
    Edited by: Fateh on Jan 15, 2012 9:38 AM

  • Error Installing BI 7 cont "Cannot install BI content, Objects are missing"

    I am trying to activate all the infobjects in BI 7 for the Plant maintenance, QM and CS. While simulating the activation, I get the message:
    "Cannot install BI content, Objects are missing"
    Does anyone know what's going on?
    Thanks
    B

    What service pack are you on ?
    Try note 1019055
    Also - Are there any short dumps ?
    Message was edited by:
            A S

  • How to install the Sample Apps in Hyperion Financial Management 11.1.2.2?

    Hi,
    Could please anybody tell me how to install the Sample Applications in Hyperion Financial Management 11.1.2.2?
    The following is written in the Administration guide:
    If you did not install the sample files, you can obtain them by reinstalling Financial Management
    and selecting the Sample Applications component.
    I cannot find the “Sample Applications component” among components during installation process.
    There are only “Financial Management ADM driver”, “Financial Management Web Application” and “Financial Management: services”.
    Hope this helps,
    Thank you,
    Vadim

    After you install the sample application, all of the application extracts can be found under the below location.
    Oracle_Home\Middleware\EPMSystem11R1\products\FinancialManagement\Sample Apps and Starter Kits\Sample Apps

Maybe you are looking for