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
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 |
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 |
Explain what is an index?
I need a function for a train ticket reservation please answer it thanks in advance
What does over partition by mean in sql?
What is the difference between delete and truncate statement in sql?
Which function is used to return remainder in a division operator in sql?
write a query to find out the no. of employees whose age is less than 25 and max of salary for the employees belonging to a particular department is less than 20000
how can we find the number of rows in a table using mysql? : Sql dba
select top 3 sal from each dept?
17 Answers IBM, TCS,
What are Global Temporary tables
What is graph sql?
What is foreign key in sql with example?
What is trigger in sql?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)