Buscar la sesión por PID y ver la query SQL en Oracle : "En Oracle tenemos un montón de tablas y vistas que nos permiten obtener muchos datos de la instancia. Vamos a ver algunos campos de las vistas v$session, v$process y v$sqlarea para obtener el identificador de sesión y la query para poder matar ls query a partir del PID del sistema operativo. En la vista v$session [...]"
Dbeaver – Cliente universal SQL (Multiplataforma) a lo “eclipse”, Veredicto: Me gusta : Le faltan muchas funcionalidades aún, pero no está mal, no está mal (Sorry, los interfaces Eclipse me pirran ^^). Dbeaver es un cliente SQL que mediante el correspondiente driver JDBC nos permite conectar a: MySQL Oracle PostgreSQL IBM DB2 Microsoft SQL Server Sybase ODBC Java DB (Derby) Firebird (Interbase) HSQLDB SQLite Mimer H2 IBM Informix SAP MAX DB Cache Ingres Linter y a muchas mas… Se puede ejecutar en Windows, Linux y Mac. En el caso de usar Ubuntu, podeis descargarlo como paquete .deb desde su pagina oficial . Por cierto si a la hora de intentar conectar a una base de datos no tienes el driver JDBC el se lo descarga de internet (buena idea). P.d: Le faltan algunas funciones, pero a caballo regalado… Via | Ubuntu Geek | Pantallazos
La sintaxis para mover un índice de un tablespace a otro se realiza de la siguiente manera: alter index OWNER.INDEX_NAME rebuild tablespace TABLESPACE_DE_DESTINO; Para calcular cuánto espacio se necesita disponible para mover este segmento de tipo índice, se puede utilizar la siguiente consulta: select sum(bytes)/1024/1024 "Tamaño_en_MB" from dba_extents where segment_name ='INDEX_NAME'; Pero para los índices de tipo LOB que están asociados a una columna de la tabla que fue creada con este segmento es necesario utilizar la siguiente consulta para determinar que índice debemos mover: select 'alter table '||owner||'.'||table_name||' move '||chr(10)|| 'LOB ('||column_name||') store as '||'(tablespace TABLESPACE_DE_DESTINO);' from dba_lobs where owner ='ESQUEMA_A_MOVER'; Output: alter table OWNER.TABLE_NAME move lob (COLUMNA_DE_TIPO_LOB) store as (tablespace TABLESPACE_DE_DESTINO); Si no es utiliz
Comentarios
Publicar un comentario