INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Is a Synonym Valid after "Altering" a table

Is a Synonym Valid after "Altering" a table

(OP)
I'm running Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production.

I want to ALTER a table ( add a column ). Will this cause the synonym to become invalid?

Thank you.

RE: Is a Synonym Valid after "Altering" a table

2
SA,

As our Tek-Tips colleagues can attest, the motto I live by is "One test is worth 100 expert opinions." This is why I usually post responses here that are real, live tests for a question.

Here is my test for your scenario:

CODE

12:57:57 SQL> create synonym y for summit.x;

Synonym created.

(re-connect as user SUMMIT)

12:59:43 SQL> alter table x add (new_col number);

Table altered.

(re-connect as synonym-owning user)

select object_name,object_type,status from user_objects where object_name = 'Y';

OBJECT_NAME     OBJECT_TYPE         STATUS
--------------- ------------------- -------
Y               SYNONYM             VALID

1 row selected. 

santaMufasa
(aka Dave of Sandy, Utah, USA)
“People may forget what you say, but they will never forget how you made them feel."

RE: Is a Synonym Valid after "Altering" a table

As usual, Santa Dave has provided the very best guidance. *testing* It's been awhile since I've given a star to Mufasa, so have one, please.

====================================
The reasonable man adapts himself to the world. The unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. - George Bernard Shaw


RE: Is a Synonym Valid after "Altering" a table

(OP)
Agree with u Johnherman.

Question answered.

Thank you!

RE: Is a Synonym Valid after "Altering" a table

As they say in England, "Ta, Mates!"

santaMufasa
(aka Dave of Sandy, Utah, USA)
“People may forget what you say, but they will never forget how you made them feel."

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close