sometimes we clean recovery area manually , delete archive logs, old files ourselves
the output v$flash_recovery_area_usage can be incorrect.
Use rman to sync the data dictionary
RMAN>CROSSCHECK BACKUP;
RMAN>CROSSCHECK ARCHIVELOG ALL; (crosscheck won't delete, just mark them)
RMAN>Delete expired backup; (will delete items which crosscheck fail )
RMAN>Delete expired archivelog all;
RMAN>Delete force obsolete;
RMAN> list backup (it won't list data copies )
RMAN> list datafilecopy all;
RMAN> crosscheck datafilecopy all;
RMAN> delete datafilecopy all;
RMAN>delete datafilecopy tag=test_copy;
RMAN>Delete archivelog all completed before 'SYSDATE-7';
Then
use exec dbms_backup_restore.refreshagedfiles ;
to refresh
Tuesday, November 12, 2013
Monday, November 11, 2013
Thursday, October 24, 2013
Email SMTP Host DNS MX Record
Sometimes the mail gateway is configured as MX record
ie test-mail-router.example.com
You can't get any IP from nslookup from test-mail-router.example.com
However you can use dig and find hostnames behind MX record
dig test-mail-router.example.com mx
How it works ,refer wiki http://en.wikipedia.org/wiki/MX_record
ie test-mail-router.example.com
You can't get any IP from nslookup from test-mail-router.example.com
However you can use dig and find hostnames behind MX record
dig test-mail-router.example.com mx
How it works ,refer wiki http://en.wikipedia.org/wiki/MX_record
Wednesday, October 09, 2013
How To Find Who is Bulk Loading on Oracle WebCenter Content
You always need to face performance issues. Sometimes they are from user side. When they pick a big folder and throw into WebContent, it generates lots of traffic and load on WCC archiver/indexer
How do we know the volume and username of bulk loading
Below sql is to tell last 1 hour information. You can change timeframe to know different period
select extract(day from (h.realactiondate)) dy, extract(hour from (h.realactiondate)) hr, h.duser, count(h.did)
from cms_dochist h, docmeta d
where h.did = d.did
and h.daction = 'Checkin'
and d.xconsumptionserver = 'TEST'
and h.realactiondate sysdate -1/24 and sysdate
group by extract(day from (h.realactiondate)), extract(hour from (h.realactiondate)), h.duser
having count(h.did) > 100
order by 1,2, 4 desc
How do we know the volume and username of bulk loading
Below sql is to tell last 1 hour information. You can change timeframe to know different period
select extract(day from (h.realactiondate)) dy, extract(hour from (h.realactiondate)) hr, h.duser, count(h.did)
from cms_dochist h, docmeta d
where h.did = d.did
and h.daction = 'Checkin'
and d.xconsumptionserver = 'TEST'
and h.realactiondate sysdate -1/24 and sysdate
group by extract(day from (h.realactiondate)), extract(hour from (h.realactiondate)), h.duser
having count(h.did) > 100
order by 1,2, 4 desc
Monday, July 15, 2013
Datafile Creation Error On Standby When Primary Is On ASM
The issues happen when you add datafiles on primary which is on ASM (OMF).
MRP aborted on standby due to below error while your standby db is on filesystem (not ASM)
The standby complains it can't create datafile even though standby_file_management='auto' is in place
Error like in alert logs are :
ORA-01119: error in creating database file '+data'
ORA-17502: ksfdcre:4 Failed to create file +data
ORA-15001: diskgroup "DATA" does not exist or is not mounted
ORA-15077: could not locate ASM instance serving a required diskgroup
File #56 added to control file as 'UNNAMED00056'.
First we need to make MRP work and narrow the gap,so we need to manually create datafile 'UNNAMED00056' on standby
MRP aborted on standby due to below error while your standby db is on filesystem (not ASM)
The standby complains it can't create datafile even though standby_file_management='auto' is in place
Error like in alert logs are :
ORA-01119: error in creating database file '+data'
ORA-17502: ksfdcre:4 Failed to create file +data
ORA-15001: diskgroup "DATA" does not exist or is not mounted
ORA-15077: could not locate ASM instance serving a required diskgroup
File #56 added to control file as 'UNNAMED00056'.
First we need to make MRP work and narrow the gap,so we need to manually create datafile 'UNNAMED00056' on standby
- use sql select file#,name from v$datafile where name like '%UNNAMED%'; to check how many we have
- use sql alter database to create a new datafile to replace old one. ALTER DATABASE CREATE DATAFILE '/u01/app/oracle/product/11.2.0.3/test/dbs/UNNAMED00056' as '/u111/oradata/test/test_05.dbf' size 10g
- Then you can restart MRP to continue recovery process
- Make sure standby_file_management='auto' is in place
- In some notes, you may see db_file_create_dest, however it's obsolete after 11gR2
- The good parameter we need to set is DB_FILE_NAME_CONVERT
- Example is alter system set DB_FILE_NAME_CONVERT = '+DATA/test/datafile','/u111/oradata/test' scope=spfile sid='*';
- This parameter can't set dynamic, must be set on spfile
Subscribe to:
Posts (Atom)