Ons.log growing enormously in 10g on RHEL3

This log is growing at between 5g and 10g per weeek.
The entries are as follows :-
05/02/05 12:42:26 [4] Local connection 0,127.0.0.1,6100 missing form factor
05/02/05 12:42:26 [4] Local connection 0,127.0.0.1,6100 missing form factor
05/02/05 12:42:26 [4] Local connection 0,127.0.0.1,6100 missing form factor
On my system the location of the logs is here :-
/oracle/product/10.1.0/ccd/opmn/logs
Thanks
George

I've run into this problem myself and have made the suggested change. The tns listener is no longer running crazy and adding to the log. The original oracle instance seems to be behaving, as well.
Thank you very much for the tip.
Follow-up question: I'm not well versed on this type of installation. I installed 10g under ...../product/10.2.0/Db_1 and then tried to install the http server. Docs indicated that it wants to have it's own ORACLE_HOME. So be it. It's in ...../product/10.2.0/Db_2. Now the questions arise:
1) What's common between the two?
2) Do I need to switch from one set of env vars to the other for startup/shutdown?
3) /etc/init.d/*ora now do not look like they will work.
Which doc covers this type of installation - and is this not recommended?
My "play DBA" days were over several years ago.
thanks again.

Similar Messages

  • Ons.log errors

    I have a 10g grid console installed configured and working.
    However thirty four error lines a second are written to the ons.log file. The error is:
    05/05/02 12:59:42 [4] Local connection 0,127.0.0.1, 6100 missing form factor.
    The above line is repeated thirty four times a second.
    What is this error and how do I get rid of it?

    Could you pls tell me the detail of Metalink id:284602.1?
    Thank you very much!

  • ONS.Log is filling up my machine

    Can anyone help me with this problem. I have installed 9iAS infrastructure and mid-iter (portal and forms only) on a Windows 2000 server.
    Everything seems to run fine for a few hours and then I am out of disk space - almost 30GB are used up in the ons.log files.
    How can I stop this - turn off the log - or correct the basic error?
    I can't figure out what is causing the log to grow so large and so quickly. Please help

    Hi,
    You could check the log level in your ons.log file. This value is specified in the following location:
    $ORACLE_HOME/opmn/conf/opmn/xml
    The <log-file> tag for the ons.log file would have the value of log level. The permitted range of values are from 1(least messages logged) to 9(most messages logged).
    You could select a lower logging level value to prevent your log level from growing large.
    Thanks,
    Rashmi.

  • ONS.log , invalid connect server IP format

    Dear all,
    We have a RAC system 10g (10.2.0.3) with two database nodes on two dedicated IBM Power servers with AIX 5.3 as OS.
    The following message is occurring in a frequent way in ons.log noting that we have detected that the ons process is consuming very high memory:
    +13/03/18 09:34:33 [2] Passive connection 0,<IP of server 1>,6200 invalid connect server IP format+
    +3232237319,6200,6113,0+
    ONSinfo: !!3232237319!0!6200!0!6113
    hostName: <hostname of server2>
    clusterId: databaseClusterId
    clusterName: databaseClusterName
    instanceId: databaseInstanceId
    instanceName: databaseInstanceName
    Unfortunately we can't find any documentation for that.
    Regards.

    ons process is consuming very high memory....
    is it log size is increasing drastically or any other issue....we are not getting issue .....
    ONS is consuming high CPU? is it ur issue...then
    according to my understanding the hostname or IP value configured for OPMN in the opmn.xml file does not match the corresponding entry in the ons.conf file.
    OPMN reconnects to itself over and over, thereby increasing CPU usage, one more thing is ONS topology is mis-configured....i hope...
    ons.conf file content must be same as all other instance in the cluster.....
    for more information examine the log ORACLE_HOME/opmn/logs/ipm.log ....if possible post the log.....
    thanks,
    DBC,
    Sr DBA.

  • Oas 10gr2 can't be started: ons.log shows local listener terminated

    Hello all. I have the following problem
    When I try to start the oas infrastructure (we are using 10g release 2), I got the following error:
    */oas/product/10.1.2/opmn/logs>opmnctl startall*
    opmnctl: starting opmn and all managed processes...
    opmnctl: opmn start failed
    Reviewing oas log files, the $OAS_HOME/opmn/logs/ONS.LOG shows the following error:
    *09/03/25 17:23:04 [1] Local listener terminated*
    *09/03/26 09:45:17 [4] ONS server initiated*
    *09/03/26 09:45:17 [2] BIND (Can't assign requested address)*
    *09/03/26 09:45:17 [2] 127.0.0.0:399835136 - listener BIND failed*
    *09/03/26 09:45:17 [4] Listener thread 1543: 127.0.0.0:399835136 (0x442) terminating*
    *09/03/26 09:45:17 [1] Local listener terminated*
    This is similar to what others have reported about problems with listener binding, but this problem cannot be found in Metalink because it says the BIND can't assign requested address.
    I have the suspict this is a problem with the hostname or something because the ONS is trying to bind to 127.0.0.0... strange...
    The /etc/hosts shows this configuration
    *# 10.2.0.2 x25sample # x.25 name/address*
    *127.0.0.1 localhost.av-c.com loopback localhost*
    *172.19.1.26 avc1.av-c.com avc1*
    Please help because this install has a lot of applications and we cannot start it.
    Thanks!

    DO you have a Database there?
    What process did not start?
    What does the log of this process show?
    Regards.

  • Error in ONS logs while implmenting FCF on oracle RAC from java program

    I have java prog on client machine that uses properties from a property file.While making the connection to the ONS port on the oracle RAC server to implement FCF the program is throwing error as below:
    java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    and when i checked the ons logs for that node the logs are as follows:
    Connection 5,199.xxx.xxxxxx,8200 header RCV failed (Connect
    ion reset by peer) coFlags=1002a
    These logs are generated only when java program tries to connect else the daemon started without any errors.
    But sometime it connets and gives the desired output.
    Please advice and do let me know in case you need more information.
    Java program on the client machine is as follows..
    * Oracle Support Services
    import java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import java.util.Enumeration;
    import java.util.Properties;
    import java.util.ResourceBundle;
    import oracle.jdbc.pool.OracleConnectionCacheManager;
    import oracle.jdbc.pool.OracleDataSource;
    public class FCFConnectionCacheExample
    private OracleDataSource ods = null;
    private OracleConnectionCacheManager occm = null;
    private Properties cacheProperties = null;
    public FCFConnectionCacheExample() throws SQLException
    // create a cache manager
    occm = OracleConnectionCacheManager.getConnectionCacheManagerInstance();
    Properties props = loadProperties("fcfcache");
    cacheProperties = new java.util.Properties();
    cacheProperties.setProperty("InitialLimit", (String)props.get("InitialLimit"));
    cacheProperties.setProperty("MinLimit", (String)props.get("MinLimit"));
    cacheProperties.setProperty("MaxLimit", (String)props.get("MaxLimit"));
    ods = new OracleDataSource();
    ods.setUser((String)props.get("username"));
    ods.setPassword((String)props.get("password"));
    ods.setConnectionCachingEnabled(true);
    ods.setFastConnectionFailoverEnabled(true);
    ods.setConnectionCacheName("MyCache");
    ods.setONSConfiguration((String)props.get("onsconfig"));
    ods.setURL((String)props.get("url"));
    occm.createCache("MyCache", ods, cacheProperties);
    private Properties loadProperties (String file)
    Properties prop = new Properties();
    ResourceBundle bundle = ResourceBundle.getBundle(file);
    Enumeration enumlist = bundle.getKeys();
    String key = null;
    while (enumlist.hasMoreElements())
    key = (String) enumlist.nextElement();
    prop.put(key, bundle.getObject(key));
    return prop;
    public void run() throws Exception
    Connection conn = null;
    Statement stmt = null;
    ResultSet rset = null;
    String sQuery =
    "select sys_context('userenv', 'instance_name'), " +
    "sys_context('userenv', 'server_host'), " +
    "sys_context('userenv', 'service_name') " +
    "from dual";
    try
    conn = null;
    conn = ods.getConnection();
    stmt = conn.createStatement();
    rset = stmt.executeQuery(sQuery);
    rset.next();
    System.out.println("-----------");
    System.out.println("Instance -> " + rset.getString(1));
    System.out.println("Host -> " + rset.getString(2));
    System.out.println("Service -> " + rset.getString(3));
    System.out.println("NumberOfAvailableConnections: " +
    occm.getNumberOfAvailableConnections("MyCache"));
    System.out.println("NumberOfActiveConnections: " +
    occm.getNumberOfActiveConnections("MyCache"));
    System.out.println("-----------");
    catch (SQLException sqle)
    while (sqle != null)
    System.out.println("SQL State: " + sqle.getSQLState());
    System.out.println("Vendor Specific code: " +
    sqle.getErrorCode());
    Throwable te = sqle.getCause();
    while (te != null) {
    System.out.print("Throwable: " + te);
    te = te.getCause();
    sqle.printStackTrace();
    sqle = sqle.getNextException();
    finally
    try
    rset.close();
    stmt.close();
    conn.close();
    catch (SQLException sqle2)
    System.out.println("Error during close");
    public static void main(String[] args)
    System.out.println(">> PROGRAM using JDBC thin driver no oracle client required");
    System.out.println(">> ojdbc14.jar and ons.jar must be in the CLASSPATH");
    System.out.println(">> Press CNTRL C to exit running program\n");
    try
    FCFConnectionCacheExample test = new FCFConnectionCacheExample();
    while (true)
    test.run();
    Thread.currentThread().sleep(10000);
    catch (InterruptedException e)
    System.out.println("PROGRAM Ended by user");
    catch (Exception ex)
    System.out.println("Error Occurred in MAIN");
    ex.printStackTrace();
    Some of the info i have deleted intensionally as this is confidential
    Property file is as follows
    # properties required for test
    username=test
    password=test
    InitialLimit=10
    MinLimit=10
    MaxLimit=20
    onsconfig=nodes=RAC-node1:port,RAC-node2:port
    url=jdbc:oracle:thin:@(DESCRIPTION= \
    (LOAD_BALANCE=yes) \
    (ADDRESS=(PROTOCOL=TCP)(HOST=RAC-node1)(PORT=1521)) \
    (ADDRESS=(PROTOCOL=TCP)(HOST=RAC-node1)(PORT=1521)) \
    (CONNECT_DATA=(service_name=RAC_SERVICE)))

    Hi;
    Please check below note:
    Link Errors While Installing CRS & RAC Database software [ID 438747.1]
    Codeword File $TIMEBOMB_CWD,/opt/aCC/newconfig/aCC.cwd Missing Or Empty [ID 552893.1]
    Regard
    Helios

  • [ONS down] on Oracle RAC 10G:Solaris 10

    I have used Oracle 10.2.0.3 on Solaris 10 Sparc 64 bits
    I found ons restart and down
    #evmwatch -A
    CRS ora.cgwdb01.ons is transitioning from state ONLINE to state OFFLINE on member cgwdb01
    RAC: ora.cgwdb01.ons: down:
    CRS ora.cgwdb01.ons stopped
    CRS ora.cgwdb01.ons is transitioning from state OFFLINE to state ONLINE on member cgwdb01
    RAC: ora.cgwdb01.ons: up:
    ora.xxxx.ons.log file
    2007-02-09 09:55:57.701: [    RACG][1] [18747][1][ora.cgwdb01.ons]: clsrcexecut: env ORACLE_CONFIG_HOME=/u01/oracle/product/10.2.0/crs
    2007-02-09 09:55:57.701: [    RACG][1] [18747][1][ora.cgwdb01.ons]: clsrcexecut: cmd = /u01/oracle/product/10.2.0/crs/bin/racgeut -e USRORA_DEBUG=0 540 /u01/oracle/product/10.2.0/crs/bin/onsctl ping
    2007-02-09 09:55:57.701: [    RACG][1] [18747][1][ora.cgwdb01.ons]: clsrcexecut: rc = 1, time = 0.556s
    2007-02-09 09:55:57.701: [    RACG][1] [18747][1][ora.cgwdb01.ons]: end for resource = ora.cgwdb01.ons, action = check, status = 1, time = 0.683s
    2007-02-09 09:56:00.451: [    RACG][1] [18789][1][ora.cgwdb01.ons]: onsctl: shutting down ons daemon ...
    Number of onsconfiguration retrieved, numcfg = 2
    onscfg[0]
    {node = cgwdb01, port = 6200}
    Adding remote host cgwdb01:6200
    onscfg[1]
    {node = cgwdb02, port = 6200}
    Adding remote host cgwdb02:6200
    2007-02-09 09:56:02.391: [    RACG][1] [18867][1][ora.cgwdb01.ons]: Number of onsconfiguration retrieved, numcfg = 2
    onscfg[0]
    {node = cgwdb01, port = 6200}
    Adding remote host cgwdb01:6200
    onscfg[1]
    {node = cgwdb02, port = 6200}
    Adding remote host cgwdb02:6200
    Number of onsconfiguration retrieved, numcfg = 2
    onscfg[
    2007-02-09 09:56:02.392: [    RACG][1] [18867][1][ora.cgwdb01.ons]: 0]
    {node = cgwdb01, port = 6200}
    Adding remote host cgwdb01:6200
    onscfg[1]
    {node = cgwdb02, port = 6200}
    Adding remote host cgwdb02:6200
    onsctl: ons started
    # netstat -an | grep 6200
    *.6200 *.* 0 0 49152 0 LISTEN
    192.168.35.11.6200 192.168.35.12.36172 49640 0 49640 0 TIME_WAIT
    192.168.35.11.6200 192.168.35.12.35872 49640 0 49640 0 TIME_WAIT
    192.168.35.11.6200 192.168.35.12.35867 49640 0 49640 0 TIME_WAIT
    192.168.35.11.6200 192.168.35.12.35873 49640 0 49640 0 TIME_WAIT
    192.168.35.11.6200 192.168.35.12.35878 49640 0 49640 0 TIME_WAIT
    192.168.35.11.6200 192.168.35.12.35879 49640 0 49640 0 TIME_WAIT
    192.168.35.11.6200 192.168.35.12.35884 49640 0 49640 0 TIME_WAIT
    192.168.35.11.6200 192.168.35.12.35885 49640 0 49640 0 TIME_WAIT
    192.168.35.11.6200 192.168.35.12.35896 49640 0 49640 0 TIME_WAIT
    192.168.35.11.6200 192.168.35.12.35891 49640 0 49640 0 TIME_WAIT
    192.168.35.11.6200 192.168.35.12.35890 49640 0 49640 0 TIME_WAIT
    192.168.35.11.6200 192.168.35.12.35897 49640 0 49640 0 TIME_WAIT
    192.168.35.11.6200 192.168.35.12.35902 49640 0 49640 0 TIME_WAIT
    192.168.35.11.6200 192.168.35.12.35903 49640 0 49640 0 TIME_WAIT
    192.168.35.11.6200 192.168.35.12.35908 49640 0 49640 0 TIME_WAIT
    192.168.35.11.6200 192.168.35.12.35909 49640 0 49640 0 TIME_WAIT
    192.168.35.11.6200 192.168.35.12.35920 49640 0 49640 0 TIME_WAIT
    192.168.35.11.6200 192.168.35.12.35915 49640 0 49640 0 TIME_WAIT
    192.168.35.11.6200 192.168.35.12.35914 49640 0 49640 0 TIME_WAIT
    192.168.35.11.6200 192.168.35.12.35921 49640 0 49640 0 TIME_WAIT
    192.168.35.11.6200 192.168.35.12.35926 49640 0 49640 0 TIME_WAIT
    192.168.35.11.6200 192.168.35.12.35927 49640 0 49640 0 TIME_WAIT
    192.168.35.11.6200 192.168.35.12.35932 49640 0 49640 0 TIME_WAIT
    192.168.35.11.6200 192.168.35.12.35933 49640 0 49640 0 TIME_WAIT
    192.168.35.11.6200 192.168.35.12.35945 49640 0 49640 0 TIME_WAIT
    192.168.35.11.6200 192.168.35.12.35944 49640 0 49640 0 TIME_WAIT
    192.168.35.11.6200 192.168.35.12.35939 49640 0 49640 0 TIME_WAIT
    192.168.35.11.6200 192.168.35.12.35938 49640 0 49640 0 TIME_WAIT
    I don't why do the ons restart and down?
    Please help me.

    $cat opmn/conf/ons.config
    localport=6101
    remoteport=6200
    loglevel=9
    useocr=on
    2007-02-09 13:43:16.441: [    RACG][1] [15217][1][ora.cgwdb02.ons]: Number of onsconfiguration retrieved, numcfg = 2
    onscfg[0]
    {node = cgwdb01, port = 6200}
    Adding remote host cgwdb01:6200
    onscfg[1]
    {node = cgwdb02, port = 6200}
    Adding remote host cgwdb02:6200
    ons is not running ...
    2007-02-09 13:43:16.454: [    RACG][1] [15217][1][ora.cgwdb02.ons]: clsrcexecut: env ORACLE_CONFIG_HOME=/u01/oracle/product/10.2.0/crs
    2007-02-09 13:43:16.454: [    RACG][1] [15217][1][ora.cgwdb02.ons]: clsrcexecut: cmd = /u01/oracle/product/10.2.0/crs/bin/racgeut -e USRORA_DEBUG=0 540 /u01/oracle/product/10.2.0/crs/bin/onsctl ping
    2007-02-09 13:43:16.454: [    RACG][1] [15217][1][ora.cgwdb02.ons]: clsrcexecut: rc = 1, time = 0.531s
    2007-02-09 13:43:16.454: [    RACG][1] [15217][1][ora.cgwdb02.ons]: end for resource = ora.cgwdb02.ons, action = check, status = 1, time = 0.743s
    2007-02-09 13:43:17.421: [    RACG][1] [15239][1][ora.cgwdb02.ons]: onsctl: shutting down ons daemon ...
    Number of onsconfiguration retrieved, numcfg = 2
    onscfg[0]
    {node = cgwdb01, port = 6200}
    Adding remote host cgwdb01:6200
    onscfg[1]
    {node = cgwdb02, port = 6200}
    Adding remote host cgwdb02:6200

  • Archive log mode in oracle 10g

    Hi,
    I would like to know the archive log mode in oracle 10g and I use this code in SQLPlus
    select log_mode from v$database
    But it displayed: "2" not : NOARCHIVELOG or ARCHIVELOG
    It displayed a number, not a String.
    How could I know this?
    Thanks

    Hi Paul
    Because I am a newbie in DBA Oracle so I got many difficulties.
    You are very kind to help me.
    So I have some more questions:
    1. when I executed this code, it always reported error:
    $ tmp=`${ORACLE_HOME}/bin/sqlplus -s / as sysdba << EOF
    set heading off feedback off;
    exit
    EOF`
    tmp='ERROR:
    ORA-01031: insufficient privileges
    SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]
    where <logon> ::= <username>[<password>][@<connect_identifier>] | /
    SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]
    where <logon> ::= <username>[<password>][@<connect_identifier>] | /
    SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus'
    so when I updated like this:
    tmp=`${ORACLE_HOME}/bin/sqlplus -s sys/syspass@db02 as sysdba <<EOF     
                   set heading off feedback off;
                   exit
                   EOF`
    It run correctly.
    2. With Paul's guide:
    Do not execute Oracle commands from root, execute them as oracle user. This works to me :
    $ tmp=`${ORACLE_HOME}/bin/sqlplus -s / as sysdba << EOF
    set heading off feedback off
    alter database backup controlfile to '${CONTROLFILE_DIR}/<file name>';
    alter database backup controlfile to trace;
    exit
    EOF`
    Of course CONTROLFILE_DIR must be set to a directory with write permission for oracle user.
    For ex: I have an Unix account: unix/unix
    and a Sys Oracle account: oracle/oracle
    I login with Unix acount (unix/unix) and call script file that contains above code.
    tmp=`${ORACLE_HOME}/bin/sqlplus -s oracle/oracle@db02 as sysdba <<EOF     
                   set heading off feedback off
                   alter database backup controlfile to '${CONTROLFILE_DIR}/backup_control.ctl';
                   alter database backup controlfile to trace;
                   exit
                   EOF`
    Unix report as following: Linux error: 13: Permission denied.
    CONTROLFILE_DIR directory is read,write,execute for account unix/unix.
    Of course CONTROLFILE_DIR must be set to a directory with write permission for oracle user. You mean I have to create a Unix user is the same to Oracle user so that Oracle user can have permission to write.
    Please guilde more detail.
    Thanks for your attention.
    Message was edited by:
    user481034

  • How to change redo log size in oracle 10g

    Hi Experts,
    Can anybody confirm how to change redo log size in oracle 10g?
    Amit

    Dear Amit,
    You can enlarge the size of existing Online Redo log files, by adding new groups with different size of files (origlog$/mirrlog$) and then carefully droping the old groups with  their associated inactive files.
    Please refer SAP Note 309526 - Enlarging redo log files to perform the activity.
    Steps to perform:
    STEP-1. Analyze the exisiting situation and prepare an action plan.
    A. You have to ensure that no more than one log switch per minute occurs during peak times.
    It may also be necessary to increase the size of the online redo logs until they are large enough.
    Too many log switches lead to too many checkpoints, which in turn lead to a high writing load in the I/O subsystem.
    Use ST04 -> Additional Functions --> Display GV$-Views
    There you can select
    Gv$LOG_HISTORY --->for determing your existing LOG switching frequency.
    GV$LOG -
    > list the status(INACTIVE/CURRENT/ACTIVE) /size/sequence no. of existing online redolog files
    GV$LOGFILE  --- > list the information of existing online  redolog files with their storage paths
    You can document the existing situation of Online Redo Log Fiile management before going to enlarge Redo Log Files.
    It will be helpful, if something goes wrong while performing activities.
    B. Based on above Situation analysis, Plan your New Redo Log Group and there Members with new optimal size.
    e.g.
    Group No.         Redo Log File Locations  u201C/oracle/<SID>/u201D                  Size
                                 /origlogA                  /mirrlogA            
    15                        log_g15m1.dbf         log_g15m2.dbf               100 MB
    17                        log_g17m1.dbf            log_g17m2.dbf               100 MB
                                /origlogB                    /mirrlogB
    16                       log_g16m1.dbf          log_g16m2.dbf            100 MB
    18                       log_g18m1.dbf            log_g18m2.dbf            100 MB
    Continue to next.....

  • Ons.log getting too many and too large

    Hi,
    Just recently when I tried to connect to our staging database I found that I couldn't connect and it gave me the "disk is full" error. It was quite amazing because the archive logs were not large nor were their any backups on it. And it was a 200g disk partition. After doing some research we found out the the ons logs were the problem. There was probably like 40 or so log files and each was a gig and a half in size. My question is what causes these logs to be created and how can we manage them. Because we have development environment and it was setup exactly the same way as the staging, but we never had a problem like that on it (dev). How can we turn the logging off?
    Thank you.

    Take a look on thi Metalink Notes
    Doc-ID: 284602.1

  • Transactional log grows abnormally to 160GB

    Dear All
    I am new to SQL database . Im my production server transactional log grow upto 160GB and only 7 GB left in the file system
    Like dont want to add the any space in the file system and we have everyday full backup schedule.
    Is there any permanent solution. I want to take the proactive action before my database hang.
    Is also check the note 421644.

    Hi Tarik!
    Probably the fact that your TLOG is so high is because you did not back it up at all in the beginning or you just did not back it up for some time. This does not mean that its allocated space is full, and in fact, if you defined a proper backup policy you can shrink it to a more reasonable value as explained in SAP note 363018 (section E.b ).
    Now, in order to avoid having it grown so much again is to ensure that you perform TLOG backups regularly (the frequency depends on your business needs, you should take your own conclusions depending on your system activity); check the autogrow settings just in case a single grow means a huge increase (imagine you set 120 GB!).
    In case that you have any problems still e.g. because the TLOG grows even though you back it up regularly, you can check if there is a open transaction that prevents it to be backed up, as you already know note 421644.
    Good luck! 
    -Jesú

  • SCCMReporting.log growing under %AppData%\Local\Temp

    Tried to lookup this from the net, but couldn't find anything.. so the problem is that my reporting services account on the reporting services point is having this logfile called SCCMReporting.log under %AppData%\Local\Temp and it consumes 30GB of disk
    space... Any idea where this all is coming from or how to disable the entire log? Everything is working fine on the reports.

    Already tried searching the registry, no go.
    After stopping reporting services service, I could delete the file and obtain the used space but when the service is started again, the logfile starts growing.
    grab a copy of the logfile whilst it's still small, so you can analyse it
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • Archive log mode in oracle 10g on windows environment

    Hi All,
    I have a production database (Oracle 10g 10.2.0.1.0) on windows 2003 server. yesterday i put the database into archivelog mode. when i query for spfile location it is shown in ORACLE_HOME\dbs location.
    but when i created pfile using the spfile it is created at ORACLE_HOME\database location. and there is another spfile also. i set the log_archive_dest at a location other than flash_recovery_area in pfile, but it is showing the DB_RECOVER_AREA.
    today i seen archives are creating in both locations.
    can a database have two spfiles. and working on them ?
    can i remove a spfile in /dbs location.
    pls. give me suggestion to rectify this
    thanks and regards.

    Salman Qureshi wrote:
    Hi,
    On windows platform, spfile and initfiles are by default created under ORACLE_HOME\database directory and this is also the default location, so, your spfile or initfile in this directory are actually in use.
    i set the log_archive_dest at a location other than flash_recovery_area in pfile, but it is showing the DB_RECOVER_AREA. You need to unset the "db_recovery_file_dest" parameter first.
    alter system set db_recovery_file_dest='';Now set your log_archive_dest as follows
    alter system set log_archive_dest_1="location=your_location";Don't user older "log_archive_dest" parameter
    SalmanYour assertion that "You need to unset the "db_recovery_file_dest" parameter first." is patently false.
    DB_RECOVERY_FILE_DEST is used for more than just archivelogs. Setting LOG_ARCHIVE_DEST_n to a location other than USE_DB_RECOVERY_FILE_DEST even while DB_RECOVERY_FILE_DEST is set is perfectly acceptable. In fact it is required if you want to continue to use the FRA for things other than archivelogs. Things, like - oh, say - backups!
    =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2011.02.15 07:42:18 =~=~=~=~=~=~=~=~=~=~=~=
    login as: oracle
    oracle@vmlnx01's password:
    Last login: Tue Feb 15 07:01:51 2011 from 192.168.160.1
    [oracle@vmlnx01 ~]$ sqlplus / as sysdbaFirst, note the date and time of logon, to compare to archivelog timestamps later ...
    SQL*Plus: Release 10.2.0.4.0 - Production on Tue Feb 15 07:42:27 2011
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing optionsNext, note the values for the log_archive_dest_n parameters. Actually, the value for #10 is the default if no log_arch_dest_n parms are set, but I like to set it explicitly to avoid ambiguity.
    SQL> show parameter log_archive_dest_
    NAME     TYPE VALUE
    log_archive_dest_1     string
    log_archive_dest_10     string LOCATION=USE_DB_RECOVERY_FILE_
    DEST
    log_archive_dest_2     string
    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
    NAME     TYPE VALUE
    log_archive_dest_state_1     string enable
    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 enableAnd note the setting for db_recovery_file_dest ...
    SQL> show parameter db_recovery_file_dest
    NAME     TYPE VALUE
    db_recovery_file_dest     string /orafra
    db_recovery_file_dest_size     big integer 4GNow lets check what's in the recovery dest. Notice there is no directory timestamped today (15 Feb), so no archivelogs have been generated for today.
    SQL> !ls -l /orafra/VLNXORA1/archivelog
    total 28
    drwxr-x--- 2 oracle oinstall 4096 Feb 11 17:53 2011_02_08
    drwxr-x--- 2 oracle oinstall 4096 Feb 11 17:53 2011_02_09
    drwxr-x--- 2 oracle oinstall 4096 Feb 11 17:53 2011_02_10
    drwxr-x--- 2 oracle oinstall 4096 Feb 11 17:53 2011_02_11
    drwxr-x--- 2 oracle oinstall 4096 Feb 12 06:00 2011_02_12
    drwxr-x--- 2 oracle oinstall 4096 Feb 13 11:00 2011_02_13
    drwxr-x--- 2 oracle oinstall 4096 Feb 14 22:00 2011_02_14So lets force a log switch and check the results
    SQL> alter system switch logfile;
    System altered.
    SQL> !ls -l /orafra/VLNXORA1/archivelog
    total 32
    drwxr-x--- 2 oracle oinstall 4096 Feb 11 17:53 2011_02_08
    drwxr-x--- 2 oracle oinstall 4096 Feb 11 17:53 2011_02_09
    drwxr-x--- 2 oracle oinstall 4096 Feb 11 17:53 2011_02_10
    drwxr-x--- 2 oracle oinstall 4096 Feb 11 17:53 2011_02_11
    drwxr-x--- 2 oracle oinstall 4096 Feb 12 06:00 2011_02_12
    drwxr-x--- 2 oracle oinstall 4096 Feb 13 11:00 2011_02_13
    drwxr-x--- 2 oracle oinstall 4096 Feb 14 22:00 2011_02_14
    drwxr-x--- 2 oracle oinstall 4096 Feb 15 07:43 2011_02_15
    SQL> !ls -l /orafra/VLNXORA1/archivelog/2011_02_15
    total 1892
    -rw-r----- 1 oracle oinstall 1931776 Feb 15 07:43 o1_mf_1_82_6oo0qomc_.arcSo we see that, as expected, the archivelog was written to the FRA. Note the log sequence # of 82
    Also, let's check my "alternate" location, as yet undefinded to the db ..
    SQL> !ls -l /oraarch/vlnxora1
    total 0No files there.
    Now we will change the archivelog destination. Note that I am NOT touching the FRA definition
    SQL> alter system set log_archive_dest_1='location=/oraarch/vlnxora1' scope=both;
    System altered.
    SQL> alter system set log_archive_dest_10 = '' SCOPE=both;
    System altered.
    SQL> show parameter log_archive_dest_
    NAME     TYPE VALUE
    log_archive_dest_1     string location=/oraarch/vlnxora1
    log_archive_dest_10     string
    log_archive_dest_2     string
    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
    SQL> show parameter db_recovery_file_dest
    NAME     TYPE VALUE
    db_recovery_file_dest     string /orafra
    db_recovery_file_dest_size     big integer 4GSo, above we see that I do not have an archivelog destination set to the FRA, but the FRA is still set. I did not unset it, as you asserted was necessary. I still want my backups to go there.
    Next we'll do another log switch and check the results.
    SQL> alter system switch logfile;
    System altered.First, we'll check the (now unused) FRA destination. Notice that there is still just the one archivelog, sequence 82.
    SQL> !ls -l /orafra/VLNXORA1/archivelog/2011_02_15
    total 1892
    -rw-r----- 1 oracle oinstall 1931776 Feb 15 07:43 o1_mf_1_82_6oo0qomc_.arcNow check the new, non-fra destination. Notice that it now has an archivelog, sequence 83
    SQL> !ls -l /oraarch/vlnxora1
    total 96
    -rw-r----- 1 oracle oinstall 92160 Feb 15 07:45 1_83_732127364.dbf
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@vmlnx01 ~]$ exit
    logout

  • Logging into oracle server 10g

    Hello,
    I wanted to log messages to 10g server. There are system logs, domain logs etc.
    To log the message particulary to a specific log i.e. system log., domain log etc.
    Need help for the same.
    thanks in advance.

    Hi,
    can you please specify what you want to do?

  • Archive log folders in Oracle 10g

    Hi everybody,
    I have installed Oracle 10g on my Windows XP Pro SP3 in archivelog mode.
    The archived log are saved in different folders according to the save date; for example I have a folder called 2008_06_06 which contains all the archives saved on that day and so on
    I'd like to have all archive log saved by Oracle in only one folder, how can I specify this in the installation process or in the parametrs settings?
    Thanks, Valerio

    user640800 wrote:
    Hi everybody,
    I have installed Oracle 10g on my Windows XP Pro SP3 in archivelog mode.
    The archived log are saved in different folders according to the save date; for example I have a folder called 2008_06_06 which contains all the archives saved on that day and so on
    I'd like to have all archive log saved by Oracle in only one folder, Why? What problem does it solve? Oracle knows where those files are, how to back them up, how to restore them from backup, how to delete them when they are no longer needed. Rman will take care of all the housekeeping just fine, thank you very much.
    Yes, oracle provides mechanisms for writing the archivelogs to a different directory structure and with a different file name convention. But again, to what end? What problem does it solve by doing so?
    how can I specify this in the installation process or in the parametrs settings?Go to tahiti.oracle.com. Drill down to your product and version. Locate the Reference Manual. Open it and scan the table of contents. You will find a section on initialization parms. Use your browser's search function to find parms that deal with "archive".
    >
    Thanks, Valerio

Maybe you are looking for