Monday, July 30, 2012

Teradata Journaling mechanisam



Journaling is data protection and disaster recovery mechanism for Teradata database. It maintains Pre-Image and Post-image of any DML Transaction.

There are 3 different types of journals available in Teradata. They are

1. Transient Journal  - This maintains current transaction history. Once the query is successful it deletes entries from its table.  If the current query transaction fails, It rolls back data from this table.

2. Permanent Journal  - This is defined when a table is created.  It can store BEFORE or AFTER image of tables. Both BEFORE and AFTER copy can also be maintained as DUAL Journal.
Permanent Journal maintains complete history of table. Permanent journal is maintained for critical table and a database can have one permanent journal, Permanent journal is used basically for Point-in-time recovery in case of accidental data loss, and this resembles redo mechanism in oracle.

3. Down AMP recovery Journal (DARJ)  - Down AMP recovery Journal  activates automatically when a AMP goes down. It is used with fallback protected table to maintain any change made on table during AMP is unavailable. When failed AMP is brought online the restart process applies all the changes to recovered AMP using DARJ. 

Friday, July 20, 2012

Data warehouse and it's stages


Data warehousing combines data from multiple, usually varied, sources into one comprehensive and easily manipulated database. Different methods can then be used by a company or organization to access this data for a wide range of purposes. Analysis can be performed to determine trends over time and to create plans based on this information. Data warehouse usually store detail data of an enterpirse.
Companies commonly use data warehousing to analyze trends over time. They might use it to view day-to-day operations, but its primary function is often strategic planning based on long-term data overviews. From such reports, companies make business models, forecasts, and other projections. Routinely, because the data stored in data warehouses is intended to provide more overview-like reporting, the data is read-only.
There has been an information evolution happening in the data warehouse environment in recent past. Changing business requirements have placed demands on data warehousing technology to do more things faster. Now Data warehouses have evolved from back room strategic decision support systems to operational, business-critical components of the enterprise. Expectation from data warehouse has evolved to real-time decision.
Various stages of data warehouse evaluation can be summarized as below
Stage 1 Reporting: The initial stage typically focuses on reporting from a single view of the business to drive decision-making across functional and/or product boundaries. Questions are usually known in advance, such as a weekly sales report.
Stage 2 Analyzing: Focuses on why something happened, such as why sales went down or discovering patterns in customer buying habits. Users perform ad-hoc analysis, slicing and dicing the data at a detail level, and questions are not known in advance.
Stage 3 Predicting: Analysts utilize the system to leverage information to predict what will happen next in the business to proactively manage the organization's strategy. This stage requires data mining tools and building predictive models using historical detail. As an example, users can model customer demographics for target marketing.
Stage 4 Operationalizing: Providing access to information for immediate decision-making in the field enters the realm of active data warehousing. Stages 1 to 3 focus on strategic decision-making within an organization. Stage 4 focuses on tactical decision support. Tactical decision support is not focused on developing corporate strategy, but rather on supporting the people in the field who execute it.
Examples:
  • Inventory management with just-in-time replenishment.
  • Scheduling and routing for package delivery.
  • Altering a campaign based on current results.
Stage 5 Active Data Warehousing: The larger the role an ADW plays in the operational aspects of decision support, the more incentive the business has to automate the decision processes. You can automate decision-making when a customer interacts with a web site. Interactive customer relationship management (CRM) on a web site or at an ATM is about making decisions to optimize the customer relationship through individualized product offers, pricing, content delivery and so on. As technology evolves, more and more decisions become executed with event-driven triggers to initiate fully automated decision processes.
Example: determine the best offer for a specific customer based on a real-time event, such as a significant ATM deposit.