RE: 9mm or 45acp???
No handgun is really suitable for shooting bears! Of the two you mentioned, the .45 ACP is far and away the best, but don't shoot a bear with a handgun unless there is no other way out of a dangerous confrontation. It tends to excite them and make them even more cantankerous!