473,396 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

List of all views created upon a specific table

Let's say I have three database users:

* user_a
* user_b
* user_c

user_a has a table called table_a upon which user_b and user_c create
their corresponding views:

* user_a.table_a
* user_b.table_b (view upon table_a)
* user_c.table_c (view upon table_a)

I'd like to know if there's an easy way to get a list of all the views
in a database instance which were created upon a given owner/table.

This would help me to avoid dropping a database user who has tables that
other database users depend on.

--
Cristian
Nov 13 '06 #1
1 9813


Kristian <cr******@katamail.comwrote:
Let's say I have three database users:

* user_a
* user_b
* user_c

user_a has a table called table_a upon which user_b and user_c create
their corresponding views:

* user_a.table_a
* user_b.table_b (view upon table_a)
* user_c.table_c (view upon table_a)

I'd like to know if there's an easy way to get a list of all the views
in a database instance which were created upon a given owner/table.

This would help me to avoid dropping a database user who has tables that
other database users depend on.

Try to look at the user_views table! BTW, this group is officially
dead. Post cdo.servers or cdo.misc instead.
Paul...
--

plinehan __at__ yahoo __dot__ __com__

XP Pro, SP 2,

Oracle, 9.2.0.1.0 (Enterprise Ed.)
Interbase 6.0.1.0;

When asking database related questions, please give other posters
some clues, like operating system, version of db being used and DDL.
The exact text and/or number of error messages is useful (!= "it didn't work!").
Thanks.

Furthermore, as a courtesy to those who spend
time analysing and attempting to help, please
do not top post.
Nov 18 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Doron | last post by:
Hi, Is there any way to associate SQL text from the V$%SQL% views with sessions. A piece of code in our application locks up a critical table about once a month. I suspect that the code is not...
3
by: Andrew Banks | last post by:
How efficient is ti to use join views in a database? I'm developing an e-commerce system and using join views to join the product, product category and product review tables and wondering if this...
1
by: Not Me | last post by:
Hi, I'm sure this is a common problem.. to create a single field from a whole column, where each row would be separated by a comma. I can do this for a specified table, and column.. and I've...
5
by: Sue | last post by:
I wrote a script that uses the sp_refreshviews. The script will be part of a larger one that is automatically run in multiple databases where different views exist. Question: My understanding...
15
by: AK | last post by:
Once upon a time there was a table: CREATE TABLE VENDOR(VENDOR_ID INT, NAME VARCHAR(50), STATE CHAR(2))@ in a while the developers realized that a vendor may be present in xseveral states, so...
8
by: Martijn van Oosterhout | last post by:
Currently you can create temporary tables that are deleted at the end of the session. But how about temporary views? It's just a table with a rule so I don't imagine it would be terribly difficult....
2
by: dbuchanan52 | last post by:
Hello, I am building an application for Windows Forms using. I am new to SQL Server 'Views'. Are the following correct understanding of their use? 1.) I believe a view can be referenced in a...
3
by: news.bahnhofbredband.se | last post by:
Some time ago I was working with DB2/400 - and one of the most appreciated features was the concept logical files - a bit more than views in that they maintained an access path. That is it...
2
by: abbeyro | last post by:
Hello, I'm trying to retrieve a list of tables from all_tables in a given Oracle db. I'm using System.Data.OracleClient, OracleCommand and OracleDataReader and I always obtain the results in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.