Collect download statistics

Hi,
i would like to collect statistics about who has downloaded this or that file.
I've used the standard procedure on How-to:
CREATE OR REPLACE PROCEDURE "DOWNLOAD_THE_FILE" (p_file in number)
AS
v_mime VARCHAR2(48);
v_length NUMBER;
v_file_name VARCHAR2(2000);
Lob_loc BLOB;
v_user_id number;
BEGIN
SELECT TYPE_F, DOCUMENTO, DOCUMENT,DBMS_LOB.GETLENGTH(DOCUMENTO)
INTO v_mime,lob_loc,v_file_name,v_length
FROM file_table WHERE id = p_file;
htmldb_application.g_flow_id := 100;
if not wwv_flow_custom_auth_std.is_session_valid then
htp.p('Unauthorized access - file will not be retrieved.');
return;
end if;
owa_util.mime_header( nvl(v_mime,'application/octet'), FALSE );
-- set the size so the browser knows how much to download
htp.p('Content-length: ' || v_length);
-- the filename will be used by the browser if the users does a save as
htp.p('Content-Disposition: attachment; filename="'||substr(v_file_name,instr(v_file_name,'/')+1)|| '"');
-- close the headers owa_util.http_header_close;
-- download the BLOB wpg_docload.download_file( Lob_loc );
insert into log_table (id, doc_id, user_id, app_id, timestamp, event)
values (s_log_table.nextval,p_file, v('APP_ID') ,sysdate,'DOWNLOADED FILE', nvl(v('APP_USER'),USER));
end download_the_file;
I have a dynamic report on which i execute the download (here is a part of it):
A:=a||' case when visibility =''PUBL'' then '||
'''<a class="graph" href="#OWNER#.download_the_file?p_file=''||ID||''">'' when ...
but of course when i try to download the file via URL i get: v('APP_ID') --> null
nvl(v('APP_USER'),USER) --> HTMLDB_PUBLIC_USER because APP_USER is null.
How can i reach my scope and trap who has downloaded my file?
Thanks in advance
Antonio

Hi, i would like to collect statistics about who has downloaded this or that file.
I've used the standard procedure on How-to:
CREATE OR REPLACE PROCEDURE "DOWNLOAD_THE_FILE"
(p_file in number) AS
v_mime VARCHAR2(48);
v_length NUMBER;
v_file_name VARCHAR2(2000);
Lob_loc BLOB;
v_user_id number;
BEGIN
SELECT TYPE_F, DOCUMENTO, DOCUMENT,DBMS_LOB.GETLENGTH(DOCUMENTO)
INTO v_mime,lob_loc,v_file_name,v_length
FROM file_table WHERE id = p_file;
htmldb_application.g_flow_id := 100;
if not wwv_flow_custom_auth_std.is_session_valid then
htp.p('Unauthorized access - file will not be retrieved.');
return;
end if;
owa_util.mime_header( nvl(v_mime,'application/octet'), FALSE );
htp.p('Content-length: ' || v_length);
htp.p('Content-Disposition: attachment; filename="'||substr(v_file_name,instr(v_file_name,'/')+1)|| '"');
owa_util.http_header_close;
wpg_docload.download_file( Lob_loc );
insert into log_table (id, doc_id, user_id, app_id, timestamp, event)
values (s_log_table.nextval,p_file, v('APP_ID') ,sysdate,'DOWNLOADED FILE', nvl(v('APP_USER'),USER));
end download_the_file;
I have a dynamic report on which i execute the download (here is a part of it):
A:=a||' case when visibility =''PUBL'' then '|| ''''' when ...
but of course when i try to download the file via URL i get:
v('APP_ID') --> null
nvl(v('APP_USER'),USER) --> HTMLDB_PUBLIC_USER because APP_USER is null.
How can i reach my scope and trap who has downloaded my file?
Thanks in advance
Antonio

Similar Messages

  • Itunes music download statistics

    Working on a project.
    How can I get the itunes music download statistics by year and genre, etc?

    iTunes is using your feed at
    http://idisk.me.com/keith_bowden/Public/AuralPleasures.xml
    The other feed contains the redirect tag and if it's more than about two weeks since you placed it there you can remove this feed as no longer necessary (the extra delay is for the benefit of subscribers, to redirect their own iTunes applications).
    iTunes does not provide any sort of statistics. Whether it's possible to get the statistics from your server depends on whether it can offer the required facilities. This Apple Tech note briefly explains a method of doing this, and I'm afraid that as it's outside my experience I can't comment further on it.
    Feedburner may be able to provide statistics, though you would need to confirm this with them before proceeding. You would need to submit your feed to them; they would then make their own version of it (adding quite a lot of muck in the process, most of which shouldn't be a problem as iTunes will ignore it). You would then need to go through the redirect process again to redirect iTunes to the Feedburner feed.
    You should be aware that in doing this you lose control of your feed, and it's entirely possibly that should you ever want to redirect iTunes away from the Feedburner version you won't be able to.

  • How do I receive the promised CS 6 Master Collection download when I purchased and installed CS 5.5?

    How do I receive the promised free CS 6 Master Collection download when I purchased and installed CS 5.5 in April?

    Contact customer support. You are long beyond the claiming period for your upgrade which ended in August, but I'm sure they can work it out.
    Mylenium

  • CS4 - Master Collection download link

    I have a registered version on the master collection but purchased the disc version. My install disc is damaged and customer service says that they have no access to the download version of the product. Does anyone have a download version that I can get or the access portal that can be used for the download?
    Why Adobe can't give this to me is beyond me and so far everyone that I have talked to at tech support says that they don't have access to previous versions even though they must reside on their servers.
    Doug

    Try here, Doug:
    [blog URL edited out]
    It lists a bunch of stuff legally available for download directly from the Adobe ftp servers, such as:
    Adobe Creative Suite 4 Master Collection English Mac
    http://trials.adobe.com/Applications/MastCol/CS4/Mac/ADBESTAMCS4_LS1.dmg
    Adobe Creative Suite 4 Master Collection English Windows
    http://trials.adobe.com/Applications/MastCol/CS4/Win/ADBESTAMCS4_LS1.7z
    Adobe Creative Suite 4 Master Collection Content English Mac
    http://trials.adobe.com/Applications/MastCol/CS4/Mac/STAMCS4_Cont_LS1.dmg
    Adobe Creative Suite 4 Master Collection Content English Windows
    http://trials.adobe.com/Applications/MastCol/CS4/Win/STAMCS4_Cont_LS1.exe
    Adobe Creative Suite 4 Master Collection German Mac
    http://trials2.adobe.com/Applications/MastCol/CS4/Mac/ADBESTAMCS4_LS4.dmg
    Adobe Creative Suite 4 Master Collection German Windows
    http://trials2.adobe.com/Applications/MastCol/CS4/Win/ADBESTAMCS4_LS4.7z
    Adobe Creative Suite 4 Master Collection Content German Mac
    http://trials2.adobe.com/Applications/MastCol/CS4/Mac/STAMCS4_Cont_LS4.dmg
    Adobe Creative Suite 4 Master Collection Content German Windows
    http://trials2.adobe.com/Applications/MastCol/CS4/Win/STAMCS4_Cont_LS4.exe
    Adobe Creative Suite 4 Master Collection Japanese Mac
    http://trials.adobe.com/Applications/MastCol/CS4/Mac/ADBESTAMCS4_LS2.dmg
    Adobe Creative Suite 4 Master Collection Japanese Windows
    http://trials.adobe.com/Applications/MastCol/CS4/Win/ADBESTAMCS4_LS2.7z
    Adobe Creative Suite 4 Master Collection Content Japanese Mac
    http://trials.adobe.com/Applications/MastCol/CS4/Mac/STAMCS4_Cont_LS2.dmg
    Adobe Creative Suite 4 Master Collection Content Japanese Windows
    http://trials.adobe.com/Applications/MastCol/CS4/Win/STAMCS4_Cont_LS2.exe
    Wo Tai Lao Le
    我太老了
    Message was edited by: Tai Lao

  • Collecting Service Statistics

    Hi all,
    System Spec: Red Hat Enterprise Linux Server release 5.3 (Tikanga) 2.6.18 194.11.4.el5 (64-bit);
    Oracle Database 10g 10.2.0.4.0
    I have an application that connects to the db (ORADB1) over thin jdbc through a service called TEST1.
    The service was set up and started using the DBMS_SERVICE package. The SERVICE_NAMES parameter contains both the instance and service names i.e 'ORADB1,TEST1'
    The connect string works fine: @myhost:1527/TEST1. (Anything to do with non-standard port?)
    The application runs without any error but I am unable to collect any statistic for the service. If anything, in Enterprise Manager it looks as if the application is using the Oracle default SYS$USERS service.
    When I run the query: SELECT * FROM V$SERVICE_STATS WHERE SERVICE_NAME='TEST1', the values are all 0.
    Is there some way of specifying that a service should have statistics enabled?
    Thanks in advance.
    LG

    Hi harry76,
    I think you're pointing me in the right direction.
    USERNAME SERVICE_NAME
    GUKKLEO1 SYS$USERS
    USERTEST1                     SYS$USERS
    DBSNMP SYS$USERS
    GUKKLEO1 SYS$USERS
    DBSNMP SYS$USERS
    SYS$BACKGROUND
    SYS$BACKGROUND
    SYS$BACKGROUND
    SYS$BACKGROUND
    SYS$BACKGROUND
    SYS$BACKGROUND
    USERNAME SERVICE_NAME
    DBSNMP SYS$USERS
    SYS$BACKGROUND
    SYS$BACKGROUND
    SYS$BACKGROUND
    SYS$BACKGROUND
    SYS$BACKGROUND
    SYS$BACKGROUND
    SYS$BACKGROUND
    SYS$BACKGROUND
    SYS$BACKGROUND
    SYS$BACKGROUND
    USERNAME SERVICE_NAME
    SYS$BACKGROUND
    SYS$BACKGROUND
    SYS$BACKGROUND
    25 rows selected.
    The USERTEST1 session is still connected to SYS$USERS instead of TEST1 service. I've looged the user on with TEST1 service and the entry in the tnsnames.ora file is:
    TEST1=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=myhost.com)(PORT=1527))(CONNECT_DATA=(SERVICE_NAME=TEST1)))
    Have I missed a step to make sure the user logs on to TEST1?
    LG
    Edited by: leo gukk on Nov 29, 2010 12:27 AM
    Edited by: leo gukk on Nov 29, 2010 12:33 AM

  • Adobe CS5 Master Collection downloaded files extraction error

    Every time I download Adobe CS5 Master Collection, it give me this error, "A problem occued while extracting some files. Check available space on your computer and the write privileges on the destinition folder". I've 16.3GB free space in the drive in which I'm extacting this file and I'm logged in as Administrator.. I'm fadup of this... goosh its 4.45 GB.. Please help..

    where are you extracting the file?
    if you are extracting the file to program files try to change the path like c:\installer

  • CS6 master collection download and CC

    I have CS6 master collection. I just bought a new mac and I have been continuously trying to download on the new mac but every time it gets about 20 mins from finishing the download it says the connection has timed out and I cannot resume the download. It there anything else I can do? I have went through all the steps and troubleshooting and same thing happens every time. Could I upgrade from CS6 to CC? If so how much would that cost?

    We can't know. You have not told us anything about your Internet connection. Desperately scrambling for CC would be an act of foolishness and achieves nothing - how do you hope to download CC products, when you can't even get CS6? Whatever issues you have still need to be resolved, so check your Internet router, use a fixed cable instead of WLAN, tell your kids to not watch videos or download stuff while you are on the net, don't leave the building and move your mouse every now and then so your computer doesn't go into energy saving modes... Whatever does the trick...
    Mylenium

  • CS6 Master Collection Download

    The following programs did not download with my CS6 Master Collection. Bridge cs6, Media Encoder cs6, and Flashbuilder 4.6 Premium Edition. What do I need to do in order to get these software?

    Did you customize the installation to only install certain components?  By default all of the Master Collection applications are installed.  I would also recommend running the Adobe Support Advisor - http://www.adobe.com/support/loganalyzer/ to review your installation logs.

  • Having trouble downloading CS6 Master Collection Download.

    It seems that everything is fine until the download is complete.  Once file 1 of 2 is 6.2GB (File name MasterCollection_CS6_LS16 (1).7z) is downloaded I click to run and it says "to open this file, windows needs to know what program you want to use to open it...". The second download, 2 of 2, downloads fine and when i double click to run, a notice pops up asking if I want to run this file. I click run, and get error reading "The file archive part of Adobe CS6 Master Collection is missing. you need all parts in the same folder in order to extract Adobe CS6 Master Collection. Please Download parts."

    I placed both files into an "ADOBE" folder which I put on my desktop.
    File 1:
         Type: 7z File
         Size: 6,504,448 KB
    File 2:
         Type: Application
         Size: 1,031 KB
              (when I hover over the file name some addition information pops up - "file description: adobe extractor, Company: adobe systems incorporated, File Version: 1.0.2.1, Date Created: 8/15/2014, Size: 1MB")
    When I click the application file (not seeing exe anywhere) I still get "The file archive part of Adobe CS6 Master Collection is missing. You need all parts in the same folder in order to extract Adobe CS6 Master Collecton. Please download all parts."

  • CS6 Master Collection download exceeds 100% to 132%

    I'm trying to dowload CS6 Master Collection English-Arabic Enabled, but download exceeds 100% to 132% with adobe download assistant and it's still downloading and saying "less than a minute",
    I don't have a fast connection, it took me 3 days to reach 100% , with pauses, because of electricity blackouts (I live in Gaza, Palestine)
    it did not stop downloading upon reaching 100%, now it is 132% and still saying "less than a minute"
    I don't want to go through the nightmare to redownload, because there was no apparent problem with this download process, pausing and resuming should be supported by Adobe Download Assistant.  If i redownload, chances that this will happen again.
    is there a direct link so that i can use a more trustworthy download manager other than Adobe Download Assistant ?

    Hey there .o/
    From what I've read in other threads (for example here : http://forums.adobe.com/message/4620004 ) , the download manager displaying incoherent progression percentages is a known issue, but the download still should work at some point.
    Anyway, if you really don't trust the download manager and since you really need direct links that allow resuming, I'd say your best option is probably to use a FTP client.
    Run your favorite FTP client and :
    - open Adobe's public FTP ( ftp.adobe.com ), using anonymous login
    - navigate to the directory which contains the file you want ( unless I'm mistaken, it should be /pub/adobe/cs6/downloads/ )
    - initiate the download of the file you want ( MasterCollection_CS6_LS6.dmg , right ?)
    Any decent FTP client supports resuming (as long as the server itself allows it, which has to be the case).

  • Need the CS5.5 Master Collection Download

    Can anyone tell me how to get to the CS5.5 Master Collection (MAC) download? I'm a subscription holder. I can only find a dowload page for CS6.
    My computer crashed (literally, onto the ground ) and I couldn't get anything off my hard drive.
    Any help would be greatly appreciated!
    Thanks!
    EM

    I think you didn't scrolled down the page , here is the page link :-
    http://prodesigntools.com/adobe-cs5-5-direct-download-links.html
    Do read the instructions properly to avoid any error message.

  • Reinstalling Photoshop With Master Collection Downloaded

    Hello, I ran into an error unexpectedly that said Photoshop was missing files.I then uninstalled it and am now trying to figure out how to reinstall it.
    I have a copy of the master collection and i just downloaded Photoshop again from the bridge. Do i have to use my master collection key for it to work? Or would i have to uninstall the entire master collection and download it all again?

    It depends is your serial number for Master Collection?  If so then you will need to install Photoshop through the Master Collection installer.  You can customize your installation however so that only Photoshop installs.

  • Where is the CS6 Master Collection download page?

    I have CS6 Master Collection on my old computer, and wish to download it onto my new one (Windows 8).
    I've reviewed past forums on here and links the provided seem to be outdated/expired/etc. Howerever, if I've simply missed one, please feel free to shoot the link this way.
    I see how to download individual CS6 programs separately, but wish to download the collection as a package.
    Thanks!
    T

    This information appears to be up-to-date:
    http://forums.adobe.com/thread/1244543?tstart=0

  • How big is the Master Collection download

    I need to know how big the download is going to be for the Creative Suite 5.5 Master Collection for Mac. I have a mobile internet connection with a download limit and I need to know if I can download the product inside this limit or if I'm going to get charged crazy rates for going over.

    Hi,
    The download file size for Master Collection CS5.5 (Mac) is about 6.14 GB.
    It is not advisable to use a prepaid or pay as you go Internet connection to download the file if it exceeds the download limit.
    Hope this helps.
    Thanks

  • Using 'Design Standard' serial number with 'Master Collection' download.

    Hey, i was trying to download design standard, but couldnt find it with the download assistant.
    The only thing i could see that was a 'collection' was the master collection.
    So i asked someone on Adobe live chat wether i could just download master collection then input my design standard serial, and they seemed to think it would work.
    When i enter the serial i get the following message:
    "We are unable to validate this serial number for CS6 Master Collection. Please contact customer support."
    not really sure what to do, will i need to downlaod design standard instead?

    i think customer support missed that one.
    adobe serial numbers are product specific.  you can't activate a trial of one product to a full version of another product.
    you need design standard cs6.  here it is:  http://www.adobe.com/cfusion/tdrc/index.cfm?product=design_standard
    if you have a download assistant issue and need to download directly, follow all 7 steps and dl from here: http://prodesigntools.com/adobe-cs6-direct-download-links.html

Maybe you are looking for