Not able to connect as sysdba,shared memory error

One of our 8i server ran out of shared memory. I am getting following error and not even able to log in for shutting down conn "/ as sysdba" ERROR: ORA-00604: error occurred at recursive SQL level 2 ORA-04031: unable to allocate 4200 bytes of shared memory ("shared pool","TRIGGER$","sga heap","state objects")