11g sga_max_size

Hello,
Oracle 11 on Windows
In my parameter file the is no memory parameter, except MEMORY_TARGET.
If I set MEMORY_TARGET=250M, the sga_max_size is set (autom.) to 250M. Windows Taskmanager shows: Mem. uage=250M, VM Size=250M
If I set MEMORY_TARGET=1000M, the sga_max_size is set (autom.) to about 680M. Windows Taskmanager shows: Mem. uage=250M, VM Size=680M
It looks to me, that Oracle is determining a good 'starting point'. As far as I understand, the SGA will shrink when PGAs need memory and the sum of memory comes above MEMORY_TARGET. Will Oracle adjust the sga_max_size at that moment? In other words: is there a background process periodically controlling the total sga memory for Oracle (let it grow or shrink) according the the value of sga_max_size at that moment?
Thanks, Stephan

When either MEMORY_TARGET or MEMORY_MAX_TARGET is enabled, SGA_MAX_SIZE default value is set to the larger of the two specified parameters on non-Windows 32-bit operating system. On Windows 32-bit operating system, due to address space pressure, the default value of SGA_MAX_SIZE is calculated based on the total available virtual address space along with MEMORY_TARGET and MEMORY_MAX_TARGET.
To calculate the value on Windows 32-bit, SGA_MAX_SIZE larger of:
60% of MEMORY_TARGET if set and
60% of MEMORY_MAX_TARGET if set and
25% of total available virtual address space
http://docs.oracle.com/cd/B28359_01/readmes.111/b28280/toc.htm
Similar discussion has been done on below link :
What if I set MEMORY_MAX_TARGET and SGA_MAX_SIZE both?
Regards
Girish Sharma

Similar Messages

  • Oracle 11g Installation How to select Database Character Set

    Hi,
    I am Installing oracle 11g R2. After installation I had verified the character set it was AL16UTF16 but I wants to set AL32UTF8 charater set at the time of oracle installation only. I can't see the character set setting opetion at the time of installation because I am selecting the installation option " Install database softerware only" and after installation of oracle software manually I am creating the database. Please help me how can I set the character set at the time of oracle installation or at the time of database creation.
    My question is-
    How can I set the AL32UTF8 character set in above scenario?
    Why It is showing AL16UTF16 character set even I did not define any thing?

    But is there any choice to set the NLS_CHARACTERSET at the time of manually database creation. Actually For creating the database i am using one shell script for seting the parameter values in init.ora file so can I set the parameter at that level(at the time of creating init.ora using manually database creation). like
    ## Original init.ora file created by manual database creation tool on ${DATE}.
    *.aq_tm_processes=0
    *.background_dump_dest='$ORACLE_BASE/admin/$ORACLE_SID/bdump'
    *.compatible='10.2.0'
    *.control_files='/$db_file_loc/oradata/$ORACLE_SID/control01.ctl','/$db_file_loc/oradata/$ORACLE_SID/control02.ctl','/$db_file_loc/oradata/$ORACLE_SID/control03.ctl'
    *.core_dump_dest='$ORACLE_BASE/admin/$ORACLE_SID/cdump'
    *.db_block_size=8192
    *.db_cache_size=104857600
    *.db_domain='$server_name'
    *.db_file_multiblock_read_count=8
    *.db_name='$ORACLE_SID'
    *.fast_start_mttr_target=300
    *.instance_name='$ORACLE_SID'
    *.java_pool_size=16777216
    *.job_queue_processes=4
    *.large_pool_size=16777216
    *.log_archive_dest='/u05/oradata/$ORACLE_SID'
    *.log_archive_format='$ORACLE_SID_%s_%t_%r.arc'
    *.olap_page_pool_size=4194304
    *.open_cursors=500
    *.optimizer_index_cost_adj=50
    *.pga_aggregate_target=536870912
    *.processes=1500
    *.query_rewrite_enabled='TRUE'
    *.remote_login_passwordfile='EXCLUSIVE'
    *.shared_pool_size=83886080
    *.sort_area_size=1048576
    *.sga_max_size=1048576000
    *.sga_target=536870912
    *.star_transformation_enabled='TRUE'
    *.timed_statistics=TRUE
    *.undo_management='AUTO'
    *.undo_retention=10800
    *.undo_tablespace='UNDOTBS1'
    *.user_dump_dest='$ORACLE_BASE/admin/$ORACLE_SID/udump'
    *.utl_file_dir='/export/home/oracle/utlfiles'
    **.nls_characterset='AL32UTF8'*
    EOF
    Is it correct?

  • Sga_max_size & memory_max_target

    Hi All,
    Could you please tell me ...
    In oracle 11.1 If I want to set Memory Parameter
    alter system set memory_max_target=2000M scope=spfile;
    alter system set memory_target=2000M scope=spfile;
    Do I need to set sga_max_size value ? or it will set automatically
    As Per my knowledge
    We need to Set following sga parameter to 0, if ASMM, or AMM set to ON.(By default oracle 11g using ASMM, or AMM set to ON)
    alter system set sga_target=0 scope=spfile;
    alter system set pga_aggregate_target=0 scope=spfile;
    I am not sure about sga_max_size
    Thanking in Advance
    Dev

    Dev wrote:
    I tested setting of SGA_MAX_SIZE=0 it is not setting to 0 after restart but not setting to 0
    alter system set SGA_MAX_SIZE =0 scope=spfile
    and bounced the instance
    ALTER SYSTEM SET SGA_TARGET = 0 scope=spfile; not working
    Have you allocated manually for each Memory parameters? DB Buffer cache, shared pool & so on?
    If you are setting to ZERO means, you are configuring remaining all parameter manually.
    Set those values and then try to set SGA_MAX to 0 then bounce it.

  • SGA_MAX_size, SGA_target, PROCESSES Parameters

    hi
    i have oracle 11g and i want to know what are the uses of these parameters
    SGA_MAX_size
    SGA_target
    PROCESSesAnd how can i change its values ?
    If any onne of u has any information about these things please help me
    Regards ,

    From charles Hooper;
    Take a look at page 21 of the Platform Guide for 10g Release 2 (10.2) for Microsoft Windows (32-Bit):
    http://download.oracle.com/docs/cd/B19306_01/win.102/b14304.pdf
    Each dedicated session's connection to the database on the Windows platform requires at least 1MB of memory - just for the session to connect. With 250 sessions connected, 250MB of memory is required before the sessions even submit their first SQL statement to perform useful work. On 32 bit Windows, each process is limited by default to no more than 2GB of memory - once the 2GB memory limit is reached, the listener will no longer be able to hand off connection requests. It is possible to raise the 2GB limit to just short of 3GB through a change to the server's boot.ini file, but that still does not allow the server to use more than 4GB of memory (and each process cannot use more than roughly 3GB).
    Note that you are using the SGA_TARGET. SGA_TARGET cannot be used when USE_INDIRECT_DATA_BUFFERS=TRUE, which will allow Oracle to relocate the database block buffers into the memory region above the 4GB memory mark.
    Charles Hooper
    Co-author of "Expert Oracle Practices: Oracle Database Administration from the Oak Table"
    http://hoopercharles.wordpress.com/
    IT Manager/Oracle DBA
    K&M Machine-Fabricating, Inc.

  • Oracle Parameter (SGA_MAX_SIZE / SGA_TARGET)

    Hello together,
    since yesterday we have a new oracle database on X64 (64BIT on Windows) with SAP R/3 4.7.
    The server have 24GB ram and 2x quad Core CPU.
    How can give me a good value for this parameters (for oracle)
    SGA_MAX_SIZE
    SGA_TARGET
    I don't know what is a good size for such a hugh physikal memory!
    Thank you
    Christian

    Hello Christian,
    the parameter SGA_TARGET is "not longer" supported by SAP.
    Take a look at sapnote #828268
    At the beginning of oracle 10g we have activated the ASMM ... but there is still a bug with oracle 10g which results in a hang situation (solved in 11g ... no backport planned)
    For more information regarding to the bug... take a look at bugnotes on metalink 4466399/4472338
    SGA_MAX_SIZE should be a little bit higher than the sum of all your memory pools (SGA), because of you can extend some areas dynamically on the fly (if you are using a spfile).
    Regards
    Stefan

  • Sga_max_size and sga_target values

    I have an 11g database on windows with 4GB RAM, I have set the MEMORY_MAX_TARGET and MEMORY_TARGET, what should I do with the pre-existing sga_max_size and sga_target values

    memory_target = sga_target + max(pga_aggregate_target, maximum PGA allocated)
    MEMORY_MAX_TARGET = sum of the SGA and instance PGA sizes.
    For Automatic memory management
    set
    ALTER SYSTEM SET SGA_TARGET = 0;
    ALTER SYSTEM SET PGA_AGGREGATE_TARGET = 0;
    Note:
    In a text initialization parameter file, if you omit the line for MEMORY_MAX_TARGET and include a value for MEMORY_TARGET, the database automatically sets MEMORY_MAX_TARGET to the value of MEMORY_TARGET. If you omit the line for MEMORY_TARGET and include a value for MEMORY_MAX_TARGET, the MEMORY_TARGET parameter defaults to zero. After startup, you can then dynamically change MEMORY_TARGET to a nonzero value, provided that it does not exceed the value of MEMORY_MAX_TARGET.
    Note:
    The preceding steps instruct you to set SGA_TARGET and PGA_AGGREGATE_TARGET to zero so that the sizes of the SGA and instance PGA are tuned up and down as required, without restrictions. You can omit the statements that set these parameter values to zero and leave either or both of the values as positive numbers. In this case, the values act as minimum values for the sizes of the SGA or instance PGA.
    Reference

  • Oracle-11g connection is very slow

    Hi Team,
    Installed oracle11g with database yesterday. but the connection to database using tnsnames is very slow even from host server, where as sys / as sysdba is normal in hostserver.
    And checked other databases(10g) connections in the same host server, normal. Here with I spooled alert log file and parameter list. pls do the needful help.
    Aler log file from shut down to startup.
    Sat Aug 06 11:28:54 2011
    Shutting down instance (immediate)
    Stopping background process SMCO
    Shutting down instance: further logons disabled
    Sat Aug 06 11:28:55 2011
    Stopping background process CJQ0
    Stopping background process QMNC
    Stopping background process MMNL
    Stopping background process MMON
    License high water mark = 10
    ALTER DATABASE CLOSE NORMAL
    Sat Aug 06 11:28:58 2011
    SMON: disabling tx recovery
    SMON: disabling cache recovery
    Sat Aug 06 11:28:58 2011
    Shutting down archive processes
    Archiving is disabled
    Sat Aug 06 11:28:58 2011
    ARCH shutting down
    Sat Aug 06 11:28:58 2011
    ARCH shutting down
    Sat Aug 06 11:28:58 2011
    ARCH shutting down
    ARC1: Archival stopped
    ARC0: Archival stopped
    ARC3: Archival stopped
    Sat Aug 06 11:28:58 2011
    ARCH shutting down
    ARC2: Archival stopped
    Thread 1 closed at log sequence 9
    Successful close of redo thread 1
    Completed: ALTER DATABASE CLOSE NORMAL
    ALTER DATABASE DISMOUNT
    Completed: ALTER DATABASE DISMOUNT
    ARCH: Archival disabled due to shutdown: 1089
    Shutting down archive processes
    Archiving is disabled
    Archive process shutdown avoided: 0 active
    ARCH: Archival disabled due to shutdown: 1089
    Shutting down archive processes
    Archiving is disabled
    Archive process shutdown avoided: 0 active
    Sat Aug 06 11:29:01 2011
    Stopping background process VKTM:
    Sat Aug 06 11:29:05 2011
    Instance shutdown complete
    Sat Aug 06 11:32:12 2011
    Starting ORACLE instance (normal)
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Picked latch-free SCN scheme 3
    Using LOG_ARCHIVE_DEST_1 parameter default value as USE_DB_RECOVERY_FILE_DEST
    Autotune of undo retention is turned on.
    IMODE=BR
    ILAT =118
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    Starting up:
    Oracle Database 11g Release 11.2.0.1.0 - 64bit Production.
    Using parameter settings in client-side pfile /oracle/ora11g/apps/dbs/initrakshak.ora on machine abml01
    System parameters with non-default values:
    processes                = 700
    sga_max_size             = 30G
    sga_target               = 30G
    control_files            = "/barch10g_db/ora11g/rakshak_control/rkdatabase/control1/rakshak_control01.ctl"
    control_files            = "/barch10g_db/ora11g/rakshak_redo/rkdatabase/control2/rakshak_control02.ctl"
    control_files            = "/barch10g_db/ora11g/rakshak_idx1/rkdatabase/control3/rakshak_control03.ctl"
    db_block_size            = 16384
    compatible               = "11.2.0"
    log_archive_dest         = "/barch10g_db/ora11g/rakshak_archive/rkdatabase/rakshak"
    db_recovery_file_dest    = "/barch10g_db/ora11g/rakshak_idx1/rkdatabase/flash_recovery_area"
    db_recovery_file_dest_size= 2G
    undo_management          = "AUTO"
    undo_tablespace          = "UNDOTBS1"
    sec_case_sensitive_logon = FALSE
    remote_login_passwordfile= "EXCLUSIVE"
    utl_file_dir             = "/barch10g_db/ora11g/ldoutput/"
    plsql_code_type          = "native"
    job_queue_processes      = 100
    cursor_sharing           = "FORCE"
    audit_file_dest          = "/barch10g_db/ora11g/rakshak_idx1/rkdatabase/adump"
    audit_trail              = "DB"
    db_name                  = "rakshak"
    open_cursors             = 700
    diagnostic_dest          = "/barch10g_db/ora11g/rakshak_idx1/rkdatabase/"
    Sat Aug 06 11:32:33 2011
    PMON started with pid=2, OS id=9463
    Sat Aug 06 11:32:34 2011
    VKTM started with pid=3, OS id=9465 at elevated priority
    VKTM running at (10)millisec precision with DBRM quantum (100)ms
    Sat Aug 06 11:32:34 2011
    GEN0 started with pid=4, OS id=9469
    Sat Aug 06 11:32:34 2011
    DIAG started with pid=5, OS id=9471
    Sat Aug 06 11:32:34 2011
    DBRM started with pid=6, OS id=9473
    Sat Aug 06 11:32:34 2011
    PSP0 started with pid=7, OS id=9475
    Sat Aug 06 11:32:34 2011
    DIA0 started with pid=8, OS id=9477
    Sat Aug 06 11:32:34 2011
    MMAN started with pid=9, OS id=9479
    Sat Aug 06 11:32:34 2011
    DBW0 started with pid=10, OS id=9481
    Sat Aug 06 11:32:34 2011
    DBW1 started with pid=11, OS id=9483
    Sat Aug 06 11:32:34 2011
    DBW2 started with pid=12, OS id=9485
    Sat Aug 06 11:32:34 2011
    LGWR started with pid=13, OS id=9487
    Sat Aug 06 11:32:34 2011
    CKPT started with pid=14, OS id=9489
    Sat Aug 06 11:32:34 2011
    SMON started with pid=15, OS id=9491
    Sat Aug 06 11:32:34 2011
    RECO started with pid=16, OS id=9493
    Sat Aug 06 11:32:34 2011
    MMON started with pid=17, OS id=9495
    Sat Aug 06 11:32:34 2011
    MMNL started with pid=18, OS id=9497
    Sat Aug 06 11:32:34 2011
    ORACLE_BASE not set in environment. It is recommended
    that ORACLE_BASE be set in the environment
    Sat Aug 06 11:34:34 2011
    Shutting down instance (immediate)
    Shutting down instance: further logons disabled
    Stopping background process MMNL
    Stopping background process MMON
    License high water mark = 1
    ALTER DATABASE CLOSE NORMAL
    ORA-1507 signalled during: ALTER DATABASE CLOSE NORMAL...
    ARCH: Archival disabled due to shutdown: 1089
    Shutting down archive processes
    Archiving is disabled
    Archive process shutdown avoided: 0 active
    ARCH: Archival disabled due to shutdown: 1089
    Shutting down archive processes
    Archiving is disabled
    Archive process shutdown avoided: 0 active
    Sat Aug 06 11:34:37 2011
    Stopping background process VKTM:
    Sat Aug 06 11:34:40 2011
    Instance shutdown complete
    Sat Aug 06 11:35:55 2011
    Starting ORACLE instance (normal)
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Picked latch-free SCN scheme 3
    Using LOG_ARCHIVE_DEST_1 parameter default value as USE_DB_RECOVERY_FILE_DEST
    Autotune of undo retention is turned on.
    IMODE=BR
    ILAT =118
    LICENSE_MAX_USERS = 0
    SYS auditing is disabled
    Starting up:
    Oracle Database 11g Release 11.2.0.1.0 - 64bit Production.
    Using parameter settings in client-side pfile /oracle/ora11g/apps/dbs/initrakshak.ora on machine abml01
    System parameters with non-default values:
    processes                = 700
    sga_max_size             = 30G
    sga_target               = 30G
    control_files            = "/barch10g_db/ora11g/rakshak_control/rkdatabase/control1/rakshak_control01.ctl"
    control_files            = "/barch10g_db/ora11g/rakshak_redo/rkdatabase/control2/rakshak_control02.ctl"
    control_files            = "/barch10g_db/ora11g/rakshak_idx1/rkdatabase/control3/rakshak_control03.ctl"
    db_block_size            = 16384
    compatible               = "11.2.0"
    log_archive_dest         = "/barch10g_db/ora11g/rakshak_archive/rkdatabase/rakshak"
    db_recovery_file_dest    = "/barch10g_db/ora11g/rakshak_idx1/rkdatabase/flash_recovery_area"
    db_recovery_file_dest_size= 2G
    undo_management          = "AUTO"
    undo_tablespace          = "UNDOTBS1"
    sec_case_sensitive_logon = FALSE
    remote_login_passwordfile= "EXCLUSIVE"
    utl_file_dir             = "/barch10g_db/ora11g/ldoutput/"
    plsql_code_type          = "native"
    job_queue_processes      = 100
    cursor_sharing           = "FORCE"
    audit_file_dest          = "/barch10g_db/ora11g/rakshak_idx1/rkdatabase/adump"
    audit_trail              = "DB"
    db_name                  = "rakshak"
    open_cursors             = 700
    diagnostic_dest          = "/barch10g_db/ora11g/rakshak_idx1/rkdatabase/"
    Sat Aug 06 11:36:16 2011
    PMON started with pid=2, OS id=9648
    Sat Aug 06 11:36:16 2011
    VKTM started with pid=3, OS id=9657 at elevated priority
    VKTM running at (10)millisec precision with DBRM quantum (100)ms
    Sat Aug 06 11:36:16 2011
    GEN0 started with pid=4, OS id=9669
    Sat Aug 06 11:36:16 2011
    DIAG started with pid=5, OS id=9678
    Sat Aug 06 11:36:16 2011
    DBRM started with pid=6, OS id=9686
    Sat Aug 06 11:36:16 2011
    PSP0 started with pid=7, OS id=9697
    Sat Aug 06 11:36:16 2011
    DIA0 started with pid=8, OS id=9704
    Sat Aug 06 11:36:16 2011
    MMAN started with pid=9, OS id=9711
    Sat Aug 06 11:36:16 2011
    DBW0 started with pid=10, OS id=9713
    Sat Aug 06 11:36:16 2011
    DBW1 started with pid=11, OS id=9715
    Sat Aug 06 11:36:16 2011
    DBW2 started with pid=12, OS id=9717
    Sat Aug 06 11:36:16 2011
    LGWR started with pid=13, OS id=9719
    Sat Aug 06 11:36:16 2011
    CKPT started with pid=14, OS id=9721
    Sat Aug 06 11:36:16 2011
    SMON started with pid=15, OS id=9723
    Sat Aug 06 11:36:16 2011
    RECO started with pid=16, OS id=9725
    Sat Aug 06 11:36:16 2011
    MMON started with pid=17, OS id=9727
    Sat Aug 06 11:36:16 2011
    MMNL started with pid=18, OS id=9729
    Sat Aug 06 11:36:16 2011
    ORACLE_BASE from environment = /oracle/ora11g/home
    Sat Aug 06 11:36:40 2011
    alter database mount
    Sat Aug 06 11:36:44 2011
    Successful mount of redo thread 1, with mount id 3292194824
    Database mounted in Exclusive Mode
    Lost write protection disabled
    Completed: alter database mount
    Sat Aug 06 11:36:54 2011
    alter database open
    LGWR: STARTING ARCH PROCESSES
    Sat Aug 06 11:36:54 2011
    ARC0 started with pid=20, OS id=9743
    Sat Aug 06 11:36:55 2011
    ARC0: Archival started
    LGWR: STARTING ARCH PROCESSES COMPLETE
    ARC0: STARTING ARCH PROCESSES
    Sat Aug 06 11:36:55 2011
    ARC1 started with pid=21, OS id=9745
    Sat Aug 06 11:36:55 2011
    ARC2 started with pid=22, OS id=9747
    Sat Aug 06 11:36:55 2011
    ARC3 started with pid=23, OS id=9749
    ARC1: Archival started
    ARC2: Archival started
    ARC2: Becoming the 'no FAL' ARCH
    ARC2: Becoming the 'no SRL' ARCH
    ARC1: Becoming the heartbeat ARCH
    Thread 1 opened at log sequence 9
    Current log# 3 seq# 9 mem# 0: /barch10g_db/ora11g/rakshak_idx1/rkdatabase/redo3/rakshak_redolog3a.log
    Current log# 3 seq# 9 mem# 1: /barch10g_db/ora11g/rakshak_idx1/rkdatabase/redo3/rakshak_redolog3b.log
    Successful open of redo thread 1
    Sat Aug 06 11:36:55 2011
    SMON: enabling cache recovery
    Successfully onlined Undo Tablespace 2.
    Verifying file header compatibility for 11g tablespace encryption..
    Verifying 11g file header compatibility for tablespace encryption completed
    SMON: enabling tx recovery
    Database Characterset is WE8ISO8859P1
    No Resource Manager plan active
    replication_dependency_tracking turned off (no async multimaster replication found)
    Starting background process QMNC
    Sat Aug 06 11:36:55 2011
    QMNC started with pid=25, OS id=9753
    Completed: alter database open
    Sat Aug 06 11:36:56 2011
    db_recovery_file_dest_size of 2048 MB is 0.99% used. This is a
    user-specified limit on the amount of space that will be used by this
    database for recovery-related files, and does not reflect the amount of
    space available in the underlying filesystem or ASM diskgroup.
    ARC3: Archival started
    ARC0: STARTING ARCH PROCESSES COMPLETE
    Sat Aug 06 11:36:58 2011
    Starting background process CJQ0
    Sat Aug 06 11:36:58 2011
    CJQ0 started with pid=24, OS id=9768
    Setting Resource Manager plan SCHEDULER[0x2FF9]:DEFAULT_MAINTENANCE_PLAN via scheduler window
    Setting Resource Manager plan DEFAULT_MAINTENANCE_PLAN via parameter
    Sat Aug 06 11:37:01 2011
    Starting background process VKRM
    Sat Aug 06 11:37:01 2011
    VKRM started with pid=26, OS id=9770
    Sat Aug 06 11:41:55 2011
    Starting background process SMCO
    Sat Aug 06 11:41:55 2011
    SMCO started with pid=29, OS id=9920
    parameter list
    db_name='rakshak'
    +#memory_target=30G+
    processes = 700
    audit_file_dest='/barch10g_db/ora11g/rakshak_idx1/rkdatabase/adump'
    audit_trail ='db'
    db_block_size=16384
    db_recovery_file_dest='/barch10g_db/ora11g/rakshak_idx1/rkdatabase/flash_recovery_area'
    db_recovery_file_dest_size=2G
    diagnostic_dest='/barch10g_db/ora11g/rakshak_idx1/rkdatabase/'
    +#dispatchers='(PROTOCOL=TCP) (SERVICE=ORCLXDB)'+
    open_cursors=700
    job_queue_processes=100
    remote_login_passwordfile='EXCLUSIVE'
    undo_management='AUTO'
    undo_tablespace='UNDOTBS1'
    +# You may want to ensure that control files are created on separate physical+
    +# devices+
    control_files = '/barch10g_db/ora11g/rakshak_control/rkdatabase/control1/rakshak_control01.ctl','/barch10g_db/ora11g/rakshak_redo/rkdatabase/control2/rakshak_control02.ctl','/barch10g_db/ora11g/rakshak_idx1/rkdatabase/control3/rakshak_control03.ctl'
    compatible ='11.2.0'
    SGA_MAX_SIZE=30G
    SGA_TARGET=30G
    Utl_file_dir='/barch10g_db/ora11g/ldoutput/'
    sec_case_sensitive_logon=FALSE
    plsql_code_type=native
    cursor_sharing='FORCE'
    log_archive_dest='/barch10g_db/ora11g/rakshak_archive/rkdatabase/rakshak'
    If any information is needed, pls let me know.
    thanks in advance
    Regards
    Phani Kumar

    Phani  wrote:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.247.27)(PORT=1522)))Why use port 1522?
    It is always a good idea to use the standard ports for a network application. There is no logic in obfuscating ports for security purposes. It also makes network management and dealing with quality of service issues for example, much more complex if you do not stick to the registered application ports.
    Also note that if you provide a dotted IP address, only that address will be used for binding the tcp port as a listening end point. This means no connections will be accepted on localhost and other IP addresses of that server. Make sure that this is what is technically required.
    ifconfig
    bond6     Link encap:Ethernet  HWaddr 00:26:55:D3:02:B6
    Why are you using bonding? How many bonded interfaces are there and now many physical NICs? Bond6 alludes that it is the 7th bonded interface - and at 2 NICs per bonded interface it implies that your server has 14 physical Ethernet interfaces. Which I doubt is true.
    RX packets:1309675596 errors:5 dropped:0 overruns:0 frame:3Not good to see any errors. What does ethtool stats show? Also check that the physical interfaces are enabled for full duplex. Some Cisco switches do not negotiate it properly and the NIC could be running half duplex.
    Also - using bonding... does not seem right. The 1st and default bonded interface should be +/dev/bond0+ - and not bond6.
    Check the server's network configuration (the +ifcfg-*+ files in +/etc/sysconfig/networking-scripts+ directory). Suggest that you get a network engineer (or the like) to assist with reviewing the network setup of that server.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Oracle 11g Database Performance

    We have Oracle 11g (11.1.0.6) database on HP-UX (IA). It’s around 200G database, and we have lot of batch job and reports running against this database. This database is performing really bad, whenever we restart the application and the database its performing good batch jobs are running for 2 hrs, the time will increase gradually and after few days same job taking more that 20 hrs some times its not even complete we manually kill it.
    So I am guessing this is related to memory (SGA) issue, we have configured automatic memory management. But I don’t know where/what to look to find the root cause. Can some one help me to find a problem?

    Database Memory Details_
    SQL> select * from V_$SGA_TARGET_ADVICE;
      SGA_SIZE SGA_SIZE_FACTOR ESTD_DB_TIME ESTD_DB_TIME_FACTOR ESTD_PHYSICAL_READS
         13312               1       267849                   1           110687043
          3328             .25      1147710              4.2849           231524088
          6656              .5       560074               2.091           149969875
          9984             .75       353321              1.3191           121279793
         16640            1.25       228583               .8534           106547348
         19968             1.5       204503               .7635           103204599
         23296            1.75       139577               .5211            94194674
         26624               2       139577               .5211            94194674
    8 rows selected.
    SQL>
    SQL>
    SQL> show sga;
    Total System Global Area 1.6034E+10 bytes
    Fixed Size                  2112960 bytes
    Variable Size            3422552640 bytes
    Database Buffers         1.2549E+10 bytes
    Redo Buffers               60190720 bytes
    SQL>
    SQL>
    SQL> show parameter;
    NAME                                 TYPE        VALUE
    memory_max_target                    big integer 15G
    memory_target                        big integer 15G
    pga_aggregate_target                 big integer 512M
    sga_target                           big integer 13G
    sga_max_size                         big integer 15G
    SQL>
    SQL>
    Memory & CPU_
    Load averages: 0.10, 0.12, 0.12
    319 processes: 263 sleeping, 56 running
    Cpu states:
    CPU   LOAD   USER   NICE    SYS   IDLE  BLOCK  SWAIT   INTR   SSYS
    0    0.07   1.6%   0.0%   1.8%  96.6%   0.0%   0.0%   0.0%   0.0%
    2    0.13   3.6%   0.0%   1.4%  95.0%   0.0%   0.0%   0.0%   0.0%
    4    0.12   7.3%   0.0%   4.0%  88.7%   0.0%   0.0%   0.0%   0.0%
    6    0.09   3.6%   0.0%   4.4%  92.1%   0.0%   0.0%   0.0%   0.0%
    avg   0.10   4.0%   0.0%   2.8%  93.2%   0.0%   0.0%   0.0%   0.0%
    System Page Size: 4Kbytes
    Memory: 16795892K (5385924K) real, 19681732K (6338872K) virtual, 1122788K free  Page# 1/6

  • 'Maximum Performance' protection in oracle 11g

    Hi,
    I am working on dataguard setup in oracle 11g maximum
    'Maximum Performance' mode requires Standby redo logs
    i was doing switch over test and i am getting this error appreciated for your inputs.
    DGMGRL> show configuration verbose;
    Configuration
      Name:                qecgpoce_DG
      Enabled:             YES
      Protection Mode:     MaxPerformance
      Databases:
        qecgpoce - Primary database
        qecgpoca - Physical standby database
    Fast-Start Failover: DISABLED
    Current status for "qecgpoce_DG":
    Warning: ORA-16607: one or more databases have failed
    DGMGRL> show database verbose qecgpoce;
    Database
      Name:            qecgpoce
      Role:            PRIMARY
      Enabled:         YES
      Intended State:  TRANSPORT-ON
      Instance(s):
        qecgpoce
      Properties:
        DGConnectIdentifier             = 'qecgpoce'
        ObserverConnectIdentifier       = ''
        LogXptMode                      = 'SYNC'
        DelayMins                       = '0'
        Binding                         = 'OPTIONAL'
        MaxFailure                      = '0'
        MaxConnections                  = '1'
        ReopenSecs                      = '300'
        NetTimeout                      = '30'
        RedoCompression                 = 'DISABLE'
        LogShipping                     = 'ON'
        PreferredApplyInstance          = ''
        ApplyInstanceTimeout            = '0'
        ApplyParallel                   = 'AUTO'
        StandbyFileManagement           = 'AUTO'
        ArchiveLagTarget                = '0'
        LogArchiveMaxProcesses          = '4'
        LogArchiveMinSucceedDest        = '1'
        DbFileNameConvert               = '/mounts/qecgpoca_data/oradata/qecgpoca/dbfiles, /mounts/qecgpoce_data/oradata/qecgpoce/dbfiles'
        LogFileNameConvert              = '/u01/app/oracle/admin/qecgpoca/arch, /u01/app/oracle/admin/qecgpoce/arch'
        FastStartFailoverTarget         = ''
        StatusReport                    = '(monitor)'
        InconsistentProperties          = '(monitor)'
        InconsistentLogXptProps         = '(monitor)'
        SendQEntries                    = '(monitor)'
        LogXptStatus                    = '(monitor)'
        RecvQEntries                    = '(monitor)'
        HostName                        = 'ieedc-vzdb17'
        SidName                         = 'qecgpoce'
        StaticConnectIdentifier         = '(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ieedc-vzdb17)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=qecgpoce_DGMGRL)(INSTANCE_NAME=qecgpoce)(SERVER=DEDICATED)))'
        StandbyArchiveLocation          = '/u01/app/oracle/admin/qecgpoce/arch'
        AlternateLocation               = ''
        LogArchiveTrace                 = '0'
        LogArchiveFormat                = 'qecgpoc%s%t%r.arc'
        LatestLog                       = '(monitor)'
        TopWaitEvents                   = '(monitor)'
    Current status for "qecgpoce":
    Warning: ORA-16789: standby redo logs not configured
    DGMGRL> show database verbose qecgpoca;
    Database
      Name:            qecgpoca
      Role:            PHYSICAL STANDBY
      Enabled:         YES
      Intended State:  APPLY-ON
      Instance(s):
        qecgpoca
      Properties:
        DGConnectIdentifier             = 'qecgpoca'
        ObserverConnectIdentifier       = ''
        LogXptMode                      = 'ARCH'
        DelayMins                       = '0'
        Binding                         = 'OPTIONAL'
        MaxFailure                      = '0'
        MaxConnections                  = '1'
        ReopenSecs                      = '300'
        NetTimeout                      = '30'
        RedoCompression                 = 'DISABLE'
        LogShipping                     = 'ON'
        PreferredApplyInstance          = ''
        ApplyInstanceTimeout            = '0'
        ApplyParallel                   = 'AUTO'
        StandbyFileManagement           = 'AUTO'
        ArchiveLagTarget                = '0'
        LogArchiveMaxProcesses          = '4'
        LogArchiveMinSucceedDest        = '1'
        DbFileNameConvert               = '/mounts/qecgpoce_data/oradata/qecgpoce/dbfiles, /mounts/qecgpoca_data/oradata/qecgpoca/dbfiles'
        LogFileNameConvert              = '/u01/app/oracle/admin/qecgpoce/arch, /u01/app/oracle/admin/qecgpoca/arch'
        FastStartFailoverTarget         = ''
        StatusReport                    = '(monitor)'
        InconsistentProperties          = '(monitor)'
        InconsistentLogXptProps         = '(monitor)'
        SendQEntries                    = '(monitor)'
        LogXptStatus                    = '(monitor)'
        RecvQEntries                    = '(monitor)'
        HostName                        = 'usadc-vzdb32'
        SidName                         = 'qecgpoca'
        StaticConnectIdentifier         = '(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=usadc-vzdb32)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=qecgpoca_DGMGRL)(INSTANCE_NAME=qecgpoca)(SERVER=DEDICATED)))'
        StandbyArchiveLocation          = '/u01/app/oracle/admin/qecgpoca/arch'
        AlternateLocation               = ''
        LogArchiveTrace                 = '0'
        LogArchiveFormat                = 'qecgpoc%s%t%r.arc'
        LatestLog                       = '(monitor)'
        TopWaitEvents                   = '(monitor)'
    Current status for "qecgpoca":
    Error: ORA-16766: Redo Apply is stoppedThanks
    Prakash

    Hi,
    secondary parameter file;
    SQL> show parameter _
    NAME                                 TYPE        VALUE
    O7_DICTIONARY_ACCESSIBILITY          boolean     FALSE
    active_instance_count                integer
    aq_tm_processes                      integer     0
    archive_lag_target                   integer     0
    asm_diskgroups                       string
    asm_diskstring                       string
    asm_power_limit                      integer     1
    asm_preferred_read_failure_groups    string
    audit_file_dest                      string      /u01/app/oracle/admin/qecgpoca
                                                     /adump
    audit_sys_operations                 boolean     FALSE
    NAME                                 TYPE        VALUE
    audit_syslog_level                   string
    audit_trail                          string      NONE
    background_core_dump                 string      partial
    background_dump_dest                 string      /u01/app/oracle/admin/qecgpoca
                                                     /diagnostic/diag/rdbms/qecgpoc
                                                     a/qecgpoca/trace
    backup_tape_io_slaves                boolean     FALSE
    bitmap_merge_area_size               integer     1048576
    blank_trimming                       boolean     FALSE
    buffer_pool_keep                     string
    buffer_pool_recycle                  string
    NAME                                 TYPE        VALUE
    cell_offload_compaction              string      ADAPTIVE
    cell_offload_parameters              string
    cell_offload_plan_display            string      AUTO
    cell_offload_processing              boolean     TRUE
    cell_partition_large_extents         string      DEFAULT
    circuits                             integer
    client_result_cache_lag              big integer 3000
    client_result_cache_size             big integer 0
    cluster_database                     boolean     FALSE
    cluster_database_instances           integer     1
    cluster_interconnects                string
    NAME                                 TYPE        VALUE
    commit_logging                       string
    commit_point_strength                integer     1
    commit_wait                          string
    commit_write                         string
    compatible                           string      11.0.0.0.0
    control_file_record_keep_time        integer     7
    control_files                        string      /mounts/qecgpoca_data/oradata/
                                                     qecgpoca/dbfiles/control.ctl
    control_management_pack_access       string      DIAGNOSTIC+TUNING
    core_dump_dest                       string      /u01/app/oracle/admin/qecgpoca
                                                     /cdump/
    NAME                                 TYPE        VALUE
    cpu_count                            integer     16
    create_bitmap_area_size              integer     8388608
    create_stored_outlines               string
    cursor_sharing                       string      EXACT
    cursor_space_for_time                boolean     FALSE
    db_16k_cache_size                    big integer 0
    db_2k_cache_size                     big integer 0
    db_32k_cache_size                    big integer 0
    db_4k_cache_size                     big integer 0
    db_8k_cache_size                     big integer 0
    db_block_buffers                     integer     0
    NAME                                 TYPE        VALUE
    db_block_checking                    string      FALSE
    db_block_checksum                    string      TYPICAL
    db_block_size                        integer     8192
    db_cache_advice                      string      ON
    db_cache_size                        big integer 168M
    db_create_file_dest                  string
    db_create_online_log_dest_1          string
    db_create_online_log_dest_2          string
    db_create_online_log_dest_3          string
    db_create_online_log_dest_4          string
    db_create_online_log_dest_5          string
    db_domain                            string
    db_file_multiblock_read_count        integer     61
    db_file_name_convert                 string      /mounts/qecgpoce_data/oradata/
                                                     qecgpoce/dbfiles, /mounts/qecg
                                                     poca_data/oradata/qecgpoca/dbf
                                                     iles
    db_files                             integer     200
    db_flashback_retention_target        integer     1440
    db_keep_cache_size                   big integer 0
    db_lost_write_protect                string      NONE
    db_name                              string      qecgpoce
    NAME                                 TYPE        VALUE
    db_recovery_file_dest                string
    db_recovery_file_dest_size           big integer 0
    db_recycle_cache_size                big integer 0
    db_securefile                        string      PERMITTED
    db_ultra_safe                        string      OFF
    db_unique_name                       string      qecgpoca
    db_writer_processes                  integer     4
    dbwr_io_slaves                       integer     0
    ddl_lock_timeout                     integer     0
    dg_broker_config_file1               string      /u01/app/oracle/product/11.1.0
                                                     .7/dbs/dr1qecgpoca.dat
    NAME                                 TYPE        VALUE
    dg_broker_config_file2               string      /u01/app/oracle/product/11.1.0
                                                     .7/dbs/dr2qecgpoca.dat
    dg_broker_start                      boolean     TRUE
    diagnostic_dest                      string      /u01/app/oracle/admin/qecgpoca
                                                     /diagnostic
    disk_asynch_io                       boolean     TRUE
    dispatchers                          string
    distributed_lock_timeout             integer     60
    dml_locks                            integer     1472
    drs_start                            boolean     FALSE
    enable_ddl_logging                   boolean     FALSE
    NAME                                 TYPE        VALUE
    event                                string
    fal_client                           string      qecgpoca
    fal_server                           string      qecgpoce
    fast_start_io_target                 integer     0
    fast_start_mttr_target               integer     300
    fast_start_parallel_rollback         string      LOW
    file_mapping                         boolean     FALSE
    fileio_network_adapters              string
    filesystemio_options                 string      asynch
    fixed_date                           string
    gc_files_to_locks                    string
    NAME                                 TYPE        VALUE
    gcs_server_processes                 integer     0
    global_context_pool_size             string
    global_names                         boolean     FALSE
    global_txn_processes                 integer     1
    hash_area_size                       integer     131072
    hi_shared_memory_address             integer     0
    hs_autoregister                      boolean     TRUE
    ifile                                file
    instance_groups                      string
    instance_name                        string      qecgpoca
    instance_number                      integer     0
    NAME                                 TYPE        VALUE
    instance_type                        string      RDBMS
    java_jit_enabled                     boolean     TRUE
    java_max_sessionspace_size           integer     0
    java_pool_size                       big integer 152M
    java_soft_sessionspace_limit         integer     0
    job_queue_processes                  integer     0
    large_pool_size                      big integer 4M
    ldap_directory_access                string      NONE
    ldap_directory_sysauth               string      no
    license_max_sessions                 integer     0
    license_max_users                    integer     0
    NAME                                 TYPE        VALUE
    license_sessions_warning             integer     0
    local_listener                       string
    lock_name_space                      string
    lock_sga                             boolean     FALSE
    log_archive_config                   string      dg_config=(qecgpoce,qecgpoca)
    log_archive_dest                     string
    log_archive_dest_1                   string      location="/u01/app/oracle/admi
                                                     n/qecgpoca/arch",  valid_for=(
                                                     ALL_LOGFILES,ALL_ROLES)
    log_archive_dest_10                  string
    log_archive_dest_2                   string      service=qecgpoce lgwr async va
    NAME                                 TYPE        VALUE
                                                     lid_for=(online_logfiles,prima
                                                     ry_role) db_unique_name=qecgpo
                                                     ce
    log_archive_dest_3                   string
    log_archive_dest_4                   string
    log_archive_dest_5                   string
    log_archive_dest_6                   string
    log_archive_dest_7                   string
    log_archive_dest_8                   string
    log_archive_dest_9                   string
    log_archive_dest_state_1             string      ENABLE
    NAME                                 TYPE        VALUE
    log_archive_dest_state_10            string      enable
    log_archive_dest_state_2             string      enable
    log_archive_dest_state_3             string      enable
    log_archive_dest_state_4             string      enable
    log_archive_dest_state_5             string      enable
    log_archive_dest_state_6             string      enable
    log_archive_dest_state_7             string      enable
    log_archive_dest_state_8             string      enable
    log_archive_dest_state_9             string      enable
    log_archive_duplex_dest              string
    log_archive_format                   string      qecgpoc%s%t%r.arc
    NAME                                 TYPE        VALUE
    log_archive_local_first              boolean     TRUE
    log_archive_max_processes            integer     4
    log_archive_min_succeed_dest         integer     1
    log_archive_start                    boolean     FALSE
    log_archive_trace                    integer     0
    log_buffer                           integer     4197376
    log_checkpoint_interval              integer     0
    log_checkpoint_timeout               integer     1800
    log_checkpoints_to_alert             boolean     FALSE
    log_file_name_convert                string      /u01/app/oracle/admin/qecgpoce
                                                     /arch, /u01/app/oracle/admin/q
    NAME                                 TYPE        VALUE
                                                     ecgpoca/arch
    max_commit_propagation_delay         integer     0
    max_dispatchers                      integer
    max_dump_file_size                   string      unlimited
    max_enabled_roles                    integer     150
    max_shared_servers                   integer
    memory_max_target                    big integer 0
    memory_target                        big integer 0
    nls_calendar                         string
    nls_comp                             string      BINARY
    nls_currency                         string
    NAME                                 TYPE        VALUE
    nls_date_format                      string
    nls_date_language                    string
    nls_dual_currency                    string
    nls_iso_currency                     string
    nls_language                         string      AMERICAN
    nls_length_semantics                 string      BYTE
    nls_nchar_conv_excp                  string      FALSE
    nls_numeric_characters               string
    nls_sort                             string
    nls_territory                        string      AMERICA
    nls_time_format                      string
    NAME                                 TYPE        VALUE
    nls_time_tz_format                   string
    nls_timestamp_format                 string
    nls_timestamp_tz_format              string
    object_cache_max_size_percent        integer     10
    object_cache_optimal_size            integer     102400
    olap_page_pool_size                  big integer 0
    open_cursors                         integer     300
    open_links                           integer     4
    open_links_per_instance              integer     4
    optimizer_capture_sql_plan_baselines boolean     FALSE
    optimizer_dynamic_sampling           integer     2
    NAME                                 TYPE        VALUE
    optimizer_features_enable            string      11.1.0.7
    optimizer_index_caching              integer     0
    optimizer_index_cost_adj             integer     100
    optimizer_mode                       string      ALL_ROWS
    optimizer_secure_view_merging        boolean     TRUE
    optimizer_use_invisible_indexes      boolean     FALSE
    optimizer_use_pending_statistics     boolean     FALSE
    optimizer_use_sql_plan_baselines     boolean     TRUE
    os_authent_prefix                    string      ops$
    os_roles                             boolean     FALSE
    parallel_adaptive_multi_user         boolean     FALSE
    NAME                                 TYPE        VALUE
    parallel_automatic_tuning            boolean     FALSE
    parallel_execution_message_size      integer     2152
    parallel_instance_group              string
    parallel_io_cap_enabled              boolean     FALSE
    parallel_max_servers                 integer     2
    parallel_min_percent                 integer     0
    parallel_min_servers                 integer     0
    parallel_server                      boolean     FALSE
    parallel_server_instances            integer     1
    parallel_threads_per_cpu             integer     2
    pga_aggregate_target                 big integer 100M
    NAME                                 TYPE        VALUE
    plscope_settings                     string      IDENTIFIERS:NONE
    plsql_ccflags                        string
    plsql_code_type                      string      INTERPRETED
    plsql_debug                          boolean     FALSE
    plsql_native_library_dir             string
    plsql_native_library_subdir_count    integer     0
    plsql_optimize_level                 integer     2
    plsql_v2_compatibility               boolean     FALSE
    plsql_warnings                       string      DISABLE:ALL
    pre_page_sga                         boolean     FALSE
    processes                            integer     300
    NAME                                 TYPE        VALUE
    query_rewrite_enabled                string      TRUE
    query_rewrite_integrity              string      enforced
    rdbms_server_dn                      string
    read_only_open_delayed               boolean     FALSE
    recovery_parallelism                 integer     0
    recyclebin                           string      on
    redo_transport_user                  string
    remote_dependencies_mode             string      TIMESTAMP
    remote_listener                      string
    remote_login_passwordfile            string      EXCLUSIVE
    remote_os_authent                    boolean     FALSE
    NAME                                 TYPE        VALUE
    remote_os_roles                      boolean     FALSE
    replication_dependency_tracking      boolean     TRUE
    resource_limit                       boolean     FALSE
    resource_manager_cpu_allocation      integer     16
    resource_manager_plan                string      SYSTEM_PLAN
    result_cache_max_result              integer     5
    result_cache_max_size                big integer 5M
    result_cache_mode                    string      MANUAL
    result_cache_remote_expiration       integer     0
    resumable_timeout                    integer     0
    rollback_segments                    string
    NAME                                 TYPE        VALUE
    sec_case_sensitive_logon             boolean     TRUE
    sec_max_failed_login_attempts        integer     10
    sec_protocol_error_further_action    string      CONTINUE
    sec_protocol_error_trace_action      string      TRACE
    sec_return_server_release_banner     boolean     FALSE
    serial_reuse                         string      disable
    service_names                        string      qecgpoca
    session_cached_cursors               integer     50
    session_max_open_files               integer     10
    sessions                             integer     335
    sga_max_size                         big integer 1000M
    sga_target                           big integer 0
    shadow_core_dump                     string      partial
    shared_memory_address                integer     0
    shared_pool_reserved_size            big integer 25M
    shared_pool_size                     big integer 500M
    shared_server_sessions               integer
    shared_servers                       integer     0
    skip_unusable_indexes                boolean     TRUE
    smtp_out_server                      string
    sort_area_retained_size              integer     0
    sort_area_size                       integer     65536
    NAME                                 TYPE        VALUE
    spfile                               string      /u01/app/oracle/product/11.1.0
                                                     .7/dbs/spfileqecgpoca.ora
    sql92_security                       boolean     FALSE
    sql_trace                            boolean     FALSE
    sql_version                          string      NATIVE
    sqltune_category                     string      DEFAULT
    standby_archive_dest                 string      ?/dbs/arch
    standby_file_management              string      AUTO
    star_transformation_enabled          string      FALSE
    statistics_level                     string      TYPICAL
    streams_pool_size                    big integer 0
    NAME                                 TYPE        VALUE
    tape_asynch_io                       boolean     TRUE
    thread                               integer     0
    timed_os_statistics                  integer     0
    timed_statistics                     boolean     TRUE
    trace_enabled                        boolean     TRUE
    tracefile_identifier                 string
    transactions                         integer     368
    transactions_per_rollback_segment    integer     5
    undo_management                      string      AUTO
    undo_retention                       integer     900
    undo_tablespace                      string      UNDOTBS1
    sort_area_retained_size              integer     0
    sort_area_size                       integer     65536
    NAME                                 TYPE        VALUE
    spfile                               string      /u01/app/oracle/product/11.1.0
                                                     .7/dbs/spfileqecgpoca.ora
    sql92_security                       boolean     FALSE
    sql_trace                            boolean     FALSE
    sql_version                          string      NATIVE
    sqltune_category                     string      DEFAULT
    standby_archive_dest                 string      ?/dbs/arch
    standby_file_management              string      AUTO
    star_transformation_enabled          string      FALSE
    statistics_level                     string      TYPICAL
    streams_pool_size                    big integer 0
    NAME                                 TYPE        VALUE
    tape_asynch_io                       boolean     TRUE
    thread                               integer     0
    timed_os_statistics                  integer     0
    timed_statistics                     boolean     TRUE
    trace_enabled                        boolean     TRUE
    tracefile_identifier                 string
    transactions                         integer     368
    transactions_per_rollback_segment    integer     5
    undo_management                      string      AUTO
    undo_retention                       integer     900
    undo_tablespace                      string      UNDOTBS1
    NAME                                 TYPE        VALUE
    use_indirect_data_buffers            boolean     FALSE
    user_dump_dest                       string      /u01/app/oracle/admin/qecgpoca
                                                     /diagnostic/diag/rdbms/qecgpoc
                                                     a/qecgpoca/trace
    utl_file_dir                         string
    workarea_size_policy                 string      AUTO
    xml_db_events                        string      enableThanks
    Prakash

  • Oracle 11g : ORA-00384 insufficient memory to grow cache

    Hi ,
    I am trying to manually set the db_cache_size and I am getting the following error :
    SQL> alter system set sga_max_size=100M scope=spfile;
    System altered.
    SQL>alter system set db_cache_size=50M scope=spfile
    ERROR at line 1:
    ORA-32017: failure in updating SPFILE
    ORA-00384: Insufficient memory to grow cache
    Please give me any suggestions.
    -Nanjappan

    The error is bacially that you have set the sga size to smaller as compared to the size of the maximum sga.See here,
    SQL> show sga
    Total System Global Area  188313600 bytes
    Fixed Size                  1332048 bytes
    Variable Size             138415280 bytes
    Database Buffers           41943040 bytes
    Redo Buffers                6623232 bytes
    SQL> alter system set db_cache_size=50m scope=spfile;
    alter system set db_cache_size=50m scope=spfile
    ERROR at line 1:
    ORA-32017: failure in updating SPFILE
    ORA-00384: Insufficient memory to grow cache
    SQL> alter system set db_cache_size=42m scope=spfile;
    alter system set db_cache_size=42m scope=spfile
    ERROR at line 1:
    ORA-32017: failure in updating SPFILE
    ORA-00384: Insufficient memory to grow cache
    SQL> select  * from V$versionl;
    select  * from V$versionl
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> select  * from V$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE    11.1.0.6.0      Production
    TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    SQL>
    SQL> show parameter max
    NAME                                 TYPE        VALUE
    java_max_sessionspace_size           integer     0
    license_max_sessions                 integer     0
    license_max_users                    integer     0
    log_archive_max_processes            integer     4
    max_commit_propagation_delay         integer     0
    max_dispatchers                      integer
    max_dump_file_size                   string      unlimited
    max_enabled_roles                    integer     150
    max_shared_servers                   integer
    memory_max_target                    big integer 0
    object_cache_max_size_percent        integer     10
    NAME                                 TYPE        VALUE
    parallel_max_servers                 integer     40
    result_cache_max_result              integer     5
    result_cache_max_size                big integer 928K
    sec_max_failed_login_attempts        integer     10
    session_max_open_files               integer     10
    sga_max_size                         big integer 180M
    SQL>My buffer cache size if increased from the current size , its going to go beyond the sga_max_size ad hence the error is reported. As mentioned already, either bounce the db to chanhe the maximum SGA or make some another parameter small in size and than retry.
    HTH
    Aman....

  • Oracle 11g on Windows XP

    Hello All,
    I recently downloaded a copy of Oracle 11g for windows and installed it on my windows xp laptop.
    I was able to install it without issues but I am unable to create a new database!
    A little digging around revealed that there are very less no. of configurable parameters in 11g.
    And that we don't have sga_max_size/sga_target anymore! Instead we have memory_target.
    But inspite of ensuring all these changes, I keep running to the "end of file on communication channel" error.
    Am I missing something here? I am using more-or-less the same approach to creating a database manually, that I have used for 9iR2; 10gR2 .
    Any advise will be appreciated.
    -Anand

    Hello All,
    I tried BOTH dbca as well as Manual Create database statement.
    I finally managed to locate the alert log file and found a bunch of ORA-7445 Core Dump errors.
    Note: With oracle 11g the background_dump_dest parameter is ignored and the alert log location is defined by the DIAGNOSTIC_DEST parameter.
    And it points to:
    <ORACLE_BASE>\diag\rdbms\<SID>\<SID>\trace
    Wed Jul 09 17:03:22 2008
    Starting ORACLE instance (normal)
    Exception [type: IN_PAGE_ERROR, ] [] [PC:0x1026F5C, _ktfanfy()+0]
    Errors in file c:\oracle\product\11g_base\diag\rdbms\hsa11gdb\hsa11gdb\trace\hsa11gdb_ora_3836.trc (incident=2):
    ORA-07445: exception encountered: core dump [ktfanfy()+0] [IN_PAGE_ERROR] [] [PC:0x1026F5C] [] []
    Incident details in: c:\oracle\product\11g_base\diag\rdbms\hsa11gdb\hsa11gdb\incident\incdir_2\hsa11gdb_ora_3836_i2.trc
    Sweep Incident[2]: completed
    I am digging deeper in metalink and will keep all posted with findings.
    -Anand

  • /dev/shm on Oracle Linux 6.x to run Oracle 11g R2 - manual configuration?

    Hello
    We are building a server to run Oracle 11g R2 database (11.2.0.3 x64) on Oracle Linux 6.2 with UEK R2.
    Our preference is to use AMM to have Oracle 11g R2 manage memory. We may impose some minium SGA and PGA memory allocations but basically aim to use MEMORY_TARGET to manage overall memory.
    By default Linux makes the size of /dev/shm ~50% of server physical RAM, as far as I can tell.
    Here is the /etc/fstab entry created by the installation:
    tmpfs /dev/shm tmpfs defaults 0 0
    Given this Linux server will only run Oracle 11g R2 database and some monitoring software, almost application code will run on the server. The application code will run on the separate application server and is Java based.
    Can I change the */etc/fstab* entry for /dev/shm to manually increase the size to take up ~80-90% of the server physical RAM ? Is it a good idea?
    The server is 64-bit, the RAM = 64 GB, so I am thinking to manually make /dev/shm to be = ~55GB, leaving ~8GB for other purposes.
    Right now it's about 32GB (50%?) if I leave the /dev/shm 'defaults' on.
    many thanks

    thanks,
    I have read the doc (what little there is on this topic).
    I have asked on the database forum......
    just FYI - below is the proof:
    SQL> show parameter mem
    NAME                    TYPE     VALUE
    hi_shared_memory_address     integer     0
    memory_max_target          big integer 4G
    memory_target          big integer 0
    shared_memory_address     integer     0
    SQL> show parameter ga
    NAME                    TYPE     VALUE
    lock_sga               boolean     FALSE
    pga_aggregate_target          big integer 1600M
    pre_page_sga          boolean     FALSE
    sga_max_size          big integer 3G
    sga_target               big integer 1600M
    still does not work.
    And I cant change memory_max_target = 0 because I get error on startup:
    SQL> alter system set memory_max_target=0 scope=spfile;
    System altered.
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup;
    ORA-01078: failure in processing system parameters
    ORA-00843: Parameter not taking MEMORY_MAX_TARGET into account
    ORA-00849: SGA_TARGET 3221225472 cannot be set to more than MEMORY_MAX_TARGET 0.
    BUT if memory_max_target is > 0 then alert log says hugepages can not be used
    it feels like catch-22.....
    thanks
    Edited by: yurib on Jun 1, 2012 4:53 PM

  • I have an error ora-04031 on XE 11g

    hello,
    I have an error ora-04031 on XE 11g
    When I restart DB, this error is fixed.
    Can I set any parameter(SHARED_POOL_SIZE) to fixed this error?
    OS:win 2003 server
    ora-00604: error occurred at recursive SQL level 1
    ora-04031: unable to allocate 4064 bytes of shared memory ("shared pool","select t.rowcnt, t.blkcnt, t...","sga heap(1,0)","kglsim heap")

    Hello,
    Can I set any parameter(SHARED_POOL_SIZE) to fixed this error?There actually is a parameter, but in 11g XE it's not effective by default because Automatic Memory Management (AMM) is activated. AMM tries to tune the different memory parameters to achieve best performance for all activities in the database.
    You can disable automatic memory management, but I'd not recommend to do that unless you really know what you do.
    In your case, I'd start to investigate if a perticular query is causing that issue and you might be able to tune it, so it needs less memory. A second step would be to check whether your instance is already using the 1 GB you can have in XE. To find out, run the following query
    select * from v$parameter where name in ('memory_target', 'sga_target','sga_max_size','pga_aggregate_target');The parameters for AMM would be memory_target and memory_max_target where memory_target is the effecitve maximum amount of memory used by XE. If it's not enabled (set to 0), the other three might be effecitve.
    To increase the value for memory_target you can run
    alter system set memory_target=<size>M;where +<size>M+ would be the amount of memory in megabytes. As mentioned before, you can assign a maximum of 1 GB and not more than you've defined in the memory_max_target parameter. To increase that value, you need to run
    alter system set memory_max_target=<size>M scope=spfile;and restart your database before you can alter memory_target to a higher value.
    BTW: For further investigation you don't need to restart the database to reset the shared pool: You can do this by issuing the following command
    alter system flush shared_pool;If this all doesn't help, I'd recommend to dig in deeper into memory management of the Oracle Database. But let's start with first steps first.
    -Udo

  • Need Document/Steps for Cloning RAC 11g.

    Hi,
    I am looking for a document to clone an existing RAC 11g database.
    I believe in the cloning process this will create a new RAC database...
    Also the source database data has to be applied to the cloned rac db.
    Environment 11g, AIX.
    Advice needed.
    Thanks in advance.

    Hello Indigo,
    The steps are necessary,
    1) Create the password file
    2) Create the spfile for the DESTINATION database (auxiliary database)
    3) Create the necessary mount points or the folders for the database files
    4) Execuute this command from the primary database.
    DUPLICATE TARGET DATABASE TO <standby_name>
    FOR STANDBY
    FROM ACTIVE DATABASE
    SPFILE
    PARAMETER_VALUE_CONVERT '<string>', '<string>'
    SET DB_FILE_NAME_CONVERT '<string>', '<string>'
    SET LOG_FILE_NAME_CONVERT '<string>', '<string>'
    SET SGA_MAX_SIZE 1000M
    SET SGA_TARGET 850M;
    Please see the *11g : Active Database Duplication ID 568034.1*
    Best Regards,
    Rodrigo Mufalani
    http://www.mrdba.com.br/mufalani

  • Am I understanding SGA_TARGET and SGA_MAX_SIZE correctly?

    Let's say I set SGA_MAX_SIZE to 1024MB and SGA_TARGET to 512MB.
    As I understand it, this means that the total SGA size will never exceed 1024MB (that's the "hard cap"). Oracle will try to keep things around 512MB, but may burst up to 1024MB as needed.
    Is that correct? Otherwise, I don't see the point of SGA_MAX_SIZE vs. SGA_TARGET.
    BTW...I know MEMORY_TARGET and MEMORY_MAX_TARGET are the new 11g params, but Oracle ships XE with those turned off and the 10g SGA_* params and PGA_AGGREGATE_TARGET set...?

    Hi,
    In Oracle 11g MEMORY_TARGET is for automatic SGA and PGA management.MEMORY_MAX_SIZE is the maximum size to which your MEMORY_TARGET can be allocated.As shown below:
    SQL> show parameter %MEMORY%
    NAME TYPE VALUE
    hi_shared_memory_address integer 0
    memory_max_target big integer 1G
    memory_target big integer 1G
    But,When it comes to managing various other memory component like shared_pool,large_pool,Db_buffer_cache,log_buffer_cache,java_pool we still have to manage SGA_TARGET.
    SQL> show parameter %SGA%
    NAME TYPE VALUE
    lock_sga boolean FALSE
    pre_page_sga boolean FALSE
    sga_max_size big integer 1G
    sga_target big integer 0
    Best regards,
    Rafi.
    http://rafioracledba.blogspot.com/
    Edited by: Rafi (Oracle DBA) on Jun 22, 2011 11:54 PM

Maybe you are looking for

  • Mail takes a long time to load

    I have about five accounts, some of them IMAP others Exchange. In the past month Mail became extremely slow to load and start. It opens the app right away but I don't see any email and all the account inboxes have the spinning gray lines next to thei

  • Printing date in arabic numerals

    hi i am having a project in vs 2005 aspnet and using cr xi r2 . i am exporting to pdf before printing. i am able to get the arabic contents but the numbers i.e the amount and the date are coming in english. i have set   regional settings to arabic -

  • Module pool help needed

    Please use a more informative subject in future hi Experts In my module pool program i having a list box in a modeled dialog box . if the list box is left empty it will give an error message .after pressing the enter buttton the list box gets disable

  • Material Master Security at Material Level

    Hi! Can anyone tell me if we can lock security on material masters down on certain material types? We have just started testing security at the screen level but would like to take it a step further to material type. We are on 45.B still... Thanks for

  • Out Put Type for Delivery

    Hi friends I would request you to guide me to assign output type to delivery . Regards jp