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
Critical Qs on materialized views

Critical Qs on materialized views

2005-08-26       - By Jared Still

Reply:     1     2     3     4     5     6     7     8     9  

Hi Tim,

Interesting, I wish I had known that last week. :)

I'm in the midst of rebuilding a rather large table to claim
back ~200g of space from it.

The table in question has a unique index, but no PK.

The workaround was easy: add a primary key constraint to the table,
a 2 second operation with a unique index in place.

I think it would be interesting to rerun the prototype though without
the PK and with QUERY_REWRITE_INTEGRITY = STALE_TOLERATED

Thanks,

Jared

On 8/26/05, Tim Gorman <tim@(protected)> wrote:
>
> ENFORCED constraints are used by MV refresh only for the purpose of
> guarding
> against "staleness" as specified by the default setting of the parameter
> QUERY_REWRITE_INTEGRITY to the value of "ENFORCED".
>
> Setting QUERY_REWRITE_INTEGRITY to the value of "STALE_TOLERATED" (i.e.
> Functionality disabled) will do what you want. Just be sure to understand
> the implications of this setting (i.e. DBA becomes responsible for
> ensuring
> that MV is never "stale" for query rewrite).
>
>
>
> on 8/26/05 5:17 AM, VIVEK_SHARMA at VIVEK_SHARMA@(protected) wrote:
>
> >
> > Thomas, folks
> >
> > Is there some way of Avoiding creation of Constraint on Source/Master
> > table while using Materlialized view refresh?
> > NOTE - Production Database does NOT have any constraints & is of 600 GB
> >
> > Creation of constraints on Source/Master DB Tables would be very time
> > consuming, if attempted.
> >
> > Thanks indeed for the info.
> >
> >
> > -- --Original Message-- --
> > From: oracle-l-bounce@(protected)
> > [mailto:oracle-l-bounce@(protected)] On Behalf Of Thomas Day
> > Sent: Thursday, August 25, 2005 10:10 PM
> > To: oracle-l@(protected)
> > Subject: Re: Some Basic Qs on materialized views
> >
> > It's not the size of the database that determines how often you
> > refresh the materialized views. Rather, it's the frequecy with which
> > the data changes on the source database and how important it is to the
> > business that that data is reflected in the target database in a
> > timely fashion.
> >
> > We used 15 minutes for transaction oriented tables, 1 hour for tables
> > that were less volatile and 24 hours for look-up tables (e.g.,
> > country_codes) where the table's content was only changed via a
> > software change request.
> >
> > We used dbms_jobs to schedule and fire the refreshes.
> > --
> > http://www.freelists.org/webpage/oracle-l
> >
> > **************** CAUTION - Disclaimer *****************
> > This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended
> solely
> > for the use of the addressee(s). If you are not the intended recipient,
> please
> > notify the sender by e-mail and delete the original message. Further,
> you are
> > not to copy, disclose, or distribute this e-mail or its contents to any
> other
> > person and any such actions are unlawful. This e-mail may contain
> viruses.
> > Infosys has taken every reasonable precaution to minimize this risk, but
> is
> > not liable for any damage you may sustain as a result of any virus in
> this
> > e-mail. You should carry out your own virus checks before opening the
> e-mail
> > or attachment. Infosys reserves the right to monitor and review the
> content of
> > all messages sent to or from this e-mail address. Messages sent to or
> from
> > this e-mail address may be stored on the Infosys e-mail system.
> > ***INFOSYS******** End of Disclaimer ********INFOSYS***
> > --
> > http://www.freelists.org/webpage/oracle-l
> >
>
> --
> http://www.freelists.org/webpage/oracle-l
>



--
Jared Still
Certifiable Oracle DBA and Part Time Perl Evangelist

Hi Tim,<br>
<br>
Interesting, I wish I had known that last week. :)<br>
<br>
I'm in the midst of rebuilding a rather large table to claim<br>
back ~200g of space from it.&nbsp; <br>
<br>
The table in question has a unique index, but no PK.<br><br>
The workaround was easy: add a primary key constraint to the table,<br>
a 2 second operation with a unique index in place.<br>
<br>
I think it would be interesting to rerun the prototype though without<br>
the PK and with QUERY_REWRITE_INTEGRITY = STALE_TOLERATED<br>
<br>
Thanks,<br>
<br>
Jared<br>
<br><div><span class="gmail_quote">On 8/26/05, <b class="gmail_sendername">Tim
Gorman</b> &lt;<a href="mailto:tim@(protected)">tim@(protected)</a>&gt; wrote:<
/span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204
, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
ENFORCED constraints are used by MV refresh only for the purpose of guarding<br
>against &quot;staleness&quot; as specified by the default setting of the
parameter<br>QUERY_REWRITE_INTEGRITY to the value of &quot;ENFORCED&quot;.
<br><br>Setting QUERY_REWRITE_INTEGRITY to the value of &quot;STALE_TOLERATED
&quot; (i.e.<br>Functionality disabled) will do what you want.&nbsp;&nbsp;Just
be sure to understand<br>the implications of this setting (i.e. DBA becomes
responsible for ensuring
<br>that MV is never &quot;stale&quot; for query rewrite).<br><br><br><br>on 8
/26/05 5:17 AM, VIVEK_SHARMA at <a href="mailto:VIVEK_SHARMA@(protected)">VIVEK
_SHARMA@(protected)</a> wrote:<br><br>&gt;<br>&gt; Thomas, folks
<br>&gt;<br>&gt; Is there some way of Avoiding creation of Constraint on Source
/Master<br>&gt; table while using Materlialized view refresh?<br>&gt; NOTE -
Production Database does NOT have any constraints &amp; is of 600 GB
<br>&gt;<br>&gt; Creation of constraints on Source/Master DB Tables would be
very time<br>&gt; consuming, if attempted.<br>&gt;<br>&gt; Thanks indeed for
the info.<br>&gt;<br>&gt;<br>&gt; -- --Original Message-- --<br>&gt; From:
<a href="mailto:oracle-l-bounce@(protected)">oracle-l-bounce@(protected)</a
><br>&gt; [mailto:<a href="mailto:oracle-l-bounce@(protected)">oracle-l-bounce
@(protected)</a>] On Behalf Of Thomas Day<br>&gt; Sent: Thursday, August 25,
2005 10:10 PM
<br>&gt; To: <a href="mailto:oracle-l@(protected)">oracle-l@(protected)</a>
<br>&gt; Subject: Re: Some Basic Qs on materialized views<br>&gt;<br>&gt; It's
not the size of the database that determines how often you<br>&gt; refresh the
materialized views.&nbsp;&nbsp;Rather, it's the frequecy with which
<br>&gt; the data changes on the source database and how important it is to the
<br>&gt; business that that data is reflected in the target database in a<br>&gt
; timely fashion.<br>&gt;<br>&gt; We used 15 minutes for transaction oriented
tables, 1 hour for tables
<br>&gt; that were less volatile and 24 hours for look-up tables (e.g.,<br>&gt;
country_codes) where the table's content was only changed via a<br>&gt;
software change request.<br>&gt;<br>&gt; We used dbms_jobs to schedule and fire
the refreshes.
<br>&gt; --<br>&gt; <a href="http://www.freelists.org/webpage/oracle-l">http:/
/www.freelists.org/webpage/oracle-l</a><br>&gt;<br>&gt; **************** CAUTION
- Disclaimer *****************<br>&gt; This e-mail contains PRIVILEGED AND
CONFIDENTIAL INFORMATION intended solely
<br>&gt; for the use of the addressee(s). If you are not the intended recipient
, please<br>&gt; notify the sender by e-mail and delete the original message.
Further, you are<br>&gt; not to copy, disclose, or distribute this e-mail or
its contents to any other
<br>&gt; person and any such actions are unlawful. This e-mail may contain
viruses.<br>&gt; Infosys has taken every reasonable precaution to minimize this
risk, but is<br>&gt; not liable for any damage you may sustain as a result of
any virus in this
<br>&gt; e-mail. You should carry out your own virus checks before opening the
e-mail<br>&gt; or attachment. Infosys reserves the right to monitor and review
the content of<br>&gt; all messages sent to or from this e-mail address.
Messages sent to or from
<br>&gt; this e-mail address may be stored on the Infosys e-mail system.<br>&gt
; ***INFOSYS******** End of Disclaimer ********INFOSYS***<br>&gt; --<br>&gt; <a
href="http://www.freelists.org/webpage/oracle-l">http://www.freelists.org
/webpage/oracle-l
</a><br>&gt;<br><br>--<br><a href="http://www.freelists.org/webpage/oracle-l"
>http://www.freelists.org/webpage/oracle-l</a><br></blockquote></div><br><br
clear="all"><br>-- <br>Jared Still<br>Certifiable Oracle DBA and Part Time Perl
Evangelist
<br><br>