Keep index up to date

Hi, I wonder if there is any way to keep a text index up to date without using a scheduled job.
My database is not very big and I want the index to be rebuilt when I insert/modify/delete records.
Thanks in advance.

Sergio,
You may be able to set up a trigegr on the table which does the reindex whenever it changes or if you are using a package to do the mods on the data then I suggest you make a call to reindex after each insert/update/delete as part of the procedure used to do the mod.
HTH
Greg

Similar Messages

  • Keeping stats up to date for partitioned tables

    Hi,
    Oracle version 10.2.0.4
    I have a partioned table. I would like to keep stats up-to-date.
    Can I just run a single command to update table stats, indexes and partitions please?
    exec dbms_stats.gather_table_stats(user, 'TABLE', cascade=>true)or I also need to run exec dbms_stats.gather_table_stats(user, 'TABLE', granularity=>partition)
    thanks,
    Ashok
    Edited by: 902986 on 27-Oct-2012 11:06
    Edited by: 902986 on 27-Oct-2012 11:07

    thanks
    yes there were many indexes on the original non-partitioned table and I have created another table partitioned and now populating it with the data from the original table. the new table is partitioned on a date range column for all years before 2012, then for 2012, 2013 and so forth.
    the indexes are all created locally bar a unique index (as per original table), created globally to enforce uniqueness across the table itself. the search will always look to year to date say 1st jan 2012 tilll today for risk analysis. the partition is on that date column and there is also a local index on that date column as well, to avoid table scan (tested with disabling that index, predictably did table scan and was less efficient).
    in a DW environment, I don't see much value in having global index bar for primary key/unique constraint. I do realise that if the query crosses more than one partition, say 2 partitions, there will be two b-tree local index scans rather than one, but that would be rare (from the way they query the table).
    therefore my plan is to perform a full table stats with cascade=>true and measure the time it takes and plan to do the same if the maintenance window allows it.
    thanks again for your help
    Edited by: 902986 on 28-Oct-2012 13:24

  • I need to move 1000 photos from one library to another. How do I do that and keep the ratings and dates they were created?

    I need to move 1000 photos from one library to another. How do I do that and keep the ratings and dates they were created? I tried exporting them, but it loses all info. Also, how do I move the quicktime movies from one iphoto library to another? They were exported as jpgs

    Add both libraries to iPhoto Library Manager.  Then select the events or albums that you want to copy from library A  and drag them to library B in iPLM.
    This video shows the process:
    OT

  • How can I create an index on the date part of a timestamp field?

    is there a way I can create an index on the date part of a timestamp field?

    LONGENECKER wrote:
    Idea:
    If you find no direct command that allows you to create an index on JUST the date portion of a timestamp datatype column then I recommend you consider splitting date and time into two seperate columns.
    If date is column "A" and time is column "B" then you can concatenate them using a view or virtual column (in 11G) to re-assemble them at run time.
    In the solution I describe above you might trade ease of management for better performing queries.
    Additional Info:
    This thread may be of some value.
    Can we create INDEX on TIMESTAMP column???
    And what datatype do you propose for your columns A and B? The only proper datatypes would be DATE or TIMESTAMP. Both of these inherently carry both date and time components, so that would have to be dealt with anyway. The use of any character or number datatype to hold date and/or time should be treated with an application of Billy's lead pipe.
    Perhaps function based indexes would be a better solution.

  • Clean install on new 1TB hdd, Yosemite keeps freezing when copying data from an ext drive and also from a usb

    Hi all,
    I'm trying to figure out why my macbook keeps freezing when I try to drag my data across to it (even small files from a USB).
    I've had to force restart over a dozen times today :/
    I ran EtreCheck and there are a couple of issues (I've no idea what they mean).
    If anybody could share some light into the report below I would be very grateful:
    Problem description:
    Macbook Pro mid 2010, Yosemite, blank new install on 1 TB hdd, keeps freezing when copying data from an ext drive and also from a usb
    EtreCheck version: 2.2 (132)
    Report generated 5/2/15, 4:55 PM
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Hardware Information: ℹ️
        MacBook Pro (13-inch, Mid 2010) (Technical Specifications)
        MacBook Pro - model: MacBookPro7,1
        1 2.4 GHz Intel Core 2 Duo CPU: 2-core
        8 GB RAM Upgradeable
            BANK 0/DIMM0
                4 GB DDR3 1067 MHz ok
            BANK 1/DIMM0
                4 GB DDR3 1067 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
        Battery: Health = Normal - Cycle count = 2061 - SN = W013358KQD3BA
    Video Information: ℹ️
        NVIDIA GeForce 320M - VRAM: 256 MB
            Color LCD 1280 x 800
    System Software: ℹ️
        OS X 10.10.3 (14D136) - Time since boot: 0:7:25
    Disk Information: ℹ️
        ST1000LM024 HN-M101MBB disk0 : (1 TB)
            EFI (disk0s1) <not mounted> : 210 MB
            Macintosh HD (disk0s2) / : 999.35 GB (968.00 GB free)
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
        HL-DT-ST DVDRW  GS23N 
    USB Information: ℹ️
        Apple Inc. Built-in iSight
        Apple Internal Memory Card Reader
        Apple Inc. BRCM2046 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Computer, Inc. IR Receiver
        Apple Inc. Apple Internal Keyboard / Trackpad
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Problem System Launch Daemons: ℹ️
        [failed]    com.apple.mtrecorder.plist
    Launch Daemons: ℹ️
        [failed]    com.apple.spirecorder.plist
    User Launch Agents: ℹ️
        [failed]    com.apple.CSConfigDotMacCert-[...]@me.com-SharedServices.Agent.plist [Click for details]
        [loaded]    com.google.keystone.agent.plist [Click for support]
    User Login Items: ℹ️
        iTunesHelper    UNKNOWN Hidden (missing value)
        Caffeine    Application  (/Applications/Caffeine.app)
    Internet Plug-ins: ℹ️
        Default Browser: Version: 600 - SDK 10.10
        QuickTime Plugin: Version: 7.7.3
    3rd Party Preference Panes: ℹ️
        None
    Time Machine: ℹ️
        Time Machine not configured!
    Top Processes by CPU: ℹ️
            20%    WindowServer
             6%    com.apple.WebKit.WebContent(7)
             4%    Safari
             3%    hidd
             1%    launchd
    Top Processes by Memory: ℹ️
        1.07 GB    com.apple.WebKit.WebContent(7)
        439 MB    kernel_task
        90 MB    spindump
        57 MB    mdworker(5)
        57 MB    Safari
    Virtual Memory Information: ℹ️
        4.54 GB    Free RAM
        3.46 GB    Used RAM
        0 B    Swap Used
    Diagnostics Information: ℹ️
        May 2, 2015, 04:47:31 PM    Self test - passed
        May 2, 2015, 01:39:52 PM    /Library/Logs/DiagnosticReports/DesktopServicesHelper_2015-05-02-133952_[redact ed].cpu_resource.diag [Click for details]
        May 2, 2015, 01:23:20 PM    /Library/Logs/DiagnosticReports/com.apple.AmbientDisplayAgent_2015-05-02-132320 _[redacted].crash
    Regards
    Hoz

    Thanks - I had a 1TB hdd in my macbook for about 12 months but it started playing up a few days ago (I got the question mark folder on bootup) so I bought another 1TB hdd (same model) and started from scratch.
    My macbook is an early 2010... now I'm wondering if Yosemite is a bit too much for it?
    The ext hdd is my timemachine backup, so yes I have used it often and it has my TM backups - and the usb is a new usb which Ive used a few times.
    The issue seems to be when Im transferring files from an ext drive to my mac. I can use it fine and browse (worked find for 45 mins) then I tried to bring my data across.. and it copied a few gig over before total freeze.
    This has happened about a dozen times.
    I keep running disk utility and checking the disk. I also just ran the apple diagnostics tool that came in the apps cd - the hardware apears to be fine.
    I have a 250 gb partition for the OS and the rest is my second partition for data.
    I'm now wondering if I should reformat the first partition, install leopard from the CD, then upgrade to mavericks and leave it at that.
    Any thoughts would be awesome. Thank you for reading and replying!
    Hoz

  • How do I set  File Sharing  in iTunes to keep files up-to-date?

    How do I set  File Sharing  in iTunes to keep files up-to-date?  i tried iTunes File Sharing, but the updates to the files never transferred across the USB during sync.  Tried to use Documents to Go, but the Apple behavior keeps them from syncing via USB, so when I am home and have no wifi/internet there is no way to transfer the files.  The other apps I have looked at also use wifi/internet to get around the problematic Apple behavior, so there is no way to connect via USB that I have found other than the iTunes.  Have not been able to locate any helpful information to configure the File Sharing to hotsync the files between pod and computer.

    I am trying to USB sync Word, Excel, and PDF files between the ipod and the PC.
    Pretty sure icloud has to have the internet to work, but I can try to see what USB options there are there when time permits.
    Pretty sure dropbox has to have the internet to work, but I can try to see what USB options there are there when time permits.

  • What is the best way to do a 10.8 reinstall and keep all of my data?

    What is the best way to do a 10.8 reinstall and keep all of my data?

    Boot to the recovery disk and reinstall the os. That said you do have a back up just in case (I trust)?

  • Spotlight keeps indexing in snow leopard

    Spotlight keeps indexing for the last 2 weeks. I tsometimes has 45 mins till finishing, but when I check later, it still indexing without a estimate of time when it will finish.  I have selected my ext. HD not to be index, but it still states it indexing my main HD.  What can I do? I'm using 10.6.8. Also have 4 USB, 2 tb ext HD attachded. 2-to a usb hub and 2 -to the back of the imac. What can I do?
    Austin

    I had the same problems with spotlight that kept indexing. I solved them by using the following commands in the Terminal:
    $ sudo rm -rf /.Spotlight-V100/*
    $ sudo mdutil -i on -E /
    As explained here:
    http://guidovanoorschot.nl/how-to-fix-spotlight-when-it-keeps-indexing-n-mac-os- x-lion/

  • Spotlight keeps indexing

    hi,
    The Time Capsule at work stopped taking backups of my machine on July,1. For my colleagues, it still works fine. I also noticed spotlight keeps trying to index the disk.
    As a solution I removed the latest backup (indicated with 'inProgress' and I verified the disk with disk utility. I took 3 days, but mentioned no errors. I tried a couple of times to restart the backup, and now it finally seems to work again. Backup works (but very slow), however spotlight keeps indexing.
    I already tried restarting the spotlight server, but it does not help. I tried other suggestions on the web but nothing seems to work...

    See #D2 in Time Machine - Troubleshooting (or use the link in *User Tips* at the top of this forum).

  • How do I keep the time and date stamp of my photo when exporting from iphoto

    Hi,
    I notice the time and date stamp changed when I exported the photos from iPhoto 11 to a external HDD.
    When I looked at the information about the exported photos on my external HDD the time and date changed to the time and date of when I exported the photos form iPhoto instead of keeping the time and date information of when the photo was taken as it appears in iPhoto.
    I thought the time and date stamp is in the meta data of the photo file and can't be changed, am I correct?
    Thanks,

    Kyzelios,
    How can view the meta data from "finder" or do I need a 3rd party app?
    "Get info" function only gives me the creation date which is the export date and time.

  • So, there's no plugin to keep Library up-to-date?

    The other day, I posted a question if there is any way to keep Library up-to-date. I've got 2 replies. One person said there's no such way, and the other person told me a Javascript file that removes dead files from Library. But he said he didn't know how to make newly added files appear automatically in Library.
    I'm just curious, I think managing changed to the music folder is the very basic function of a music library application. Everyone would want this feature and Windows Media Player 10 has that feature. Why iTunes doesn't? I've searched Google for some plugin or utility to do this for iTunes, but only in vain.
    So now I'm wondering if I myself could write a plugin that does that. I've downloaded the iTunes COM SDK. But before starting this I'd like to make sure there really is no such utility to keep Library up-to-date. Of course, this is because I do not want to re-invent the wheel. What do you think? Do you think this kind of utility would be useful?

    ITunes is smart enough to not add a file to the library that is already in the library. So the normal method is simply to drag and drop the base folder for your music into iTunes. It'll only add the ones that are missing.
    If you want to do this with the COM SDK, you'd create an iTunes object, then do:
    iTunes.LibraryPlaylist.AddFiles("c:\path\to\your\music\folder");
    This will add that folder to the library, and the same functionality applies. Then you just run that on a semi-regular basis. Maybe you use that script to start iTunes, so that when iTunes starts, your script forces it to rescan your folder.

  • Keeping you up to date section

    I have a fault logged. I have broadband but the phone is dead. I am on the fault details page and it tells me to put an alternative number in the Keeping you up to date section above. I have looked for ages and used several browsers just in case but I can't find this section. Where do I go to put the alternative number in?

    Try Live Chat
    They should be able to help.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Keeping Photoshop Up To Date - Kudos to Jeff Tranberry

    I just saw Jeff's blog page that provides everything you'd want to know (and then some) about keeping the various parts of Photoshop up to date.  It's excellent!
    http://blogs.adobe.com/crawlspace/2011/03/keeping-photoshop-up-to-date.html
    Clearly it's been around for quite a while (2011/03) but I have just found it for the first time.  This one's worth saving in the favorites list, and frankly it should be pinned or prominently displayed here on the forum pages somewhere.  Maybe it already is, but it's not to be found in the "discussions" view I always see.
    -Noel

    I can not find any Adobe Crash Reporter application on my windows system should there be one??? I missed typing the NOT in my first append sorry.
    To reset the Crash Reporter in Windows, open the Crash Reporter application, and change your preference:
    Locate your application's folder under the Program Files/Adobe folder, such as Program Files/Adobe/Adobe Dreamweaver CS4/. 
    Open the Support Files/Contents/Windows folder. 
    Double-click on the CrashReporterApp.exe file (depending on how your operating system preferences are set, you may not see the .exe extension). 
    Choose one of the options: 
    Always show this dialog.
    Don't show this dialog again and always send crashes to Adobe.
    Don't show this dialog again and never send crashes to Adobe.
    I did miss the show more button but not the windows instructions. I have now seen Adobe web page telling how to change setting on a windows system and now  I find this on the web but dated 2012
    Michael Yessik says: 
    March 25, 2012 at 9:47 pm
    I have had crashes with both Bridge and Photoshop CS6. The instructions here talk about Adobe Crash Reporter. Where do I find this?
    Jeffrey Tranberry says:March 31, 2012 at 8:29 amIf you’re on a Mac it will automatically launch. If you’re on Windows, there isn’t an Adobe Crash Reporter application and crashes should be send to Microsoft when you are asked if you want to submit a report from Windows.

  • How can I keep all the previous datas in the same array?

    I have a problem with keeping the previous datas in my array. The problem is when the iteration loop is executed, I have one or two value(s) stored in the array. The second iteration I have either one or two values (depending on the condition) coming out, but it overwrites my previous value. I want to keep all my data in the same array as the loop is executed.PS. I have attached a simple vi along this message. If anyone can help me out with this, I really appreciate for the help.
    Regards,
    Sonny

    If you iterate several times (N > 100) then I would suggest using the Initialize Array outside of the For Loop and then use the Replace Array Subset inside the Loop to populate the array. The reason for this is because the Build Array utility has to locate a new space in memory for the newly concatenated array -- the Replace Array Element utility uses the same memory space.
    If you iterate just a few times with a small array then using the Build Array should be okay.
    Chris_Mitchell
    Product Development Engineer
    Certified LabVIEW Architect

  • Can I use a trigger to keep record of deleted data?

    I am trying to log changes to a table, including deletes. The trigger is working effectively for INSERT and UPDATE, but does not capture the data from the row when I create a DELETE trigger.   I have tried various trigger syntax methods to capture the data in a new "log" table, but I only seem to get the key field after the trigger fires.
    My base table has only a few fields:  ID (key), NAME, DESCRIPTION, CREATED_ON, UPDATED_ON.
    On delete, I would like to capture the data that was deleted for record keeping and audit trails.   Below is the latest iteration of my trigger define code:
    create trigger ADDRESS_TYPES_TRIGGER_D
    BEFORE DELETE ON "MEDPORTAL"."MEDPORTAL_XS.data::ADDRESS_TYPES"
    REFERENCING OLD ROW AS thisRow
    FOR EACH ROW
    begin
      declare newId INT;
      declare deleteId INT := 131;
      select "MEDPORTAL"."MEDPORTAL_XS.data::Address_Types_Log_ID".NEXTVAL into newID from DUMMY;
      INSERT INTO "MEDPORTAL"."MEDPORTAL_XS.data::ADDRESS_TYPES_LOG"
      (ID,
      USERNAME,
      ACTION_ID,
      ADDRESS_TYPE_ID,
      NAME,
      DESCRIPTION,
      UPDATED_ON
      values(
      :newId,
      current_user,
      :deleteId,
      :THISROW.ID,
      :THISROW.NAME,
      :THISROW.DESCRIPTION,
      current_timestamp
    end
    This code captures the newId from the sequence as the new table key.  It also captures the USERNAME, ACTION_ID (coded to a delete message in another table), ADDRESS_TYPE_ID (THISROW.ID), and the current_timestamp.  How can I capture the data in NAME and DESCRIPTION in the log table? 
    I have tried
    create trigger ADDRESS_TYPES_TRIGGER_D
    AFTER DELETE ON "MEDPORTAL"."MEDPORTAL_XS.data::ADDRESS_TYPES"
    REFERENCING OLD ROW AS thisRow
    FOR EACH ROW
    and
    create trigger ADDRESS_TYPES_TRIGGER_D
    AFTER DELETE ON "MEDPORTAL"."MEDPORTAL_XS.data::ADDRESS_TYPES"
    FOR EACH ROW
    But I cannot capture the data.  I am on the AWS rev 70 image (1.0.70.386119)
    Is the DELETE trigger capable of capturing the data?

    If you can add a step to disable backup job start of ETL and enable backup job after ETL completes.
    exec msdb..sp_update_job @job_name = 'LS backup Job Name', @enabled = 0 --Disable
    exec msdb..sp_update_job @job_name = 'LS backup Job Name', @enabled = 1 --Enable
    create a record in a table:
    In those line you can create a new job as well which will check record in table if its 0(ETL completed) then enable the backup job and if its 1(ETL running/started) then disable the job. This job will run every 5 mins to check the flag in table. Depending
     on ETL status it will enable or disable tlog backup job that way you will be able to resume log shipping without delay. 

Maybe you are looking for

  • I cant sync my iPod touch / What does setting up as new iPod do?

    The other day, I first synced my iPod touch to itunes, didnt take very long. Then I tried syncing a CD and when it was half way through I tried to sync the songs already downloaded onto my ipod, but didnt see how. And today, I tried connecting my ipo

  • Unplanned delivery cost - miro

    Hi, how to post unplanned dleivery cost in miro?? i have Rs.3000  against a po.. how to post in miro??

  • Color coding of appointments please!!

    I want to get an iPhone.. I really do but I refuse to do so until Apple releases an update that allows setting categories / labels and COLORS to appointments. For such and advance device the iPhone is very lacking on the whole calendar / contacts fie

  • How do I synchronize two processes on two different PC's ?

    I have a master and slave computer with a vi running on each, periodically these processes will need to be synchronized. If the processes were running as separate threads on the same PC, I know could use the LabVIEW rendezvous technology to do this.

  • New update has deleted my photos their not in this new location!!??? Help

    New update and my photos gave disappeared not all of them just a few. They're not located in the new folders that are supposed to be in where have my pictures going to and how do I recover these photos. Please somebody help me.