DB_nk_CACHE_SIZE in oracle 10g r2

Good Morning everyone
From official document ... Memory Architecture
1) How the logic applied here ? i mean 32M  how it came ?
Memory consumed by manually sized components reduces the amount of memory available for automatic adjustment.
SGA_TARGET = 256M
DB_8K_CACHE_SIZE = 32M 
The instance has only 224 MB (256 - 32) and
remaining to be distributed among the automatically sized components.
Thanks in advance. !

SQL> select component,current_size, granule_size from V$SGA_DYNAMIC_COMPONENTS;
COMPONENT                 CURRENT_SIZE GRANULE_SIZE
shared pool                  411041792      4194304
large pool                     4194304      4194304
java pool                      4194304      4194304
streams pool                   4194304      4194304
DEFAULT buffer cache         230686720      4194304
KEEP buffer cache                    0      4194304
RECYCLE buffer cache                 0      4194304
DEFAULT 2K buffer cache              0      4194304
DEFAULT 4K buffer cache              0      4194304
DEFAULT 8K buffer cache              0      4194304
DEFAULT 16K buffer cache      33554432      4194304
COMPONENT                 CURRENT_SIZE GRANULE_SIZE
DEFAULT 32K buffer cache             0      4194304
Shared IO Pool                       0      4194304
ASM Buffer Cache                     0      4194304
14 rows selected.
SQL> alter system set db_16k_cache_size=28M;
System altered.
SQL> select component,current_size, granule_size from V$SGA_DYNAMIC_COMPONENTS where component='DEFAULT 16K buffer cache';
COMPONENT                 CURRENT_SIZE GRANULE_SIZE
DEFAULT 16K buffer cache      29360128      4194304   <-- Allocated 28M (Multiple of 4)
SQL> select component,current_size, granule_size from V$SGA_DYNAMIC_COMPONENTS where component='DEFAULT 16K buffer cache';
COMPONENT                 CURRENT_SIZE GRANULE_SIZE
DEFAULT 16K buffer cache      29360128      4194304   <-- Allocated 32M (Multiple of 4)
SQL> alter system set db_16k_cache_size=30M;
System altered.
SQL> select component,current_size, granule_size from V$SGA_DYNAMIC_COMPONENTS where component='DEFAULT 16K buffer cache';
COMPONENT                 CURRENT_SIZE GRANULE_SIZE
DEFAULT 16K buffer cache      33554432      4194304   <-- Allocated 32M (Multiple of 4)
SQL> alter system set db_16k_cache_size=31M;
System altered.
SQL> select component,current_size, granule_size from V$SGA_DYNAMIC_COMPONENTS where component='DEFAULT 16K buffer cache';
COMPONENT                 CURRENT_SIZE GRANULE_SIZE
DEFAULT 16K buffer cache      33554432      4194304  <-- Allocated 32M (Multiple of 4)
As you can see the db_16k_cache_size is always allocated in chunks of granule size (4M). Despite setting the size to 30M,31M,32M it will still allocate 32M.
Hope this is clear.
Regards,
Suntrupth

Similar Messages

  • (Oracle 10g) MMAN 백그라운드 프로세스를 통한 자동 공유 메모리 관리

    제품 : ORACLE SERVER
    작성날짜 : 2005-05-19
    (Oracle 10g) MMAN 백그라운드 프로세스를 통한 자동 공유 메모리 관리
    ========================================
    PURPOSE
    이 문서에서는 Oracle database 10g의 Self Managing 기능 중의 하나인
    자동 공유 메모리 관리 기능에 대하여 알아보고 SGA_TARGET 이라는
    새로운 파라미터와 MMAN이라는 새로운 백그라운드 프로세스에 대하여
    소개하기로 한다.
    Explanation
    1. 개요
    SGA_TARGET 파라미터를 이용한 자동 SGA 튜닝이 어떻게 이루어지는지
    그 원리를 알아보도록 한다.
    자동 SGA 튜닝은 Oracle database 10g의 ADDM을 가능하게 하는 요소인
    메모리 advisor가 그 기능을 수행한다.
    자동 공유 메모리 관리 기능이 갖는 장점은 다음과 같은 몇 가지가 있다.
    첫째, workload가 변함에 따라 자동으로 공유 메모리가 적용이 된다.
    둘째, 메모리의 활용률을 극대화한다.
    세째, out-of-memory라는 메모리 부족 발생으로 인한 에러를 예방할 수 있다.
    즉, 오라클의 공유 메모리 영역 중 Shared pool size, Buffer cache size,
    Large pool size, Java pool size를 매뉴얼하게 셋팅할 필요가 없다.
    가용한 메모리의 사용을 보다 효과적으로 해주는 것 뿐만 아니라,
    메모리 자원을 얻는 데 필요한 비용을 줄여줄 수 있다.
    무엇보다 dynamic하고 flexible한 메모리 관리 구조를 통하여
    오라클 데이타베이스 관리를 단순화시켜 준다.
    2. MMAN 백그라운드 프로세스
    공유 메모리의 자동 튜닝을 위하여 MMAN이라는 백그라운드 프로세스가
    새로이 등장하였다.
    MMAN이라는 백그라운드 프로세스가 5분 마다 주기적으로 수집한
    작업 부하(Workload) 정보를 바탕으로 동적으로 구성이 된다.
    메모리는 가장 필요한 곳으로 동적으로 할당이 된다.
    SPFILE을 사용하면 MMAN이 변경한 파라미터들의 정보가 자동으로
    SPFILE에 저장이 된다.
    그러므로, 가능한 Oracle 9i 이상부터는 SPFILE 의 사용을 권장한다.
    왜냐 하면 다음과 같은 세 가지 장점이 있기 때문이다.
    첫째, 각 부분 크기의 권장안을 인스턴스 종료 후에도 보관할 수 있다.
    둘째, 저장되어진 각 파라미터들의 사이즈는 데이타베이스 기동 시 할당이 된다.
    세째, 각 파라미터들의 최적의 값을 찾는 데 드는 비용을 줄일 수 있다.
    이렇게 MMAN 이라는 프로세스에 의해서 자동 공유 메모리 관리 기능이
    구현이 되는 것이다.
    3. SGA_TARGET 파라미터를 통한 자동 공유 메모리 관리
    자동 공유 메모리 관리 기능을 사용하게 되면 오라클 SGA 관련 네 가지
    파라미터들을 DBA가 일일이 셋팅할 필요가 없다.
    오라클의 공유 메모리 크기는 SGA_TARGET 이라는 파라미터 하나로 다 조절이 된다.
    SHARED_POOL_SIZE, DB_CACHE_SIZE, LARGE_POOL_SIZE, JAVA_POOL_SIZE 라는
    파라미터들을 구성하는 데 관여하지 않아도 된다는 뜻이다.
    과거에는 이러한 파라미터들을 너무 낮게 잡게 되면 성능도 저하될 뿐만 아니라
    out-of-memory error인 ORA-4031 ERROR를 자주 만나게 되었고 메모리 낭비도 있었다.
    그러나, Oracle database 10g의 New Feature는 SGA_TARGET이라는 새로운
    파라미터만 셋팅하여도 되게 설계되었다.
    SGA_TARGET이라는 파라미터는 해당 인스턴스에 필요한 SGA의 최대 크기를 나타낸다.
    이 파라미터는 SGA 내의 모든 메모리들을 포함한다.
    즉, Automatic하게 사이즈가 결정되는 파라미터, 매뉴얼하게 결정되는 파라미터,
    startup 시에 할당되는 internal metadata 할당을 다 포함한다.
    10g 이전 버젼처럼 SGA의 TOTAL 크기를 정확히 컨트롤하는 것이 어렵지가 않다는 뜻이다.
    SGA_TARGET 파라미터를 셋팅할 때에는 다음을 염두에 두어야 한다.
    1) SGA 영역 중 자동 구성으로 조절되지 않는 영역이 있는데
    Redo Log buffer 와 Fixed SGA 영역, BUFFER KEEP, RECYCLE과 관련된 파라미터,
    STREAMS POOL 관련 파라미터들이다.
    2) SGA_TARGET 파라미터가 0으로 셋팅되면 자동 공유 메모리 기능은 DISABLE된다.
    SGA_TARGET 파라미터의 DEFAULT 값은 0이다.
    SGA_TARGET 파라미터가 0이 아닌 어떤 값으로 셋팅이 되어 있어도
    SHARED_POOL_SIZE 또는 DB_BLOCK_BUFFERS 와 같은 파라미터들은 여전히
    셋팅할 수는 있다.
    3) SGA_TARGET 파라미터가 설정되어 있지 않거나 0 으로 셋팅되어 있을 경우,
    자동 튜닝 파라미터들은 10g 이전 버젼에서와 같이 관리된다.
    단, 예외는 있다. SHARED_POOL_SIZE가 그 경우인데, 내부적인 STARTUP 시
    소모되는 오버헤드는 포함이 된다. 이 부분이 SHARED_POOL_SIZE에 포함이 된다.
    Oracle 10g 이전 버젼에서는 이 부분이 SHARED_POOL_SIZE에 포함되지 않았으나
    10g부터는 포함되게 되어 SHARED_POOL_SIZE를 좀 더 크게 잡아야 한다.
    구체적으로 10g에서는 SHARED_POOL_SIZE를 32m 정도 더 크게 잡아야 한다.
    예를 들어, Oracle 9i에서 SHARED_POOL_SIZE를 256M를 사용했었다면,
    Oracle 10g에서는 같은 효과를 얻으려면 288M 정도로 잡아야 한다.
    4) SGA_TARGET 파라미터가 0이 아닌 값으로 셋팅이 되어 있는 경우
    자동으로 튜닝되는 SGA 파라미터들은 모두 기본적으로 0으로 셋팅이 된다.
    이러한 파라미터들은 자동 공유 메모리 관리 알고리즘에 의하여 자동으로
    사이즈가 결정이 된다.
    그러나, 만약 이러한 자동 튜닝 파라미터들이 0이 아닌 어떤 값으로
    셋팅이 되어 있다면 명시한 값은 자동 튜닝 알고리즘에 의해 최저값을
    나타낸다.
    예를 들어, SGA_TARGET 파라미터가 8G로 셋팅되어 있고, SHARED_POOL_SIZE가
    1G로 셋팅되어 있다면 SHARED_POOL_SIZE는 절대 1G 아래로 떨어지지
    않음을 뜻한다.
    V$SGA_Dynamic_components 뷰를 조회하면 자동 튜닝 component들의
    실제 사이즈를 확인할 수 있다.
    SELECT component, current_size/1024/1024
    FROM v$sga_dynamic_components;
    4. 수동으로 튜닝되는 SGA 파라미터 설정
    SGA의 몇몇 구성 파라미터들은 자동으로 튜닝되지 않아서 매뉴얼하게 튜닝을 해야 한다.
    다음은 수동으로 튜닝되는 SGA 파라미터들이다.
    - KEEP 및 RECYCLE 버퍼 캐시
    - 멀티 블록 사이즈 캐시(DB_nK_cache_size)
    - 로그 버퍼
    - 스트림즈 POOL
    수동으로 튜닝되는 파라미터들은 반드시 사용자에 의해 명시되어져야 한다.
    이런 파라미터들은 10g 이전 버젼에서와 같이 정밀하게 크기가 제어되어야 한다.
    매뉴얼하게 튜닝되는 이러한 파라미터들은 SGA_TARGET에는 포함되지만,
    자동으로 튜닝되지는 않는다.
    예를 들어, SGA_TARGET 이 8G이면 MANUAL하게 수동으로 조절되는 파라미터들의
    사이즈의 합을 1G로 잡으면 7G는 자동으로 오라클이 알아서 설정한다.
    5. SGA_TARGET 파라미터의 설정 변경
    SGA_TARGET 파라미터의 RESIZING이란 SGA_TARGET 파라미터의
    설정 변경을 의미한다.
    SGA_TARGET 초기화 파라미터의 특징은 다음과 같다.
    첫째, 운영 중에 동적으로 변경이 가능하다.
    둘째, SGA_MAX_SIZE 내에서 크기를 증가시킬 수 있다.
    세째, 모든 구성 요소의 최저값의 합까지 크기를 감소시키는 것이 가능하다.
    또한, SGA_TARGET 파라미터의 설정은 오직 자동으로 튜닝할 수 있는
    파라미터들에만 영향을 준다.
    예를 들어, SGA_MAX_SIZE가 10G이고, SGA_TARGET이 8G로 가정을 한다.
    만약, DB_KEEP_CACHE_SIZE가 1G로 셋팅이 된다고 하면 SGA_TARGET 을
    최대 9G까지 늘릴 수 있다.
    추가적인 1G는 SGA_TARGET에 의해 조절되는 자동 튜닝 파라미터들에게 분배가 된다.
    DB_KEEP_CACHE_SIZE 는 영향을 받지 않는다는 뜻이다.
    이것은 SGA_TARGET 파라미터를 줄일 때에도 해당된다.
    6. 자동 공유 메모리 관리 비활성화
    이 기능을 비활성화하려면 SGA_TARGET 파라미터를 0으로 설정하면 된다.
    이렇게 SGA_TARGET 파라미터를 0으로 설정하게 되면 자동 튜닝 파라미터들은
    그 당시의 값으로 설정된다.
    그리고, 전체 SGA 크기에는 영향을 미치지 않는다.
    예) 변경 전 값
    SGA_TARGET=8G
    SHARED_POOL_SIZE=1G
    변경 후 값
    SGA_TARGET=0
    SHARED_POOL_SIZE=2G
    DB_CACHE_SIZE=4G
    LARGE_POOL_SIZE=512M
    JAVA_POOL_SIZE=512M
    SGA_TARGET이 8G로 셋팅되어 있고, SHARED_POOL_SIZE 파라미터가 1G로
    설정되어 있다가 SGA_TARGET을 0으로 변경하면 자동 튜닝 파라미터들은
    그 당시의 값으로 셋팅되고 전체 SGA 크기는 이전 SGA 크기를 초과하지 않는다.
    SHARED_POOL_SIZE가 2G로 셋팅이 된 것은 내부적으로 측정하여 결정된 수치이다.
    7. 동적 SGA 파라미터의 수동 변경
    자동 튜닝되는 파라미터를 수동으로 변경할 경우 다음과 같은 영향을 가진다.
    1) 만약 파라미터의 새로이 반영되는 값이 현재의 값보다 클 경우에는 즉시 반영이 된다.
    그러나, 새로이 반영되는 값이 현재의 값보다 작을 경우에는 현재의 값에는
    즉시 변화가 없고 최저값으로 셋팅이 된다.
    2) 자동으로 튜닝되는 파라미터들을 수동으로 변경하였을 경우에는
    SGA의 자동 튜닝 부분에 영향을 준다.
    RESIZE 수행 시에 사용되는 메모리는 자동 튜닝 파라미터들로부터
    더해지거나 감해질 뿐 매뉴얼하게 조절되는 파라미터들에는 영향을 주지 않는다.
    Example
    다음은 자동 튜닝 파라미터 설정 시 V$PARAMETER 조회 결과 예이다.
    SGA_TARGET=8G
    DB_CACHE_SIZE=0
    JAVA_POOL_SIZE=0
    LARGE_POOL_SIZE=0
    SHARED_POOL_SIZE=0
    SELECT name, value, isdefault
    FROM V$PARAMETER
    WHERE name LIKE '%size%';
    만약 SGA_TARGET 파라미터가 0이 아닌 값으로 셋팅이 되어 있는 경우
    자동 튜닝되는 파라미터들은 값을 명시하지 말라는 뜻이다.
    V$PARAMETER 뷰를 조회하였을 때 자동으로 튜닝되는 이러한 SGA 파라미터들의
    값은 모두 0이다.
    이것이 정상이고, isdefault 컬럼 값은 TRUE 이다.
    즉, 자동 공유 메모리 관리 기능을 구현할 때에는 이 파라미터들은
    매뉴얼하게 설정을 하지 않으면 된다.
    Reference Documents
    Oracle Database 10g New Features

  • Error while installing Oracle 10g on Fedora Core 1

    Error while installing Oracle 10g on Fedora Core 1. After 40% of the Installation is thru, the progress bar is showing 40%, it gives error "Not connected to Oracle" and the installation has to be terminated.
    We have tried by using the on-line procedure and changing the required script to make believe it as said.

    Are you createing DB also???

  • Error while sending a mail using UTP_MAIL package in Oracle 10g

    Hi,
    We are using UTP_MAIL package to send a mail from Oracle 10g.We have follwed the following steps ...
    SQL> connect sys/password as sysdba
    Connected.
    SQL> @$ORACLE_HOME/rdbms/admin/utlmail.sql
    Package created.
    Synonym created.
    SQL> @$ORACLE_HOME /rdbms/admin/prvtmail.plb
    Package body created.
    SQL > alter system set smtp_out_server = '<mail_server_ip:25>' scope =spfile;
    System altered..
    Now we try the code
    begin
    utl_mail.send(
    sender => 'sender's mail',
    recipients => 'receiver mail',
    CC => 'optional',
    subject => 'Testing utl_mail',
    message => 'Test Mail'
    end;
    But we get the following error...
    ERROR at line 1:
    ORA-29278: SMTP transient error: 421 Service not available
    ORA-06512: at "SYS.UTL_SMTP", line 21
    ORA-06512: at "SYS.UTL_SMTP", line 97
    ORA-06512: at "SYS.UTL_SMTP", line 139
    ORA-06512: at "SYS.UTL_MAIL", line 405
    ORA-06512: at "SYS.UTL_MAIL", line 594
    ORA-06512: at line 2
    We also tried connecting to the mail server through telnet .But it is not getting connected..
    Please help us to solve the issue.

    From your own posting you may have the clue, if you try to access your mail server through telnet and it is not successful, it means the service is down or there are networking issues.
    On pre 10gR2 versions there was a bug 4083461.8. It could affect you if you are on 10gR1
    "Bug 4083461 - UTL_SMTP.OPEN_CONNECTION in shared server fails with ORA-29278 Doc ID:      Note:4083461.8"
    This was fixed on 10gR2 base and on 9.2.0.8.0
    ~ Madrid

  • FRM-41211 Integration Error SSL - OracleAS 10g

    Hi.
    I have error Frm-41211 Integration Error SSL Failure Running Another Product error while calling a report from web form in oracleAS 10g.
    I have problem with RUN_REPORT_OBJECT in web forms.
    I have error: FRM-41211 SSL integration error .....
    OracleAS server began on Windoes XP SP2.
    Do you help me ?

    Hi,
    I remember having seen this issue in teh apst. My best recommendation is to work with customer support (metalink.oracle.com)
    Frank

  • Stopping the Enterprise Manager Console (Oracle 10g on SuSE 9.1)

    I'm trying to stop the Enterprise Manager Console by issuing the command:
    ${ORACLE_HOME}/bin/emctl stop dbconsole
    Unfortunately, the command fails to stop the EM Console. Here's the output I get:
    TZ set to US/Pacific
    Oracle Enterprise Manager 10g Database Control Release 10.1.0.2.0
    Copyright (c) 1996, 2004 Oracle Corporation. All rights reserved.
    http://<hostname>:5505/em/console/aboutApplication
    Stopping Oracle Enterprise Manager 10g Database Control ...
    --- Failed to shutdown DBConsole Gracefully ---
    failed.
    The only way I can stop the EM Console (and related services--i.e., emagent) is to kill its process.
    Everything (Listener, DB Instance, EM Console) starts fine. I can stop the Listener and DB Instance without any problems. It's just the EM Console shutdown that doesn't happen cleanly.
    Has anyone else encountered the same condition? If so, what was the solution?
    Here's my operating environment:
    SuSE 9.1 (Kernel 2.6.5-7.108-default)
    Oracle 10g
    Thanks in advance for any help/insight.

    Has anyone else encountered the same condition? If so, what was the solution?Yes. Shutdown/reboot of the system made the error go away.
    Sorry, no better clues,
    Toni

  • Migration from Oracle 9i 32 bit to Oracle 10G 64 bit on Windows 2003 Server

    I am working on migrating Oracle 9i 32 bit to Oracle 10G 64 bit on Windows 2003 from Old server to new server. We have db around 500 GB and 3 schemas. I installed Oracle 10G on new server, created tablespaces, schema's blah blah and now doing export and import at schema level from old server to new server.
    Import is taking more than 4 to 5 hours on new server. My manager is saying, window time is bit longer and he wants me to try possiblities to make this process faster. Can some one help me on this, to use the best possible method to complete this process faster?
    Will below step work, if I try?
    If I install, oracle 9i and 10g both on new server in different home directories and take the hot backup from old machine and restore on new machine in 9i home directory and use the upgrade configuration assistant from 10g and do the upgrade? Pls advice.
    Thanks in advance,
    Hari babu
    Edited by: user6367891 on Mar 2, 2010 5:28 AM

    It looks good.
    I have one question in below steps:
    To migrate an Oracle9i or older database to an Oracle Database 10g Release 1 (10.1) database for 64-bit Windows:
    1 Perform steps 1 - 11 in "Migrating an Oracle Database 10g Release 1 (10.1) Database".
    2 Shut down the database on the 64-bit computer:
    SQL> SHUTDOWN IMMEDIATE;
    3 Start the database migration:
    SQL> STARTUP MIGRATE;
    4 Migrate the database as described in Chapter 3, "Upgrading a Database to the New Oracle Database 10g Release" in Oracle Database Upgrade Guide.
    In step 4, it says, migrate database as described in chapter 3. In chapter 3, it says, to do the upgrade the process using dbca or manually. Pls confirm whether do the upgrade process after issuing startup migrate or not.
    Thanks in advance.

  • Oracle 10G New Feature........Part 1

    Dear all,
    from last couple of days i was very busy with my oracle 10g box,so i think this is right time to
    share some intresting feature on 10g and some internal stuff with all of you.
    Have a look :-
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Oracle 10g Memory and Storage Feature.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    1.Automatic Memory Management.
    2.Online Segment Shrink
    3.Redolog Advisor, checkpointing
    4.Multiple Temporary tablespace.
    5.Automatic Workload Repository
    6.Active Session History
    7.Misc
    a)Rename Tablespace
    b)Bigfile tablespace
    c)flushing buffer cache
    8.ORACLE INTERNAL
    a)undocumented parameter (_log_blocks_during_backup)
    b)X$ view (x$messages view)
    c)Internal Structure of Controlfile
    1.Automatic memory management
    ================================
    This feature reduce the overhead of oracle DBA.previously mostly time we need to set diff oracle SGA parameter for
    better performance with the help of own experience,advice views and by monitoring the behaviour
    of oracle database.
    this was just time consuming activity.........
    Now this feature makes easy life for oracle DBA.
    Just set SGA_TARGET parameter and it automatically allocate memory to different SGA parameter.
    it focus on DB_CACHE_SIZE
    SHARED_POOL_SIZE
    LARGE_POOL
    JAVA_POOL
    and automatically set it as
    __db_cache_size
    __shared_pool_size
    __large_pool_size
    __java_pool_size
    check it in alert_log
    MMAN(memory manager) process is new in 10g and this is responsible for sga tuning task.
    it automatically increase and decrease the SGA parameters value as per the requirement.
    Benefit:- Maximum utlization of available SGA memory.
    2.Online Segment Shrink.
    ==========================
    hmmmmm again a new feature by oracle to reduce the downtime.Now oracle mainly focus on availablity
    thats why its always try to reduce the downtime by intrducing new feature.
    in previous version ,reducing High water mark of table was possible by
    Exp/imp
    or
    alter table move....cmd. but on these method tables was not available for normal use for long hrs if it has more data.
    but in 10g with just few command we can reduce the HWmark of table.
    this feature is available for ASSM tablespaces.
    1.alter table emp enable row movement.
    2.alter table emp shrink space.
    the second cmd have two phases
    first phase is to compact the segment and in this phase DML operations are allowed.
    second phase(shrink phase)oracle shrink the HWM of table, DML operation will be blocked at that time for short duration.
    So if want to shrink the HWM of table then we should use it with two diff command
    first compact the segment and then shrink it on non-peak hrs.
    alter table emp shrink space compact. (This cmd doesn't block the DML operation.)
    and alter table emp shrink space. (This cmd should be on non-peak hrs.)
    Benefit:- better full table scan.
    3.Redolog Advisor and checkpointing
    ================================================================
    now oracle will suggest the size of redo log file by V$INSTANCE_RECOVERY
    SELECT OPTIMAL_LOGFILE_SIZE
    FROM V$INSTANCE_RECOVERY
    this value is influence with the value of FAST_START_MTTR_TARGET .
    Checkpointing
    Automatic checkpointing will be enable after setting FAST_START_MTTR_TARGET to non-zero value.
    4.Multiple Temporary tablespace.
    ==================================
    Now we can manage multiple temp tablespace under one group.
    we can create a tablespace group implicitly when we include the TABLESPACE GROUP clause in the CREATE TEMPORARY TABLESPACE or ALTER TABLESPACE statement and the specified tablespace group does not currently exist.
    For example, if group1 is not exists,then the following statements create this groups with new tablespace
    CREATE TEMPORARY TABLESPACE temp1 TEMPFILE '/u02/oracle/data/temp01.dbf'
    SIZE 50M
    TABLESPACE GROUP group1;
    --Add Existing temp tablespace into group by
    alter tablespace temp2 tablespace group group1.
    --we can also assign the temp tablespace group on database level as default temp tablespace.
    ALTER DATABASE <db name> DEFAULT TEMPORARY TABLESPACE group1;
    benefit:- Better I/O
    One sql can use more then one temp tablespace
    5.AWR(Automatic Workload Repository):-
    ================================== AWR is built in Repository and Central point of Oracle 10g.Oracle self managing activities
    is fully dependent on AWR.by default after 1 hr, oracle capure all database uses information and store in AWR with the help of
    MMON process.we called it Memory monitor process.and all these information are kept upto 7 days(default) and after that it automatically purge.
    we can generate a AWR report by
    SQL> @?/rdbms/admin/awrrpt
    Just like statspack report but its a advance and diff version of statspack,it provide more information of Database as well as OS.
    it show report in Html and Text format.
    we can also take manually snapshot for AWR by
    BEGIN
    DBMS_WORKLOAD_REPOSITORY.CREATE_SNAPSHOT ();
    END;
    **The STATISTICS_LEVEL initialization parameter must be set to the TYPICAL or ALL to enable the Automatic Workload Repository.
    [oracle@RMSORA1 oracle]$ sqlplus / as sysdba
    SQL*Plus: Release 10.1.0.2.0 - Production on Fri Mar 17 10:37:22 2006
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> @?/rdbms/admin/awrrpt
    Current Instance
    ~~~~~~~~~~~~~~~~
    DB Id DB Name Inst Num Instance
    4174002554 RMSORA 1 rmsora
    Specify the Report Type
    ~~~~~~~~~~~~~~~~~~~~~~~
    Would you like an HTML report, or a plain text report?
    Enter 'html' for an HTML report, or 'text' for plain text
    Defaults to 'html'
    Enter value for report_type: text
    Type Specified: text
    Instances in this Workload Repository schema
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    DB Id Inst Num DB Name Instance Host
    * 4174002554 1 RMSORA rmsora RMSORA1
    Using 4174002554 for database Id
    Using 1 for instance number
    Specify the number of days of snapshots to choose from
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Entering the number of days (n) will result in the most recent
    (n) days of snapshots being listed. Pressing <return> without
    specifying a number lists all completed snapshots.
    Listing the last 3 days of Completed Snapshots
    Snap
    Instance DB Name Snap Id Snap Started Level
    rmsora RMSORA 16186 16 Mar 2006 17:33 1
    16187 16 Mar 2006 18:00 1
    16206 17 Mar 2006 03:30 1
    16207 17 Mar 2006 04:00 1
    16208 17 Mar 2006 04:30 1
    16209 17 Mar 2006 05:00 1
    16210 17 Mar 2006 05:31 1
    16211 17 Mar 2006 06:00 1
    16212 17 Mar 2006 06:30 1
    16213 17 Mar 2006 07:00 1
    16214 17 Mar 2006 07:30 1
    16215 17 Mar 2006 08:01 1
    16216 17 Mar 2006 08:30 1
    16217 17 Mar 2006 09:00 1
    Specify the Begin and End Snapshot Ids
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Enter value for begin_snap: 16216
    Begin Snapshot Id specified: 16216
    Enter value for end_snap: 16217
    End Snapshot Id specified: 16217
    Specify the Report Name
    ~~~~~~~~~~~~~~~~~~~~~~~
    The default report file name is awrrpt_1_16216_16217.txt. To use this name,
    press <return> to continue, otherwise enter an alternative.
    Benefit:- Now DBA have more free time to play games.....................:-)
    Advance version of statspack
    more DB and OS information with self managing capabilty
    New Automatic alert and database advisor with the help of AWR.
    6.Active Session History:-
    ==========================
    V$active_session_history is view that contain the recent session history.
    the memory for ASH is comes from SGA and it can't more then 5% of Shared pool.
    So we can get latest and active session report from v$active_session_history view and also get histortical data of
    of session from DBA_HIST_ACTIVE_SESS_HISTORY.
    v$active_session_history include some imp column like:-
    ~SQL identifier of SQL statement
    ~Object number, file number, and block number
    ~Wait event identifier and parameters
    ~Session identifier and session serial number
    ~Module and action name
    ~Client identifier of the session
    7.Misc:-
    ========
    Rename Tablespace:-
    =================
    in 10g,we can even rename a tablespace by
    alter tablespace <tb_name> rename to <tb_name_new>;
    This command will update the controlfile,data dictionary and datafile header,but dbf filename will be same.
    **we can't rename system and sysaux tablespace.
    Bigfile tablespace:-
    ====================
    Bigfile tablespace contain only one datafile.
    A bigfile tablespace with 8K blocks can contain a 32 terabyte datafile.
    Bigfile tablespaces are supported only for locally managed tablespaces with automatic segment-space management.
    we can take the advantage of bigfile tablespace when we are using ASM or other logical volume with RAID.
    without ASM or RAID ,it gives poor response.
    syntax:-
    CREATE BIGFILE TABLESPACE bigtbs
    Flushing Buffer Cache:-
    ======================
    This option is same as flushing the shared pool,but only available with 10g.
    but i don't know, whats the use of this command in prod database......
    anyway we can check and try it on test server for tuning n testing some query etc....
    SQL> alter system flush buffer_cache;
    System altered.
    ++++++++++++++++++
    8.Oracle Internal
    ++++++++++++++++++
    Here is some stuff that is not related with 10g but have some intresting things.
    a)undocumented parameter "_log_blocks_during_backup"
    ++++++++++++++++++++++++
    as we know that oracle has generate more redo logs during hotbackup mode because
    oracle has to maintain the a complete copy of block into redolog due to split block.
    we can also change this behaviour by setting this parameter to False.
    If Oracle block size equals the operating system block size.thus reducing the amount of redo generated
    during a hot backup.
    WITHOUT ORACLE SUPPORT DON'T SET IT ON PROD DATABASE.THIS DOCUMENT IS JUST FOR INFORMATIONAL PURPOSE.
    b)some X$ views (X$messages)
    ++++++++++++++++
    if you are intresting in oracle internal architecture then x$ view is right place for getting some intresting things.
    X$messages :-it show all the actions that a background process do.
    select * from x$messages;
    like:-
    lock memory at startup MMAN
    Memory Management MMAN
    Handle sga_target resize MMAN
    Reset advisory pool when advisory turned ON MMAN
    Complete deferred initialization of components MMAN
    lock memory timeout action MMAN
    tune undo retention MMNL
    MMNL Periodic MQL Selector MMNL
    ASH Sampler (KEWA) MMNL
    MMON SWRF Raw Metrics Capture MMNL
    reload failed KSPD callbacks MMON
    SGA memory tuning MMON
    background recovery area alert action MMON
    Flashback Marker MMON
    tablespace alert monitor MMON
    Open/close flashback thread RVWR
    RVWR IO's RVWR
    kfcl instance recovery SMON
    c)Internal Structure of Controlfile
    ++++++++++++++++++++++++++++++++++++
    The contents of the current controlfile can be dumped in text form.
    Dump Level Dump Contains
    1 only the file header
    2 just the file header, the database info record, and checkpoint progress records
    3 all record types, but just the earliest and latest records for circular reuse record types
    4 as above, but includes the 4 most recent records for circular reuse record types
    5+ as above, but the number of circular reuse records included doubles with each level
    the session must be connected AS SYSDBA
    alter session set events 'immediate trace name controlf level 5';
    This dump show lots of intresting information.
    it also show rman recordes if we used this controlfile in rman backup.
    Thanks
    Kuljeet Pal Singh

    You can find each doc in html and pdf format on the Documentation Library<br>
    You can too download all the documentation in html format to have all on your own computer here (445.8MB)<br>
    <br>
    Nicolas.

  • Oracle 10g - Defining the column name in Non English

    Hi Experts,
    I have an exisitng application which is developed on Windows using ASP Technology and uses Oracle 10g 10.1.0.2.0.
    The application is supported with an instance of Data Base within which multiple tablespaces are created for different clients. The application is developed in such a way that some of the tables arecreated dynamically and the columns are named using the data entered through the UI.
    This application needs to be globalized now. The problem is, the column name entered through the UI can be in any language based on the client's settings and those values in turn will be used for naming the columns in the tables.
    1) Can I have the column names to be named using non english characters in Oracle 10g DB? If so,
    1.1) what should I do to configure the exisiting Oracle instance to support it?
    1.2) To what level is that configuration possible, is it per DB instance level (or) can it be done at Tablespace level. I would like to configure each tablespace to host tables with columns defined with different languages, say for example, tablespace 1 will have tables with Japaenese column names and tablespace 2 will have tables with German column names?
    2) What should I do to make my entire DB to support unicode data i.e., to accept any language strings. Currently all strings are declared as VarChar2, should I change all VarChar2 to NVarChar2 (or) is there a way to retain the VarChar2 as is and make some database wide setting?
    Please note that I do not have an option of retaining the column in English as per the Business Requirement.
    Envionment:
    OS - Windows 2003 32 bit
    Oracle 10g 10.1.0.2.0
    UI forms in ASP
    TIA,
    Prem

    1. Yes, you can.
    SQL> create table ÜÝÞ( ßàá number(10));
    Table created.
    SQL> insert into ÜÝÞ values (10);
    1 row created.1.1 and 1.2 and 2. You can choose UTF as your default character set. It allows the user of non-English characters in VARCHAR columns in your whole database. It is not per tablespace.
    SQL> create table ÜÝÞ( ßàá varchar2(100));
    Table created.
    SQL> insert into ÜÝÞ values ('âãäçìé');
    1 row created.

  • Oracle 10g - Date format in SELECT query for CFOUTPUT

    Hello, everyone.
    The project that I am working on in the dev environment is connected to an Oracle 11g database, but the production side is Oracle 10g.
    I have a page that is erroring in production (but not development) when it gets to a date that it needs to display.
    A co-worker mentioned that, in 10g, if a date/time is being SELECTed, you have to put it in to_char(), so I did that.
    But it's still erroring, and I'm not getting an error message, so I'm assuming that I have an incorrect format for the date in the SELECT.
    What is the proper format for SELECTing a date/time when using to_char()?  Right now, I have SELECT to_char(create_date,'MM-DD-YYYY HH:MI') FROM tableA .  Is this not correct for CF to output?
    Thank you,
    ^_^

    Please see my original post ("I have a page erroring in production (but not in development) when it gets to a date that it needs to display.")  Sorry if it came across as vague.  It made sense, to me, when I typed it.  But, then, I'm usually typing fast just to get the question out there, when I'm in a hurry.
    Haven't done a CFDUMP, yet, as every time I make a change in development that needs to be tested in production, I have to notify my supervisor that there are files that need to be copied into production, which can sometimes take a while, so I try to do troubleshooting on dev side - it's a pain in the you-know-what, but that's the kind of environment I'm working in.
    As it turns out, changing the format in the SELECT to_char() did the trick.  If anyone else has this issue with Oracle 10g, I'm now using SELECT to_char(create_date,'YYYY/MM/DD HH:MI') FROM tableA, and now the CFOUTPUT is processing the whole page.  I guess the MM-DD-YYYY threw CF into a tizzy, breaking the process?
    Anyhoo, it's working, now.  Thank you, Dan and Adam, for your thoughts on this.
    ^_^

  • Nested tables and multiset operators in Oracle 10g

    Consider the following scenario:
    We have two identical relations R and S defined as:
    CREATE TABLE R(
    a INTEGER,
    b table_type)
    NESTED TABLE b STORE as b_1;
    CREATE TABLE S(
    a INTEGER,
    b table_type)
    NESTED TABLE b STORE as b_2;
    where table_typ is defined as
    CREATE TYPE table_typ AS TABLE OF VARCHAR2(8);
    Suppose we have two instances of R and S, each having one tuple as follows: R(1,table_typ('a','b')) and S(1,table_typ('b','c')).
    I would like to "merge" these two simple instances (e.g., achieve the effect of a simple SELECT * FROM R UNION SELECT * FROM S query) and obtain the following resulting instance: Result(1,table_typ('a','b','c')).
    Would this be possible in Oracle 10g? A simple UNION does not work (I got a "inconsistent datatypes: expected - got SCOTT.TABLE_TYP" error). I also took a look at the MULTISET UNION operator over nested tables available in Oracle 10g, but it doesn't seem to get me anywhere. Any help on this would be greatly appreciated.
    Thank you,
    Laura

    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> CREATE OR REPLACE TYPE table_type AS TABLE OF VARCHAR2 (8);
      2  /
    Type created.
    SQL> CREATE TABLE r(
      2    a INTEGER,
      3    b table_type)
      4    NESTED TABLE b STORE as b_1;
    Table created.
    SQL> CREATE TABLE s(
      2    a INTEGER,
      3    b table_type)
      4    NESTED TABLE b STORE as b_2;
    Table created.
    SQL> INSERT INTO r VALUES (1, table_type ('a', 'b'));
    1 row created.
    SQL> INSERT INTO s VALUES (1, table_type ('b', 'c'));
    1 row created.
    SQL> COLUMN c FORMAT A10;
    SQL> SELECT r.a, r.b MULTISET UNION DISTINCT s.b c
      2  FROM   r, s
      3  WHERE  r.a = s.a;
             A C
             1 TABLE_TYPE('a', 'b', 'c')
    SQL>

  • Error in Installing Oracle 10g Express Edition Universal on WIndows2003

    While Installing Oracle 10g XE Universal On WIndows 2003 Server Standard Edition(Which is a standalone Machine). I got an following Error:
    Error No: 0x80040707
    Error Description: DLL Function Call Crashed: GetHostnameDll.getHostname.
    Plz find some solution for the above problem.

    Hi
    Here's the resolution that can work for you:
    Disable the "Print Spooler" service before running the installer.
    1.Open Control Panel: Start --> Settings --> Control Panel
    2.Double-click "Services"
    3.On the list of NT Services, right-click "Print Spooler"
    4.Select "Stop"
    5.Select "Properties"
    6.Under Startup Type, select "manual" or "disabled"
    7.Reboot your NT Server
    8.After rebooting, verify that the Print Spooler is still "stopped".
    9.Delete Program Files\Common Files\Installshield\Engine folder
    10.Re-run the installer.
    11.After installation, re-set the Print Spooler service to Startup type "Automatic" and start the service.
    Also, have a look at the installshield page: http://consumer.installshield.com/kb.asp?id=Q108167
    -Priya

  • Error message when installing Oracle 10g on Windows XP Professional

    Hello,
    I need help installing oracle 10g database. When I attempt to run the installation from the setup.exe icon, I get a message that says
    "Error in writing to directory C:\Documents and Settings\Owner\Local Settings\Temp\OraInstall2007-04-29_01-19-29PM. Please ensure this directory is writable and has atleast 45Mb of disk space. Installation cannot continue."
    When I try to open the installation from the Autorun icon, it points to an innability to find setup.exe and when I go back to Setup.exe, it gives me the above error. Everytime I try to run the installation and it fails, the installation leaves a folder in my Temp folder with the above format. Any help would be appreciated. Thank you.

    I do have administrative privilege on my computer and I have plenty of space. I have 80gb of free space. What do I do to successfully install the software without incurring those messages I displayed in my first thread?

  • Oracle 10g on HP-UX, Terrible Poor Performance!!

    Hi All,
    I setup an Oracle 10g on HP-UX 11iv1. Server is a HP 9000, 4 CPUs (750
    MHZ). It is connected to Disk System 2405 (Virtual Array 7110). Fiber
    Channels are connected at 2 GB speed.
    I installed a cluster 10g database. First I installed CRS and after
    that I installed oracle database. ( I want to test clustered database
    with one instance)
    I installed every thing line by line as oracle document wrote.
    All the things, kernel parameters, patches, are like oracle wrote in
    its document.
    I installed Golden quality package June 2004.
    I increased shmmax to 2.3 G . My SGA is 1.7 G And change some other
    parameters as Sandy Gruver wrote in Best Practices for Oracle on HPUX.
    I used oracle new storage system called ASM for this case.
    When I put the system under the load, I was monitoring the system
    carefully.
    I started gmp. When we sent some quarries to database (It is not heavy
    load, I tested it with a Linux system on proliant ML570 without any
    problem), suddenly DISK section in gpm changed to red (critical ) I
    read the warning. It said "Disk bottleneck probability = 100%". I
    changed the output of disk report to "Report IO by Disk"
    "DISK%" was 100% and "RAW IO RT" was about 1000 for two disks ( This
    two disks dedicated for ASM). In this situation CPU idle time was 1% or
    2% for all the CPUs but load average was about 1. Performance is not
    acceptable at all ( In comparison with Oracle that installed on Linux).
    Glance reported Disk was in Critical situation.
    I think the problem is IO or something about Disks
    I used HP Disk System 2405. Fibber channels on both server side and
    Disk Array side are configured at 2 Gb and topologies are
    PTTOPT_FABRIC.
    Is it ok that RAW IO RT about 1000 for each LUN?
    Why Disk% in glance/report IO BY Disk/ was 100%?
    I found an error in STM logs about I/O.It said:
    Entry type: I/O error
    Product: Fiber Channel Interface
    Logger: td
    It logged this error about 12 times during the test.Any comment?
    Regards,
    Hasan

    Sorry, I have not a solution for your problem, but similar things happen on our installation on Solaris 5.8 with Oracle 10:
    I have a banking business solution from Windows/SQL Server 2000 to Sun Solaris/ORACLE 10g migrated. In the test environment everything was working fine. On the production system we have very poor DB performance. About 100 times slower than SQL Server 2000!
    Environment at Customer Server Side:
    Hardware: SUN Fire 4 CPU's, OS: Solaris 5.8, DB Oracle 8 and 10
    Data Storage: Em2
    DB access thru OCCI [Environment:OBJECT, Connection Pool, Create Connection]
    Depending from older applications it's necessary to run ORACLE 8 as well on the same Server. Since we have running the new solution, which is using ORACLE 10, the listener for ORACLE 8 is frequently gone (or by someone killed?). The performance of the whole ORACLE 10 Environment is very poor. As a result of my analyse I figured out that the process to create a connection to the connection pool takes up to 14 seconds. Now I am wondering if it a problem to run different ORACLE versions on the same Server? The Customer has installed/created the new ORACLE 10 DB with the same user account (oracle) as the older version. To run the new solution we have to change the ORACLE environment settings manually. All hints/suggestions to solve this problem are welcome. Thanks in advance.
    Anton

  • How to avoid of application running on Oracle 10g to be copied?

    I am a newbie to the security issues, so I need your help, please, where to start / what to read:
    I have an application running across many customers on Oracle 10g. I have faced lately that our users
    can use their daily backups to establish a totaly new database on a same / different server
    and point our application to use it as well.
    Is there any way to avoid it? F.e. I thought to use SELECT * FROM v$instance; to get the server instance details, and
    in result with some other function to obtain, let say, local server's (WIN2003) details,
    such as HD Serial Number, MAC number or so and then to check these values each time user runs the application.
    Is it the correct way? What are the basics here at all?
    Many thanks in advance to all!

    A lot of enterprises, however, actively avoid systems which are locked down to a particular server for very legitimate reasons. If my data center dies in the middle of the night, I sure don't want to have to call your mobile phone so that you can get to a computer, log in to the office network, and get me a new key so that I can finish my emergency failover. If I've got dozens of applications, I absolutely don't want to do that with dozens of different vendors.
    It sounds like your problem, though, isn't that users are installing your software on multiple computers it's that they are accessing functionality they haven't licensed. That is generally a much easier problem to solve and doesn't require you to lock anything down to a particular machine. You can create a table LICENSED_CONTENT, for example,
    CREATE TABLE licensed_content (
      client_id    NUMBER,
      content_type VARCHAR2(30),
      key          RAW(128)
    )In this case, KEY is, say, a hash (using the DBMS_CRYPTO or DBMS_OBFUSCATION_TOOLKIT packages if you'd like) of the client_id, content_type, and a bit of salt (i.e. a fixed string that only you know). When you sell a license to manage diamond content, you provide a script that inserts the appropriate row in the LICENSED_CONTENT table. When your application starts up, it reads the LICENSED_CONTENT table and verifies the hash before allowing users to access that type of content. This allows legitimate customers to move the software from one system to another but prevents them from accessing new functionality without a new license.
    Justin

Maybe you are looking for

  • Install second optical drive mac pro

    Although there are several support documents available from Apple on how to replace the hard drive and replace the optical drive in a Mac Pro, I could not locate a pdf on how to install a second optical drive. In this case, I wanted to add a Blu-Ray

  • I just redeemed an itunes card how do I know what my balance is for my account

    I just redeemed an itunes card how do I know what my balance is for my account

  • Airport Express won't recognize TSC printer

    We are having a really weird issue with a new 802.11n Airport Express. It refuses to recognize a specific USB printer attached to it (TSC TTP-245c label printer, to be precise). By "refuses to recognize" I mean the printer does not show up in the Pri

  • MacBook Pro resumes from sleep, but keyboard types symbols as opposed to correct letters

    Hi, all, Having been a mac owner for a few years now, I guess it actually shows the quality of the product that this is the first time I've had to post on this site. I've recently upgraded from my 2008 model MacBook to an early 2011 model MacBook Pro

  • EXIT_SAPLKEAB_001 (CO-PA)

    Hi ALL,             Can anyone please tell me when is the user-exit EXIT_SAPLKEAB_001 is called in the invoicing cycle. I put a break-point on this Function-Exit but its not getting triggered. I also need to pass the values for Direct Material, Direc