Well... I think I know the anomaly

connect "sys@sid_name as sysdba" (within qoutes) may prevent you from facing it