Creating a logging system.

I want to create a logging system that handles the user logging, Database logging, application server logging. and these logging systems are divided into different levels and through XML I want to create a program that handles that which level of exception is generated and it should be stored in the proper level. This is an integrated system, that controlls all these logging.
Can some body help me how to create this logging system.Any Idea about this that which tools should i use and how to start it.
Thank you very much for the response.

There are already APIs for logging which might be interesting to look at:
Sun has introduced a new API for logging in JDK 1.4. Take a look at the package java.util.logging.
If you want use (or must use) a JDK prior to 1.4, an alternative is Log4j from the Apache project (jakarta.apache.org/log4j). Log4j is an open source logging API. The usage and adaption of Log4j is very easy.
I haven't used the Sun API yet but I think Log4j is more flexible. Otherwise the Sun API is a standard API, whereas Log4j is not... Maybe you just take a look at both and decide for yourself!

Similar Messages

  • How to create the log file in remote system using log4j.

    Hi,
    How to create the log file in remote system using log4j. please give me a sample code or related links.The below example i used for create the log file in remote system but it return the below exception.Is there any authandication parameter for accessing the remote path? Please help.
    public class Logging
    Logger log=null;
    FileAppender fileapp=null;
    public Logging(String classname)
    try
    log = Logger.getLogger(classname);
    String path=" [\\192.168.0.14\\c$\\LOG\\d9\\May_08_2008_log.txt|file://\\192.168.0.14\\c$\\LOG\\d9\\May_08_2008_log.txt]";
    fileapp = new FileAppender(new PatternLayout("%r [%t] %-5p %c %x - %m%n"),path, true);
    log.addAppender(fileapp);
    log.info("Logger initilized");
    }catch(Exception ex)
    ex.printStackTrace();
    java.io.FileNotFoundException: \\192.168.0.14\c$\LOG\d9\May_08_2008_log.txt (The network path was not found)
    at java.io.FileOutputStream.openAppend(Native Method)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at org.apache.log4j.FileAppender.setFile(FileAppender.java:290)
    at org.apache.log4j.FileAppender.<init>(FileAppender.java:109)
    at annwyn.logger.BioCapLogger.<init>(Logging.java:23)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Please help.
    Thanks in advance.
    Saravanan.K

    Sorry path is missing for the above request.
    path="\\192.168.0.14\c$\LOG\d9\May_08_2008_log.txt ";
    please help.
    Saravanan.K

  • Create a report using the HEAT Call Logging Systems Hours of Operation

    In the HEAT Call Logging System we have set up the 'Hours of Operation.'
    Now when creating our Crystal Reports we would like to incorporate those hours of operation.
    What I am needing to know is how we can use the hours of operation we set up in HEAT in our Crystal Reports.
    An example of how I picture this working is as follows....
    A call ticket within the HEAT Call Logging System is created at 4:55 pm and assigned to a tech. 
    The tech does not get to the ticket to acknowledge it prior to 5:00 and leaves for the day.
    The tech comes in the next day at 8:00 am and first thing acknowledges the ticket.
    What I would like to see in the reports is by using the 'Hours of Operation' the actual time against the tech is from 4:55 pm to 5:00 pm and then again from 8:00 until the time they acknowledge the ticket.
    This tracking only the hours of operation for every ticket.
    Hope you can help.
    Thank you in advance!

    Here is a link to a sample report that calculates Business Days and Hours during hours of operation. https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a011c418-a375-2b10-2b9c-b070fdba0f84
    It should provide you with the logic to track your ticket hours.

  • System errors -  creating a log file

    Is there any class, method for trapping system, application errors, exceptions and warnings in a system and then creating a log file.

    It sounds like the OP is looking for a way to "listen" for System events and log those to a file. Is this correct? If so, you'll probably need to look at a JNI solution...

  • How to create different log files for each of web applications deployed in OC4J

    Hi All,
    I am using OC4J(from Oracle) v1.0.2.2 and Windows2000. Now I want to know
    1. how to create different log files for each of my deployed web applications ?
    2. what are the advantages in running multiple instances of oc4j and in what case we should run
    multiple instances of OC4J ?
    3. how to run OC4J as Windows2000 Service rather than Windows2000 Application ?
    Thanks and Regards,
    Kumar.

    Hi Avi,
    First of all I have given a first reading to log4j and I think there will some more easy way of logging debugging messages than log4j (If you could provide me a detailed explanation of a servlet,jsp,java bean that uses log4j and how to use log4j then it will be very helpful for me). The other easy ways (if I am not using log4j) to my problem i.e creating different log files for each of web applications deployed in oc4j are
    I have created multiple instances of OC4J that are configured to run on different ports and so on each instance I have deployed a single web application . And I started the 2 oc4j instances by transferring thier error/log messages to a file. And the other way is ..
    I have download from jakarta site a package called servhelper . This servhelper is a thread that is started in a startup servlet and stopped in the destroy method of that startup servlet. So this thread will automatically capture all the system.out.println's and will print those to a file. I believe that this thread program is synchronized. So in this method I need not run multiple instances of OC4J instead each deployed web application on single instance of oc4j uses the same thread program (ofcourse a copy of thread program is put in each of the deployed web applications directories) to log messages on to different log files.
    Can you comment on my above 2 approached to logging debugging messages and a compartive explanation to LOG4J and how to use LOG4J using a simple servlet, simple jsp is appreciated ...
    Thanks and Regards,
    Ravi.

  • Task Manager Not loading Properly. Giving Error No more threads can be created in the System.NAPStatus UI and Some other Task related Errors

    I have a problem with the Task Scheduler. It is not opening properly it is giving Error Message box at this time i am unable to post. The Tasks Scheduler is starts with a error alert "No more threads can be created in the System.NAPStatus UI".
     I am unable to view the history of the tasks schecduled.It is giving message as 
    "The user account does not have permission to Access the Task History."
    How to fix it. It is frustrating as can't able to track my Tasks and Create new Tasks. Any Suggestions helpful.
    Thanks in Advance.
    RehaanKhan. M

    Hi,
    Thanks for your post.
    Please check event viewer if there are some error logs?
    Meanwhile, there is a similar thread has been discussed:
    Receiving error about "no more threads"
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/9a9e22e4-d947-4d19-b06c-aaadda624dbc/receiving-error-about-no-more-threads?forum=winservergen
    Regards.
    Vivian Wang

  • Windows 7 Ultimate isn't installing on my iMac. Setup was unable to create a new system partition or locate an existing system partition

    I have a 21.5" iMac (Late 2012) running OS X Mavericks. I'm trying to install Windows 7 Ultimate via Bootcamp but whenever i get to the setup part it goes wrong
    These are the steps I followed
    I selected all the options since I didn't have the drivers or an install disk
    it copied the Windows 7 iso image, downloaded the support software, and saved the support software to the flash drive (8GB)
    I selected a partition size - I gave windows roughly 100GB
    and I let it install
    Right now I'm at the part where it says " where do you want to install windows? I selected the bootcamp partition and formatted it. It now says
    "Setup was unable to create a new system partition or locate an existing system partition. See the Setup log files for more information"
    WHAT DO I DO?

    I had to read the apple instructions several times before they started to make sense.  I burned my iso onto a DVD and had the required USB for support software.  Are you trying to use the single USB method?
    This article has a lot of info on the single usb method

  • Boot Camp - Setup was unable to create a new system partition....from Windows install

    Hi folks.  So I ran the boot camp wizard and made a USB install key for windows from that.  I boot to it and everything works until I get to the install.  I format the Boot Camp partition as indicated in the walkthrough and then I get "Setup was unable to create a new system partition or locate an existing system partition.  See the Setup log files for more information." from the Windows installer.  What do I do?   Thanks.              

    just to add to the mix. . . i just got a new macbook retina.
    Originally used a USB flash drive. Hit the same barrier described here.
    Spent a few hours with drive unplugging / replugging silliness. No progress. Went back into OSX to attempt using an external DVD drive. There is no option for that in Bootcamp assistant now - must use USB.
    Grabbed a different USB stick and started again. This time I used the other USB port on the macbook (the one on the left). Everything worked fine this time!?
    You still have to go into "advanced options" and hit "format" when you get to the partition screen.
    Moral of the story: different stick, different port. Sounds random. If that doesn't work, try changing your socks and putting on a hat.
    Good luck!

  • Steps to create a logical system for client 001.

    Hi,
    In client 000 go to transaction scc4. There you create your new client for sap netweaver abap trial version for BI?
    Here, can you give me steps to create a logical system with client 001 using tcode scc4.
    Thanks,
    Kannan

    hi
    &#61656;     First log on to SAP R/3 server connections Go to SCC4 in R/3 & in Scc4 BW server. A screen opens in that logical name of the system would be opened in both (R/3 & BW).
    &#61656;     Take notepad in it save .R/3 & BW logical names go to R/3 & click SM59 to create R/3 connections click then a screen opens gives BW logical name in RFC Destination option & give connection. type 3 & give some description & then press enter.
    &#61656;     You will get another screen under it then at target host gives BW server name we will get it from BW logon change ID, IP address option & give the system no. The system no go to logon pad just drag it then you will see the name.
    &#61656;     Then click on log on securities go to log on give BW server details like No, client user Password. Then save it then click test connection tab if there are errors then it gives yellow color if they are no error the whole thing come as white.
    &#61656;     Then click on the Remote Logon then we go to BW server give RFC – SM59 & click create. Then give the server name which is at the bottom right corner give it then give the no, name, password in logon Security save it & test connection & then remote logon.
    &#61656;     R/3 - B W - R/3
    &#61656;     Logical connection source system connection is used to transfer the data from R/3 to BW. Go to BW system& click RSA1 go to source system option go to top to the source systems right click on it. Then click create then a screens opens then.
    &#61656;     PC &#61664;Flat file ,  DB &#61664; Database
    &#61656;     Select the option manual then a screen appears RFC Destination, Logical source name then click OK  then it goes to opens other screen save it test connection then remote login then it go back to the then a screen opens then click only activate.
    &#61656;     BW &#61664; RS1 &#61664; SOURCE SYSTEM &#61664; CREATE MANUAL AUTOMATIC CELL
    &#61656;     R/3 &#61664; Test connections login &#61664; back &#61664; replicate method &#61664; active data R/3 Source system you will able to.
    regards
    ashwin

  • How to create application log in SAP

    According to my reqirement,I need to display messages in the application log whenever some updation is done.
    How to do create application log and display messages in the application log.

    Hello Smriti
    If you have interface IF_RECA_MESSAGE_LIST available on your system then I highly recommend to use as message collector.
    When you create an instance of the interface (CF_RECA_MESSAGE_LIST=>CREATE) you can provide an application log object.
    The collected messages can easily be saved as log.
    For an example have a look at my Wiki posting [Message Handling - Finding the Needle in the Haystack|https://wiki.sdn.sap.com/wiki/display/profile/2007/07/09/MessageHandling-FindingtheNeedleintheHaystack]
    Regards
      Uwe

  • Create sap-source system in netweaver

    Hello,
    i want to create a R/3-(4.6c)-source system in my Netweaver-BI (2004s), but I have problems with the connection.
    For the connection i created in the Netweaver a new destination and a user "User_A" with the profile "S_BI-WX_RFC / Business Information Warehouse: RFC-User in Warehouse.
    In the R/3 I created a user "User_B" with the profile "S_BI-WX_RFC / Business Information Warehouse, RFC-User Extraction"
    After creating the Source-System in the AWB with the destination and the 2 Users, I have to Log-On as an administrator in the R/3. After Log-In comes the message "User already exists in source system. Only continue if Profile and Password Are Correct."
    Then I have to create the Destination in the R/3. There I fill in the "Logon"-Part my "User_A", but then I get the alert:
    RFC user logon failed. Check the connection. Message no. R3 077.
    Diagnosis: You tried to logon using the RFC user. This action failed.
    System response: Name or Password not correct
    But I'm sure that I made no mistake with the password.
    Has anyone an idea what I did wrong?
    Thanks
    Malte

    Hi,
    Generally we maintain the Destinations and userids in both systems first, and then create the source sytem in AWB of BIW.
    Have you created the Logical system names in both the systems ?
    Have assigned the client to the logical system name to client in both systems?
    Have you mentioned correct client in the destinations?
    With rgds,
    Anil Kumar Sharma .P

  • Oracle BI 11g: Error at the step - "Creating BI Server System Components"

    I am attempting to install Oracle BI 11g on a Windows VM. The installation process completes successfully. However, the configuration process errors out at the step - Creating BI Server System Components. The last entry in the install log is as below:
    [2010-09-24T18:26:12.107+05:30] [as] [NOTIFICATION] [] [oracle.as.install.bi] [tid: 26] [ecid: 0000Ih3l5E00vlx6wBedMG1Cb79200000H,0] Install handler params :-componentName coreapplication_obis1 -componentType OracleBIServerComponent -biApplicationName coreapplication -fmwConfigPath C:\Middleware\user_projects\domains\bifoundation_domain\config\fmwconfig -appServerUsername <Secure value. Cannot be logged> -appServerPassword <Secure value. Cannot be logged> -appServerAdminPort 7001 -appServerManagedPort 9704 -systemAdministratorUsername <Secure value. Cannot be logged> -systemAdministratorPassword <Secure value. Cannot be logged> -repositoryPassword <Secure value. Cannot be logged> -biServerRepositoryFile SampleAppLite.rpd -biPresentationServicesCatalogName SampleAppLite -biPresentationServicesCatalogZipFileName SampleAppLiteCatalog.zip -biSchedulerSchemaUser <Secure value. Cannot be logged> -biSchedulerSchemaPassword <Secure value. Cannot be logged> -actionFrameworkWorkflowServer http://host-name:7001 -actionFrameworkWorkflowService ANALYTICS -actionFrameworkWorkflowSystem obiaftests -databaseType Microsoft SQL Server -connectString sqlservername:port:db -autoCreatePorts -biServerPort 9703 -biServerMonitorPort 9701 -biPresentationServerPort 9710 -biClusterControllerPort 9706 -biClusterControllerMonitorPort 9700 -biJavaHostPort 9810 -biSchedulerPort 9705 -biSchedulerMonitorPort 9708 -biSchedulerScriptRPCPort 9707 -portRangeStart 9700 -portRangeEnd 10000 -skipDomainProvisioning true
    The resource utilization seems to be normal. Netstat confirms that all of the above ports are free. Since there is no explicit error message in the log, we are unable to decipher the exact source for this error.
    Virtual Machine details: Intel Xeon @ 2.67 GHz, Windows Server 2003 SP2, 4GB RAM, 50GB HDD, Static IP
    Oracle BI Schema DB: MS SQL Server
    Any inputs on this error will be greatly appreciated.
    Edited by: OBIGuy on Sep 27, 2010 2:37 PM

    Hi,
    I recenty started instaling OBIEE 11g and got the same error : "Creating BI server system components". I read your solution and would like to know that if this patch is okay to install on a Windows VM (win server 2003 EE, SP2). If yes, after rebooting, do we reinstall ?
    I am also getting the following errors:
    -Executing: opmnctl start coreapplication_obiccs1
    -Executing: opmnctl start coreapplication_obis1
    -Executing: opmnctl start coreapplication_obips1
    -Executing: opmnctl start coreapplication_obisch1
    Thanks in advance.
    HG

  • Create  a file system repository

    Hi all,
    when I create a file system repository in the following solution:
    System Administration &#8594; System Configuration&#8594;Knowledge Management&#8594;Content Management&#8594;Repository Managers &#8594; File System Repository
    There I input the name and the URL which is available on the server.
    Then I go to Content Administration &#8594; KM Content to check the content of the repository I have created , I can find the folder in the first level directory, but why I can't find the text file I create under the second level .
    such as: URL C:/kmtest
            on the server   C:/kmtest/1       
                                 C:/kmtest/1/1.text 
    (I can see the folder 1, but when I click this fodler on  the portal , I can see nothing.)
    When I use System Administration &#8594; Monitoring &#8594; Knowledge
    Management &#8594; Component Monitor to check the status of the repository , I find it was not in green light .
    Then what is the reason ? Thank you if you can help me !

    Check permissions of that folder give full permissions.
    Create a File System Repository
    You map a network drive from the Portal server and create the file repository in the Portal.
    Procedure
    To map a network drive from the portal server
    1.     Log on to the Windows Server of the Portal.
    2.     From the Microsoft Windows Start menu, open Windows Explorer.
    3.     Choose Tools &#61664; Map Network Drive.
    4.     Specify the drive letter for the connection (say V :).
    5.     In Folder, enter the path of the shared folder, (
    kmtest)and choose Finish.
    Create the File Repository in the Portal
    1.     Choose System Administration &#61664; System Configuration &#61664; Knowledge Management &#61664; Content Management &#61664; Repository Managers &#61664; File System Repository.
    2.     Choose New.
    3.     Enter a prefix that describes your folder.
    4.     Enter the value of the drive letter you mapped previously with a forward slash.(/kmtest)
    5.     (optional) Select the checkboxes for layout and properties from Repository Services.
    6.     Choose OK.

  • Cloning of database to same host give error, unable to re-create online log

    clone the database to same host
    oracle version: 9.2.0.5
    os HP
    target db: tardb
    catlog catlog
    auxiliary: auxbr
    After running this script, I am getting error unable to re-create online log.
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 06/08/2009 23:17:38
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06136: ORACLE error from auxiliary database: ORA-00344: unable to re-create online log '/db/app/oracle/product/9.2.0.5/dbs/ /db
    /redolog.001/catalog1/catalog1_log1.rdo'
    ORA-27040: skgfrcre: create error, unable to create file
    HP-UX Error: 2: No such file or directory
    I tried to shutdown, and mount, recover with backup contorlfile until cancel. and open with reset logs ,
    I am not able to make the copy of the database on same host.
    Help is appreciated.
    complete error log
    oracle@dimondz{auxbr}/db/app/oracle/dba/sql> sqlplus '/as sysdba'
    SQL*Plus: Release 9.2.0.5.0 - Production on Mon Jun 8 23:11:23 2009
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to an idle instance.
    SQL> startup nomount pfile='/db/app/oracle/admin/catlog/pfile/initauxbr.ora';
    ORACLE instance started.
    Total System Global Area 219115512 bytes
    Fixed Size 737272 bytes
    Variable Size 83886080 bytes
    Database Buffers 134217728 bytes
    Redo Buffers 274432 bytes
    SQL> create spfile from pfile='/db/app/oracle/admin/catlog/pfile/initauxbr.ora';
    File created.
    SQL> exit
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production
    With the Partitioning option
    JServer Release 9.2.0.5.0 - Production
    oracle@dimondz{auxbr}/db/app/oracle/dba/sql>
    oracle@dimondz{auxbr}/db/app/oracle/dba/sql> rman
    Recovery Manager: Release 9.2.0.5.0 - 64bit Production
    Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
    RMAN> connect catalog rman/rman@catlog
    connected to recovery catalog database
    RMAN> connect target sys/dimondz@tardb
    connected to target database: tardb (DBID=3063303886)
    RMAN> connect auxiliary sys/dimondz@auxbr
    connected to auxiliary database: auxbr (not mounted)
    RMAN>
    RMAN> RUN
    2> {
    3> SET NEWNAME FOR DATAFILE 1 TO '/db/catalog1.001/oradata/system01.dbf';
    4>
    5> SET NEWNAME FOR DATAFILE 2 TO '/db/catalog1.001/oradata/undotbs01.dbf';
    6>
    SET NEWNAME FOR DATAFILE 3 TO '/db/catalog1.001/oradata/ptest01.dbf';
    7> 8>
    9> SET NEWNAME FOR DATAFILE 4 TO '/db/catalog1.001/oradata/users_01.dbf';
    10>
    11> SET NEWNAME FOR DATAFILE 5 TO '/db/catalog1.001/oradata/drsys_01.dbf';
    12>
    13> SET NEWNAME FOR DATAFILE 6 TO '/db/catalog1.001/oradata/qms_dat_01.dbf';
    14>
    15> SET NEWNAME FOR DATAFILE 7 TO '/db/catalog1.001/oradata/ultradat_01.dbf';
    16>
    17> SET NEWNAME FOR DATAFILE 11 TO '/db/catalog1.001/oradata/xmltbs_01.dbf';
    18>
    19> DUPLICATE TARGET DATABASE TO auxbr
    20>
    21> pfile=/db/app/oracle/admin/catlog/pfile/initauxbr.ora
    22> logfile
    23> ' /db/redolog.001/catalog1/catalog1_log1.rdo' size 5m,
    24> ' /db/redolog.003/catalog1/catalog1_log2.rdo' size 5m,
    25> ' /db/redolog.002/catalog1/catalog1_log3.rdo' size 5m;
    26> }
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    Starting Duplicate Db at 08-JUN-09
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: sid=11 devtype=DISK
    printing stored script: Memory Script
    set until scn 229907626;
    set newname for datafile 1 to
    "/db/catalog1.001/oradata/system01.dbf";
    set newname for datafile 2 to
    "/db/catalog1.001/oradata/undotbs01.dbf";
    set newname for datafile 3 to
    "/db/catalog1.001/oradata/ptest01.dbf";
    set newname for datafile 4 to
    "/db/catalog1.001/oradata/users_01.dbf";
    set newname for datafile 5 to
    "/db/catalog1.001/oradata/drsys_01.dbf";
    set newname for datafile 6 to
    "/db/catalog1.001/oradata/qms_dat_01.dbf";
    set newname for datafile 7 to
    "/db/catalog1.001/oradata/ultradat_01.dbf";
    set newname for datafile 11 to
    "/db/catalog1.001/oradata/xmltbs_01.dbf";
    restore
    check readonly
    clone database
    executing script: Memory Script
    executing command: SET until clause
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    Starting restore at 08-JUN-09
    using channel ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: starting datafile backupset restore
    channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
    restoring datafile 00001 to /db/catalog1.001/oradata/system01.dbf
    restoring datafile 00002 to /db/catalog1.001/oradata/undotbs01.dbf
    restoring datafile 00003 to /db/catalog1.001/oradata/ptest01.dbf
    restoring datafile 00004 to /db/catalog1.001/oradata/users_01.dbf
    restoring datafile 00005 to /db/catalog1.001/oradata/drsys_01.dbf
    restoring datafile 00006 to /db/catalog1.001/oradata/qms_dat_01.dbf
    restoring datafile 00007 to /db/catalog1.001/oradata/ultradat_01.dbf
    restoring datafile 00011 to /db/catalog1.001/oradata/xmltbs_01.dbf
    channel ORA_AUX_DISK_1: restored backup piece 1
    piece handle=/dump/DBA/RMAN/tardb_bkup/db_tardb_f_04kgt77h tag=WHOLE_DATABASE_tardb params=NULL
    channel ORA_AUX_DISK_1: restore complete
    Finished restore at 08-JUN-09
    sql statement: CREATE CONTROLFILE REUSE SET DATABASE "auxbr" RESETLOGS ARCHIVELOG
    MAXLOGFILES 5
    MAXLOGMEMBERS 5
    MAXDATAFILES 100
    MAXINSTANCES 1
    MAXLOGHISTORY 907
    LOGFILE
    GROUP 1 ' /db/redolog.001/catalog1/catalog1_log1.rdo' SIZE 5242880 ,
    GROUP 2 ' /db/redolog.003/catalog1/catalog1_log2.rdo' SIZE 5242880 ,
    GROUP 3 ' /db/redolog.002/catalog1/catalog1_log3.rdo' SIZE 5242880
    DATAFILE
    '/db/catalog1.001/oradata/system01.dbf'
    CHARACTER SET UTF8
    printing stored script: Memory Script
    switch clone datafile all;
    executing script: Memory Script
    datafile 2 switched to datafile copy
    input datafilecopy recid=1 stamp=689037446 filename=/db/catalog1.001/oradata/undotbs01.dbf
    datafile 3 switched to datafile copy
    input datafilecopy recid=2 stamp=689037446 filename=/db/catalog1.001/oradata/ptest01.dbf
    datafile 4 switched to datafile copy
    input datafilecopy recid=3 stamp=689037446 filename=/db/catalog1.001/oradata/users_01.dbf
    datafile 5 switched to datafile copy
    input datafilecopy recid=4 stamp=689037446 filename=/db/catalog1.001/oradata/drsys_01.dbf
    datafile 6 switched to datafile copy
    input datafilecopy recid=5 stamp=689037446 filename=/db/catalog1.001/oradata/qms_dat_01.dbf
    datafile 7 switched to datafile copy
    input datafilecopy recid=6 stamp=689037446 filename=/db/catalog1.001/oradata/ultradat_01.dbf
    datafile 11 switched to datafile copy
    input datafilecopy recid=7 stamp=689037446 filename=/db/catalog1.001/oradata/xmltbs_01.dbf
    printing stored script: Memory Script
    set until scn 229907626;
    recover
    clone database
    delete archivelog
    executing script: Memory Script
    executing command: SET until clause
    Starting recover at 08-JUN-09
    using channel ORA_AUX_DISK_1
    starting media recovery
    channel ORA_AUX_DISK_1: starting archive log restore to default destination
    channel ORA_AUX_DISK_1: restoring archive log
    archive log thread=1 sequence=3
    channel ORA_AUX_DISK_1: restoring archive log
    archive log thread=1 sequence=4
    channel ORA_AUX_DISK_1: restored backup piece 1
    piece handle=/dump/DBA/RMAN/tardb_bkup/db_arch_tardb_f_06kgt7ih tag=ARCHIVE_LOG_tardb_BACKUP params=NULL
    channel ORA_AUX_DISK_1: restore complete
    archive log filename=/oradump/oradata/catlog/arch/catlog-1231663410_1_3.arc thread=1 sequence=3
    channel clone_default: deleting archive log(s)
    archive log filename=/oradump/oradata/catlog/arch/catlog-1231663410_1_3.arc recid=1 stamp=689037447
    archive log filename=/oradump/oradata/catlog/arch/catlog-1231663410_1_4.arc thread=1 sequence=4
    channel clone_default: deleting archive log(s)
    archive log filename=/oradump/oradata/catlog/arch/catlog-1231663410_1_4.arc recid=2 stamp=689037447
    media recovery complete
    Finished recover at 08-JUN-09
    printing stored script: Memory Script
    shutdown clone;
    startup clone nomount pfile= '/db/app/oracle/admin/catlog/pfile/initauxbr.ora';
    executing script: Memory Script
    database dismounted
    Oracle instance shut down
    connected to auxiliary database (not started)
    Oracle instance started
    Total System Global Area 219115512 bytes
    Fixed Size 737272 bytes
    Variable Size 83886080 bytes
    Database Buffers 134217728 bytes
    Redo Buffers 274432 bytes
    sql statement: CREATE CONTROLFILE REUSE SET DATABASE "auxbr" RESETLOGS ARCHIVELOG
    MAXLOGFILES 5
    MAXLOGMEMBERS 5
    MAXDATAFILES 100
    MAXINSTANCES 1
    MAXLOGHISTORY 907
    LOGFILE
    GROUP 1 ' /db/redolog.001/catalog1/catalog1_log1.rdo' SIZE 5242880 ,
    GROUP 2 ' /db/redolog.003/catalog1/catalog1_log2.rdo' SIZE 5242880 ,
    GROUP 3 ' /db/redolog.002/catalog1/catalog1_log3.rdo' SIZE 5242880
    DATAFILE
    '/db/catalog1.001/oradata/system01.dbf'
    CHARACTER SET UTF8
    printing stored script: Memory Script
    catalog clone datafilecopy "/db/catalog1.001/oradata/undotbs01.dbf";
    catalog clone datafilecopy "/db/catalog1.001/oradata/ptest01.dbf";
    catalog clone datafilecopy "/db/catalog1.001/oradata/users_01.dbf";
    catalog clone datafilecopy "/db/catalog1.001/oradata/drsys_01.dbf";
    catalog clone datafilecopy "/db/catalog1.001/oradata/qms_dat_01.dbf";
    catalog clone datafilecopy "/db/catalog1.001/oradata/ultradat_01.dbf";
    catalog clone datafilecopy "/db/catalog1.001/oradata/xmltbs_01.dbf";
    switch clone datafile all;
    executing script: Memory Script
    cataloged datafile copy
    datafile copy filename=/db/catalog1.001/oradata/undotbs01.dbf recid=1 stamp=689037456
    cataloged datafile copy
    datafile copy filename=/db/catalog1.001/oradata/ptest01.dbf recid=2 stamp=689037456
    cataloged datafile copy
    datafile copy filename=/db/catalog1.001/oradata/users_01.dbf recid=3 stamp=689037456
    cataloged datafile copy
    datafile copy filename=/db/catalog1.001/oradata/drsys_01.dbf recid=4 stamp=689037457
    cataloged datafile copy
    datafile copy filename=/db/catalog1.001/oradata/qms_dat_01.dbf recid=5 stamp=689037457
    cataloged datafile copy
    datafile copy filename=/db/catalog1.001/oradata/ultradat_01.dbf recid=6 stamp=689037457
    cataloged datafile copy
    datafile copy filename=/db/catalog1.001/oradata/xmltbs_01.dbf recid=7 stamp=689037457
    datafile 2 switched to datafile copy
    input datafilecopy recid=1 stamp=689037456 filename=/db/catalog1.001/oradata/undotbs01.dbf
    datafile 3 switched to datafile copy
    input datafilecopy recid=2 stamp=689037456 filename=/db/catalog1.001/oradata/ptest01.dbf
    datafile 4 switched to datafile copy
    input datafilecopy recid=3 stamp=689037456 filename=/db/catalog1.001/oradata/users_01.dbf
    datafile 5 switched to datafile copy
    input datafilecopy recid=4 stamp=689037457 filename=/db/catalog1.001/oradata/drsys_01.dbf
    datafile 6 switched to datafile copy
    input datafilecopy recid=5 stamp=689037457 filename=/db/catalog1.001/oradata/qms_dat_01.dbf
    datafile 7 switched to datafile copy
    input datafilecopy recid=6 stamp=689037457 filename=/db/catalog1.001/oradata/ultradat_01.dbf
    datafile 11 switched to datafile copy
    input datafilecopy recid=7 stamp=689037457 filename=/db/catalog1.001/oradata/xmltbs_01.dbf
    printing stored script: Memory Script
    Alter clone database open resetlogs;
    executing script: Memory Script
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 06/08/2009 23:17:38
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06136: ORACLE error from auxiliary database: ORA-00344: unable to re-create online log '/db/app/oracle/product/9.2.0.5/dbs/ /db
    /redolog.001/catalog1/catalog1_log1.rdo'
    ORA-27040: skgfrcre: create error, unable to create file
    HP-UX Error: 2: No such file or directory
    RMAN>
    I tried to shutdown and open with resetlogs , it still error
    oracle@dimondz{auxbr}/db/app/oracle/dba/sql> sqlplus '/as sysdba'
    SQL*Plus: Release 9.2.0.5.0 - Production on Mon Jun 8 23:27:05 2009
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production
    With the Partitioning option
    JServer Release 9.2.0.5.0 - Production
    SQL> shutdown immediate;
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount;
    ORACLE instance started.
    Total System Global Area 219115512 bytes
    Fixed Size 737272 bytes
    Variable Size 83886080 bytes
    Database Buffers 134217728 bytes
    Redo Buffers 274432 bytes
    Database mounted.
    SQL> recover database until cancel using backup controlfile;
    ORA-00279: change 229907626 generated at 06/06/2009 11:58:09 needed for thread
    1
    ORA-00289: suggestion : /oradump/oradata/catlog/arch/catlog-1814470384_1_5.arc
    ORA-00280: change 229907626 for thread 1 is in sequence #5
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    CANCEL
    Media recovery cancelled.
    SQL> alter database open resetlogs;
    alter database open resetlogs
    ERROR at line 1:
    ORA-00344: unable to re-create online log '/db/app/oracle/product/9.2.0.5/dbs/
    /db/redolog.001/catalog1/catalog1_log1.rdo'
    ORA-27040: skgfrcre: create error, unable to create file
    HP-UX Error: 2: No such file or directory
    SQL>
    Thanks, Your help and guide will appreciated very much.

    Hello,
    The directory for the creation of the logfiles does not exist, from the error:
    RMAN-06136: ORACLE error from auxiliary database: ORA-00344: unable to re-create online log '/db/app/oracle/product/9.2.0.5/dbs/ /db
    /redolog.001/catalog1/catalog1_log1.rdo'
    ORA-27040: skgfrcre: create error, unable to create file
    HP-UX Error: 2: No such file or directoryI.e., there is no such directory as *'/db/app/oracle/product/9.2.0.5/dbs/ /db/redolog.001/catalog1/catalog1_log1.rdo'*
    Your db_recovery_file_dest parameter may be set here, therefore change this:
    '/db/redolog.001/catalog1/catalog1_log1.rdo' size 5m,
    ' /db/redolog.003/catalog1/catalog1_log2.rdo' size 5m,
    ' /db/redolog.002/catalog1/catalog1_log3.rdo' size 5m;To this:
    'catalog1_log1.rdo' size 5m,
    'catalog1_log2.rdo' size 5m,
    'catalog1_log3.rdo' size 5m;And try again.

  • How to create different log files for different users in log4j

    I want to create different logs for different users, using different appenders for each user so that logs are created in his file only.
    Confusion:How to direct them to different files in my logger class

    Hi Avi,
    First of all I have given a first reading to log4j and I think there will some more easy way of logging debugging messages than log4j (If you could provide me a detailed explanation of a servlet,jsp,java bean that uses log4j and how to use log4j then it will be very helpful for me). The other easy ways (if I am not using log4j) to my problem i.e creating different log files for each of web applications deployed in oc4j are
    I have created multiple instances of OC4J that are configured to run on different ports and so on each instance I have deployed a single web application . And I started the 2 oc4j instances by transferring thier error/log messages to a file. And the other way is ..
    I have download from jakarta site a package called servhelper . This servhelper is a thread that is started in a startup servlet and stopped in the destroy method of that startup servlet. So this thread will automatically capture all the system.out.println's and will print those to a file. I believe that this thread program is synchronized. So in this method I need not run multiple instances of OC4J instead each deployed web application on single instance of oc4j uses the same thread program (ofcourse a copy of thread program is put in each of the deployed web applications directories) to log messages on to different log files.
    Can you comment on my above 2 approached to logging debugging messages and a compartive explanation to LOG4J and how to use LOG4J using a simple servlet, simple jsp is appreciated ...
    Thanks and Regards,
    Ravi.

Maybe you are looking for

  • ITunes slow to open on Windows 7 64 Bit

    I have been having issues ever since iTunes 10.6.3 and iOS 5.1.1, when I go to desktop and hit my iTunes icon to open it it takes like up to 45 seconds before iTunes opens up on my computer. I have done everything known to correct it myself and nothi

  • Look and Feel

    Salutations, I am writing a simple swing program that when the user clicks a button corresponding to a look and feel name ie "Metal" etc. the Look and Feel is Changed, it works great except for one problem, it will not change to the "Metal" look and

  • RSA1 infosources under wrong SID after system copy and BDLS has run

    Hi – we are a BW3.5 SP#21 system on 10202 and hpux 11.23 (ia64).  We have an R/3 system connected to the BW system for extracts.  Extracts work fine in the productive environment.  So 1 production BW system, and 1 production R/3 system.  We also have

  • Airplay symbol not showing on any device

    the airplay symbol not showing on any device. did al the steps on apple support. 1. apple tv and iphone/ipad/macbookair are really on the same wifi; 2. restart my apple tv don't know what to do anymore

  • IPod touch 4g won't connect to home network

    I got my iPod two weeks ago and from day 1 I've had trouble with connecting it to my home network. Whenever I tried to press on my home network 2WIRE049, and enter the WEP code it would just do nothing. It never connects. Even though I have entered m