Oracle 1z0-146 Exam Practice Questions (P. 5)
- Full Access (117 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #21
Which two statements are true about associative arrays and varrays? (Choose two.)
- AOnly varrays must use sequential numbers as subscripts
- BOnly varrays can be used as column types in database tables
- CBoth assocaitive arrays and varrays must use sequential numbers as subscripts
- DBoth assocative arrays and varrays can be used as column types in database tables
Correct Answer:
AB
AB
send
light_mode
delete
Question #22
See the Exhibit:

Which three statements are appropriate for protecting the code in the procedure from SQL injection? (Choose three.)

Which three statements are appropriate for protecting the code in the procedure from SQL injection? (Choose three.)
- AExplicitly validate the identifier length limit
- BAdd AUTHID DEFINER to the definition of the procedure
- CUse PRAGMA RESTRICT_REFERENCES in the procedure
- DFilter out control characters in user-supplied identifier names
- EUse the object ID of the table from the data dictionary to build the trigger name
Correct Answer:
ADE
ADE
send
light_mode
delete
Question #23
You created a PL/SQL function with the RESULT_CACHE and RELIES_ON clauses. In which scenarios is the cached reuslt bypassed? (Choose all that apply)
- AWhen the size for the memory allocated for the result cache is increased
- BWhen the function is executed in a session frequently with the same parameter value
- CWhen the database administrator has disabled the use of the result cache during application patching
- DWhe a data manipulation language statement in a session on a table or view that was specified in the RELIES_ON clause of a result-cached function
Correct Answer:
CD
CD
send
light_mode
delete
Question #24
See the Exhibit:

Identify the sections of the code that need to be modified for better performance gains. (Choose all that apply)

Identify the sections of the code that need to be modified for better performance gains. (Choose all that apply)
- AUse cursors to fetch values
- BRemove redundant SQL statements in the procedure
- CAvoid the NOT NULL constraint when declearing the variable
- DDefine and compule procedures independently and not as part of a package
Correct Answer:
BC
BC
send
light_mode
delete
Question #25
See the Exhibit:
Exhibit1:

Exhibit2:

When executing the above PL/SQL statement to create SALES_ORDERS_CTZ context to use the OE.SALES_ORDERS_PKG package.
ERROR at line 2:
ORA-28112: Failed to execute policy function.
What could be the reason for the error?
Exhibit1:

Exhibit2:

When executing the above PL/SQL statement to create SALES_ORDERS_CTZ context to use the OE.SALES_ORDERS_PKG package.
ERROR at line 2:
ORA-28112: Failed to execute policy function.
What could be the reason for the error?
- AThe user has insufficient privileges on the DBMS_SESSION package
- BThe subprograms inside the package have not been created with the invokers right
- CThe THE_PREDICATE function has an insufficient number of parameters in the package
- DThe policy is created by using SALES_ORDERS_PKG. THE_PREDICATE without a parameter
Correct Answer:
C
C
send
light_mode
delete
All Pages