Yes. We can create a synonym without having a base table.
In Oracle, it is not possible to create a synonym without referencing an existing table, view, sequence, or another synonym. A synonym in Oracle is essentially an alias or alternate name for an object, and it must be associated with an existing database object.
To create a synonym, you would typically use a SQL statement like:
CREATE SYNONYM synonym_name FOR schema.object_name;
Where synonym_name
is the name you want to give to the synonym, and schema.object_name
is the fully qualified name of the existing database object (table, view, sequence, or another synonym) that you want to reference.
Attempting to create a synonym without specifying an existing object will result in an error.