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.

Answers were Sorted based on User's Feedback



I want to create synonym for table emp but in my pc it is giving insufficient previliges.I am usin..

Answer / 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

I want to create synonym for table emp but in my pc it is giving insufficient previliges.I am usin..

Answer / meher

do login as sysdba and create the synonym.
you dont have privileges to do the same from scott user.

Is This Answer Correct ?    1 Yes 1 No

I want to create synonym for table emp but in my pc it is giving insufficient previliges.I am usin..

Answer / sreekumar

login as the user
create or replace synonym <<synonym_name>> for
object_owner.object_name;
or
any other super user like sys,sysadmin,etc can also create
sysnonymn for any schema.

Thanks
Sree
Oracle10g DBA

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL PLSQL Interview Questions

what is sub-query? : Transact sql

0 Answers  


What is output spooling in sql*plus?

0 Answers  


Its possible to add more than one primary key for the table

4 Answers  


How would you hide a table in sql. ie the table can be only visible to its maker?

3 Answers  


What is acid property in a database?

0 Answers  






What is diff between bulk collect and forall

3 Answers   Metric Stream,


What is the use of index in sql?

0 Answers  


Is keyword pl sql?

0 Answers  


Can a procedure in a package be overloaded?

0 Answers   EXL,


Is nosql relational?

0 Answers  


What is the purpose of the primary key?

0 Answers  


What are the types of triggers ?

26 Answers   Aspire, BirlaSoft, TCS,


Categories