Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to improve the performance of a pl/sq stored procedures
or functions or triggers and packages ?

Answer Posted / rajnish chauhan

Follow the steps for performance SQL Tunning.
1) First of all tables structure should be in normalization form.
2) Then Index and tables Statistics should be upto date.
3) make it different tables table space for tables and index.
4) Avoid unnecessary joins from the query.
5) Avoid Full Table Scan and Index Skip scan.if query fetching less then 15% records from the table then index scan faster then FTS.and FTS is better then index scan if tables consist larg no of data because Index scan read multiple time on each row where as FTS read single time for each row.
6)monitor Plan through Explain plan or TKPROFF.
7)Table ordering also improve the performance of the query like.Master table should take first place then after Transaction table.
8) Check index path used or not in explain plan .if not then check weather index enable or not.then use Index Hint to forcefully used.
9)Avoid function on index column.
10) other small things you can apply like use Having instead of Where clause , use Exists then IN , use Substring instead of <> caluse.

Thanks

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many scalar data types are supported in pl/sql?

1027


What is the difference between a procedure and a function?

1084


Is primary key an index?

985


What is meaning of <> in sql?

1056


Explain commit, rollback and savepoint.

982


Why partition by is used in sql?

1014


What is index example?

991


Is and as keyword in pl sql?

942


Can I copy :old and :new pseudo-records in/to an oracle stored procedure?

1194


what does it mean to have quoted_identifier on? : Sql dba

1131


What is group by in sql?

1074


What are some predefined exceptions in pl/sql?

1143


Which join is default?

935


how to dump a table to a file with 'mysqldump'? : Sql dba

1022


What is sql partition?

1083