Which data source attribute would you modify to implement this requirement?

Consider a domain with an existing JDBC data source, which connects to an Oracle database.
Your administrator requests that the JDBC connections to this database now specify a different
username. Which data source attribute would you modify to implement this requirement?

Consider a domain with an existing JDBC data source, which connects to an Oracle database.
Your administrator requests that the JDBC connections to this database now specify a different
username. Which data source attribute would you modify to implement this requirement?

A.
Properties

B.
Credentials

C.
Initial Capacity

D.
Test Table

E.
URL

Explanation:
The following signature takes the URL, user name, and password all as part of a
URL parameter:
getConnection(String URL);
Where the URL is of the form: jdbc:oracle:<drivertype>:<user>/<password>@<database>
Reference: oracle.jdbc, Class OracleDriver



Leave a Reply 5

Your email address will not be published. Required fields are marked *


Diogo

Diogo

You can also change in Properties.
A

Sherif Salama

Sherif Salama

A is the correct
The user name not in URL is in properties

ashehzi

ashehzi

Correct Answer is “URL”:

Note:
For security reasons, when WebLogic Server is running in Production mode, you cannot specify database passwords in this properties list. Data source deployment will fail if a password is specified in the properties list.

as explained in “http://docs.oracle.com/cd/E23943_01/apirefs.1111/e13952/pagehelp/JDBCjdbcdatasourcesjdbcdatasourceconfigconnectionpooltitle.html”

doblezero

doblezero

The question doesn’t say about passwords, only “username”. Then I think the answer “A” is correct