PDA

View Full Version : ORA-00980, but public synonym is there (in Oracle Reports).


zehst01
09-08-2003, 01:52 PM
I encountered an ora-00980 while running scripts to create public
synonyms that I've used countless times in 817 and am now running them
in 9i and am getting this message. For the life of me I could not
figure it out. I noticed in Public | Synonyms the objects were being
identified as being owned by SYS when in fact they were owned by another
user. Dropping and recreating them gave no resolution. Then I decided
to login and make sure I used UPPERCASE for the name and then also used
UPPERCASE when I referenced the user in my script and now I am seeing
that users name appear as the object owner under Public | Synonyms and
my ensuing scripts that I normally run now are running properly also. I
do not have time at this time to verify these findings but going forward
in 9i I will be more careful to use UPPERCASE in the login window and
script. I am wondering that even though SQL Worksheet is allowing me to
login using lowercase the user name being referenced then is case
sensitive so when I create the Public Synoyms they don't find the lower
case name so it defaults to sys and then the object's owner appear sys
in Public Synonyms when, again, they really are owned by another user.
Anyway, this is what I will be looking closer at next time myself and
perhaps this is something for you to look at also.



Steven


--
Posted via http://dbforums.com

Daniel Morgan
09-08-2003, 03:49 PM
zehst01 wrote:
I encountered an ora-00980 while running scripts to create publicsynonyms that I've used countless times in 817 and am now running themin 9i and am getting this message. For the life of me I could notfigure it out. I noticed in Public | Synonyms the objects were beingidentified as being owned by SYS when in fact they were owned by anotheruser. Dropping and recreating them gave no resolution. Then I decidedto login and make sure I used UPPERCASE for the name and then also usedUPPERCASE when I referenced the user in my script and now I am seeingthat users name appear as the object owner under Public | Synonyms andmy ensuing scripts that I normally run now are running properly also. Ido not have time at this time to verify these findings but going forwardin 9i I will be more careful to use UPPERCASE in the login window andscript. I am wondering that even though SQL Worksheet is allowing me tologin using lowercase the user name being referenced then is casesensitive so when I create the Public Synoyms they don't find the lowercase name so it defaults to sys and then the object's owner appear sysin Public Synonyms when, again, they really are owned by another user.Anyway, this is what I will be looking closer at next time myself andperhaps this is something for you to look at also.Steven--Posted via http://dbforums.com
How about:

1. What version of 9i? Give the complete information such as 9.2.0.2.
2. Post the SQL you are using
3. Post the name of the schema you want to have own the synonym
4. Make sure that the CREATE PUBLIC SYNONYM has been granted to that schema.

There is no difference between 8.1.7 and 9.2.0.4 so you need to look
elsewhere for the problem. And all this upper case stuff is irrelevant
to the problem and its resolution.

--
Daniel Morgan
http://www.outreach.washington.edu/ext/certificates/oad/oad_crs.asp
http://www.outreach.washington.edu/ext/certificates/aoa/aoa_crs.asp
damorgan@x.washington.edu
(replace 'x' with a 'u' to reply)


MyLounge.com Site Map
Forum: Cars, Cell Phone, Database, Games, Home Improvement, IT, Music, School, Sports, Web Design, Web Server, Weight Loss

The MyLounge.com forum is intended for informational use only and should not be relied upon and is not a substitute for any advice. The information contained on MyLounge.com are opinions and suggestions of members and is not a representation of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for the accuracy, completeness or usefulness of any postings or the qualifications of any person responding. Please consult a expert or seek the services of an attorney in your area for more accuracy on your specific situation. Please note that our forums also serve as mirrors to Usenet newsgroups. Many posts you see on our forums are made by newsgroup users who may not be members of MyLounge.com Term of Service