For SID u can use global variable (9i)
set sqlprompt '&_connect_identifier'