The Enron Corporation said today that its second-quarter earnings rose 30 percent as the company executed more natural gas and electricity trades, increased its online business and benefited from record gas prices.

Net income rose to $289 million, or 34 cents a share, compared with $222 million, or 27 cents a share, in the quarter a year earlier. Revenue rose 75 percent, to $16.89 billion, from $9.67 billion.

Revenue from EnronOnline, the Internet energy and commodity trading site the company opened in November, rose 92 percent. The site has handled transactions valued at more than $100 billion, adding $6 billion to revenue in the first half, Enron said.

''That's one of the reasons competitors are starting their own online businesses,'' said Edward Tirello, an analyst with Deutsche Bank Alex. Brown.