Is this really a 'bug' in dba_tab_columns?

Hey guys, it's Xev.

I've been struggling with this for weeks. No matter what I do, I can't get my procedure to see the dba_tab_columns inside my running procedure. Just jump and say

'cannot see the table or the view', this generic response.

Is there really a bug or a limitation with how I use this point of view s/n? is there something else I can do? It just won't recognize other users custom also.

I have two basic lines of defense here, but two of them not what I need to do.

Can someone help me on this please.

OK, this is the 'first method' I have tried to use, it works very well, but 'only' for a single user at a time. I can't seem to 'find' the rest of the 'schema user. " He finds that I said

but only in schema, the tables and the fields of the user who runs it. I tried to switch out (user_tab_columns) for dba_tab_columns, but it explodes and says that he "cannot see the table or view.

It is my preferred method. If you change this option to find other other users in through everything to another the whole database schema, I would do anything for you!

create or replace procedure find_str

AUTHID current_user

as

l_query long;

long l_case;

l_runquery boolean;

l_tname varchar2 (30);

l_cname varchar2 (4000);

l_refcur sys_refcursor;

z_str varchar2 (4000);

Start

z_str: = ' ^ [0-9] {9} $';

dbms_output. Enable (buffer_size = > NULL);

DBMS_APPLICATION_INFO.set_client_info (z_str);

dbms_output.put_line ('keyword Table column value');

dbms_output.put_line ('---------------------------- ------------------------------ --------------------------------------------------');

for x in (select distinct table_name from all_tables

When the owner not in ('SYS', 'SYSTEM', 'MDSYS","OUTLN', 'CTXSYS', 'OLAPSYS', 'OWBSYS', 'FLOWS_FILES', 'EXFSYS', 'SCOTT',

'APEX_030200', 'GENERAL', 'ORDSYS","SYSMAN","APPQOSSYS","XDB", 'ORDDATA', 'WMSYS'))

loop

l_query: = ' select "' | x.table_name | ''', $$

of ' | x.table_name | '

where 1 = 1 and (1 = 0 ";")

l_case: = "box";

l_runquery: = FALSE;

for y in (select *)

of user_tab_columns

where table_name = x.table_name

and data_type in ('VARCHAR2', 'CHAR'))

loop

l_runquery: = TRUE;

l_query: = l_query | ' or regexp_like (' |)

y.column_name | (', userenv ("client_info")) ';

l_case: = l_case | «When regexp_like (' |)»

y.column_name | (', userenv ("client_info")) then ' |

'''<' || y.column_name | '>''||' || y.column_name | '||'' < /' || y.column_name | ">'' ' ;

end loop;

If (l_runquery)

then

l_case: = l_case | "ANY other purpose;

l_query: = replace (l_query, "$$", l_case). ')';

Start

Open the l_refcur for l_query;

loop

extract the l_refcur in l_tname l_cname;

When the output l_refcur % notfound;

dbms_output.put_line

(rpad (z_str, 29) |)

RPAD (l_tname, 31).

RPAD (l_cname, 50));

end loop;

exception

When no_data_found then null;

end;

end if;

end loop;

end find_str;

NOW,.

It's the second method, she also did a good job of finding what I want it, but again don't search other users and on the other the schema. If you modify this to do find other users and another schema, I'd go crazy! Laughing out loud!

For the test given just create a table in your schema and put a "nine-figure" everywhere in the fields and both these procedures will find them, but only for the 'USER '.

AND, that's my problem, I have many customized user go on the forums and create procedures for each user. It is impossible to plant.

I really need you guys on this point, Happy New Year!

create or replace PROCEDURE find_string

--(p_search_string IN VARCHAR2 par DÉFAUT ' ^[0-9]{3}-[0-9]{2}-[0-9]{4}$')

(p_search_string IN VARCHAR2 DEFAULT ' ^ [0-9] {9} $')

IS

e_error_in_xml_processing EXCEPTION;

e_table_not_exist EXCEPTION;

PRAGMA EXCEPTION_INIT (e_error_in_xml_processing,-19202);

PRAGMA EXCEPTION_INIT (e_table_not_exist,-942);

BEGIN

DBMS_OUTPUT. Put_line ('Table help of keyword/value of column');

DBMS_OUTPUT. PUT_LINE ('---------------------------- ------------------------------ --------------------------------------------------');

FOR r1 IN

(SELECT table_name, column_name

OF dba_tab_cols

WHERE table_name IN (select distinct table_name from dba_tab_cols

When the owner not in (' MDSYS', 'OUTLN', 'CTXSYS', 'OLAPSYS', 'FLOWS_FILES', 'OWBSYS', 'SYSTEM', 'EXFSYS', 'APEX_030200', 'SCOTT', 'GENERAL', "ORDSYS", "SYSMAN", ")

APPQOSSYS', 'XDB","ORDDATA","SYS","WMSYS"))

-WHERE table_name = 'FIND_TEST '.

ORDER BY table_name, column_name)

LOOP

BEGIN

FOR r2 IN

(SELECT DISTINCT SUBSTR (p_search_string, 1: 28) "Keyword",

SUBSTR (r1.table_name, 1, 30) 'table. "

SUBSTR (t.column_value.getstringval (), 1, 50) ' / value of the column.

TABLE

(XMLSEQUENCE

(DBMS_XMLGEN. GETXMLTYPE

("SELECT ' ' |" ") R1.column_name |

« « DE » ' || R1.table_name |

"' WHERE REGEXP_LIKE.

("' || R1.column_name | '",'''

|| p_search_string | ''')'

() .extract (' LINES/rowset / * ""))) t)

LOOP

DBMS_OUTPUT. PUT_LINE

(RPAD (r2. ("" Keyword ", 29).

RPAD (r2. ("' Table ', 31).

RPAD (r2. (("" Column / Value ", 50));

END LOOP;

EXCEPTION

WHEN e_error_in_xml_processing THEN NULL;

WHEN e_table_not_exist THEN NULL;

WHEN OTHERS RAISE.

END;

END LOOP;

END find_string;

Happy New Year, if you can get this to find other users! Good luck!

OK, just a quick update, all is not lost.

I decided to use all_tab_columns and not to a stored procedure. Also, I made the diagram one passes in 'parameter' since I don't have the ability to create other peoples in the schema.

Then I loop and use "regexp_like' (one of my favorite expressions) and use (immediate execution)... overall, I finally found a way to do...

After the trial and efforts...

Thanks to all who have contributed and helped

Thank you

Xev.

Tags: Database

Similar Questions

  • WHY do we have a % * # update every 2 weeks until persists 1 really bad bug (fonts and sizes change randomly when entering)?

    Y at - it sort of STOP TB, to send updates every two weeks (and BTW this slowed down TB / crashed more and more in the last two months) until they have fix this really irritating bug to randomly change the fonts and sizes when you write an email? Outlook does not, Apple mail, didn't do so to stop spamming and begin to address the real problems for a change!

    Nothing of the sort, overall we are very poor typists. How can I know what others are doing? I do it myself. I touch type? Not and nor do the vast majority of people. Even those who say they do.

    How can I know something about the issue? I've seen other people complain and the results are similar to the serious, where my advice. In my opinion, that most of the people with problems touch with appearance and no content is also to experience. Most are apparently not aware more you are trying to improve the appearance of your mails using the fonts and sizes the worst they look almost invariably to the purchaser who does not have the police fancy you selected.

    In my opinion, the code that goes into the composer's poor by the standards of today and the suffering of his age and bitrot. Most of it is written in C++, and most of those who work on Thunderbird are people of Javascript. I do not worship at the altar of God any Mozilla and I have few illusions. Either on the code, program or the people who use it. Or at least I like to think so.

    What I hold as a hope, it's a complete rewrite of the composer happens, or at least people who can make the scriptable code so many of these things can be upholstered.

    Your comments about Microsoft releases and past years their fixation are neither correct nor helpful. Unfortunately the back doors and new threats are discovered almost daily. The software industry overall solves the problems as soon as they can and issues a patch. Automakers weigh the cost of litigation related to failure (how can die, be injured) against the cost of a recall. Sorry, but as far as I don't like regular patching, I prefer the approach of the automotive industry.

  • Why is my phone named iphone diagnosis? Is this really a new phone?

    Why is my phone named iphone diagnosis? Is this really a new phone?

    With the lack of information in your message, you're question is impossible to answer. Where did you got this phone? You set up with a return to the top of an old phone? Someone is playing with her?

  • Are you aware of a possible bug in the version 3.6.23? In the browser, for example, "two /" appears with the slash through the 'o'. Is this a known bug? Thank you

    Are you aware of a possible bug in the version 3.6.23? In the browser, for example, "two /" appears with the slash through the 'o'. Is this a known bug?

    When the same text is seen in another browser, it is displayed correctly as "two."

    The same question is displayed on another computer.

    Thank you.

    Sounds that you use a font that supports ligatures (Palatino?).

  • Received suspicious E-mail claiming to come from Microsoft, asking to sign a contract. Is this really from Microsoft?

    Original title: Email

    Hi, I got an email saying it's from microsoft and it said that it should sign a contract with in a few days, or they will be takeing out of our computer is this really form microsoft?

    Hello

    It seems to be another scam.

    Please read this Microsoft for information about these types of scams.

    "Scams by email or web: how to protect yourself.

    http://www.Microsoft.com/security/online-privacy/phishing-scams.aspx

    Scams can contain the following:

    • Alarmist messages and threats of closure of the account.

    • Promises of money for little or no effort.

    • Treats as its too good to be true.

    • Requests to make a donation to a charity after a disaster that has been in the news.

    • Bad grammar and spelling.

    How to report a scam

    You can use Microsoft tools to report an alleged scam.

    • Internet Explorer. While you are on a suspicious site, click on the gear icon, then tap on Security. Then click on Report Unsafe website and use the web page that is displayed to inform the Web site.

    • Hotmail. If you receive a suspicious email message that asks for personal information, click on the checkbox next to the message in your Hotmail Inbox. Click on mark as , then point to Phishing scam.

    • Microsoft Office Outlook. Attach the suspicious email message to a new e-mail message and send it to * address email is removed from the privacy *. To find out how to join an e-mail message to an e-mail message, see attach a file or other item to an e-mail message.

    See you soon.

  • The print menu no longer works since yesterday afternoon. Is this a known bug?

    Hello

    Since yesterday afternoon, it is not possible to print more. If I select the option print in the dropdown menu, nothing more. Until yesterday afternoon, I had the printer menu to select a printer, paper etc., but now nothings happens.

    Please help bc the usual workflow is no longer possible.

    Thanx

    Anna

    Hi all

    Today we released a hotfix that resolves the Mac printing issue that was recently introduced (with May 10 release). If you're not already updated to the latest patch, simply open Acrobat and visit help > check for updates to apply this hotfix.

    More details about this release and bug fixes is available here: help Acrobat | Release notes | DC Acrobat, Acrobat Reader DC | Update

    Please give it a try and let us know.

    Thank you

    -ashu

  • The top of the invisible selected page size page in illustrator, what setting? This makes it very difficult to work. Is this a glitch/bug?

    Screen Shot 2015-06-30 at 11.27.07 AM.pngThe top of the invisible selected page size page in illustrator, what setting? This makes it very difficult to work. Is this a glitch/bug?

    It's a glitch/bug. Disable the GPU performance in preferences.

  • Is this really the case with the free player, the clients can access is no longer a PDF to add comments and mark out? We have always used a PDF file for the reviews of books/documents, but now we hear customers that there is no way to add comments and ann

    Is this really the case with the free player, the clients can access is no longer a PDF to add comments and mark out? We have always used a PDF file for the reviews of books/documents, but now we hear customers that there is no way to add comments and annotation. Please let me know if this is the case, or if there is a solution

    '' If '' they use the free software Adobe Reader and "If" there is no security prevent this, he should be able to add comments.

    It'll be hard to say what's wrong without more details such as what exact version of the reader they use, they open the pdf file in a browser or in the player itself and what exactly happens when they try to add comments.

  • What this really means that something is "unsupported"?

    There is something that is possible to do so (for example using Tech Support Mode on ESXi 4.0) but is considered "not supported".

    It is obvious that Vmware does not recommend to do these things. My question is what does this really mean?

    If I'd a configuration not supported on my host - the crowd will become "not supported"?

    And that would mean - is that Vmware will refuse to help not at all or that they are unable to guarantee that a certain problem can be solved?

    Well, you'll get certainly VMware support if you make changes via the Tech Support mode. However IMO resolution would depend on the damage is done (changing the configuration, the corruption of data, etc.) on the server, if things are irreparable you could end of relocation or losing configuration data.

    Kind regards

    F10

    VCP3, VCP4, HP UX CSA

    http://KB.VMware.com/

  • Is this a known bug?

    Hi all

    I have not met it in the past, but he began to arrive in time on a form that I build. Occasionally, numeric fields change to text fields (either to the opening? or save?). At first I thought it was just a shot of luck or a mistake on my part - but it has happened at least 5 times to varified now. And sometimes, after correction, save and close, when I reopen it the form, the offending field has changed to a text field, new! I'll take a wrong model flag on the field, that me off tips.

    I think that this only happens on the fields that appear in the cells in a table - which probably means nothing.

    Next time I'll check the XML before and after correction.

    With the help of LCD 9.0 on Win7 Ultimate.

    Is this a known bug, or should we say? If Yes, where?

    Thank you

    Stephen

    Hello Stephen,

    Intriguing. I've not seen this.

    You need to connect it as a bug here: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform.

    Good luck

    Niall

  • Suggestions to overcome this problem: a bug with the HTTP PATCH request with data on the body

    Hello guys,.

    I'm really stuck with a problem and I'm looking for suggestions for solutions and help implementingit.

    In summary:

    (1) the third REST API that I use use HTTP PATCH with the JSON data.

    2) there is a bug in Qt 4.8 that prevents me from using the http verb.

    (3) one of the main features of my new app is severely compromised because of this.

    (4) I found an independent patch to the bug in question.

    What are my options now?

    (A) should I patch Qt reconpile and 1980s, me with my application? I have no experience with these procedures.

    (B) is it possible that I can only implement the elements of fastening of the patch in my application code? I don't see how.

    (C) request and wait for BlackBerry for the patch and release it on the next update? That imensily would limit my clients, only running 10.3.3 and I was 10.3.0.

    (D) any other alternative!

    As I said, I'm really stuck now. I was able to realease my app without this big news, but it would be a great disappointment.

    Any help is appreciated.

    Thanks in advance.

    Here's the code in a Stackoverflow thread on the same topic, I can't try it myself, but let us know if it works and mark @oniongarlic response as a solution if it works.

    Thread: http://stackoverflow.com/questions/34065735/qnetworkaccessmanager-how-to-send-patch-request

    Code:
    QString destination ="";
    currentNode.replace(QString("/").append(latestNode),""); "
    destination
    . Append (Host)
    . Append (CurrentNode)
    . Append(".) JSON");
    QString jsonString=QString(QString("{").append("\"").append(latestNode).append("\"").append(":").append("\"").append(str).append("\"").append(QString("}")));)
    QNetworkRequest request (destination);
    request.setHeader (QNetworkRequest::ContentTypeHeader,
    "application/x-www-formulaires-urlencoded");
    qDebug()<>
    QBuffer * buffer = new QBuffer();
    buffer-> open ((QBuffer::ReadWrite));))
    buffer-> write (jsonString.toUtf8 ());
    buffer-> seek (0);
    Manager-> sendCustomRequest (request, "PATCH", buffer);
    qDebug()<>

  • should I allow my monitor turns off if I think I have a piracy problem, or is this really important? Also any suggestions that you have to secure my system would be greatly appreciated.

    There seems to be many users on my laptop. However, I am the only person that will really affect this machine.  No one else can make changes.  This is the second computer, he arrived and this one is just amonth old!  Sometimes I see users with names such as Hotmail or Amazon.  I'm supposed to be the system administrator, but my settings to change all the time.  Tera-bytes of info that I don't understand have been poured on my computer.  They are pictures and video with data I think.  I warned the authorities.  I want buton down my system so that these people cannot participate.  Thank you

    1. if you have not already done turn on your firewall.

    2. here's a few links on / for plant protection products;

    http://www.Microsoft.com/en-GB/security_essentials/default.aspx

    http://www.ComputerActive.co.UK/CA/review/2104899/avast-Internet-security-software

    http://www.ComputerActive.co.UK/CA/download-review/2097378/block-viruses-bit-Defender

    http://www.PCMag.com/Article2/0, 2817,2391931,00.asp

    If you are not on the make you internet you break the connection with it. This will help to improve safety.

    The monitor has nothing to do with things.

    If my comments have helped please vote too useful.

    Thank you.

  • OEM 12 c reports average load (queue length) * core * is this really the right way?

    I just noticed on our exadata load average was way high school (from our normal) at 40 + as seen above and availability. I was curious why OEM does not have this flag.

    I got alerts defined for report > 20. Well it turns out that oem metric is the average load by heart for only 40 + is only a 1.68 metric table.

    This should really be * core * when all of the unix tools show the cumulative?

    Would be useful if it was compatible with the native tools.

    Reflection... it does not make sense... Looking at the models that I can not simply put '20' in there because may represent a valid threshold for a box of 20 + cpu, but makes no sense for a box of cpu 2. Where '1' may represent an acceptable threshold for a box of 20 cpu or cpu box 2. When it's an average load of 1 * CPU *.

  • Is this really necessary?

    My mother who is the sound of the 1980s has been using Photoshop for quite awhile to do albums, photos of difficulty and resize them as well.  Then she said that she has remove Photoshop and install Revel.  She does not use cloud services and from what I've read is that some people have major problems. I do not understand why they told him to remove Photoshop, or I do not understand why she was told she had to install Revel.  She's worried she'll lose her albums and all his photos.  I told him that he will not remove the photos.  Who knows the albums because now she has a program on his computer, she has no idea how to use.  I'm really disappointed by Adobe for creating such a mess.  If Revel is only bound to cloud and file sharing services, it should have been very clear.  So are you ready to come and give him a months worth of lessons on Revel? Didn't.

    I have Photoshop and I have no intention to spend. It does everything I need, and there is no problem.  She has been to understand that Photoshop would just to stop working and she had no choice.  Where did this come from? Unless it has been suggested in an email on your behalf. The only thing I wish is that she showed me the mail until she has nothing. I think that she has already paid for Revel, can there be a refund if we uninstall it and get Photoshop on?

    Again, I am very disappointed in Adobe about all this.

    Dave-

    From what you describe, it seems that your mother may use Adobe Photoshop Elements software photo editing, no editing online Photoshop.com and storage. Is this Correct?

    The Photoshop term is often confusing to users who use only a single product, because it is used in many titles of product. We offer professional software: Photoshop CS, software: Photoshop Elements, the Web site: Photoshop.com app: Photoshop Express, etc.

    Photoshop.com sharing and storage (storage cloud) is currently abandoned. For this reason, we have provided copy files to Photoshop.com to Revel, if users want us. This gives users a location to save their photos in the cloud and share them with others.

    You have no files in Photoshop.com and do so not all migrate to Revel. You are welcome to create an account of Revel and the connection using your id, adobe (e-mail) and password. You can go to adoberevel.com or download the app for Mac and iOS.  You get a premium account for 30 days.

    Photoshop Elements will continue to work for those who want to use it. Just to clarify to soothe your mind, I want to be sure you know that Revel is a free software. There is an app for iOS and Mac and PC users can access from a browser to adoberevel.com. Unless you mother registered specifically to be a premium user, then it will not automatically be charged for what anyone, even if it connected and created an account of Revel (which it has not yet done so far).

    I hope this help clear things up. Please let me know if you have any other questions.

    Guinot

  • alignment of pixels really annoying bug

    I use illustrator to sites of the model and the user interface. I did this for years. It's much faster and more flexible than photoshop. The Illustrator's pixel grid is a really cool feature, but it's really buggy, especially it is a thing he does - get all the graphics off the coast of the pixel grid when they are copied to another file. Let me explain:

    1. I have a file WITH all my UI to my website called "ui.ai". I have another file WITH my design of the home page called "home.ai".
    2. While ui.ai is made to look perfect pixel (which means that it is aligned to the pixel grid and looks sharp).
    3. I copy some elements pixelated for my other home.ai of file ui.ai.
    4. All pixels jump and line up on the grid of pixels in a weird way (it is not even line up at the gate at all).
    5. Nothing looks more pixelated.
    6. I have to select each individual item and realign them manually. = HUGE waste of time.

    Example image of the UI.ai file:

    from ui file.pngfrom ui file (zoom).png

    Images more copied the HOME.ai file:

    copy to home file.pngcopy to home file (zoom).png

    Everyone runs on this problem? I've run into it all the time! It's a pain in the end to have to "fix" this through each element and align to grid in pixels of the file. If anyone has found a work around? It would be SOOO great. Oh I'd love you forever.

    So generally the problem

    thesergie,

    Also, is given what Scott, possible the work plans (in question) are placed differently in the two documents, or misaligned with the pixel grid in home.ai? I presume that the latter may be a possibility; It is of course impossible.

    At least in the old days you could realign the artboard by DoubleClicking with the selection tool in the empty space between the leaders (when these are shown) in the upper left corner.

Maybe you are looking for

  • Apple Watch vs kissing Watch

    I have non-epilepsie convulsions and somebody referenced the watch Kiss by Empática.  The material on the back of the watch is very similar to the back of the Apple Watch.  Does anyone know if there is an application available for the Apple Watch, wh

  • Web page not icons

    Some Web sites may not display icons or fonts correctly, only boxes with the code.I tried the following recommendations:Subject: config - gfx.downloadable_fonts.enabled, trueChecked = Allow pages to choose their own fonts, instead of my selections ab

  • How to remove permanently Zynga from my PC

    Zynga is constantly happen on my desktop and the taskbar.I tried Google but still a good solution.I do not use facebook or twitter at all.This annoying icon keeps keeping on.Your help, please.Thank youRosco

  • Satellite P870 - updated wireless card

    Is it possible to upgrade the card wireless in P870? Its currently 802.11 b/g/n and I want 802.11 a/g/n, so I can use my 5 GHz bandwidth.

  • PROTECTED A600 - Wireless Manager meets no broadband Manager

    Hello I can't find a way to work with 3g networks. My A600 protégé as a sim slot, and I have already put a valid sim card, but the Wireless Manager when permitant does not recognize a wide band Manager. It does not appear the separator for the radio