User guide
In this example, an obfuscated password is used which matches the plain text password
"jdbc_user"
To connect to a database using this server the client must provide a
@srv.password
value on
the connection request and the password must be a plain text password that matched the one
specified for the server.
Connection conn = DriverManager.getConnection(
"jdbc:rdbThin://bravo:1755/my_db_dir:pers@srv.password=jdbc_user",
user, pass);
8.17 Scope of CONNECTION.setReadOnly()
By default, the scope of the CONNECTION.setReadOnly() method is session, that is, if the
method CONNECTION.setReadOnly(true) is called, the default transactions for the rest of
the connected session will be READ_ONLY unless changed by another call to
CONNECTION.setReadOnly().
However, the standard Oracle JDBC Drivers have a different scope for
CONNECTION.setReadOnly(). If the method CONNECTION.setReadOnly(true) is called,
only the next transaction will be READ ONLY; once that transaction has ended, the default
transaction will resort back to READ WRITE.
To provide consistent semantics with the standard Oracle JDBC Drivers, a value of
ORACLE may be specified within the TRANSACTION connection switch.
Format
@transaction=oracle
The default transaction will be READ_WRITE when this switch is used, but this transaction
type may be changed by issuing the CONNECTION.setReadOnly(true) method call. This
will set only the next transaction to READ_ONLY.
8.18 Server Command Procedures
OpenVMS DCL command procedures are used in the creation of processes in which a thin
server is started using the controller and when a multi-process server starts up an executor
process.
These command procedures may be tailored for your system environment so that operation
such as software version setup and re-direction of output may be customized.
There are two command procedures used for startup, the server startup command procedure:
129