"In order to raise money to protect free software we have to transfer this one license to Oracle"
Most 501c entities are corporations.
You probably mean “to a business entity that is not itself a 501c”, but generally a 501c is free to sell assets to other entities without regard to form or (absence of) nonprofit status, though there are other restrictions that might come into play.