top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Which of the following is not a schema object : Indexes, tables, public synonyms, triggers and packages ?

+2 votes
1,813 views
Which of the following is not a schema object : Indexes, tables, public synonyms, triggers and packages ?
posted Feb 23, 2015 by Latha

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

0 votes

As per my understanding all of them are Schema objects only

answer Feb 24, 2015 by Balamurugan Kn
0 votes

Public synonyms

Public Synonyms in Oracle means

Use the CREATE SYNONYM statement to create a synonym, which is an alternative name for a table, view, sequence, procedure, stored function, package, materialized view, Java class schema object, user-defined object type, or another synonym.

Synonyms provide both data independence and location transparency. Synonyms permit applications to function without modification regardless of which user owns the table or view and regardless of which database holds the table or view. However, synonyms are not a substitute for privileges on database objects. Appropriate privileges must be granted to a user before the user can use the synonym.

You can refer to synonyms in the following DML statements: SELECT, INSERT, UPDATE, DELETE, FLASHBACK TABLE, EXPLAIN PLAN, and LOCK TABLE.

You can refer to synonyms in the following DDL statements: AUDIT, NOAUDIT, GRANT, REVOKE, and COMMENT.

Specify PUBLIC to create a public synonym. Public synonyms are accessible to all users. However each user must have appropriate privileges on the underlying object in order to use the synonym.

When resolving references to an object, Oracle Database uses a public synonym only if the object is not prefaced by a schema and is not followed by a database link.

If you omit this clause, then the synonym is private and is accessible only within its schema. A private synonym name must be unique in its schema.

answer Feb 24, 2015 by Shivaranjini
Similar Questions
+2 votes

Which of the following is not a schema object: Indexes, tables, public synonyms, triggers and packages?

+1 vote

which of the following is better to find the number of rows in a table?
1. count(1)
2. count(*)
3. count(rowid)

...