The installed script files run in protected mode (outside of the database). The scripts are run as tdatuser.