Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: sys corrupted in warehouse, sev1 tar open - resolved

RE: sys corrupted in warehouse, sev1 tar open - resolved

From: Jack Silvey <jack_silvey_at_yahoo.com>
Date: Fri, 14 Jun 2002 08:18:22 -0800
Message-ID: <F001.0047E2CC.20020614081822@fatcity.com>


Bruce,

Thanks for the info, it is a useful thing to remember.

Now for the post-game analysis: the way we found this was that RMAN stopped functioning with a "dbms_backup_restore.somethingorother must be declared" because the one in the wrong schema was invalid. RMAN logs in as sys.

When the oncall ran catproc again under the advice of tech support, it recreated all the stored procedures in the schema set by the "alter schema". This rendered people logging in from sqlplus unable to find dbms_application_info, although the public synonym was pointing to the sys package.

This was the red herring that kept throwing us off - the public synonyms were pointing to the sys objects, but the processes kept trying to go to the schema set by the login trigger. We were working under the implicit assumption (oops! Unproven Assumptions Bite DBAS, Details at 10) that the object refs in the rman and sqlplus login code were hard-coded (after all, why would you NOT hardcode the sys owner in your dd refs? not like anyone else will ever own those objects) and that somehow sys and the new schema were crossed up in the data dictionary.

so, What We Learned:

  1. be vewwwy careful with alter schema command, wabbit
  2. apparently neither the sqlplus nor the rman code use schema prefixes in their object references.

Lot of work for that little tidbit of info, I would say!

;)

jack


Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Jack Silvey
  INET: jack_silvey_at_yahoo.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Fri Jun 14 2002 - 11:18:22 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US