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

i have 2 table table one 4 columns respective values a1 7,a2 6,a3 8 ,a4 12 & table two 4 colums respective values a1 7,a2 6,a3 8,a4 15.if table one & table two 3 colums same then 4th column values 1)Qes diff >5 then print 5 * diff value 2)Que diff <5 print 5

1 Answers  


What is attribute indicator in pl sql?

0 Answers  


How to update salary of employees department wise?

6 Answers  


Which is faster view or stored procedure?

0 Answers  


What is normalisation in sql?

0 Answers  






Is oracle sql free?

0 Answers  


What is the mutating table and constraining table?

0 Answers  


Authentication mechanisms in Sql Server ?

1 Answers   BirlaSoft,


What operators deal with null?

0 Answers  


Why stored procedures are faster than query?

0 Answers  


What is sql table?

0 Answers  


What are the types of records?

0 Answers  


Categories