Skip to main content

Posts

DB - Flashback Drop

English Version   Apos um drop table (excepto se foi usado purge), Oracle move a tabela para o recyclebin, neste post partilho como recuperar uma tabela depois de um  drop table, - e possivel tambem consultar o contedudo de tabelas no recycle bin.

DB - Flashback Query

English Version   Neste post partilho como ver alterações nos dados e recuperar dados alterados pos commit, se foram alterados recentemente e possível recupar esses dados facilmente usando flasback query e flashback query version.

DB - Flashback Database

EnglishVersion This post is about using flashback technology for recover a database, using as example, how to recover a table after truncate. Truncate is used to clean the tables, it also cleans the table segments. To recover trucated data requires to .. recover the database. Important note : flashback database is a must in case of failover in data guard operations. Flashback requirements It have some requirements for flashback database - The DB needs to be in archive log mode -the traditional archive redo logs - Feature flashback ON - it will activate the stream the logs / flashback logs For all this work the database needs to be mounted in a consitant maner To help with demo I will also create a RESTORE POINT with GUARANTEE FLASHBACK DATABASE -- As '/ as sysdba', SQL> shut immediate; Database closed. Database dismounted. ORACLE instance shut down. SQL> startup mount; ORACLE instance started. Total System Global...

DB - Instance caging

English Version Neste post partilho uma forma de identificar a utilização de CPU por utilizador (usuario como dizem no Brasil ) em ambientes Linux com múltiplas instâncias de base de dados Oracle.Estes comandos são útils para  configurar Database Instance Caging.

DB - Degree Of Parallelism

English Version Neste post escrevo sobre gestao manual do do DOP ( Degree of Parallelism). A gestao do paralelismo pode ser feita manualmente de 3 formas :  1 - Paralelismo ao nivel da Sessao  ALTER SESSION ENABLE | DISABLE | FORCE Parallel QUERY | DML | DDL  2 - Paralelismo ao nivel do Objecto create table my_tab(i number) parallel 5 ; alter table   my_tab p arallel 10 ; select table_name, degree   from dba_tables where table_name = 'INDX_P_5'; -- tabelas particionadas  -  -- aplica- se ano nivel da tabelas  nao das particoes  --  Table IOT  create table my_iot_tab( i parallel key ) organization index parallel; -- index create index indx_p_5 on Tabela (i) Parallel 5 ; alter index indx_p_5 Parallel 10 ; select index_name, degree   from dba_indexes where index_name = 'INDX_P_5'; 3 - Paralelismo Hints * tem precedencia sobre todos as outras opcoes (MANUAL ou AUTO) ...