Định dạng của chuỗi kết nối là jdbc:oracle:<drivertype>:@<database> (ví dụ:jdbc:oracle:thin:@host:1521:xe ).
Bạn có thể chuyển người dùng và mật khẩu khi gọi:DriverManager.getConnection("<connection string>", "<user>", "<password>"); hoặc thậm chí trong chuỗi kết nối:jdbc:oracle:<drivertype>:<user>/<password>@<database> (ví dụ:jdbc:oracle:thin:scott/example@sqldat.com:1521:xe ).
Bạn nên tìm hiểu thêm về chuỗi kết nối.