ExamNotes.net  -  IT certification portal

ForumsCertResearchTop sitesNewslettersFree email
HomeRegister
Exams Notes
Practice exams
Exam games
Questions by email
Online training
Training videos
College degrees
Boot camps
Book store
Links directory
Tell a friend
For webmasters

CompTIA Exam Vouchers
Save money on CompTIA exams
Question of the day
Sign up to receive
interactive practice questions
for MCSE, CompTIA
Cisco and other exams
TestKing
Get MCSE, MCSD, CCNA, CCNP,A+, N+ and many more

* ExamSheets *
Guide for Success!
Actual Questions & Answers
MCSE, MCSD, A+ ,CCNA, CCNP
Oracle 8i, Oracle 9i

Online practice tests

Certification sites

Online university

Online college

Online education

Distance learning

Software forum

Server administration forum

Programming resources






This is interesting: Free IT Magazines | Databases help forum



Other IT certifications > Oracle certifications > silly question..

Show a Printable Version
Email This Page to Someone!
Receive updates to this thread




Click here for list of Oracle DBA study guides and order yours now!



Author silly question..
odonata
Senior Member




Registered: Jan 2002
Location:
Country: USA
State:
Certifications: OCP (App. Dev.)
Working on: Java

Total Posts: 226
Question procedure question..

Sorry for long post, but....

When you call a stored procedure - is this procedure actually compiled each time it is called? (ie, before the procedure is executed, it actually compiles each time?)

I am asking due to a practice exam question I got concerning a local procedure calling a remote procedure and this remote procedure was compiled AFTER the calling local procedure. So, I thought that since the local procedure depends on this remote procedure - the local procedure would then invalidate due to the timestamp.

But, the explanation to a question as to what happens when the local procedure is called (and thus calls this remote procedure with the later timestamp) was the

procedure will invalidate, but that executing it a second time will successfully validate the remote procedure.

This sounds like to me that when the remote procedure was called the first time - it was actually being recompiled, so the timestamp was updated and making it valid. Is this a true statement??? I can't seem to find any resource the really explains this in detail.

Can someone please clarify? Thanks!!

Last edited by odonata on 03-27-02 at 12:12 AM

Report this post to a moderator

Old Post 03-26-02 11:44 PM
odonata is offline Click Here to See the Profile for odonata Add odonata to your buddy list Find more posts by odonata Reply w/Quote Edit/Delete Message IP: Logged
Ian_J
Member




Registered: Jun 2001
Location: London
Country: United Kingdom
State:
Certifications: OCP 8i DBA
Working on:

Total Posts: 38

as far as I understand it a stored procedure is recompiled each time it is called. I'm not 100% sure either but my best guess is that it is.

Report this post to a moderator

Old Post 03-27-02 12:33 AM
Ian_J is offline Click Here to See the Profile for Ian_J Click here to Send Ian_J a Private Message Visit Ian_J's homepage! Add Ian_J to your buddy list Find more posts by Ian_J Reply w/Quote Edit/Delete Message IP: Logged
odonata
Senior Member




Registered: Jan 2002
Location:
Country: USA
State:
Certifications: OCP (App. Dev.)
Working on: Java

Total Posts: 226
Talking

Thanks Ian_J

Judging by the explanations to some of these questions - that is what is being implied, but I am having troubles deciphering what is explained sometimes.

I was hoping to see an explanation stating "each time a procedure is called - it is compiled to ensure the procedure is valid" or something along those lines, but they always seem to dance around from actually saying that!

Report this post to a moderator

Old Post 03-27-02 12:55 AM
odonata is offline Click Here to See the Profile for odonata Add odonata to your buddy list Find more posts by odonata Reply w/Quote Edit/Delete Message IP: Logged
Ian_J
Member




Registered: Jun 2001
Location: London
Country: United Kingdom
State:
Certifications: OCP 8i DBA
Working on:

Total Posts: 38

well as far as I understand it, that is why you can pin commonly used procedures so that they are cached and do not have to be compiled again. I might be mistaken though and it might just be that they don't have to be re-read from disk again but do have to be re-compiled

Report this post to a moderator

Old Post 03-27-02 04:50 AM
Ian_J is offline Click Here to See the Profile for Ian_J Click here to Send Ian_J a Private Message Visit Ian_J's homepage! Add Ian_J to your buddy list Find more posts by Ian_J Reply w/Quote Edit/Delete Message IP: Logged
odonata
Senior Member




Registered: Jan 2002
Location:
Country: USA
State:
Certifications: OCP (App. Dev.)
Working on: Java

Total Posts: 226
Smile this explains is...

ok, I got a pretty good explanation of what's going on, here it is:


When compiling a local construct that invokes a remote construct, the compilation timestamp of the remote construct is stored in the object code of the local construct. When executing the local construct, the compilation timestamp of the remote procedure recorded in its object code will be compared to the actual compilation timestamp. If the actual timestamp of the remote construct is later than what is recorded in the local construct's object code, an error will result. This will mark the local construct invalid. Executing it a second time will result in a successful recompilation becase the new timestamp of the remote construct will be recorded in the object code of the local construct.


enjoy!

Report this post to a moderator

Old Post 03-28-02 02:12 AM
odonata is offline Click Here to See the Profile for odonata Add odonata to your buddy list Find more posts by odonata Reply w/Quote Edit/Delete Message IP: Logged
All times are GMT.
Post new thread   Post reply

Oracle exam notes



Forum Jump:
Rate This Thread:
Forum Rules:
Who Can Read The Forum? Any registered user or guest.
Who Can Post New Topics? Any registered user.
Who Can Post Replies? Any registered user.
Changes: Messages can be edited by their author.
Posts: HTML code is OFF. Smilies are ON. vB code is ON. [IMG] code is ON.
 

ExamNotes forum archive


Powered by: vBulletin 2.2.8
Copyright ©2000, Jelsoft Enterprises Limited.

  Free Braindumps | mcse braindumps