Entradas

ORA-00600: internal error code, arguments: [12235], [], [], [], [], [], [], []

PURPOSE: This article discusses the internal error "ORA-600 [12235]", what it means and possible actions. The information here is only applicable to the versions listed and is provided only for guidance. ERROR: ORA-600 [12235] [a] [b] [c] [d] [e] VERSIONS: versions 7.0 to 9.2 DESCRIPTION: This error shows up when Oracle detects an Oracle defunct process. When an Oracle process starts up, it reads data from the SGA that defines what type of process it should become. If the process does not locate any valid customization data, it reports ORA-600 [12235] and exits. On a heavily loaded system, ORA-600 [12235] may be a symptom that the server process was too slow in starting. That is, the process that initiated the new server may timeout waiting for the new process to start and abandon the new server request. In the new server process it is possible that the new server reaches the code to customize its operation before the os request to kill the process i

Comprobar el plan de ejecución con el que se ha compilado una sentencia sql que ya se ha ejecutado, obteniendo los datos de la SHARED POOL (v$sql).

En V$SQL puedo ver las sentencias sql que ya se han ejecutado, de modo que puedo obtener el identificador (V$SQL.SQL_ID) de cualquier sentencia sql, para posteriormente consultar el plan de ejecución haciendo uso del paquete dbms_xplan (DBMS_XPLAN.DISPLAY_CURSOR(SQL_ID)). SQL> connect system/fabiancrea Enter password: Connected. SQL> select deptno,count(*) from scott.emp group by deptno; DEPTNO COUNT(*) 30 6 20 5 10 3 SQL> select sql_id from v$sql where sql_text='select deptno,count(*) from scott.emp group by deptno'; SQL_ID cxwqkgckrcpd8 SQL> select * from table(dbms_xplan.display_cursor('cxwqkgckrcpd8')); PLAN_TABLE_OUTPUT SQL_ID cxwqkgckrcpd8, child number 0 select deptno,count(*) from scott.emp group by deptno Plan hash value: 4067220884 ---------------------------------------------------------------------- |Id | Operation | Name | Rows | By

Instalar la utilidad STATSPACK. Crear snapshots y generar informe.

Crear tablespace statspack_tsp con 100M en /u05/oradata/fabiancrea (crear dir. /u05/oradata/fabiancrea). Crear tablespace statspack_temp con 2M en /u05/oradata/fabiancrea . Instalar statspack con $ORACLE_HOME/rdbms/admin/spcreate.sql, indicando los datos que se piden: clave de usuario perfstat, tablespace por defecto, y tablespace temporal por defecto. $ mkdir /u05/oradata/fabiancrea $ chmod Rg+w /u05/oradata/fabiancrea SQL> create tablespace statpack_tsp datafile '/u05/oradata/fabiancrea /statpack_tsp01.dbf' size 100M autoextend on next 10M maxsize 200M extent management local autoallocate segment space management auto; Tablespace created. SQL> create temporary tablespace statpack_temp tempfile '/u05/oradata/fabiancrea/statpack_temp01.dbf' size 2M autoextend on next 1M maxsize 10M; Tablespace created. SQL> @$ORACLE_HOME/rdbms/admin/spcreate.sql ... Installing Required Packages ... ... Creating PERFSTAT user ... Choose the PERFSTAT user&

Recompilacio n de objetos invalidos.

Tenemos varios métodos para recompilar o ver objetos invalidos en Oracle, empecemos primero identificando los objetos invalidos, de la siguiente manera: COLUMN object_name FORMAT A30 SELECT owner, object_type, object_name, status FROM dba_objects WHERE status = 'INVALID' ORDER BY owner, object_type, object_name; Ahora vayamos a la forma manual convencional; ALTER PACKAGE my_package COMPILE; ALTER PACKAGE my_package COMPILE BODY; ALTER PROCEDURE my_procedure COMPILE; ALTER FUNCTION my_function COMPILE; ALTER TRIGGER my_trigger COMPILE; ALTER VIEW my_view COMPILE; o tambien con la DBMS_DDL: EXEC DBMS_DDL.alter_compile('PACKAGE', 'MY_SCHEMA', 'MY_PACKAGE'); EXEC DBMS_DDL.alter_compile('PACKAGE BODY', 'MY_SCHEMA', 'MY_PACKAGE'); EXEC DBMS_DDL.alter_compile('PROCEDURE', 'MY_SCHEMA', 'MY_PROCEDURE'); EXEC DBMS_DDL.alter_compile('FUNCTION', 'MY_SCHEMA

Como diagnosticar un 0600 - [12700] [ ] [ ] [ ]

Muchas veces una corrupcion de bloque puede venir asociada a un indice corrupto, y la ejecucion de un bloque corrupto puede dar un ORA 600[12700], el cual lo dice el alert de la base de datos y nos encontramos por ejemplo con este ejemplo (valga la redundancia) Sat May 5 15:03:12 2007 ARC1: Beginning to archive log 3 thread 1 sequence 49943 Creating archive destination LOG_ARCHIVE_DEST_1: ‘/archive/oradata/ODSORA/1_49943.arc’ ARC1: Completed archiving log 3 thread 1 sequence 49943 Sat May 5 15:35:49 2007 Errors in file /oracle/dbs/admin/ODSORA/bdump/odsora_s003_27559.trc: ORA-00600: internal error code, arguments: [12700], [90646], [71560692], [9], [0], [79], [], [] Sat May 5 15:40:25 2007 Errors in file /oracle/dbs/admin/ODSORA/bdump/odsora_s001_2441.trc: ORA-00600: internal error code, arguments: [12700], [90646], [71560692], [9], [0], [79], [], [] Sat May 5 15:55:32 2007 Thread 1 advanced to log sequence 49945 Sat May 5 15:55:32 2007 Current log# 5 seq# 49945 mem# 0:

Vistas Materializadas

Vistas materializadas En este tutorial vamos a ver lo que son las vistas materializadas (materialized views) y vamos a hacer un ejemplo de creación de una vista materializada y su posterior uso. Lo primero de todo es recordar lo que es una vista en un modelo de base de datos relacional. Una vista es una consulta almacenada que representa un conjunto de tablas (posiblemente de diferentes esquemas) a la que le vamos a poner un nombre y vamos a tratarla como si fuese una tabla más de nuestro esquema, pero sin llegar a ser realmente una tabla. Algo que tiene que quedar claro es que una vista NO guarda datos, sino que solo almacena la consulta que nos va a ayudar a acceder a los datos. Pero, ¿porqué usar vistas? es muy sencillo, principalmente hay dos motivos. El primer motivo es de seguridad, a lo mejor no necesitamos que determinados usuarios acceden a toda la información de la base de datos y simplemente queremos formar un conjunto de datos específicos para dichos usuarios. El segun

Migracion de 8i a 10GR1

Via METALINK... completito This is a step by step guide that explains how we can migrate a database to a new server and database release manually using a Cold backup. How to do a cold backup of oracle database and restore it on the new server and then upgrade it. Solution 1) Prerequisites ---------------- - The copy of the datafiles must be done with the database closed. - Source Operating System and destination Operating System need to be the same - Destination sever need to have the 10g installed with the same word size as the 8.1.7.4. Both need to be 32 bit or both need to be 64 bit. - If your database contains user tables with NCHAR columns, you must upgrade the NCHAR columns before they can be used . In the database documentation you have all the steps is detail: Oracle® Database Upgrade Guide 10g Release 2 (10.2) Part Number B14238-02 2) Init.ora or spfile and controlfile ---------------------------------- - You need to copy th