How to re-read a 2 GB transaction log archived

I've archived with the backup utility the transaction log of my R/3 system cause we had space problems. Now the file backed-up has a size of 2 GB. I need to read it but I can't open because it's too big. Is there any utility or way to read a so big LOG file? Is there any particular function between the database tools I can use to do it?
Thanx
Sonya

Hello,
you cannot check the free space from outside the SQL Server as you can't open the actual log file as it is locked by SQL Server. If you want to get the information about free log space you can run the SQL command:
dbcc sqlperf(logspace)
If you want to get the information within a bat file you can use the osql utillity from SQL Server:
@echo off
osql -E -Q"dbcc sqlperf(logspace)"
The -E paramter connects you with a trusted Windows connection to the server. If you hae a named instance you have to specify the -S<Instancename> paramter as well. See in SQL Server Books Online for the complete syntax for the osql.exe utility.
Best regards
  Clas

Similar Messages

  • How to create/read/write textfiles in a jar archive?

    Hi!
    I would like to know how to create, read and write text file in a jar file?
    //Marcus

    You want to update "files" that are inside a jar archive? You can't. At least not very easily; to modify a file you need to create a new version of the jar, copy over everything else, and add the new version of that file. Look for a different design that doesn't require updating a jar.
    PC&#178;

  • Ce7305-5.3.3: number of transaction log archives

    Could anybody tell me how many archives are kept for transaction logs on a ce7305-5.3.3, and how can we control the number of them?
    Thanks in advance.
    A.T Doan

    Hi Alex,
    Actually circular logging/backup was not a solution, I was just explaining that there is an option like that on server but it is not recommended hence not useful in our case :)
    - I am not a developer but AFAIK, WebDAV search query shouldn't generate transaction log because it just searches the mailboxes and gives the result in HTTP format and doesn't produce any Exchange transaction.
    - I wouldn't open transaction logs since it is being used by Exchange which may generate errors and may corrupt Exchange database sometime too. However it is not readable, as you observed, other than Exchange Information Store service (store.exe).
    - You can post this query in development forum to get better idea on this, if any other programmer observed similar symptom while using WebDAV contact search query in Exchange 2007 or can validate your query.
    Microsoft TechNet > Forums Home > Exchange Server > Development
    Well, I just saw that you are using Exchange 2007, in that case why don't you use Exchange Web Service which is better and improved method to access/query mailboxes where as WebDAV is also de-emphasized in Exchange 2007 and might be disappeared in next version of Exchange. Checkout below article for further detail.
    Development: Overview
    http://technet.microsoft.com/en-us/library/aa997614.aspx
    Amit Tank | MVP - Exchange | MCITP:EMA MCSA:M | http://ExchangeShare.WordPress.com

  • How do I read or change TimeStamp in log files?

    We have deployed BIPublisher 10.1.3.4 EAR into OC4J container. I am seeing the following timestamp in BI log files..
    [010909_032352774][][STATEMENT] [org.quartz.jobStore.isClustered]=[false]
    [010909_032352774][][STATEMENT] [org.quartz.jobStore.misfireThreshold]=[60000]
    [010909_032352774][][STATEMENT] [org.quartz.threadPool.threadCount]=[10]
    [010909_032352774][][STATEMENT] [org.quartz.jobStore.driverDelegateClass]=[org.quartz.impl.jdbcjobstore.oracle.OracleDelegate]
    [010909_032352774][][STATEMENT] [org.quartz.dataSource.myDS.driver]=[oracle.jdbc.OracleDriver]
    [010909_032352774][][STATEMENT] [org.quartz.jobStore.dataSource]=[myDS]
    I can understand the first part 010909 as the date but I don't know how to read 032352774 value. Nothing is specified in the documentation. I am seeing this timestamp in the log file under OPMN Logs folder. I am not sure why Debug info goes here instead of application.log file.
    Your help is greatly appreciated..
    Thanks!
    Srini

    The timestamp more than likely comes from a Java class using a form of UTC timestamp format. Sometimes the UTC format, at the end SSS part is based on StDZ, or portion of a second and the timezone desigator. The timezone/timestamp format is embedded where BIP gets initialized. It is possible to de-code EAR/WAR/JAR files and find the date format method, but then you are altering source code and that has support implications. In the big scheme of things, no big deal.

  • How do I read the Windows 7 backup log file (.etl).

    I tried Windows 7 backup yesterday and it took over 5 hours to complete. When it did it used about 135GB of my backup drive which is okay, but when I looked a the backup drive, I found a couple directories that backup created. One had over 2000 .zip files in it. Is this how Custom backup works?
    I also had another folder with teh Image backup data.
    I decided I didn't like it so I deleted the backups, but now I would like to look at the log file. How do I do this? When I navigate to C:\Windows\Logs\WindowsBackup I see a WindowsBackup.2.etl file. When I double click on this I get the popup saying Windows 7 does not know what to do with this file. There is no way to look at the log from the Windows Backup window that I can see either.
    A Google search did not turn up  anything useful.Rich

    Hi Ztruker,
    Windows backup creates .zip files to store file backups and a VHD format to store image backups. Is there a reason why you are bothered with this format? To browse through the contents of the file backups, you could launch the restore files dialog and browse/search. To navigate through the image backup, you can mount the VHD through Disk Management. This is of course, if you have a backup. Unfortunately, backup does not create a user-readable log. The etl files are meant for product tracing in the case of failures and are for Microrosft use. Hope this helps.
    Thanks,
    Sneha
    [MSFT]

  • WAE 512 and transaction logs problem

    Hi guys,
    I have a WAE 512 with ACNS 5.5.1b7 and I'm not able to export archived logs correctly. I tried to configure the WAE as below:
    transaction-logs enable
    transaction-logs archive interval every-day at 23:00
    transaction-logs export enable
    transaction-logs export interval every-day at 23:30
    transaction-logs export ftp-server 10.253.8.125 cache **** .
    and the WAE exported only one file of about 9 MB even if the files was stored on the WAE as you can see from the output:
    Transaction log configuration:
    Logging is enabled.
    End user identity is visible.
    File markers are disabled.
    Archive interval: every-day at 23:00 local time
    Maximum size of archive file: 2000000 KB
    Log File format is squid.
    Windows domain is not logged with the authenticated username
    Exporting files to ftp servers is enabled.
    File compression is disabled.
    Export interval: every-day at 23:30 local time
    server type username directory
    10.253.8.125 ftp cache .
    HTTP Caching Proxy logging to remote syslog host is disabled.
    Remote syslog host is not configured.
    Facility is the default "*" which is "user".
    Log HTTP request authentication failures with auth server to remote syslog host.
    HTTP Caching Proxy Transaction Log File Info
    Working Log file - size : 96677381
    age: 44278
    Archive Log file - celog_213.175.3.19_20070420_210000.txt size: 125899771
    Archive Log file - celog_213.175.3.19_20070422_210000.txt size: 298115568
    Archive Log file - celog_213.175.3.19_20070421_210000.txt size: 111721404
    I made a test and I configured the archiveng every hour from 12:00 to 15:00 and the export at 15:10, the file trasnferred by the WAE was only three one of 12:00 the other of 13:00 and 14:00 the 15:00 has been missed.
    What can I do?
    Thx
    davide

    Hi Davide,
    You seem to be missing the path on the FTP server; which goes on the export command.
    Disable transaction logs, then remove the export command and then add it again like this: transaction-logs export ftp-server 10.253.8.125 cache **** / ; after that enable transaction logs again and test it.
    Let me know how it goes. Thanks!
    Jose Quesada.

  • Reading Orcle current online redo logs

    Hi,
    We are able to read the SQL Server Transactional Log. We are trying to do that in case Oracle. Can anyone put some light on this?
    Is there any third party tools doing this? Is this a feasible idea or not.
    Regards,
    Kalyan

    You can use Logminer to look into the archived redo logs.
    Why do you want to look at this though?

  • Smartfilter Transaction Logs on CE

    Hi
    I'm having real problems getting a CE running ACNS 5.1.5.2 to export the CE logs for CYFIN to report on.
    Its creating the HTTP logs but only exporting the tftp logs and couple of others so I know the ftp server is working.
    I've tried it from the CLI and the GUI and seem to have more luck from the GUI.
    Config is:-
    transaction-logs enable
    transaction-logs log-windows-domain
    transaction-logs archive max-file-size 10000
    transaction-logs archive interval 120
    transaction-logs export enable
    transaction-logs export interval 5
    transaction-logs export ftp-server 192.168.10.1 anonymous **** /logs
    transaction-logs format apache
    (if there are any typo's above its because I've typed them rather than copying so ignore them please).
    Any help would be great, its one of those backs against the wall situations.
    Cheers
    Mark

    Hi
    Thanks for the response, I've had problems trying to get this to work for ages. I did have it working briefly in the lab (but not always the best test situation).
    I've just logged a TAC case because I believe the export process failing is a bug. We cann get it to create the working files, archive them after a set period of time but they never get exported. If you manually copy the files over (using the same ftp information, address, user/password, directory) it works!
    I found a bug that looks similar but its supposed to be fixed in the code we are running (5.1.5.2) and it relates to poor bandwidth, one of the tests was a locally connected ftp server on the same switch and that failed.
    The engineer at smartfilter said it does work because he gave me the software version but I figure the latest(ish) version should work.
    I'll keep the thread updated,
    regards
    Mark

  • How does one read the Unity transaction logs on Exchange?

    I'm trying to find out who placed a call to whom on a particular day and time.  A subscriber receives a blank email periodically with no "from" statement, just a timestamp. They don't have unified messaging.  I want to see if the transaction logs (located on Exchange) contain that information but they are all cryptic symbols.  Is there an application or utility to read tham?  These are the files located in the \Exchsrvr\MDBDATA folder. This is Unity 5.x and Excahnge 2003. Thanks.

    Hi,
    I think you may be wanting to look at Message Tracking?
    http://www.msexchange.org/tutorials/Exchange-2003-Message-Tracking-Logging.html
    But here's also an explanation of the transaction logging and how to read them from the same site:
    http://www.msexchange.org/articles/Transaction-Logs-Lifeblood-Exchange.html
    Hope that helps,
    Brad

  • What determines how many bytes a 8451 reads during a SPI transaction?

    Hello,
      What determines how many bytes a 8451 reads during a SPI transaction? Depending upon the device that you are interfacing with the quantity of bytes that comes back varies.
    Regards,
      Kaspar
    Regards,
    Kaspar

    Hi Kaspar,
    What you described regarding the reading and writing of data from an SPI device looked correct - I posted a similar response on your other thread here.  Also, you are correct that each bit of SPI data will be transferred per clock cycle.  So, if you were to write a byte of data and then read a byte of data, you would expect to have 8 clock cycles per byte.  Hope this helps!
    Regards,
    Anna M.
    National Instruments

  • How to change java error message in transaction page?

    Hi experts,
    I want to ask, how to change ess critical error message to a user friendly message?
    the message appear because of user exit that we used on the back end.
    so here's the case:
    we use user exit of travel management to check end date of trip maximum is 2week from now.
    the user exit run correctly,
    but, the problem is it(error message) is appear in a new page. (and we can't undo or go back to the transaction page)
    how to make it appear in the transaction page? so the employee could easily change the date without input the transaction again from beginning?
    thanks.

    here is the error
    Critical Error
    A critical error has occured. Processing of the service had to be terminated. Unsaved data has been lost.
    Please contact your system administrator.
    , error key: RFC_ERROR_SYSTEM_FAILURE  
    this error come from user exit.
    i made validation for employee that they can't make travel request and expense more than 2 weeks (the end date)

  • Log Reader Agent: transaction log file scan and failure to construct a replicated command

    I encountered the following error message related to Log Reader job generated as part of transactional replication setup on publisher. As a result of this error, none of the transactions propagated from publisher to any of its subscribers.
    Error Message
    2008-02-12 13:06:57.765 Status: 4, code: 22043, text: 'The Log Reader Agent is scanning the transaction log for commands to be replicated. Approximately 24500000 log records have been scanned in pass # 1, 68847 of which were marked for replication, elapsed time 66018 (ms).'.
    2008-02-12 13:06:57.843 Status: 0, code: 20011, text: 'The process could not execute 'sp_replcmds' on ServerName.'.
    2008-02-12 13:06:57.843 Status: 0, code: 18805, text: 'The Log Reader Agent failed to construct a replicated command from log sequence number (LSN) {00065e22:0002e3d0:0006}. Back up the publication database and contact Customer Support Services.'.
    2008-02-12 13:06:57.843 Status: 0, code: 22037, text: 'The process could not execute 'sp_replcmds' on 'ServerName'.'.
    Replication agent job kept trying after specified intervals and kept failing with that message.
    Investigation
    I could clearly see there were transactions waiting to be delilvered to subscribers from the followings:
    SELECT * FROM dbo.MSrepl_transactions -- 1162
    SELECT * FROM dbo.MSrepl_commands -- 821922
    The following steps were taken to further investigate the problem. They further confirmed how transactions were in queue waiting to be delivered to distribution database
    -- Returns the commands for transactions marked for replication
    EXEC sp_replcmds
    -- Returns a result set of all the transactions in the publication database transaction log that are marked for replication but have not been marked as distributed.
    EXEC sp_repltrans
    -- Returns the commands for transactions marked for replication in readable format
    EXEC sp_replshowcmds
    Resolution
    Taking a backup as suggested in message wouldn't resolve the issue. None of the commands retrieved from sp_browserreplcmds with mentioned LSN in message had no syntactic problems either.
    exec sp_browsereplcmds @xact_seqno_start = '0x00065e220002e3d00006'
    In a desperate attempt to resolve the problem, I decided to drop all subscriptions. To my surprise Log Reader kept failing with same error again. I thought having no subscription for publications log reader agent would have no reason to scan publisher's transaction log. But obviously I was wrong. Even adding new log reader using sp_addLogreader_agent after deleting the old one would not be any help. Restart of server couldn't do much good either.
    EXEC sp_addlogreader_agent
    @job_login = 'LoginName',
    @job_password = 'Password',
    @publisher_security_mode = 1;
    When nothing else worked for me, I decided to give it a try to the following procedures reserved for troubleshooting replication
    --Updates the record that identifies the last distributed transaction of the server
    EXEC sp_repldone @xactid = NULL, @xact_segno = NULL, @numtrans = 0, @time = 0, @reset = 1
    -- Flushes the article cache
    EXEC sp_replflush
    Bingo !
    Log reader agent managed to start successfully this time. I wish if I could have used both commands before I decided to drop subscriptions. It would have saved me considerable effort and time spent re-doing subscriptions.
    Question
    Even though I managed to resolve the error and have replication funtioning again but I think there might have been some better solution and I would appreciate if you could provide me some feedback and propose your approach to resolve the problem.

    Hi Hilary,
    Will the below truncate the log file marked for replication, is there any data loss, when we execute this command, can you please help me understand, the internal working of this command.
    EXEC sp_repldone @xactid = NULL, @xact_segno = NULL, @numtrans = 0, @time = 0, @reset = 1

  • How do I view the transaction log in SQL Server 2008?

    Hello,
    I want to know how to view all the transactions taken during a particular period of time. I know there is a log file, ending with .ldf, created for each database. But how do I view this file?
    Is there any tool in the SQL Server studio that can enable me to view the transactions for a given time period?
    The reason for me wanting to view the log file is that, last week during a power outage, certain amount of data was not written. And one my friend had also messed up some of the data (unfortunately, she doesn't remember what she did).
    Thanks in advance.

    Hi,
     It enables you to read from you transaction log which contains very valuable information about stuff that is happening in your database.
    select
    * from fn_dblog (null,null) ..
    EXAMPLE:
    SELECT
    FROM
    ::fn_dblog(NULL, NULL)
    WHERE
    operation = 'LOP_DELETE_SPLIT'
    Thanks,
    Leks

  • In bdc how we handle page phone area in transaction pa30

    in bdc how we handle page phone area in transaction pa30.suppose one maintain phone no but not pager no.in that case how we will handle

    in my system ..i have phone number only displayed...if you want to put page number also then add a ddition qualifier like PG or some number by contacting functional guys..
    regards:)

  • How to add new tab screen in transaction BP

    Hi,
       Please let me know How to add new tab screen in transaction ukm_BP. Is there any SPRO configuration needed for this?
    Thanks,
    Debi.

    Hi,
    You may also try the exits available with the MIGO transaction. To find exits you can use the fillowing code by giving tranasaction code as input.
    REPORT  zrmexitfinder                               .
    TABLES: modsap, modact, tstc.
    PARAMETERS: input1 LIKE tstc-tcode DEFAULT ' ',
                input2 LIKE modsap-typ DEFAULT ' '.
    DATA: search1(6),
          search2(3),
          search3 LIKE modsap-member.
    DATA : first_row VALUE 'Y'.
    CONCATENATE: '%' input1 '%' INTO search1,
    '%' input2 INTO search2.
    SELECT * FROM tstc WHERE tcode LIKE search1.
      first_row = 'Y'.
      CHECK tstc-pgmna NE space.
      CONCATENATE '%' tstc-pgmna '%' INTO search3.
      SELECT * FROM modsap WHERE typ LIKE search2
      AND member LIKE search3.
        SELECT SINGLE * FROM modact WHERE member = modsap-name.
        IF first_row EQ 'Y'.
          WRITE: /0 tstc-tcode, 6 tstc-pgmna, 16 modsap-name, 32 modsap-typ,
                 45 modsap-member, 70 modact-name.
          first_row = 'N'.
        ELSE.
          WRITE: /16 modsap-name, 32 modsap-typ, 45 modsap-member, 70 modact-name.
        ENDIF.
        CLEAR : modsap, modact.
      ENDSELECT.
      IF sy-subrc NE 0.
        WRITE : /0 tstc-tcode, 6 tstc-pgmna, 30 'No exits found'.
      ENDIF.
      CLEAR tstc.
    ENDSELECT.
    END-OF-SELECTION.
      CLEAR: search1, search2, search3.
    Regards,
    Renjith Michael.

Maybe you are looking for

  • Sample Bapi code for creating orders

    HI all, ive been working on creating an order using idoc_input_orders and couldnt do it because of 2 fields. now changed my decission and thinking of writing a bapi to do the same. has anybody got the sample code for mapping and filling in the bapis

  • XML Publisher issues

    Hi, We are using XML Publisher API to generate PDF,EXCEL outputs using Template. While adding image to the template its showing in the pdf output. But not showing in the Excel output. Then i added url:{/Image} in the alt text of the image in template

  • How can report a imac that the hdd dosen't work need to be changed

    the Imac wont start, the screen its white and the HDD make some funny noise where can i report this issues to get a replacement on the HDD? of course if the Machine stills on waranty Thanks! Gustavo Martinez Plamex Plantronics S.A de C.V. <Edited by

  • Schedule Destination to File System

    I am creating my first scheduled report in Central Management Console and have a question about the security credentials: I have copied an existing reoccurring job from the History section I am on the DESTINATION tab and choose FILE SYSTEM Set to sav

  • How to remove MusicApps folder?

    Hi,   I have a Nokia 5800 Xpress music phone.I had installed the touch guitar application previously which created a folder called 'MusicApps' in my menu. Now after uninstalling  the application folder is still there. Is there any way i can remove it