ALTER SYNONYM

Function

ALTER SYNONYM is used to modify the attribute of a synonym.

Precautions

Syntax

1
2
ALTER SYNONYM synonym_name
    OWNER TO new_owner;

Parameter Description

Examples

Create synonym t1.

1
CREATE OR REPLACE SYNONYM t1 FOR ot.t1;

Create user u1.

1
CREATE USER u1 PASSWORD '{password}';

Change the owner of the synonym t1 to u1.

1
ALTER SYNONYM t1 OWNER TO u1;

Helpful Links

CREATE SYNONYM and DROP SYNONYM