.ora-code.com

Links
Home
Oracle DBA Forum
Frequent Oracle Errors
TNS:could not resolve the connect identifier specified
Backtrace message unwound by exceptions
invalid identifier
PL/SQL compilation error
internal error
missing expression
table or view does not exist
end-of-file on communication channel
TNS:listener unknown in connect descriptor
insufficient privileges
PL/SQL: numeric or value error string
TNS:protocol adapter error
ORACLE not available
target host or object does not exist
invalid number
unable to allocate string bytes of shared memory
resource busy and acquire with NOWAIT specified
error occurred at recursive SQL level string
ORACLE initialization or shutdown in progress
archiver error. Connect internal only, until freed
snapshot too old
unable to extend temp segment by string in tablespace
Credential retrieval failed
missing or invalid option
invalid username/password; logon denied
unable to create INITIAL extent for segment
out of process memory when trying to allocate string bytes
shared memory realm does not exist
cannot insert NULL
TNS:unable to connect to destination
remote database not found'>ora-02019
exception encountered: core dump
inconsistent datatypes
no data found
TNS:operation timed out
PL/SQL: could not find program
existing state of packages has been discarded
maximum number of processes exceeded
error signaled in parallel query server
ORACLE instance terminated. Disconnection forced
TNS:packet writer failure
see ORA-12699
missing right parenthesis
name is already used by an existing object
cannot identify/lock data file
invalid file operation
quoted string not properly terminated
"snapshot too old " and undo_retention

"snapshot too old " and undo_retention

2005-09-30       - By Robyn
Reply:     <<     11     12     13     14     15     16  

Roger,

found the note i referred to below (SAP note 797629).  It mentions
issues with 'performance problems as of Oracle 9.2.0.6 because of the
corrected histogram bug' - basically SAP says they coded around this
bug, and now that Oracle has fixed it, their code will degrade in
performance if you use histograms.   May also be true for 9.2.0.5 due
to bind variable peeking.  Your stats statement will create a
histogram, so if you're on 9.2.0.5 or .6, i'd run a lot of tests
before gathering stats with that statement in production.

Robyn

On 9/30/05, Robyn <robyn.sands@(protected)> wrote:
> Roger,
>
> This is the approach I use for our warehouse, which contains snapshots
> of the bsis table:
>
> 1.  dbms_stats to gather a complete set of statistics on the table
> (currently over 57 million rows in the bsis snap, 117 million in bsis
> itself).  I tested using different sample sizes, but in our case,
> query performance was better with a larger sample size so I bit the
> bullet and collected full on everything over about a month (in subsets
> of course).
>
> 2.  run nightly reports using the monitoring packages that show the
> number of rows changed since the last analyze.  This will let you know
> which tables actually need to be analyzed and you have some advanced
> warning as to what will be gathered the next time the job runs.
>
> 3.  gather stats (with dbms_stats) using the 'gather stale' option on
> a weekly basis.  This will only gather stats on objects that have
> changed by more than 10%.   Try to find a time when other processes
> are not competing for your undo space.
>
> For our SAP database, we are still using the SAP tools for *most*
> objects.  (not my first choice, but we tend to handle SAP per vendor
> recommendations until the reasons not to are so obvious change is
> unavoidable.)   As I recall, SAP recommended *not* to use Oracle's
> statistics with our db/application version, but I could be off here.
> If you need more info on this, let me know and I'll dig through my
> notes.
>
> hth ... Robyn
>
> ---
> Robyn Anderson Sands
> email: Robyn.Sands@(protected)
>
>
> On 9/29/05, Roger Xu <roger_xu@(protected)> wrote:
> >
> >
> >
> > "ANALYZE TABLE "SAPR3"."BSIS" COMPUTE STATISTICS FOR TABLE  FOR ALL INDEXED
> > COLUMNS SIZE 1 FOR ALL INDEXES"
> >
> > How do I break this into pieces?
> >
> > Thanks.
> >
>


--
Robyn Anderson Sands
email: Robyn.Sands@(protected)
--
http://www.freelists.org/webpage/oracle-l