Solved

StoriingStaticHTMLReport

Posted on 2011-02-22
6
269 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
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 

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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

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.
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

707 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