What is pragma restrict_reference in oracle 9i?When we use
this?Give me one realtime scenario?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / shail
Obsolete in 10g and onwards. Oracle take care at its own.
The reply from Raphael Fernandes is misleading. This type
of misleading replies can cost a interview of a candidate.
Request all to not reply if you are not sure.
Is This Answer Correct ? | 22 Yes | 0 No |
Answer / m.nihar
The RESTRICT_REFERENCES pragma asserts that a user-defined subprogram does not read or write database tables or package variables.Subprograms that read or write database tables or package variables are difficult to optimize, because any invocation of the subprogram might produce different results or encounter errors.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / raphael fernandes
pragma restrict_reference is used to associate a user
defined exception to an oracle error. Whenever the
associated error occurs in the pl/sql code, the exception
is raised implicitly by Oracle.
Is This Answer Correct ? | 3 Yes | 65 No |
Please explan Why static query is more faster than dynamic query ?
i wrote a pl/sql procedure. it must run every sunday 4.40 How can i schedule it with the help of dbms_jobs (or another other procedure with out creating bat file,exe file)
How to fetch the row which has the max value for a column?
What is the difference between postgresql and oracle?
What is the difference between primary key and unique key and foreign key in oracle?
how to create a new database in oracle?
The table has 3 columns 4 rows. The output is which column has least null values( A COL SHOULD BE THE OUTPUT) Write the query plz. A B C ================ 1 NULL 2 NULL 3 4 NULL 5 6 7 NULL NULL O/P C = 2 4 6
How can windows applications connect to oracle servers?
Please explain oracle data types with examples?
How to write a query with a right outer join in oracle?
What happens if the imported table already exists?
How to assign a tablespace to a users in oracle?