Solved

StoriingStaticHTMLReport

Posted on 2011-02-22
6
267 Views
Last Modified: 2012-05-11
I have a webpage html report created a SP (pl/sql) that basically displays derived stock inventory numbers stored in a reporting table and are calculated every night.

I have a requirement to take a snapshot of this report and store it as static HTML report in a table.
The snapshots I want are every 3 months. so for this year i need a copy 3/31/3011, 6/30/2011, 9/30/2011, 12/31/2011, etc.

I should also display a link to call each static report archived.

I was thinking of creating:
1) A table to store the webpages when the reprot is run every 3 months.
2) a stored procedure that calls the current webpage and save the HTML to a CLOB variable that is inserted into the table.
3) a job that runs every 3 months.

Any ideas on the best way to design and code this.


0
Comment
Question by:sam15
  • 3
  • 3
6 Comments
 
LVL 48

Accepted Solution

by:
schwertner earned 500 total points
ID: 34959502
0
 

Author Comment

by:sam15
ID: 34990011
Great Link. After I use the procedure dump_clob to store the HTML, I need to display a URL that displays the page. is there a procedure download_html or download_clob for that?
0
 
LVL 48

Expert Comment

by:schwertner
ID: 34992087
You can keep the URL in a separate column in the table you store the HTML.
Under the same primary key. You do not need CLOB to store the URL.
The VARCHAR2 data can store up to 4000 bytes that is enough.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:sam15
ID: 34992263
Yes, I will store the URL in same table. But the URL needs to download the HTML file stored in CLOB to the browser. My application uses MOD_PLSQL.

I think it would be similar to this except the download here use BLOB field

http://www.oracle-base.com/articles/9i/FileUploadDownloadProcedures9i.php

0
 
LVL 48

Expert Comment

by:schwertner
ID: 35010665
BLOBs are used because possibly the HTML paga contains some noncharacter components (like pictures).
0
 

Author Comment

by:sam15
ID: 35014304
No, I think it is  because MOD_PLSQL only supports file upload/downloads for BLOBS only.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ASP.NET(C#) Eliminating weekends from a date range 2 45
error in my cursor 5 41
xss alert in domino url 9 34
oracle collections 2 22
Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question