Monday, July 13, 2009

OLAPIHISTORYRETENTION

caused by
 BUG 3386542 - OLAPI trggers that are installed with seed database, (OLAPISTARTUPTRIGGER and OLAPISHUTDOWNTRIGGER), does not handle absence of Oracle OLAP.


Can also occur when oracle standard edition is installed in which OLAP is missig.

solution is detailed on metalink note 266728.1


Disable OLAPISTARTUPTRIGGER and OLAPISHUTDOWNTRIGGER to avoid error from being generated.

ALTER TRIGGER SYS.OLAPISTARTUPTRIGGER DISABLE;
ALTER TRIGGER SYS.OLAPISHUTDOWNTRIGGER DISABLE;

Friday, July 3, 2009

Changing OBIEE default port

OBIEE default port is 9704 to change it ...

Before making any changes backup the files

1. Open the file named default-web-site.xml in OracleBI\oc4j_bi\j2ee\home\config and change the port value

2. Change the port in OracleBI\oc4j_bi\j2ee\home\applications\bioffice\bioffice\WEB-INF\bioffice.xml file

3. Change the port in OracleBI\xmlp\XMLP\Admin\Configuration\xmlp-server-config.xml

4. Change the port in OracleBIData\web\config\instanceconfig.xml

If port is changed to 80 (web port) in Linux only root user can run an application which binds to a port less than 1024.

After the changes restart OC4J

Wednesday, June 24, 2009

Stats of My Session


select name,value
from v$mystat,v$statname
where v$mystat.statistic#=v$statname.statistic#
and v$statname.statistic# in (11,12,50,51,52,53,54,62,134,179);

Tuesday, June 23, 2009

ADMon 2.0

ADMon 2.0
User Guide

Wednesday, June 17, 2009

Oracle10gR2 On RHEL 5/OEL 5 (x86_64)

Changes to the packages and pre-req parameters

more on metalink 421308.1

Jan 19, 2009:

1. The required packages this article have been changed from Release Notes because of non-existent names and/or versions given in Release Notes.
a) Packages versions changed
1. compat-db-4.1 to compat-db-4.2
2. glibc-2.3 (i386) to glibc-2.5 (i386)
3. libstdc++-3.4.3-9.EL4 to libstdc++-4.1.1
4. libstdc++-devel-3.4.3-22.1 to libstdc++-devel-4.1.1

b) Package names changed
1. pdksh-5.2 to ksh-20060214-1.4
2. gnome-libs to libgnome-2.16.0 and libgnomeui-2.16.0

c) Packages Added
1. libXp-1.0.0 (i386) due to Bug 7680459

2. Updated kernel parameter net.ipv4.ip_local_port_range as per correction request given by Oracle development team.

Feb 11, 2009:

1. Updated the physical memory required as 1GB

2. Removed swap space requirements when physical memory < 1GB

3. Added information about disabling SELinux
Feb 27, 2009:

1. Removed kernel parameter fs.file-max = 65536 , because the default value 202804 is more than 65536.

2. Corrected typo:
glibc-2.5-12 (i386) to glibc-2.5-12 (i686)

Mar 2, 2009:
Removed kernel parameters net.ipv4.tcp_wmem and net.ipv4.tcp_rmem as they are not required. (Reference: unpublished Bugs 7647281 and 7647303)

Tuesday, May 26, 2009

Extracting Oracle DDL Statements


select
dbms_metadata.get_ddl('TABLE','ACCOMMODATION_FEATURE','TBX21QUHQA')
From dual;


parameters are
object type, object name, owner schema name 

Wednesday, May 20, 2009

Cache Buffers Chains

Find latches with high contention

select addr,gets,misses,sleeps
from v$latch_children
where name='cache buffers chains'
and misses > 100 order by 3 desc;

ADDR GETS MISSES SLEEPS
---------------- ---------- ---------- ----------
000000015BF383D8 38773656 8016 6
000000015B6E0968 11215621 4215 0
000000015B5A27B8 26410038 3834 0
000000015B58B5D0 14755159 2289 6



use the address to get the file id and block number


select file#,dbablk,state,class from x$bh where hladdr='000000015BF383D8';

FILE# DBABLK STATE CLASS
---------- ---------- ---------- ----------
1 78757 1 1
11 614483 1 4
9 249625 1 1
11 714956 1 1
3 33047 1 1


using the block number find out the object and the owner


select owner,segment_name
from dba_extents
where file_id=&p1
and &p2 between
block_id and block_id + blocks -1;

Enter value for p1: 11
Enter value for p2: 614483

OWNER SEGMENT_NAME
--------- ------------------
TRNSTG STATIC_CACHE_QUEUE


Investigate the sqls accessing the objects for hot blocks


Metalink (Doc ID: 163424.1) provides following query for identifying hot blocks


column segment_name format a35
select /*+ RULE */
e.owner ||'.'|| e.segment_name segment_name,
e.extent_id extent#,
x.dbablk - e.block_id + 1 block#,
x.tch,
l.child#
from
sys.v$latch_children l,
sys.x$bh x,
sys.dba_extents e
where
x.hladdr = &address and
e.file_id = x.file# and
x.hladdr = l.addr and
x.dbablk between e.block_id and e.block_id + e.blocks -1
order by x.tch desc ;


Metalink recommendations

Depending on the TCH column (The number of times the block is hit by a SQL
statement), you can identify a hotblock. The higher the value of the TCH column,
the more frequent the block is accessed by SQL statements.

In order to reduce contention for this object the following mechanisms can be put in place:

1) Examine the application to see if the execution of certain DML and SELECT statements
can be reorganized to eliminate contention on the object.

2) Decrease the buffer cache -although this may only help in a small amount of cases.

3) DBWR throughput may have a factor in this as well.
If using multiple DBWR's then increase the number of DBWR's.

4) Increase the PCTFREE for the table storage parameters via ALTER TABLE
or rebuild. This will result in less rows per block.

5) Consider implementing reverse key indexes
(if range scans aren't commonly used against the segment)