Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: SQL*Plus and PL/SQL >> How to use hints

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: How to use hints
 Lyad  Posted: Jan 29, 2007 01:41:35 PM

 Total Post: 12
 Joined: Jan, 2007






 Can anybody guide me on hints sql or pl/sql?
Thanks in advance.

 Lyad
Posted: Feb 05, 2007 04:36:26 AM  

 Total Post: 12
 Joined: Jan, 2007






 
Pls reply.
Lyad

 Jayanta
Posted: Feb 05, 2007 11:41:37 AM  

 Total Post: 479
 Joined: Feb, 2006






 
what do u mean by "hints on sql/plsql"?

 Lyad
Posted: Feb 05, 2007 01:29:38 PM  

 Total Post: 12
 Joined: Jan, 2007






 
Hints are basically use for bettre performance.
like /*+APPEND PARALLEL*/ is put after insert statement.
Though it looks like COMMENTED but it is not that actually.

I dont know much about that.
As much as I know I have written.
Thanks.

 Jayanta
Posted: Feb 05, 2007 01:32:48 PM  

 Total Post: 479
 Joined: Feb, 2006






 
try to explain the matter with an example.


 Lyad
Posted: Feb 05, 2007 01:52:37 PM  

 Total Post: 12
 Joined: Jan, 2007






 
SELECT /*+ no_parallel(t1) no_parallel(t2) no_parallel_index(t1) no_parallel_index(t2)
ordered use_nl(t2) index(t1 t1_abc) index(t2 t2_abc) */ COUNT(*)
FROM t1, t2
WHERE t1.col1 = t2.col1;
---------------------------------------------------------------------
SELECT /*+ FIRST_ROWS(10) */ table_name FROM dba_tables
WHERE owner = 'SYS'
AND table_name LIKE '%$'
ORDER BY 1;
--------------------------------------------------------
INSERT /*+ APPEND */ INTO t
SELECT * FROM all_objects;
-------------------------------------------------------

--------


 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar857
  Mohammed Taj746
  positive fanatic483
  Jayanta Sur479
  Vigyan Kaushik386
  Gopu Gopi327
  Gitesh Trivedi322
  Vinoth Kumar264
  neeraj sharma258
  Ramesh Jois246






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software