Oracle Corp. sued Google Inc. for patent and copyright infringement, a surprise move that could cast a legal cloud over the growing number of cellphones that use the Android operating system.

The suit represents a sweeping shot at the current, much admired and often resented, king of Silicon Valley by Oracle's swashbuckling chief executive...