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
ENABLE NOVALIDATE behaviour bug

ENABLE NOVALIDATE behaviour bug

2004-06-29       - By Mark Richard

Reply:     1     2     3     4     5     6     7     8     9     10     >>  





Thanks to Tanel and Richard for explaining this. I know realise that I
misunderstood the meaning of "novalidate " - I was hoping it might mean
"trust me Oracle, I know it to be true " but it can only mean "from today
on, enforce this - who knows about the past ". I should have realised that.

I 'll take Tanel 's advice of creating the column with a default. This is
yet another area I wasn 't sure about... I wasn 't positive that a default
value would be applied to existing rows since adding a default clause to a
pre-existing column doesn 't do this. So I 've asked one question and
received two answers - Well done and thankyou.

Regards,
Mark.




"Richard Foote "
<richard.foote@(protected) To: <oracle-l@(protected) >
pond.com > cc:
Sent by: Subject: Re: ENABLE NOVALIDATE behaviour bug
oracle-l-bounce@(protected)
eelists.org


29/06/2004 22:26
Please respond to
oracle-l






Hi Mark,

Just to expand a little on a point made by Tanel. It can be a little
"dangerous " to enable a constraint with novalidate. By doing so, you 're
effectively telling Oracle the data is valid, honest, whist the optimizer
takes the attitude, "actually, I really don 't believe you ". This means that
possibly useful constraint data can 't be used by the optimizer when
determining the best plan.

A very simple example. We had a statement that required an "empty " set to
be
returned and used a query to list all null values for a not null column.
Problem being the constraint was inadvertently enabled with novalidate
after
the table was rebuilt meaning that a previous "efficient " plan was replaced
by a horrendously expensive and unnecessary FTS. Although it might sound
like an odd thing to do (and in this specific example, it was a rather odd
thing to do), it 's not actually uncommon for queries to sometimes request
data that can 't possibly exist due to a constraint. Only by having a
validated constraint can the optimizer "know " that such a query will return
no rows and act accordingly (or "know " that there are no nulls and use an
index etc ...).

Sometimes performing one scan to validate a constraint can save many
subsequent unnecessary scans !!

Cheers

Richard

-- -- Original Message -- --
From: "Mark Richard " <mrichard@(protected) >
To: <oracle-l@(protected) >
Sent: Tuesday, June 29, 2004 4:09 PM
Subject: ENABLE NOVALIDATE behaviour bug

Hi List,

I regularly have to change the structure of some fairly large tables (~200m
rows). Often we use the opportunity to do a full table rebuild if we want
to change other settings (such as index locations) but other times we would
prefer to modify the existing table.

I currently have the scenario where I need to add a single CHAR(1) column
to a 250m row table and populate it with a constant value (new records may
have a different value). The approach I am considering is:

1) alter table blah add (mycol char(1));
2) update blah set mycol = 'F '; {perhaps include a parallel hint on
this statement}
3) alter table blah modify mycol not null enable novalidate;

I was hoping to use "enable novalidate " to avoid a verification of all
records when I know they will be populated.


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe send email to: oracle-l-request@(protected)
put 'unsubscribe ' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --





< < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < <---- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
Privileged/Confidential information may be contained in this message.
If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone.
In such a case, you should destroy this message and kindly notify the sender by reply e-mail or by telephone on (03) 9612-6999 or (61) 3 9612-6999.
Please advise immediately if you or your employer does not consent to Internet e-mail for messages of this kind.
Opinions, conclusions and other information in this message that do not relate to the official business of Transurban Infrastructure Developments Limited and CityLink Melbourne Limited shall be understood as neither given nor endorsed by them.
< < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < <---- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe send email to: oracle-l-request@(protected)
put 'unsubscribe ' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --