Model search in ALL_SOURCE
Hi all
VERSION ORCL: Oracle database Enterprise Edition Release 12.1.0.2.0 - 64 bit Production 12 c
I'm trying to search for text in the ALL_SOURCE.
Examples of scripts to explain in detail,
CREATE TABLE TEST_SK (col1, col2 VARCHAR2 NUMBER (20));
CREATE OR REPLACE PROCEDURE proc_sk1 AS
BEGIN
INSERT INTO TEST_SK
(Col1
col2)
VALUES (1
, 'A');
END;
CREATE OR REPLACE PROCEDURE proc_sk2 AS
BEGIN
INSERT INTO
TEST_SK (Col1
col2)
VALUES (1, 'A');
END;
SELECT * FROM ALL_SOURCE, WHERE UPPER (TEXT) LIKE '% INSERT % TEST_SK % ';
OWNER | NAME | TYPE | LINE | TEXT | ||
---|---|---|---|---|---|---|
OL_OWNER | PROC_SK1 | PROCEDURE | 3 |
|
I could just see proc_sk1 in the game but not proc_sk2 results.
Is there a way to display the proc_sk2?
DROP PROCEDURE proc_sk2;
DROP PROCEDURE proc_sk1;
DROP TABLE TEST_SK;
THX
Sam.
Hi, Sam,.
So you want to find all the stored (including functions and packages) procedures which INSERT in a given table, is it?
If you, sorry, I don't think you will never get it perfect. There are too many ways that a query could be fooled, such as directions MERGE, multi-table INSERTs, synonyms, dynamic SQL, and comments.
One thing here is to do that will find a large number of procedures stored that only insertions in a given table, even if this INSERT statement spans multiple lines of code:
WITH all_matches AS
(
SELECT l.name, l.owner, l.type, l.line
LISTAGG (h.text) WITHIN GROUP (ORDER BY h.line) in the form of text,
From all_source h
JOIN all_source l WE h.owner = l.owner
AND = l.name h.name
AND h.type = l.type
AND h.line BETWEEN l.line
AND l.line + 2 - or what you want
WHERE the l.name AS 'PROC_SK_ '.
L.owner GROUP, l.name, l.type, l.line
WITH REGEXP_LIKE (TRANSLATE (LISTAGG (h.text) WITHIN GROUP (ORDER BY h.line)
, 'x' || CHR (10) | CHR (13)
, 'x'
)
, "INSERT\s + INTO\s + TEST_SK.
, 'i'
)
)
SELECT owner, name, type
, MIN (line) AS line
MIN (text) DUNGEON (DENSE_RANK FIRST ORDER BY line) text
Of all_matches
GROUP BY master, name, type
ORDER BY owner, name, type
;
Output of your sample data:
OWNER
--------------------------------------------------------------------------------
NAME TYPE TEXT ON THE LINE
---------- ------------ ---------- ---------------------------------------------
FKULASH
PROC_SK1 PROCEDURE 1 PROCEDURE proc_sk1 AS
BEGIN
INSERT INTO TEST_SK
FKULASH
PROC_SK2 PROCEDURE 2 BEGIN
INSERT INTO
TEST_SK (Col1
It sounds like groups of up to 3 consecutive lines in the same procedure and sees if it contains "INSERT IN TEST_SK", with a number any spaces or characters of white space between words. This query does not indicate that the first such event in each procedure and the line number is the start of Group 3 lines. (There is no magic number of 3, you can do as much as you like. Since there are only 3 words in the pattern in this problem, you probably don't need to watch more than 3 lines.)
Why is that I didn't not use something more in your approach
WHERE UPPER (TEXT) LIKE '% INSERT % TEST_SK % ';
? Because that would be a lot of false positives, for example
INSERT INTO emp (empno, ename)
SELECT emp_seq. NEXTVAL, column_x
OF test_sk...
.
Tags: Database
Similar Questions
-
Hello world
I'm developing a Web Center App Jdev v 11.1.1.6.0.
In a page, I added a search toolbar. At runtime, when I try to search content he directs me page white white with the error of:
java.lang.NoClassDefFoundError: has not been initialized class oracle.webcenter.search.model.SearchPreferences
Does anyone know about this problem?
There is no useful topic/thread in the forum.
Help will be appreciated.
YacoubaOOTB WebCenter Portal is ready to use HIS Oracle. If you do not have HIS Oracle Change adf-config:
TO
Setting this configuration will then use WebCenter adapters by default search instead of HIS.
Kind regards.
-
model search for not equal to.
Hi all
I want to replace the string except beginning with SK and following numbers, but I don't have the idea about how to shape the model of research for not equal to.
with t as ( select 'Hi i am SK123 OK, I am SK456 Where is your friend SK678 And SK777 is not valid' str from dual) select TRIM(',' FROM REPLACE_REGEXP(REGEXP_replace(str,'SK[[:digit:]]*',','),',+')) from t ;
can someone let me know model research for it.required output: SK123,SK456,SK678,SK777
Thank you
RAM
Published by: rama ch on October 23, 2012 17:41ch Rama wrote:
Amadou,
I can't understand the meaning of "." * ? "model. Could you please explain to me.Which can be explained by a simple example
SQL> with t as 2 ( 3 select 'Test SK123 test SK456' str from dual) 4 select str,regexp_replace (str,'.*?((SK[^ ]+)|$)','\1,') str1 5 from t; STR STR1 -------------------------------------------------- -------------------------------------- Test SK123 test SK456 SK123,SK456,, .* means anything as you know. "?" is used for making the previous pattern(.*) non greedy. That means when you search for anything, dont consider the patterns which will follow "?". Here the following pattern is "((SK[^ ]+)|$)" - which means anything starting with SK, followed by non-space character or end of line So it will replace anything, which will not match to "((SK[^ ]+)|$)" .
-
One of the columns in my table contains alphanumeric values. Data type is varchar2. I am writing a query to select only those that contains alphabetic and digital values. How can I do? I looked on the net and found that 10g supports the regex, but 9i don't. How can I do? Here is my algorithm.
SELECT * FROM < table > WHERE < COLUMN > #alphabets AND < COLUMN > #number #.
Thank you.select * from mytab where length(translate(upper(mycol),'x0123456789','x')) != length(upper(mycol)) and length(translate(upper(mycol),'xABCDEFGHIJKLMNOPQRSTUVWXYZ','x')) != length(upper(mycol))
Max
[My Italian blog Oracle | http://oracleitalia.wordpress.com/2010/01/23/la-forza-del-foglio-di-calcolo-in-una-query-la-clausola-model/] -
I think the purchase of my first Acer after owning Asus laptops.
So the first thing you can do is to look for the drivers & manual Support for the model I'm considering. ASUS support was good & I don't want to lose this.
When I enter it (V3-575-71U5) in the model search, nothing comes up. So I look at below the model research inr select my product in a list; and there is just no PHONES listed there.
Am I missing something or is Acer support very missing?
Thanks - Bob
Thanx, Ace JB. Play well.
Acer call it a computer, a laptop in his description of the site, but apparently it's a laptop when looking for drivers. No sense to me. And Acer should provide hyperlinks to all drivers etc., right on the site of product description.
Thank you once again - Bob
-
I can't find my model of the site database
My Pavilion dv6-6170se not found in the hp site, S.N. 5CH1342UUU and P.N. models search engine is QF458EA #ABV, product of China, how can I download the drivers PLZ?
Hello
Support page for your specific model is available here.
-
How can I get video mashups model?
Hi, I have to do a regular video mashup where I will include four, five minutes of video clips, let them play in the sequence and then show them all in a grid at the end. I know how to do all the mechanics, but is there an easy way to set up a project so that I can simply 'load' the four videos and they will automatically appear in the order and at the end. Basically, I'm looking for easier workflows because I'll have to do a lot. Thank you!!!
PS Sorry if it is an easy question, but the only brought model search title patterns.
I'm not sure what our genius resident Colin will come with (glance
before see that), but...
What you ask is not too much work at all... Once you've done it once (ie the first time).
This creates a BASE sequence that can be reproduced or used to paste attributes next time
Doubt you can 'automate' up to the level you want!
So:
You have a default sequence implemented
You have a default (identical every time opening attached)... it's easy.
You must file within 3 or 4 clips at the end of the default open. (30 seconds of work max.)
You need to do unique 'Legends '. You must do this manually anyway, but you can speed it up by creating a new title from Existing
You have a P in the order of P to the end. T
his is the slightly slow fuse... but once you put in place the first time, copy the attributes of movement throughout every element of each new sequence. (or just write them and type them in)
How many of you have to do it anyway?
I think I could do the first 10 minutes and the subsequent ones in 5.
-
You are looking for an internal DVD drive for a Satellite Pro A40
Hello
I'm looking for an internal DVD burner for a model Satellite Pro A40 2.88 Celeron with a currently installed CD-RW/DVD-Rom. My mother is the owner of this laptop and I want to upgrade the drive for her.
Does anyone here know of any number of model of the DVD-RW/CD-RW/DVD-Rom that is compatible with this model.
I want the drive to function as a DVD-Rom/CD-RW also because I do not want to lose these features. Swap the bezel above if necessary isn't a problem for me.
Thank you
Hello
For this particular model, I could not find another A40 Pro which has a DVD - RW, only DVD ROM. I also suggest to buy an external DVD - RW writer because an internal hard drive will cost much more. Probably triple what external there. External, you can find for about 50 but internal will cost at least about 90 more taxes. I'm sure it is internal that correspond to this machine, but at the moment I don't have the time to research each compatible model search of the car, it's why I suggest an external drive. I hope this helps. -
Hello
Another poll question but no answer by toshiba :) Should what file I use to update the BIOS of my tecra 8000 3000 PII when I don't have a floppy drive?
Bios update page does not list my tecra.
Thanks in advance
Hello
If you have the European model search update BIOS on http://eu.computers.toshiba-europe.com topic support & downloads and if you have the US model check http://www.csd.toshiba.com/cgi-bin/tais/su/su_sc_home.jsp site.
If you don't have floppy drive that you have a problem. ;)
-
Where can I find graphic drivers for Qosmio X 870 - BT2G23 Win8?
Hello, I brought the new Qosmio X 870.
It comes with XT Mumentos Seagate 750 GB hybrid drive, I installed Intel 120 GB SSD on the slot free and 1st didn't surprise no option for RAID on BIOS.
At the top of the line gaming machine, this option should be available.But let's go to the point, because I don't use windows 7 home on my network, I am install window 8 overview of consumers (on the SSD drive) so I can use Hyper-v to my work and make a few games on time free and 2nd surprise Toshiba support site because no drivers for my model site do not even recognize my existence of model , search by serial number found the model but not even 1 download available.
Now 3rd surprise cannot find an option to download driver for Nvidia GTX 670 M on the Nvidia site, or any other new mobile commissions from Nvidia.
After some research, I managed to find the model X 870 - BT2G23 on Toshiba TW support site and get the drivers for unknown devices in Device Manager.
So my question is where can we find the driver for the Nvidia GTX 670 M?
Sorry for the long text and bad English.
ConcerningHello
Each new laptop model is offered with the latest drivers. Of course the drivers designed for portable machines and, as a player, you know that these drivers are tailored and limited in performance.
To be honest, now I hear for the first time this model exists. Need a new machine. I believe that this model is still not listed on the Toshiba download page. This was the case in the past also, and you'll find soon but initially with the original drivers that you got with your laptop. Windows 8 is not yet on the market, and until this new product is not available for purchase that I n t think that Toshiba will offer drivers for it. Why should they do?
SATA it there long Toshiba offered Qosmios with two hard drives and RAID option with the Toshiba RAID special tool was available but as much as I know, in recent years offer of Toshiba doesn t Qosmios with RAID option is not, for me, a big surprise. If this option exists, I guess, will be included in the specification.
I can't comment on the NVIDIA support policy so if you are surprised by their support, you must contact NVIDIA support. What I can say is follow: be careful with the NVIDIA drivers. It is strongly recommended the use of Toshiba drivers only!
By the way: you have created recovery DVDs until you have installed own OS? If not please don t come back here and cry why you cannot install original picture of recovery again.
-
Compatible with Lenovo B580 replacement keyboard
Hi all!
I'm looking for a new keyboard for my laptop Lenovo B580 (after an unfortunate accident). But I can't understand that one is 100% compatible, I've read that even if it looks exactly like the original one and she is on the inside, may not always work.
I would like to know what are other keyboards of models compatible with my model: G580, B570, B590 (and some others) look the same, but I'm not sure the Ribbon... (I read that cannot work because of different Ribbon).
I checked my model serial number in search of pieces of Lenovo, and it seems that my keyboard FRU is 25204638, but on the keyboard itself is written:
- P/N: 25204608
- Model No.: T4TQ-ICU
- Made by Chicony
This is the point where I got confused... I'm not familiar with these numbers. I'm ready to buy on Ebay, so I don't want to buy the wrong. Any help is appreciated, if no additional information is needed let me know.
Thank your for taking the time to read my post.
Contact Lenovo support by phone, you may find that a replacement keyboard is less expensive than you think, and they will also be able to give you the exact model search.
Lenovo, brand parts are the only ones that will work and be guaranteed.
Good luck.
CB
-
Hello
I am doing a project for pattern recognition and lead to a VI (Please find attached). There is something that I don't know and would like to ask:
1 VI works, but in a funny way: most of the time I have to pass the "Create Template/model search" button twice in order to get thin VI work (there were only a few times I just need to click once on the button). What is the problem here and how to fix it?
2. I understand that IMAQ game model works with RGB images. So is there anyway that I can always get pass images RGB by IMAQ learn boss, IMAQ Match, while the resulting 2 'Template' and 'Image' are always displayed in color mode.
3. are there in any case I can still detect the object if the scale becomes a problem (I need to go far from approaching the object)? To resolve this problem, I need to use IMAQ matches geometric pattern, which I learn from somewhere in the forum it took much more time to match my result comparing IMAQ Match jacquard?
Thank you very much.
-
Why my computer to turn itself off the power?
I can't understand why my computer starts to turn to for no apparent reason. Going to be working very well and then BONNO! It is just off.
It drives me crazy! Whenever I try to start it upward, he wants to talk about safe mode and the proper techniques of closure. I used the Startup Repair tool and the restoration of the system offered to me by the computer during one of these episodes. I have scanned for viruses with Avast and there is not. I've defragged, cleaned the disk, removed something weird... I searched in the help pages for an answer...
I use Vista Home premium on a 1 year old Toshiba. I recently used the drive by the manufacturer to reinstall the operating system to get rid of some nasty viruses. Everything was going along great for a month and then he started to arrive.
Any ideas?
http://www.CSD.Toshiba.com/cgi-bin/TAIS/support/JSP/home.jsp
When you reinstall the operating system, you must also reinstall all the latest drivers compatible Visa for her.
Click on the download at the top of the linked page > put in your model number, etc. > download/install the latest Vista drivers for your computer.
Downloads 1. choose the category 2. choose family 3. choose the model Show all models Model search filter: View Latest downloads»
View the most recent list of
drivers and software for updates
all Toshiba products.See you soon. Mick Murphy - Microsoft partner
-
Need drivers for Microsoft Bluetooth Enumerator in Windows Vista.
Original title: Microsoft Bluetooth Enumerator lost vista drivers
Vista Microsoft Bluetooth Enumerator lost drivers.
Can anyone advise how to find and download above.
Thanks, Pete
Many web searches indicate that there is no product like the Acer Aspire One Z3. It's Acer Aspire One ZA3. In addition, ZA3 is not the complete model - search the Web, point that the Acer Aspire One ZA3 is Acer Aspire One AO751h.
The Acer site has drivers for the Acer Aspire One AO751h netbook.
Download Bluetooth for your netbook (Windows Vista 32-bit) drivers and install them.
-
The update of the firmware on a router
And I don't mean my BEFSR41 router/Switch 4.3 version. I went to the page for this product and downloaded a bin for firmware 4.4 file. What should I do with this bin file? I magically teleport to circuit of the router? Can someone give me some steps to make this happen?
When I click on the link, I posted above, so I don't end up on the link you posted. My link always takes me to the support of the BEFSR41 page and not to the downloads page. If the link doesn't work properly for your, then go on the site Web of Linksys, click Support - Technical Support. Click on "select a product". Then enter on the left 'BEFSR41' in the text field below the text "model search". Press search and it takes you directly to the page of technical support for your router. If I do that, need me always to this page , which is the same as the one I posted above.
Maybe you are looking for
-
I have a lot of .part files. Do I need?
After an experience with MacKeeper, I decided to get rid of things I didn't need. I found 2 or 3 .part files, which seem to come at the same time MacKeeper so, I put them in the trash. By experience, the .part files were incomplete downloads so, I th
-
Sound with Satellite M50-216 problems
HelloThe sound went out on my M50-216. I tried to uninstall and reinstall the audio driver, but it did not help.Any ideas as to what I should try next?
-
New external hard drive is of poor quality
Hiya: Gotta new iMac 27 "El Capitan running and I am trying to transfer my files from my old Windows on my Mac machine. The player in question is a Seagate 3TO disk that has been formatted as NTFS on my Windows machine. I never partitioned and format
-
Open the Panel front of the Subvi, which is called by reference in the EXE
I want to open the façade of a Subvi when it is called. This sub - VI will open the façade of a Subvi third level. So, I want to go back to the main.vi the output of the subVIs.I can do successfully in the development environment.I call on the refere
-
When I access my facebook account, it freezes. Then, I get the "not responding" error messages How can I fix this?