Home » SQL & PL/SQL » SQL & PL/SQL » De-normalization of tables and explain Plan
De-normalization of tables and explain Plan [message #9417] Sun, 09 November 2003 22:51 Go to next message
Reema
Messages: 50
Registered: July 2003
Member
Hi All,
I would liek to know about De-Normalization i.e in what scenarios the databases are de-Normalized
Secondly, can anyboy provide me with some literature or link to same about explain plan.(The table structure of Plan_table, what r the alarming points in Expaian plan) and how should one go about analyzing explain plan.
Re: De-normalization of tables and explain Plan [message #9421 is a reply to message #9417] Mon, 10 November 2003 01:26 Go to previous messageGo to next message
Rij
Messages: 12
Registered: September 2003
Junior Member
Gimem some time for denormalisation. well u can goto tecthnet.oracle.com for literature

Plan table consists of the following columns
SQL> desc plan_table
Name Null? Type
------------------------------- -------- ----
STATEMENT_ID VARCHAR2(30)
TIMESTAMP DATE
REMARKS VARCHAR2(80)
OPERATION VARCHAR2(30)
OPTIONS VARCHAR2(30)
OBJECT_NODE VARCHAR2(128)
OBJECT_OWNER VARCHAR2(30)
OBJECT_NAME VARCHAR2(30)
OBJECT_INSTANCE NUMBER(38)
OBJECT_TYPE VARCHAR2(30)
OPTIMIZER VARCHAR2(255)
SEARCH_COLUMNS NUMBER
ID NUMBER(38)
PARENT_ID NUMBER(38)
POSITION NUMBER(38)
COST NUMBER(38)
CARDINALITY NUMBER(38)
BYTES NUMBER(38)
OTHER_TAG VARCHAR2(255)
PARTITION_START VARCHAR2(255)
PARTITION_STOP VARCHAR2(255)
PARTITION_ID NUMBER(38)
OTHER LONG
DISTRIBUTION VARCHAR2(30)
well looking at the field cost u can determine if ur query is efficient.
THe operation field tells u the type of statement u have written
Re: De-normalization of tables and explain Plan [message #9424 is a reply to message #9421] Mon, 10 November 2003 02:58 Go to previous messageGo to next message
Reema
Messages: 50
Registered: July 2003
Member
Hi Rij,
thanks for the reply. One more question...
How do I see the explain plan in the command prompt.
Re: De-normalization of tables and explain Plan [message #9434 is a reply to message #9424] Mon, 10 November 2003 17:21 Go to previous messageGo to next message
William Robertson
Messages: 1643
Registered: August 2003
Location: London, UK
Senior Member
In SQL*Plus, either SET AUTOTRACE ON or use EXPLAIN PLAN FOR, perhaps in a script such as xplan.sql.
Re: De-normalization of tables and explain Plan [message #9442 is a reply to message #9434] Mon, 10 November 2003 21:58 Go to previous messageGo to next message
Reema
Messages: 50
Registered: July 2003
Member
Hi William,
Whne I tried Set AutoTrace On.It gave the following errors.
SP2-0618: Cannot find the Session Identifier. Check PLUSTRACE role is enabled
SP2-0611: Error enabling STATISTICS report
How do I correct it..
Re: De-normalization of tables and explain Plan [message #9450 is a reply to message #9442] Tue, 11 November 2003 05:18 Go to previous message
Thiru
Messages: 1089
Registered: May 2002
Senior Member
Hope this will help you.

Previous Topic: query
Next Topic: displaying 80% column data
Goto Forum:
  


Current Time: Fri Apr 19 15:42:11 CDT 2024