You can use the AfterConnect.sql file in the PL/SQL Developer installation directory for this. It will execute for all sessions (SQL Windows, Test Windows, and so on). You can enter multiple SQL commands here, terminated with a semi-colon. You can also execute PL/SQL Blocks, terminated with a slash. It's similar to a Command Wondow or SQL*Plus script.