Solved

StoriingStaticHTMLReport

Posted on 2011-02-22
6
268 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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.
Via a live example, show how to take different types of Oracle backups using RMAN.
This video shows how to recover a database from a user managed backup

726 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