可以參考以下信息(如果你有兩個數據庫分別為db1,db2):
SQLCA.DBMS = "O90 Oracle9i (9.0.1)"
SQLCA.LogPass = "admin"
SQLCA.ServerName = "db1"
SQLCA.LogId = "system"
SQLCA.AutoCommit = False
SQLCA.DBParm = ""
connect using sqlca;
DB2.DBMS = "O90 Oracle9i (9.0.1)"
DB2.LogPass = "admin"
DB2.ServerName = "db2"
DB2.LogId = "system"
DB2.AutoCommit = False
DB2.DBParm = ""
connect using DB2;