Best way of switching alertlog

In Unix
I have seen something like:
cat $AL_HOME/alert_SID.log >> $AL_HOME/logging_alert.log
rm $AL_HOME/alert_SID.log
I am not convinced this is the best way.
Wait to see other cooler ways of doing this task.
Message was edited by:
sape007
Message was edited by:
sape007

Whether you use 'rm' or 'mv', in UNIX, if the file is currently open, the inode will remain open.
This is usually not a problem. Most UNIX operating systems allow for multiple inodes to be open. And the next time the Oracle database is shutdown, the inode will be closed. And usually, most UNIX systems have a planned periodic reboot anyway, so it's not a worry.
However, if you want to prevent holding inodes open, then instead of 'mv' or 'rm' just clear the alert log by nulling out the file:
cat /dev/null>alert_sid.log
And if you want a copy of the file for posterity, copy (cp) it first before you null it out.
This usually is more of a concern with the listener log, because it is held open all the time by the listener process. The alert log is actually closed and opened only when a process needs to write to it.

Similar Messages

  • What is the best way to switch off Daylight Saving Time?

    What is the best way to switch off Daylight Saving Time for a DST enabled timezone?

    I've been looking through the related classes and can't seem to find a way to disable DST in any timezone. Probably because they couldn't think of a good reason to want to know what the non-DST time was during DST.
    However, you could easily compute the time without DST if that's what you need.

  • Suggestions on best way to switch b/t Analog and Digit

    I Just finally got myself the Logitech 5450's Speaker which support analog and digital 5. but Im a bit of a novice when it comes to audio stuff and Im just realizing that as great as digital sound is for movies (which support it of course), that unless a games specifically supports Dolby or dts digital output (which most do not), Ive got to switch back to using an analog connection.
    The two annoyances Im left with whenever I need to switch from analog to digital (or vice versa) is swap cable on the sound card (between a coax digital and the "Sub/Center channel" plug of the analog 3-set plug) and Ive got to change the output setting on my sound card to enable/disable the "Digital Output Only" setting.
    Im wondering if anyone has any suggestions on the easiest way to manage these settings so that i can swap between these two modes as easily as possible.
    Thanks in advance!!

    The best way is to use Migration Assistant. When you start up your new machine you will be asked whether you want to migrate data from another machine. This involves connecting them by Firewire cable and starting the source machine in FireWire Target Disk Mode. (New updates may allow doing this via USB, but I don't know how this works).
    You should do this before setting up any user accounts on the new Mac, and should choose to import the user(s) from the old one. You can choose whether to bring applications over: if it's the same version of Leopard this would probably be OK, but many people feel it's better to reinstall. In any event it won't over-write the included Apple applications such as Safari.
    When you have done this you will find your Home Folder there intact, and registered programs will still be registered (unless the registration depends on the particular computer); all your data will be there, including bookmarks and contacts etc.

  • What is the best way to switch from Trial to Purchased

    I have the downloaded trial version of InDesign CS3 and will purchase it.
    What is the best way to accomplish this once the credit card has been debited?
    * Delete the trial version and download the purchased file from Adobe? (I would save off any pages created in the trial version of course).
    * Just enter the serial number provided by Adobe into the trial version I have been using and dont bother downloading the link provided by Adobe?
    * Delete the downloaded trial version and have Adobe send me the box version (taking longer obviously)? Once again, I would save the pages already created?
    Thanks,
    Bob

    Just enter the serial number.
    Note: if you only downloaded InDesign but bought the full suite, you'll
    need to uninstall the trial and install the suite.
    Bob

  • Accidentally ordered phones on wrong accounts, best way to switch numbers?

    I stayed up late to order two AT&T iPhone 5s on the launch day and in my 3am stupor, using two computers, I accidentally swapped the accounts I ordered the phones under.
    I bought a 32GB for myself and a 16GB for my wife, except I ordered my 32GB under the family plan she shares with her family and her 16GB under my individual plan.
    What is the best way to activate these phones to make sure that our phones don't get any of the weird mixed up texts/iMessages and other things I've heard about happening? The guy at AT&T said to just swap the SIM cards once the phones were activated, but I'm wondering if there's a "best practice" for this sort of thing. I've been told by a friend to swap the SIMs BEFORE activation, but I don't know exactly why...
    Any suggestions?

    It sounds like you need to register your own phone number with its own password to create a MyVerizon account for that phone number. The Backup Assistant associated with the account owner is for that line only.

  • Best way to switch to new laptop?

    Hi all. I have a 2 year old MacBook Pro that I'm experiencing a lot of lag with (iTunes stuttering, mouse delays, etc.). I've spent a fair amount of time troubleshooting and haven't come up with anything that has helped. I'm about due for a new laptop anyway and with the release of the new MacBooks I figure it's probably time to pull the trigger.
    I've spent a good deal of time configuring my system and setting up Quicksilver and everything. I'd prefer to not have to do that all over again. I have a Time Machine backup and would like to use that, if possible, to move everything over to the new machine.
    Given the issue with the lag, part of me thinks a clean operating system install would be best. However, unless I'm missing something, I think that would mean having to go in and install all my apps, re-config prefs, etc. I really want to avoid that.
    My thought was to try to just move everything over from the Time Machine backup and see if the new hardware fixes things. Then if not, either spend more time trying to fix the issue or do a clean reinstall and bite the bullet on reconfiguring everything.
    Does that sound like the best way to proceed?
    P.S. Is it as easy as it seems like it might be to move all data, apps, prefs from one machine to another using Time Machine or is it more complicated?

    The best way is to use Migration Assistant. When you start up your new machine you will be asked whether you want to migrate data from another machine. This involves connecting them by Firewire cable and starting the source machine in FireWire Target Disk Mode. (New updates may allow doing this via USB, but I don't know how this works).
    You should do this before setting up any user accounts on the new Mac, and should choose to import the user(s) from the old one. You can choose whether to bring applications over: if it's the same version of Leopard this would probably be OK, but many people feel it's better to reinstall. In any event it won't over-write the included Apple applications such as Safari.
    When you have done this you will find your Home Folder there intact, and registered programs will still be registered (unless the registration depends on the particular computer); all your data will be there, including bookmarks and contacts etc.

  • What is the best way to switch between two sets of bookmarks, say 'work' and 'private'?

    I want to use to sets of bookmarks, so that when I'm working, I'm not distracted by my non-work bookmarks and vice versa. For the last couple of months, I've been using two user accounts to achieve this, but it's a bit of a PITA. Links from other applications, like Thunderbird mail are opened in the default profile. This means when I'm not at work and I click a link in an email, a new window is opened with my Firefox work profile.
    All I need is a trick or an extension to quickly switch bookmark sets. Or a way to switch profiles without opening a new Firefox window. Any ideas?

    You can't get Firefox to work as you are explaining you want. The Default Profile can't be changed on-the-fly to the Profile you are currently using. That message "Firefox is already running ..." comes up due to you or "something" trying to open a 2nd (or subsequent) Profile, unless that '''-no-remote''' command was used to open the additional Profile. And '''-no-remote''' won't work to open the Default Profile without causing issues with how Windows works with "calling up" the Default Browser.
    In response to your last statement - '''''"To separate my work and private stuff I only need to change the contents of my bookmarks bar, so I hoped there was some trick to maintain to groups of bookmarks."'''''
    This extension will allow you to change the Bookmarks Toolbar folder while you are using Firefox.
    https://addons.mozilla.org/en-US/firefox/addon/set-as-bookmarks-toolbar-folde/
    I just installed that extension and verified that it still works in Firefox 35.
    There is a context menu item added for '''"Set as Bookmarks Toolbar Folder"'''' that appears when the Bookmarks Menu Bar drop-down menu is used (not in the Library window or the Bookmarks Sidebar). That menu item appears when you right-click a folder in the Bookmarks Menu folder. It doesn't appear with the "Bookmarks Toolbar" folder or the "Unsorted Bookmarks" folder - only a folder that is in the "Bookmarks Menu".
    That should "solve" wanting to have two different settings for the Bookmarks Toolbar, but the Default Profile "thing" is still an issue for what you are trying to accomplish. I don't "see a fix" for that - without resorting to a 2nd Window User Account which is what I thought you were referring to by "I've been using two user accounts to achieve this" in your initial posting.
    And since the Menu Bar is hidden by default these days, you can use '''Alt''' then '''B''' to open the Bookmarks drop-down from the "revealed" Menu Bar so you can access that '''"Set as Bookmarks Toolbar Folder"''' menu item - without having to show the Menu Bar all the time.
    ''BTW, using "accounts" in lieu of "Profiles" can be confusing when discussing Firefox Profiles.''

  • What is the best way to switch to Thunderbird from Incredimail (old emails and address book)?

    I'm feeling trapped in Incredimail. What is the best way to move over to Thunderbird? I'd like to keep my old emails, attachments and the address book as well. Is this possible?
    I've seen the program "PCVARE IncrediMail Converter" at www.pcvare.com/incredimail-converter.html#dl.
    Isn't there a better way (and free) to get out and away from the Incredimail trap?

    Bonjour,
    Open the address book window of TB. By the menu Tools / Import you can discover the possibilities and files formats accepted by TB for importing.
    I don't know Incredimail, explore the menus of Incredimail to find how you can export data.
    Pierre

  • What is the best way to switch between multiple image buffers? AND How to synchronize saves?

    Hello,
    I'm trying to flip-flop between two buffers and wondering the best possible solution for this.  I'd like to acquire an image in one buffer, send that off to be processed, and then while that's being processed acquire a second image.  Right now I have a "Create IMAQ vi" in a for loop and have it creating 10 image locations.  I'm using a non-NI framegrabber (shame I know) which makes things a bit more difficult to replicate.  I have two while loops.  One while loop currently grabs images from the framegrabber and places in the 10 different locations.  The other while loop currently holds a case structure that does the processing.  I have created a local variable that holds all of the image locations and reads those to be processed.  I don't know if this is actually making things faster or if it's better to just make one image location.
    I have two images attached.  One image is the Grab While loop.  Since I have an array of locations, I have to use a for loop and index each one out to my display. I then have a shift register to carry the image location info over to the next iteration of the while loop.
    The second attachment is the bulk of the main while loop.  It shows what happens to the image while it's being fully processed in the left case structure.  I know it does not look like much but one of the cases (which is called by Boolean Image FFT) is a subVI that does most of the processing.  I believe that is what really slows it down because of how that program is written. 
    The right case structure shows my saving mechanism.  I have two file paths. One to save the image and the other to save the processed image.  I have a sequence to make sure they save at the same time once it gets to that point. 
    The problem though is the following:
    In the grabwhileloop.png, you can see that I have a timing to see how fast the images are being acquired.  This value is approximately 60 fps (which is the rate of the Basler camera).  There is a similar set up in the main loop case structure. This processes very slowly and is approximately 1.04 fps.  Which would mean that the image I turn into an array in the left case structure in the main while loop image is more than likely different than the image I'm trying to save off in the right case structure since the grab is occurring at the same time.  I'd like to have the processed image to save alongside the image I am processing.
    Sorry for the big bulk of text.  This code has come a long way as it is.  If you have any suggestions on making it faster or more efficient please feel free to chime in.
    Thanks,
    Rob
    Attachments:
    GrabWhileLoop.png ‏34 KB
    MainWhileLoop.png ‏68 KB

    Thanks for the comment.  I have looked into the producer/consumer architecture, but to be honest, I'm not quite sure how everything will work while doing that. I have seen the example codes, and I have thought about implementing (or at least attempting to) but I'm still unconvinced that it will run that much more efficiently.  There is other setup outside of the images that had to be done outside of either while loop. Also, I don't know where I would put both loops.
    Last time, I attempted to put the grab while loop inside of the state machine.  Things got chopped because it took so long to go through the main while loop's "acquisition" state (which is really the processing state).  I needed both to simultaneously run.  The grab reset every time it went to the "grab" state which is not what I wanted.  The only way I can thing to have combatted this was to combine the grab and acquisition in the same state.  If that were to happen, I'd take out the for loop and grab one image at a time.  However, that would still probably make things even slower than they already are.
    In terms of the doing something before an image is assigned in for loop, I don't need that pixel sum value to refresh too quickly.  As it is already, the main while loop is slow enough as it is, so I am more afraid that everything will run too slowly the more I do.  I know where the bottleneck is in my code, but I can't really see a way to "even out the flow".  Even if I moved to the other architecture, I feel it'd take the same amount of time that it does already.
    From my debugging, the Image local variable in the main while loop seems to refresh as quickly as the grab while loop spits it out.  Granted once the main while loop finally completes, main images have gone by.  This is what has to be though because it just take up so much processing power to run through the main while loop state.
    As a side note, does labview have an issue with acquiring images in real-time that you have heard of?  I ask because when I run the code, there is a solid white line that I'm supposed to see in my display.  Every time things either time out or something, the line moves which is not supposed to happen.  The line also moves every time I place my mouse cursor in the display or if I spin the mouse wheel to scroll.  If I don't do either of those things, it'll eventually move on its own.

  • Best way to switch from one iPod Classic to another?

    Hi I have had a 120gb iPod Classic for years and I sync it to my login Profile/iTunes on my MacBook. Now I have a new 160gb iPod Classic and would like to do the following:
    --Starting using the new iPod as the one that I sync to with my profile.
    --Give the old one to my daughter or husband and have them start being able to put their stuff on my old iPod, using their own login(s). They could use either their own logins on my MacBook, or their logins on my husband's iMac. I'm running Lion and my husband has Mavericks.
    Any tips on the easiest most hassle free way to do this?

    When you delete the POP account, the email in it will be deleted. Move the emails either into your IMAP folder or move them to a new Mailbox you created in On My Mac section.

  • Best way to switching out 7300 to X1900XT

    I just got my 2.66 with the 7300 card but have decided I'd prefer the X1900XT for it's improved performance with Apeture.
    I have ordered a X1900XT from EBay that was purchased from Apple direct, so I'm not worried about the firmware. What I am interested in knowing is whether I power down and switch the cards, or whether it is better to bring up the system with both cards installed. Are the X1900 drivers already present on the HD, or do I need to do anything special to make the correct drivers ready for use?
    Thanks,
    Graham

    Hi,
    It's just plug-n-play. Power Computer down and before removing the power cable touch the computer to discharge static. Don't move around too much while doing the swap. Don't forget to plug the extra power cable that comes with the card to the MoBo
    It's a pretty tight fit; You have to slide the back of the card in the plastic slot.
    If you want to leave the 7300 in the machine you can put it in PCIe slot 2 or 4. (4 is better)

  • "Switching" Ipads... best way to sync apps/ files/ etc?

    My current ipad (16 gb) is going to my mom, and I will be getting hers (64 gb) since I need the space for files/ videos/ etc.
    We have our own apps and files on it already, what is the best way to "switch" Ipads?
    If I restore it, can I get my paid apps back (my apps are on two devices already-- 16gb ipad and iphone)
    thank you!

    The iPads do not sync over wifi (except for some MobileMe stuff I think). When you switch syncing computers you should get a warning message that says that the iPad had been synced to a different computer. If you continue the contents of the iPad will be erased and replaced with those in the new syncing computer. You also may get an option to restore from backup. Syncing only syncs calendar, contacts, email songs etc but does not sync any data associated with any apps. To get back that data you have to restore from backup.

  • What is the best way to leave the mini for the night?

    What is the best way to switch off the ipod mini when I have finished with it?
    My usual way to finish is to press the pause button then press the hold button. Is this safe?
    I have heard that holding the pause/play button does a similar thing.
    Any input is greatfully received.
    Thanks.

    I do the same thing. Press and hold pause until it sleeps and then switch hold on so I don't wake it up by accident. If you gasp don't use it for a couple of days it will go into deep sleep, and when you wake it up it will show the apple symbol... I think it is essentially rebooting.
    I'm pretty sure the iPod normally just goes to sleep, rather than shuts down. This uses a little more power, but makes it faster when you go to use it (rather than waiting for it to boot up... like when you leave it for a few days). I think it's a reasonable compromise... give up a little battery life for that instant sweet tune gratification! And if you don't use it... it shuts down to preserve your battery. Smart pod!
    Anyway, don't worry about it, what you are doing is perfectly safe for your iPod.

  • Best way to configure and connect two 4500 switches

    I have a  core 4507r+e in our production environment. We just acquired a 4500r and I would like to use it a distribution switch. What’s the best way to configure the new 4500r switch to connect to the core 4500 switch?

    Disclaimer
    The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
    Liability Disclaimer
    In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
    Posting
    BTW, when you link your core to your distribution, the connecting link can be L2, L3 or both.
    What I wanted to bring to your attention, 4500s can often easily oversubscribe some of their ports.  Much depends on the sup and line cards being used.  When you want to interconnect a core and distribution, you don't want to use a port that's something like 8:1 oversubscribed.  (Further, if you're doing mostly L2, and all traffic L3 has to go to the core, depending on you traffic flows, a single link might have insufficient bandwidth.)
    Also from core to distribution, if possible, it's good to avoid single points of failure.  So if you only have one link between them, that link's transceivers (if used), the ports connected to, the line card connected to, are all single points of failure.  (Of course, with only single sups in each chassis, that too is a single point of failure.  From what you've described, from a performance and redundancy standpoint, you might actually be better off using a 4510R, with your two sups [if same model] and line cards - creating a collapsed core/distribution.)

  • Switcher: best way to remove programs?

    Switched from windows a couple of months ago and am really enjoying my macbook pro. What is the best way to completely remove (3rd party) programs? I'll try a piece of freeware here and there and if I don't want to keep it, I've been dragging the icon into the trash. I can't believe that I'm not leaving a bunch of clutter on the disk. I'm used to the windows "remove programs" way of doing things.
    Thanks in advance.

    There are three basic ways to delete applications
    1. Drag the application to the Trash and empty the Trash. Then use the Finder''s Find function to locate any additional files and then drag them to the Trash and empty the Trash.
    2. Run an uninstall program that came with the application. The uninstall program may be in the same folder or it may be on the same CD or media on which the application was delivered.
    3. The application's installer has an uninstall option used to uninstall the application.
    In most cases you need only dump the application by simply dragging its icon to the Trash. However, most apps will leave behind at least a preference file. You can generally find it in the /Home/Library/Preferences/ folder. However, without the application the preference file only takes up space. Some applications may store stuff in /Home/Library/Applications Support/ and/or /Home/Library/appname/.
    For more on removing applications visit The XLab FAQs and read the FAQ on removing unwanted applications.

Maybe you are looking for

  • Mac won't open certain websites

    Hey, I am having troubles in opening some websites on my mac (10.9.5). I can open them with other devices in my network without any problems. Things I already tried: Using other browers (Safari, Firefox and Opera) Creating another User account Using

  • Open a new mail item in Lotus notes with all names from table view..

    HI the requirement is like this .. There is a table view with checkboxes.. Now user will select the particular checkboxes and one mail should be created in Lotus Notes with all the user ids selected. How do i achieve 1) Selecttion of either all ( Sel

  • Corrupt Page - How do I delete?

    I have a page that had an email link to it, for some reason now every time I click on the page to edit, it shuts down iWeb and produces an error report, I need to delete this page but cannot, can anybody help? The error I receive evert time I try to

  • Jdk 1.4.1 compiler internal error

    I'm running j2sdk1.4.1. Every time I try to compile a pgm I get the message listed below. Thanks for any help. An exception has occurred in the compiler (1.4.1). Please file a bug at the Java Developer Connection (http://java.sun.com/cgi-bin/bugrepor

  • Selected row highlighted only for split second

    Hi, i am using the following javascript to highlight the row i select and to turn the selected rows background to yellow. The background changes to yellow when the row is clicked but only for a split second. var rindx=null; var rint=null; function my