I use a range of methods but if could only employ one for raccoons, then is would be using electrified poultry netting. The netting would also enable a free-range option during the day and can be used to to direct some lesser flying birds about. Cost lower than dogs acquired and maintained specifically for the same purpose.