What is the timestamp mode of remote dependency?

Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.

What is the timestamp mode of remote dependency?

Rating:

The timestamp mode of remote dependency is one of the two remote dependency modes that are used by Oracle server to manage remote dependencies among objects. This is the default mode of remote dependency, i.e., if a remote dependency mode is not explicitly specified, Oracle server uses the timestamp mode. However, the REMOTE_DEPENDENCIES_MODE parameter can be set to TIMESTAMP in order to explicitly specify the timestamp mode.

When the timestamp mode of remote dependency is used, each PL/SQL program unit carries a timestamp that is set by Oracle server when the unit is created or recompiled. Whenever a PL/SQL program or a relevant schema object is altered, all of its dependent program units are marked as invalid and must be recompiled before they can be executed.

When a procedure compiles, Oracle server records the timestamp of that compilation within the P code of the procedure. When a local procedure referencing a remote procedure compiles, Oracle server also records the timestamp of the remote procedure into the P code of the local procedure.

When the local procedure is invoked, Oracle server compares the two timestamps of the referenced remote procedure. If the timestamps are equal (indicating that the remote procedure has not recompiled), Oracle server executes the local procedure. If the timestamps are not equal (indicating that the remote procedure has recompiled), Oracle server invalidates the local procedure and returns a runtime error.


Rating:



Other articles

Click here to Article home

 
uCertify.com | Our Company | Articles | Privacy | Security | Contact Us | News and Press Release | uCertify India
MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD Cisco Certification: CCNA, CCENT, A+, Network+, Security+
Oracle Certification: OCP 9i, OCP 10g, OCA 9i, OCA 10g CIW foundation    EC-212-32    CISSP    Photoshop ACE    Adobe Flash ACE
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.