| Recompiling database objects [message #429376] |
Tue, 03 November 2009 07:45  |
Hitman11 Messages: 60 Registered: October 2009 Location: norway |
Member |
|
|
Hi all,
I would like to ask about invalid objects.I know something about it, like if the dependent object
becomes invalid ,we need to compile them to make valid.
Here my question is, why we are making the objects VALID again and what if objects remain
INVALID in database?
Will it cause harm to database ?
Regards,
|
|
|
| Re: Recompiling database objects [message #429378 is a reply to message #429376] |
Tue, 03 November 2009 07:47   |
joy_division Messages: 2886 Registered: February 2005 Location: NY |
Senior Member |
|
|
Hitman11 wrote on Tue, 03 November 2009 08:45
Here my question is, why we are making the objects VALID again and what if objects remain
INVALID in database?
Do I really believe what I am seeing asked here? I think I can ask someone who knows nothing about a database to answer this question.
"Why do I have to use the valid gasoline designed for my car? What harm will it do if I use invalid gasoline?"
I'm looking for a better analogy.
[Updated on: Tue, 03 November 2009 07:52]
|
|
|
|
|
|
|
| Re: Recompiling database objects [message #429386 is a reply to message #429376] |
Tue, 03 November 2009 08:07   |
cookiemonster Messages: 1438 Registered: September 2008 Location: Rainy Manchester |
Senior Member |
|
|
When objects go invalid in the database you recompile them to make sure that they can be recompiled.
While INVALID status doesn't necessarily mean there is something wrong with them it certainly doesn't mean there is nothing wrong.
Say you drop a column from a table. Any code that references that column will be marked as INVALID. It can't become VALID again until it's changed.
The only way you can be sure that a change to the DB hasn't broken anything is to make sure everything compiles afterwards.
|
|
|
|
|
|
|
|