|
(52-29)上完1Z0-052的第10章
2016-02-23.sql:
- select * from dba_rollback_segs;
- select * from v$undostat;
- select * from dba_tablespaces;
- alter tablespace undotbs1 retention noguarantee;
- select * from v$fixed_table where name like 'V%ADVICE%';
- ----
- create undo tablespace undotbs2 datafile size 256K autoextend off;
- create temporary tablespace temp2 tempfile '/home/oracle/temp2.dbf' size 15G;
- drop tablespace undotbs1;
- ---
- select * from dba_rollback_segs;
- alter database default temporary tablespace temp2;
- drop tablespace temp;
- ---
- select * from dba_alert_history ;
- select * from v$sql where sql_id = 'b4ypsk068tpkv';
复制代码- select * from v$transaction;
- --00000001EAE82800
- select * from flashback_transaction_query where logon_user = 'HR'
- and table_name='EMPLOYEES';
- ---
- create undo tablespace undotbs2 datafile size 20M autoextend on;
- alter system set undo_tablespace=undotbs2;
- drop tablespace undotbs1;
- alter system flush buffer_cache;
- alter database add supplemental log data;
- select
- d.SUPPLEMENTAL_LOG_DATA_MIN,
- d.SUPPLEMENTAL_LOG_DATA_PK,
- d.SUPPLEMENTAL_LOG_DATA_UI,
- d.SUPPLEMENTAL_LOG_DATA_FK,
- d.SUPPLEMENTAL_LOG_DATA_ALL
-
- from v_$database d;
-
- ----
- select * from flashback_transaction_query where logon_user = 'HR'
- and table_name='EMPLOYEES';
-
- ----
复制代码
|
|