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

Are stored procedures faster than dynamic sql?

0 Answers  


i have a table eno dno sal 1 10 200 2 10 150 3 10 100 4 20 75 5 20 100 i want to get sal which is less than the avg sal of thri dept. eno dno sal 2 10 150 3 10 100 4 20 75

11 Answers   IBM,


Create table emp (id number(9), name varchar2(20),salary number(9,2)); The table has 100 records after table created.Now i nee to change id's Datatype is to be Varchar2(15). now Alter table emp modify(id varchar2(15),name varchar2(20), salary number(9,2)); Whether it will work or returns error? post answer with explanation.

13 Answers   Oracle, TCS,


Can you skip header records while loading? : aql loader

0 Answers  


Differentiate between pl/sql and sql?

0 Answers  






What is procedure function?

0 Answers  


How many developers work on postgresql?

0 Answers  


1> how are u debugging in plsql ? 2> how to connect oracle database from unix. is there ne way other than using sqlplus ?

2 Answers  


Write a query to find the names of users that begin with "um" in sql?

0 Answers  


What are the benefits of pl sql?

0 Answers  


What is rollback?

0 Answers  


What is sqlerrd?

0 Answers  


Categories