Looking for another expression of Regexp

I'm looking for a better regex. I want to find all tables that are marked as Temp tables. The rule is simple: they have TMP with a underscore in the name of the table.

The traditional syntax is as follows, for example:
select owner, table_name, num_rows 
from all_tables 
where table_name like '%/_TMP%' escape '/';
or table_name like 'TMP/_%' escape '/' ;
I wonder if there is a smart regular expression to get the same result. The best I came up with was:

REGEXP_LIKE (table_name,'(_TMP) |) (()_^_TMP_) ')

example: with the 'bad' tables must be returned
with testtabs as (select 'TMP_test' table_name from dual
        UNION ALL select 'test_TMP' table_name from dual
        UNION ALL select 'test_TMP_NEW' table_name from dual
        UNION ALL select 'wrongTMPtest' table_name from dual
        UNION ALL select 'TMPwrong' table_name from dual
        UNION ALL select 'wrong' table_name from dual
        )
select * from testtabs
where regexp_like(table_name,'(_TMP)|(^TMP_)');

Row#     TABLE_NAME
----------------------------------------
1     TMP_test
2     test_TMP
3     test_TMP_NEW
I hope to have a simpler expression of POSIX. Something where the string "TMP" is used only once.
Unfortunately, something like '(_|^) TMP' does not work, although it's close enough.

Yes you're right. But I guess that no one will keep a tablename "TMP" in real databases for data storage. :-)

Ravi Kumar

Tags: Database

Similar Questions

  • How to turn of the yellow box with the magnifying glass in there? I hate that I'm looking for another browser to use!

    If I highlight a word or accidentally highlight a Word, I get this ubiquitous little yellow box with a magnifying glass or the mention "Loading". I hate it. I have to move the cursor on a blank area, then click to get rid of it. He is quite bored. I'm tired of fighting the browser to do my job! What fool this? I can't find a way to turn it off.

    In addition, to help further research, you could paste your list of extensions in response. For this list, the simplest method is to use the support information page, you can open using either:

    • button "3-bar" menu > "?" button > troubleshooting information
    • (menu bar) Help > troubleshooting information
    • type or paste everything: in the address bar and press Enter

    Scroll down a little the Extensions section, and then select the table below with your mouse and copy (for example, right-click > copy or Ctrl + c), then paste into an answer here. It's a bit messy, but we are used to it.

  • Looking for another way to spend 11.1.1.2 a 12.1.3

    Hello.

    I am migrating our app ADF (bc4j, jsf, jsp) to JDeveloper 11.1.1.2 to 12.1.3 (via 11.1.1.7).

    He's fine as long as I run the application in JDeveloper (12.1.3) created in WebLogic. But it can be deployed on GlassFish (exceptions in deploy/support of FacesContextFactory).

    A new application in JDeveloper 12.1.3 deployed on Glassfish witout errors.

    So I was wondering if it is somehow possible to create a new application without putting any content (business object, pages) inside and then somehow import business objects and our old application pages.

    Any ideas?

    Best regards

    Erik

    Hello.

    Thank you for your response.

    Sorry--previous post got error.

    I did as suggested. The two ear files contains jsf 2.0 jar files :-(

    The ear that does not contains (among other things) an adf-sharing file - securite.jar. The ear file that works does not have this adf-sharing file - security.jar.

    I have not got rid of all the safety devices of the ADF?

    Best regards

    Erik

  • Error insufficient support - cross dissolve - looking for another solution

    I saw all the solutions on the forum, but it seems that I can't find one that could meet my needs.

    I have more than 5 hours of footage in more than 500 videos, including images (each set for the duration of 1, 5s) and videos. My goal is just to make a single video with all cela chronologicly sorting and I managed to get all the images and sequences in the right order. The problem is with the melted transition crossed that I get insufficient media error when adding the transition automatically to all the clips. I know that I can cut the clips at the beginning of the end to make it work, but as I said - there are more than 500 clips, it will take forever. I tried smaller duration of transition by default able to 10 images, but it did not help.

    So the question is - is it possible to add crosses to dissolve all clips at once without having to cut them? I read on the handles and all understand. But still - there is no quick fix for this? Thank you!

    EDIT: Or maybe some "automaticly trim 10 last images of clips selected" option?

    is it possible to add crosses to dissolve all clips at once without having to cut them?

    After the fact, no.  Before add you to the sequence, this can be done with the controller to the function of the sequence.

    http://helpx.Adobe.com/PDF/premiere_pro_reference.PDF

  • Duplexer C9058A-002 - looking for another model of the printer to use on

    Now that my OfficeJet J6450 is no longer operational, I was wondering if anyone knows of any other current models of printers all-in-one type that the duplexer C9058A-002 (which came with the J6450) could be used on. I tried it searching unsuccessfully since the duplexer apparently is not a part number HP currently conducted.

    Thank you

    Dee in FL

    Hi DeeinFL,

    I'm sorry to hear that your OfficeJet J6450 is no longer operational. I see that you are interested in using the duplexer your J6450 on a new HP product, unfortunately there is no product that would be able to use the duplexer but the printer so that it was made. That being said most HP printers made today come with a duplexer.

    If you go to www.hp.com/shopping and select the Printers on the far left hand side tab, you are able to filter your search. I checked duplex printing from the narrow features option and it brings 51 printers.

    I hope this is useful, if you have any questions please let me know.

    Thank you

  • Looking for a specific phrase within a document.

    I use Windows 8, I used to be able to search for a specific phrase within a document by using the file Explorer.  This no longer works.  I'm looking for an expression as ZONE-14-D search returns anything that has all the combinations of these letters.  Is there something I'm missing in the search parameters?

    In this case I will try to rebuild the index it uses to search for.  First of all, to run this diagnostic Auto search.

    (1) open Control Panel by typing Windows + X

    (2) type "disorder" in the search box and go to the troubleshooting section that appears

    3) go to system, then click on find and fix problems with Windows Search

  • I start the player. a popup says 'installation', another says it is looking for a network resource that is unavailable: setup .msi [1]...

    original title: cannot get rid of popup

    whenever I start the player; a popup says "installation", which never seems to do anything; and the only way to get rid of it is to click at the top or bottom or screen; and it is looking for a network resource that is unavailable, another said: setup .msi [1]... .and I can't get rid of it... just moving road.

    I searched this mystery file: setup .msi [1] and can't find it.

    What should I do?

    Thanks for the info.

    Looks like it's maybe a Windows Installer error... has
    whatever it is impossible to install?

    Sorry, I don't have the answer and the only idea I can
    Think to would be to restore the system to an hour before
    the problem started.

    Good luck finding the answer...

  • error message: 0x800C0133 I'm looking for help to restore the functioning of the outlook express Inbox.

    win xp sp3 home version; everything works except no new mail will download.  box contents have been moved to the 'temp' folder if the box is currently empty.  can see mail ok on the web; have already tried suggestions from different site with no luck. can relate these efforts if necessary or useful. Could not locate the inbox.dbx file.

    Error number: 0x800C0133 = a corrupt Inbox.

    Move any message you want to save to a local folder that you create. (Like you did in the air) Then, remove the problem of Inbox as follows.

    Tools | Options | Maintenance | Store folder will reveal the location of your Outlook Express files. Note the location and navigate on it in Explorer Windows or, copy and paste in start | Run.

    In Windows XP, Win2K & Win2K3 the OE user files (DBX and WAB) are by default marked as hidden. To view these files in Windows Explorer, you must enable Show hidden files and folders under start | Control Panel | Folder options | View.

    With OE closed, find the box of Inbox.dbx and delete it. Another will be created automatically when you open OE.

    General precautions for Outlook Express:

    Do not archive mail in the receipt or sent items box. Create your own user-defined folders and move messages you want to put in them. Empty the deleted items folder daily. Although the dbx files have a theoretical capacity of 2 GB, I recommend all a 300 MB max for less risk of corruption.

    After you're done, followed by compacting your folders manually while working * off * and do it often.

    Click Outlook Express at the top of the the folder tree so no folders are open. Then: File | Work offline (or double-click on work online in the status bar). File | Folder | Compact all folders. Don't touch anything until the compacting is completed.

    Disable analysis in your e-mail anti-virus program. It is a redundant layer of protection that devours the processors and causes a multitude of problems such as time-outs and account setting changes. Your up-to-date A / V program will continue to protect you sufficiently. For more information, see:
    http://www.oehelp.com/OETips.aspx#3

  • mirroring AirPlay look for apple tv

    Since the iOS 10 update on iPhone and iPad, it seems that I can't find my AirPort Express for streaming music on my stereo.  When I click on AirPlay Mirroring it only looks for AppleTV and never find my Express.  Someone else has a similar problem?  Is there another setting I'm missing?

    When I'm in the Spotify application, there is a button for devices and this app can find the Express (on iOS 10), but my SiriusXM app doesn't have this same feature.

    Thank you!

    Since the iOS 10 update on iPhone and iPad, it seems that I can't find my AirPort Express for streaming music on my stereo.  When I click on AirPlay Mirroring it only looks for AppleTV and never find my Express.

    AirPlay Mirroring and AirPlay streaming are two different things. With iOS 10, AirPlay Mirroring is accessible via the control panel. AirPlay Streaming has been integrated in the music app.

    Apple provides a free user guide to help users to familiarize themselves with the features of the new version of the iOS.

  • I am looking for an upgrade at any time key for windows 7 Professional or ultimate edition and cannot find a place to buy a

    I am looking for an upgrade at any time key for windows 7 Professional or ultimate edition and cannot find a place to buy one any where can someone help.

    Original title: Windows 7 Upgrade

    At any time the updates are most of the time is no longer available. However a commercial version of 'Upgrade' (not an OEM) will also do what you want. Only downside is the cost $$$ that Windows 7 is in short supply.

    Amazon: http://www.amazon.com/Microsoft-Windows-7-Ultimate-Upgrade/dp/B002DHLV8S/ref=sr_1_5?ie=UTF8&qid=1390672154&sr=8-5&keywords=Windows+7+upgrade

    All you have to do is enter the product key.

    =============================================================

    Windows 7 Anytime Upgrade: Instructions

    First read this: Windows Anytime Upgrade: frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows7/Windows-Anytime-Upgrade-frequently-asked-questions
    Subdivision: What should I do if I bought a package of Windows Anytime Upgrade key card, but there is no upgrade key inside?
    Answer: If you bought a package of key card upgrade and the upgrade key is not inside, carefully read the instructions on the packaging. You may need to go online to get your upgrade by using the PIN key which is included in the package.

    Note: Windows Anytime Upgrade is available for purchase online in Australia, Belgium, Canada, Germany, France, Italy, Japan, Netherlands, Spain, Sweden, Switzerland, United Kingdom and the United States.

    If you encounter problems recover your key product using your PIN code, please use the resources below.
    www.windows7.com/getkeysupport.

    Note: Retail 'Full' or 'Upgrade' product keys will work when you use the Express Upgrade feature.

    ======================= Upgrading ======================================

    No need to re - install Windows 7, just use the instructions of setting "Anytime" below.
    Note: This assumes that you upgrade from 32 bit to 32-bit Windows 7 OR 64 - bit to 64 bit.

    If you bought a package of key card upgrade and the upgrade key is not inside,
    read carefully the instructions on the package.
    You may need to go online ( https://windows.getmicrosoftkey.com/) to get your upgrade key
    using the PIN, which is included in the package.

    To start the upgrade process:
    Click on start/search and enter the words: Express upgrade
    Then, in the list of the search results, click on "Windows Anytime Upgrade".
    Then follow the prompts on the screen anytime upgrade.
    Basically, all you need to do is enter the Windows 7 upgrade product key.

    Alternative methods:
    (Located at the top right) Start/Control Panel/small icons option / click the "Windows Anytime Upgrade".

    Enter the text below into the run (Windows KEY + R or a command prompt) dialog box:
    %windir%\system32\WindowsAnytimeUpgradeUI.exe

    Upgrade to another edition of Windows 7 by using Windows Anytime Upgrade
    http://Windows.Microsoft.com/en-us/Windows7/upgrade-to-another-edition-of-Windows-7-by-using-Windows-Anytime-Upgrade

    A 'step by step' to go through an upgrade to a lower edition of Windows 7 to a higher edition of Windows 7:
    http://www.howtogeek.com/HOWTO/14943/how-to-upgrade-your-NetBook-to-Windows-7-Home-Premium/

    -Windows Anytime Upgrade in Windows 7 - troubleshooting

    http://www.thewindowsclub.com/Troubleshooting-Windows-Anytime-Upgrade-in-Windows-7

    Also the reinforced system - method #2 tool (download and run the tool: "Checksur.exe")
    http://support.Microsoft.com/kb/947821
    (System resources, such as file of data, even in the data memory and registry data, can develop inconsistencies during the lifecycle of the operating system. The system update tool attempts to resolve these inconsistencies).

    -Anytime Upgrade may not work for all versions of Windows-

    Note: Retail 'Full' or 'Upgrade' product keys will work when you use the Express Upgrade feature.
    Upgrade Express 'can' not work (check with the manufacturer of the computer support team) for users who have the OEM and integrators of systems product keys, this applies also to the VL (Volume License), keys (KMS) users management server should consult with your administrator before attempting to perform an Express upgrade. MSDNAA or key teaching will not work with the Express upgrade.

    -Anytime Upgade options-

    Windows 7 Starter to Windows 7 Home Premium
    Windows 7 Starter to Windows 7 Professional
    Windows 7 Starter to Windows 7 Ultimate
    Windows 7 Edition Home Premium to Windows 7 Professional
    Windows 7 Edition Home Premium to Windows 7 Ultimate
    Windows 7 Professional to Windows 7 Ultimate

    J W Stuart: http://www.pagestart.com

  • Looking for hope in the restoration of my iMac

    My iMac HD has failed, and I took it to Apple to get it replaced. I had a Time Machine backup on an external hard drive Seagate. But my iMac just not see the backup drive Seagate. I don't know if there is a trick to getting the Seagate HD displays. It does not show in Finder or in disk utility. But when the iMac HD was not, and I looked for ways to restore, I saw a Time Machine backup date. Now, I can not see the drive. Even though I have the music and pictures stored in iCloud, all my apps are now gone. I don't know where to start. I was a fool to trust Time Machine? This is literally disastrous for me, and I don't know where to start. What I need, is to see this backup disk somewhere BTW, I plugged on another iMac and he did not see it either. Is there some magic for Seagate HD?

    Some things you can try:

    * Open the Finder preferences (under the Finder menu, top left of your screen). Make sure that on the general tab, the boxes are ticked for hard disks and drives, to show them on your desktop. Otherwise, they won't be visible.

    * Try a new cable. The cable went wrong.

    * Open disk utility when the drive is connected. You can see on the left hand side of the disk utility? If you see an external drive, try to mount in disk utility. If you can ride, the files are available? If this isn't the case, you can run disk utility to try to fix it.

    * Seagate's data recovery services.  http://www.Seagate.com/services-software/recover/ first of all, you can download their software and try it for free. If it can find files on the disk, you can then purchase the license of their recovery software to use to recover your files from the Seagate drive. Alternatively, he can perform the data recovery for you (with supplement). The details are at this link.

    I'm sorry it happened, I wish you good luck.  It seems that your problem could not Time Machine, which is actually a very good backup program; but rather, your external drive seems to have a problem. This happens to all readers subsequently, no last forever and that's why I try to keep at least two backups, each with a different method. For example, one with Time Machine, the other using software such as "clone" (such as SuperDuper, CCC etc.). It is good that you use the cloud at least. I hope that you can recover your files.

  • Looking for HDD recommendation

    I have a Macbook late 2007 and its HARD disk is dead. I'm looking for help with if you guys can suggest me a brand of HARD drive I can use on the inside. I saw ifixit.com and she a Toshiba 500 GB 2.5 MQ01ABF050. Hard drives as recommended. Is there another model?

    I've seen a few different brand of Toshiba drive HARD internal as MQ01ABD050, would that work?

    Help, please.

    This depends on how much storage you need.  You can spend with a HARD drive classic if you need a lot of storage up to 1 TB, or if you want you can go with an SSD of speed. You can get a HARD drive of 1 TB for what it can cost to buy a 250 GB SSD.  You can get the SSD more great but costs as much as your computer is interesting.

    If you are interested in an SSD is a good starting point: https://eshop.macsales.com/shop/ssd/owc you do not have to buy from them, but it will tell you everything that is involved with the installation of an SSD.

    For a HARD disk, I went with a Hitachi model in my MacBook.  I read reviews of web on sites like Amazon when purchasing technology (keeping in mind the people who do not have problems with a model are less likely to view only those who do and deserves to be done reading the negative comments to see if their complaint is justified), so any model will have some negative reviews.  For portable players with the ability, I wanted THAT HGST seemed to have the best odds.

    If you go for a HARD drive one other thing to consider is the rotation speed. Your old computer has a drive 5400 RPM in there. This consumes less energy and work more cost but, making it slower.  If you do not have to be also considering the battery life or temperature, you could install a 7200 RPM drive.

  • stop looking for other bluetooth devices

    I'm having a lot of problems with my Oticon Bluetooth Streamer and iOS 9.3 x

    The BT connection is down about 60 seconds in a conversation, in other words, the phone connection is still active, but Bluetooth has fallen. When I go back to settings > Bluetooth it shows that it is not connected and I have to type to reconnect. I use this Bluetooth Oticon workflow with my hearing aids and all versions of iOS 4-5 years until this "update" for iOS 9.

    When I go on the Bluetooth setting on the iPhone, I see that he is still looking for other devices and I wonder if there is a way to stop this behavior because it can be interrupted the existing connection from BT. I'm just trying to solve the problems because I am dependent on this device in order to be able to use the phone. I have a profound hearing loss, and it's the only thing that works for me. Oticon is, of course, blame Apple, but who knows and I don't like who is at fault, I just need to fix it.

    Please do not suggest that I get another device or something else that a fix suggested on this specific point. I have an iPhone 6 s passing.

    No, you can not stop from looking for other devices, but this isn't your problem, anyway.

    Try the settings > general > reset > reset network settings and pair them up again. A second possibility is that something could interfere.

  • Videos tell me I need a Plugin, but Firefox says: "Sorry, we can't find what you're looking for."

    Expensive of Mozilla:

    In the last few months, I will come to a video and a black square appears who says: I need a plug-in before the video will play. It provides a line on which a click.

    However, when I click through, Firefox tells me that they don't know / have what I'm looking for.

    If I click on this page I am presented with an array of BEWILDERING of Plugins (are they the same as the Addons?) I have no idea one to download.

    So, basically, I am lost without any idea which way to go.

    Help, please.

    Cameron Beck

    Are as Flash files or by another plug-ins like QuickTime with Flip4Mac possible use?

  • My mac says "Looking for printer.

    I bought D110a yesterday, and after a few soft not to install this printer on my Mac (OS X 10.6.4), I finally got to print... However, not always. By 'not always' I mean a point print at a time, through "reboot" the printer between the prints. If I do not "restart" the printer, the print queue displays "Looking for printer...» ». It will remain in this State indefinitely. When I try to use the HP utility, I get the following message: "HP ink jet is currently unavailable. Please check if it is connected and turned on, or try again later. »

    The printer is powered on and connected. I can access the built-in Web server (which displays the status "Ready"), and the "Print and Fax" menu shows the printer as "Idle" with the green light.

    Some useful facts (?):

    I installed this printer using the HP software provided.

    This printer is used on my wireless network (Linksys WRT610n router)

    I have another printer wireless that works without problem.

    Someone at - it no indication on this topic?

    Uninstall the HP software by using its own uinstaller (in Applications > Hewlett-Packard).

    Restart your Mac.

    Download and install this: http://support.apple.com/kb/DL907

    Download the latest version of the software for your printer from the "Support & drivers" link at the top of this page.

Maybe you are looking for