Visão Dual
Sobre tecnologia e afins...
Mostrar mensagens com a etiqueta PL/SQL. Mostrar todas as mensagens
Mostrar mensagens com a etiqueta PL/SQL. Mostrar todas as mensagens

PL/SQL Tips

Posted In: . By Márcio

"If you don't know exactly how much space is needed for a PL/SQL variable, the most space-efficient thing you can do is counterintuitive: declare a gigantic variable. For example:

declare
email_address varchar2(32); -- Could give error from being too small
email_address2 varchar2(512); -- Probably no error, but wastes space
email_address3 varchar2(32000); -- No error, no wasted space"

Find out why here.

 

Um artigo bastante interessante para os utilizadores de Oracle e PL/SQL, que se preocupam com questões de performance :

"Have you ever been frustrated with SQL Tuning?Did you get lost in the maze of /+ HINTS +/ and analysis paralysis?Pre-10g you have to be either a SQL tuning expert or should have a license to expensive tuning tools available in the market to effectively tune SQL Statements. Not the case anymore.
In 10g you can use DBMS_SQLTUNE package to get tuning recommendations for SQL Statements. "


Aqui http://www.orafaq.com/node/1837