Solved

Using the User_Views Data Dictionary View

Posted on 2004-09-06
1
816 Views
Last Modified: 2011-10-03
Hi Folks,

   Whenever views are created the select statement through which a particular view is created is saved in the user_views 'TEXT' field and one can always refer it for checking out the code. I have created a particluar view and whenever I query the user_views and try to look at the SELECT statement in the TEXT column, its not displayed fully and is always truncated. I have even changed the line size and page size parameters of SQL*Plus, but it does not work. Am I missing some basic point here?

TIA

Hassan
0
Comment
Question by:hayub
1 Comment
 
LVL 7

Accepted Solution

by:
BobMc earned 100 total points
ID: 11991661
The text column is a long field (at least in 0racle8 which is what I have in front of me) and sqlplus has its own parameter - LONG to tell it how much to display

try this
set linesize 132;
column text format a100 word_wrapped;
set long 4000;
select view_name, text from user_view;

HTH
Bob
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Article by: Swadhin
From the Oracle SQL Reference (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries006.htm) we are told that a join is a query that combines rows from two or more tables, views, or materialized views. This article provides a glimps…
This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now