A major Chinese oil company , CNOOC , has given up an $ 18.5 billion bid to take over the U.S.-based Unocal oil company .