Get Application Id during supporting objects installation

Is there any possibility to get the APP_ID (Application ID) during the installation of the supporting objects?
Iam writing some version information in a application table which says which version is installed and the application id would also ne nice to save.

flavioc wrote:
If you go to Administration>Manage Services>Request Storage, then you click on:
Detailed Tablespace Utilization Report (may take several seconds)
what do you get as amount used and amount free?
Flavio
http://oraclequirks.blogspot.com
http://www.yocoya.com/pls/apex/f?p=YOCOYA:TOOLS:0
Thanks,
Now it works without any problemes
DubluDi

Similar Messages

  • Calling Substitution Strings in Supporting Object Installs

    So, for lack of a better way of putting it, I have a need to have user input durring the script install part of the supporting objects. I would like to use the Substitution String prompts but can not figure out where it stores the values durring install. It looks as if the system does not commit it to tbl until after the install scripts are done.
    I need to create some views that have a different Databaselink based on site location and want the supporting object install scripts to prompt for the name so I can use it in the install process.
    Testing on APEX 4.0.1 Oracle 11g
    Thanks for any help.

    K, found something out. It does store it in a page variable P2103_SS_VALUES and can be called out using v('P2103_SS_VALUES') in the install scripts.

  • Getting an error during AIA 11g installation

    We are getting following error while installing AIA11g on Windows-32bit machine. This machine has a working setup of Oracle SOA suite 11g (V11.1.1.3.0) and admin server, managed server and node manager, all 3 were running at the time of AIA installation.
    weblogic.nodemanager.server.Handler handleDomain
    WARNING: I/O error while reading domain directory
    java.io.IOException: The filename, directory name, or volume label syntax is incorrect
    at java.io.WinNTFileSystem.canonicalize0(Native Method)
    at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:396)
    at java.io.File.getCanonicalPath(File.java:559)
    at weblogic.nodemanager.server.NMServer.getDomainManager(NMServer.java:2
    52)
    at weblogic.nodemanager.server.Handler.handleDomain(Handler.java:224)
    at weblogic.nodemanager.server.Handler.handleCommand(Handler.java:108)
    at weblogic.nodemanager.server.Handler.run(Handler.java:70)
    at java.lang.Thread.run(Thread.java:619)
    Any pointers to resolve this error are really appreciated.
    Thanks.

    You can try running the setup.exe with the -novalidation option. This should allow you to go through without issues at this stage.

  • Installation of Supporting objects fails

    I have upgraded successfully to APEX 3.1. I can successfully import packaged applications.
    Now when I try to import this particular application from packaged applications named discussion_forum_installer_0.92.sql, it successfully
    imports the first step, that is importing the definations.
    but when I move on to the next step, i.e install the supporting objects, I get the following error message
    The following prerequisite checks failed. Installation of this application's supporting objects cannot continue until these
    issues are resolved.
    To continue installation after addressing the errors, navigate to the Supporting Object Definitions of this application and
    click INSTALL in the Supporting Objects Installation section.
    Alternatively, you can deinstall the application definition and reinstall after resolving these issues.
    Available Space in KB: 2,624
    I even tried to install the supporting objects seperately, still the same problem exists.
    Please help!!

    I resolved this issue by setting the shared_pool_size to 100M. Previously it was 84M (default, I guess). This was mentioned as one of the pre-steps before installing APEX. But the install went well, just this packaged application was giving errors. Once I increased the size of shared_pool_size, life was good.
    Just answering if someone else ran into such issues

  • Getting error during the Oracle9i installation "Oracle9i Database Release 2 (9.2.0.1.0) for Compaq Tru64 machine"

    Hi All,
    Getting follwing error during the Oracle9i installation “Oracle9i Database Release 2 (9.2.0.1.0) for Compaq Tru64 machine"
    u01/app/oracle/product/9.2.0/install/make.log
    - Linking Oracle
    rm -f /u01/app/oracle/product/9.2.0/rdbms/lib/oracle
    cc  -L/u01/app/oracle/product/9.2.0/lib/ -L/u01/app/oracle/product/9.2.0/rdbms/lib -o /u01/app/oracle/product/9.2.0/rdbms/lib/oracla
    ld:
    load_whole_file: Could not malloc 31328. bytes, for /u01/app/oracle/product/9.2.0/lib//libn9.a(asndata.o), didnt attempt to mmap
    Stop.
    *** Exit 1
    While checked the memory details in the machine its showing plenty of free virtual memory.
    # ps aux
    USER PID %CPU %MEM   VSZ  RSS TTY      S STARTED         TIME COMMAND
    oracle     1353 0.6 27.2  601M 555M pts/2    S N  09:14:07 5:49.67 /tmp/OraInstall2014-01-21_09-14-02AM/jre/bin/../bin/alpha/native_threads/java -Doracle.installe
    root       3033 0.0  0.4 10.4M 7.7M pts/0    R  + 10:59:44 0:00.06 ps aux
    oracle     1351 0.0  0.0 2.46M 320K pts/2    I N  09:14:02 0:01.36 ksh /tmp/OraInstall2014-01-21_09-14-02AM/installer -Doracle.installer.library_loc=/tmp/OraInsta
    oracle     1277 0.0  0.0 2.48M 312K pts/2    I  + 09:02:44 0:00.04 -ksh (ksh)
    root       1269 0.0  0.0 2.56M 232K pts/2    I    09:01:23 0:00.01 -sh (sh)
    root       1268 0.0  0.0 5.31M 768K ??       I    09:01:22 0:00.11 /usr/bin/X11/xterm -ls
    root 1  0.0  0.0  608K  96K ?? IL   08:45:31     0:00.08 /sbin/init -a
    root 0  0.0  3.9 2.52G  79M ?? R <  08:45:31     0:23.16 [kernel idle]
    And I have rebooted the machine still also getting the same error.
    Is there any way to resolve this issue??
    Regards
    prasanta

    Pl elaborate the business / technical reason for installing a 15+ year old unsupported software on a 15+ year old unsupported hardware, assuming you are installing an a supported OS version
    HTH
    Srini

  • Unable to install supporting objects(custom CSS/Images) through SQL

    4.2.1
    Hi there,
    we have a Apex app which uses custom CSS/images loaded into shared objects CSS and image folders respectively. I followed the steps
    http://nerd.net.au/29-apex-application-express/general-application/122-include-images-with-supporting-objects-on-apex-export-import
    Now, this works fine when we manually import the application through application builder, it "prompts" if we want to install supporting objects, when yes is selected, everything gets installed.
    MY problem is we have an automated patching process where the .sql application file gets installed but the supporting objects are not. So I tried bundling the supporting object as a separate .sql file but got an error
    Testing options PL/SQL procedure successfully completed. declare * ERROR at line 1: ORA-20001: Package variable g_security_group_id must be set. ORA-06512: at "APEX_040200.WWV_FLOW_IMAGE_API", line 11 ORA-06512: at "APEX_040200.WWV_FLOW_IMAGE_API", line 31 ORA-06512: at
    The supporting object is a button. Do I need to set the application id or security group id or something else?
    begin
    wwv_flow_api.g_varchar2_table := wwv_flow_api.empty_varchar2_table;
    wwv_flow_api.g_varchar2_table(1) := '89504E470D0A1A0A0000000D494844520000009600000051080600000030EC5FEE000000097048597300000B1300000B1301009A9C1800000A4D6943435050686F746F73686F70204943432070726F66696C65000078DA9D53775893F7163EDFF7650F56';
    wwv_flow_api.g_varchar2_table(2) := '42D8F0B1976C81002223AC08C81059A21092006184101240C585880A561415119C4855C482D50A489D88E2A028B867418A885A8B555C38EE1FDCA7B57D7AEFEDEDFBD7FBBCE79CE7FCCE79CF0F8011122691E6A26A003952853C3AD81F8F4F48C4C9BD80';
    wwv_flow_api.g_varchar2_table(3) := '021548E0042010E6CBC26705C50000F00379787E74B03FFC01AF6F00020070D52E2412C7E1FF83BA50265700209100E02212E70B01905200C82E54C81400C81800B053B3640A009400006C797C422200AA0D00ECF4493E0500D8A993DC1700D8A21CA908';
    wwv_flow_api.g_varchar2_table(4) := '008D0100992847240240BB00605581522C02C0C200A0AC40222E04C0AE018059B632470280BD0500768E58900F4060008099422CCC0020380200431E13CD03204C03A030D2BFE0A95F7085B8480100C0CB95CD974BD23314B895D01A77F2F0E0E221E2C2';
    wwv_flow_api.g_varchar2_table(5) := '6CB142611729106609E4229C979B231348E7034CCE0C00001AF9D1C1FE383F90E7E6E4E1E666E76CEFF4C5A2FE6BF06F223E21F1DFFEBC8C020400104ECFEFDA5FE5E5D60370C701B075BF6BA95B00DA560068DFF95D33DB09A05A0AD07AF98B7938FC40';
    wwv_flow_api.g_varchar2_table(6) := '1E9EA150C83C1D1C0A0B0BED2562A1BD30E38B3EFF33E16FE08B7EF6FC401EFEDB7AF000719A4099ADC0A383FD71616E76AE528EE7CB0442316EF7E723FEC7857FFD8E29D1E234B15C2C158AF15889B850224DC779B952914421C995E212E97F32F11F96';
    wwv_flow_api.g_varchar2_table(7) := 'FD0993770D00AC864FC04EB607B5CB6CC07EEE01028B0E58D27600407EF32D8C1A0B91001067343279F7000093BFF98F402B0100CD97A4E30000BCE8185CA894174CC608000044A0812AB041070CC114ACC00E9CC11DBCC01702610644400C24C03C1042';
    wwv_flow_api.g_varchar2_table(8) := '06E4801C0AA11896411954C03AD804B5B0031AA0119AE110B4C131380DE7E0125C81EB70170660189EC218BC86090441C8081361213A8811628ED822CE0817998E04226148349280A420E988145122C5C872A402A9426A915D4823F22D7214398D5C40FA';
    wwv_flow_api.g_varchar2_table(147) := 'A514B7B6B6EA5AADA60B8582EAECEC54511471BD5EE7BEBE3EBF4E108FCA58FE9601580A68199FDAF12F8D1DDB5E3386221ADD8E3AF3CEC772A73505D60820C32BF0238E6DAF5D508DBAFFF2CFACE20C3E9A03E2789F3430B68D6DAF641BF33D8D6D63C0';
    wwv_flow_api.g_varchar2_table(148) := '1ADBC68035B68D016B6C1BDBC68035B6BD46B6FF3B0074B1DD40306DC6CD0000000049454E44AE426082';
    end;
    declare
        l_name   varchar2(255);
    begin
        l_name := 'logo.png';
      wwv_flow_api.create_or_remove_file(
         p_name=> l_name,
         p_varchar2_table=> wwv_flow_api.g_varchar2_table,
         p_mimetype=> 'image/png',
         p_location=> 'WORKSPACE',
         p_nlang=> '0',
         p_mode=> 'CREATE_OR_REPLACE',
         p_type=> 'IMAGE');
    end;
    /

    Thanks Fac586! I did follow the process on those lines and was able to successfully get the images, application installed. The CSS which just had
    body {
         background-color:#000000;
    }Was also applied. However, it for some reason does not work. Looks like the CSS is not getting loaded. When I delete the CSS and upload it again through the shared components->CSS folder, it works fine. Not sure what the solution is!
    Oh and by the way, thanks a ton for helping everyone!
    Cheers,
    Ryan

  • Supporting objects was not installed successfully from the APEX 3.2 to 4.1

    Hi, gurus:
    greetings! I have a question regarding migrating application from 3.2 to 4.1. I need to migrate an application in a APEX 3.2 workspace to a new workspace of APEX 4.1. I exported the application from the APEX 3.2 workspace and imported it again to workspace of APEX 4.1, everything works fine except supporting objects was not installed successfully, and the application cannot show images. Could anyone give me a hint to find the cause and solution?
    Thanks a lot!
    Sam

    Hi, Tony:
    Nice to see you again! :) It proved out that was due to the wrong file format, I should choose UNIX file format to export my application from APEX 3.2 workspace instead of choosing DOS file format to export. Though I am still confused, Why this does matter? I used to export and import with random file type, as long as I keep consistency of file type for export and import, it never give me trouble like this.
    I got the following error message
    The following prerequisite checks failed. Installation of this application's supporting objects cannot continue until these issues are resolved.
    To continue installation after addressing the errors, navigate to the Supporting Object Definitions of this application and click INSTALL in the Supporting Objects Installation section.
    Alternatively, you can deinstall the application definition and reinstall after resolving these issues.
    Object Names:     EBA_CUST_ACTIVITY_TYPES, EBA_CUST_ADMINISTRATORS, EBA_CUST_ASSOCIATIONS, EBA_CUST_CATEGORIES, EBA_CUST_CONTACTS, EBA_CUST_CONTACT_TYPES, EBA_CUST_CUSTOMERS, EBA_CUST_CUST_ACTIVITY, EBA_CUST_LINKS, EBA_CUST_STATUS, EBA_CUST_VIEWS_LOG, EBA_CUST
    Sam
    Edited by: lxiscas on Dec 11, 2012 7:06 AM

  • I have tried uninstalling and installing itunes several times following the outlined tutorial. During part of the installation i get a message that recommends me get in contact help/support and concludes with HRESULT:0x800736B3

    I have tried uninstalling and installing itunes several times following the outlined tutorial. During part of the installation i get a message that recommends me get in contact help/support and concludes with HRESULT:0x800736B3 ...................any ideas?

    The links on this Support page may be of help: http://www.apple.com/support/itunes/install/

  • HT3986 i get a black screen during windows 7 installation on bootcamp 5.0.1

    i get a black screen during windows 7 installation on bootcamp 5.0.1 , it wont install

    Hi wb2009,
    I haven't found that the TV would be an issue, but did find an article that states to not have extra USB devices connected.
    Boot Camp: Windows installation boots to black screen with blinking cursor
    http://support.apple.com/kb/TS4536
    The Windows installation may boot to a black screen with a blinking cursor. This can occur if you use a USB optical drive or USB Flash drive for the Windows installation and another USB device is also connected to the computer.
    There's another article that mentions Windows XP or Vista that may apply.
    Archived - Boot Camp: Start up to black screen after installing Windows
    http://support.apple.com/kb/TS2600
    Thank you for visiting Apple Support Communities.
    Nubz

  • Just update to Pages 5.1 - its dropped the pictures from my Pages files - 'Some features aren't supported - objects in table cells were removed' - how do I get pictures back?

    Just update to Pages 5.1 - its dropped the pictures from my old Pages files - 'Some features aren't supported - objects in table cells were removed' - how do I get the pictures back?

    Thanks Peter
    Can you just walk me through dumping Pages 5 and getting to the Applications/iWork folder - and does this mean that when I see future Pages Upgrades I should block them?
    I'm new to Apple so need a step by step
    Many thanks
    Glyptic

  • How to edit the installation scripts in the supporting objects

    I wanted to update one of the installation scripts in the supporting objects. I clicked into that script and use the "script editor" tab. After editing the script, I clicked "Apply Changes" button. It redirected me to the upper level of the page. When I reopen the script, the content of this script is messed up and has the content of another script, not what I have changed. What could happen with it? There is one case that the script was all wiped out!
    One general question, how can I easily update the install scripts and reload it without export and import the whole application? or Can I?
    Thanks
    Fengting

    Fengting,
    I am not sure what causes this, but I have had the same issue with shared components >> report queries. Sometimes if you have multiple report queries it becomes impossible to edit any of them. If I remember correctly I tried using a different browser and everything seemed to work ok. I was using Firefox when I was having the issue.
    Sorry this is not an answer, but I feel your pain!
    Cheers,
    Tyson Jouglet

  • After installing the new Lion OSX, I get "power PC applications no longer supported" on things. How to fix?

    After installing the new Lion OSX, I get "power PC applications no longer supported" on things. How to fix?

    Silly rabbit wrote:
    Ah, you didn't read the fine print on installing Lion, did you? None of your old software will run in Lion.
    You have two choices:
    A) Buy all new or updated software
    B) Partition the hard drive and install an older version of OSX to run your older apps.
    You did not give us any idea of what PowerPC apps you were running, so additional options:
    C)  Restore to Snow Leopard
    D)  Install Snow Leopard (and Rosetta which runs PowerPC apps) in Parallels 7 in Lion:
    Installation instructions here:
    http://forums.macrumors.com/showthread.php?t=1365439

  • Many years ago synced iCal with Microsoft program. Since installing Lion whenever I try to create an event in iCal it flashes up message "Unable to open Microsoft sync services Power PC applications no longer supported." How do I get rid of message?

    Many years ago synced iCal with Microsoft program. Since installing Lion whenever I try to create an event in iCal it flashes up message "Unable to open Microsoft sync services Power PC applications no longer supported." How do I get rid of message?

    Lion no longer supports PowerPC apps. If this is Microsoft Office 2008 (Entourage 2008) then you should disable the syncing services.  (I don't have Office 2008 installed anymore so I don't know exactly what it's called anymore.)  If you have Microsoft Office 2004 or earlier, then it can't be run on Lion at all since Lion removed Rosetta, which is what allowed a PPC app to run on an Intel based Mac.
    Also, I believe Microsoft removed sync services from the current Outlook 2011 (which replaces Entourage) so even upgrading to a newer version of Microsoft Office will not get you back that calendar sync feature.  Supposedly Microsoft is working on a new syncing system, but I wouldn't hold my breath.

  • 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

  • Keep getting "Fatal error during installation" messages on install of 7.0 SP1

    Hi,
    I keep getting the following error on installation (dialogue box) on Win2K
    of WLS 7.0.1.0:
    "Fatal error encountered during file installation. The installer will now
    cleanup and exit! [file size error for E:\ ...]"
    While this looks like an obvious file download error I have pulled down the
    full download 3 times and the network download once and it keeps happening.
    Note that when the installer first starts it says it's doing a checksum
    check and this passes OK. The errors only occur during individual file
    installation. What's more is that it occurs at different points in the
    install process (any time between about 20% and 60% completed).
    Weird. Note that I have previously had WLS installed on my system before.
    Any ideas much appreciated.
    regards
    --malcolm

    Hi Malcolm:
    you were getting -- "[file size error for E:\ ...]"
    the installation worked on the C: drive.
    > Yes I have a number of partitions C: thru E: with D: being System part (C:
    > is Win 95 parition with Win2k boot on it too), D: E: are NTFS. E drive has
    > used 10GB and 1.5GB free.
    Since I cannot see your system and explore the used and free space, and I am not a
    Windows 2000 file management expert, I can only speculate on the causes.
    Maybe your E: drive is very fragmented and Windows cannot find enough clusters or chunks
    to let this complete. The Win95 partition is a FAT16 format; the others are NTFS.
    Perhaps there is more free space on C:, or Windows can better get what it needs when
    allocated in smaller portions.
    Where is the "platform701_win32.exe" file when you execute it?
    I am wondering if it is stored on a FAT16 drive.
    Are you using PartitionMagic? Can you give more space to E: or change cluster sizes?
    I asked about the swapfile because I am thinking about areas that grow and shrink, and
    could cause trouble at varying points as you described. So, there are TMP and TEMP ?
    Later,
    Wayne
    Malcolm Robbins wrote:
    "Wayne W. Scott" <[email protected]> wrote in message
    news:[email protected]...
    Malcolm Robbins wrote:
    Wayne,
    are you there? Any ideas?Yes. I didn't see any follow-ups for awhile, then I was very busy at theoffice.
    Your downloaded file is probably okay, but I will compare to one of mine.
    Including yours here for my own reference.
    ====
    file = platform701_win32.exe
    checksum = 3657019252 (as reported by cygwin)
    size = 283,279 KB (win2k) or 290076933 bytes (as reported by cygwin)
    ====
    "Fatal error encountered during file installation. The installer will now
    cleanup and exit! [file size error for E:\ ...]"
    * I'll bet you are running out of space on the E: drive!
    Is E: one of your partitions? How much free space is on it?Yes I have a number of partitions C: thru E: with D: being System part (C:
    is Win 95 parition with Win2k boot on it too), D: E: are NTFS. E drive has
    used 10GB and 1.5GB free.
    Are you telling it to use the E: drive?Yes.
    Can you use C: ?I suppose I could try, if that matters ???!!!
    --- I just tried it and it all worked!!! Why is this? I don't really want
    to keep it on C:
    Where is the Windows swapfile?It's on D:
    Please search your system -- all drives -- for 'registry.xml' and show
    what is found.
    Wayne

Maybe you are looking for

  • Airport & D-link DI-624

    Hello. I've just bought a macbook. And rest of my family are using PC. So, is it possible to combine Airport/Airtunes and a Wireless D-link router (802.11g, 802.11b Compatible? Web: http://www.dlink.com/products/?pid=6 . I was planning to play my med

  • Change PR details in PO creation

    Hi, When we are creating a PO that originates from a PR, it doesnt allow us to edit the Account assignment anymore.  Is it possible for us to still edit the accoung assignment after adopting the PR in PO creation? thanks, Paula

  • With my correct info, I can't purchase additional mb's onto my ipad. Any advice?

    With my correct info, I can not purchase additional megabytes onto my ipad. Any suggestions?

  • IPod iTouch will not start

    My iPod iTouch froze during sync and now won't start.  I tried resetting it by holding down HOME button and LOCK button at the same time for 10 seconds, but nothing happened after many tries.  I tried plugging it to other USB ports, I tried 2 differe

  • Problem with SAVE_TEXT FM

    Hello, I am having a problem with using the SAVE_TEXT FM. Here is the scenario. I am trying to populate the Long Text on a PM work order component line for a reservation. Prior to populating this field, no text will exist in this field. I create the