Search for string in SQL Developer
HelloI am trying to run a search function in SQL Developer, which locates a string in database objects. I can't find out how to do it-if it is possible. I just saw that I can search for objects not strings in their breast. How to find all the procedures/functions which includes a specific string?
Concerning
Marika
Reports | All reports | DataDictionary reports | PL/SQL | Search the Source Code
Tags: Database
Similar Questions
-
PLEASE HELP ME...
I HAVE A TABLE THAT IS
WITH T AS
(
SELECT "MS 16 MM ARCHING HORN" DOUBLE NAME
UNION ALL
SELECT "MS 16 MM ARCHING HORN" DOUBLE NAME
UNION ALL
SELECT "EN-8 HEX LOCK NUT M20" DOUBLE NAME
UNION ALL
SELECT "EN-8 HEX LOCK NUT M20" DOUBLE NAME)
SELECT * FROM T
CASE 1->
WHEN I SEARCH FOR "HORN ARCHING."
SO I WANT TO OUTPUT LIKE
OUTPUT-
1-MS 16 MM ARCHING HORN
THE 16 MM 2 MS ARCHING HORN
CASE 2->
WHEN I SEARCH FOR "NUT M20 LOCK,"
SO I WANT TO OUTPUT LIKE
OUTPUT-
1 EN-8 M20 HEXAGONAL LOCKNUT
2 EN-8 M20 HEXAGONAL LOCKNUT
Hello
Here's one way:
VARIABLE target_words VARCHAR2 (50)
EXEC: target_words: = 'HORN ARQUANT ';WITH all_targets AS
(
SELECT "%" | REGEXP_SUBSTR (: target_words)
, '[^ ]+'
1
LEVEL
)
|| '%' AS target
, (MAX LEVEL) (AS target_cnt)
OF the double
CONNECTION OF REGEXP_SUBSTR (: target_words)
, '[^ ]+'
1
LEVEL
) IS NOT NULL
)
SELECT DENSE_RANK () OVER (ORDER BY t.ROWID) n
MIN (t.nom) AS the name
T
JOIN all_targets a ON ' ' | t.Nom
|| ' ' AS a.target
GROUP BY t.ROWID
HAVING COUNT (DISTINCT a.target) = MIN (a.target_cnt)
ORDER BY n
;This assumes that the words in the target string are unique, that is, it will not be entered as "HORN HORN HORN". It's not serious if the t.nom words are not unique; in other words, there is no problem if name = "MS 16 MM HORN ARCHING HORN HORN".
It is not that there is something unique about each line in t. If t is a real table, then it should really have a primary key, but, otherwise, it will automatically have a unique ROWID (which is what I assumed above). If t is not a real table and lacks a unique key, you can use the ROW_NUMBER analytic to assign a unique number to each line. If t is something unique for each line, yopu should use it instead of ROWID.
-
color change for data with sql developer
I recently saw a few changed the parameter SQL developer to show some color for cells that contain null values. Cannot find where to set this property. Does anyone know how a color of a cell with nulls in default SQL Developer?
-appGo to tools | Preferences | Database | Advanced. There is an option to set the background color set to null.
Ashley
SQL development team -
problem running the session of remote debugging for specific oracle sql developer
I have a problem running the session of remote debugging of sql server specific oracle developer.
I get the following error:
Connection to the database mmgrep - INNA.
PL/SQL execution: ALTER SESSION SET PLSQL_DEBUG = TRUE
Running PL/SQL: CALL the DBMS_DEBUG_JDWP. CONNECT_TCP ('inna.followap.com', '4029')
ORA-30683: failure connecting to debugger
ORA-12535: TNS:operation expired
ORA-06512: at "SYS." DBMS_DEBUG_JDWP', line 68
ORA-06512: at line 1
Process is complete.
I understand that Oracle is unable to connect to my PC.
I have 2 different oracle servers to work with the sql developer. With one I can run debugger, with another - the errow above.
I need to change to be able to start debugging with second oracle server.In tools | Preferences | ebugger, you can specify a range of ports for the debugger to use so you can limit it to those that are open on the firewall.
And just to check, is the ip address that is displayed in the CONNECT_TCP call the right one for your PC?
-
Search for strings of text using javascript
There are some tutorials on this subject, but none seems to help me find specific text.
Imagine the text above is part of a paragraph in a pdf document. I want to find the wordssubject ', 'appear ' & 'specific '.
The idea then is to use a Automator workflow that will copy the file into a hot folder, open in acrobat, find the text, highlight it with another javascript I have and then move it to a folder 'full'.
I had much rather create an action to find the text and highlight it, but you can't import Acrobat action in Automator!
Any advice would be appreciated, because I'm stuck!
Cheers in advance
To search for specific words in a file, you need to loop through all the pages of
the file, and then on the words on each page, then compare the words to your
list of "target".
However, you cannot use Acrobat as part of a workflow like you
Describes.
-
How to search for strings of characters defined, including accents in sqlplus?
Hello
the task is to find all the entries in the table produced in coloumn txtvi [defined as: VARCHAR2 (40 BYTE)] where the chain consists not only of these characters:
-_ #., 0 - 9 a - za - zaouaou)
The result set should be stored with characters that are not allowed.
Example "Ziel/result" is not allowed; the "/" is not in the above defined characters
DB-Version: 10.2.0.4.0
NLS settings have the value:
NLS_LANGUAGE AMERICAN
NLS_CHARACTERSET UTF8
First attempt was to use regular expressions in sqlplus:
Select txtvi from product including the no regexp_like (txtvi,'^ [-_ #., 0 - 9 a - za - zaouaou ()] + $') order of txtvi.
All combinations in the regexp_like has not given the correct result. As a result all games I found permits strings with accents.
That would be the problem?
Now, I started to watch all the channels with the German umlaut 'a' only.
I've known that there are several titles with 'a '. An example: '% Fahrgastzahler % '.
I started sqlplus in shell Korn on AIX 6.1 ($nls_lang = AMERICAN_AMERICA. UTF8)
to find all strings containing a German umlaut:
SQL > select txtvi from product where txtvi like '% a % ';
ERROR:
ORA-01756: city not properly finished chain
I thought to do a simpler test:
SQL > select 'a' twice.
ERROR:
ORA-01756: city not properly finished chain
With 'o'.
SQL > select 'o' double;
'
-
o
With
SQL > select text product where the text like "% number % ';
TXTVI
----------------------------------------
Fahrgastzahlung #27N0
Investigation Fahrgastzahler
Great, there is a result. But it is not a solution. I'll find all rows with accents.
Why is there an error ora-01756? I get the same error with the German ss, but u works as o.
Only a problem in point 10.2?
A test more in DB-Version: 11.2.0.3.0 with NLS_CHARACTERSET AL32UTF8
and sqlplus ($nls_lang = AMERICAN_AMERICA. UTF8)
SQL > select 'o' double;
'�'
---------
is
SQL > select 'a' twice.
ERROR:
ORA-01756: city not properly finished chain
No possible use of sqldeveloper:
The sqldeveloper on a Win7 customer were not properly demonstrating accents. Results of German umlauts are empty every time.
Yes, there is a problem with accents.
Any idea how this problem can be solved?
My suspicions were confirmed. The result of DUMPING indicates that problematic content is encoded in WE8ISO8859P1/WE8MSWIN1252 and not in UTF8, as it should. You see that the binary code of 'u' is 0xFC and for "O" 0xD6. Here's the WE8ISO8859P1/WE8MSWIN1252 codes, not UTF8 codes.
Similarly, the test with "od" shows the code for "o" as 0xF6 on your terminal. It is, once again, a code WE8ISO8859P1/WE8MSWIN1252 and not UTF8 code, so the value of NLS_LANG is incorrect. Character set NLS_LANG must match the source of data, not the database character set. You correctly see the umlauts on the screen, because the screen is configured to WE8ISO8859P1 or WE8MSWIN1252 and these codes are retrieved not converted (NLS_LANG = DB charset).
You should:
1 recode your data to the right encoding, for example with the UPDATE tab1 SET col1 = CONVERT(col1,'UTF8','WE8MSWIN1252') WHERE... Note that this conversion be done several longer strings, so you must make sure that they will always go in the target column and you do not get errors "value too long."
2. review and correct the NLS_LANG value for all customers. The mentioned AIX session should run with NLS_LANG value WE8ISO8859P1. You will see the data correctly with this setting once the data are converted as described in 1 above.
Your tests research should work much better with a correct database.
Thank you
Sergiusz
-
On Windows XP, there is a search function to search for a string in any kind of files on your computer. You are looking for a specific name was easy, if you fogort what kind of file, this name occurred in or what it was named.
On Windows 7 it only allows searching for a name of a file. How to search for strings in file names? 29/12/12 Paul Figueroa
Oh, what you want is the content property.
content: ~ = Figueroa
[Update: apparently special search symbols such as ~ = do not work with the content when property indexed research places, but work during the search in unindexed locations.]
I should mention that Windows 7 Search is not case sensitive, so it makes no difference to try to find upper or lower case letters. In addition, Windows 7 Search is not able to search the contents of files that have no file extension. There is also a weird question having to watch in Indexing Options to determine which file extensions are defined for content, research, where you have a type of unusual file that is not defined for the content of the search.
-
How can I search in Windows 7 for a colon? Given that search filters to specify the properties that I cannot hide it colon. Search for strings inside documents containing a ': '.
GreetingsHello
I suggest you to return the item and check if it helps.
Improve Windows searches using the index: frequently asked questions
-
The empty set error line in sql developer.
Dear all,
When I put blank in the table, I get below error.
"ORA-01407: cannot update ('PRODDTA', 'Table name', 'row') with a NULL value.
01407 00000 - "can not update (%s) null.
* Cause:
* Auction;
1407Error code provider to Line2.
I used under query,
UPDATE F0xx SET = G1234 " WHERE Gxxxx'x ="00000001"AND Gxxx = 'xx' AND Gxxxx'x = '123456 '.
I want to G1234 empty.
Can someone guide me to solve this problem.
Kind regards
Haran
Can someone guide me to solve this problem.
No - not in this forum.
This forum is ONLY for questions about Sql Developer.
Please mark the thread ANSWERED and repost it in SQL and PL/SQL forum.
When you repost you will need to provide the DDL for the table you are trying to update.
Some columns have NOT NULL constraints that do NOT allow you to put them to null.
-
SQL Developer debugger does not start
I found a strange behaviour, while debugging PL/SQL stored procedures using SQL Developer version 4.1.0.19 on Ubunto 12.04 LTS. The debugger works fine for all the bases of my company, except one. When I start a debugging session in this database, the debbuger let go forever and never debug dialog box open. When I use another IDE, for example, PL/SQL Developer of AllroundAutomations on Windows 7, the debugger works very well. I used the same user database with all necessary Preobrajensky. First I thought it was a bad configuration of the database, but as I could start with another IDE debugging sessions, I think that this is not the case. So, I would like to know if someone could help me understand what is happening.
We opened a request for support at Oracle and they offer us to turn on an earlier version of the debugger to work around the problem:
Add at the end of the file line-by-line ide.properties:
DatabaseDebuggerDisableJDWP=true
The ide.properties file can be found here (on Windows XP):
C:\Documents and Settings\
${VERSION} \o.sqldeveloper\Application Data\SQL Developer\system ${SYSTEM_VERSION}
or here (on Windows 7):
C:\Users\
${VERSION} \o.sqldeveloper.\AppData\Roaming\SQL Developer\system ${SYSTEM_VERSION}
for Linux users:
$HOME/.sqldeveloper/system${VERSION}/o.sqldeveloper.${SYSTEM_VERSION}/ide.properties
It works!
-
Connection closed - is there a SQL Developer Tools >; setting Preferences?
Is there a way to set a Pref that will keep my connections open (for long periods of time)?
Hi Chuck,
No preference for this, but, as far as I know, a third-party extension should be a help for versions of SQL Developer to 3.2:
SQL Developer Extension Keep-Alive created!
For 4.0, the third-party developer will have to update the extension. Do not know if it took steps again:
Keepalive Developer SQL does not work in 4.0
Kind regards
GarySQL development team
-
Pouvez Oracle SQL Developer support z/OS DB2 SQL convert
I read the document, it says SQL * Developer can support converted SQL DB2 for LUW for Oracle; but I want to know if it can also support SQL convert of DB2 for z/OS to Oracle.
Thank you.
Hello
Unfortunately, the answer is no. SQL * Developer does not currently support the migration of DB2 on z/OS.
If you have access to My Oracle Support then the next note has any suggestions for alternative methods for the migration-
How to migrate databases non-Oracle for which a SQL * Developer Migration Workbench Option is not available (Doc ID 393760.1)
It can also there have produced third or companies that may be able to help.
Kind regards
Mike
-
SQL Developer - Modeler data limits
Hello world
I'm looking for limits of SQL Developer Data Modeler such on the entities, relationships, etc. subtypes.
Is it established anywhere?
Are we able to build models of data with 150 + of the entities and relationships associated with SQL Developer Data Modeler?
Thanks for sharing your experience.We have teams in Oracle, and customers who are models of construction with more than 1000 entities and all relationships with this scale. The tool is designed and positioned as a tool for the company and so handles large MODELS REDUCED.
Sue Harper
-
Explain the Plan in SQL Developer vs SQLPlus
Hello world
I have a small question. Why a plan explain blocking in SQL Developer but return immediately in sqlplus?
For example, in SQL developer, I write my statement and use the F6 command to bring up the plan to explain it and just, it hangs and crashes. It seems he's trying to produce a plan to explain, but it worked for hours now.
When I log into SQL Plus, I do a
The whole process takes less than a minute to get the plan of the explain command.SQL> explain plan for <query>: SQL> select * from table(dbms_xplan.display);
Is there something fundamentally different running through SQL Developer?
Thank you!
-JoeJoe,
F6 in SQL Developer runs an AutoTrace, which is currently running the SQL and also shows schedules and terms of the explain command. If you only want the plan of the explain command, use F10.
Kind regards
Bob -
How can I connect SQL developer for JavaDB?
I read that supports JDBC Oracle SQL Developer connection, I tried to connect to Embedded Java DB of the SOMME using the JDBC string as:
JDBC:Derby:MyDatabase; create = true
and the error message... anyone have an idea to make this connection? also, where can I configure JDBC library?
Thank you very much!You are on the right track - the reason why your connection to the database Derby does not work, it's that you didn't say Developer SQL where is the JDBC library.
Go to the Tools menu
Select Preferences
In the browser, open the database node.
Select "Third party JDBC drivers".
Press the button "add an entry".
You will see a file browser where you can locate the jar file containing your JDBC driver.
Select this option and press OK.Caution - I'm sure that developer SQL has not been tested with all possible JDBC drivers. I know that some drivers on Windows, such as MS SQL Server need an additional step such as adding a DLL file. In other words, if you follow these steps, and it still does not work, search the Forum (which is where I found the answer for SQL Server) and ask again if needed.
Maybe you are looking for
-
Problem with certificate and the exception is not available
So, here is my problem I am trying to connect to a secure server. When I do this, I get to a page telling me the browser appears not that the server is secure and that the certificate is old. When I click on the button "Add an exception" a small wind
-
can I share documents in iCloud drive with another drive to iCloud user?
can I share documents in iCloud drive with another drive to iCloud user? If so, how to do that?
-
Management of energy has said that my battery is illegal?
Hello I just got a laptop Y500 and since the first installation of Windows 7, each time on booot place I get popup message saying my battery is illegal. In the Lenovo energy management software, I also have status illegal battery. How to solve this p
-
HP Officejet 8500 has plus: HP Officejet 8500 has more
Work very well until the magenta cartridge was missing. Gone is where you will store got all new cartridges... Now the blue cartride does not print and it's new. Test page shows nothing - blank for this color = all others fine.
-
printer does not print from a file it just of copies of engravings
I'm helping a friend install a used HP psc printer all-in-one. It prints copies, but does not print files or the internet. We installed 2 cartridges, one black and one color, but the color cartridge is empty. I tried to download the program Assistant