If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Reporting server question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-28-06, 13:39
anksagr anksagr is offline
Registered User
 
Join Date: Jul 2005
Posts: 102
Reporting server question

Hi all,

We have a database against which lot of reports are run because of our reporting needs during the day time. We are thinking to have a seprate reporting server to cater to these reporting needs.

Now the way these reports are run, it creates a temporary table everytime. Is it possible to create a view and have these resports run against this view everytime rather than having to create a temporary table. Will that be better for performance? If I am not wrong if the tables are updated , the associated view will also get updated automatically.

I would appreciate if all of you could give some suggestions on what to consider when setting up a reporting server.

ENV: AIX, DB2 UDB v8.1 FP 7, repoting engine to be used: JReport

Thanks
Reply With Quote
  #2 (permalink)  
Old 09-28-06, 14:09
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
No, In DB2 views do not exist as materialized tables separate from the base table.

Some other databases have materialized views, which are called materialized query tables (MQT) in DB2. There is only a perforamnce benefit if the MQTs are summaries of the base tables.

MQTs can get updated automatically whenever the base table changes (if you configure it that way) or can be udpated on a deferred basis.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 09-29-06, 04:22
istikhar istikhar is offline
Registered User
 
Join Date: Sep 2006
Posts: 19
HADR is one option to replicate the data on two different servers. Primary and secondary.
I am not sure about whether DB2 provide the facilty to replicate the data on multiple server some chaining etc, as I have seen there are two: primary server which is active and secondary server which is standby.

The secondary server can be used for reporting purposes.

This mitght solve your problem.

Solution about Performance Kill Temporary tables.

1) There is a need to optimize the database.
2) Bad indexing cause the creation
3) Need to refine the where clause in reports.

Istikhar Ahmad.
Reply With Quote
  #4 (permalink)  
Old 09-29-06, 11:13
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Quote:
Originally Posted by istikhar
HADR is one option to replicate the data on two different servers. Primary and secondary.
I am not sure about whether DB2 provide the facilty to replicate the data on multiple server some chaining etc, as I have seen there are two: primary server which is active and secondary server which is standby.

The secondary server can be used for reporting purposes.

This mitght solve your problem.

Solution about Performance Kill Temporary tables.

1) There is a need to optimize the database.
2) Bad indexing cause the creation
3) Need to refine the where clause in reports.

Istikhar Ahmad.
As of right now, you cannot connect to an HADR standby database. IBM has said that read-only access to a HADR standby database may be a future enhancement, but no date has been announcemed.


Tradtional replication and Q-Replication may be able to provide replication to stadby server to meet your reporting requirements.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #5 (permalink)  
Old 10-03-06, 10:08
anksagr anksagr is offline
Registered User
 
Join Date: Jul 2005
Posts: 102
Thanks for all your responses.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On