I want to create synonym for table emp but in my pc it is
giving insufficient previliges.I am using user scott.Please
suggest me.

Answer Posted / sanjaya

STEP 1:
-------
OPEN SQL*PLUS
LOGIN AS
USER: SYSTEM
PASSWORD: ********

STEP 2:
-------
SQL> GRANT OLAP_USER TO SCOTT;

STEP 3:
-------
SQL> CONNECT
Enter user-name: SCOTT
Enter password: *****

STEP 4:
-------
SQL> CREATE [PUBLIC] SYNONYM <SYN_NAME>
FOR <USER_NAME.ABLE_NAME>;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

define data blocks ? : Sql dba

544


How do I view an execution plan in sql?

525


Explain clause in sql?

559


What are different methods to trace the pl/sql code?

535


Difference between truncate, delete and drop commands?

557






What is trigger in sql and its types?

532


Can we use the cursor's to create the collection in PL/SQL?

516


How does stored procedure reduce network traffic?

542


What is inner join in sql?

584


What is latest version of sql?

523


Is vs as in pl sql?

487


What is indexing in sql and its types?

541


Why is nosql good?

591


how can we encrypt and decrypt a data present in a mysql table using mysql? : Sql dba

641


What is the process of copying data from table a to table b?

595