Problem in creating log file on Ubuntu(Linux)

hi
I have developed a project in java. which creates log file for exception handling. This is working fine on Windows but When I run the jar file on ubuntu then it is not creating log file and throwing an error.
Error Message="Permission Denied UnixFileSystem.java createFileExclusively()"
Code is :
strStartupPath = new java.io.File("").getAbsolutePath();
DateFormat dateformat = new SimpleDateFormat("yyyyMMdd");
Date date = new Date();
String strFileName = strStartupPath + "\\" + dateformat.format(date) + ".log";
File logFile = new File(strFileName);
Your assistance will be appriciated.
Sonal

If you want to do this properly then you will have to make it OS specific. Various security systems on each platform will prevent you from freely writing your logfile unless you choose the correct location. The applications folder under MacOSX, for instance, requires Admin privileges. Under MacOSX and Windows, log files are typically stored in the Applications Data resp. /Library/Logs or ~/Library/Logs folder in MacOS X. In Unix and Linux you will typically use /var/log directory.
I think your question is rather Java than Linux specific, but there is a lot of information available for free on the web.
Perhaps the following example can help you to determine the OS:
public static final class OsUtils
   private static String OS = null;
   public static String getOsName()
      if(OS == null) { OS = System.getProperty("os.name");
   public static boolean isWindows()
      return getOsName().startsWith("Windows");
   public static boolean isUnix() // and so on
}Edited by: Dude on Apr 16, 2011 12:58 AM

Similar Messages

  • Problem in creating text file from report file

    Hello Everybody...
    I have problem in creating text file.
    I had set System Parameter as below
    DESTYPE : File
    MODE : Character
    DESNAME : gayu.txt
    And ruler setting
    Units : Character Cells
    Character Cell Size : Horiziontal = 7
    Vertiacle =12
    GridSpacing : 1
    no of snap points per grid spacing : 1
    but when i run report it will give error
    "REP_1219 M_2 or R_2 has no size -- length or width zero"
    so is there any solution of that
    or another way to convert report into text file?....

    Hi Folks,
    Please don't go after that Error as its a very deceptive one. Please don't go for altering your design Or changing the size of items in your layout.
    Similar errors I have come across in reports. I think its due to file transfer type. You might have transferred the file in Binary and your File Mode I am seeing it as CHAR.
    This normally happens while making the Report Format as "Text". Either you change that format which I think is possible in your case as your basic requirement is making a report output of CHAR type.
    Please check for this error in Metalink and proceed accordingly. I could fix similar errors when I changed Format type to PDF(from text).
    Regards
    Shibu

  • Problem in creating csv file

    I have one problem in creating csv file.
    If one column has single line value, it is coming in single cell. But if the column has no.of lines using carriage return while entering into the table,
    I am not able to create csv file properly. That one column value takes more than one cell in csv.
    For example the column "Issue" has following value:
    "Dear
    I hereby updated the Human Resources: New User Registration Form Request.
    And sending the request for your action.
    Regards
    Karthik".
    If i try to create the csv file that particular record is coming as follows:
    0608001,AEGIS USERID,SINGAPORE,Dear
    I hereby updated the Human Resources: New User Registration Form Request.
    And sending the request for your action.
    Regards
    Karthik,closed.
    If we try to load the data in table it is giving error since that one record is coming in more than one line. How can I store that value in a single line in csv file.
    Pls help.

    I have tried using chr(10) and chr(13) like this......still it is not solved.
    select REQNO ,
    '"'||replace(SUBJECT,chr(13),' ')||'"' subject,
    AREA ,
    REQUESTOR ,
    DEPT ,
    COUNTRY ,
    ASSIGN_TO ,
    to_Date(START_DT) ,
    START_TIME ,
    PRIORITY ,
    '"'||replace(issues, chr(13), ' ')||'"' issues,
    '"'||replace(SOLUTIONS,chr(13),' ')||'"' SOLUTIONS ,
    '"'||replace(REMARKS,chr(13),' ')||'"' REMARKS ,
    to_date(CLOSED_DT) ,
    CLOSED_TIME ,
    MAN_DAYS ,
    MAN_HRS ,
    CLOSED_BY ,
    STATUS from asg_log_mstr
    Pls help.

  • Age of Mythology cannot create log file

    I am trying to set up the game "Age of Mythology" on my son's user account. I am the administrator, and it works fine in my account, but when I try to run it from his account, I get the "cannot create log file" error message.
    I've tried doing an install under his user name, but still get this message.
    An thoughts?
    Thanks,
    Boris

    This sounds like a permissions issue. You probably need to enable read and write access to the folder where the log file is created. From your administrator account, Get info on that folder > expand Ownership and Permissions > expand Details > change Others to Read and Write.
    PowerMac G5   Mac OS X (10.4.6)   1GB RAM, nvidia 6800 ultra, Apple 30" Cinema Display

  • Create rman back log file issue in linux

    Hi Experts,
    I run 10.2.04 database in redhat 5.1
    i create a testing shell script for cron job. but I could not create rman backup log file with blank email.
    my code as
    #!/bin/bash
    EXPORT DTE='date +%m%d%C5y%H%M'
    export $ORACLE_HOME/bin
    export $ORACLE_SID=sale
    rman target='backuptest/backuptest@sale4' nocatalog log /urs/tmp/orarman/jimout.log << EOF
    RUN {
    show all;
    EXIT;
    EOF
    mail -s " backup"${DTE} [email protected] < urs/tmp/orarman/jimout.log
    Please advice me for dubug.
    Thanks for your help!
    JIm

    Thanks very much!
    I make changes as below
    #!/bin/bash
    EXPORT DTE='date +%m%d%C5y%H%M'
    export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
    export ORACLE_SID=sale
    export PATH=$ORACLE_HOME/bin:$PATH
    rman target='backuptest/[email protected]' nocatalog log='/urs/tmp/orarman/log/jimout.log' << EOF
    RUN {
    show all;
    EXIT;
    EOF
    mail -s " backup"${DTE} [email protected] < urs/tmp/orarman/log/jimout.log
    I am still not able see file under log='/urs/tmp/orarman/log/ directory.
    the rman option does not works for log='/urs/tmp/orarman/log/jimout.log'
    What is wrong in my code?
    I am looking for your help!
    JIm
    Edited by: user589812 on Jul 23, 2010 8:36 AM
    Edited by: user589812 on Jul 23, 2010 8:38 AM

  • Problem while Creating Control files while Cloning the Oracle DB

    Hi,
    I am failrly new to Oracle Administration. I have got the task of cloning our Production database into a new machine. With the help of various articles found over the web I have followed the below mentioned steps
    1)Executed the Alter database command for getting the control file copy.
    2) Taken the Datafiles,Control and redo log files copies into the Target machine.
    3) Copied the Pfile with the neccessary changes into the target machine.
    4) Edited the Create Control file syntax (generated from step 1) and executed the same on the target machine.
    Now the problem I face is that I get the following error while executing the create Control file syntax
    a)ORA-01503 - Creation of Controlfile failed.
    b) ORA-00219 - Required controlfile size 41760 exceeds max allowable size 20000.
    I am really stuck. Both my machine configurations and O/S installed are the same.
    Please advice me on how to Proceed... Thanking you all in advannce.
    Rgds,
    SN.

    Hi Jaffer,
    This is my code........ The control file has been generated by executing the syntax alter database backup controlfile to trace at the source db .
    STARTUP NOMOUNT pfile=ORADATA:ORAHOME1\ADMIN\ORACLE\PFILE\INIT.ORA;
    CREATE CONTROLFILE set DATABASE "ORACLE" RESETLOGS NOARCHIVELOG
    MAXLOGFILES 32
    MAXLOGMEMBERS 2
    MAXDATAFILES 32
    MAXINSTANCES 16
    MAXLOGHISTORY 65535
    LOGFILE
    GROUP 1 'ORADATA:ORAHOME1\ORADATA\ORACLE\LOG2ORCL.ORA' SIZE 200K,
    GROUP 2 'ORADATA:ORAHOME1\ORADATA\ORACLE\LOG1ORCL.ORA' SIZE 200K
    DATAFILE
    'ORADATA:ORAHOME1\ORADATA\ORACLE\SYS1ORCL.ORA',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\USR1ORCL.ORA',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\RBS1ORCL.ORA',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BTXIS_DATA.ORA',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BTXIS_INDEX.ORA',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BTXIS_KAN_DAT.ORA',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BTXIS_KAN_INDEX.ORA',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BTXIS_KIS_DATA.ORA',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BTXIS_KIS_INDEX.ORA',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BTXIS_LUB_DATA.ORA',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BIMBJ01.DBF',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BIMAT01.DBF',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BITPA01.DBF',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BLUBFSINDEFX01.DBF',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\TEMP01.DBF',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\BTXIS_TOOLS.ORA',
    'ORADATA:ORAHOME1\ORADATA\ORACLE\IMPORT1.DBF'
    CHARACTER SET WE8ISO8859P1
    # Recovery is required if any of the datafiles are restored backups,
    # or if the last shutdown was not normal or immediate.
    #RECOVER DATABASE
    # Database can now be opened normally.
    #ALTER DATABASE OPEN;
    # No tempfile entries found to add.
    #

  • Can't create log file with java.util.logging

    Hi,
    I have created a class to create a log file with java.util.logging
    This class works correctly as standalone (without jdev/weblogic)
    import java.io.IOException;
    import java.text.DateFormat;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    import java.util.logging.*;
    public class LogDemo
         private static final Logger logger = Logger.getLogger( "Logging" );
         public static void main( String[] args ) throws IOException
             Date date = new Date();
             DateFormat dateFormat = new SimpleDateFormat("yyyyMMdd");
             String dateStr = dateFormat.format(date);
             String logFileName = dateStr + "SEC" + ".log";
             Handler fh;          
             try
               fh = new FileHandler(logFileName);
               //fh.setFormatter(new XMLFormatter());
               fh.setFormatter(new SimpleFormatter());
               logger.addHandler(fh);
               logger.setLevel(Level.ALL);
               logger.log(Level.INFO, "Initialization log");
               // force a bug
               ((Object)null).toString();
             catch (IOException e)
                  logger.log( Level.WARNING, e.getMessage(), e );
             catch (Exception e)
                  logger.log( Level.WARNING, "Exception", e);
    }But when I use this class...
    import java.io.File;
    import java.io.IOException;
    import java.text.DateFormat;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    import java.util.logging.FileHandler;
    import java.util.logging.Handler;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import java.util.logging.XMLFormatter;
    public class TraceUtils
      public static Logger logger = Logger.getLogger("log");
      public static void initLogger(String ApplicationName) {
        Date date = new Date();
        DateFormat dateFormat = new SimpleDateFormat("yyyyMMdd");
        String dateStr = dateFormat.format(date);
        String logFileName = dateStr + ApplicationName + ".log";
        Handler fh;
        try
          fh = new FileHandler(logFileName);
          fh.setFormatter(new XMLFormatter());
          logger.addHandler(fh);
          logger.setLevel(Level.ALL);
          logger.log(Level.INFO, "Initialization log");
        catch (IOException e)
          System.out.println(e.getMessage());
    }and I call it in a backingBean, I have the message in console but the log file is not created.
    TraceUtils.initLogger("SEC");why?
    Thanks for your help.

    I have uncommented this line in logging.properties and it works.
    # To also add the FileHandler, use the following line instead.
    handlers= java.util.logging.FileHandler, java.util.logging.ConsoleHandlerBut I have another problem:
    jdev ignore the parameters of the FileHandler method .
    And it creates a general log file with anothers log files created each time I call the method logp.
    So I play with these parameters
    fh = new FileHandler(logFileName,true);
    fh = new FileHandler(logFileName,0,1,true);
    fh = new FileHandler(logFileName,10000000,1,true);without succes.
    I want only one log file, how to do that?

  • Not able to create log files using logging API's

    Hi All,
    I am trying to make use of logging API's of SAP in my standalone java project.
    Below is the following line of code.
    public class TestLog {
    private static final com.sap.tc.logging.Location logger = com.sap.tc.logging.Location.getLocation(testLog.class);
    static
    logger.setEffectiveSeverity(Severity.INFO);
    // logger.addLog(new ConsoleLog());
    logger.addLog(new FileLog("C://temp//testOutput.log", new ListFormatter()));
    public static void main(String[] args) {
    writeLog();
    public static void writeLog()
    logger.entering("entering");
    logger.debugT("In Write Log");
    logger.exiting("exiting");
    But the above codes does not create the testOutput.log file in the dir which i have mentioned . I have added sap.comtcloggingjavaimpl.jar from eclipse plugin folder to make use of these API's .
    Could you please help me on this .
    Thanks & Regards,
    Mitul Adhia.

    Hi,
    Also try adjusting the severity level in nwa(Netweaver Administrator).
    1. Go to http://<host-name>:<port-number>/nwa
    2. Select Problem Management from tabs.
    3. In that select Logs and Traces tab.
    4. Select Log configuration
    5. in Show select Tracing Locations
    6. Select your application and set the severity to be the one lower than that you specify in your code.
    Hope it helps.
    Regards,
    Srinivasan Subbiah

  • Problem while creating metadata files

    I created metadata files to add styles to Photoshop Elements 8 (in Windows 7) and included them in the C:\Program Data\Adobe\Photoshop Elements\8.0\Photo Creations\layer styles folder.  The first several worked great and successfully showed up in the Styles Palette.  Later, when I was trying to add more styles I received a message in PSE 'Could not load styles because the file could not be found'.  I closed PSE.  Now every time I open Editor I receive this message and it locks up the program.  The only way I can close PSE is through Task Manager.
    Any suggestions on how to correct this?

    I put a copy of the third party styles in the Photoshop Elements Preset/styles folder and in the Photoshop Elements 8.0/Photo Creations/layer styles folder.  From the Photo Creations/layer styles folder I selected an existing metadata file and copied it to my desktop.  I changed the first part of the file name to the name of the new style (example: glitter 001.metadata).  I then right clicked and opened with Notepad.  When I found the name of the existing file I was using, I changed the name before the equation sign to the name of my new layer style with no spaces between words.  Then I changed the name after the equation sign to the name of the new style with spaces between words (glitter001=glitter 001).  I then deleted the lines below this except for the line /PSEContent leaving one space between the lines.  I saved and closed the document.  I then put the saved file in the Photo Creations/layer style folder.  When I started PSE I held down the sift key when I selected Editor.  As I said, the first two I did showed up fine.  The next ones is where I had the problem.
    I did all of this in the Admin account.  When I go into my user account, PSE works but now I am afraid to try to add the layer styles.

  • Problem in creating control files

    Hi
    I am using oracle 9i
    I want to import the excel sheet data into the database.
    Please let me know how to create the control file for sql loader.
    For that i created control file using the following code
    set echo off ver off feed off pages 0
    accept tname prompt 'Enter Name of Table: '
    accept dformat prompt 'Enter Format to Use for Date Columns: '
    spool &tname..ctl
    select 'LOAD DATA'|| chr (10) ||
    'INFILE ''' || lower (table_name) || '.dat''' || chr (10) ||
    'INTO TABLE '|| table_name || chr (10)||
    'FIELDS TERMINATED BY '','''||chr (10)||
    'TRAILING NULLCOLS' || chr (10) || '('
    from user_tables
    where table_name = upper ('&tname');
    select decode (rownum, 1, ' ', ' , ') ||
    rpad (column_name, 33, ' ') ||
    decode (data_type,
    'VARCHAR2', 'CHAR NULLIF ('||column_name||'=BLANKS)',
    'FLOAT', 'DECIMAL EXTERNAL NULLIF('||column_name||'=BLANKS)',
    'NUMBER', decode (data_precision, 0,
    'INTEGER EXTERNAL NULLIF ('||column_name||
    '=BLANKS)', decode (data_scale, 0,
    'INTEGER EXTERNAL NULLIF ('||
    column_name||'=BLANKS)',
    'DECIMAL EXTERNAL NULLIF ('||
    column_name||'=BLANKS)')),
    'DATE', 'DATE "&dformat" NULLIF ('||column_name||'=BLANKS)', null)
    from user_tab_columns
    where table_name = upper ('&tname')
    order by column_id;
    select ')'
    from dual;
    spool off
    and after then i have written in the commond prompt like
    C:\sqlldr username/password@host controlfile
    then it is giving like this
    Commit point reached - logical record count 1
    Any Help?
    Thank you

    What does it say in the .log file?
    What records are in the .bad file?
    How many records in the data file - if 1 then it's all good.
    Excel often puts column headings in the .csv file - you may need to SKIP the first record (look it up in the docs).
    Don't hard code the filename into the control file - it's easier to do that when you load:
    sqlldr u/p control=controlfile data=datafileRead carefully what FLOAT and DECIMAL mean. Unless you are dealing with binary datatypes (you aren't) you probably don't need these. Only DATE needs careful treatment.
    Also, consider pulling the data in using an external table (if it is on the Oracle server already). Again, look it up in the docs - you'll still have to get the control definition right...
    Regards Nigel

  • Node.js loss of permission to write/create log files

    We have been operating Node.js as a worker role cloud service. To track server activity, we write log files (via log4js) to C:\logs
    Originally the logging was configured with size-based roll-over. e.g. new file every 20MB. I noticed on some servers the sequencing was uneven
    socket.log <-- current active file
    socket.log.1
    socket.log.3
    socket.log.5
    socket.log.7
    it should be
    socket.log.1
    socket.log.2
    socket.log.3
    socket.log.4
    Whenever there is uneven sequence, i realise the beginning of each file revealed the Node process was restarted. From Windows Azure event log, it further indicated worker role hosting mechanism found node.exe to have terminated abruptly.
    With no other information to clue what is exactly happening, I thought there was some fault with log4js roll over implementation (updating to latest versions did not help). Subsequently switched to date-based roll-over mode; saw that roll-over happened every
    midnight and was happy with it.
    However some weeks later I realise the roll-over was (not always, but pretty predictably) only happening every alternate midnight.
    socket.log-2014-06-05
    socket.log-2014-06-07
    socket.log-2014-06-09
    And each file again revealed that midnight the roll-over did not happen, node.exe was crashing again. Additional logging on uncaughtException and exit happens showed nothing; which seems to suggest node.exe was killed by external influence (e.g. process
    kill) but it was unfathomable anything in the OS would want to kill node.exe.
    Additionally, having two instances in the cloud service, we observe the crashing of both node.exe within minutes of each other. Always. However if we had two server instances brought up on different days, then the "schedule" for crashing would
    be offset by the difference of the instance launch dates.
    Unable to trap more details what's going on, we tried a different logging library - winston. winston has the additional feature of logging uncaughtExceptions so it was not necessary to manually log that. Since winston does not have date-based roll-over it
    went back to size-based roll-over; which obviously meant no more midnight crash. 
    Eventually, I spotted some random midday crash today. It did not coincide with size-based rollover event, but winston was able to log an interesting uncaughtException.
    "date": "Wed Jun 18 2014 06:26:12 GMT+0000 (Coordinated Universal Time)",
    "process": {
    "pid": 476,
    "uid": null,
    "gid": null,
    "cwd": "E:
    approot",
    "execPath": "E:\\approot
    node.exe",
    "version": "v0.8.26",
    "argv": ["E:\\approot\\node.exe", "E:\\approot\\server.js"],
    "memoryUsage":
    { "rss": 80433152, "heapTotal": 37682920, "heapUsed": 31468888 }
    "os":
    { "loadavg": [0, 0, 0], "uptime": 163780.9854492 }
    "trace": [],
    "stack": ["Error: EPERM, open 'c:\\logs\\socket1.log'"],
    "level": "error",
    "message": "uncaughtException: EPERM, open 'c:\\logs\\socket1.log'",
    "timestamp": "2014-06-18T06:26:12.572Z"
    Interesting question: the Node process _was_ writing to socket1.log all along; why would there be a sudden EPERM error?
    On restart it could resume writing to the same log file. Or in previous cases it would seem like the lack of permission to create a new log file. 
    Any clues on what could possibly cause this? On a "scheduled" basis per server? Given that it happens so frequently and in sync with sister instances in the cloud service, something is happening in the back scenes which I cannot put a finger to.
    thanks
    The melody of logic will always play out the truth. ~ Narumi Ayumu, Spiral

    Hi,
    It is  strange. From your description, how many instances of your worker role? Do you store the log file on your VM local disk? To avoid this question, the best choice is you could store your log file into azure storage blob . If you do this, all log
    file will be stored on blob storage. About how to use azure blob storage, please see this docs:
    http://azure.microsoft.com/en-us/documentation/articles/storage-introduction/
    Please try it.
    If I misunderstood, please let me know.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Problem to create Excel file

    Hi,
    I'm to create Excel file by C# codes and have got this
    Error 1 Assembly 'Microsoft.Office.Interop.Excel, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' uses 'office, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' which has a higher version than referenced assembly 'office, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'
    Error 2 Assembly 'Microsoft.Office.Interop.Excel, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' uses 'Microsoft.Vbe.Interop, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' which has a higher version than referenced assembly 'Microsoft.Vbe.Interop, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'
    using these codes
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.IO;
    using System.Text.RegularExpressions;
    using System.Globalization;
    using System.Collections;
    using System.Diagnostics;
    using System.Drawing;
    using Microsoft.Office.Interop;
    using Excel = Microsoft.Office.Interop.Excel;
    namespace ns1
    class Program
    static void Main(string[] args)
    string orp_path = "//ABC";
    bool allowappend = true;
    string test = "test";
    Excel.Application app = null;
    Excel.Workbook workbook = null;
    Excel.Worksheet worksheet = null;
    Excel.Range workSheet_range = null;
    object misValue = System.Reflection.Missing.Value;
    Excel.Application xlApp = new
    Microsoft.Office.Interop.Excel.Application();
    workbook = xlApp.Workbooks.Add(misValue);
    workbook = xlApp.Workbooks.Add(misValue);
    worksheet = (Excel.Worksheet)workbook.Worksheets.get_Item(1);
    worksheet.Cells[1, 1] = "Run Date";
    workbook.SaveAs("c:\\" + test + ".xls", Excel.XlFileFormat.xlOpenXMLTemplate, misValue, misValue, misValue, misValue, Excel.XlSaveAsAccessMode.xlExclusive, misValue, misValue, misValue, misValue, misValue);
    workbook.Close(true, misValue, misValue);
    xlApp.Quit();
    releaseObject(worksheet);
    releaseObject(workbook);
    releaseObject(xlApp); ...
    on VS 2013. Any advice?
    Many Thanks & Best Regards, Hua Min

    Hey,
    Not sure what the problem is, I got the code working.
    One thing you're doing wrong though: Excel.XlFileFormat.xlOpenXMLTemplate supposes you're using the file extension ".xlsx" (Open XML format) and not ".xls" (Microsoft Excel 97-2003).
    So you should start by changing either the extension to xlsx or the XlFileFormat to
    xlExcel8.
    For further reference take a look
    here

  • Error in creating log files in create script with ASM

    In our create script we have:
    LOGFILE GROUP 1 ('+REDO1/oradata/cssys/redo01a.log') SIZE 100M;
    I'm getting the error ORA-00301: error adding log file '+REDO1/oradata/cssys/redo01a.log' - file cannot be created.
    ORA-17502: ksfdcre:4 Failed to create file +REDO1/oradata/cssys/redo01a.log 
    ORA-15173: entry 'oradata' does not exist in directory '/'
    The datafile didn't return an error and there we had DATAFILE '+DATA/oradata/cssys/system01.dbf.........
    Not sure why the error occurs on the REDO, the DATA and REDO look fine in ASM. Thanks in advance.

    I have no personal experience with this, but pl see if MOS Doc 604982.1 (Unable To duplicate Database on ASM From one Server To Another Host) is applicable in your case
    HTH
    Srini

  • App Builder not creating log file (CDK.EnableLog=True)

    Hi All,
    I am busy trying to get a small to medium size project to build in LV 8.6.1.
    During the build I get all kinds of weird errors (1503, 1357), even with a trivial app that uses a typedef that has all the classes bundled together.
    As mentioned, the app uses LVOOP, and also lots of similarly named VIs (in different library namespaces though), and I am 99% sure LV is struggling to resolve the same VI name issue.
    In order to debug the build process I have tried inserting the CDK.EnableLog=True key into LabVIEW.ini, but no log file is produced during any of my builds (good or bad!). I have tried using TRUE, true, True for the key but none of these seem to work, when I look in %TEMP% there are files related to the build name_log.txt, but they contain only very basic information like the name and OS etc.
    Any ideas how to get the build log file to appear???
    nrp
    CLA

    Hi,
    The build log process is shown here: http://digital.ni.com/public.nsf/allkb/2E19F4E72C29CF5C862570D2004FC604?OpenDocument
    However this only shows detailed information when creating an installer, is this an executable that you are attempting to distribute when the errors mentioned appear or do the errors occur during the creation of just the executable? (This could be why you get a log with very little information)
    Kind Regards, 
    Applications Engineer

  • Checksum problem in redo log file.

    hi,
    I hv a checksum problem in my redo log file.
    Details.
    1. I m unable to open the database but able to mount it.
    2. Error says checksum error in current redolog group 2, so can't recover thread 1.
    3. Error in group 2 which is active group.
    In Mount stage ...
    4. I Can't switch group as database is not open.
    5. I . can't drop as group is active/current.
    6. I can't clear logfile as thread 1 is not recovered.
    7. I . can't recover through " Recover Database" command
    Pls help,
    Thanks in adv.
    Rup

    Try out these steps provided below, this would make your problem gone.
    sql > shutdown immediate ;
    sql > startup mount ;
    sql > recover database until cance ;
    sql > alter database open resetlogs ;
    make sure to take database backup
    hare krishna
    Alok

Maybe you are looking for