exam questions

Exam 1z0-071 All Questions

View all questions & answers for the 1z0-071 exam

Exam 1z0-071 topic 1 question 16 discussion

Actual exam question from Oracle's 1z0-071
Question #: 16
Topic #: 1
[All 1z0-071 Questions]

Which two statements are true about Oracle synonyms? (Choose two.)

  • A. Any user can create a PUBLIC synonym.
  • B. A synonym has an object number.
  • C. All private synonym names must be unique in the database.
  • D. A synonym can be created on an object in a package.
  • E. A synonym can have a synonym.
Show Suggested Answer Hide Answer
Suggested Answer: BE 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
holdfaststrongly
Highly Voted 2 years, 3 months ago
A. Any user can create a PUBLIC synonym.( x) Must have Create Publc Syn Priv. B. A synonym has an object number. C. All private synonym names must be unique in the database. (X) Unique in the schema. D. A synonym can be created on an object in a package. (X) A schema object can't be in a package E. A synonym can have a synonym.
upvoted 15 times
kenan_yu
2 years, 3 months ago
D answer is incorrect for another reason, you actually can create synonym on an object in a PL/SQL package but in won't be active(checked): CREATE OR REPLACE PACKAGE long_package_name AS FUNCTION give_me_zero RETURN NUMBER; END; / CREATE OR REPLACE PACKAGE BODY long_package_name AS FUNCTION give_me_zero RETURN NUMBER IS BEGIN RETURN 0; END; END; / CREATE OR REPLACE SYNONYM pkg_func FOR long_package_name.give_me_zero; SELECT pkg_func.give_me_zero FROM dual;
upvoted 2 times
speedy_vin
2 months ago
basically oracle allows any name after for. doesn't mean that it is valid unless it works.
upvoted 1 times
...
Lee_jong_suk
1 year ago
Right!
upvoted 1 times
...
...
...
braintop
Most Recent 1 month, 2 weeks ago
B,D,E are correct. B and E are obvious. Why D is correct : Following workd in oracle.livesql.com CREATE PACKAGE employee_pkg1 AS PROCEDURE add_employee(p_first_name VARCHAR2, p_last_name VARCHAR2); END employee_pkg1; CREATE SYNONYM emp_pkg_syn FOR employee_pkg1; --Works CREATE SYNONYM add_emp_addemp_syn FOR employee_pkg1.add_employee; -- works
upvoted 1 times
...
JanThanh
3 months, 2 weeks ago
Selected Answer: BE
B & E is correct
upvoted 2 times
...
ShahedOdeh
3 months, 3 weeks ago
C is incorrect because private synonyms are need to be private in the schama not in the database so BDE
upvoted 1 times
...
ulkaaa
5 months ago
BE IS CORRECT
upvoted 1 times
...
ArslanAltaf
6 months, 3 weeks ago
BE is correct. syn has object. here is to find object ID. Modify it or remove the owner SELECT s.synonym_name, s.owner, o.object_id, o.object_name, o.object_type FROM dba_synonyms s JOIN dba_objects o ON s.synonym_name = o.object_name AND s.owner = o.owner and S.owner = 'HR' ;
upvoted 1 times
...
alelejaja
7 months, 2 weeks ago
Selected Answer: DE
With no so many arguments, I would answer DE in an hypothetical exam since documentation says that a synonym can be created on a Stored procedure, function, or package. Besides, I don't find accurate the way B is written since the creation of a new synonym doesn't envolve a new object id, but the synonim actually "has" the object id of the object it references...
upvoted 1 times
...
Fredderik91
7 months, 3 weeks ago
D and E Specify the object for which the synonym is created. The schema object for which you are creating the synonym can be of the following types: Table or object table View or object view Sequence Stored procedure, function, or package Materialized view Java class schema object User-defined object type Synonym https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/CREATE-SYNONYM.html
upvoted 1 times
...
hmatinnn
11 months, 3 weeks ago
Selected Answer: DE
de should be
upvoted 1 times
...
ismoil
11 months, 3 weeks ago
b is wrong 1000%
upvoted 1 times
id10111110
9 months, 2 weeks ago
Assuming user has the "CREATE SYNONYM" grant, then: select * from newsyn2 -- produces error create synonym newsyn2 for dual; select * from newsyn2; --returns X select object_name, object_type, object_id from user_objects; This seems to suggest that Oracle synonyms have object ids.
upvoted 1 times
...
...
yaya32
11 months, 3 weeks ago
Selected Answer: DE
DE for me
upvoted 1 times
...
mavista
1 year, 2 months ago
Selected Answer: BE
A - user need CREATE PUBLIC SYNONYM : false C - must be unique in schema : false D - The schema object cannot be contained in a package for synonyms
upvoted 1 times
...
jm9999
1 year, 3 months ago
Selected Answer: BE
Synonym can be created for the whole package but not for components of the package.
upvoted 3 times
alelejaja
7 months, 2 weeks ago
But for a procedure in a package? a synonym can be created in that case
upvoted 1 times
...
...
zouve
1 year, 6 months ago
Selected Answer: DE
D. A synonym can be created on an object in a package. A synonym can be created for an object in a package, allowing users to reference the object using the synonym name instead of the package and object name 1. E. A synonym can have a synonym. A synonym can be created for another synonym, allowing users to reference the underlying object using either synonym name
upvoted 1 times
...
dilshod
1 year, 6 months ago
Selected Answer: DE
D and E is true the rest is false
upvoted 1 times
...
Matvey
1 year, 11 months ago
You have created synonym on the entire package, not on the package object.
upvoted 3 times
alelejaja
7 months, 2 weeks ago
But for a procedure in a package? a synonym can be created in that case
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago