Question on logging to file

I am doing java logging to file using the logger class. In order to write logs to the file, a file handler was created using the 'append' mode.
However, when the
log entries are written to the log file, they are all entered on a single line.
How do I make each new log entry start on a new line?
boolean append = true;
FileHandler filehandler = new FileHandler(errorFile,append);
Logger logger = Logger.getLogger("Logging");
logger.addHandler(filehandler);
logger.log(Level.INFO,"Unable to zip file:");

1)Do you view the file in Microsoft Windows?
If you are using MS Windows, please open the log file with wordpad.
If you still find all your result are on a single line in wordpad.
2)You can try this
String nl = System.getProperty ( "line.separator" );
logger.log(Level.INFO,"Unable to zip file:"+nl);

Similar Messages

  • Use environment variables in logging.properties file

    is there a way to use environment variables in logging.properties file?
    like this -
    java.util.logging.FileHandler.pattern = {$MY_BASE_LOG_FOLDER}/myapp1/log/123%g.logdo I have to write a custom logging.properties loader? if yes, then are there any examples on this?

    I'm sorry, but don't you think your answer is useless?
    Maybe I haven't made my question clear enough. I need to know if java.util.logging recognizes environment variables in logging.properties files.
    If it does not, then there should be a well-known class to use instead of standard loader for logging.properties (java api mention one briefly).

  • ADF Logger - logging.xml file

    Hi,
    We are building an ADF Application and created our logger, which is a wrapper around the ADFLogger. As expected logging etc works just fine for the ADF applications deployed in weblogic. However there are parts of the application which could be a standalone (pure java) based components deployed independently, which are leveraging this wrapper logger too. For these applications we added the ADF dependent libraries needed for the ADFLogger. Still these apps are not able to log anything, and I think the main reason being it is not able to get a handle to the logging.xml fine which defines the ODL handler. All other runtime parameters like
    "-Djbo.debugoutput=adflogger -Djbo.adflogger.level=FINEST" are passed.
    There is no error etc, however the logs are not coming.
    Is there a way where we can specify the logging.xml to the ADFLogger, so that it doesn't looks for the default location under - '+/<domain>/config/fmwconfig/servers/DefaultServer+'?
    In general also (for pure ADF based applications), is there a way we can define the path of our logging.xml file, instead of using the default one?
    Would appreciate any help.
    Thanks
    Sachin

    Hi,
    While I appreciate your response, however the question I have is - 'can we have our own logging.xml?' If yes how do we pass the information of our logging.xml to ADFLogger, instead of using the default logging.xml.
    I know we can have our own logger handler defined within the logging.xml, but that is not what we are looking for. The ask is to have the option of having the path of logging.xml defined for ADFLogger.
    Thanks
    Sachin

  • Kernel msgs filling up /var/log/asl files

    I'm having an issue where /var/log/asl files are growing > 5GB a day.  The same kernel error msg is printed over and over: (it changes slightly over time, but still says <something>?kernel?<something>
    Y?????????r?kernel?kernr??tr?????M?
    Y?????????r?kernel?kernr??tr?l???M?
    Y?????????r?kernel?kernr?xtr?????M?
    Y?????????r?kernel?kernr??tr?`???M?
    Y?????????r?kernel?kernr?ltr?????M?
    Any ideas?  I am running OS X 10.5.8
    killing aslmanager (which takes up 99% cpu) doesn't see to stop the logging.  I have no idea what is happening and have exhaustively searched the web for suggestions.  Please help before I have to do an OS wipe.
    Thanks in advance!
    -Kevin

    Is that the actual kernel message or did you add the  question marks?
    Either way, it does not say much.
    The aslmanager is just printing those kernel errors.
    The cause of them is the key.
    Try disconnecting all peripheral devices attached to your Mac,  just to see if any one device is causing it.
    If it still persists, boot up in Safemode to see if that stops it.
    Starting up in Safe Mode
    What is Safe Boot, Safe Mode? (Mac OS X)
    After a restart does it return to normal?
    If not I'd run an Apple Hardware test.
    To do this, on your MacBook hold down the D key on startup.
    Message was edited by: roam realizing the computer is a MacBook

  • Questions on reading a file...

    Hi All,
    I have a few questions on reading a file...
    1st of all ... if I have
    BufferedReader inFile = new BufferedReader (new FileReader("tickets.txt"));and I do inFile.readLine(); will it read the next line everytime I do that? ... say I had a file that had 5 lines of text and I did inFile.readLine(); 5 times will I get the first line 5 times or will I get each line?
    If the is a blank line in the file will it return null?
    how can I feed the file name to args[0] and what is that for?
    Thanks,
    Mike

        public static void main(String args[]) {       
            BufferedReader inFile = null;   
            try {
                inFile = new BufferedReader (new FileReader(args[0]));   
                for (int i = 0; i < reservation.length; i++) {
                    readFile(reservation, inFile, arrayCounter, numberOfReadItems);*/
                    inFile.close();
            catch (ArrayIndexOutOfBoundsException aioobe) {
                System.out.println("Parameter required");
                System.exit(0);
            catch (FileNotFoundException fnfe) {
                System.out.println("File not found");
                System.exit(0);
            catch (IOException ioe) {
                System.out.println("Failed to close file");
                System.exit(0);

  • Questions on init.ora file

    Hi,
    I have some questions on init.ora file. While checking the init file in my system i found that it defines a spfile in a non default location.
    The parameter names are like
    1) db1.__db_cache_size
    2) *._kgl_large_heap_warning_threshold
    3) *.sga_target
    what do they indicate? I mean what does 'db1.__' , '*._' and '*.' indicate? There are multiple database in the Windows 2003 server and the db version is 10g R1
    Regards,
    SID
    Edited by: SID3 on Jun 29, 2010 5:55 AM
    Edited by: SID3 on Jun 29, 2010 5:56 AM

    SID3 wrote:
    From the discussion i guess the following points
    1) db1._ means they are specific to databases.
    2) *._ and * means they are used accross databases and chaging it in any of the initfile might affect all? I seriously doubt this.You are mistaken when speaking about database. Bear in mind, a database is not an instance.
    * here means this parameter will apply to any instance of that database (if it is in RAC), or to the only one instance of that database (if it is in non-RAC).
    Find out more :
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_2013.htm#i2146449
    Nicolas.

  • File Based logging: Control file name based on calling service

    In the file logging, I need to change the "Prefix" and "Suffix" that I can type in, from page "FILE Transport Configuration" while creating
    business service with transfort: File. I need to be able to supply these values for the file name from proxy service activity.
    I am creating as logging proxy service which will be called from all the other proxy services. I am planning to use logging to File System based on
    BS for achieving this. I need to be able to create a new file with name that corresponds to the calling service. How can I achieve this?
    Also this service should be able to turn logging on or off based on the calling service. I should be able to turn off the logging completely or
    turn off the logging only for few services.
    What is the best way to achieve this?

    HI
    That means your file name would be decided at run time . so u can use adapter specific mesage attributes in ur communication channel
    please refer tto the same here
    /people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
    Dynamic File Name Part 1
    /people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i
    Dynamic File Name Part 2
    /people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii

  • My complaints and Questions MP4 M4V video files and other complaints

    My complaints and Questions MP4 M4V video files and other complaints
    I have been scratching my head as to how to fix my problem and I found some answers and some questions along the way. First of all, I have a video that should be correctly formatted for my iPod. Its specs are:
    Kind: MPEG-4 video file
    Size: 19.4 MB
    Bit Rate: 125 kbps
    Date Modified: 8/18/2009 2:15 PM
    Play Count: 1
    Last played: 8/21/2009 12:25 PM
    Profile: Low Complexity
    Channels: Stereo
    Total Bit Rate: 360 kbps
    Video Dimensions: 352x264
    Video Codec: H.264
    F:\File\AnotherFile\A3rdFile\TheMovieFileInQuestion.mp4
    Wow that was a chore. Apple! Let us drag copy and paste our info tabs information so we don’t have to type all this stuff when we are having trouble. **another problem and suggestion** right there.
    Ok, back to the problem of the forum.
    From what I can see from http://www.apple.com/ipodclassic/specs.html this file falls in line of everything required in order to be able to play on my iPod. It plays in iTunes fine but will NOT sync with my iPod. I get an annoying message that states, “Some of the Songs and videos in your iTunes library, including “BlaBlaBlaiPondFixYourJunkBlaBlaBla”, were not copied to the iPod “My iPod” because they cannot be played on this iPod.” Why oh why can iTunes play this video file but my iPod cant. Especially when the specs on Apple’s website say it can.
    So that was bugging me for a LONG time until I found my “Create iPod or iPhone version” option in the “Advanced” heading. Thank goodness this made my files playable on my iPod. Extremely LONG wait though. I know that other programs convert it in ½ the time. But times not to important as long as it gets done, (would be very convenient if it was faster though **Problem and suggestion**)
    Ok, now that I have used the “Create iPod or iPhone version” option it has slowly but surly converted my video. Ok, here is my main problem, the new file which is the result of the conversions information is as follows:
    Kind: MPEG-4 video file
    Size: 35.4 MB
    Bit Rate: 125 kbps
    Date Modified: 8/18/2009 2:15 PM
    Play Count: 1
    Last played: 8/21/2009 1:28 PM
    Profile: Low Complexity
    Channels: Stereo
    Total Bit Rate: 658 kbps
    Video Dimensions: 352x264
    Video Codec: H.264
    C:\File\WhyIsThisNewFileInMyMusicFolder\TheMovieFileInQuestion.m4v
    So basically it has made my file bigger *not a bonus in my book* greatly increased my Bit Rate *another interesting feature*, and I think the biggest change it has changed it from an .mp4 to an m4v.
    Why does it need to be an .m4v I could have sworn some of my videos were or are in mp4 which shouldn’t matter anyway because I was under the impression that iPods could play mp4 files. So that’s my biggest complaint and question. Why can my 80GB classic iPod not play my MP4 files and why am I forced to convert them??
    This conversion also creates 2 files in iTunes when I am done which is annoying because I have to go into my files info and look to see what file is the mp3 in order to remove it. Very annoying I can open my iPod options and see the files and some are faded (the ones it can not play) why can’t I remove them from that area.Suggestion Apple please make files that cannot be played on my iPod stand out some how for easier cleaning Suggestion. Thank you.
    Speaking of cleaning iPods, when I moved my entire library to an external drive I was faced with a terrible problem. “This file could not be found, would you like to locate file”, I was faced with this annoying message at least 600 times. Now I am glad that iTunes has a little “!” mark to show dead links so that you do some minor cleaning, Good Job iTunes No compliant there. However iTunes has no way of selecting all the broken files for major cleaning (like in my case). Going through and deleting over 600 files 1 by 1 is extremely time consuming and annoying. **Suggestion Apple please add more cleaning features for organizing iTunes**.
    Ok, speaking of organization now, another problem that appeared when converting my video files was that it put my new videos into the location where I have all my songs (my external hard drive) why can’t it put the new files in the locations of the original file? I have my computer highly organized and my original files were in that drive in that folder for a reason. If I could open my original file and skip the conversion, my iTunes would go to that specific folder to access the file which is fine. But now these new conversion files are elsewhere taking up space and disorganizing my computer. True I can go into the new location and move the files to where I want them (original location) but I don’t think I should have to hunt them down, copy, move, delete ect etc for all these files over and over. Very annoying, time consuming and should be unnecessary. **Suggestion Make file creation and location more customizable, and user friendly, your customers will love you for it**.
    Well since I have gotten into Apples iTunes and iPod problems that I have had to face I might as well bring up one or two more problems and suggestions. About a month after purchasing my iPod a sibling bought one as well. His however is way more convenient then mine. I suppose he has a 5th gen. so here is my question: why does he have a search option and I don’t!!!! Why does he get more features every so often and I don’t?! Why can’t Apple write some software for us classic guys which got the iPods going! It’s very annoying when I have to spend more time looking for the song then I spend actually listening to it, when he can pull his up in like 3-6 seconds? I highly doubt the hardware between our iPods is that dissimilar and even if they are why cant software be written for us. **Suggestion treat all your customers good not just the newer ones, and make some more features for the classics like me and my iPod.” We will be grateful for it I promise.
    Ok, I am almost done. Let me just recap my questions, I know my post is kind of lengthy.
    #1. Why can’t my iPod play MP3 video files? And why do I have to convert to almost all the same settings except changing it from an mp4 to an m4v. according to Apples own site I should be able to play .m4v .mp4 and .mov files!! Note: remember iTunes plays them fine but my iPod will not.
    #2. Would be much more convenient to be able to copy the information from the windows in iTunes so that problems and trouble shooting would be much easier. A little check on off options in iTunes advanced settings would be terrific.
    #3. Why is the conversion so slow? Please speed it, you have the power. Convenience is the thing that sells products.
    #4. Files that cannot be played on the current iPod need to be easier recognized for simpler cleaning.
    #5. Also make an easier way to select all dead link files for faster cleaning, deleting, etc. This one is important.
    #6. Make a user friendly way to change where my files are going to end up once I convert them for iPod more options and better customizable settings are need.
    #7. One of the most important is ADD A SEARCH OPTION. I and we classics will LOVE Apple for it.
    For you readers, I apologize for the long post, and any grammatical errors you might find throughout it. These are problems that I have faced with these programs and hardware and I wanted to make sure they got acknowledged and hopefully addressed. Any information about why I cannot play MP4 Video files on my iPod would be the best. If anything in my post gets answered that’s the one I want most. Will save me a lot of hassle.
    Thank you all and I look forward to your suggestions and comments. All are welcome and appreciated.
    Sincerely,
    Bond, James

    Was playing with iTunes and thought of another suggestion! Let us play files in iTunes from an iPod! A friend or sibling should be able to plug his iPod into my computer open iTunes and play any of the files there. Many times I have wanted to show a movie clip or video to a friend, and I have the dock so I can do it on my T.V. but play it on their computer in their iTunes forget it. That would be a very nice feature as well so we can watch our movies at maximum size or listen to music on a better sound system, just another suggestion that would be nice. Thanks

  • How to see events in /var/cluster/logs/eventlog file?

    Hello,
    I want to see events in /var/cluster/logs/eventlog file.
    I read about showev4 but I have two problems:
    * this executable is only for SPARC system and we have x86 systems
    * I transfer the file to a SPARC system to try to analyse but I get a core.
    Best regards,
    Emilio J.

    Transferring a SPARC binary to an x64 system will not work. They are completely different chip architectures. I think the eventlog file is for support staff only. It is not documented in the SC manuals as far as I can tell.
    Tim
    ---

  • Database restore from backup--miss some transaction log backup files.How to restore?

    One database with full recovery model
    it runs full backup at 12:00 am on 1/1 one time.
    Then transaction log backup every 3 hours. 3:00 am, 6:00am,9:00 am, 12:00 Pm, 3:00Pm,6:00PM,9:00pm,12am......
    If we can't find 3:00 am, 6:00am, 9:00am transaction log backup files, could we still restore to 6:00am? We still have all transaction log backup files after 12:00Pm.
    Thanks

    One database with full recovery model
    it runs full backup at 12:00 am on 1/1 one time.
    Then transaction log backup every 3 hours. 3:00 am, 6:00am,9:00 am, 12:00 Pm, 3:00Pm,6:00PM,9:00pm,12am......
    If we can't find 3:00 am, 6:00am, 9:00am transaction log backup files, could we still restore to 6:00am? We still have all transaction log backup files after 12:00Pm.
    Thanks
    NO..log files are incremental and connected.If any log file is missing you cannot restore  to point which comes after backup which is lost or damaged.Like u miss 3 AM trn log backup now even if you have 6,9,12 AM trn log backups its of no use .
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • What does a question mark and i file mean on my macbook pro

    what does a question mark and i file mean on my macbook pro when i turn it on?

    To be more specific, the computer is not finding a valid system when it starts up. This may result from the hard drive's physical mechanism failing, or the system on the drive being corrupted in some way.
    Repairing permissions is not likely to fix this issue. Instead I would suggest booting from the system install DVD, running Disk Utility, selecting your hard drive's partition and select *Repair Disk*.
    Note: if the hard drive does not show up in Disk Utility at all, it is dead and will need to be replaced. Contact Apple (800-275-2273 in the USA) and have them set up warranty service, or carry the MacBook in to an Apple retail store to have it fixed. Be sure to [make an appointment|http://www.apple.com/retail] first you you may wait a long time to speak to a Mac Genius.
    If Repair Disk finds any problems and is able to correct them, you may be able to restart and everything be okay. If it is unable to correct the problems, you will need to erase and restore your hard drive.
    If Repair Disk does not find any problems, I would suggest an Archive and Install as described in [this article|http://support.apple.com/kb/HT1710].
    Best of luck.

  • Oblix_OBWebGate_AuthnAndAuthz: ..- Unable to read log configuration file.

    Hi All,
    I have a painful problem with Oracle 10g Webgate. I am using Oracle_Access_Manager10_1_4_3_0_linux64_APACHE22_WebGate to procted Apache resource. I have some problem in Custom Authentication plugin. which is not still resolve(https://forums.oracle.com/thread/2549716).   
    Now I have apply patch BP9 (Oracle_Access_Manager10_1_4_3_0_BP09_Patch_linux64_APACHE22_WebGate) for Webgate, Now I have a new issue, I am unable to get the logon page of OAM when I try to access my Apache resource.
    The Error Message in the browser is:
    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    More information about this error may be available in the server error log.
    Apache/2.2.3 (Oracle) Server at apache.tigerit.com Port 80
    In the error log file of  Apache I have found
    [Sun Jun 23 11:53:17 2013] [error] [client 192.168.1.156] Oblix_OBWebGate_AuthnAndAuthz:  Error: /opt/netpoint/webgate/access/oblix/config/oblog_config_wg.xml - Unable to read log configuration file.
    [Sun Jun 23 11:53:17 2013] [error] [client 192.168.1.156] Oblix_OBWebGate_AuthnAndAuthz:  Error: /opt/netpoint/webgate/access/oblix/config/oblog_config_wg.xml - Unable to read log configuration file.
    [Sun Jun 23 11:53:20 2013] [error] [client 192.168.1.156] Oblix_OBWebGate_AuthnAndAuthz:  Error: /opt/netpoint/webgate/access/oblix/config/oblog_config_wg.xml - Unable to read log configuration file.
    [Sun Jun 23 11:53:35 2013] [error] [client 192.168.1.156] Oblix_OBWebGate_AuthnAndAuthz:  Error: /opt/netpoint/webgate/access/oblix/config/oblog_config_wg.xml - Unable to read log configuration file.
    [Sun Jun 23 11:53:35 2013] [error] [client 192.168.1.156] Oblix_OBWebGate_AuthnAndAuthz:  Error: /opt/netpoint/webgate/access/oblix/config/oblog_config_wg.xml - Unable to read log configuration file.
    [Sun Jun 23 11:53:35 2013] [error] [client 192.168.1.156] Oblix_OBWebGate_AuthnAndAuthz:  Error: /opt/netpoint/webgate/access/oblix/config/oblog_config_wg.xml - Unable to read log configuration file.
    Can Anyone help me regarding this issue...
    Thanks
    Tamim Khan

    Hi Colin,
    Thanks for your help, You are right I have change the permission of /opt/netpoint/webgate/access/oblix/lib/libxmlengine.so.
    Now I am able to access the logon page of the access manager.
    But the problem as I mention in (https://forums.oracle.com/thread/2549716) my ObSSOCookie value is still loggedcontinue.
    My Authentication return (ExecutionStatus.SUCCESS) Successful from the Java Code , and I am unable to login in the application. The thing is I can't manipulate ObSSOCookie from Java code.
    I have apply Patch 12363955 to resolve this issue. But this patch is now to resolve this issue.
    Have you any idea how to resolve this issue.
    Thanks
    Tamim Khan

  • Business rule Log/error files in 11.1.1.3?

    Hi,
    How can I trace out the status of business rules in EAS for running a calculation on essbase cube.where can I find these log/error files?
    In log files can we trace out the error like where it went wrong...?
    Thanks

    If you have a look at hbrlaunch.log it will provide details of the business rules that have been run.
    If on 11.1.1.3 and windows the file can be by default in C:\windows\system32
    If you do get any errors running the rule then the essbase app log is probably the best to find more information on the error.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Entries with oracle's IP in log.xml file.

    This is about a couple of log entries I found in /dcm/logs/emd_logs/log.xml file.
    while I have some Idea about the message itself what I don't understand is why the <HOST_NWADDR> points to 148.87.12.57
    Can anyone shed some light on this.
    Does R2 connect to oracle in some way each time it is brought up, 'cause the IP 148.87.12.58 is the IP of the PortalStudio and I figured its neighbour belongs to oracle too.
    Do I need to keep the box connected to Internet all the time for it to work.
    Could someone at oracle tell me what my box is trying to do by connecting to 148.87.12.57.
    Please find the entries below.
    Thanx
    Vinodh R.
    These are the entries I found
    i)
    <MESSAGE>
    <HEADER>
    <TSTZ_ORIGINATING>2002-07-08T03:56:36.721-04:00</TSTZ_ORIGINATING>
    <COMPONENT_ID>OC4J</COMPONENT_ID>
    <MSG_TYPE TYPE="ERROR"></MSG_TYPE>
    <MSG_GROUP>n/a</MSG_GROUP>
    <MSG_LEVEL>1</MSG_LEVEL>
    <HOST_ID>myportal</HOST_ID>
    <HOST_NWADDR>148.87.12.57</HOST_NWADDR>
    <MODULE_ID>iAS_dcm/oracle/defaultLogger/ExceptionLogger</MODULE_ID>
    <PROCESS_ID>null-Thread[ApplicationServerThread,5,applicationServerThreadGroup]</PROCESS_ID>
    <USER_ID>root</USER_ID>
    </HEADER>
    <PAYLOAD>
    <MSG_TEXT>[ RM ] Exception in repository API new SchemaManager()</MSG_TEXT>
    <SUPPL_DETAIL><![CDATA[oracle.ias.repository.schema.SchemaException: Password could not be retrieved
         at oracle.ias.repository.IASSchema.init(IASSchema.java:152)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    ]]></SUPPL_DETAIL>
    </PAYLOAD>
    </MESSAGE>
    ii)
    <MESSAGE>
    <HEADER>
    <TSTZ_ORIGINATING>2002-07-08T06:41:27.339-04:00</TSTZ_ORIGINATING>
    <COMPONENT_ID>OC4J</COMPONENT_ID>
    <MSG_TYPE TYPE="ERROR"></MSG_TYPE>
    <MSG_GROUP>n/a</MSG_GROUP>
    <MSG_LEVEL>1</MSG_LEVEL>
    <HOST_ID>myportal</HOST_ID>
    <HOST_NWADDR>148.87.12.57</HOST_NWADDR>
    <MODULE_ID>iAS_dcm/oracle/defaultLogger/ExceptionLogger</MODULE_ID>
    <PROCESS_ID>null-Thread[ApplicationServerThread,5,applicationServerThreadGroup]</PROCESS_ID>
    <USER_ID>oracle</USER_ID>
    </HEADER>
    <PAYLOAD>
    <MSG_TEXT>[ RM ] Exception in repository API getDBConnect()</MSG_TEXT>
    <SUPPL_DETAIL><![CDATA[oracle.ias.repository.schema.SchemaException: Unable to connect to Directory Server:javax.naming.CommunicationException: oracleportal.peesh.com:389 [Root exception is java.net.ConnectException: Connection refused]
         at oracle.ias.repository.directory.DirectoryReader.connect(DirectoryReader.java:104)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    ]]></SUPPL_DETAIL>
    </PAYLOAD>
    </MESSAGE>

    The <url-pattern> tells the application server which requests are to be handled by the FacesServlet. If the requested URL matches, then the FacesServlet handles the request.
    This parameter is not specific to JSF.

  • In Log-shipping what is load delay period on secondary server - Skipping log backup file since load delay period has not expired ....

    During logshipping, job on secondary server is ran successfully BUT give this information
    "Skipping log backup file since load delay period has not expired ...."
    What is this "Load delay period" ? Can we configure this somehow, somewhere ?
    NOTE : The value on "Restore Transasction Log tab", Delay Restoring backups at least = Default (zero minutes)
    Thanks
    Think BIG but Positive, may be GLOBAL better UNIVERSAL.

    How to get the LSBackup, LSCopy, and LSRestore jobs back in sync...
    Last I posted the issue was that my trn backups were not being copied from Primary to Secondary. 
    I found upon further inspection of the LS related tables  in MSDB the following likely candidates for adjustment:
    1) dbo.log_shipping_monitor_secondary, column  last_copied_file 
    change last copied file column to something older than the file that is stuck. For example, the value in the table was 
    E:\SQLLogShip\myDB_20140527150001.trn
    I changed last_copied_file to E:\SQLLogShip\myDB_20140525235000.trn. Note that this is just a made up file name that is a few minutes before the actual file that I would like to restore (myDB_2014525235428.trn). 4 mins and 28 seconds before, to
    be exact.
    LSCOPY runs and voila! now it is copied from primary to secondary. That appears to be the only change needed to get the copy going again.
    2) For LSRestore, see the MSDB table dbo.log_shipping_monitor_secondary, change
    last_restored_file
    again I used the made up file E:\SQLLogShip\myDB_20140525235000.trn
    LSRESTORE runs and my just copied myDB_2014525235428.trn is restored
    ** note that
    dbo.log_shipping_secondary_databases also has a last_restored_file column - this did not seem to have any effect, though I see that it updates after completing the above and LSRestore has run successfully, so now it is correct as well
    3) LSBackup job is still not running, the job still has a last run date in the future. Could just leave it and eventually it will come right, but I made a fairly significant time change, plus it's all an experiment....back to MSDB.
    look at dbo.sysjobs, get the job_id of your LSBackup job
    edit dbo.sysjobschedules - change next_run_date  next_run_time as needed to a datetime before the current time, or when you would like the job to start running. 
    I wouldn't be so cavalier with data that was important, but that's the benefit of being in Test, and it appears that these time comparisons are very rudimentary - a value in the relevant log shipping table and the name of the trn file. That said, if you
    were facing a problem of this nature due to lost trn files, corrupted, or some similar scenario, this wouldn't fix your problem, though it _might_ allow you to continue? But in my case I know I have all the trn files, it's just the time that changed, in this
    case on my Primary server, and thus the names of the trn logs got out sync.

Maybe you are looking for

  • Change array size and delete duplicate row

    Hello, I am running a program that does a for loop 3 times.  In each loop, data is collected for x and y points (10 in the example provided).  How can I output the array with the 30 points in a simple 2D array (size 2x30)? Also, from the array, how d

  • [FAILED] - VGA2USB installation in ArchLinux. How do you install it?

    I have VGA2USB frame grabber device. Connected to my Archlinux. I want to use it and install it but cant make it installed. Help!! I have tried with latest the greatest kernel and then i switched to kernel26-lts both same, so please see as below my s

  • Use as a storage device

    How to use time capsule as a storage device for retrivel of information.

  • Two times and dates show on the first page with an old set under the correct set.

    I have a second tine and date showing on the first display page, like a shadow under the correct date and time.  This is happenong on my iphone5, but was also there on my 4.  Any ideas?

  • SSO error in DBACOCKPIT (and others)

    Hi After migrating to Sybase i have a problem with SSO to Webdynpro applications. First of all in DBACOCKPIT, but i can see it´s a general problem not specific to the DBACOCKPIT... If i call program SAPHTML_SSO_DEMO i get error 00(146) saying: Error