What is pragma restrict_reference in oracle 9i?When we use
this?Give me one realtime scenario?

Answer Posted / bhaskar gouda

First of all ,it is a compiler directive,This is introduced
to avoid the side affect of the function in a package .it
comes in 4 flavors.RNDS,WNDS,RNPS,WNPS.
each out of the above 4 can be implemented against the
packaged function.

If you want the function not to alter the contents of any
database table than you can use WNDS.similarly if you want
the function not to read the contents of any database table
you can use RNDS.If you want the function not to alter any
variables within another package than you can use WNPS.If
you want the packaged function not to read the variables
within another package than you can use RNPS.


Thanks-Bhaskar Gouda

Is This Answer Correct ?    35 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you tell me how to add new column in existing views?how?How is possible?

922


How to start an oracle instance?

564


How to start instance with a minimal initialization parameter file?

523


Why do we need oracle client?

503


What is max rowid in oracle?

549






Explain oracle’s server parameter file.

559


What is backup in Oracle?

562


When system tablespace is created?

592


What is flashback in Oracle?

575


How to create a new oracle data file?

548


What are the types of trigger in oracle?

567


How to create a table index?

552


What is the simplest tool to run commands on oracle servers?

503


How do I decide when to use right joins/left joins or inner joins or how to determine which table is on which side?

536


What privilege is needed for a user to create indexes in oracle?

561