BEA Systems' largest shareholder has demanded that the company put Oracle's $6.7 billion takeover offer to a shareholder vote.

Carl Icahn, who holds more than 58 million shares of BEA stock, said in a statement that he has begun a lawsuit to force an annual shareholder meeting "before any scorched earth transactions (such as stock issuances, asset sales, acquisitions or similar occurrences) take place at BEA, other than transactions that are approved by shareholders."

He accused BEA's board of trying "to find ways to derail a sale and maintain your control of the company." BEA's board has repeatedly rejected Oracle's bid to buy the company, demanding $21 per share, $1.6 billion more than Oracle's $17 per share offer. Oracle has called BEA's demand "impossibly high.”

Icahn said BEA can avoid litigation if it conducts an auction, allowing shareholders to consider offers from the highest bidder.

"BEA should not allow the stalking horse bid from Oracle to disappear (failure to take the Oracle bid as a stalking horse would be a grave dereliction of your fiduciary duty in my view)," he wrote. "But if no topping bid arises it should be up to the BEA shareholders to decide whether to take the Oracle bid or remain as an independent Company."

Icahn also demanded that "BEA should agree not to take any action that would dilute voting by issuing stock, entrench management or derail a potential sale of BEA."

Shares of BEA stock closed at $16.50 and were trading at $16.75 after hours on Friday.

A BEA spokesman could not immediately be reached for comment.