help for using VcServiceContent and FindAllByUuid

I discovered some methods builtin very convenient to find virtual machines by uuid (among other options), called FindAllByUuid, but I can't understand how to use it.

This page has had details

www.VMware.com/support/Developer/VC-SDK/visdk41pubs/ApiReference/vim.SearchIndex.html

but I'm going in circles, try to use it. My code is something like that, but no combination I can think of works.

var myServiceContent = new VcServiceContent();

myServiceContent.SearchIndex =?

myServiceContent.SearchIndex.FindAllByUuid("","42191c8c-ac11-f1f6-9476-d520a64d2305",true,true);

Can someone tell me how to use the FindAllByUuid?

Thank you

Here, try this workflow

Tags: VMware

Similar Questions

  • Expert secrets for using RMAN and Data Pump by kamran agayev and Aman Charm

    Hello

    This book is available in INDIA:
    Expert secrets for using RMAN and Data Pump by kamran agayev and Aman Sharma

    How can I get this book in India.

    Thank you
    Alok

    Published by: user12141893 on April 6, 2012 11:25

    I tried to purchase this book online official site crawling but shipping cost was more than the cost of the book.
    Book is not available on Flipkart and Amazon

    Helios,

    OP can send a mail to me too :-).

    OP,

    We are in discussions with the editor. In India, the book by another editor partner and details of it that I'll update when would be available. Thanks for your interest in our book.

    Aman...

    PS: This is a technical forum and is not intended for topics. Please discuss contacting Keita and me by email personally. Keep the forum in order that it is served for-technical discussions.

  • Hi guys, I bought a plan for using Photoshop and I can't download it. I received an email to verify my account after you pay, and then said: I will log in on creative cloud, I'm doing it, but it does not work, how can I do? Please someone help me

    I do not know how to connect creative cloud, and each time I try to discover by the website it shows just make me buy a plan (I already have)

    Sign out of your account of cloud... Restart your computer... Connect to your paid account of cloud

    -Connect using http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html

    -https://helpx.adobe.com/creative-cloud/help/sign-in-out-activate-apps.html

    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html

    -https://helpx.adobe.com/x-productkb/policy-pricing/activate-deactivate-products.html

    Download & install instructions https://forums.adobe.com/thread/2003339 can help

    -includes a link to access a page to download the Adobe programs if you do not have a disk or drive

    -you will need to enter your original serial number during the installation for non-Cloud programs

    - or kglad links in response to #1 here can help https://forums.adobe.com/thread/2081216

    Also go to https://forums.adobe.com/community/creative_cloud/creative_cloud_faq

    - and also read https://forums.adobe.com/thread/1146459

  • Need help for analysis "plan and background events waiting" on the report statspack for oracle database 11.2.0.4 on AIX

    HI: I analyze the STATSPACK report: this is the "volume test" on our UAT server for most of entry or "bind variables".  Our shared pool is well used in oracle.  Recovery of Oracle logs is not configured properly on this server, as in "Top 5 events of waiting", there are 2 for Oder.

    I need to know what other information may be digging from of 'waiting in the foreground events' & ' background waiting events ", and which can help us better understand, in combination of ' Top 5 wait event, that how did the server test /?  It could be overwhelming. wait events, so appreciate useful diagnostic or analyses.  Database is oracle 11.2.0.4 updated from 11.2.0.3 on IBM AIX 64-bit, level 6.x system power


    STATSPACK report


    DB Id Instance Inst Num Startup Time Release RAC database


    ~~~~~~~~ ----------- ------------ -------- --------------- ----------- ---

    700000XXX XXX 1 22 April 15 12:12 11.2.0.4.0 no.


    Host name Platform CPU Cores Sockets (G) memory

    ~~~~ ---------------- ---------------------- ----- ----- ------- ------------

    dXXXX_XXX AIX-Based Systems (64-2 1 0 16.0)


    Snapshot Id Snap Snap time Sessions Curs/Sess comment

    ~~~~~~~~    ---------- ------------------ -------- --------- ------------------

    BEGIN Snap: 5635 22 April 15 13:00:02 114 4.6

    End Snap: 5636 22 April 15 14:00:01 128 8.8

    Elapsed time: 59.98 (mins) Av law Sess: 0.6

    DB time: 35,98 (mins) DB CPU: 19,43 (mins)


    Cache sizes Begin End

    ~~~~~~~~~~~       ---------- ----------

    Cache buffer: block 2 064 M Std size: 8 K

    Shared pool: 3 072 M Log Buffer: 13 632 K

    Load profile per second per Transaction per Exec by call

    ~~~~~~~~~~~~      ------------------  ----------------- ----------- -----------

    DB Time (s): 0.0 0.6 0.00 0.00

    DB CPU: 0.0 0.3 0.00 0.00

    Size: 458 720,6 8,755.7

    Logical reads: 245,7 12 874,2

    Block changes: 1 356.4 25.9

    Physical reads: 6.6 0.1

    Physical writings: 61.8 1.2

    The user calls: 38.8 2 033,7

    Analysis: 286,5 5.5

    Hard analysis: 0.5 0.0

    Treated W/A Mo: 1.7 0.0

    Logons: 1.2 0.0

    Runs: 801,1 15.3

    Cancellations: 6.1 0.1

    Operations: 52.4


    Indicators of the instance

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Buffer % Nowait: 100.00 do NoWait %: 100.00

    Buffer % success: 99.98% W/A optimal, Exec: 100.00

    Library success %: 99,77% soft Parse: 99.82

    Run parse %: 64.24 latch hit %: 99.98

    Analyze the CPU to analyze Elapsd %: 53.15% Non-Parse CPU: 98.03


    Shared pool statistics Begin End

    ------  ------

    % Memory use: 10.50 12.79

    % SQL with executions > 1: 69,98 78,37

    % Memory for SQL w/exec > 1: 70.22 81,96

    Top 5 timed events Avg % Total

    ~~~~~~~~~~~~~~~~~~                                                   wait   Call

    Event waits time (s) (ms) time

    ----------------------------------------- ------------ ----------- ------ ------

    CPU time                                                       847          50.2

    ENQ: TX - 4 480 97 434 25.8 line lock conflict

    Log file sync 284 169 185 1 11.0

    log file parallel write 299 537 164 1 9.7

    log file sequential read 698 16 24 1.0

    Host CPU (processors: 2 hearts: Sockets 1: 0)

    ~ ~ ~ Medium load

    Begin End User System Idle WIO WCPU

    ------- -------   ------- ------- ------- ------- --------

    1.16 1.84 19.28 14.51 66.21 1.20 82.01


    Instance of CPU

    ~~~~~~~~~~~~                                       % Time (seconds)

    -------- --------------

    Host: Time (s) Total: 7,193.8

    Host: Availability of time processor (s): 2,430.7

    % of time host is busy: 33.8

    Instance: Time processor Total (s): 1,203.1

    % Busy CPU used, for example: 49.5

    Instance: Time of database total (s): 2,426.4

    % DB time waiting for CPU (resp. resources): 0.0


    Statistical memory Begin End

    ~~~~~~~~~~~~~~~~~                ------------ ------------

    Host Mem (MB): 16,384.0 16 384,0

    Use of LMS (MB): 7,136.0 7 136,0

    Use of PGA (Mo): 282.5 361.4

    Host % Mem used for SGA + PGA: 45.3 45.8

    Foreground wait events DB/Inst: XXXXXs Snaps: 5635-5636

    -> Only events with wait times Total (s) > =.001 are indicated

    --> sorted by Total desc waiting time, waits desc (idle last events)


    AVG % Total

    % Tim Total wait Wait Wait call

    Event is waiting for the time (s) (ms) /txn times

    ---------------------------- ------------ ---- ---------- ------ -------- ------

    ENQ: TX - line lock 4 480 0 434 97 contentio 0,0 25.8

    284 167 0 185 1 file synchronization log 1.5 11.0

    File I/O 8 741 of disk 0 4 operations 0.0 0.2

    direct path write 0 13 247 3 0.1 0.2

    DB file sequential read 6 058 0 1 0.0 0.1

    buffer busy waits 1 800 0 1 1 0,0.1

    SQL * Net more data to the client 29 161 0 1 0.2 0.1

    direct path read 7 696 0 1 0.0 0.0

    db file scattered read 316 0 1 2 0,0.0

    latch: shared pool 144 0 0 2 0,0.0

    Initialization of 30 0 0 3 0,0.0 CSS

    cursor: hand 10 0 0 9 0,0.0 S

    lock row cache 41 0 0 2 0,0.0

    latch: rank objects cache 19 0 0 3 0,0.0

    log file switch (private 8 0 0 7 0,0.0 str

    library cache: mutex X 28 0 0 2 0,0.0

    latch: cache buffers chains 54 0 0 1 0,0.0

    free lock 290 0 0 0.0 0.0

    sequential control file read 1 568 0 0 0.0 0.0

    switch logfile (4 0 0 6 0,0.0 control point

    Live sync 8 0 0 3 0,0.0 road

    latch: redo allocation 60 0 0 0 0.0.0

    SQL * Net break/reset for 34 0 0 1 0,0.0 customer

    latch: enqueue hash chains 45 0 0 0 0.0.0

    latch: cache buffers lru chain 7 0 0 2 0,0.0

    latch: allowance 5 0 0 1 0,0.0 session

    latch: object queue header 6 0 0 1 0,0.0 o

    Operation of metadata files ASM 30 0 0 0 0.0.0

    latch: in memory of undo latch 15 0 0 0.0 0.0

    latch: cancel the overall data 8 0 0 0 0.0.0

    SQL * Net client message 6 362 536 0 278 225 44 33.7

    jobq slave wait 7 270 100 3 635 500 0.0

    SQL * Net more data to 7 976 0 15 2 0,0 clien

    SQL * Net message to client 6 362 544 0 8 0 33.7

    -------------------------------------------------------------

    Context of the DB/Inst events waiting: XXXXXs clings: 5635-5636

    -> Only events with wait times Total (s) > =.001 are indicated

    --> sorted by Total desc waiting time, waits desc (idle last events)

    AVG % Total

    % Tim Total wait Wait Wait call

    Event is waiting for the time (s) (ms) /txn times

    ---------------------------- ------------ ---- ---------- ------ -------- ------

    log file parallel write 299 537 0 164 1 1.6 9.7

    log file sequential read 698 0 16 24 0.0 1.0

    db file parallel write 9 556 0 13 1 0,1.8

    146 0 10 70 0,0.6 startup operating system thread

    control file parallel write 2 037 0 2 1 0,0.1

    Newspaper archive e/s 35 0 1 30 0,0.1

    LGWR wait for redo copy 2 447 0 0 0.0 0.0

    async file IO DB present 9 556 0 0 0.1 0.0

    DB file sequential read 145 0 0 2 0,0.0

    File I/O disk 349 0 operations 0 0.0 0.0

    db file scattered read 30 0 0 4 0,0.0

    sequential control file read 5 837 0 0 0.0 0.0

    ADR block lu file 19 0 0 4 0,0.0

    Block ADR file write 5 0 0 15 0,0.0

    direct path write 14 0 0 2 0,0.0

    direct path read 3 0 0 7 0,0.0

    latch: shared pool 3 0 0 6 0,0.0

    single log file write 56 0 0 0.0 0.0

    latch: redo allocation 53 0 0 0 0.0.0

    latch: 1 0 0 3 0,0.0 active service list

    free latch 11 0 0 0 0.0.0

    CPI of RDBMS 5 314 523 57 189 182 1.7 message

    Space Manager: slave wa slowed 4 086 88 18 996 4649 0.0

    DIAG idle wait 7 185 100 1000 7 186 0.0

    Streams AQ: waiting time 2 50 4 909 # 0,0

    Streams AQ: qmn slowed slave 129 0 3 612 28002 0.0 w

    Streams AQ: Coordinator of the 258 50 3 612 14001 0,0 qmn

    SMON timer 2 43 3 605 83839 0.0

    PMON timer 99 1 199 2999 3 596 0.0

    SQL * Net client message 17 019 0 31 2 0.1

    SQL * Net message to client 12 762 0 0 0.1 0

    class slaves wait 28 0 0 0 0.0

    Thank you very much!

    Hello

    I think that your CPU is overloaded by your stress tests. You have one VCPU with 2 wires (2 LCPU), right? And the load average is greater than one. You have time DB which is not counted in (CPU time + wait events) and which comes no doubt from time spent in the runqueue.

    > Oracle recovery logs is not properly configured on this server, as in "Top 5 events of waiting", there are 2 for oder

    It is an error in statspack for show "log file parallel write here." This moment is historical and is included in 'log file sync '. And I don't think you have to redo misconfiguration. Waiting for 1ms to commit is ok. In OLTP you should have more than one validation in a user interaction so that the user don't worry not about 1 m in batch mode, unless you commit to each row, 1 DC to commit should not increase the total execution time.

    The fact that you have a lot of line lock (enq: TX - line lock conflict) but very little time (on average 97 ms) is probably a sign that testers are running simultaneously a charge affecting the same data. Their set of test data is perhaps too simple and short. An example: when stress tests of an order entry system if you run 1000 concurrent sessions, ordering the same product to the same customer, you can get this kind of symptoms, but the test we unrealistic.

    It's a high activity of 2000 calls per second, 52 transactions per second, user. But you also have low average active sessions, so the report probably covers a period of non-uniform activity, which makes the averages without meaning.

    So note to tell about the events of waiting here. But we don't have any info about 39% of DB time devoted to the CPU which is where something can be improved.

    Kind regards

    Franck.

  • NEED HELP FOR THE RESOLUTION AND QUALITY?

    Hi guys

    I've done of these vector portraits type in photoshop for the past two weeks, we were all going well until, when someone sets up as a picture on facebook etc the quality is not as good as when I just display the image on my computer.

    I was from the new photoshop and using 800 x 800 pixels and the resolution to 72 pixels/inch, I wrong here somewhere? or is it the fact that I use photoshop to do this? im sure there are many people who will advise me to use illustrator, which I thought a lot to do. but I would like to know if this can be fixed in photoshop first.

    Thanks in advance for your help

    question.jpg

    It's a little pixel-ish in the areas...

    FAULTY zeth vector.jpg

    P.S. I also notice that it is working in the "defective" text box

    Once your support for a screen, you only need to worry about the pixel dimensions, the PPI is irrelevant. Facebook will tell you what's the resolution of each image. To my knowledge, Facebook does not support svg graphics in the opposite case, you could use Illustrator. Just make sure that when you don't create vector graphics in PhotoShop that you save a copy in a file buffer, as the jogging and png do not support vectors.

  • Need help to use CSS and holders of spot Image positioning rules

    The evening

    I need to do tomorrow for quick help would therefore be quite appreicated!

    I'm doing a website for a COMPUTER company, and as you peut/can not know, support for XP and Office 2003 fell tomorrow - they want a button in the header of their site that essentially says "click here to get advice from upgrade" and when you click on it you are redirected to a page telling you the benefits of the upgrade. They want it to look like the mock below:

    http://i1160.photobucket.com/albums/q487/vistakid10/Capture_zps2eb23b0b.png

    I had a right old job getting even the button (it is in PNG format) to go above BrownTech logo. I inserted a placeholder, it related to the PNG file, and then I made a custom CSS rule/class called '.header_fltrt' to put the image and drag it to this place, directly above BrownTech logo.

    To get the button upgrade to the desired location, here are the properties CSS "box", I used to .header_fltrt CSS rule.

    http://i1160.photobucket.com/albums/q487/vistakid10/Capture2_zps443b0918.png

    It is noted that the size of the header itself is 960x235px, and the BrownTech logo is the background image for the header class (and is 960 x 235 in dimensions).

    The problem I'm having is that when I view the page in Design view in Dreamweaver, it looks good, but when I see in Live view or in a web browser, it looks like this:

    http://i1160.photobucket.com/albums/q487/vistakid10/Capture3_zpsce9f2b8d.png

    As you can see, the upgrade button is not visible!

    Also, when I go back into design mode on Dw, when I click on the button upgrade, I don't get any space reserved properties as I do when I click on the Green logo in the top left (which, incidentally, is just a link to the index page).

    I don't know why this is, but I can't find a way to solve it. I even tried to put BrownTech logo on a transparent background, thinking that the white background block can cover the button upgrade, but this isn't the case.

    Sorry if I didn't explain very clearly. I hope you can see my problem.

    Any help on etting the button upgrade to preview in the right place would be much appreciated!

    Add a margin left at your image and increase la.header min-height so that the bottom has more room on top.

    {.header_fltrt}

    margin left: 185px;

    Width: 552px;

    }

    Nancy O.

  • Help for a date and time string in the format of get-date

    When you take a date / time string of an object:

    The format of the entry is a string and get-date doesn't seem to be able to convert to the

    a System.DateTime.

    I want to compare this value to 30 days so there are get-date ((get-date).adddays(-30))

    When I try the following, it seems to work then import it:

    (get-date - UFormat "%d/%m/%Y %T" ("2010-06-30 00:00:00" ""))

    If I add the following:

    "[datetime]" (get-date - UFormat "%d/%m/%Y %T" ("2010-06-30 00:00:00" ""))

    He can't convert it.

    Without the datetime component, when I try a superior test uses only the date

    the part as well:

    $Test = '2009-10-06 00:00:00.

    If ($Test - gt (get-date - UFormat "%T"("06/05/2010 00:00:00") %d/%m/%Y ""))

    {

    $Tested = 'Yes '.

    }

    On the other

    {

    $Tested = 'no '.

    }

    $tested

    Results in a Yes tentatives being earlier.

    In the script it returns all records where the date is after

    as 05 and ignore the year, month, and time.

    Any help with this would be greatly appreciated.

    Thank you

    This has to do with the 'culture' that you use in your PowerShell session.

    You can use the Get-Culture cmdlet to see that one you use.

    If you try

    [datetime](get-date -UFormat "%m/%d/%Y %T"("30/06/2010 00:00:00"))
    

    The parameter - UFormat produces a string and

    the cast is expected default mm/dd/yyyy format, for the part of the date.

    So, by reversing the month and day of your UFormat string - that has been corrected.

    BTW, I have attached the line because the SW forum do not have hooks.

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • [SOLVED] I need help for Shared Documents and Documents on my computer XP Home

    I need help with my shared Documents and other folders on my computer. I have an administrator account. My son has a limited access account.

    I clicked on the option 'make my private files and folders '.  His file was renamed to Documents now my shared Documents. It's just my account.

    I tried to undo what I did. I tried everything (I mean everything) has proposed to do online.

    First of all, I logged in Safemode administrator account. I went to the Documents folder, and I've added the Administrators group and click full control.

    Then I restored system a few weeks before. Then, I went to http://computers.douglasthrift.net/winxpfaq/#faq3_shared_documents and did everything.

    None of them worked. I did so much, that I don't remember.

    Then, I found that the registry key for the Shared Documents lacked in the MUi cache. @shell32.dll,-21785. I entered, but after I rebooted a few times, he disappeared. I have to hurt... In addition to this. Now I face a different problem. I don't know it is normal but when I login my account and click on

    My computer, I see Documents of my name and the name of my son in addition to Documents (Shared Documents).

    When I save a new file in the My Documents folder, it is automatically created in the folder of Documents of my name, too. I can't delete them because they are system folders. I crossed my registry keys in the MUI cache and discovered that 4 of them did not exist in other accounts.

    @shell32.dll,-21792; 21793; 21794; 21795 (%, etc. of music of % documents). I don't know if I can delete them or not.

    I'm not an expert in computers. I'm sorry that it is very long.  I hope someone can help me. Thank you.

    Hello

    I suggest you follow the troubleshooting steps and check if this solves the problem on your computer.

    Method:

    Ra SFC scan to search for the missing or corrupt files that can cause this problem.

    Of file system (CFS) when checking that all the Windows XP system files are intact and not altered, changed or damaged.

    a. Click Start, click programs, accessories, command prompt principally made.

    b. in the type in the following command prompt window and press ENTER:

    sfc/scannow

    If you are prompted to insert the Windows XP disc, load the disc of Windows XP on the CD drive on your computer.

    Once the scan finished restart your computer and test to see if the problem you are experiencing is resolved or not.

    Reference: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/system_file_checker.mspx?mfr=true

    I hope this information helps. Please get back to us if you have any other questions on this subject.

  • Help! using WSUS and 22 sofar return changes

    I just started to use WSUS in my field.  I have AD.   On the Pro 60 or so W-7 computers in the field, 22 gives me this message "Failure Configuring Windows Updates, Revert Changes".  The 32 Bits seem to not be performed.   I have a few computers with of 2 or 3, maybe updates failed 4. There are 64. Several have 13, anyway.  WSUS shows the big red X for the affected machines.

    That's what I tried.

    I ran (KB947821) system update readiness tool, he worked for a single machine.

    I tried MS it Fix tool but didn't see any results.

    I tried selecting 1 update both to install or download and install manually. No difference.

    I removed the PC from the network thinking there was something that I myself through GP. Nothing made a difference.

    In WSUS, I chose to remove the 13 updates failed.  These seem to be those that promote return.  I know that's not the answer.  (Which will remove the updates of the machines that have been installed successfully or which depends on where I chose to remove in WSUS?)

    I read (because I have nothing better to do on a Saturday night) to try this: go to regedit > Hkey_Local_Machine > software > Microsoft > Windows > CurrentVersion > Setup > OOBE and change the value from 1 to 0.  Then run this command: slmgr/rearm. Finally restart.  I have not tried yet.  Any ideas what I should try? I'm worried users will wait for 45 minutes to come back and not be happy with me.

    Sorry for any typo I never see them when I review what I type. Last week, I got an email from big business and the location of the word went out in lactation. I am still red...

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
    *
  • Help for using utl_file.frename

    Hello
    I want to spend 100 index datafile from one place to another. first of all, I use all the indexes tablespace offline offline and copy all the files to the new location and bring it back online. Is a fairly simple way to move files, but I have hundreds of files copy and paste has been slow to do. Iwanted to write the script for him. I found utl_file.frename used to move the file it works if I pass the name of the file. but I want to use it in the slider and pass a variable value rather hardcoded. I want something like that
     DECLARE
    CURSOR FL_cur is  select file_name from dba_data_files where FILE_NAME like 'IND%';
    company_rec FL_cur%ROWTYPE;
    BEGIN
    OPEN FL_cur;
    FETCH FL_cur INTO company_rec;
    utl_file.frename('MYDIR',company_rec,'MYDIR1',company_rec, TRUE);
    close FL_cur;
    end;
    is there a function any UTL that search folders contain keyword IND in the work for the LIKE OPERATOR?
    any idea?

    Oracle Studnet wrote:
    is there a function any UTL that search folders contain keyword IND in the work for the LIKE OPERATOR?
    any idea?

    There is nothing official built-in Oracle to read a directory of names of files.
    There are techniques using Java to do, but if you aren't familiar with doing Java in oracle, then who could do a little tricky for you.

    Chris Poole wrote a package PL/SQL that can do it, called XUTL_FINDFILES...

    http://www.chrispoole.co.UK/apps/xutlff.htm

    requires no Java.

  • Is there a specific rule for using 'IS' and 'UNDER' keyword?

    Hello
    I am confused about the use of these two keywords 'IS' and 'AS' It seems to me that they are used at random anywhere in the procedure, package, or triggers etc...
    Is there a rule for applications out there, or the only way is to remember the actual syntax whenever they are used?

    They are usually interchangeable, you can use whichever you choose.

    In the English language, is that "some object" and "make an action such AS" so, for example...

    in a package if we define a type it reads better as:

    TYPE mytype IS TABLE OF NUMBER;
    

    because we say this type called mytype IS an array of numbers.

    But if we were to create the type on the database we use for example

    CREATE OR REPLACE TYPE mytype AS RECORD (x number, y number);
    

    because we say we are going to create (action) to a type called mytype as a record.

    Just a slight difference in the grammatical meaning, but Oracle is not embarrassed if you choose to use it in most cases.

  • Help on using substr and instr functions

    Hello

    I'm trying to go back to the first three letters of the first word and all the last word in a description field. For example, if the description is 'grilled steak' the query should return "steak gri. That's what I have so far:

    SELECT SUPPLIER_ID, PRODUCT_CODE, SUBSTR (DESCRIPTION, 1, 3). ' ' || SUBSTR (DESCRIPTION, INSTR (DESCRIPTION, ' ', 3)) AS A DESCRIPTION
    OF L_FOODS;

    Unfortunately, if the first word is the final word, it returns something like "sod soda." Does anyone have any advice or suggestions? Any help would be appreciated.

    Hi and welcome to the forum!

    It is always helpful if you identify your version of Oracle. The solution below depends on 10.1 and upward.

    What you could do is include a conditional around your instr/substr functions that checks the number of spaces between words. If it is greater or equal two one then there are at least two words. For example:

    WITH test_data AS
    (
         SELECT 'grilled steak' AS DESCRIPTION FROM DUAL UNION ALL
         SELECT 'large pepperoni pizza' AS DESCRIPTION FROM DUAL UNION ALL
         SELECT 'soda' AS DESCRIPTION FROM DUAL
    )
    SELECT     (CASE
              WHEN LENGTH(REGEXP_REPLACE(TRIM(DESCRIPTION),'[^[:space:]]','')) > 0
              THEN SUBSTR(DESCRIPTION,1,3) || SUBSTR(DESCRIPTION,INSTR(DESCRIPTION,' ',-1))
              ELSE SUBSTR(DESCRIPTION,1,3)
         END) AS DESCRIPTION
    FROM     test_data
    

    Results

    SQL> /
    
    DESCRIPTION
    -----------------------
    gri steak
    lar pizza
    sod
    

    : EDITION:

    I also wanted to add this:

    SUBSTR(DESCRIPTION, INSTR(DESCRIPTION, ' ', 3))
    

    May not return the expected results. If your description field contains more than two words he will return all remaining words not only the LAST Word. See my solution above for what I believe is the correct version.

    HTH!

  • Need help for remote management and SBS 2003.

    I can manage the server remotely, but try to make the computer customer is a bust. don't know if I'm missing a plugin or something else. all customer mailboxes are XP sp3.
    Do you need a SMS server just for 7 boxes?  Go ahead, change is grouped bot not SMS?
    IDK, I inherited this network.
    I can install 3rd pty software on all the boxes, but then why do I a remote on the server management option?
    I'm confused & pretty angry atm

    Your question would be better in the Technet forums where the network and system administrators to wander and have a lot more experience with Small Business SERVER 2003: http://social.technet.microsoft.com/Forums/en-us/categories/

    RDP ports are open on the XP boxes? The RDP service runs on them? I'm not too familiar with it on SBS, but could check those.
  • Help for Vista OS and Lsas.Blaster.Keyloger AKA System Tool 2011, that's what they're trying to sell me. Help, please!

    I need to get rid of this horse of Trojan Lsas.Blaster.Keyloger affecting my vista OS. He placed System Tool 2011 shortcuts on my desktop and locked everything up. I could only open task Man in safe mode and I do not see a process of Ava.exe. Can you let me know that this process should be named tonight and that this indication must be for this?


    Thank you

    Melo

    Ideas:

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    I need to get rid of this horse of Trojan Lsas.Blaster.Keyloger affecting my vista OS. He placed System Tool 2011 shortcuts on my desktop and locked everything up. I could only open task Man in safe mode and I do not see a process of Ava.exe. Can you let me know that this process should be named tonight and that this indication must be for this?


    Thank you

    Melo

    Ideas:

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    Hey cottage

    Follow the steps provided on the link below, including running rkill before the scan with malwarebytes anti-malware

    http://www.bleepingcomputer.com/virus-removal/remove-system-tool

    Walter, the time zone traveller

  • Need help for Coldfusion 8 and jquery

    Hey guys,.

    I use Coldfusion 8 and trying to do something exactly like features of Facebook where you post, or "Share" something on the wall of the user.

    All I want to do is a text entry box do an ajax post, then do an ajax load messages last so that it shows that the display last over existing ones.

    I've read many sites on different tuts json and coldfusion, but I can't seem to find one that deals with the posting and updating the data after the message using ajax/json

    If anyone can give me a quick and dirty example, I would appreciate it a lot.

    Thank you in advance!

    Chris

    In fact, you don't have to get the messages, you just have to get the most recent and to show the first post, instead of add, to make a prefix.

    It will be much faster and easier, you don't really have JSON to do this, return the plain format will do.

    with returnformat = json, you can return anytype, query or table or structure. To see what returns coldfusion, use Firebug plugin in firefox

    Add this line to the callback function

    Console.log (Data)

    It will show the data object in the console, you can extend it to see what it has and how to use it;

Maybe you are looking for