|
That’s not good enough. I don’t want to discard ANY exception. When dropping table, I don’t want to see error messages only if there is nothing to drop. While if let’s say there is a problem with privileges, it will go unnoticed. Or, when adding a table, it’s fine not be getting an error, if table already exists. But, if there is no room to create a table, or to add a partition to the table, I want to see this error message.
So, I still prefer my way of doing it (see scripts in my original message) comparing to Oracle’s script, you refer to.
Igor Neyman, OCP DBA [EMAIL PROTECTED]
-----Original Message-----
From ORACLE own script: Rem Alex. -----Original Message-----
Sure, I would. Igor Neyman, OCP DBA
-----Original Message----- Igor, True enough, but wouldn't you like it as part and parcel of the command? Dick Goulet -----Original Message-----
To avoid those errors in my scripts I'm checking data dictionary for the "existence" of the object (fortunately, dynamic sql helps here): REM Dropping synonym or: Igor Neyman, OCP DBA
-----Original Message-----
<http://metalink.oracle.com/images/metalink/generic/usaeng/kur_left_top.
<http://metalink.oracle.com/images/metalink/generic/usaeng/kur_left_top.
Abstract <http://metalink.oracle.com/images/metalink/generic/usaeng/kur_left_top.
17-JUL-03 19:18:03 GMT ### Selected Industry ### ### Reason current product functionality is insufficient. ### Today if you issue a "drop table <my_table>;" command and the table does not exist you get an error back. ### Detailed description of the Enhancement Request.
### ### How the product can be changed to achieve the desired result. ### Have no idea. ### Reasons to consider the Enhancement Request. ###
### Business impact if the Enhancement is not considered. ### Well, many a DBA will continue to waste time reviewing these errors for no purpose. ### Enhancement is affecting an implementation milestone. ### NO ### Description of the business flow that is affected by this Enhancement ### Creating a database, installing any package third party or not, ETL processes, etc.... Contact me via : E-mail -> [EMAIL PROTECTED]
17-JUL-03 19:19:19 GMT TAR has been assigned to an analyst -- Sending email. 17-JUL-03 19:46:59 GMT
PROBLEM Today if you issue a "drop table <my_table>;" command and the table does not exist you get an error back. It would be great if we had an addition to the drop object command, something like "drop table <my_table> no_fail;" which would always return "Table dropped" whether it existed or not. PROBLEM VERIFICATION Is this what you are requesting? This should be incorporated in our cat*.sql scripts so the output log file doesn't show all these ignorable errors/warnings and dba only has to look for 'real' errors.
17-JUL-03 19:47:26 GMT Email Update button has been pressed -- Sending email. 17-JUL-03 20:15:38 GMT New info : That's a part thereof. The Cat scripts are an example. Allow me if you please: This is from the CATREP.SQL script: drop synonym dbms_offline_snapshot *
17-JUL-03 21:20:03 GMT
This would have to be filed as an enhancement request and code won't be changed until after 10i as it is close to release. The thing is that these scripts are generic, they were created to be run on any version, environment, configuration, component, etc database for any user. If you don't have replication instsalled, it will give the error on all replication objects. Same with spatial or intermedia or adv security option, etc. It has to cover them all whether you have these components installed or not. Generally the only errors we are concerned with in the output file are the ones that cause the entire script to hang or abort. We totally agree with you in support as we also have to read through all this output whenever a customer has an installation/upgrade problem and uploads the cat*.sql output files. We have to go through and identify any errors that may cause problems in the database.
17-JUL-03 21:20:17 GMT Email Update button has been pressed -- Sending email. 18-JUL-03 14:45:20 GMT New info : Well, I did file this as an enhancement request, so having it in a future version was the desired end result. If it can be included in a patch to 10i or part of 11G, as I understand it's going to be called, then great. Mission accomplished. <http://metalink.oracle.com/images/metalink/generic/usaeng/kur_left_bott
Dick Goulet Fat City Network Services --
858-538-5051 http://www.fatcity.com
-- Fat City Network Services --
858-538-5051 http://www.fatcity.com
-- Fat City Network Services --
858-538-5051 http://www.fatcity.com
-- Fat City Network Services --
858-538-5051 http://www.fatcity.com
|
Title: RE: Who Says Oracle does not listen
- Who Says Oracle does not listen Goulet, Dick
- RE: Who Says Oracle does not listen Igor Neyman
- RE: Who Says Oracle does not listen Goulet, Dick
- RE: Who Says Oracle does not listen Igor Neyman
- RE: Who Says Oracle does not listen Alexander . Feinstein
- Re: Who Says Oracle does not listen Igor Neyman
- Re: Who Says Oracle does not listen Alex Feinstein
- RE: Who Says Oracle does not listen Igor Neyman
- RE: Who Says Oracle does not listen Alexander . Feinstein
- RE: Who Says Oracle does not listen Igor Neyman
- RE: Who Says Oracle does not listen Jacques Kilchoer
- RE: Who Says Oracle does not listen Jacques Kilchoer
