Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: why administrator refuse to give permission on PLUSTRACE
On 2007-11-03 13:23, DA Morgan <damorgan_at_psoug.org> wrote:
> Peter J. Holzer wrote:
>>> But lets give you an opportunity to test those developers around you to >>> see how good they really are. >>> >>> What would you do if the stored procedure "test" was identified as the >>> issue?
>>> CREATE OR REPLACE PROCEDURE test IS >>> BEGIN >>> FOR r IN (SELECT * FROM parent) >>> LOOP >>> r.part_num := r.part_num * 10; >>> INSERT INTO child >>> VALUES >>> (r.part_num, r.part_name); >>> END LOOP; >>> COMMIT; >>> END test; >>> /
> > You are mostly correct in your assumptions. But I am still waiting for > some hotshot developer, one who thinks he or she is good enough to be > given DBA privileges in a production database to identify the glaring > problem in the procedure I created and fix it.
You mean the loop instead of a straight insert ... select? That's the "obvious optimization" I alluded to. Somebody else had already pointed that out. You don't need to be a "hotshot" developer to see that - any developer who doesn't see that on the first glance needs some basic SQL training (and any developer who doesn't measure performance before and after the change needs some basic performance tuning training).
> I am already on record stating that I think DBAs should give developers > PLUSTRACE in development and test. So I am not trying to stomp on > developers egos.
The point isn't the developer's (or the DBA's) ego. It is getting the necessary information to the developer.
> My point from the beginning is that developers need the best tools and > the greatest access but NOT in prod.
A developer should not need to access a production database. He probably doesn't even want it. It may sometimes be necessary because a problem cannot be reproduced in testing.
hp
-- _ | Peter J. Holzer | It took a genius to create [TeX], |_|_) | Sysadmin WSR | and it takes a genius to maintain it. | | | hjp_at_hjp.at | That's not engineering, that's art. __/ | http://www.hjp.at/ | -- David Kastrup in comp.text.texReceived on Sat Nov 03 2007 - 09:49:04 CDT
![]() |
![]() |