I deleted listener.log file !!!!

HELP !
I was reading a book , and tried something stupid which is deleting the listener.log file because it was huge!
and now I'm getting the following error message:
ORA-00313: open failed for members of log group 1 of thread 1
ORA-00312: online log 1 thread 1: '/oracle/oradata/work/redo102.log'
I don't have a copy of the file , I just typed :
rm '/oracle/oradata/work/redo102.log'
and it's gone , and now I'm in trouble !
it's 2:00 AM here , please help me out !

Bomayed,
I'm afraid, you are not very clear in what do you want to achieve. Open the db after loss a redolog file, or import ?
appearantly I have deleted a redo log fie That's why I never use .log as extension name for a redolog file... this is not a log as alert.log or listener.log...
Anyway, you don't need to restore whole database.
SQL> select * from v$logfile;
    GROUP# STATUS  TYPE
MEMBER
         3         ONLINE
/data/ora/H89UCBAC/u03/redo/log03.dbf
         2         ONLINE
/data/ora/H89UCBAC/u02/redo/log02.dbf
         1         ONLINE
/data/ora/H89UCBAC/u01/redo/log01.dbf
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> !ls /data/ora/H89UCBAC/u0?/redo
/data/ora/H89UCBAC/u01/redo:
log01.dbf
/data/ora/H89UCBAC/u02/redo:
log02.dbf
/data/ora/H89UCBAC/u03/redo:
log03.dbf
SQL> !mv /data/ora/H89UCBAC/u03/redo/log03.dbf /data/ora/H89UCBAC/u03/redo/_log03.dbf
SQL> !rm /data/ora/H89UCBAC/u03/redo/log03.dbf
rm: /data/ora/H89UCBAC/u03/redo/log03.dbf: A file or directory in the path name does not exist.
SQL> startup
ORACLE instance started.
Total System Global Area  562005496 bytes
Fixed Size                   742904 bytes
Variable Size             402653184 bytes
Database Buffers          157286400 bytes
Redo Buffers                1323008 bytes
Database mounted.
ORA-00313: open failed for members of log group 3 of thread 1
ORA-00312: online log 3 thread 1: '/data/ora/H89UCBAC/u03/redo/log03.dbf'
SQL> recover database until cancel;
Media recovery complete.
SQL> alter database open resetlogs;
Database altered.
SQL> !ls /data/ora/H89UCBAC/u0?/redo
/data/ora/H89UCBAC/u01/redo:
log01.dbf
/data/ora/H89UCBAC/u02/redo:
log02.dbf
/data/ora/H89UCBAC/u03/redo:
_log03.dbf  log03.dbf
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area  562005496 bytes
Fixed Size                   742904 bytes
Variable Size             402653184 bytes
Database Buffers          157286400 bytes
Redo Buffers                1323008 bytes
Database mounted.
Database opened.
SQL> Nicolas.

Similar Messages

  • Need to Create a New Listener Log file 9i

    Hi, I have a issue with a oracle 9i database.
    First the listener.log file is 1.2G not good on a 25G server..
    How do you create and delete the listener file? Windows 2000 OS...
    Second I also have an issue with the archive log files... I have about 150 file 102M each...Again Not good...
    Need HELP drowning in a sea of oracle... Given the Shrink command....
    At least the Listener issue first then the archive log problem..
    Thank you...

    carlo_sc wrote:
    yes, we normally do a full daily backup and the archive logs are then deleted..But the Job didn't finish
    last night. Also we had big Network issue yesterday and I believe that caused the issue with this server
    causing an excessive amount of log files to be created...
    So with simply thing with lister is just too:
    1) stop listener service
    2) delete Log file.... (that won't mess anything up on restart ) I'm very skittish about manually deleting stuff from oracle..
    Got burned in Sept of last year big timeIt's just a log file. It's for your own use if needed. oracle doesn't use it or require it. You even have an option in the listener to not even write to it in the first place.
    3) restart listener service
    The archive logs : What if I move some of the files to another location then perform the a full daily backup will the that
    solve my archive log issues....
    Thanks for all the quick responses
    Edited by: carlo_sc on Jan 15, 2010 10:09 AMYou say you already have a backup job that gets the archivelogs and deletes them after backup? And the only real problem here is that it failed? Fix the failure and run it again. You can, in a pinch, manually move the archivelogs, but then YOU are responsible for keeping up with them.
    Edited by: EdStevens on Jan 15, 2010 9:32 AM

  • How to delete archive log files from ASM through Grid Control

    Hi
    Anybody suggest me how to delete archive log files from ASM through Grid Control.
    Thanks

    It is important to specify both, the oracle version and os version when posting, so confusions can be avoided.
    In this particular case, since you are referring to asm and grid control you could be talking about either 10gR1, 10gR2 or 11gR1; but I strongly suggest you to avoid us to be guessing. In either case, you sould go to the maintenance tab of the target database and program a scheduled 'delete noprompt obsolete;' procedure. This will purge the information stored at the Flash recovery area, which I assume you have declared inside the ASM.
    ~ Madrid
    http://hrivera99.blogspot.com/

  • Different listener log file  in RAC system

    we have 4 nodes 11.1.0.7 RAC at redhat 5.1 linux system.
    I just find there are two listener log file (listener.log; listener_nodename.log ) in each node.
    I want to know which difference function is in both listener.log and listener_nodename.log?
    When or which condition does node run( record data) in listener.log?
    When or which condition does node run( record data) in listener_nodename.log
    I saw the 3 node3 listener_nodename.log is wroking on and one node listener.log is workig on.
    why?
    Does some experts explain this point for me?
    Thanks

    I make some clears for this requirements.
    we have a schedule backup and stores in ASM diskgroup in SAN.
    As system admin and policy of SAN disaster recovery, we need to generate backup in a local file system.
    in this case, we only backup database plus archival files in external file system. but I still saw snapshot control file is still put into default linux location.
    I am not able to see this snapshot in external file system.
    For SAN disaster recovery, do we need to save a control file snapshot in external file?
    Can I apply BACKUP CURRENT CONTROLFILE TO DESTINATION "external file path" for SAN disaster recovery?
    Thanks in advance!
    Jin

  • How can I delete a Log File in EM

    I created a log file in the Log Configuration from "SOA Infrastructure -> logs -> Log Configuration", but later I found I cannot remove the new created log file. There only are Create, Create Like, Edit Configuration, View Configuration options in EM. Is there any way to delete the log file? I am using SOA suite 11.1.1.3 Thanks.

    Highlight the said file on the Music section of your Library, and press the Backspace key.  When asked whether you want to move to the trash, say yes.  Then you may download it again looking in Your Account in the purchased section.

  • Manual delete archived log files

    Because we don't have RMAN in our development server, I need to use manual operation to delete all archived logs. Is my procedure correct and safe?
    SHUTDOWN IMMEDIATE
    STARTUP MOUNT
    ALTER DATABASE NOARCHIVELOG;
    EXITRun OS command to manually delete archived log files:
    rm /oradata/arch/*
    Login to sqlplus
    SHUTDOWN IMMEDIATE
    STARTUP MOUNT
    ALTER DATABASE ARCHIVELOG;
    STARTUP OPENThanks!

    linuxos wrote:
    Oh I suppose RMAN need to be configured somthing before use. I tried it, and find no pre-requisite is required. Thanks!
    If the archives are deleted manually in open mode, how can Oracle match the archived logs' retention policy? Does Oracle store the archived logs in data dictionary?While you can delete archivelogs manually any time you want, you should let rman manage them with appropriate rman commands, preferably in a script that you schedule for regular execution.
    Some of your questions lead me to question if you understand that archivelogs are not actively open by the database, and they technically are not part of the database. They are simply a series of "offline" copies of the online redo logs. They are written to once, when an online redo is being archived, then they just sit there until needed for a recovery.

  • Regarding listener.log file

    Hi,
    The listener.log file is showing the following code snippet.But when I put this code to my source file (Automation Plugin), it is giving error as 'FullPathToAlias' unrecognised symbol.
    // Move this to the top of the routine!
    Handle aliasValue = NULL;
    FullPathToAlias("C:\Test.jpg", aliasValue);
    Do I have to include any header file? Does any one have any idea? I am just wanting to dispaly an image preview on dialog box(Automation plugin).
    Please give any idea how can I get the image referrence for the first time from the Hard Disk?
    Can anyone help me out.....................?
    Thanks and Regards

    Mmh, so you're trying to do something like a file-preview?
    I don't know if this is possible, mainly because at the moment
    I can see no way getting any image data before you've loaded
    the image in photosphop (with just using the sdk and not any
    mac/win api)
    If you're developing only for windows targets, you might want to
    try to develop a mfc type plugin like the "mfcplugin" from the filter-
    plugin examples. It does give a preview of the result of an filter
    applied to an image, so I'd guess you can change this with the help of the win-api to preview some picture file. For MFC there are also some
    nice solutions on codeproject you could easily integrate in your plugin:
    a thumbnail control:
    http://www.codeproject.com/miscctrl/thumbnailctrl.asp
    and a picture control:
    http://www.codeproject.com/cs/miscctrl/ScalablePictureBox.asp
    Otherwise the "dissolve"-plugin from the filters example is for mac and win os's and offers also a preview (of a filter application), maybe this will give you some more insight.

  • Want to delete out.log files

    Log files having a file name of {servername}-out
    n.log (where
    n is a numeric identifying separate log files) accumulate in
    great numbers in the folder, \JRun4\logs\. Some log files appear to
    expand beyond their typical 200kb size into the hundreds of
    megabyte range. We're looking for a solution that will
    automatically delete these log files before they accumulate beyond
    control.
    What might be available to handle this, such as a solution
    that will delete old log files after a certain limit is reached?
    We are running CF MX 7.02 on Window 2003 OS.

    videveloper wrote:
    > Log files having a file name of {servername}-out
    n.log (where
    n is
    > a numeric identifying separate log files) accumulate in
    great numbers in the
    > folder, \JRun4\logs\. Some log files appear to expand
    beyond their typical
    > 200kb size into the hundreds of megabyte range. We're
    looking for a solution
    > that will automatically delete these log files before
    they accumulate beyond
    > control.
    >
    > What might be available to handle this, such as a
    solution that will delete
    > old log files after a certain limit is reached?
    Did you try the JRun update:
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=8698aeb8
    Jochem
    Jochem van Dieten
    Adobe Community Expert for ColdFusion

  • Listener log file trimming

    Hi all,
    I have a production database on HP-UX server. and in my /oracle directory, i have the listener.log and sqlnet.log files.
    as the size of the the oracle directory increased, i have trimmed the listener.log and sqlnet.log files. those are trimmed but,
    the percent used in the oracle drive has increased instead of decrease.
    i used this command to trim
    listener.log
    sqlnet.logtotal used free
    /dev/vgdb/lvol1 76808192 19619397 53615115 27% /oracle -- before trimming
    /dev/vgdb/lvol1 76808192 22306731 51095739 30% /oracle -- after trimming
    pls. advice me in this regard.

    hi,
    thanks for the reply.
    i trim the listener.log file, after trimming it is writing in the file. but, my used space in mount point is increased. what would be the possible reason for increase ?? . I checked the other files, but i didnot see any increase in size.
    pls. suggest me in this regard.
    thanks and regards.

  • Listener.log file message

    Hi Gurus
    I am using oracle 10g 10.2.0.1 database.
    In my listener log file frequently getting message '* service_update * ' .
    Is it indicating any error ?
    Please update me.
    Regards
    Rabi

    Hi;
    PMON is responsible for updating the listener with information about a particular instance such as load and dispatcher information. Maximum load for dedicated connections is determined by the PROCESSES parameter. The frequency at which PMON provides SERVICE_UPDATE information varies according to the workload of the instance.
    The maximum interval between these service updates is 10 minutes.
    The listener counts the number of connections it has established to the instance but does not immediately get information about connections that have terminated.
    Only when PMON updates the listener via SERVICE_UPDATE is the listener informed of current load. Since this can take as long as 10 minutes, there can be a difference between the current instance load according to the listener and the actual instance load.
    Source:
    DBconsole Initialization Fails Due To Error ORA-12516 [ID 458308.1]
    PS:Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding
    Regard
    Helios

  • Does listener log file need to be purged in Oracle 11g DB

    We have the Oracle 11g database setup. I have a query as to if it is required to purge the listener log file in Oracle 11g database. I believe that the size of the listener log file is infinite and we need to manually purge the listener log file or is there an automatic log rotation of the listener log file?
    I hope my query is clear that if it is required to manually purge the listener log file or is there an automatic log rotation for this file.
    Please revert with the reply to my query.
    Regards

    972145 wrote:
    Thanks for your answer but does it mean that there is no automatic log rotation for the listener log file in Oracle 11g database?
    Regardshttp://uhesse.com/2011/06/01/adrci-a-survival-guide-for-the-dba/
    set the listener home inside adrci and do
    purge -age 2880 -type tracepurges all tracefiles older than 2 days I did not tried this but above link used same for alertlog trace file.

  • Listener log file questions

    I have few queries regarding listener.log file.
    1) What is the use of listener.log file?
    2) Does listener.log file need to be purged?
    3) When is this Listener.log will be created?

    1009230 wrote:
    I have few queries regarding listener.log file.
    1) What is the use of listener.log file?
    take a look at what is IN the log file. Imagine how having access to that information might be useful. The use of the listener log is the same as any othe process log. 99% of the time you have no reason to even look at it. But that other 1%, it is invaluable.
    2) Does listener.log file need to be purged?
    Only if you need the disk space.
    3) When is this Listener.log will be created?Whenever the listener starts and finds it has not already been created.

  • How can we delete archive log files from OEM

    Hi,
    I took backup of the archive log file and deleted it at OS level but in it is not reflecting in the EM can any one tell me how to delete archive log files from OEM.
    any help will be appreciated.
    Regards,
    Ashraf

    This link?
    http://download-west.oracle.com/docs/cd/B10501_01/em.920/a96670/ch_backp.htm#26936

  • How to delete TMS log file and and request log no.

    Dear experts,
    How to delete TMS log file and and request log no...My TMS log is not deleted since 2007. Please advice
    Thnks

    You can delete them from OS level. You can delete safely the following files:
    /usr/sap/trans/log/SAP*.<SID>
    Is this you were looking for?
    Regards,
    Faisal

  • When to delete Archive Log files ? and is safe to delete ?

    Hi all,
    I have a question, my DB is running in Archive Log mode and is growing day by day, so should I delete archive log files and where i find that my which files are old and how to delete theses files, for info I also take full RMAN and export backup regularly .
    abbas

    Well, if you're not comfortable with Backup and Recovery principles, i'd advise you to first read TFM: Backup and Recovery Concept(click) for you data safety's sake.
    Anyway, just to give you a glance at what could happen, immagine suche a situation where your database is made of 5 different datafiles (whatever they are - SYSTEM, SYSAUX, UNDO, ...), controlfiles and online redo logs. If, for example your backup is done in a timeline such as:T0 : Backup datafile F1 and F2
    T1 : Backup datafile F2 and controlfile
    T2 : Backup datafile F3, F4
    T3 : Backup datafile F5
    T0' : Backup datafile F1 and F2
    T1' : Backup datafile F2 and controlfile
    T2' : Backup datafile F3, F4
    T3' : Backup datafile F5
    ...If your server crashes (for example is thrown though the 5th floor window..) in order to make a full recovery, you could proceed multiple ways.
    . Restore files from Tx' backups. Then you'd need every archived redo logs created from T0' to now in order to be able to do a full recovery.
    . Restore files from backups; T3, T0', T2' and rectreate controlfile. Then you'd need every archived redo log created from T3 (inclusive).
    . Restore Tx backup, ...
    . Restore ...
    and so on.
    What's important is that you're at least able to resynch a full-set backup. What I mean is: if you restored "T3, T0', T2' and rectreate controlfile", in order to open the database you'll absolutely need every archived redo log created between T3 and T2' inclusive. If one is missions, you won't be able to open it.
    That is the principle. Read the concept book I linked to get more infos.
    Regards,
    Yoann.

Maybe you are looking for

  • Sorting in report 10g?

    Hello Experts, Could you please help me? Is there a way to sort Oracle report by formula column? We selecting some columns in the report and one of the columns is a complicated select from different tables returning value. We want to sort the report

  • External Display - Blue "sync" arrows/sign

    On several occassions, when I add a secondary monitor to my MBP (Viewsonic, projector, etc.) I get a symbol that looks like the blue sync arrows right in the middle of my second display. I cannot get rid of it for the life of me. Of course it goes aw

  • Loading Pantone Library

    Is there a good way to load a pantone, or a portion of a pantone library into your swatches pallete in INdesign cs5? I found how to add indvidual colors but if I could I would like to add more of the library to my swatches pallete. In a realted issue

  • How do I link AirPlay to my phone?

    How do I mirror what's on my iPhone onto my Apple TV?

  • ADF: Exception at running page

    Hi Everyone, im using Jdev 11G release 1. i have developed a simple ADF Page with some VOs. while running page the output is not displaying instead im getting one Exception: <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives