?
Solved

Questions about XML type databases

Posted on 2013-02-07
6
Medium Priority
?
328 Views
Last Modified: 2013-02-28
Hello all,

There is a  database which is of type xml ..i mean all the tables are xml tye and it contaings huge blob data.  The application team are running a process and it is running for more than one day.. so  have to increase the performance of that.. hiow can i check the stats on that table and how can i update the stats.  when i query like the regular tables to check the stats...it is not showing anything

like this.so please advise how to handle xml type tables/databases

select last_analyzed from dba_tables where table_name ='PS_IN_DEMAND_ADDR';
sql>no rows selected
0
Comment
Question by:bhanu823
[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
  • 2
6 Comments
 
LVL 77

Expert Comment

by:slightwv (䄆 Netminder)
ID: 38865217
>>sql>no rows selected

This means you don't have a table called 'PS_IN_DEMAND_ADDR'.  At best you get a null value for last_analyzed.

>>so please advise how to handle xml type tables/databases

The answer to this depends on how the XML is being used/accessed.

For example, "The application team are running a process and it is running for more than one day",  What is this doing?
0
 

Author Comment

by:bhanu823
ID: 38865259
whn i look up the toad the table is there. the tables are  there but dont know hot to update the stats or to check
0
 
LVL 77

Expert Comment

by:slightwv (䄆 Netminder)
ID: 38865268
>>whn i look up the toad the table is there.

Then DBA_TABLES should see it.

>>but dont know hot to update the stats or to check

Checking is with last_analyzed column of dba_tables.  There are other important columns in there as well but this will tell you when it was done.

As for updating them, check the online docs for DBMS_STATS.

Until we know more about what the app is doing, I cannot suggest what stats you might need to collect.

What makes you think it is a stats issue?
0
Technology Partners: 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!

 
LVL 32

Expert Comment

by:awking00
ID: 38865334
>>The application team are running a process and it is running for more than one day.. so  have to increase the performance of that<<
Do you have xmlindexes on your tables?
0
 
LVL 77

Expert Comment

by:slightwv (䄆 Netminder)
ID: 38865349
>>Do you have xmlindexes on your tables?

I'm thinking that until we know what the process is doing with the XML, xmlindexes may not be any benefit.
0
 
LVL 32

Accepted Solution

by:
awking00 earned 1500 total points
ID: 38865405
slightwv,
I agree with you. The reason I was asking was that xmlindexes can dramatically reduce performance if inserts are being made, but greatly enhance performance if data is being extracted, which is where I was heading with the next question if the answer to the first was yes.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
Suggested Courses

771 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