Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Oracle Exam 1Z0-997-22 Topic 5 Question 32 Discussion

Actual exam question for Oracle's 1Z0-997-22 exam
Question #: 32
Topic #: 5
[All 1Z0-997-22 Questions]

Your company developed a function that needs to access the Oracle Database to inject some data to it at runtime. You are tasked to move this function to the Oracle Cloud Infrastructure (OCI) and use Oracle Functions and access Oracle Autonomous Database. You created a Dockerfile below to run this function, however, you are getting this error "cx_Oracle.DatabaseError: ORA""12560: TNS:protocol adapter error".

What should you do to make sure that Oracle Functions can run this Dockerfile properly? (Choose the best answer.)

Show Suggested Answer Hide Answer

Contribute your Thoughts:

Luis
1 years ago
I think running the container as root by adding USER root is necessary in this case.
upvoted 0 times
...
Brittani
1 years ago
What about adding those two lines to the Dockerfile to create the group and user?
upvoted 0 times
...
Gabriele
1 years ago
Adding cap-add=ALL flag makes sense to me, as it adds runtime capability.
upvoted 0 times
...
Corrie
1 years ago
I disagree, I believe we should use the privileged flag while running the Docker container.
upvoted 0 times
...
Margot
1 years ago
I think the best answer is to add cap-add=ALL flag while running the Docker container.
upvoted 0 times
...
Tamekia
1 years ago
I think using the privileged flag might also help in resolving the issue.
upvoted 0 times
...
Carin
1 years ago
I believe option A is the best solution, adding user and group settings to the Dockerfile.
upvoted 0 times
...
Armanda
1 years ago
I agree, we may need to add user and group settings to the Dockerfile.
upvoted 0 times
...
Sherita
1 years ago
I think the error indicates a permissions issue with the Docker container.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77