How to find? in a text of the view (definition) in all schemas

Hello

Version of DB Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
OS RHES 5U2

I would appreciate if someone can tell me how to get a list of all views in the database that contains? in the text of the view definition.

I tried with the two DBA_VIEWS and ALL_VIEWS to aid after the query, but it returned error.

SELECT MASTER: '. ' || VIEW_NAME
OF ALL_VIEWS
WHERE THE TEXT LIKE ' %? %'
AND the owner not in ('SYS', 'SYSTEM', "SYSMAN", "GENERAL", "OLAPSYS", "MDSYS", "CTXSYS")
ORDER OF OWNER;
WHERE THE TEXT LIKE ' %? %'
*
ERROR at line 3:
ORA-00932: inconsistent data types: expected NUMBER got LONG


SELECT MASTER: '. ' || VIEW_NAME
FROM DBA_VIEWS
WHERE THE TEXT LIKE ' %? %'
AND the owner not in ('SYS', 'SYSTEM', "SYSMAN", "GENERAL", "OLAPSYS", "MDSYS", "CTXSYS")
ORDER OF OWNER;
WHERE THE TEXT LIKE ' %? %'
*
ERROR at line 3:
ORA-00932: inconsistent data types: expected NUMBER got LONG

Thank you

WHERE THE TEXT LIKE ' %? %'

The TEXT here is a LONG data type, you cannot use it in an expression.
You can do this:

SQL> select count(*) from user_views where text like '%OPRD%';
select count(*) from user_views where text like '%OPRD%'
                                      *
ERROR at line 1:
ORA-00932: inconsistent datatypes: expected NUMBER got LONG

SQL> create table myviews (view_name varchar2(30), text clob);

Table created.

SQL> begin
  2  for i in (select view_name,text from user_views) loop
  3  insert into myviews values (i.view_name,i.text);
  4  end loop;
  5  end;
  6  /

PL/SQL procedure successfully completed.

SQL> select count(*) from myviews where text like '%OPRD%';

  COUNT(*)
----------
       136

SQL>

Nicolas.

Tags: Database

Similar Questions

  • How to find and replace text in the index entries?

    Hello

    Recently, I copied a manual to create a new one for another product. After a global search and replace the product names and other texts, I needed to replace a specific word that appears in the index entries.

    I noticed the search box would allow me to search the text of the marker, but I had to replaceme the word by hand - cut and paste the new Word, click on change the marker to save it and then find the next occurrence.

    It's with frame 7.2. Does anyone know a faster way to do this?

    Yours,

    Michael F.

    =========

    Peter,

    Thanks for the lead.

    I downloaded the zip file and all it contains is a DLL file, but no instructions.

    What should I do to make it work and how do I know that it works?

    Yours,

    Michael F

    ========

  • How do I move my text in the view of smartphone

    Hello

    Using of the fluid layout grid. I wish that my description text moves below the image to the right side of the image to phone. I don't know what to do. Thank you.

    http://cupcakemary.skeeterz71.com/_cm_mockup/menu.html

    View from the Office

    text-align2.png

    Smartphone reviews

    text-align.png

    You can do this if you remove 2

    and replace it with only 1

    for the img and the text. But this is not recommended.

    A dimension of phone, if you test using a phone, you'll notice that it is better to have image & description after each other rather than side by side. This will make "pleasing to the eye" - especially if the description is longer than the height of the img, it will break your alignment.

    If you want to make it look nicer, I recommend you align everything to the center of the screen on the phone resolution.

  • DC as a sentence installed and I can't find anything! How do I highlight some text in the box, how can I change the text color?

    DC as a sentence installed and I can't find anything! How do I highlight some text in the box, how can I change the text color?

    Hi taraf32044550,

    I think the new user interface can be a bit of a learning curve, but I hope that you really like it when you find your bearings. Please check these tutorials will help you to find your way around: Acrobat DC Learn & support.

    In particular, I think that you will find this tutorial very useful: change text and images in PDF files

    Best,

    Sara

  • How to copy and paste text from the page of the book one photo to another.

    Hello, I downloaded this software 2 days ago, and I had so much fun with it. pls I need help on how to copy and paste text from the page of the book one photo to another. Second, how to copy my photo book completed pages project to another laptop computer for printing. Thank you

    Wow! I solved the first problem, I clicked on 'ctrl c' to copy and "ctrl v" to paste. yipppppeee! now am loving this software d most just need help with the second question now

  • Hello, my bare of tools a missing person is left and not of I don't know how to find I is still in the tool to crop my picture thanks.

    Hello, my bare of tools a missing person is left and not of I don't know how to find I is still in the tool to crop my image.

    Go to the window menu and choose Tools.

  • How to add and edit text in the form created by adobe acrobat 9?

    How to add and edit text in the form created by adobe acrobat 9?

    Actually, that's exactly what you should do, you don't need to create

    all fields again.

    After you have edited the original and create a new static PDF, open the old

    version and use the command replace Pages to insert the new pages

    those in the old file. This will keep all the form fields in tact.

    Tuesday, August 25, 2015 at 10:28, susanna323 [email protected]>

  • How to cut and paste text in the css code in dw cc?

    How to cut and paste text in the css code in dw cc? I have only licensed a few days ago, it worked fine in trial! Thank you...

    Copy the code into Notepad (Windows Machine) or MAC (copy in texteditor) & pasting in DW, I think that his work.

  • How to find these different namespaces in the schema?

    Hello

    I heard that this schema contains different namespaces. How to find these different namespaces in the schema?

    I checked with this, but it is throwing "table or view does not exist.

    Select the namespace of v$ librarycache.


    Thank you
    Praveen

    Are you referring to this? From the reference manual of the SQL language under the schema object names and qualifiers

    7. part of a namespace, no two objects can have the same name.
    The following schema objects share a namespace:
    Tables
    Display
    Sequences
    Private synonyms
    Autonomous procedures
    Autonomous stored functions
    Packages
    Materialized views
    User-defined types

    Each of the following schema objects has its own namespace:
    Index
    Constraints
    Clusters
    Database triggers
    Private database links
    Dimensions

    Because tables and views are in the same namespace, a table and a view in the same schema cannot have the same name. However, the tables and indexes are in different namespaces. Therefore, a table and an index in the same schema may have the same name.

    Each schema in the database has its own namespaces for objects that it contains. This means, for example, two tables in different schemas are in different namespaces and can have the same name.

    Each of the following schema objects also have its own namespace:
    User roles
    Public synonyms
    Links to public database
    Storage spaces
    Profiles of school boards
    The files (PFILEs) settings and server settings (SPFILEs) files

    Because objects in these namespaces do not appear in the drawings, these namespaces cover the entire base.

    That's why you can do:

    SQL> create table t (id number, descr varchar2(10));
    
    Table created.
    
    SQL> alter table t add constraint t check (mod(id,2) = 0);
    
    Table altered.
    
    SQL> create index t on t(id);
    
    Index created.
    
    SQL> create trigger t
      2  before update on t
      3  begin
      4     dbms_output.put_line('T Trigger');
      5  end;
      6  /
    
    Trigger created.
    

    but not:

    SQL> create view t as select * from t;
    create view t as select * from t
                *
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
    

    or

    SQL> create procedure t
      2  begin
      3     null;
      4  end;
      5  /
    create procedure t
    *
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
    

    John

  • How to find inserted last record in the table.

    Version: Oracle 10g

    I have a table called 'Manufacturing' and 3 columns as mfno, itemname, quantity.
    How to find inserted last record in the table 'manufacturing '.

    As I got to know that the Rowid is not a result perfect result. Please provide your inputs.

    user13416294 wrote:
    Version: Oracle 10g

    This is not a version. It's a product name. A version is 10.1.0.2 or 10.2.0.4, etc.

    I have a table called 'Manufacturing' and 3 columns as mfno, itemname, quantity.
    How to find inserted last record in the table 'manufacturing '.

    Not possible as your data model do not answer for him. As simple as that.

    If there is a need to determine an order or associate some time to an entity, then that should be part of the data model - and a relationship, or one or several attributes are necessary to represent this information. Your data model in this case is therefore unable to meet your requirements.

    If the requirements are valid, set the data model. In other words - your question has nothing to do with Oracle and nothing to do with the other pseudo columns in Oracle, the rowscn or the rowid. It is a question of pure data modeling. Nothing more.

  • Load the view definitions in the short data store

    Hi all

    If I was able to export the view definitions that there was error on next import
    «"substring on column 5 26 line - ' String index out of range:-161 '"»

    I tried the graphic loadviewdefinitions of the QuickStart project and it came with the same error. I also deleted the definition of the base xml view but it error persists.

    Thank you

    Please visit the wiki updated post for how to import the display configuration in the format provided by the design of view export configuration template:

    https://wikis.Oracle.com/display/endecainformationdiscovery/import+view+configuration

    -Ryan

  • oracle.jbo.NoDefException: Houston-25002: definition of the type of the view definition com.model.ModVariablesView is not found.

    Hi all

    I am a newbie with ADF, I developed a test using Jdeveloper 12.1.3.0 application and it works very well on the integrated weblogic Domain.

    When I deploy the application (EAR and directly to Weblogic bot) to a second domain weblogic application fails to load to return the following error message:

    oracle.jbo.NoDefException: Houston-25002: definition of the type of the view definition com.model.ModVariablesView is not found.

    at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:880)

    at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:766)

    at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:748)

    at oracle.jbo.server.MetaObjectManager.findMetaObject(MetaObjectManager.java:862)

    at oracle.jbo.server.ViewDefImpl.findDefObject(ViewDefImpl.java:874)

    ........................................................................................................................

    The application has been updated to include EJB jar files in the ear.

    Any help is greatly appreciated.

    Kind regards

    Mihai

    The view definition is mentioned in the DataBindings.cpx file? In the DataBindings.cpx page definition files may need to be changed. Please post the DataBindings.cpx.

    See also

    Blog of melissa SOA: ADF 11 g Houston-25002: definition "VO" type View Definition is not found error

  • Find and move text within the existing framework of anchored

    I have a great story that spans several pages text. It contains a number of paragraphs that have the following content:

    [empty anchor for an existing character, but the anchor text frame] [important book that contains NO tab] [TAB] [intermediate text containing NO tab] [TAB] [end text containing NO tab] [empty anchor for an another existing character, but the block of anchor text]

    I need a script (Javascript, preferably) that:

    1. find a paragraph that starts with a character of anchor;

    2. find and cut the main text between the character of the anchor and the first TAB after

    3. Paste the main text in text anchored at the beginning of the paragraph;

    4. in the same paragraph, find the final text between the second (and last) TAB and the character of the second (and last) anchor at the end of the paragraph;

    5. glue the final text under text anchored at the end of the paragraph;

    6. repeat 1. -5. for the paragraph all in the same article that starts with a character of the anchor.


    I'm a JS programmer advanced, but new scripts CreativeSuite. I just understood how to search for some text, and I know that the 'parent' of an anchored object is a 'character' - but now to I access the contents of an object anchored to its parent character?


    Even better:

    function movetoanchored(find) {
      var myText = find.characters.itemByRange(1, -1).texts[0];
      var myFrame = find.characters[0].textFrames[0];
      myText.move(LocationOptions.AT_BEGINNING, myFrame);
    };
    
    function main() {
      var myStory = app.selection[0].parentStory;
      app.findGrepPreferences = app.changeGrepPreferences = null;
      app.findGrepPreferences.findWhat = "^~a\\S+";
      var myFinds = myStory.findGrep(true);
      for (i = 0; i < myFinds.length; i++) movetoanchored(myFinds[i]);
      Window.alert(myFinds.length + " moves performed");
    };
    
    app.doScript(main, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, "MoveToAnchored");
    
  • How to find and read files on the computer

    Lost important documents on the desktop.  They have also disappeared from my flash drive.

    How can I get in the files stored on my computer?   How to find important files, I lost?

    Windows Vista IE 8

    Hello

    Try to follow the steps in this link and check if it helps: recover lost or deleted files http://windows.microsoft.com/en-US/windows-vista/Recover-lost-or-deleted-files

  • How to display very large text with the font size?

    I'm using html and css to display large text with the font size.

    Label {
        text: "Acit"
    }
    

    In the image below, it is the largest size, although I try to increase the value of the size of the font. Do you know how to display the largest font size?

    Thanhks

    You should be able to amplify it upward with scaleX/scaleY properties, although no doubt quality will suffer somewhat (but probably not significantly, for most people).

Maybe you are looking for

  • How to delete page in word for mac 2016

    I have a word for 2016 Mac on a MacBook Pro running the Version of El Capitan 10.11.4.  A word document has a Section break that precedes what is now two blank pages.  How to remove these last two pages?

  • Satellite L750D - Microphone does not work

    My microphone does not work, it says not connected.But it is an internal microphone, I already installed Conexant Audio Smart, latest driver, does not.What can I do? My microphone has disappeared when I switch to windows 8.But I'm in windows 7 once a

  • Create your own ISO

    Using the USB Flash Drive install method / ISO to install Windows on the new Boot Camp partition. In OS X, prepared the USB like , flash drive. In OS X, when you download the ISO from the Microsoft Web site, it is automatically saved to the downloads

  • iPhone 4S stop down / dying without reason.

    Hello I use my iPhone for about 5 minutes at a time. When I leave for a few minutes, and then come back, he's quite dead. The only way to turn it back on is to hold buttons sleep/wake and Home for 15 seconds. He begins to frustrate me, and I'd like a

  • Default configuration for a step tab

    We have a system that has been installed at a couple of sites affiliated to the Japan and in Romania (we have developed in Australia).  It works on TestStand 4.2 with code written in LabVIEW 8.6 (although the Romanian site uses TS4.2.1 and LV2010).