Links
Home
Oracle DBA Forum
Frequent Oracle Errors
TNS:could not resolve the connect identifier specified
Backtrace message unwound by exceptions
invalid identifier
PL/SQL compilation error
internal error
missing expression
table or view does not exist
end-of-file on communication channel
TNS:listener unknown in connect descriptor
insufficient privileges
PL/SQL: numeric or value error string
TNS:protocol adapter error
ORACLE not available
target host or object does not exist
invalid number
unable to allocate string bytes of shared memory
resource busy and acquire with NOWAIT specified
error occurred at recursive SQL level string
ORACLE initialization or shutdown in progress
archiver error. Connect internal only, until freed
snapshot too old
unable to extend temp segment by string in tablespace
Credential retrieval failed
missing or invalid option
invalid username/password; logon denied
unable to create INITIAL extent for segment
out of process memory when trying to allocate string bytes
shared memory realm does not exist
cannot insert NULL
TNS:unable to connect to destination
remote database not found'>ora-02019
exception encountered: core dump
inconsistent datatypes
no data found
TNS:operation timed out
PL/SQL: could not find program
existing state of packages has been discarded
maximum number of processes exceeded
error signaled in parallel query server
ORACLE instance terminated. Disconnection forced
TNS:packet writer failure
see ORA-12699
missing right parenthesis
name is already used by an existing object
cannot identify/lock data file
invalid file operation
quoted string not properly terminated
Really deleting system statistics?

Really deleting system statistics?

2005-05-11       - By amit poddar

Reply:     1     2     3     4     5     6  

How about settting

_optimizer_cost_model  to *io

SQL> alter session set "_optimizer_cost_model"=abc;
ERROR:
ORA-00096 (See ORA-00096.ora-code.com): invalid value ABC for parameter _optimizer_cost_model, must
be from
among choose, io, cpu


thanks
amit
*
Christian Antognini wrote:

>Hi Peter
>
>  
>
>>in 10.1.0.3 I tried to delete system statistics with
>>
>>exec DBMS_STATS.DELETE_SYSTEM_STATS;
>>    
>>
>
>Notice that system statistics are always available in 10g. In fact even =
>if you don't gather them, Oracle automatically gathers them with the =
>NOWORKLOAD method.
>
>  
>
>>No error. In sys.aux_stats$ the 'Flag' goes from 1 to 0.=20
>>And values for mreadtim,sreadtim.. stay set. (And I cannot=20
>>set them to NULL with SET_SYSTEM_STATS).=20
>>    
>>
>
>I never saw another behaviour.
>
>  
>
>>Any idea how to convince the optimizer not to use the deleted =
>>    
>>
>statistics?
>
>For test purposes, i.e. to see what happen if they are not available, I =
>run the following statements...
>
>delete aux_stats$;
>commit;
>shutdown immediate
>startup
>select * from aux_stats$;
>
>I know, I know, it's probably not the best approach, but I tested it =
>many times on different databases and I never had problems... Notice =
>that when the database is restarted a set of NOWORKLOAD  statistics are =
>gathered (to do so they read some blocks from each datafile):
>- CPUSPEEDNW =3D ??? (depends on the CPU)
>- IOSEEKTIM =3D 10=20
>- IOTFRSPEED =3D 4096
>
>My guess, which is practically certitude, is that IOSEEKTIM/IOTFRSPEED =
>are fix.
>
>
>HTH
>Chris
>--
>http://www.freelists.org/webpage/oracle-l
>
>  
>

--
http://www.freelists.org/webpage/oracle-l