OPMN rotation log issue?

Hi all,
I already configured my opmn.xml , so that my application log could be rotate based on rotation-size and hour property.
The rotation done successfully and created new log file well. BUT MY BIG CONFUSING is why the log still write on the previous log that has been rotated???, and my new log file is ignored by application???
my server is UNIX, is it needs to additional configuration, like set the permission file or other??
Thanks in advance.
Regards,
Kahlil

Sorry to sound little rude but the truth is you have got it all wrong. You are very confused about the terminology and at the same time do not provide clear and complete information. We can continue going back and forth but will not be able to reach to any resolution.
I will try one more but last time:
No, I wanna rotate My_APP_NAME.log that generated on .../opmn/logs after I deployed my apps, so based on this reason on previous post I little bit confuse how to state kind of this log, application log or opmn log.First, can I rephrase it to say that when you deploy an application (named "MY_APP_NAME"), it creates a file named "MY_APP_NAME.log" in $ORACLE_HOME/opmn/logs directory?
If yes, this should be called your "application log file". Just because it gets created in $ORACLE_HOME/opmn/logs directory, it does not become OPMN log file.
If not, again tell us the "exact" name of the log file.
Second, by default, no application log files get created in $ORACLE_HOME/opmn/logs directory. If your application is doing it, there has to be something specific to your application.
I already use the second config :<log path="$ORACLE_HOME/opmn/logs/My_APP_NAME.log" comp="internal;ons;pm" rotation-size="1500000" rotation-hour="15"/>
What you have done above is changed the default opmn log file name from being "opmn.log" to "My_APP_NAME.log". By using this name, it will not automatically become "your application's log file". It will still remain OPMN's log file. No application log messages will be written to this file. Only OPMN log messages will be written to this file, irrespective of the file name.
and unfortunately failed to re-write on new file after rotating...Are you saying your application log messages are written to this file until it rotates? And once it gets rotated, your application log messages stop getting written to this file? Again, by just changing the name from "opmn.log" to "My_APP_NAME.log" will not make it "your application log". It will still be OPMN's log file and only OPMN log messages will be written to this file.
Again, I would love to help but with little, incomplete and wrong information, I can't. I would recommend you to call Oracle Support and have it discussed with them on the phone.
Thanks
Shail

Similar Messages

  • What is the current schedule for 6.1.2 and will it fix the Exchange transaction log issue in 6.1?

    Just spent the entire night with virtually no sleep with our firm's group of IT engineers trying to keep our Exchange system online due to massive transaction log growth. Confirmed the issue related to 6.1 calendar bug with Activesync. The workarounds are not practical for large groups of users who depend on their mobile devices for work. Our users have no way of knowing that they are causing an issue so the Apple guidance isnt terribly useful to communicate to 1000 users. When can we expect a resolution? The problem is only going to get worse as more and more users hit the bug. Does anyone know if the issue will resolve as soon as someone installs the 6.1.2 update, assuming that has the fix. Im not trying to bash anyone but this is a very serious problem in enterprise deployments.

    The update was released some time today. 6.1.2 appears to specifically fix the Exchange issue causing excess comms and logging issues. However, although the update is available i do not see the notification badge on the Settings icon. Is this controlled by Apple or is there a user setting i am missing somewhere? I would prefer that all users see the badge to expedite user action.

  • Config certificate and log issues

    I config certificate and use it to connect ipsec vpn , I just config    
    jinan-neusoft(config)#ip domain-name neusoft.com
    jinan-neusoft(config)#crypto key generate rsa general-keys
    The name for the keys will be: jinan-neusoft.neusoft.com
    Choose the size of the key modulus in the range of 360 to 4096 for your
      General Purpose Keys. Choosing a key modulus greater than 512 may take
      a few minutes.
    How many bits in the modulus [512]:
    % Generating 512 bit RSA keys, keys will be non-exportable...
    [OK] (elapsed time was 0 seconds)
    jinan-neusoft(config)#
    Nov 16 01:05:44.435:  RSA key size needs to be atleast 768 bits for ssh version 2
    jinan-neusoft(config)#
    Nov 16 01:05:44.435: %SSH-5-ENABLED: SSH 1.5 has been enabled
    jinan-neusoft(config)#crypto pki trustpoint CA1
    jinan-neusoft(ca-trustpoint)# enrollment url http://59.44.43.217:80
    jinan-neusoft(ca-trustpoint)# revocation-check crl
    jinan-neusoft(ca-trustpoint)# rsakeypair DMVPN-SY-KEY
    jinan-neusoft(ca-trustpoint)# auto-enrol
    jinan-neusoft(config)#crypto pki authenticate CA1
    Certificate has the following attributes:
           Fingerprint MD5: D5F9D56B 4D9A4260 43F21D39 811D7AD5
          Fingerprint SHA1: 1E49B228 DD57F4DB 43DD2C2F 03870C18 840DA12A
    % Do you accept this certificate? [yes/no]: y
    Trustpoint CA certificate accepted.
    then I have log issues like below ,even I config auto-enroll , I don t get  certificate pending information  from my certificate server ,
    my device is C3925 and ios is c3900-universalk9-mz.SPA.151-4.M4.bin ,how to deal with it ,top players , THX~~~~
    Nov 16 01:07:54.871: %PKI-6-CERTRENEWAUTO: Renewing the router certificate for trustpoint CA1
    Nov 16 01:07:54.951: %CRYPTO-6-AUTOGEN: Generated new 512 bit key pair
    Nov 16 01:07:55.115: CRYPTO_PKI:  Certificate Request Fingerprint MD5: 939AF8C1 854DDA90 8FE03058 5635468F
    Nov 16 01:07:55.115: CRYPTO_PKI:  Certificate Request Fingerprint SHA1: 50F869D2 C0814317 7EB2ECC9 90461F3A 353E7089
    Nov 16 01:07:55.119: %SYS-3-INVMEMINT: Invalid memory action (malloc) at interrupt level
    -Traceback= 5564384z 68B3034z 945A8D0z 6D05DF0z 6
    jinan-neusoft(config)#D05F70z 6D06B50z 6D07268z 6D43018z 6D25044z 6D1988Cz 6D4CCE0z 91F0154z 91F0CC4z 91F0DA4z 4ACB9F4z 4127784z
    Nov 16 01:07:55.119: %SYS-2-MALLOCFAIL: Memory allocation of 40 bytes failed from 0x6D05DEC, alignment 0
    Pool: Processor  Free: 731143916  Cause: Interrupt level allocation
    Alternate Pool: None  Free: 0  Cause: Interrupt level allocation
    -Process= "<interrupt level>", ipl= 3
    -Traceback= 5564384z 6892328z 68B3064z 945A8D0z 6D05DF0z 6D05F70z 6D06B50z 6D07268z 6D43018z 6D25044z 6D1988Cz 6D4CCE0z 91F0154z 91F0CC4z 91F0DA4z 4ACB9F4z
    Nov 16 01:07:55.119: %SYS-3-INVMEMINT: Invalid memory action (malloc) at interrupt level
    -Traceback= 5564384z 68B3034z 945A8D0z 6D05DF0z 6D05F70z 6D06B50z 6D07268z 6D4308Cz 6D25044z 6D1988Cz 6D4CCE0z 91F0154z 91F0CC4z 91F0DA4z 4ACB9F4z 4127784z
    jinan-neusoft(config)#
    Nov 16 01:08:09.719: %PKI-6-CERTRENEWAUTO: Renewing the router certificate for trustpoint CA1
    Nov 16 01:08:09.879: CRYPTO_PKI:  Certificate Request Fingerprint MD5: 939AF8C1 854DDA90 8FE03058 5635468F
    Nov 16 01:08:09.879: CRYPTO_PKI:  Certificate Request Fingerprint SHA1: 50F869D2 C0814317 7EB2ECC9 90461F3A 353E7089
    jinan-neusoft(config)#
    Nov 16 01:08:09.883: %SYS-3-INVMEMINT: Invalid memory action (malloc) at interrupt level
    -Traceback= 5564384z 68B3034z 945A8D0z 6D05DF0z 6D05F70z 6D06B50z 6D07268z 6D43018z 6D25044z 6D1988Cz 6D4CCE0z 91F0154z 91F0CC4z 91F0DA4z 4ACB9F4z 4127784z
    Nov 16 01:08:09.883: %SYS-3-INVMEMINT: Invalid memory action (malloc) at interrupt level
    -Traceback= 5564384z 68B3034z 945A8D0z 6D05DF0z 6D05F70z 6D06B50z 6D07268z 6D4308Cz 6D25044z 6D1988Cz 6D4CCE0z 91F0154z 91F0CC4z 91F0DA4z 4ACB9F4z 4127784z
    jinan-neusoft(config)# Nov 16 01:07:54.871: %PKI-6-CERTRENEWAUTO: Renewing the router certificate for trustpoint CA1
    Nov 16 01:07:54.951: %CRYPTO-6-AUTOGEN: Generated new 512 bit key pair
    Nov 16 01:07:55.115: CRYPTO_PKI:  Certificate Request Fingerprint MD5: 939AF8C1 854DDA90 8FE03058 5635468F
    Nov 16 01:07:55.115: CRYPTO_PKI:  Certificate Request Fingerprint SHA1: 50F869D2 C0814317 7EB2ECC9 90461F3A 353E7089
    Nov 16 01:07:55.119: %SYS-3-INVMEMINT: Invalid memory action (malloc) at interrupt level
    -Traceback= 5564384z 68B3034z 945A8D0z 6D05DF0z 6
    jinan-neusoft(config)#D05F70z 6D06B50z 6D07268z 6D43018z 6D25044z 6D1988Cz 6D4CCE0z 91F0154z 91F0CC4z 91F0DA4z 4ACB9F4z 4127784z
    Nov 16 01:07:55.119: %SYS-2-MALLOCFAIL: Memory allocation of 40 bytes failed from 0x6D05DEC, alignment 0
    Pool: Processor  Free: 731143916  Cause: Interrupt level allocation
    Alternate Pool: None  Free: 0  Cause: Interrupt level allocation
    -Process= "<interrupt level>", ipl= 3
    -Traceback= 5564384z 6892328z 68B3064z 945A8D0z 6D05DF0z 6D05F70z 6D06B50z 6D07268z 6D43018z 6D25044z 6D1988Cz 6D4CCE0z 91F0154z 91F0CC4z 91F0DA4z 4ACB9F4z
    Nov 16 01:07:55.119: %SYS-3-INVMEMINT: Invalid memory action (malloc) at interrupt level
    -Traceback= 5564384z 68B3034z 945A8D0z 6D05DF0z 6D05F70z 6D06B50z 6D07268z 6D4308Cz 6D25044z 6D1988Cz 6D4CCE0z 91F0154z 91F0CC4z 91F0DA4z 4ACB9F4z 4127784z
    jinan-neusoft(config)#
    Nov 16 01:08:09.719: %PKI-6-CERTRENEWAUTO: Renewing the router certificate for trustpoint CA1
    Nov 16 01:08:09.879: CRYPTO_PKI:  Certificate Request Fingerprint MD5: 939AF8C1 854DDA90 8FE03058 5635468F
    Nov 16 01:08:09.879: CRYPTO_PKI:  Certificate Request Fingerprint SHA1: 50F869D2 C0814317 7EB2ECC9 90461F3A 353E7089
    jinan-neusoft(config)#
    Nov 16 01:08:09.883: %SYS-3-INVMEMINT: Invalid memory action (malloc) at interrupt level
    -Traceback= 5564384z 68B3034z 945A8D0z 6D05DF0z 6D05F70z 6D06B50z 6D07268z 6D43018z 6D25044z 6D1988Cz 6D4CCE0z 91F0154z 91F0CC4z 91F0DA4z 4ACB9F4z 4127784z
    Nov 16 01:08:09.883: %SYS-3-INVMEMINT: Invalid memory action (malloc) at interrupt level
    -Traceback= 5564384z 68B3034z 945A8D0z 6D05DF0z 6D05F70z 6D06B50z 6D07268z 6D4308Cz 6D25044z 6D1988Cz 6D4CCE0z 91F0154z 91F0CC4z 91F0DA4z 4ACB9F4z 4127784z
    jinan-neusoft(config)#

    I do not have the answer but have exactly the same issue, looks as if it is a bug of some kind :
    Cisco CISCO3945-CHASSIS (revision 1.0) with C3900-SPE150/K9 with 980992K/67584K bytes of memory.
    Processor board ID FCZ163371P3
    6 FastEthernet interfaces
    3 Gigabit Ethernet interfaces
    1 terminal line
    1 Virtual Private Network (VPN) Module
    DRAM configuration is 72 bits wide with parity enabled.
    255K bytes of non-volatile configuration memory.
    250880K bytes of ATA System CompactFlash 0 (Read/Write)
    System image file is "flash0:c3900-universalk9-mz.SPA.151-4.M4.bin"
    Nov 16 07:37:16.611: CRYPTO_PKI: Signature Certificate Request Fingerprint MD5: 358FF778 7C2E66AE 895BF088 BF022442
    .Nov 16 07:37:16.615: CRYPTO_PKI: Signature Certificate Request Fingerprint SHA1: 5F7A4300 20B62132 83D08C6E 2D315DF4 51EFE94D
    .Nov 16 07:37:16.623: %SYS-3-INVMEMINT: Invalid memory action (malloc) at interrupt level
    -Traceback= 5564384z 68B3034z 945A8D0z 6D05DF0z 6D05F70z 6D06B50z 6D07268z 6D4308Cz 6D25044z 6D1988Cz 6D4CCE0z 91F0154z 91F0CC4z 91F0DA4z 4ACB9F4z 412
    7784z
    .Nov 16 07:37:16.623: %SYS-2-MALLOCFAIL: Memory allocation of 72 bytes failed from 0x6D05DEC, alignment 0
    Pool: Processor  Free: 704933204  Cause: Interrupt level allocation
    Alternate Pool: None  Free: 0  Cause: Interrupt level allocation
    -Process= "", ipl= 3
    -Traceback= 5564384z 6892328z 68B3064z 945A8D0z 6D05DF0z 6D05F70z 6D06B50z 6D07268z 6D4308Cz 6D25044z 6D1988Cz 6D4CCE0z 91F0154z 91F0CC4z 91F0DA4z 4AC
    B9F4z Nov 16 07:37:16.611: CRYPTO_PKI: Signature Certificate Request Fingerprint MD5: 358FF778 7C2E66AE 895BF088 BF022442
    .Nov 16 07:37:16.615: CRYPTO_PKI: Signature Certificate Request Fingerprint SHA1: 5F7A4300 20B62132 83D08C6E 2D315DF4 51EFE94D
    .Nov 16 07:37:16.623: %SYS-3-INVMEMINT: Invalid memory action (malloc) at interrupt level
    -Traceback= 5564384z 68B3034z 945A8D0z 6D05DF0z 6D05F70z 6D06B50z 6D07268z 6D4308Cz 6D25044z 6D1988Cz 6D4CCE0z 91F0154z 91F0CC4z 91F0DA4z 4ACB9F4z 412
    7784z
    .Nov 16 07:37:16.623: %SYS-2-MALLOCFAIL: Memory allocation of 72 bytes failed from 0x6D05DEC, alignment 0
    Pool: Processor  Free: 704933204  Cause: Interrupt level allocation
    Alternate Pool: None  Free: 0  Cause: Interrupt level allocation
    -Process= "", ipl= 3
    -Traceback= 5564384z 6892328z 68B3064z 945A8D0z 6D05DF0z 6D05F70z 6D06B50z 6D07268z 6D4308Cz 6D25044z 6D1988Cz 6D4CCE0z 91F0154z 91F0CC4z 91F0DA4z 4AC
    B9F4z

  • Java.io.IOException: Failed to rename log file on attempt to rotate logs

    Hello.
    I'm currently using Weblogic 5.1 SP6 on WinNT Server 4.0 SP6.
    I set the weblogic.properties file like this so that the "access.log" will
    be rotated every day at midnight.
    -- weblogic.properties --
    weblogic.httpd.enableLogFile=true
    weblogic.httpd.logFileName=D:/WLSlog/access.log
    weblogic.httpd.logFileFlushSecs=60
    weblogic.httpd.logRotationType=date
    weblogic.httpd.logRotationPeriodMins=1440
    weblogic.httpd.logRotationBeginTime=11-01-2000-00:00:00
    -- weblogic.properties <end>--
    The rotation has been working well, but one day when I checked my
    weblogic.log, I was getting some errors.
    I found out that my "access.log" wasn't being rotated (nor being written,
    flushed) after this error came out.
    After rebooting WebLogic, this problem went away.
    Has anyone clues about why WebLogic failed to "rename log file?"
    -- weblogic.log --
    ? 2 04 00:00:00 JST 2001:<E> <HTTP> Exception flushing HTTP log file
    java.io.IOException: Failed to rename log file on attempt to rotate logs
    at weblogic.t3.srvr.httplog.LogManagerHttp.rotateLog(LogManagerHttp.java,
    Compiled Code)
    at java.lang.Exception.<init>(Exception.java, Compiled Code)
    at java.io.IOException.<init>(IOException.java, Compiled Code)
    at weblogic.t3.srvr.httplog.LogManagerHttp.rotateLog(LogManagerHttp.java,
    Compiled Code)
    at
    weblogic.t3.srvr.httplog.LogManagerHttp.access$2(LogManagerHttp.java:271)
    at
    weblogic.t3.srvr.httplog.LogManagerHttp$RotateLogTrigger.trigger(LogManagerH
    ttp.java:539)
    at
    weblogic.time.common.internal.ScheduledTrigger.executeLocally(ScheduledTrigg
    er.java, Compiled Code)
    at
    weblogic.time.common.internal.ScheduledTrigger.execute(ScheduledTrigger.java
    , Compiled Code)
    at weblogic.time.server.ScheduledTrigger.execute(ScheduledTrigger.java,
    Compiled Code)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
    ? 2 04 00:00:25 JST 2001:<E> <HTTP> Exception flushing HTTP log file
    java.io.IOException: Bad file descriptor
    at java.io.FileOutputStream.writeBytes(Native Method)
    at java.io.FileOutputStream.write(FileOutputStream.java, Compiled Code)
    at
    weblogic.utils.io.DoubleBufferedOutputStream.flushBuffer(DoubleBufferedOutpu
    tStream.java, Compiled Code)
    at
    weblogic.utils.io.DoubleBufferedOutputStream.flush(DoubleBufferedOutputStrea
    m.java, Compiled Code)
    at
    weblogic.t3.srvr.httplog.LogManagerHttp$FlushLogStreamTrigger.trigger(LogMan
    agerHttp.java, Compiled Code)
    at
    weblogic.time.common.internal.ScheduledTrigger.executeLocally(ScheduledTrigg
    er.java, Compiled Code)
    at
    weblogic.time.common.internal.ScheduledTrigger.execute(ScheduledTrigger.java
    , Compiled Code)
    at weblogic.time.server.ScheduledTrigger.execute(ScheduledTrigger.java,
    Compiled Code)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
    -- weblogic.log <end> --
    note:
    ? 2 04 00:00:25 JST 2001:<E> <HTTP> Exception flushing HTTP log file
    java.io.IOException: Bad file descriptor
    keeps coming out every minute after on.
    I suppose this is because I have set the HTTP log to be flushed every one
    minute.
    Thanks in advance.
    Ryotaro

    I'm also getting this error on Weblogic 6.1.1.
    It only occurs if you set the format to "extended".
    Is there any fix or workaround for this?

  • 903 management of app / out / err logs to rotating log files??

    I'm deploying BC4J apps under OC4J.
    One of my complaints about the production environment is that the noisy logging from
    BC4J is directed to a static file name by the shell startup script. This not enterprise nor
    manageable in a 24x7 environment since the log file grows boundlessly.
    It was mentioned that 903 OC4J would fix log mangement. I've not seen anymention in doc's.
    Might someone offer how -out and -err logs can be better managed in 903?
    Thanks curt

    To be 24/7 an appserver needs to at least support managing the System.out traffic
    that apps, frameworks (BC4J) spew.
    It was suggested that 903 OC4J will support rotating log files?
    Is this true and any help or doc pointers would be great.
    BTW, I'm moving to 903 enterprise with OEM.
    Thanks, curt Curt - there is no way in 903 to rotate log files for a specific OC4J instance.
    There is a feature request in place for this functionality but I am not sure which version it will be delivered with.
    -steve-

  • Reverse call log issue

    i keep getting an error when i try to do a reverse call lookup. it says try setting phone list view to "call log" but i don't have that option. It says if this option is unavailable this is a known but and we are working with RIM to correct the issue. If you require assitance accessing the phone list view settings or would like to be notified when a fix is available please use the Send Us Feedback option and indicate Reverse Call Log issue in message. But where is this send us feedback? I'm so confused. Anyone have this problem or know where I can get some help for it? Thanks again

    How did you reload the firmware? Did you backup the data and perform a reset using *#7370# before reloading? Try and reply.
    Nokia C7

  • Is it possible to rotate log of iplanet server once a month ?

    Instead of changing log file each day or each week, I would like to know if is possible to rotate log of iplanet server once a month.

    Yes, you may use the internal daemon log rotation (available in iPlanet Web Server 4.x and 6).
    Using this new feature introduced in iWS 4, you may set up the rotation start time and the interval for the next rotation to happen (in minutes).
    For every hour the interval is 60, every day 1440.
    To config internal daemon to perform log rotation every 30 days the interval would be 43200 minutes.

  • Rotating logs and rdate don't work together

    Hi people,
    Recently I've noticed a problem with rotating logs and rdate. Since the server runs as a cronjob a 'rdate' command, web server logs are not rotated correctly.
    Archived log files only keep messages from the last hour (23-24), when they should keep the messages of the whole day.
    Servers without the 'rdate' cronjob keep archived messages properly.
    The magnus.conf line that configures the archives logs is:
    Init fn="flex-rotate-init" rotate-start="0000" rotate-interval="1440"
    and the crontab that runs rdate:
    10 20 * * * rdate mytimeserver
    What is the problem with archiving logs and running rdate??
    Thanks in advance,
    Juan Fuentes.

    This is a major screw-up on Apple’s part. Interesting that I just realized courtesy of MacIntouch that TM was NOT backing up my FileVaulted home folder. I use my MacBook Pro probably like most people. When I’m at home I’m behind a firewall. I leave the computer connected to my home network and I leave it open and on. I don’t log out ever! For security I do use the FileVault feature and I don’t use distant connections to my home network.
    There should be an option for TM to back up the open file vault directory just as if, frankly, someone would have access to it if they picked up my open computer and walked off with it. The owner has to have physical control of the computer. FileVault works if the computer is asleep and the wake log-on is enabled or if the computer is restarted. However, if my filevault is open and being used by me it should be available for a TM back-up.
    Interesting that Retrospect, with all its faults and promises of vaporware to come, WILL back up my MacBook FileVault.
    Apple should provide some type of option for this situation. On the fly decoding of the open FileVault directory so as to avoid a repeated total backup of the whole thing is the answer. It is the owner’s responsibility to keep the TM volume secure.

  • Has 903 oc4j fixed / added rotating log files; -out and -err ?

    To be 24/7 an appserver needs to at least support managing the System.out traffic
    that apps, frameworks (BC4J) spew.
    It was suggested that 903 OC4J will support rotating log files?
    Is this true and any help or doc pointers would be great.
    BTW, I'm moving to 903 enterprise with OEM.
    Thanks, curt

    To be 24/7 an appserver needs to at least support managing the System.out traffic
    that apps, frameworks (BC4J) spew.
    It was suggested that 903 OC4J will support rotating log files?
    Is this true and any help or doc pointers would be great.
    BTW, I'm moving to 903 enterprise with OEM.
    Thanks, curt Curt - there is no way in 903 to rotate log files for a specific OC4J instance.
    There is a feature request in place for this functionality but I am not sure which version it will be delivered with.
    -steve-

  • Rotating logs in OC4J SO?

    Is there a way to configure OC4J stand alone version so that I can have access logs automatically rotated when the logs reach a certain size or when a period of time has elapsed? Ideally I would like to be able to pipe the web site access logs (and others) to a tool such as cronolog that handles log file rotation. I've tried to modify the http-web-site.xml file entry for the path to the access log so that it pipes to cronolog, but oc4j barfs. Anybody out there have any ideas?

    You can rotate logs in OC4J 9.0.4 using ODL. Please look at the OC4J Standalone userguide at http://download-west.oracle.com/docs/cd/B12314_01/web.904/b10323/advanced.htm#1015201
    regards
    Debu

  • How to set the FileHandler to daily rotate logs?

    Is it possible to make the JDK Logging API rotate logs daily, instead of rotating when it reaches a size limit? And append the date to the log file?

    The really easy way is to make a new FileHandler for
    every log call. However, this is slow(er), so there
    are better ways for performance. For example, keep
    track of the date or filename currently in use. For
    each log call (or every 10, or every call that
    happens at least one hour after the last one, or
    whatever) make a new date and check it against the
    old one. If it's different, remove the handler and
    attach a new one. Voila, now it logs to a different
    file.With Log4J instead of java's built-in logging, this can be done way easier than that, by simply configuring Log4J to use its built-in DailyRollingFileAppender (or whatever it's called) which automatically creates a new log file each day. I don't know why java's built-in logging would be so much more difficult - one would think it could map better like Log4J does it. Are you sure there's no built-in "appender" (whatever java logging calls an appender) to do this? Doesn't java logging use some kind of config file - does everything in java logging have to be done programatically rather than thru config files?

  • RMAN BACKUPS AND ARCHIVED LOG ISSUES

    제품 : RMAN
    작성날짜 : 2004-02-17
    RMAN BACKUPS AND ARCHIVED LOG ISSUES
    =====================================
    Scenario #1:
    1)RMAN이 모든 archived log들을 삭제할 때 실패하는 경우.
    database는 두 개의 archive destination에 archive file을 생성한다.
    다음과 같은 스크립트를 수행하여 백업후에 archived redo logfile을 삭제한다.
    run {
    allocate channel c1 type 'sbt_tape';
    backup database;
    backup archivelog all delete input;
    Archived redo logfile 삭제 유무를 확인하기 위해 CROSSCHECK 수행시 다음과
    같은 메시지가 발생함.
    RMAN> change archivelog all crosscheck;
    RMAN-03022: compiling command: change
    RMAN-06158: validation succeeded for archived log
    RMAN-08514: archivelog filename=
    /oracle/arch/dest2/arcr_1_964.arc recid=19 stamp=368726072
    2) 원인분석
    이 문제는 에러가 아니다. RMAN은 여러 개의 arhive directory중 하나의
    directoy안에 있는 archived file들만 삭제한다. 그래서 나머지 directory안의
    archived log file들은 삭제되지 않고 남게 되는 것이다.
    3) 해결책
    RMAN이 강제로 모든 directory안의 archived log file들을 삭제하게 하기 위해서는
    여러 개의 채널을 할당하여 각 채널이 각 archive destination안의 archived file을
    백업하고 삭제하도록 해야 한다.
    이것은 아래와 같이 구현될 수 있다.
    run {
    allocate channel t1 type 'sbt_tape';
    allocate channel t2 type 'sbt_tape';
    backup
    archivelog like '/oracle/arch/dest1/%' channel t1 delete input
    archivelog like '/oracle/arch/dest2/%' channel t2 delete input;
    Scenario #2:
    1)RMAN이 archived log를 찾을 수 없어 백업이 실패하는 경우.
    이 시나리오에서 database를 incremental backup한다고 가정한다.
    이 경우 RMAN은 recover시 archived redo log대신에 incremental backup을 사용할
    수 있기 때문에 백업 후 모든 archived redo log를 삭제하기 위해 OS utility를 사용한다.
    그러나 다음 번 backup시 다음과 같은 Error를 만나게 된다.
    RMAN-6089: archive log NAME not found or out of sync with catalog
    2) 원인분석
    이 문제는 OS 명령을 사용하여 archived log를 삭제하였을 경우 발생한다. 이때 RMAN은
    archived log가 삭제되었다는 것을 알지 못한다. RMAN-6089는 RMAN이 OS 명령에 의해
    삭제된 archived log가 여전히 존재하다고 생각하고 백업하려고 시도하였을 때 발생하게 된다.
    3) 해결책
    가장 쉬운 해결책은 archived log를 백업할 때 DELETE INPUT option을 사용하는 것이다.
    예를 들면
    run {
    allocate channel c1 type 'sbt_tape';
    backup archivelog all delete input;
    두 번째로 가장 쉬운 해결책은 OS utility를 사용하여 archived log를 삭제한 후에
    다음과 같은 명령어를 RMAN prompt상에서 수행하는 것이다.
    RMAN>allocate channel for maintenance type disk;
    RMAN>change archivelog all crosscheck;
    Oracle 8.0:
         RMAN> change archivelog '/disk/path/archivelog_name' validate;
    Oracle 8i:
    RMAN> change archivelog all crosscheck ;
    Oracle 9i:
    RMAN> crosscheck archivelog all ;
    catalog의 COMPATIBLE 파라미터가 8.1.5이하로 설정되어 있으면 RMAN은 찾을 수 없는
    모든 archived log의 status를 "DELETED" 로 셋팅한다. 만약에 COMPATIBLE이 8.1.6이상으로
    설정되어 있으면 RMAN은 Repository에서 record를 삭제한다.

    Very strange, I issue following command in RMAN on both primary and standby machine, but it they don't delete the 1_55_758646076.dbf, I find in v$archived_log, this "/home/oracle/app/oracle/dataguard/1_55_758646076.dbf" had already been applied.
    RMAN> connect target /
    RMAN> CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON ALL STANDBY;
    old RMAN configuration parameters:
    CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON ALL STANDBY;
    new RMAN configuration parameters:
    CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON ALL STANDBY;
    new RMAN configuration parameters are successfully stored
    RMAN>
    ----------------------------------------------------------------------------------

  • Rotate Logs

    Hi,
    We know that opmn.log can be rotated on time basis or size basis in <log-path> tag.
    How can we rotate the logs for OC4J instances?
    Oracle Application Server 10.1.3.1.0
    Windows prof 2000
    Thanks in advance :)
    (Adding version info)
    Message was edited by:
    Aalap Sharma

    Thanks for the Doc Id, it surely is informative.
    Apart from this, there are other logs which are recorded in
    $ORACLE_HOME/opmn/logs
    We also want to rotate these logs, any idea where can we set this parameter ?
    Example:
    The log file for Default Home OC4J component named "default_group~home~default_group~1.log" has grown to 55 MB.
    Thanks in advance :)

  • Call log issue after upgrading to OS 10.3.1.158​1 from 10.2

    Dear all.
    I have update my BlackBerry 10 os to 10.3.1.1581 and to my surprise i find that the call log os restricted to about 150-200 call whereas it was almost unlimited in the previous 10.2 os .
    BlackBerry should issue a fix asap since this is such a basic features and necessity.
    I find myself in a very bad situation after upgrading.

    I have two call lors. One in the phone app, and one in the hub.
    I feel like the one in the phone app is quite short, but the one in the hub is unlimited.
    Do you confirm on your side?
    That being said, tracking more than 150 previous calls regularly is an extreme usage of the phone, I don't think the OS is made for that. I suggest you use a third party app that will be suited at tracking 200 phone calls a day.
    There are several that are free currently in BlackBerry World (the Free March section).
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • BULK INSERT into View w/ Instead Of Trigger - DML ERROR LOGGING Issue

    Oracle 10.2.0.4
    I cannot figure out why I cannot get bulk insert errors to aggregate and allow the insert to continue when bulk inserting into a view with an Instead of Trigger. Whether I use LOG ERRORS clause or I use SQL%BULK_EXCEPTIONS, the insert works until it hits the first exception and then exits.
    Here's what I'm doing:
    1. I'm bulk inserting into a view with an Instead of Trigger on it that performs the actual updating on the underlying table. This table is a child table with a foreign key constraint to a reference table containing the primary key. In the Instead of Trigger, it attempts to insert a record into the child table and I get the following exception: +5:37:55 ORA-02291: integrity constraint (FK_TEST_TABLE) violated - parent key not found+, which is expected, but the error should be logged in the table and the rest of the inserts should complete. Instead the bulk insert exits.
    2. If I change this to bulk insert into the underlying table directly, it works, all errors get put into the error logging table and the insert completes all non-exception records.
    Here's the "test" procedure I created to test my scenario:
    View: V_TEST_TABLE
    Underlying Table: TEST_TABLE
    PROCEDURE BulkTest
    IS
    TYPE remDataType IS TABLE of v_TEST_TABLE%ROWTYPE INDEX BY BINARY_INTEGER;
    varRemData remDataType;
    begin
    select /*+ DRIVING_SITE(r)*/ *
    BULK COLLECT INTO varRemData
    from TEST_TABLE@REMOTE_LINK
    where effectiveday < to_date('06/16/2012 04','mm/dd/yyyy hh24')
    and terminationday > to_date('06/14/2012 04','mm/dd/yyyy hh24');
    BEGIN
    FORALL idx IN varRemData.FIRST .. varRemData.LAST
    INSERT INTO v_TEST_TABLE VALUES varRemData(idx) LOG ERRORS INTO dbcompare.ERR$_TEST_TABLE ('INSERT') REJECT LIMIT UNLIMITED;
    EXCEPTION WHEN others THEN
    DBMS_OUTPUT.put_line('ErrorCode: '||SQLCODE);
    END;
    COMMIT;
    end;
    I've reviewed Oracle's documentation on both DML logging tools and neither has any restrictions (at least that I can see) that would prevent this from working correctly.
    Any help would be appreciated....
    Thanks,
    Steve

    Thanks, obviously this is my first post, I'm desperate to figure out why this won't work....
    This code I sent is only a test proc to try and troubleshoot the issue, the others with the debug statement is only to capture the insert failing and not aggregating the errors, that won't be in the real proc.....
    Thanks,
    Steve

Maybe you are looking for

  • Out of memory error using Zacpublisher

    Hi, I recently encountered an 'Out of memory exception' whenever I try to publish a package to the server. How can I solve this problem? Thank you. Best regards, Andy Kuek

  • How to determine which photos in library are missing their master images

    I recently consolidated referenced images into my library. It said some of those images were missing the masters. How do I figure out which ones are missing the master images?

  • Acer AL2216W Problems Blackscreen

    Hi Mac Profesionals. I run the following machine.     Modellname:          Mac Pro   Modell-Identifizierung:          MacPro1,1   Prozessortyp:          Dual-Core Intel Xeon   Prozessorgeschwindigkeit:          2,66 GHz   Anzahl der Prozessoren:     

  • Problem with gateway voice in router 1841 or 1760

    Reading Cisco documentation , I see that router 1841 and 1841 does not support as Voice Gateway. My idea is to connect to him a Primary ISDN (30 channel B) so that it works like a PBX and users can make calls towards PSTN. Is possible to do this with

  • What does TLS Endpoint Exception 6, mean?

    What do I need to do on a Mac to avoid this?