May be Initial SQL is the place to go:
Not sure if any PL/SQL code could be sent / executed, but worth trying anyway.
PS I'm (infrequently) using Initial SQL when connecting to Vertica
to set proper user session environment variables
and create non-volatile temp tables for analysis.