German business software maker SAP AG has agreed to buy Sybase Inc. in a $5.8 billion deal that ratchets up SAP's rivalry with database leader Oracle Corp. The acquisition is the first big move by SAP ...