What's the reason behind adding ':'|| and ||':' to items in INSTR function?

Hi,
I noticed in examples that when the INSTR function is used items and the search strings are preceeded/followed by ':'|| and ||':' and I was just wondering why this is so. Does this not just add a : to the start and finish of the item and string? Is there an advantage over just coding it like so:
instr(upper(OBJECT_ID), upper(:P18_OBJECT_ID)) > 0)
rather than
instr(':'||:P18_STATUS||':',':'||STATUS||':') > 0
Cheers,
simon.

Simon,
I don't know about the instr vs. like question. For the other question, I've seen this used mostly for checking for the presence of a token within a colon-delimited string of values. Consider:
******** Right Answer ********
SQL> select 1 from dual where instr(':'||'CREATE:UPDATE:DELETE:'||':', ':'||'CREATE'||':') > 0;
1
1
******** Wrong Answer ********
SQL> select 1 from dual where instr('CREATE:UPDATE:DELETE:', ':'||'CREATE'||':') > 0;
no rows selected
******** Right Answer ********
SQL> select 1 from dual where instr(':'||'CREATE:UPDATE:APPLY_CHANGES:DELETE:'||':', ':'||'APPLY'||':') > 0;
no rows selected
******** Wrong Answer ********
SQL> select 1 from dual where instr(':'||'CREATE:UPDATE:APPLY_CHANGES:DELETE:'||':', 'APPLY') > 0;
1
1
Scott

Similar Messages

  • Could you tell me what is the reason behind all this?

    Hi
      Zp0001, we have 510 pcs in stock, but for some reasons we can’t commit the orders that we have on the system. When we go into a xyz order 308 for example), the system commits only to February, even if we could do a partial shipment.
    Could you tell me what is the reason behind all this?

    Please look into availability check for that particular material,
    based on the availability check the system determines whether to
    confirm the sales order (if the sales order qty > inshe stock (either
    rejection/partial confirmation - depends upon the availability check),
    followed by determination of delivery date

  • What is the reason behind not supporting 3.4 GHZ Prescott core?

    I wonder why my MSI 865PE Neo2-LS (MS-6728) does not support the 3.4 GHZ Prescott core    . I thought all 865PE chipset could support 3.4 GHZ Prescott core  . My board support 3.4GHZ but Northwood core only, and you know guys how difficult to find 3.4c.
    I am using now 2.8E and I feel that this processor is not enough for my Geforce 6800 GT, this card can do better with 3.4E for sure.
    I managed to overclock the 2.8E up to 3.466 and it was stable, the difference in performance was clear.
    My games run much faster now, but I hate to use program like Core Center to overclock,
    I always prefer the BIOS to overclock my computer. After feeling the different between the 2.8 and 3.4 i decided to buy the 3.4E but i shocked when i check the  CPU support list for my board that it is not supporting 3.4 Prescott core,
     not only the 3.4E also the 3.2E is not supported and all Celeron D are not supported. They wrote in the board website that the board is "Prescott Ready" and support up to 3.2 and higher speed.
    MSI have boards lower class than my board and they are supporting 3.2E and 3.4E without problem and also support all Celeron D, I don't understand why my board does not support this speeds?

    Quote
    Your board was designed and produced before the final power requirements for Prescott cpu's were finalized.
    I think that is the reason, and it may explain why MSI close the v-core option in their BIOS also.
    I know that it is difficult to get an answer to my question in MSI Forum, because MSI Support should have the answer to my question, but if I send an E-mail to MSI Support all what I will get is the automatic reply only, that’s why I wrote this topic, because I know that I will find an answer that will satisfy me in this Forum.
    Thanks a lot Danny, this mean if i want to change the CPU i should change the Motherboard too.  
    This time i will go for AMD and stop using INTEL CPU's .

  • What is the difference between Alternate and Substitute item?

    Hi guys
    Can any one help me in understanding the difference between a Alternate Item and Substitute Item.
    Please refer any link / document for further study, if available.
    Thanks in advance
    Sreee

    Does Oracle have the concept of a substitute component, irrespective of the BOM in which it could exists?
    For example, Component A can always be replaced by Component B. This would be applicable to Product X or Product Y, both of them use Component A.
    Oracle seems to have the concept of a substitute component on a specific BOM (BOM_SUBSTITUTE_COMPONENTS).
    http://download-west.oracle.com/docs/cd/A60725_05/html/comnls/us/bom/bomtas05.htm
    Using this functionality, I would have to specify B as a substitute in two different BOMs - one for Product X, one for Product Y.
    I am wondering if there is a global "Subsititute Item/Component".

  • What is the reason behind upload speeds lower than...

    Would anyone be able to explain it? 

    Hi Jamesey162,
    There is no reason as such. Different providers have different packages. It just depends on what package your on.
    E.g, Infinity option 2 gives 20mb upload speed but infinity option 1 only gives up to 9.5mb upload speed.
    It basically varies with providers.
    Hope this helps,
    Dominic. 

  • What is the reason behind the delay of Nokia Lumia...

    This is just a question to Nokia & Microsoft...

    This is a user to user forum, so if you want to ask Nokia, ask through Nokia Support, the link is at the bottom of the page. If you want to ask Microsoft, go to their windows phone forum.

  • What is the reason behind the concept of "browser as a desktop" (first sparked by Opera)?

    In 1998, Opera created a concept of browser as a desktop (by enabling in-window tab arrangement). Later on, Opera made the top of the browser window to act like a second taskbar. Though the tab arrangement is not used in other browsers, the second taskbar (one-button menu in tab bar, docked to title bar) became standard with introduction of Google's Chrome.
    ''locking - no Firefox support question was asked''

    In 1998, Opera created a concept of browser as a desktop (by enabling in-window tab arrangement). Later on, Opera made the top of the browser window to act like a second taskbar. Though the tab arrangement is not used in other browsers, the second taskbar (one-button menu in tab bar, docked to title bar) became standard with introduction of Google's Chrome.
    ''locking - no Firefox support question was asked''

  • What is the Porcess behind root.sh and orainstRoot.sh scripts run by root

    What is the Porcess behind root.sh and orainstRoot.sh scripts run by root, please replay the details wts behinds.

    http://sites.google.com/site/catchdba/Home/what-orainstroot-sh-and-root-sh-scripts-will-do
    $ sudo /local/mnt/oraInventory/orainstRoot.sh
    AFS Password:
    Changing permissions of /local/mnt/oraInventory to 770.
    Changing groupname of /local/mnt/oraInventory to dba.
    The execution of the script is complete
    $ sudo /local/mnt/oracle/product/11.1.0.6/root.sh
    Running Oracle 11g root.sh script...
    The following environment variables are set as:
       ORACLE_OWNER= oracle
       ORACLE_HOME= /local/mnt/oracle/product/11.1.0.6
    Enter the full pathname of the local bin directory: [usr/local/bin]:
       Copying dbhome to /usr/local/bin ...
       Copying oraenv to /usr/local/bin ...
       Copying coraenv to /usr/local/bin ...
    Creating /etc/oratab file...
    Entries will be added to the /etc/oratab file as needed by
    Database Configuration Assistant when a database is created
    Finished running generic part of root.sh script.
    Now product-specific root actions will be performed.
    Finished product-specific root actions.

  • I bought whatsup on 5th of june and my account has been debited for INR 60.  Today(8th june) again my account has been debited for INR 55.  I want to know the reason behind it?

    i bought whatsup on 5th of june and my account has been debited for INR 60.  Today(8th june) again my account has been debited for INR 55.  I want to know the reason behind it?

    You could go to the app store on your phone then tap on the update button bottom right then tap on purchases at the top and see what has been bought on your phone also you could goto itunes in you romputer and click on your account once itunes store has been selected from the left then click on account and enter your password and scroll down to Purchase history and click on "see all" and have a look at recent purchases

  • Am trying to subscribe to Hulu Plus But keeping asking your email  or password not correct !!! So What is the reason and both is correct ...

    Am trying to subscribe to Hulu Plus But keeping asking your email  or password not correct !!! So What is the reason and both is correct :(

    You have to configure Gmail to allow access to less secure apps. Thunderbird uses the IMAP-protocol, but Google thinks it isn't safe enough.
    Go to your browser and login to Gmail. Now click on your profile picture and click Account. Go to the Security tab and click on Settings for Access for less secure apps under Account Permissions. Enable it and Thunderbird should have access to your email...
    BTW This is totally safe. There's no need to scratch behind your ear about changing this setting

  • Hi i have a macbook pro and when i changed the hard drive the screen wasn't as it was supposed to be which is it had a green colour on it's side.what can i do to fix it and what is the reason for it?

    hi i have a macbook pro and when i changed the hard drive the screen wasn't as it was supposed to be it was green on it's side and blurred.what can i do to fix it and what is the reason?

    either something got damaged when you installed the hard drive or you need to perform a pram reset (other possibilites could have occured, these are the ones I think)
    PRAM http://support.apple.com/kb/ht1379

  • Illustrator keeps quitting-notice others have had similar issues, not resolved-so what it the reason for "sending a report" to Adobe if nothing can be done with it????? paying for a product that I can't use when I need to use it and no help-come on-someon

    Illustrator keeps quitting…notice others have had similar issues…so what it the reason for "sending a report" to Adobe if nothing can be done with it????? paying for a product that I can't use when I need to use it and no help…come on…someone has to have an answer…HELP Pleeeeease

    <moved from Adobe Creative Cloud to Illustrator>
    reset your preferences -
    acrobat:  http://help.adobe.com/en_US/acrobat/X/pro/using/WS58a04a822e3e50102bd615109794195ff-7feb.w .html
    adobe media encoder: https://forums.adobe.com/thread/1713540
    after effects:  http://helpx.adobe.com/after-effects/using/preferences.html
    dreamweaver:  https://helpx.adobe.com/dreamweaver/kb/restore-preferences-dreamweaver-cs6-cc.html
    flash:  http://helpx.adobe.com/flash/kb/re-create-preferences-flash-professional.html
    illustrator:  http://helpx.adobe.com/illustrator/using/setting-preferences.html
    indesign:  https://forums.adobe.com/thread/526990
    lightroom: https://helpx.adobe.com/lightroom/help/setting-preferences-lightroom.html
    muse (mac): https://forums.adobe.com/thread/1246022?tstart=0
    photoshop:  https://forums.adobe.com/thread/375776
    photoshop elements:  https://helpx.adobe.com/photoshop-elements/kb/preference-file-locations-photoshop-elements .html,  http://www.photokaboom.com/photography/learn/Photoshop_Elements/troubleshooting/1_delete_p references_file.htm
    premiere elements:  https://helpx.adobe.com/photoshop-elements/kb/preference-file-locations-photoshop-elements .html
    premiere pro: http://www.mediacollege.com/adobe/premiere/pro/troubleshooter/trash-preferences.html
    if that fails, uninstall, clean (http://www.adobe.com/support/contact/cscleanertool.html) and reinstall

  • Listener and gsd are unknown, what is the reason

    I just install 10g RAC on linux, everything was good. However, I shutdowned the whole system and started it again,
    my listener and gsd are unknown, what is the reason?
    rac1-> crs_stat -t -v
    Name Type R/RA F/FT Target State Host
    ora.devdb.db application 0/1 0/1 ONLINE ONLINE rac1
    ora....b1.inst application 0/5 0/0 ONLINE ONLINE rac1
    ora....b2.inst application 0/5 0/0 ONLINE ONLINE rac2
    ora....SM1.asm application 0/5 0/0 ONLINE ONLINE rac1
    ora....C1.lsnr application 0/5 0/0 ONLINE UNKNOWN rac1
    ora.rac1.gsd application 0/5 0/0 ONLINE UNKNOWN rac1
    ora.rac1.ons application 0/3 0/0 ONLINE ONLINE rac1
    ora.rac1.vip application 0/0 0/0 ONLINE ONLINE rac1
    ora....SM2.asm application 0/5 0/0 ONLINE ONLINE rac2
    ora....C2.lsnr application 0/5 0/0 ONLINE UNKNOWN rac2
    ora.rac2.gsd application 0/5 0/0 ONLINE UNKNOWN rac2
    ora.rac2.ons application 0/3 0/0 ONLINE ONLINE rac2
    ora.rac2.vip application 0/0 0/0 ONLINE ONLINE rac2
    rac1-> srvctl start listener -n rac1
    CRS-1028: Dependency analysis failed because of:
    CRS-0223: Resource 'ora.rac1.LISTENER_RAC1.lsnr' has placement error.
    rac1-> srvctl start listener -n rac2
    CRS-1028: Dependency analysis failed because of:
    CRS-0223: Resource 'ora.rac2.LISTENER_RAC2.lsnr' has placement error.
    rac1-> tail -30 alert_+ASM1.log
    SUCCESS: diskgroup RECOVERYDEST was mounted
    Wed Aug 31 17:24:48 2011
    NOTE: recovering COD for group 2/0xc8787a38 (RECOVERYDEST)
    SUCCESS: completed COD recovery for group 2/0xc8787a38 (RECOVERYDEST)
    Wed Aug 31 17:25:01 2011
    Starting background process ASMB
    ASMB started with pid=17, OS id=6498
    Wed Aug 31 17:28:07 2011
    NOTE: ASMB process exiting due to lack of ASM file activity
    Wed Aug 31 17:29:00 2011
    Reconfiguration started (old inc 1, new inc 2)
    List of nodes:
    0 1
    Global Resource Directory frozen
    Communication channels reestablished
    Master broadcasted resource hash value bitmaps
    Non-local Process blocks cleaned out
    Wed Aug 31 17:29:01 2011
    LMS 0: 0 GCS shadows cancelled, 0 closed
    Set master node info
    Submitted all remote-enqueue requests
    Dwn-cvts replayed, VALBLKs dubious
    All grantable enqueues granted
    Wed Aug 31 17:29:01 2011
    LMS 0: 43 GCS shadows traversed, 0 replayed
    Wed Aug 31 17:29:01 2011
    Submitted all GCS remote-cache requests
    Post SMON to start 1st pass IR
    Fix write in gcs resources
    Reconfiguration complete
    rac1-> tail -30 alert_devdb1.log
    Communication channels reestablished
    Master broadcasted resource hash value bitmaps
    Non-local Process blocks cleaned out
    Wed Aug 31 17:29:35 2011
    LMS 0: 0 GCS shadows cancelled, 0 closed
    Set master node info
    Submitted all remote-enqueue requests
    Dwn-cvts replayed, VALBLKs dubious
    All grantable enqueues granted
    Wed Aug 31 17:29:35 2011
    LMS 0: 3118 GCS shadows traversed, 1733 replayed
    Wed Aug 31 17:29:35 2011
    Submitted all GCS remote-cache requests
    Post SMON to start 1st pass IR
    Fix write in gcs resources
    Reconfiguration complete
    Wed Aug 31 17:31:25 2011
    Shutting down archive processes
    Wed Aug 31 17:31:30 2011
    ARCH shutting down
    ARC2: Archival stopped
    Wed Aug 31 17:40:11 2011
    db_recovery_file_dest_size of 1500 MB is 14.40% used. This is a
    user-specified limit on the amount of space that will be used by this
    database for recovery-related files, and does not reflect the amount of
    space available in the underlying filesystem or ASM diskgroup.
    Wed Aug 31 22:00:14 2011
    Thread 1 advanced to log sequence 3
    Current log# 2 seq# 3 mem# 0: +DG1/devdb/onlinelog/group_2.262.760635995
    Current log# 2 seq# 3 mem# 1: +RECOVERYDEST/devdb/onlinelog/group_2.258.760635997                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    add an entry in on both the nodes /etc/sysconfig/network DEFAULT_GATEWAY
    eg:-
    [oracle@rac1 ~]$ cat /etc/sysconfig/network
    NETWORKING=yes
    HOSTNAME=rac1.localdomain
    DEFAULT_GATEWAY=192.168.1.10
    and try to start the service.
    if you would like refer:-http://oracleinstance.blogspot.com/2009/12/crs-0215-could-not-start-resource.html

  • What is the concept behind using table PA0002 and structure p0002.

    Hi,
    What is the concept behind using table PA0002 and structure p0002.
    Many times, I have seen Looping at structure e.g. p0002, p0006 etc. and data is processed and also seen Looping at table PA0002, PA0006 etc. with further appropriate subtypes if any to retrieve a value and process the same.
    In which context tables like PA,HRP,IT etc. are used and structures p0001,p0002 etc. are used.
    Regards,
    Ameet

    HI,
    As mentioned  that that Structure Pnnnn is user as a internal tablw when a LDB is used.
    Ex.
    TABLES: PERNR.
    INFOTYPES: 0001.
      GET PERNR.
        PROVIDE * FROM P0001 BETWEEN PN-BEGDA AND PN-ENDDA.
        WRITE:  / P0001-PERNR,
                  P0001-STELL,
                  P0001-BEGDA,
                  P0001-ENDDA.
        ENDPROVIDE.
    Here it is important to declare the infotypes you want to read  and so the system will create internal tables  ex. P0001.
    Tables PA0001 are database table with following fields
    MANDT
    .INCLUDE  PAKEY
    .INCLUDE  PSHD1
    .INCLUDE   PS nnnn
    Thanks,
    Poonam.

  • Some BAPIs are auto commit and some are not.  what is the reason?

    Hi all,
    currently i am working on BAPI.I found that some BAPIs are auto commit and some are not. can anybody tell me what is the reason.

    hi,
    one option to find the difference is you have to look for parameters like test run or commit .
    If the function module  doesn't have them, then it means you have to use BAPI_TRANSACTION_COMMIT or BAPI_TRANSACTION_ROLLBACK based on the success or failure.

Maybe you are looking for

  • Transferring from old mac to new using ipod

    I was able to get all of my songs from my old macbook onto my ipod (about 3000 songs), but when I try to put all of the songs onto my new macbook, I only end up w/about 1850 songs. Authorized the new computer. Can anyone help me?

  • Printing a PDF in Adobe Reader X

    I have been having this problem since updating to AR10. I open an emailed *.pdf and click on "print". The file is converted to a *.prn file,,, but will not print. I have tried to print through "advanced" and "Print Image", but no dice. The files go t

  • How to return a set of vlaues.

    Hello All, I need to return a set of vlaues from a table.The values will be used by other application. For example I need all the department names to be retuned . How can we do this. can we return more than one value in a function. Please let me know

  • [solved] Gnome-do can't open home folder

    I've been using gnome-do for a while now and like it, but I can't get it to open my home folder.  This is with the docky theme.  If I try to use it to open my home folder. What I mean is type super-space to bring up the text input box and then type "

  • Error in PDF form LAYOUT

    hello. when i create a form in SFP and go to the LABEL tab. it throw's me an error that the 'no layout exist in language EN'. what does it mean? how to fix it?