How know no.. given occurrences of a sting from a string

Hi all

How will I know the No. given occurrences of a sting from a string.

Your help would be appreciated.

Thank you
Srinivas

calculation of no.. of occurrence of a string
-------------------------------------------------------
declare
str1 varchar2 (100): = 'string. '
str2 varchar2 (1000): = ' this is the string where the string are placed. This pl/sql is used to find the accurance of a string in another string ";
Start
dbms_output.put_line (length (str2) - length (replace (str2, str1, substr (str1, 1, length (str1)-1)));)
end;
/

Tags: Database

Similar Questions

  • How will I know if my magic keyboard is in charge? And how know when it is done load so I can unplug the charger of lightning?

    How will I know if my magic keyboard is in charge? And how know when it is done load so I can unplug the charger of lightning?

    I remember reading that the charging time is about two hours.   If you have exhausted the battery it may well take longer.    After the period of two hours, he must run for about a month in any case if you could take the charger after 2 hours.    But I remember also as statements using the old MM1 mouse with rechargeable batteries Apple and stand-alone charger.    MIne has quickly reduced by about 14 days and now its down to 7 days.

  • WSUS - in a Windows 8 how know the source of updates, Windows Update or WSUS Web site

    WSUS - in a Windows 8 how know the source of updates, Windows Update or WSUS Web site.

    There is no powershell command (or other means) to learn if a Windows Client to get updates from WSUS (and details of the WSUS server) or the Windows Update Site.

    Moreover, in the history of Windows Update, knowing the source of the instalation (WSUS or Windows Update Web site).

    Thank you

    PQ ;-)

    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)
    *
  • How know what the largest table of my oracle database?

    How know what the largest table of my oracle database?

    SELECT * FROM
    (
    SELECT
    NOM_SEGMENT,
    SEGMENT_TYPE,
    BYTES/1024/1024 MB
    TABLESPACE_NAME
    Of
    DBA_SEGMENTS
    WHERE
    SEGMENT_TYPE = 'TABLE '.
    ORDER BY DESC 3
    )
    WHERE
    ROWNUM<=>

  • Please help I want to buy an app in the AppStore but my country is not so can't. If not, how can I buy the app? Am from Zambia

    Please help I want to buy an app in the AppStore but my country is not so can't. If not, how can I buy the app? Am from Zambia

    You will need to wait as Apple open one for your country. Nobody on these boards to know when that will be.

    (143288)

  • the friends hyii UA HUD need help how to make a backup of the files from his deleted with (shift + delete) memory card

    the friends hyii UA HUD need help how to make a backup of the files from his deleted with (shift + delete) memory card

    Hello

    It seems that you want to restore the files removed from the memory card.

    I will definitely help you with this.

    I would say you can search the Internet for data recovery software by using your favorite search engine.

    Warning: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    It will be useful. If you have any other questions, feel free to let us know. We will be happy to help you.

    Thank you.

  • How do burn you a CD or DVD from an ISO file

    WINDOWS XP / HOME EDITION / 2002 VERSION / SERVICE PACK 3

    How do burn you a CD or DVD from an ISO file? To be more precise, Windows XP file system image which is only on my computer. I bought this computer a long time ago and I have the product key, but I don't have the original installation CD.

    Do you know how I can burn the image file of Windows XP that is currently on my computer?
    What drive A: and D:? These 2 drives will be included in the Windows XP image file?
    Thanks in advance for your answer.

    WINDOWS XP / HOME EDITION / 2002 VERSION / SERVICE PACK 3

    How do burn you a CD or DVD from an ISO file? To be more precise, Windows XP file system image which is only on my computer. I bought this computer a long time ago and I have the product key, but I don't have the original installation CD.

    Do you know how I can burn the image file of Windows XP that is currently on my computer?
    What drive A: and D:? These 2 drives will be included in the Windows XP image file?
    Thanks in advance for your answer.

    I recommend that you download and use the freeware Imgburn program.

  • How to copy a profile for a child from one device to another family safely direct windows for Windows 7

    How to copy a profile for a child from one device to another family safely direct windows to Windows 7? I have several devices on Windows 7 and my child has ins journal to each device. I want safety to be entirely copied from one to the other devices. How can I do?

    Hello

    Thanks for posting your question on the Microsoft community.

    Thank you for your query details.

    I also appreciate your concerns about security for the family.

    I suggest to read the following article and check.
    Reference:
    http://Windows.Microsoft.com/en-us/Windows/set-up-family#set-up-family=Windows-7

    See also this wiki article created by Lonnie_L on August 24, 2013.
    Family Safety: frequently asked Questions
    http://answers.Microsoft.com/en-us/Windows/wiki/windows_other-security/family-safety-frequently-asked-questions/5672f7b2-e3c0-498a-9a6c-c9cab39f68e5

    I hope this information helps.

    Please let us know if you need more help.

    Thank you

  • How to restore pictures that have been deleted from Lightroom, but not removed from the 'drive '?

    How to restore pictures that have been deleted from Lightroom, but not removed from the 'drive '? Also, how can I restore photos after saving Lightroom. I started to remove some files and it removed ALL of them! I chose the option "cancel delete files" and them brought back, she says they are all "missing or offline. I tried to 'find' a different folder and it deleted the folder all together and now I don't know where he is. Help, please!

    How to restore pictures that have been deleted from Lightroom, but not removed from the 'drive '?

    You need a backup of your Lightroom catalog file before deleting the photos made. You have such a backup? If so, find the backup catalog, open it (double click on it) and then search for the photos you want and select them and then file-> export catalogue; Then go to your original catalog file, open it and select file-> import from another catalog and points to the catalog that you just exported.

    If you do not have a backup of your catalog file, then the only thing you can do is to import the photos again, and Lightroom will treat them as totally new photos with no editing and no metadata provided by the user.

    Moreover, the idea of importing photos into Lightroom and then later removing them to Lightroom should is limited to photos you will EVER want such a photos that are so overexposed or underexposed or blurred that they are essentially useless. The photos that you care enough to run a task on (including editing) should never be removed from Lightroom.

    Also, how can I restore photos after saving Lightroom.

    Is this the same problem as above, or another?

    I chose the option "cancel delete files" and them brought back, she says they are all "missing or offline.

    Is it possible that you actually deleted pictures from the hard disk, as well as from Lightroom? Anyway, Lightroom cannot find the photos and you first need to find photos on your hard drives and then direct Lightroom to the location of the photo on your hard drive, using these instructions Adobe Lightroom - find folders and files moved or missing

  • How to get around the problem of printing from the printer driver Adobe PDF for Notepad instead of a PDF Document?

    How to get around the problem of printing from the printer driver Adobe PDF for Notepad instead of a PDF Document? I tried the tool 'Repair Acrobat Installation' and other problems listed on the forums, but nothing worked. In the Notepad document is the following ' % [ProductName: distill] % X937B6DD4 not found, using the mail service.» X07BB154E not found, by using the messaging service. % [Page: 1] %% % [Page: 2] % % [Page: 3] % % [Page: 4] % % [Page: 5] % X4EEBB81F not found, by using the messaging service. %% [Error: invalidfont;] OffendingCommand: show; ErrorInfo: CharOffsets ss %% [Flushing: rest of work (end of file) will be ignored] %% %% [warning: PostScript error.] No PDF file produced. ] %%."

    The log file indicates that the Distiller cannot find fonts and besides, fonts with very weird names. (These names can often appear when printing from an application, WPF such as Internet Explorer 9, 10 or 11.)

    My best guess is that the problem is with the options set for the PostScript of PDF from Adobe printer driver instance. Exit the application you were initially impression since. Open the Adobe PDF printer Properties . Then click the Advanced tab. Then click on the button default printing . This should produce a significant window default print Adobe PDF is already opened in the Adobe PDF settings tab. On this tab, there is a checkbox to rely on system only fonts; do not use fonts in the document. If this box is checked, uncheck it and press apply , then OK. Then go to the general tab and press the button Preferences giving the window entitled Adobe PDF printing preferences. Again once, look for the box to rely on system only fonts; do not use document fonts. If this box is checked, uncheck it and press apply , then OK. Then back in the Adobe PDF Properties dialog box main, press apply (if it is enabled), and then click OK. Re-enter the app you were original print and try to print again. Let us know if that fixes the problem.

    -Dov

    PS: Unfortunately, rely on fonts system only turned on by default, causing problems for many applications. I always recommend turning it off (i.e., unchecking it)!

  • How can I change my method of payment from PayPal on a credit card...?

    How can I change my method of payment from PayPal on a credit card?

    Hi Stacy,

    Please visit the following link: https://helpx.adobe.com/creative-cloud/help/manage-cc-individual-membership.html

    Let me know if you face any problem.

    Kind regards

    Rahul

  • How can I send a html file exported from muse like breath of e-mail with pictures and links?

    My question:

    How can I send a html file exported from muse like breath of e-mail with pictures and links?

    I designed a 'Web site' in muse Adobe and exported in the form of html file. I don't know how to send my .html file in an email!

    Best,

    Nicole

    Thank you!

    I was actually able to publish muse about Business Catalyst and then use the generated html code to create a blast email in Mail Chimp!

  • How can I get the logic of sql from the catalog or the obiee Manager

    I try to get the logic sql behind a report. Can someone help me how to get sql obiee presentation services or from Catalog Manager

    Hello

    Addition to the response of Srini, you know that there is a new view in g 11 responses to display SQL logic? Just choose in the analysis-> results-> new view-> other-> SQL-> Standard SQL logic views.

    I hope this helps.

    Diakité

  • How can I move my subscription of cloud from my old computer to my new adobe?

    How can I move my subscription of cloud from my old computer to my new adobe? I know that I am allowed to have on both computers, but I like to keep my second install for later use instead of having it on my old computer that failed and go has the size. If I just uninstall the cloud from my old computer will know that it was uninstalled freeing my additional use.

    Hi Kathleen_K_photo,

    Before you uninstall the creative applications cloud deactivation is required. To disable the subscription, you can launch any product (photoshop, dreamweaver, etc.)

    go to help menu and you will find the option disable. This will disable the entire subscription and you don't need to do it for all products.

    After you cancel the subscription, you can uninstall the products one by one.

    You can then go to the new machine and connect to www.creative.adobe.com, connection, and then start downloading the products.

    Thank you

    Kapil rupani

  • How one move the templates of virtual machine from one host to another host in the cluster even

    Hello

    Can you get it someone please let me know how to move the templates of virtual machine from one host to another host in the cluster even?

    Thank you

    James

    Welcome to the forums!

    Convert it to a virtual machine (right click on guest and choose the appropriateoption), move it through the migration feature (right-click Guest, and then choose "Migrate") and convert into a model (right click on guest again and choose to convert to a template).

    If you found this information useful, please consider awarding points to 'Correct' or 'Useful' responses Thank you!!

    AWo

    VCP / vEXPERT 2009

Maybe you are looking for