Solved

Using the User_Views Data Dictionary View

Posted on 2004-09-06
1
828 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
create a nested synonym 4 41
oracle DR - data guard failover. 18 60
Row_number in SQL 6 45
Oracle SQL Developer - SubString 2 31
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.

726 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