Hi
Some times, i use to do a dev refreshes without checking the pre- requisites like size , object counts etc .. but i will pay my time for the same when i see the import taking long time than i expected.
so the below query can be used to see what actually the import process is currently doing inside the db , like which table is getting loaded how many rows are getting updated till now and we can calculate how long the processs could take etc .. it is a use full quey which i frequently use
select substr(sql_text,instr(sql_text,'INTO "'),30) table_name,
rows_processed,
round((sysdate-to_date(first_load_time,'yyyy-mm-dd hh24:mi:ss'))*24*60,1) minutes,
trunc(rows_processed/((sysdate-to_date(first_load_time,'yyyy-mm-dd hh24:mi:ss'))*24*60)) rows_per_min
from sys.v_$sqlarea
where sql_text like 'INSERT %INTO "%'
and command_type = 2
and open_versions > 0;
and basically check if the imp process still exist on the server
ps -ef | grep imp
Monday, August 13, 2012
oracle user password expired locked
In 11 r2 , were facing this user lock and expire issue frequently to override it
select profile from dba_users where username ='xxxx';
alter profile default limit passsword_life_time unlimited;
alter profile default limit failed_login_attempts unlimited;
select profile from dba_users where username ='xxxx';
alter profile default limit passsword_life_time unlimited;
alter profile default limit failed_login_attempts unlimited;
select resource_name,limit from dba_profiles where profile='' ;
Subscribe to:
Posts (Atom)
How to Trouble shoot Logfile_sync wait event
First Identify and break down LGWR wait events. Query wait events for LGWR. In this instance LGWR sid is 3 (and usually it is). select s...
-
Refference with the document How to Clean Up Duplicate Objects Owned by SYS and SYSTEM Schema [ID 1030426.6] Hi Had faced an issue where ...
-
Login to the first node column is_recovery_dest_file format a25 column name format a60 set linesize 160 select status, name, is_recover...
-
SQL> SELECT LOG_MODE FROM SYS.V$DATABASE; LOG_MODE ------------ NOARCHIVELOG show parameter archive will tell u the archive...