Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Oracle Server > Re: The light d...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 10 Topic 16845 of 17248
Post > Topic >>

Re: The light dawns - public synonym called SYS - how to drop?

by Palooka <nobody@[EMAIL PROTECTED] > Jul 3, 2008 at 11:19 PM

Mark D Powell wrote:
> On Jul 3, 12:08 pm, jeremy <jeremy0...@[EMAIL PROTECTED]
> wrote:
>> On 3 Jul, 16:50, gazzag <gar...@[EMAIL PROTECTED]
> wrote:
>>
>>
>>
>>
>>
>>> On 3 Jul, 16:26, jeremy <jeremy0...@[EMAIL PROTECTED]
> wrote:
>>>> With reference to my other post on various SYS packages being
>>>> unavailable, I now know the cause. Despite my declarations of
>>>> confidence, it turns out that one of our guys (a student on work
>>>> placement as it happens) wanted to create a public synonym and called
>>>> it "SYS".
>>>> 2 things
>>>> 1) am surprised that Oracle (10gR2) didn't object to this
>>>> 2) we are unable to drop the synonym
>>>> 16:25:05 SQL> drop public synonym sys;
>>>> drop public synonym sys
>>>> *
>>>> ERROR at line 1:
>>>> ORA-04098: trigger 'XDB.XDB_PI_TRIG' is invalid and failed re-
>>>> validation
>>>> Elapsed: 00:00:00.18
>>>> 16:25:58 SQL>
>>>> Anyone know how to tidy up this mess?
>>> Ouch!  What about:
>>> DROP PUBLIC SYNONYM "PUBLIC.SYS";
>> Following sorted it out:
>>
>> 16:57:13 SQL> drop public synonym sys force;
>> drop public synonym sys force
>> *
>> ERROR at line 1:
>> ORA-04098: trigger 'XDB.XDB_PI_TRIG' is invalid and failed re-
>> validation
>>
>> Elapsed: 00:00:00.49
>> 16:57:26 SQL> alter trigger XDB.XDB_PI_TRIG disable;
>>
>> Trigger altered.
>>
>> Elapsed: 00:00:00.15
>> 16:57:28 SQL> drop public synonym sys force;
>>
>> Synonym dropped.
>>
>> Elapsed: 00:00:00.58
>> 16:57:32 SQL> alter trigger XDB.XDB_PI_TRIG enable;
>>
>> Trigger altered.
>>
>> Elapsed: 00:00:00.18
>>
>> After which everything was fine again.
>>
>> --
>> jeremy- Hide quoted text -
>>
>> - Show quoted text -
> 
> Jeremy, thank you for the follow-up solution post.  Someone may
> actually query the  archives before posting and find a solution to
> their problem; this does happen on occassion.
> 
True I suppose, but allowing students to create public synonyms? And OP 
says he doubts his setup is broken (or words to that effect)?

Needs a complete rethink in terms of privileges granted, IMHO. Not the 
student's fault.

Palooka
 




 10 Posts in Topic:
The light dawns - public synonym called SYS - how to drop?
jeremy <jeremy0505@[EM  2008-07-03 08:26:56 
Re: The light dawns - public synonym called SYS - how to drop?
gazzag <gareth@[EMAIL   2008-07-03 08:50:46 
Re: The light dawns - public synonym called SYS - how to drop?
gazzag <gareth@[EMAIL   2008-07-03 09:04:54 
Re: The light dawns - public synonym called SYS - how to drop?
jeremy <jeremy0505@[EM  2008-07-03 09:08:21 
Re: The light dawns - public synonym called SYS - how to drop?
Mark D Powell <Mark.Po  2008-07-03 09:14:58 
Re: The light dawns - public synonym called SYS - how to drop?
Palooka <nobody@[EMAIL  2008-07-03 23:19:51 
Re: The light dawns - public synonym called SYS - how to drop?
gazzag <gareth@[EMAIL   2008-07-03 09:21:34 
Re: The light dawns - public synonym called SYS - how to drop?
"Terry Dykstra"  2008-07-03 18:11:03 
Re: The light dawns - public synonym called SYS - how to drop?
"phil_herring@[EMAIL  2008-07-03 16:37:08 
Re: The light dawns - public synonym called SYS - how to drop?
"Vladimir M. Zakhary  2008-07-04 12:28:31 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Oct 7 1:27:35 CDT 2008.