Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

can i get answer for this

This is a discussion on can i get answer for this within the Oracle Certification forums, part of the Certification category; which three statements are true about dependent objects 1.invalid objects cannot be described 2.the oracle server automatically records dependencies among objects 3. all schema objects have status that is recorded ...

Go Back   Geeks Talk > Certification > Oracle Certification
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

Oracle Certification Talk about Oracle Certification

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-21-2007
Junior Member
 
Join Date: Feb 2007
Location: usa
Posts: 17
Thanks: 5
Thanked 1 Time in 1 Post
gujjar is on a distinguished road
can i get answer for this

which three statements are true about dependent objects
1.invalid objects cannot be described
2.the oracle server automatically records dependencies among objects
3. all schema objects have status that is recorded in the data dictionary
4.you can view whether an object is valid or invalid in the user_objects data dictionay view
Reply With Quote
The Following User Says Thank You to gujjar For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 02-21-2007
Expert Member
 
Join Date: Dec 2006
Location: Chennai
Posts: 203
Thanks: 2
Thanked 17 Times in 15 Posts
Barbie is on a distinguished road
Re: can i get answer for this

1.invalid objects cannot be described
3. all schema objects have status that is recorded in the data dictionary
4.you can view whether an object is valid or invalid in the user_objects data dictionay view


these are true.
Reply With Quote
  #3 (permalink)  
Old 02-21-2007
Junior Member
 
Join Date: Feb 2007
Location: usa
Posts: 17
Thanks: 5
Thanked 1 Time in 1 Post
gujjar is on a distinguished road
Re: can i get answer for this

that means oracle server automatically cannot records dependencies among objects.is it so?
Reply With Quote
  #4 (permalink)  
Old 02-22-2007
Expert Member
 
Join Date: Dec 2006
Location: Chennai
Posts: 203
Thanks: 2
Thanked 17 Times in 15 Posts
Barbie is on a distinguished road
Re: can i get answer for this

yeah.. it can not do automatically. we have to create foreign keys to make it record dependencies among objects.( for tables)
Reply With Quote
The Following User Says Thank You to Barbie For This Useful Post:
  #5 (permalink)  
Old 02-22-2007
Junior Member
 
Join Date: Feb 2007
Location: bombay
Posts: 22
Thanks: 5
Thanked 4 Times in 4 Posts
smitai is on a distinguished road
Re: can i get answer for this

answer 2,3,4 are true
Reply With Quote
  #6 (permalink)  
Old 02-22-2007
Expert Member
 
Join Date: Dec 2006
Location: Chennai
Posts: 203
Thanks: 2
Thanked 17 Times in 15 Posts
Barbie is on a distinguished road
Re: can i get answer for this

Invalid objects can not be described.
Go and try the query desc object to any object that is invalid.
It will throws an error like:

SQL> desc TES
ERROR:
ORA-24372: invalid object for describe
Reply With Quote
  #7 (permalink)  
Old 02-22-2007
Expert Member
 
Join Date: Jun 2006
Location: India
Posts: 413
Thanks: 15
Thanked 43 Times in 31 Posts
jamesravid will become famous soon enough
Re: can i get answer for this

I think all the four are right and I am 100% sure that options 1 and 4 are correct
__________________
Cheers,
:) James:)
Reply With Quote
  #8 (permalink)  
Old 02-23-2007
Expert Member
 
Join Date: Sep 2006
Location: India
Posts: 131
Thanks: 1
Thanked 21 Times in 20 Posts
Innila is on a distinguished road
Re: can i get answer for this

Hi,

1, 2 & 4 are the right answers.

1. Invalid Objects cannot be described, if you try to describe an invalid object using, DESC command, you will get an error, "ORA-24372: invalid object for describe"

2. Oracle automatically records dependencies among objects to reduce the complexity of dependency management.
For example, if you alter a table on which several stored procedures depend, Oracle automatically recompiles the dependent procedures the next time when the procedures are referenced.

4.You can view whether an object is valid or invalid in the user_objects data dictionay view using the "STATUS" column of USER_OBJECTS view.

*** Innila ***
Reply With Quote
  #9 (permalink)  
Old 02-23-2007
Expert Member
 
Join Date: Jun 2006
Location: India
Posts: 413
Thanks: 15
Thanked 43 Times in 31 Posts
jamesravid will become famous soon enough
Re: can i get answer for this

Innila,
Could you explain why option 3 is not correct?
I am asking this simply because of curiosity...
__________________
Cheers,
:) James:)
Reply With Quote
  #10 (permalink)  
Old 02-23-2007
Expert Member
 
Join Date: Dec 2006
Location: Chennai
Posts: 203
Thanks: 2
Thanked 17 Times in 15 Posts
Barbie is on a distinguished road
Re: can i get answer for this

Its having status field for all objects.
3 is right.

but i am wrong telling 2 is false. sorry!
Reply With Quote
  #11 (permalink)  
Old 02-23-2007
Junior Member
 
Join Date: Feb 2007
Location: usa
Posts: 17
Thanks: 5
Thanked 1 Time in 1 Post
gujjar is on a distinguished road
Re: can i get answer for this

hi
here the question is about dependent objects
For dependent objects,lets say program unit A (current schema)references Program unit B(remote side located). this means A is dependent on B. so in the current schema both the A and B status will be available?
if so,according to my guess then option 3 must be one of correct answer
if status of B (becoz located remoteside) is not available in current shema then option 1,2,4 will be correct answers
can you clear me this
thanks
gujjar
Reply With Quote
  #12 (permalink)  
Old 02-26-2007
Expert Member
 
Join Date: Sep 2006
Location: India
Posts: 131
Thanks: 1
Thanked 21 Times in 20 Posts
Innila is on a distinguished road
Re: can i get answer for this

Quote:
Innila,
Could you explain why option 3 is not correct?
I am asking this simply because of curiosity...

Hi,

I am very sure about the dependency management (Option 2) rather than Object status.
Everybody are considering just the status column of user_objects view, but the option (3. all schema objects have status that is recorded in the data dictionar) is not about the "STATUS" column of "USER_OBJECTS" view.
The "STATUS" column of "USER_OBJECTS" consists of only the validity of the object (whether "valid" or "invalid") and does not consists of the cause or the reason why it has become "invalid".
The invalid status does'nt inform us whether it has been altered or deleted or any other reason.
So i think the actual status is not stored in the data dictionary.

*** Innila ***

Last edited by Innila; 02-26-2007 at 11:42 PM.
Reply With Quote
  #13 (permalink)  
Old 02-26-2007
Junior Member
 
Join Date: Feb 2007
Location: bombay
Posts: 22
Thanks: 5
Thanked 4 Times in 4 Posts
smitai is on a distinguished road
Re: can i get answer for this

Hellllllllllll0
again.
If 4 is correct then 3 must be correct and if 3 is correct then which data dictionary?
Bcos USER_OBJECTS is data dictionary maintained by oracle itself always...
so 2 is correct.
As per my friend who think that invalid objects cant describe...
I have doubt..
I did r&d and observe that some views can invalid status still can be described without any error..
If u observe any package body having invalid status can be described because it will describe package specification (he i dont try with different name of package body and pack specification )
but I am sure what I said about view.
Again one additional point is there not "invalid object to desc" always with desc invalid object sometime err msg will "object not exist"
Reply With Quote
Reply

  Geeks Talk > Certification > Oracle Certification

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
what is the answer ? psuresh1982 Brainteasers 3 01-12-2007 03:02 AM
Rapid Answer nancyphilips Brainteasers 2 08-11-2006 05:13 AM
Think and Answer fred Brainteasers 1 08-08-2006 04:22 PM


All times are GMT -4. The time now is 07:20 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved