How to Define Statistics for a table
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


How to Define Statistics for a table Expand / Collapse
Author
Message
Posted 7/6/2009 2:56:59 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 8/31/2009 8:44:16 AM
Posts: 1, Visits: 6
Hi frndz,

I have to replicate the whole table from one database to another database.

I have created the table and copied the data as it is. Actual problem is that one datastage job is trying to collect the statistics of the table while the statistics are not defined for the table in the new database though they exist in old database.

Now I am trying to define the statistics on to the table in new database in the same way as how it is defined for same table in old database.

I need your kind help to achieve this. It would be of great help if anybody suggests. Please let me know if I am not clear at any point.
Post #16057
Posted 7/7/2009 6:57:26 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 7/7/2009 8:33:47 AM
Posts: 2, Visits: 3
Use help statistcs on to see what columns need to have stats collected on them. Then collect statistics on them manually. The next time you run your job it will collect them automatically
Post #16065
Posted 7/7/2009 10:20:24 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 9/4/2009 4:08:27 AM
Posts: 2, Visits: 15
You could always copy the table from one database to another complete with data and statistics.

CREATE TABLE database1.tablename AS database2.tablename WITH DATA AND STATISTICS;

Post #16070
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 3:38pm

Powered By InstantForum.NET v4.1.4 © 2009
Execution: 0.078. 8 queries. Compression Disabled.