Solved

Using the User_Views Data Dictionary View

Posted on 2004-09-06
1
826 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.

Question has a verified solution.

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

Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…

808 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