Is Beverly Hills CA on the ocean?

No, it is inland. About 5 miles (8 kilometers) through Westwood, Brentwood and Santa Monica before you hit the Pacific Ocean.