2 Kasım 2015 Pazartesi
Netezza Backup & Restore via Networker
EMC Networker supports Netezza backup configuration.Also we use this backup methology.
Previous week we deleted some row unfortunately.So we had to restore this table before the deletion was completed.
But we are newbie this issue,netezza restore.
Finally we hit restore command and restored it.But default restore without any date parameter,networker restores last backup.But I need to restore 3 previous backup.
So we hit the 3 previous backup set id from the backup log.
Then we restored it.
Backup command:
-----------------------
nzbackup -db XX_DWH -connector networker -connectorArgs NSR_SERVER=networkerist.doganay.com.tr:NSR_DATA_VOLUME_POOL=DDBoostNetezza
Restore Command:
------------------------
nzrestore -db XX_DWH_RST -sourcedb XX_DWH -backupset 20151017201912 -connector networker -connectorArgs NSR_SERVER=networkerist.doganay.com.tr:NSR_DATA_VOLUME_POOL=DDBoostNetezza -tables XX_HIST -sourceschema XX_ADMIN
XX_DWH_RST -------->Empty database which created by us.
XX_DWH --------------->Source database which backed up.
20151017201912------->Backup set id(You can't find this id from backup admin,you have to mine netezza backup log)
networkerist.doganay.com.tr-------->networker hostname
XX_HIST --------------->table name which you want to restore it.
XX_ADMIN------------>table's schema
Restore output:
-------------------
Restore of increment 1 from backupset 20151017201912 to database 'XX_DWH_RST' committed.
Restore of increment 2 from backupset 20151017201912 to database 'XX_DWH_RST' committed.
Restore of increment 3 from backupset 20151017201912 to database 'XX_DWH_RST' committed.
Restore of increment 4 from backupset 20151017201912 to database 'XX_DWH_RST' committed.
Restore of increment 5 from backupset 20151017201912 to database 'XX_DWH_RST' committed.
Restore of increment 6 from backupset 20151017201912 to database 'XX_DWH_RST' committed.
Pray & Tray:)
2 Ekim 2015 Cuma
ORA-01804 failure to initialize timezone information dbua
Problem:
-----------
ORA-01804 "failure to initialize timezone information"
While upgrading 11.1.0.7 database to 12.1.0.2,I got an error when run the dbua.
Solution:
-----------
unset ORA_TZFILE
17 Eylül 2015 Perşembe
Crfclust.bdb IS TOO BIG
Problem:
------------
Crfclust.bdb file is growing.
We have ODA machine which is RAC with two nodes.
Everyday we have got /u01 disk space alert.We cleaned trace files,cdmp,incdir vs.But disk space a bit free.
One day I found crfclust.bdb file which size is 32G in $GRID_HOME
This file used to Cluster Health Monitor.But there is a problem with its size.
This is a bug which related to ODA RAC system.
[NECO1]/u01/app/11.2.0.4/grid/crf/db/neco1 $ du -sh crfclust.bdb
32G crfclust.bdb
Solution:
----------
[grid@neco1 ~]$ oclumon manage -get repsize
CHM Repository Size = 204737600
Done
This size is repositery retention.Our retention is 6,58 year.This is incredible:))
This size should be between 3600 (1 hour) and 259200 (3 days).
------------------------------------------------------------------------------------
[grid@neco2 ~]$ oclumon manage -repos resize 259200
neco1 --> retention check successful
neco2 --> retention check successful
New retention is 259200 and will use 4524595200 bytes of disk space
CRS-9115-Cluster Health Monitor repository size change completed on all nodes.
Done
------------------------------------------------------------------------------------
4524595200 bytes means 4GB.
------------------------------------------------------------------------------------
Then check the size;
[grid@neco2 ~]$ oclumon manage -get repsize
CHM Repository Size = 259200
Done
--------------------------------------------------------------------------------------------------------------------------
If you get error like below while running 'oclumon manage -get repsize',you should stop and start ora.crf via 'crsctl stop res ora.crf -init'
CRS-9011-Error manage: Failed to initialize connection to the Cluster Logger Service
--------------------------------------------------------------------------------------------------------------------------
In my case I didn't need to bounce the ora.crf.
It is very nice size:))
[root@neco1 neco1]# du -sh crfclust.bdb
2.2M crfclust.bdb
Reference note:
-------------------
ODA Nodes Lacking Space Due to Large Cluster Health Monitor File Crfclust.Bdb (Doc ID 1616910.1)
3 Temmuz 2015 Cuma
RMAN-06054: media recovery requesting unknown archived log for thread 2 with sequence and starting SCN of
PROBLEM:
---------------
RMAN-06054: media recovery requesting unknown archived log for thread 2 with sequence 8290 and starting SCN of 6062404529202
SOLUTION:
----------------
select scn_to_timestamp(6062404529202) from dual
output:
----------
01.07.2015 18:27:56,000000000
Also my backup finished at 18:34.But I couldn't recover at this point.
I found the 18:27 scn,then I set it.
select TIMESTAMP_TO_SCN (TO_TIMESTAMP ('20150701 18:27:00', 'YYYYMMDD HH24:MI:SS')) scn FROM dual;
output:
---------
6062404514529
Because redo didn't archived before the backup finished.So,this archive generated after finished backup.
RUN
{
allocate channel t1 type disk ;
allocate channel t2 type disk ;
allocate channel t3 type disk ;
allocate channel t4 type disk ;
set until scn 6062404514529;
SET NEWNAME FOR DATAFILE 1 to '+DATAC1';
SET NEWNAME FOR DATAFILE 15 to '+DATAC1';
SET NEWNAME FOR DATAFILE 2 to '+DATAC1';
SET NEWNAME FOR DATAFILE 4 to '+DATAC1';
SET NEWNAME FOR DATAFILE 23 to '+DATAC1';
SET NEWNAME FOR DATAFILE 24 to '+DATAC1';
SET NEWNAME FOR DATAFILE 41 to '+DATAC1';
SET NEWNAME FOR DATAFILE 42 to '+DATAC1';
SET NEWNAME FOR DATAFILE 5 to '+DATAC1';
SET NEWNAME FOR DATAFILE 6 to '+DATAC1';
SET NEWNAME FOR DATAFILE 26 to '+DATAC1';
SET NEWNAME FOR DATAFILE 27 to '+DATAC1';
SET NEWNAME FOR DATAFILE 28 to '+DATAC1';
SET NEWNAME FOR DATAFILE 29 to '+DATAC1';
SET NEWNAME FOR DATAFILE 30 to '+DATAC1';
SET NEWNAME FOR DATAFILE 31 to '+DATAC1';
SET NEWNAME FOR DATAFILE 32 to '+DATAC1';
SET NEWNAME FOR DATAFILE 33 to '+DATAC1';
SET NEWNAME FOR DATAFILE 34 to '+DATAC1';
SET NEWNAME FOR DATAFILE 37 to '+DATAC1';
SET NEWNAME FOR DATAFILE 38 to '+DATAC1';
SET NEWNAME FOR DATAFILE 39 to '+DATAC1';
SET NEWNAME FOR DATAFILE 40 to '+DATAC1';
SET NEWNAME FOR DATAFILE 7 to '+DATAC1';
SET NEWNAME FOR DATAFILE 8 to '+DATAC1';
SET NEWNAME FOR DATAFILE 9 to '+DATAC1';
SET NEWNAME FOR DATAFILE 10 to '+DATAC1';
SET NEWNAME FOR DATAFILE 11 to '+DATAC1';
SET NEWNAME FOR DATAFILE 12 to '+DATAC1';
SET NEWNAME FOR DATAFILE 13 to '+DATAC1';
SET NEWNAME FOR DATAFILE 14 to '+DATAC1';
SET NEWNAME FOR DATAFILE 17 to '+DATAC1';
SET NEWNAME FOR DATAFILE 18 to '+DATAC1';
SET NEWNAME FOR DATAFILE 19 to '+DATAC1';
SET NEWNAME FOR DATAFILE 20 to '+DATAC1';
SET NEWNAME FOR DATAFILE 22 to '+DATAC1';
SET NEWNAME FOR DATAFILE 60 to '+DATAC1';
SET NEWNAME FOR DATAFILE 25 to '+DATAC1';
SET NEWNAME FOR DATAFILE 3 to '+DATAC1';
SET NEWNAME FOR DATAFILE 16 to '+DATAC1';
SET NEWNAME FOR DATAFILE 21 to '+DATAC1';
restore database;
recover database;
release channel t1;
release channel t2;
release channel t3;
release channel t4;
}
Finished restore at 03-07-2015 12:05:29
Starting recover at 03-07-2015 12:05:29
starting media recovery
media recovery complete, elapsed time: 00:00:07
Finished recover at 03-07-2015 12:05:37
RMAN> alter database open resetlogs;
database opened
Pray and tray:)
9 Haziran 2015 Salı
OGG-02091 Operation not supported because enable_goldengate_replication is not set to true.
PROBLEM:
---------------
After you have installed you goldengate on 12C database,while starting replicat process replicat process may abended.
In my case source database is 11G,destination database is 12C.
After hit this error,I examined the ggserr.log is below:
[oracle@ahebsfin1 ggs_core]$ tail -100f ggserr.log
#################################################################################
2015-06-09 04:07:38 ERROR OGG-02091 Oracle GoldenGate Delivery for Oracle, rep1.prm: Operation not supported because enable_goldengate_replication is not set to true.
#################################################################################
SOLUTION:
----------------
enable_goldengate_replication is new parameter in 12C.
You have to enable this parameter for starting replicat process.
SQL> sho parameter goldengate
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
enable_goldengate_replication boolean FALSE
We set this parameter to TRUE.
SQL> alter system set enable_goldengate_replication=TRUE;
System altered
This is dynamic parameter.Set to TRUE,then replicat can start wihout any problem.
GGSCI (ahebsfin1) 1> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER RUNNING
REPLICAT ABENDED REP1 00:00:00 00:20:15
GGSCI (ahebsfin1) 3> start rep1
Sending START request to MANAGER ...
REPLICAT REP1 starting
GGSCI (ahebsfin1) 4> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER RUNNING
REPLICAT RUNNING REP1 00:04:29 00:00:01
Tray
./ggsci: error while loading shared libraries: libclntshcore.so.12.1
PROBLEM:
---------------
While connecting goldengate console you may hit this error:
./ggsci: error while loading shared libraries: libclntshcore.so.12.1: cannot open shared object file: No such file or directory
SOLUTION:
-----------------
ln -s /u01/app/oracle/product/12.1.0.2/dbhome_1/lib/libclntshcore.so.12.1 libclntshcore.so.12.1
Note:Your ORACLE_HOME path may be diffrent.Attention please:)
Etiketler:
./ggsci,
12c,
libclntshcore.so.12.1,
ln -s
28 Ocak 2015 Çarşamba
ORA-15041: diskgroup "DG_NAME" space exhausted
In 11.1.0.7 database version;
When you want to add new datafile in ASM or resize the datafile which in ASM,you may hit this error that ORA-15041: diskgroup "DG_NAME" space exhausted.
If ASM diskgroup can't rebalance this issue is normal.You can check disk free space with query below:
select group_number,free_mb from v$asm_disk order by 1;
An ideal disk group rebalance and each of the asm disks contains same free_mb.If it isn't same you hit a bug:)
Problem:
--------------
ORA-15041: diskgroup "DG_NAME" space exhausted
I hit an error diskgroup "DG_NAME" space exhausted.But I have free space on this diskgroup.
This is 11.1.0.7 bug
Solution(Workaround):
-----------------------------
alter system set "_asm_imbalance_tolerance"=0;
alter diskgroup <DG_NAME> rebalance power 5;
FREE_MB in Same Size Disks Differ Even After Successful Rebalance (Doc ID 813013.1)
Kaydol:
Kayıtlar (Atom)