Quantcast
Channel: Learn. Share. Repeat.
Viewing all 147 articles
Browse latest View live

oracle-hot-backup-concept – Revisitied!!!

$
0
0
In 2010 i had posted the blog with the hot backup concept which was explained by Howard (aka,HJR on Forums) - http://aprakash.wordpress.com/2010/06/27/oracle-hot-backup-concept/ Recently i read another blog by “Jeremiah Wilton” who has explained it very well, so i thought of posting it for my future reference as well as for few others who might have

Enq: FB contention – No its not Facebook Contention

$
0
0
I am not a facebook fan neither an addict of it, but i still got to see “enq: FB contention”…thats bad . Well this was for the first time i saw this wait event and it was on 11.2.0.2 version.Mostly, the enq: FB contention wait event was followed by log buffer space. Well, the enq:

Optimizer Statistics Whitepaper

$
0
0
The CBO team has released two white papers on Optimizer.The first paper was released in Nov 2011, which was titled “Understanding Optimizer Statistics” and this month Apr 2012, they have released “Best Practices for Gathering Optimizer Statistics”. I would say its a must read. https://blogs.oracle.com/optimizer/entry/lies_damned_lies_and_statistics https://blogs.oracle.com/optimizer/entry/lies_damned_lies_and_statistics1 Also Timur Akhmadeev has started Poll on the METHOD_OPT

ORA-15027: active use of diskgroup “DATA” precludes its dismount

$
0
0
As i wanted to test few thing related to asm diskgroup on my test box, had to drop the diskgroup. Before dropping the diskgroup had dropped the database using RMAN. A S M D I S K G R O U P S P A C E U S A G E R E P

ORA-00600:[kcbsor_2], [3], [2]

$
0
0
Recently we had a node crash of one node in 3-node 11.2.0.3 RAC database configuration.The alert log showed - Thu Apr 26 00:15:16 2012 Hex dump of (file 488, block 345039) in trace file /u01/oradiag/diag/rdbms/matrix_adc/matrix3/trace/matrix3_dbw1_16218.trc Corrupt block relative dba: 0x7a0543cf (file 488, block 345039) Bad header found during preparing block for write Data in bad

ORA-20003: You are not allowed to alter password user

$
0
0
Today while working on UAT database refresh activity, had a step to change all schemas password to a common one. begin for x in (select username from dba_users ) loop execute immediate 'alter user '||x.username||' identified by xxxxxx profile DEFAULT'; end loop; end; / The above was executed as SYS user and it errored out

Change in Database link – 11gR2

$
0
0
A little change in dblink from 11gR2 - SQL> conn anand/anand123 Connected. SQL> SQL> @db_link OWNER DB_LINK USERNAME HOST ------------------------------ ------------------------------ ------------------------------ ------------------------------ ANAND SCOTT_DBLINK SCOTT MATSTDBY SQL> select sysdate from dual@SCOTT_DBLINK; SYSDATE --------- 11-MAY-12 I login as sys and change scott schema’s password - SQL> conn / as sysdba Connected. SQL> SQL> SQL> SQL>

Index Sample Size

$
0
0
Recently i was asked a question, what would be the sample size percentage for indexes when tables stats are gathered with estimate percent of 5 and cascade set to true.My answer to it was 5 within a second.I had this believe that the sample size percentage for an index is same to the estimate_percent given

Index Range Scan and db file scattered read as session wait event

$
0
0
I was asked to check a session which was running for more than expected time on 11.2.0.3 single instance database.The session was running a simple select statement 05:03:09 SYS@xx4040 > @sqlid 9kpjtkdz1mzus old 9: sql_id = ('&1') new 9: sql_id = ('9kpjtkdz1mzus') SQL_ID HASH_VALUE SQL_TEXT ------------- ---------- ------------------------------------------------------------------------------------------------------------------------------------------------------ 9kpgmndz1mzus 2115632984 SELECT SC.ID FROM user.s_seq_cd SC

Mining DDL from LogMiner

$
0
0
One may sometimes need to find the ddl which ran on the database at some certain period of time.If auditing is enabled for the you can get the details using various *_audit_* views. In case, its not and the database is in archivelog mode you can try using logminer.Here is an example for it –

ORA-06553: PLS-306: wrong number or types of arguments in call to ‘OGC_Y’ while exporting table

$
0
0
Recently i had faced “ORA-06553: PLS-306:” error while taking an export using expdp for table using “query” parameter. $ expdp directory=TEST_DPUMP_DIR dumpfile=test_url.dmp logfile=test_url.log tables=anand.test_delete_objects query=\"WHERE processed_flag = 'Y'\" Export: Release 11.2.0.3.0 - Production on Tue May 29 00:24:25 2012 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. Username: system Password: Connected to:

Loading SQL Plans into SPM using AWR

$
0
0
SPM (SQL Plan Management) has been an useful solution for performance issues due to change in execution plan.As mentioned in Oracle Optimizer team’s blog – SQL Plan Management (SPM) allows database users to maintain stable yet optimal performance for a set of SQL statements. SPM incorporates the positive attributes of plan adaptability and plan stability,

Interesting blogs after OOW

$
0
0
It has been long time since i have posted something. After the OOW week and 12c db version being on its way, there have been few blogs which i would recommend to read http://portrix-systems.de/blog/brost/favourite-oracle-12c-database-features-of-openworld-bloggers/ http://hansforbrich.blogspot.sg/2012/10/toms-12-top-new-features.html http://dbastreet.com/blog/?p=908 http://momendba.blogspot.in/2012/10/oow-2012-oracle-12c-new-features.html http://momendba.blogspot.in/2012/10/oracle-rac-12c-new-featues.html http://uhesse.com/2012/10/01/exadata-x3-key-points/ Happy reading Filed under: Oracle Tagged: 12c, OOW, Oracle

ORA-26723: user “XXXXX” requires the role “DV_GOLDENGATE_REDO_ACCESS”

$
0
0
While starting the extract on UAT DB env which had been recently moved to exadata we got the below error.As we had redo and archive logfiles on ASM, we used “TRANLOGOPTIONS DBLOGREADER” in extract parameter file. 2012-10-24 22:35:48 ERROR OGG-00446 Oracle GoldenGate Capture for Oracle, emos_cc.prm: Opening ASM file +RECO_UMO1/archivelog/2012_10_24/thread_1_seq_224.955.797517005 in DBLOGREADER mode: (26723) ORA-26723:

UPGRADE CHECKPOINTTABLE – Goldengate

$
0
0
We have a goldengate setup wherein 3 different GoldenGate clients connects and replicat to one target database.Below are the versions being currently used 11.1.1.1, 11.2.1.0.0 and 11.2.1.0.3. The version 11.2.1.0.3 was recently added, and below are the steps performed GGSCI (myhost) 2> obey ./dirprm/add_rep.oby GGSCI (myhost) 3> GGSCI (myhost) 3> DBLOGIN USERID ggate@test PASSWORD 'xxxxxxxx'

Internals of Active Dataguard – A must read

$
0
0
I found the below blog interesting and feel its a must read to enchance knowledge on Active DataGuard http://sai-oracle.blogspot.in/2012/11/internals-of-active-dataguard.html Happy reading Filed under: 11gR2, Data Guard, Oracle, standby Tagged: 11gR2, active dataguard, dataguard

DBCA failing with “Diskgroup XXX is not compatible for database usage”

$
0
0
Today a friend of mine pinged me an error while he was trying to create database using DBCA from 11.2.0.3 RDBMS home on an exadata box.Screenshot of the error is below The error was easy to understand as compatible parameter set in the database initialization parameter was lower than the compatible.rdbms set for the diskgroup

2012 in review

$
0
0
The WordPress.com stats helper monkeys prepared a 2012 annual report for this blog. Here’s an excerpt: 19,000 people fit into the new Barclays Center to see Jay-Z perform. This blog was viewed about 140,000 times in 2012. If it were a concert at the Barclays Center, it would take about 7 sold-out performances for that

Lets welcome 2013

$
0
0
Wishing everyone a very happy and prosperous New Year 2013.In this New Year, may you always be blessed with contentment, peace and abundance. With 12c releasing in 2013, it would be a happening Year and lots of new things to learn and playaround Filed under: Oracle

ORA-38500: Unsupported operation: Oracle XML DB not present

$
0
0
While trying to import using impdp got the below error Table "ANAND"."TEST" exists and has been truncated. Data will be loaded but all dependent metadata will be skipped due to table_exists_action of truncate Processing object type TABLE_EXPORT/TABLE/TABLE_DATA ORA-31693: Table data object "ANAND"."TEST":"Y2012_Q2_M06" failed to load/unload and is being skipped due to error: ORA-38500: Unsupported operation:
Viewing all 147 articles
Browse latest View live