What are the steps you take to tune(performance tuning) the code in plsql?

Answers were Sorted based on User's Feedback



What are the steps you take to tune(performance tuning) the code in plsql?..

Answer / dinesh kumar

Step 1: Use 3rd Normal form in Database design and create
Indexes in the table.

Step 2: Use Hints in the Query.

Step 3: Use Explain Plan and check for the cost

Step 4: Rewrite the Query to tune as per the Explain plan.

Step 5: Avoid Function based Indexes.

Is This Answer Correct ?    7 Yes 1 No

What are the steps you take to tune(performance tuning) the code in plsql?..

Answer / mathivanan

1.Create indexes
2.keep up to date statistics on tablese
3.Analyse execution plans using trace utilities
4.Make use of Bulk collect,For all,returning bulk collect into.
5.Use hints when necessary
6.Minimize datatype conversions
7.use PLS_INTEGER or BINARY_INTEGER for integer Arithmetic,use BINARY_FLOAT and BINARY_DOUBLE for floating-point arithmetic
8.pin frequently used packages in shared pool memory

Is This Answer Correct ?    2 Yes 0 No

What are the steps you take to tune(performance tuning) the code in plsql?..

Answer / varadarajsha

Using DBMS_PROFILER Package and API

Is This Answer Correct ?    0 Yes 1 No

What are the steps you take to tune(performance tuning) the code in plsql?..

Answer / sandeep

variable_first:=dbms_utility.get_time
variable_last:=dbms_utility.get_time;
dbms_output.put_line('elapsed time':var_first-var_last);

Is This Answer Correct ?    2 Yes 16 No

Post New Answer

More SQL PLSQL Interview Questions

What is a mutating table and a constraining table?

0 Answers  


Can we insert data into materialized view?

0 Answers  


What is scalar and vector?

0 Answers  


What is the purpose of a sql?

0 Answers  


What is cursor and why it is required?

0 Answers  






what are the advantages of using stored procedures? : Sql dba

0 Answers  


create a store procedure and created synonms for that store procedure after modify that store procedure will effect on synonms? If we delete the store procedure what happened to that synonms?

2 Answers   Polaris,


Why you are not able to create a table using select command,if it is having a LONG column? for eg:create table test as select * from test1 here test1 containg a column having LONG datatype...

1 Answers  


Does postgresql run on the cloud?

0 Answers  


How can we avoid duplicating records in a query?

0 Answers  


What is difference between joins and union?

0 Answers  


what is the difference between $message and $$message? : Sql dba

0 Answers  


Categories