I'm looking for Static Analysis Tools for Database Tier. I got some answers for reviewing PLSQL, TSQL code, i'm wondering what are the options available for reviewing database design for naming conventions of tables and their columns, foreign key constraints and triggers etc.
There is MSDN article which talks about ApexSQL Enforce, but it is primarily for SQLServer.
Not a tool, but a good resource is SSW Rules to Better SQL Server Databases
Since you mention PLSQL, I assume you are using Oracle. For database design, you can write a set of simple SQL scripts that run primarily on the data dictionary tables. Look at the following example rule and the sql for the same:
Table name should not be greater than 'N' characters
Column name should not exceed 'N' Characters
List all VALID foreign key columns of a table (assuming you are using fk constraints)
In the event you are not using foreign key constraints to improve performance, you need to store meta information in separate tables and write ansql script like the one above to check for FK violations on existing data.