Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

there are 2 variables called x and y ,x contains 1,2 and y contains 3,4 we have to swap the values from x to y and y to x with out using dummy variables and it can be done only by using a single statement ? how?

12 Answers   Oracle,


What is plpgsql language?

0 Answers  


Is it possible to use Transaction control Statements such a ROLLBACK or COMMIT in Database Trigger ? Why ?

5 Answers  


using cursors salesman get bonus as 10% of their salary , managers get 20% , analalist get 30%. generae a report showing the employee name, salary , bonus.

4 Answers   Fidelity,


how do you login to mysql using unix shell? : Sql dba

0 Answers  


what is column? : Sql dba

0 Answers  


What are pl/sql packages?

0 Answers  


How does postgresql compare to mysql?

0 Answers  


How do I view tables in mysql?

0 Answers  


table - new_no old_no 2345 1234 3456 2345 5678 4567 output sud be -new_no 1234 2345 3456 4567 5678

2 Answers  


What is the difference between database trigger and stored procedure?

0 Answers  


what is External tables? explain with examples

2 Answers   TCS,


Categories