I occasionally am asked about naming conventions for PL/SQL program units.
I did publish a document back in 2009 (link below), but there are also other sources for naming conventions from others, offering different ideas and excellent motivation for standardizing the way you write your code. I have collected links to them here.
The most important thing about naming conventions is BE CONSISTENT.
PL/SQL Naming Conventions and Coding Standards - Steven Feuerstein 2009
Coding Standards for SQL and PL/SQL - William Robertson
ORACLE-BASE / Tim Hall / Oracle Naming Conventions
Trivadis PL/SQL and SQL Coding Guidelines Version 2.0
Ask Tom on Naming Conventions
PL/SQL and SQL naming conventions
Oracle SQL and PL/SQL Coding Standards – Cat Herding for Dummies
Slideshare Presentation on PL/SQL Coding Conventions
I did publish a document back in 2009 (link below), but there are also other sources for naming conventions from others, offering different ideas and excellent motivation for standardizing the way you write your code. I have collected links to them here.
The most important thing about naming conventions is BE CONSISTENT.
PL/SQL Naming Conventions and Coding Standards - Steven Feuerstein 2009
Coding Standards for SQL and PL/SQL - William Robertson
ORACLE-BASE / Tim Hall / Oracle Naming Conventions
Trivadis PL/SQL and SQL Coding Guidelines Version 2.0
Ask Tom on Naming Conventions
PL/SQL and SQL naming conventions
Oracle SQL and PL/SQL Coding Standards – Cat Herding for Dummies
Slideshare Presentation on PL/SQL Coding Conventions
Thanks Steven for the post.
ReplyDeleteThe first link which you have published back in 2009,is not working and giving "404 Not Found!" error.
Could you please check.
Thanks
Santhosh
Apologies. That SHOULD have worked, but I should have tested it. I have uploaded the document to OTN, and the link now reflects that.
ReplyDeleteThanks for the quick action, will check it now.
DeleteThanks again Steven.
"The most important factor in a name is that it concisely (not that we have any choice about that with a limit of 30 characters!) " What about 12.2 :=)
ReplyDeleteYou are right, Daniel. Now we have choice AND responsibility. Of course, a name can be concise when using 50 characters. It depends on what you are trying or need to say - or you are using German. :-)
DeleteResponsibility was the word. The total length of an identifier, schema.tabel.column might be veeeery long. :)
DeleteGonna be interesting to see how people use this "feature"
I expect that it will be used as follows: I type a name, it's kinda long - 32, 35, maybe 40 characters - but the compiler no longer complains so I use it.
Delete