Setting attributes for the database connection URL allows you to supply a list of attributes to its database connection URL, which is a JDBC feature.

The attributes are specific to .

You typically set attributes in a semicolon-separated list following the protocol and subprotocol (and, in some cases, the subsubprotocol). For information on how you set attributes, see . This section provides reference information only.

The DriverManager.getConnection method can take both a connection URL and a Properties object as arguments. If you specify any attributes both on the connection URL and in a Properties object, the attributes on the connection URL override the attributes in the Properties object.

Attributes are not parsed for correctness. If you pass in an incorrect attribute or corresponding value, it is simply ignored. Applications, however, should validate all attributes and not simply pass-through directives from the end-user. In particular, the traceFile and traceDirectory directives could be used to write trace logs into a branch of the file system which your application can access but which end-users can't.