"Missing Keywords Folder" is missing

How do I get the subject folder back?

Hi Jim Hix,
Do not confuse "folder" with "collection".
A folder is a storage bucket which you will find also in Win-Explorer / Mac-Finder.
A collection is something inside Lightroom only, either a "dumb" one - where you specify which images  belong into it, arbitrarily and fixed.
Or a "smart collection", which is like a filter, that will continuously fill according to specified criteria - like the one saying "images which have no keywords assigned".
This is why you can most often check via the filter panel how many images should show up there - like jim01403 has suggested.
Cornelia

Similar Messages

  • 2 identical sets of photos in LR4, one set shows as missing but has all keywords attached; photos not missing are missing keywords

    I had to move photos and LR4 catalog from one external storage to another. I now have two identical sets of photos in the catalog but one full set is shown as missing. Easy enough to delete these but they have all my hours and hours of work on keywords attached to them. The other set of photos, the one that actually exists on the drive, has no keywords attached. I gotta have those keywords! Is there a way that won't take the rest of my life to get photos and keywords connected again?

    Thanks for helping!
    Your suggestion didn't work, but it did get me tinkering around and led me to a solution that's not necessarily quick but definitely easier than re-entering all the keywords.
    I was smart enough to not have deleted the photos from the thumb drive they were first saved on, so I plugged it back in. Then I went to the folders list in LR and deleted the existing, missing-keyword photos, folder by folder. Then I just dragged the images from the original drive to the the new one. Well, I'm still doing it to 1500 photos but it's working and it saves me lots of work. So thank you for helping me think of the problem and its solution in a different way. I appreciate your time.

  • I after updating to iOS 8 in photo gallery folder is missing.

    I after updating to iOS 8 in photo gallery folder is missing. Of what I can not be divided with old photos no one. There is a folder in which the recently added only recently added More Photos. How to return this folder?

    Hello Simmo1997,
    Sorry to hear about your issue but let’s see if we can get your iPhone back up in running. If your iPhone is disconnecting when trying to restore then check out the article below to get you started with isolating the issue. Let me know if it gets resolved or if you discover a new symptom. 
    iTunes: Resolve USB-related alerts
    http://support.apple.com/kb/HT5772
    Regards,
    -Norm G. 

  • IMovie won't open and Library Folder is missing in Finder

    A few days ago, I downloaded the recent iMovie program.  I even used it to make a video.  Today I wanted to make another one but iMovie won't open at all.  The wheel just spins and spins and nothing opens.  So, I went into Finder and noticed my Library folder was missing.  How did that happen?  Is that why iMovie won't open?
    I searched the Discussion Forums and saw how to find the Library folder in Lion.  (Press Option and hit the Go button in the menu bar.)  But, I have Maverick.  I tried this anyway but I have no idea what/where the Go button is.
    How do I find, or replace if necessary, my Library folder and get iMovie to open?  I have a mid-2007 iMac that's been upgraded from Snow Leopard, so I don't want to put the Install Disk in and lose everything.   Help?

    Thanks.  Sorry for the confusion with the Library Folder.  It's just been a long day all around.
    Memory  4 GB 667 MHz DDR2 SDRAM
    I know it's older but it's never caused me a day's trouble since I've owned it.  I hate to replace it until the next upgrade.
    ETA:  I just opened the Activity Monitor in Utilities and it says, out of 4GB of Memory, that 3.88GB are Used.   I don't understand this because I have very, very few things loaded onto my iMac at all.  I've always had tons of memory left.  I don't have any music on my PC at all.  No movies, either.  My dock only has Finder, Launchpad, Dashboard, Safari, Firefox, TextEdit and System Preferences.
    Here's a report from my Activity Monitor.  Any suggestions?  I have no idea what some of these things are, like: CalendarAgent (I don't use calendar at all),
    kernel_task
    367.0 MB
    74
    0
    0
    1.1
    32:04.73
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    Safari
    343.8 MB
    16
    4,729
    545
    0.2
    1:22:07.10
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    Safari Web Content
    160.7 MB
    11
    210
    4087
    0.3
    1:09.65
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    Safari Web Content
    154.4 MB
    14
    293
    3734
    0.0
    1:27:39.60
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    Safari Networking
    124.6 MB
    8
    358
    548
    0.0
    35:47.77
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    iPhoto
    65.3 MB
    7
    236
    4007
    0.0
    16.28
    0 bytes
    0 bytes
    0 bytes
    32 Bit
    No
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    WindowServer
    57.5 MB
    5
    364
    101
    1.1
    1:21:05.77
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    Finder
    35.4 MB
    4
    305
    151
    0.0
    33.55
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    com.apple.IconServicesAgent
    35.2 MB
    2
    68
    211
    0.0
    0.75
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    softwareupdated
    33.6 MB
    5
    98
    154
    0.0
    32.89
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    Dashboard
    31.8 MB
    12
    274
    3504
    0.8
    3:28.41
    0 bytes
    0 bytes
    0 bytes
    32 Bit
    No
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    mds_stores
    25.7 MB
    4
    61
    114
    0.0
    47.15
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    mds
    23.0 MB
    6
    188
    35
    0.0
    52.58
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    Dock
    21.9 MB
    5
    264
    148
    0.0
    15.92
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    cfprefsd
    20.8 MB
    5
    156
    145
    0.0
    15.98
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    TextEdit
    19.8 MB
    4
    189
    3746
    0.0
    1:41.82
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    Dashboard
    16.2 MB
    8
    176
    3503
    0.2
    55.72
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    CVMCompiler
    14.8 MB
    2
    33
    4163
    0.0
    0.35
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    Activity Monitor
    14.4 MB
    5
    188
    4169
    2.3
    4.66
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    cookied
    13.7 MB
    3
    102
    220
    0.0
    20.08
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    CalendarAgent
    13.6 MB
    5
    110
    192
    0.0
    8.31
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    storeagent
    9.7 MB
    5
    151
    228
    0.0
    5.20
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    SystemUIServer
    9.5 MB
    4
    325
    150
    0.0
    14.72
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    Notification Center
    8.1 MB
    4
    173
    183
    0.0
    4.89
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    com.apple.appkit.xpc.openAndSavePanelService
    6.8 MB
    4
    164
    3748
    0.0
    0.96
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    loginwindow
    6.5 MB
    3
    319
    39
    0.0
    9.45
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    OpenDNS Updater
    6.2 MB
    6
    171
    2512
    0.0
    3.47
    0 bytes
    0 bytes
    0 bytes
    32 Bit
    No
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    AppleSpell.service
    6.0 MB
    3
    59
    263
    0.0
    28.66
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    Mac Media Player Helper
    6.0 MB
    4
    131
    176
    0.0
    4.06
    0 bytes
    0 bytes
    0 bytes
    32 Bit
    Yes
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    Alarm Clock
    5.8 MB
    4
    136
    202
    0.0
    4.50
    0 bytes
    0 bytes
    0 bytes
    32 Bit
    No
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    systemstatsd
    5.6 MB
    2
    28
    286
    0.0
    15.25
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    sandboxd
    5.2 MB
    4
    62
    230
    0.0
    0.68
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    VTDecoderXPCService
    5.1 MB
    2
    49
    3742
    0.0
    3:03.48
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    kextd
    5.1 MB
    3
    67
    12
    0.0
    5.06
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    coreservicesd
    4.8 MB
    5
    221
    68
    0.0
    7.49
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    ShareKitHelper
    4.7 MB
    4
    142
    215
    0.0
    3.62
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    opendirectoryd
    4.7 MB
    7
    532
    32
    0.0
    10.84
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    gkbisd
    4.5 MB
    2
    48
    128
    0.0
    21.28
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    UserEventAgent
    4.5 MB
    4
    617
    11
    0.0
    9.88
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    fontd
    4.4 MB
    3
    87
    174
    0.3
    1:18.36
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    LOGINserver
    4.2 MB
    4
    126
    196
    0.0
    2.82
    0 bytes
    0 bytes
    0 bytes
    32 Bit
    No
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    com.apple.dock.extra
    4.1 MB
    4
    142
    224
    0.0
    3.44
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    UserEventAgent
    4.1 MB
    6
    322
    142
    0.0
    14.34
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    launchd
    4.0 MB
    3
    2,204
    1
    0.0
    3:49.79
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    fseventsd
    3.9 MB
    9
    162
    45
    0.0
    22.20
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    nbagent
    3.9 MB
    6
    168
    1753
    0.0
    3.10
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    Image Capture Extension
    3.8 MB
    4
    136
    4009
    0.0
    0.39
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    xpcd
    3.7 MB
    5
    49
    169
    0.0
    2.82
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    blued
    3.6 MB
    4
    120
    57
    0.0
    1.66
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    identityservicesd
    3.5 MB
    5
    99
    188
    0.0
    2.47
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    suhelperd
    3.4 MB
    3
    57
    162
    0.0
    0.42
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    distnoted
    3.3 MB
    7
    179
    143
    0.1
    8.20
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    coreaudiod
    3.3 MB
    5
    303
    152
    0.0
    30:42.57
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    taskgated
    3.2 MB
    2
    25
    13
    0.0
    7.84
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    airportd
    3.1 MB
    4
    81
    62
    0.0
    4.10
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    EscrowSecurityAlert
    3.1 MB
    4
    140
    1144
    0.0
    1.82
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    apsd
    3.0 MB
    5
    94
    60
    0.0
    2.03
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    authd
    2.9 MB
    4
    84
    69
    0.0
    0.52
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    USBserver
    2.8 MB
    3
    94
    237
    0.0
    2.72
    0 bytes
    0 bytes
    0 bytes
    32 Bit
    No
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    QTKitServer-(3734) Safari Web Content
    2.8 MB
    3
    73
    3737
    0.0
    0.13
    0 bytes
    0 bytes
    0 bytes
    32 Bit
    No
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    NETserver
    2.7 MB
    3
    102
    238
    0.0
    12.38
    0 bytes
    0 bytes
    0 bytes
    32 Bit
    No
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    locationd
    2.5 MB
    7
    90
    41
    0.0
    16.93
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    com.apple.internetaccounts
    2.5 MB
    4
    128
    4085
    0.0
    0.13
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    configd
    2.5 MB
    7
    330
    55
    0.0
    34.02
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    ubd
    2.5 MB
    7
    81
    173
    0.0
    0.50
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    LaterAgent
    2.5 MB
    4
    133
    1559
    0.0
    1.58
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    securityd
    2.4 MB
    3
    119
    14
    0.0
    5.45
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    warmd
    2.4 MB
    3
    40
    18
    0.0
    0.92
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    xpcd
    2.4 MB
    2
    26
    65
    0.0
    0.17
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    AirPlayUIAgent
    2.4 MB
    4
    206
    1307
    0.0
    2.63
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    ocspd
    2.3 MB
    5
    72
    4112
    0.0
    0.14
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    iTunes Helper
    2.2 MB
    4
    71
    201
    0.0
    1.73
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    ScopedBookmarkAgent
    2.2 MB
    3
    41
    3754
    0.0
    0.15
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    launchservicesd
    2.1 MB
    3
    274
    52
    0.0
    21.82
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    mdflagwriter
    2.1 MB
    2
    26
    279
    0.0
    0.25
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    accountsd
    1.9 MB
    2
    56
    207
    0.0
    0.33
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    imagent
    1.8 MB
    3
    79
    187
    0.0
    0.49
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    usernoted
    1.8 MB
    2
    84
    178
    0.0
    0.55
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    librariand
    1.8 MB
    2
    50
    171
    0.0
    0.09
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    revisiond
    1.8 MB
    4
    41
    28
    0.0
    0.22
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    socketfilterfw
    1.8 MB
    4
    59
    113
    0.0
    11.26
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    com.apple.CodeSigningHelper
    1.8 MB
    2
    30
    122
    0.0
    1.27
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    xpcd
    1.7 MB
    2
    32
    160
    0.0
    0.03
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    tccd
    1.7 MB
    2
    44
    159
    0.0
    0.18
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    IMDPersistenceAgent
    1.7 MB
    3
    60
    204
    0.0
    0.05
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    xpcd
    1.7 MB
    2
    32
    156
    0.0
    0.02
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    wdhelper
    1.7 MB
    2
    31
    17
    0.0
    0.14
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    tccd
    1.7 MB
    2
    49
    167
    0.0
    0.30
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    xpcd
    1.6 MB
    3
    33
    217
    0.0
    0.02
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    secd
    1.6 MB
    3
    71
    214
    0.0
    3.76
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    syspolicyd
    1.6 MB
    2
    34
    4074
    0.0
    0.03
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    distnoted
    1.6 MB
    2
    133
    63
    0.0
    0.42
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    spindump_agent
    1.6 MB
    3
    61
    837
    0.0
    0.07
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    com.apple.InputMethodKit.UserDictionary
    1.6 MB
    2
    51
    265
    0.0
    0.14
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    DataDetectorsDynamicData
    1.6 MB
    2
    60
    269
    0.0
    0.04
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    cfprefsd
    1.6 MB
    5
    218
    70
    0.0
    7.83
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    mDNSResponder
    1.6 MB
    4
    70
    36
    0.0
    46.87
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    mdworker
    1.6 MB
    3
    52
    4176
    0.0
    0.03
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    sharingd
    1.5 MB
    2
    47
    166
    0.0
    0.04
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    networkd
    1.5 MB
    3
    82
    97
    0.0
    18.80
    0 bytes
    0 bytes
    0 bytes
    64 bit
    No
    No
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    nbstated
    1.5 MB
    2
    42
    1759
    0.0
    0.14
    0 bytes
    0 bytes
    0 bytes
    64 bit
    Yes
    Yes
    No
    0 bytes
    0 bytes
    0
    0
    0 bytes
    0 bytes
    0 bytes
    securityd_service

  • ORA-00905: missing keyword error while creating a materialized view

    Hi Gurus,
    I am trying to create a materialized view as :
    1 CREATE MATERIALIZED VIEW AMREG.ClientData
    2 TABLESPACE AMREG_DATA
    3 COMPRESS
    4 PARALLEL
    5 NOLOGGING
    6 BUILD IMMEDIATE
    7 REFRESH COMPLETE
    8 ON DEMAND
    9 DISABLE QUERY REWRITE
    10 REFRESH START WITH TRUNC( SYSDATE + 1 ) + 3/24 NEXT TRUNC( SYSDATE + 1 ) + 3/24
    11 AS
    12 SELECT
    13 CHILD.CLIENT_SGK "Child SGK",
    14 CHILD.CLIENT_NAME "Child Name",
    15 CHILD.ARC_ACCT_CD "Child ARC Acct Code",
    16 ULTIMATE.CLIENT_SGK "Ultimate Parent SGK",
    17 ULTIMATE.CLIENT_NAME "Ultimate Parent Name",
    18 ULTIMATE.ARC_ACCT_CD "Ultimate ARC Acct Code",
    19 HIER.LVL_FROM_ANCESTOR ,
    20 FROM [email protected] CHILD,
    21 [email protected] HIER,
    22 [email protected] ULTIMATE
    23 WHERE HIER.DESCENDANT_CLIENT_SGK = CHILD.CLIENT_SGK
    24* AND ULTIMATE.CLIENT_SGK = HIER.ANCESTOR_CLIENT_SGK;
    SQL> /
    REFRESH START WITH TRUNC( SYSDATE + 1 ) + 3/24 NEXT TRUNC( SYSDATE + 1 ) + 3/24
    ERROR at line 10:
    ORA-00905: missing keyword
    DBLink name is : DNYCPH60.WORLD
    Please guide me on this and help to resolve the issue.

    Ummm how about not posting the same question 4 times in 3 different forums?
    Gints Plivna
    http://www.gplivna.eu

  • ORA-00905: missing keyword error while creating a materialised view

    Hi Gurus,
    I am trying to create a materialized view as :
    1 CREATE MATERIALIZED VIEW AMREG.ClientData
    2 TABLESPACE AMREG_DATA
    3 COMPRESS
    4 PARALLEL
    5 NOLOGGING
    6 BUILD IMMEDIATE
    7 REFRESH COMPLETE
    8 ON DEMAND
    9 DISABLE QUERY REWRITE
    10 REFRESH START WITH TRUNC( SYSDATE + 1 ) + 3/24 NEXT TRUNC( SYSDATE + 1 ) + 3/24
    11 AS
    12 SELECT
    13 CHILD.CLIENT_SGK "Child SGK",
    14 CHILD.CLIENT_NAME "Child Name",
    15 CHILD.ARC_ACCT_CD "Child ARC Acct Code",
    16 ULTIMATE.CLIENT_SGK "Ultimate Parent SGK",
    17 ULTIMATE.CLIENT_NAME "Ultimate Parent Name",
    18 ULTIMATE.ARC_ACCT_CD "Ultimate ARC Acct Code",
    19 HIER.LVL_FROM_ANCESTOR ,
    20 FROM [email protected] CHILD,
    21 [email protected] HIER,
    22 [email protected] ULTIMATE
    23 WHERE HIER.DESCENDANT_CLIENT_SGK = CHILD.CLIENT_SGK
    24* AND ULTIMATE.CLIENT_SGK = HIER.ANCESTOR_CLIENT_SGK;
    SQL> /
    REFRESH START WITH TRUNC( SYSDATE + 1 ) + 3/24 NEXT TRUNC( SYSDATE + 1 ) + 3/24
    ERROR at line 10:
    ORA-00905: missing keyword
    DBLink name is : DNYCPH60.WORLD
    Please guide me on this and help to resolve the issue.

    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_6002.htm#i2063793 gives you the syntax of the command.
    I think the fact that you have two REFRESH clauses separated by a query rewrite clause is causing some confusion.
    7 REFRESH COMPLETE
    8 ON DEMAND
    9 DISABLE QUERY REWRITE
    10 REFRESH START WITH TRUNC( SYSDATE + 1 ) + 3/24 NEXT TRUNC( SYSDATE + 1 ) + 3/24
    11 AS
    probably should be
    REFRESH COMPLETE
            ON DEMAND
            START WITH TRUNC( SYSDATE + 1 ) + 3/24 NEXT TRUNC( SYSDATE + 1 ) + 3/24
    DISABLE QUERY REWRITE

  • Missing webapps folder in UCCX

    Hi All,
    Webapps folder is missing in this path C:\ProgramFiles\wfavvid\tomcat_appadmin\ and I am not able to login to the appadmin webpage.
    Please suggest what needs to be done.
    UCCX version is 7
    Thanks
    Bhavna

    I think you need to login to appadmin page
    so you can let it as fresh install with the following steps
    on the server through cmd prompt - type in CET - bring up the object editor - select "com.cisco.crs.cluster.config.AppadminSetupConfig - in right hand side select the row go to second tab and change the "setup state" to "FRESH_INSTALL" from drop down menu.
    Login into Appadmin with the user "Administrator" "ciscocisco"
    Regards
    Haitham

  • Missing keyword error

    Hi all,
    I am getting missing keyword error when trying to execute the below function,it doesn't give an error while compiling though.Tried to debug but to vain,can't understand what i am missing.
       FUNCTION reprint_file (p_format          VARCHAR2,
                              p_printer_number  VARCHAR2,
                              p_request_id      VARCHAR2,
                              p_order_no_from   VARCHAR2 DEFAULT NULL,
                     p_order_no_to     VARCHAR2 DEFAULT NULL,
                     p_order_date_from VARCHAR2 DEFAULT NULL,
                     p_order_date_to   VARCHAR2 DEFAULT NULL
       RETURN VARCHAR2 IS
          CURSOR c_format(p_format VARCHAR2) IS
             SELECT *
             FROM   rgl_lookup_data
             WHERE  format_name = p_format;
          TYPE c_ref IS REF CURSOR;
          c_rec              c_ref;
          l_info             VARCHAR2(32767);
          l_stmt             VARCHAR2(6000);
          l_order_by         VARCHAR2(200):='';
          l_exec_stmt        VARCHAR2(8000);
          l_fp               UTL_FILE.FILE_TYPE;
          l_filename         VARCHAR2(200);
          --p_dir_name         VARCHAR2(200) := '/usr/tmp';
          p_dir_name VARCHAR2(200) := '/d02/oracle/edi/in';
          l_order_by_clause  VARCHAR2(240);
          l_cursor           PLS_INTEGER;
          l_return           NUMBER;
       BEGIN
          UPDATE rgl_mcy_line_data
          SET    printer_info = p_printer_number
          WHERE  header_id = p_request_id;
          l_stmt := 'SELECT ''"''||printer_info||''"'''; -- ||''","''||printer_info ';
          FOR curr_format IN c_format(p_format)
          LOOP
             IF curr_format.quantity IS NOT NULL THEN
                l_stmt := l_stmt || ' ||'',''||DECODE(quantity, NULL, NULL,''"''||'||'quantity||''"'')';
             END IF;
             IF curr_format.field_25 IS NOT NULL THEN
                l_stmt := l_stmt || ' ||'',''||DECODE(field_25, NULL, NULL,''"''||'||'field_25||''"'')';
             END IF;
          END LOOP curr_format;
          l_exec_stmt := l_stmt
                      || ' FROM rgl_lookup_data '
                      || ' WHERE format_name = :format_b';
          l_filename := 'Reprint_'||'ASP'||'_'||p_request_id||'_'||TO_CHAR(SYSDATE, '_DDMMYYYY_hh24MISS')||'.csv';
          l_fp := UTL_FILE.FOPEN(p_dir_name, l_filename, 'w');
          OPEN c_rec FOR l_exec_stmt USING p_format;
          FETCH c_rec INTO l_info;
          CLOSE c_rec;
          write_line(l_fp, l_info);
          l_exec_stmt := l_stmt
                      || ' FROM  rgl_mcy_line_data '
                      || ' WHERE header_id = :header_id_b '
                      || ' AND   format = :format_b '
                      || ' AND   printer_info = :printer_number_b ';
          IF p_order_no_from IS NOT NULL AND p_order_no_to IS NOT NULL THEN
             l_exec_stmt := l_exec_stmt
                         || ' AND order_number BETWEEN :order_no_from_b TO :order_no_from_to ';
          ELSIF p_order_no_from IS NOT NULL THEN
             l_exec_stmt := l_exec_stmt
                         || ' AND order_number >= :order_no_from_b ';
          ELSIF p_order_no_to IS NOT NULL THEN
             l_exec_stmt := l_exec_stmt
                         || ' AND order_number <= :order_no_from_to ';
          END IF;
          IF p_order_date_from IS NOT NULL AND p_order_date_to IS NOT NULL THEN
             l_exec_stmt := l_exec_stmt
                         || ' AND order_date BETWEEN :order_date_from_b TO :order_date_from_to ';
          ELSIF p_order_date_from IS NOT NULL THEN
             l_exec_stmt := l_exec_stmt
                         || ' AND order_date >= :order_date_from_b ';
          ELSIF p_order_date_to IS NOT NULL THEN
             l_exec_stmt := l_exec_stmt
                         || ' AND order_date <= :order_date_from_to ';
          END IF;
          --log_mesg(l_exec_stmt);
    dbms_output.put_line('Entered');
          l_cursor := DBMS_SQL.OPEN_CURSOR;
          DBMS_SQL.PARSE(l_cursor, l_exec_stmt, DBMS_SQL.NATIVE); --Error is showing at this line
          DBMS_SQL.DEFINE_COLUMN(l_cursor, 1, l_info, 32767);
          DBMS_SQL.BIND_VARIABLE(l_cursor, 'header_id_b', p_request_id);
          DBMS_SQL.BIND_VARIABLE(l_cursor, 'format_b', p_format);
          DBMS_SQL.BIND_VARIABLE(l_cursor, 'printer_number_b', p_printer_number);
    dbms_output.put_line('Exit');
          --log_mesg('req:'||p_request_id);
          --log_mesg('for:'||p_format);
          --log_mesg('pno:'||p_printer_number);
          IF p_order_no_from IS NOT NULL THEN
             --log_mesg('onf:'||p_order_no_from);
             DBMS_SQL.BIND_VARIABLE(l_cursor, 'order_no_from_b', p_order_no_from);
          END IF;
          IF p_order_no_to IS NOT NULL THEN
             --log_mesg('ont:'||p_order_no_to);
             DBMS_SQL.BIND_VARIABLE(l_cursor, 'order_no_to_b', p_order_no_to);
          END IF;
          IF p_order_date_from IS NOT NULL THEN
             --log_mesg('odf:'||p_order_date_from);
             DBMS_SQL.BIND_VARIABLE(l_cursor, 'order_date_from_b', p_order_date_from);
          END IF;
          IF p_order_date_to IS NOT NULL THEN
             --log_mesg('odt:'||p_order_date_to);
             DBMS_SQL.BIND_VARIABLE(l_cursor, 'order_date_to_b', p_order_date_to);
          END IF;
          l_return := DBMS_SQL.EXECUTE(l_cursor);
          LOOP
          --log_mesg('inside the loop')
             EXIT WHEN DBMS_SQL.FETCH_ROWS(l_cursor) = 0; --curr_rec%NOTFOUND;
             DBMS_SQL.COLUMN_VALUE(l_cursor, 1, l_info);
             write_line(l_fp, l_info);
          END LOOP;
          DBMS_SQL.CLOSE_CURSOR(l_cursor);
          UTL_FILE.FCLOSE(l_fp);
          UPDATE rgl_header_data
          SET    last_print_date = SYSDATE,
                 reprint_count = NVL(reprint_count, 0) + 1
          WHERE  header_id = p_request_id;
          COMMIT;
          EXCEPTION
    WHEN OTHERS THEN
        DBMS_OUTPUT.PUT_LINE('An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM);
          RETURN l_filename;
       END rePrint_File;
    Function Call
    DECLARE
    v_result VARCHAR2(1000);
    BEGIN
    v_result := REGAL_MCY_PRINT_PKG.reprint_file('Macys.lwl','hp4000','6473482927','1213049','1213049',NULL,NULL);
    END;
    DBMS Messages
    Entered
    An error was encountered - -905 -ERROR- ORA-00905: missing keyword
    Any suggestions,
    Thanks in advance!!

    i didn't find anything wrong with this
    DBMS Message before parsing
    SELECT '"'||printer_info||'"' ||','||DECODE(quantity, NULL, NULL,'"'||quantity||'"') ||','||DECODE(format, NULL, NULL,'"'||format||'"') ||','||DECODE(duplicates, NULL,NULL,'"'||duplicates||'"') ||','||DECODE(field_1, NULL, NULL,'"'||field_1||'"') ||','||DECODE(field_2, NULL, NULL,'"'||field_2||'"') ||','||DECODE(field_3, NULL, NULL,'"'||field_3||'"') ||','||DECODE(field_4, NULL, NULL,'"'||field_4||'"') ||','||DECODE(field_5, NULL, NULL,'"'||field_5||'"') ||','||DECODE(field_6, NULL, NULL,'"'||field_6||'"') ||','||DECODE(field_7, NULL, NULL,'"'||field_7||'"') ||','||DECODE(field_8, NULL, NULL,'"'||field_8||'"') ||','||DECODE(field_9, NULL, NULL,'"'||field_9||'"') ||','||DECODE(field_10, NULL, NULL,'"'||field_10||'"') ||','||DECODE(field_11, NULL, NULL,'"'||field_11||'"') ||','||DECODE(field_12, NULL, NULL,'"'||field_12||'"') ||','||DECODE(field_13, NULL, NULL,'"'||field_13||'"') ||','||DECODE(field_14, NULL, NULL,'"'||field_14||'"') ||','||DECODE(field_15, NULL, NULL,'"'||field_15||'"') ||','||DECODE(field_16, NULL, NULL,'"'||field_16||'"') ||','||DECODE(field_17, NULL, NULL,'"'||field_17||'"') ||','||DECODE(field_18, NULL, NULL,'"'||field_18||'"') ||','||DECODE(field_19, NULL, NULL,'"'||field_19||'"') ||','||DECODE(field_20, NULL, NULL,'"'||field_20||'"') ||','||DECODE(field_21, NULL, NULL,'"'||field_21||'"') ||','||DECODE(field_22, NULL, NULL,'"'||field_22||'"') ||','||DECODE(field_23, NULL, NULL,'"'||field_23||'"') ||','||DECODE(field_24, NULL, NULL,'"'||field_24||'"') ||','||DECODE(field_25, NULL, NULL,'"'||field_25||'"') FROM  rgl_mcy_line_data  WHERE header_id = :header_id_b  AND   format = :format_b  AND   printer_info = :printer_number_b  AND order_number BETWEEN :order_no_from_b TO :order_no_from_to

  • Missing keyword when try to use MERGE

    I have COUNT_STATISTICS table that needs to be updated daily.
    MODEL
    NEW_COUNT
    NEW_DATE
    OLD_COUNT
    OLD_DATE
    PRNCT_CHANGE
    XEDHRD
    5206358
    21-AUG-13
    0
    19-AUG-13
    (null)
    XLIMS
    72669230
    21-AUG-13
    72669230
    20-AUG-13
    0
    XEDHRD
    5206358
    22-AUG-13
    5206358
    21-AUG-13
    0
    XLIMS
    72859644
    22-AUG-13
    72669230
    21-AUG-13
    0.262
    so on and so forth...
    Sometimes I have a new MODEL name coming in and I have to account for that and create a row in the table in that case.
    Other times, all I have to do is INSERT new row in the table with new values.
    Simple right?
    Well, I was trying to use MERGE INTO but it is giving me problems...
    This is what I did assuming I manually went in the table and added a new MODEL name and zeros for other columns before I did insertion...
    #!/bin/bash
    MODEL=$1
    sqlplus -S username/password << EOF
    whenever sqlerror exit 1;
    set echo on
    set verify off
    INSERT INTO SEMANTIC.COUNT_STATISTICS(MODEL,NEW_COUNT,NEW_DATE,OLD_COUNT,OLD_DATE)
    SELECT MODEL,
            SELECT COUNT(*)
            FROM TABLE(SEM_MATCH(
                    ?s ?p ?o
             }',SEM_Models('$MODEL'),NULL,
            SEM_ALIASES(SEM_ALIAS('','http://VISION/DataSource/SEMANTIC#')),NULL))
        SYSDATE,
        NEW_COUNT,
        NEW_DATE
    FROM SEMANTIC.COUNT_STATISTICS
    WHERE MODEL = '$MODEL'
    AND NEW_DATE = (
                    select max(NEW_DATE)
                    from SEMANTIC.COUNT_STATISTICS
                    where MODEL = '$MODEL'
    update SEMANTIC.COUNT_STATISTICS
    set prnct_change =
       (NEW_COUNT-OLD_COUNT)/NULLIF(OLD_COUNT,0)*100
    where model = '$MODEL'
    AND NEW_DATE = (
                    select max(NEW_DATE)
                    from SEMANTIC.COUNT_STATISTICS
                    where MODEL = '$MODEL'
    COMMIT;
    exit;
    EOF
    Now I added MERGE in front of INSERT so it checks if the MODEL name doesn't exist-it creates it:
    MERGE INTO SEMANTIC.COUNT_STATISTICS s
    USING (SELECT '${MODEL}' AS MODEL, 0 AS NEW_COUNT, SYSDATE AS NEW_DATE,
      0 AS OLD_COUNT, SYSDATE AS OLD_DATE FROM dual) t
    on (s.MODEL = t.MODEL)
    when not matched then
    INSERT (s.MODEL, s.NEW_COUNT, s.NEW_DATE, s.OLD_COUNT, s.OLD_DATE)
    VALUES (t.MODEL, t.NEW_COUNT, t.NEW_DATE, t.OLD_COUNT, t.OLD_DATE);
    My code combined...
    #!/bin/bash
    MODEL=$1
      sqlplus -S username/password << EOF
      whenever sqlerror exit 1;
      set echo on
      set verify off
      MERGE INTO SEMANTIC.COUNT_STATISTICS s
      USING (SELECT '${MODEL}' AS MODEL, 0 AS NEW_COUNT, SYSDATE AS NEW_DATE, 0 AS OLD_COUNT, SYSDATE AS OLD_DATE FROM dual) t
      on (s.MODEL = t.MODEL)
      when not matched then
      INSERT (s.MODEL, s.NEW_COUNT, s.NEW_DATE, s.OLD_COUNT, s.OLD_DATE)
      VALUES (t.MODEL, t.NEW_COUNT, t.NEW_DATE, t.OLD_COUNT, t.OLD_DATE);
      exit;
    EOF
    model_exists () {
      sqlplus -s username/password <<!
        set heading off
        set feedback off
        set verify off
        set pages 0
        SELECT count(MODEL)
        FROM SEMANTIC.COUNT_STATISTICS
        where MODEL ='$MODEL' AND TO_DATE(NEW_DATE, 'DD-MON-YY') = TO_DATE(SYSDATE, 'DD-MON-YY');
        exit;
    modelcount=$(model_exists $1)
    if [ "${modelcount:-0}" -ne 0 ]; then
        sqlplus -S username/password << EOF
        whenever sqlerror exit 1;
        set echo on
        set verify off
        INSERT INTO SEMANTIC.COUNT_STATISTICS(MODEL,NEW_COUNT,NEW_DATE,OLD_COUNT,OLD_DATE)
        SELECT MODEL,
      SELECT COUNT(*)
      FROM TABLE(SEM_MATCH(
      '{?s ?p ?o }',SEM_Models('$MODEL'),NULL,
      SEM_ALIASES(SEM_ALIAS('','http://VISION/DataSource/SEMANTIC#')),NULL))
        SYSDATE,
        NEW_COUNT,
        NEW_DATE
        FROM SEMANTIC.COUNT_STATISTICS
        WHERE MODEL = '$MODEL'
        AND NEW_DATE = (
      select max(NEW_DATE)
      from SEMANTIC.COUNT_STATISTICS
      where MODEL = '$MODEL'
      COMMIT;
      exit;
    EOF
    else
       sqlplus -S  username/password << EOF
      whenever sqlerror exit 1;
      set echo on
      set verify off
      UPDATE COUNT_STATISTICS
      SET  MODEL = '$MODEL',
      NEW_COUNT = (SELECT COUNT(*) FROM TABLE(SEM_MATCH('{?s ?p ?o}',SEM_Models('$MODEL'),NULL,
      SEM_ALIASES(SEM_ALIAS('','http://VISION/DataSource/SEMANTIC#')),NULL))
      NEW_DATE  = SYSDATE,
      OLD_COUNT = NEW_COUNT,
      OLD_DATE  = NEW_DATE
      WHERE MODEL = '$MODEL'
      AND NEW_DATE = (
      select max(NEW_DATE)
      from SEMANTIC.COUNT_STATISTICS
      where MODEL = '$MODEL'
      COMMIT;
      exit;
    EOF
    fi
    sqlplus -S username/password << EOF
      whenever sqlerror exit 1;
      set echo on
      set verify off
      update COUNT_STATISTICS
      set prnct_change =
        (NEW_COUNT-OLD_COUNT)/NULLIF(OLD_COUNT,0)*100
      where model = '$MODEL'
      AND NEW_DATE = (
      select max(NEW_DATE)
      from SEMANTIC.COUNT_STATISTICS
      where MODEL = '$MODEL'
      COMMIT;
      exit;
    EOF
    But this is creating two rows if it is a new MODEL, ie:
    ./load_myScript.sh  MODELNAME
    MODEL
    NEW_COUNT
    NEW_DATE
    OLD_COUNT
    OLD_DATE
    PRNCT_CHANGE
    MODELNAME
    72669230
    22-AUG-13
    0
    22-AUG-13
    (null)
    MODELNAME
    0
    22-AUG-13
    0
    22-AUG-13
    (null)
    This is not what I want. I want to create a new row if it doesn't exist and then update that same one for that day. But tomorrow it should INSERT a new one for that same MODEL name.
    Does anyone see what I am doing wrong?

    Hi,
    MODEL is an Oracle keyword, so it causes confusion to have a column named MODEL.  Errors like "Missing Keyword" can occur when  Oracle thinks you're talking about the MODEL clause, rather than the column.
    The best solution is not to use Oracle keywords (as found in v$reserverd words) for you own column names, or other identifiers.  MODEL_NAME and MODEL_ID are good names for columns
    If you really must use that column name, qualify it with the table name, and/or put the column name in double-quotes (case-sensitive), e.g.
    count_statistics."MODEL"

  • Error: ORA-00905:Missing keyword while creating Materialized view

    Hi Gurus,
    I am trying to create a materialized view as :
    1 CREATE MATERIALIZED VIEW AMREG.ClientData
    2 TABLESPACE AMREG_DATA
    3 COMPRESS
    4 PARALLEL
    5 NOLOGGING
    6 BUILD IMMEDIATE
    7 REFRESH COMPLETE
    8 ON DEMAND
    9 DISABLE QUERY REWRITE
    10 REFRESH START WITH TRUNC( SYSDATE + 1 ) + 3/24 NEXT TRUNC( SYSDATE + 1 ) + 3/24
    11 AS
    12 SELECT
    13 CHILD.CLIENT_SGK "Child SGK",
    14 CHILD.CLIENT_NAME "Child Name",
    15 CHILD.ARC_ACCT_CD "Child ARC Acct Code",
    16 ULTIMATE.CLIENT_SGK "Ultimate Parent SGK",
    17 ULTIMATE.CLIENT_NAME "Ultimate Parent Name",
    18 ULTIMATE.ARC_ACCT_CD "Ultimate ARC Acct Code",
    19 HIER.LVL_FROM_ANCESTOR ,
    20 FROM [email protected] CHILD,
    21 [email protected] HIER,
    22 [email protected] ULTIMATE
    23 WHERE HIER.DESCENDANT_CLIENT_SGK = CHILD.CLIENT_SGK
    24* AND ULTIMATE.CLIENT_SGK = HIER.ANCESTOR_CLIENT_SGK;
    SQL> /
    REFRESH START WITH TRUNC( SYSDATE + 1 ) + 3/24 NEXT TRUNC( SYSDATE + 1 ) + 3/24
    ERROR at line 10:
    ORA-00905: missing keyword
    DBLink name is : DNYCPH60.WORLD
    Please guide me on this and help to resolve the issue.

    I provided the answer over at the duplicate post ...
    ORA-00905: missing keyword error while creating a materialised view
    Please, please, please ... please do not duplicate posts. Pick one. If you don't get an answer in a reasonable time - close it (edit the title) and THEN open in a different forum.

  • /private/etc/cups folder is missing

    I am working tech support for a college and a faculty member currently working abroad called in with a problem that Microsoft Word for Mac would lock up everytime he tried to save or print a file. I remoted into his machine and I tried the usual suspects and was able to determine that nothing would print at all from any app, and in fact when I went to system preferences and tried to open the printers, it locked up system preferences. Digging deeper, I discovered that I was getting this message in console:
    com.apple.launchd[1] (org.cups.cupsd) Throttling respawn: Will start in 10 seconds
    The error kept repeating. I researched and found this thread:
    https://discussions.apple.com/thread/2151368?start=0&tstart=0
    Which led me to try these terminal commands:
    sudo cp /etc/cups/cupsd.conf /etc/cups/cupsd.conf.old
    sudo cp /etc/cups/cupsd.conf.default /etc/cups/cupsd.conf
    I got an error in terminal that "No such file or directory existed"
    So I checked and sure enough, inside of /private/etc/ there was no folder for cups. Its just gone. I assume that the folder being missing is the root of the problem, but I cant figure out how to get it back for him, especially considering that I am trying to assist him remotely. Any help or advice would be appreciated.

    # Become root
    sudo -s
    cd /private/etc
    # Make the tar archive in /Users/Shared
    tar -cjvf /Users/Shared/cups.tar.bz2 cups
    # Exit being the root user
    exit
    cd /Users/Shared
    # Check the contents of the tar archive
    tar -tvf /Users/Shared/cups.tar.bz2
    drwxr-xr-x  0 root   _lp         0 May  6 17:33 cups/
    dr-x--x--x  0 _lp    admin       0 May  7 18:05 cups/certs/
    -rw-r--r--  0 root   _lp      4524 Jan 20  2012 cups/cupsd.conf
    -rw-r--r--  0 root   _lp      4380 Dec 23  2011 cups/cupsd.conf.O
    -rw-r--r--  0 root   _lp      5978 May 13  2010 cups/cupsd.conf.bak
    -rw-r--r--  0 root   _lp      6091 Jul  6  2011 cups/cupsd.conf.default
    drwxr-xr-x  0 root   _lp         0 May 13  2010 cups/interfaces/
    drwxr-xr-x  0 root   _lp         0 Apr 30 10:10 cups/ppd/
    -rw-------  0 root   _lp      1624 May  6 17:33 cups/printers.conf
    -rw-------  0 root   _lp      1624 May  5 16:53 cups/printers.conf.O
    -rw-r--r--  0 root   _lp       172 May 13  2010 cups/snmp.conf
    -rw-r--r--  0 root   _lp     52273 Jan 13 06:43 cups/ppd/Brother_HL_5140_series.ppd
    -rw-r--r--  0 root   _lp   1072994 Apr 30 10:10 cups/ppd/HP_Photosmart_C4200_series.ppd
    -rw-r--r--  0 root   _lp   1072931 Apr 21 13:08 cups/ppd/HP_Photosmart_C4200_series.ppd.O
    -r--r-----  0 root   admin      32 May  7 18:05 cups/certs/0

  • Missing email folder icon on BBT 9800 - Where did it go and how to return it back?

    Missing email folder icon on BBT 9800 - Where did it go?
    The email icon on my BB Torch 9800 just disappeared. If I type email in the search button it shows me the greyed out email icon but I can't get the icon back on to my homescreen. How do I get my email icon back? And Unhide All is not an option so icant find it.
    Please consider the above on urgent basis as I can't see my work mails.
    Thanks,

    Hi hegazysource and welcome to the BlackBerry Support Community Forums!
    Are you using the BlackBerry® Internet Service or BlackBerry® Enterprise Server to receive your email on your device?
    Thanks.
    -CptS
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • My Final Cut Projects folder were missing some files, I went to my time machine backup to restore and it said I don't have permission to access the time machine folder "Final Cut Projects". Why?

    My Final Cut Projects folder were missing some files, I went to my time machine backup to restore and it said I don't have permission to access the time machine folder "Final Cut Projects". Why?

    Yes, I've done all "the ususal suspects.." repaired permissions, zapped pram, "reintroduced Time Machine to the backup drive by turning it off and on... etc

  • Alter database begin backup; missing keyword error

    Hi all,
    I am trying to put my database in backup mode using the command "alter database begin backup", but it is giving error shown below:
    $ sqlplus '/as sysdba'
    SQL*Plus: Release 9.2.0.5.0 - Production on Wed Nov 25 16:52:58 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, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.5.0 - Production
    SQL> select name,open_mode from v$database;
    NAME OPEN_MODE
    N05PCS07 READ WRITE
    SQL> alter database begin backup;
    alter database begin backup
    ERROR at line 1:
    ORA-00905: missing keyword
    NE one can tell why the command is failing??
    pls...
    Thanks in advance.
    SHAILESH

    Hello,
    All the former posts are right, alter database begin backup; doesn't exists in 9.2 althought
    you already have in this release the alter database end backup;.
    So as to put all the tablespaces in backup mode in one command I suggest you to create a
    stored procedure as follows:
    CREATE OR REPLACE PROCEDURE begin_backup IS
    TYPE RefCurTyp IS REF CURSOR;
    cv RefCurTyp;
    sql_cv VARCHAR2(400);
    tbs VARCHAR2(128);
    sql_stmt VARCHAR2(200);
    BEGIN
    -- Mise en BEGIN BACKUP des TABLESPACES
    sql_cv := 'SELECT distinct (A.name) FROM sys.v_$tablespace A, sys.v_$datafile B, sys.v_$backup C where A.TS# = B.TS# and B.FILE# = C.FILE# and C.STATUS = ''NOT ACTIVE''';
    OPEN cv FOR sql_cv;
    LOOP
    FETCH cv INTO tbs;
    EXIT WHEN cv%NOTFOUND;
    sql_stmt := 'ALTER TABLESPACE '||tbs||' BEGIN BACKUP';
    EXECUTE IMMEDIATE sql_stmt;
    END LOOP;
    CLOSE cv;
    END;
    Then, I just have to call the Procedure like that:
    execute <schema>.begin_backup; and all the tablespaces are in backup mode.
    This procedure must be created on a User/Schema with the following privileges:
    alter tablespace
    select on sys.v_$tablespace
    select on sys.v_$datafile
    select on sys.v_$backupHope it can help.
    Best regards,
    Jean-Valentin
    Edited by: Lubiez Jean-Valentin on Nov 25, 2009 9:44 PM

  • Missing Keyword

    Hi,
    I am running a SQL Statement in SQL Developer and it runs ok. When I try running the same statement in BI Publisher, I get the following error:
    An error occurred while processing the EXECUTE PHYSICAL statement. [nQSError: 17001] Oracle Error code: 905, message: ORA-00905: missing keyword
    My SQL is below:
    select a.active_year, round(nvl(b.leavers, 0)/(count(a.active_month)/12)*100, 1) as left_in_period
    from(
    select 'Avg No of Staff' TABLE_NAME, s.person_id, s.active_month,
    case when(case when to_number(to_char(s.active_month, 'mm')) in(11, 12) then substr(s.active_month,8,4)+1 else to_number(to_char(s.active_month, 'YYYY')) end) = 7 then 2007
    when (case when to_number(to_char(s.active_month, 'mm')) in(11, 12) then substr(s.active_month,8,4)+1 else to_number(to_char(s.active_month, 'YYYY')) end) = 8 then 2008
    when (case when to_number(to_char(s.active_month, 'mm')) in(11, 12) then substr(s.active_month,8,4)+1 else to_number(to_char(s.active_month, 'YYYY')) end) = 9 then 2009
    when (case when to_number(to_char(s.active_month, 'mm')) in(11, 12) then substr(s.active_month,8,4)+1 else to_number(to_char(s.active_month, 'YYYY')) end) = 10 then 2010
    when (case when to_number(to_char(s.active_month, 'mm')) in(11, 12) then substr(s.active_month,8,4)+1 else to_number(to_char(s.active_month, 'YYYY')) end) = 11 then 2011
    when (case when to_number(to_char(s.active_month, 'mm')) in(11, 12) then substr(s.active_month,8,4)+1 else to_number(to_char(s.active_month, 'YYYY')) end) = 12 then 2012
    when (case when to_number(to_char(s.active_month, 'mm')) in(11, 12) then substr(s.active_month,8,4)+1 else to_number(to_char(s.active_month, 'YYYY')) end) = 13 then 2013
    else to_number(to_char(s.active_month, 'YYYY')) end ACTIVE_YEAR
    from hc_employee_turnover_staff s
    union
    select * from(
    WITH my_data as (
    SELECT f.person_id,
    f.person_type_id,
    f.effective_start_date,
    f.effective_end_date,
    substr(p.internal_location, 1, 5) as loc,
    l.location_code,
    d.group_name
    from per_all_people_f f,
    --per_person_type_usages_f t,
    per_people_x p,
    per_assignments_x a,
    hr_locations l,
    pay_people_groups d
    --WHERE f.person_id     = 1182
    where f.person_id = p.person_id
    --and p.person_id           = t.person_id
    AND p.person_id = a.person_id(+)
    AND a.location_id = l.location_id(+)
    and a.people_group_id = d.people_group_id(+)
    and f.person_type_id in(1120,2122, 2123, 2120, 2121, 2118, 2119)),
    month_starts AS (
    SELECT DISTINCT DT FROM (
    SELECT LAST_DAY(to_date('01-OCT-2010','DD-MON-YYYY') + (LEVEL +1))+1 AS DT
    FROM DUAL
    CONNECT BY LEVEL <= to_date('01-NOV-2012','DD-MON-YYYY') - (to_date('01-OCT-2010','DD-MON-YYYY'))))
    SELECT 'Avg No of Staff' TABLE_NAME, person_id, month_starts.dt ACTIVE_MONTH,
    case when to_number(to_char(month_starts.dt, 'mm')) in(11, 12) then substr(month_starts.dt,8,4)+1 else to_number(to_char(month_starts.dt, 'YYYY')) end ACTIVE_YEAR
    from my_data
    INNER JOIN MONTH_STARTS
    ON (month_starts.dt between my_data.effective_start_date and my_data.effective_end_date))
    where table_name = 'Avg No of Staff') a,
    (select leaving_year, count(leaving_month) AS leavers from(
    select 'No of Leavers' TABLE_NAME, l.person_id, l.leaving_month,
    case when(case when to_number(to_char(l.leaving_month, 'mm')) in(11, 12) then substr(l.leaving_month,8,4)+1 else to_number(to_char(l.leaving_month, 'YYYY')) end) = 7 then 2007
    when (case when to_number(to_char(l.leaving_month, 'mm')) in(11, 12) then substr(l.leaving_month,8,4)+1 else to_number(to_char(l.leaving_month, 'YYYY')) end) = 8 then 2008
    when (case when to_number(to_char(l.leaving_month, 'mm')) in(11, 12) then substr(l.leaving_month,8,4)+1 else to_number(to_char(l.leaving_month, 'YYYY')) end) = 9 then 2009
    when (case when to_number(to_char(l.leaving_month, 'mm')) in(11, 12) then substr(l.leaving_month,8,4)+1 else to_number(to_char(l.leaving_month, 'YYYY')) end) = 10 then 2010
    when (case when to_number(to_char(l.leaving_month, 'mm')) in(11, 12) then substr(l.leaving_month,8,4)+1 else to_number(to_char(l.leaving_month, 'YYYY')) end) = 11 then 2011
    when (case when to_number(to_char(l.leaving_month, 'mm')) in(11, 12) then substr(l.leaving_month,8,4)+1 else to_number(to_char(l.leaving_month, 'YYYY')) end) = 12 then 2012
    when (case when to_number(to_char(l.leaving_month, 'mm')) in(11, 12) then substr(l.leaving_month,8,4)+1 else to_number(to_char(l.leaving_month, 'YYYY')) end) = 13 then 2013
    else to_number(to_char(l.leaving_month, 'YYYY')) end LEAVING_YEAR
    from HC_EMPLOYEE_TURNOVER_LEAVERS l
    union all
    select 'No of Leavers' TABLE_NAME, p.person_id,
    trunc(to_date(e.effective_start_date - 1), 'MONTH') as leaving_month,
    case when to_number(to_char(e.effective_start_date - 1, 'mm')) in(11, 12) then substr(e.effective_start_date - 1,8,4)+1 else to_number(to_char(e.effective_start_date - 1, 'YYYY')) end LEAVING_YEAR
    from per_all_people_f e,
    per_people_x p,
    per_assignments_x a,
    hr_locations l,
    pay_people_groups d,
    per_jobs_v j,
    per_grade_definitions g
    WHERE e.person_type_id = 1123
    and e.person_id = p.person_id
    and p.person_id = a.person_id(+)
    and a.location_id = l.location_id(+)
    and a.grade_id = g.grade_definition_id(+)
    and a.people_group_id = d.people_group_id(+)
    and a.job_id = j.job_id(+)
    and e.effective_start_date - 1 >= '01-NOV-2010')
    group by division, leaving_year) b
    where a.division = b.division(+)
    and a.active_year = b.leaving_year(+)
    GROUP BY A.ACTIVE_YEAR, B.LEAVERS
    ORDER BY 2, 1
    Can anyone help?
    Thanks
    Edited by: sliderrules on 03-Dec-2010 03:10

    Hi,
    I know this post is a while old though it's more for the future individuals who experiencing the issue
    I followed this by removing the comments though I was unable to resolve the issue. In my scenario, I was experiencing the issue with the naming convention of CTE's
    http://technicalconfessions.com/posts.php?post_id=199&title=Bi%20Publisher%2011g%20(OBIEE)%20ORA-00905:%20missing%20keyword
    Regards,
    Daniel

Maybe you are looking for

  • Failed to install Hotfix 4311 for Microsoft SQL Server 2008 (KB2494094) (64-bit)

    I have a cluster install at SQL version 10.0.4272.  I want to upgrade this to 10.0.4311.  When I go through install on passive node it fails with message of "The patch installer has failed to update the shared features.  To determine the reason for f

  • WITH Clause in Select

    Hi, Somebody to give an overview of WITH Clause in a SELECT stmt?. Thanks, Robert

  • Log-Entry: 'Warning: LDAP: query accept could not be found'

    I found many entries like this: Thu Mar 13 12:45:30 2008 Warning: LDAP: query accept could not be foundin our log 'mail.current'. We don't use LDAP (anymore). Where do I have to check if we have missed something what should be de-activated? In the GU

  • WLS 8.1.4 on RedHat Linux OS Upgrade

    I am upgrading RHEL from v2.1 to 4 therefore I would like to know if I also need to re-install Weblogic v 8.1 SP4? Thanks so much Guys!!

  • Question on preferred language errors in logfile

    Hi, running ICS 5.1.1 plain on Solaris 9. In the http.log file I see hundreds if not thousands of warnings/errors like: [21/Dec/2004:10:01:16 +0100] <nodename> cshttpd[29477]: General Notice: User <username>: Preferred language (nl) can not be found.