Including a SQL file within a SQL query
In SQL*Plus, execute external scripts using @filename (http://docs.oracle.com/cd/E11882_01/server.112/e16604/ch_five.htm#i1210918).  

This also works in SQL Developer, just be aware of the differences between relative &amp; absolute directory.