- Este tópico contém 3 respostas, 3 vozes e foi atualizado pela última vez 16 anos, 6 meses atrás por
vieri.
-
AutorPosts
-
23 de setembro de 2009 às 11:31 pm #89875
CVPRADO
ParticipantePessoal,
Gostaria de saber se há algum select que traga como resultado, todas as view do Oracle9i Enterprise Edition Release 9.2.0.1.0 – Production
Outra dúvida
Alguem sabe dizer se há views padrões no Oracle e quais são, há algum comnado para listar essas view padrão?24 de setembro de 2009 às 12:02 am #89877fsitja
ParticipanteÉ só buscar do dicionário de dados:
[code]
select * from dba_objects o where o.object_type = ‘VIEW’ou
select * from dba_views
[/code24 de setembro de 2009 às 12:08 am #89878fsitja
ParticipanteDesculpa, esbarrei no “enviar”… 😕
Então… você pode rodar o select na DBA_VIEWS ou, se você não tiver privilégios lá, na ALL_VIEWS (todas que você tem grants) ou USER_VIEWS (todas do seu usuário). A mesma coisa vale para DBA_OBJECTS.
Para ver views de sistema, faça:
select * from dba_views v where v.owner = 'SYS'
25 de setembro de 2009 às 10:54 pm #89913vieri
ParticipantePerfeito fsitja.
Assim como o DBA tem que conhecer as views internas do banco,
desenvolvedores devem conhecer as views de usuário.Não sei oque o CVPRADO que dizer com views padrões.
Mas se você quiser sumarizar as views internas do dicionário dados do Oracle basta dar uma passada na view dictionary ou abreviada de dict.ex:
SQL> select * from dict where table_name like ‘%VIEW%’
2 ;TABLE_NAME
COMMENTS
USER_VIEWS
Description of the user’s own viewsALL_VIEWS
Description of views accessible to the userDBA_VIEWS
Description of all views in the databaseTABLE_NAME
COMMENTS
ALL_MVIEW_ANALYSIS
Description of the materialized views accessible to the userUSER_MVIEW_ANALYSIS
Description of the materialized views created by the userDBA_MVIEW_ANALYSIS
Description of the materialized views accessible to dbaTABLE_NAME
COMMENTS
DBA_MVIEW_AGGREGATES
Description of the materialized view aggregates accessible to dbaUSER_MVIEW_AGGREGATES
Description of the materialized view aggregates created by the userALL_MVIEW_AGGREGATES
Description of the materialized view aggregates accessible to the userTABLE_NAME
COMMENTS
ALL_MVIEW_DETAIL_RELATIONS
Description of the materialized view detail tables accessible to the userUSER_MVIEW_DETAIL_RELATIONS
Description of the materialized view detail tables of the materialized
views created by the userDBA_MVIEW_DETAIL_RELATIONS
Description of the materialized view detail tables accessible to dbaTABLE_NAME
COMMENTS
DBA_MVIEW_KEYS
Description of the columns that appear in the GROUP BY
list of a materialized view accessible to dbaALL_MVIEW_KEYS
Description of the columns that appear in the GROUP BY
list of a materialized view accessible to the userTABLE_NAME
COMMENTS
USER_MVIEW_KEYS
Description of the columns that appear in the GROUP BY
list of a materialized view created by the userDBA_MVIEW_JOINS
Description of a join between two columns in the
WHERE clause of a materialized view accessible to dbaALL_MVIEW_JOINS
TABLE_NAME
COMMENTS
Description of a join between two columns in the
WHERE clause of a materialized view accessible to the userUSER_MVIEW_JOINS
Description of a join between two columns in the
WHERE clause of a materialized view created by the userDBA_MVIEW_COMMENTS
Comments on all materialized views in the databaseTABLE_NAME
COMMENTS
ALL_MVIEW_COMMENTS
Comments on materialized views accessible to the userUSER_MVIEW_COMMENTS
Comments on materialized views owned by the userDBA_TUNE_MVIEW
Catalog View to show the result after executing TUNE_MVIEW() APITABLE_NAME
COMMENTS
USER_TUNE_MVIEW
tune_mview catalog view owned by the userDBA_MVIEWS
All materialized views in the databaseALL_MVIEWS
All materialized views in the databaseTABLE_NAME
COMMENTS
USER_MVIEWS
All materialized views in the databaseDBA_MVIEW_REFRESH_TIMES
All fast refreshable materialized views and their last refresh times for each ma
ster tableALL_MVIEW_REFRESH_TIMES
TABLE_NAME
COMMENTS
Materialized views and their last refresh times for each master table that the
user can look atUSER_MVIEW_REFRESH_TIMES
Materialized views and their last refresh times for each master table that the u
ser can look atDBA_MVIEW_LOGS
All materialized view logs in the databaseTABLE_NAME
COMMENTS
ALL_MVIEW_LOGS
All materialized view logs in the database that the user can seeUSER_MVIEW_LOGS
All materialized view logs owned by the userDBA_BASE_TABLE_MVIEWS
All materialized views with log(s) in the databaseTABLE_NAME
COMMENTS
ALL_BASE_TABLE_MVIEWS
All materialized views with log(s) in the database that the user can seeUSER_BASE_TABLE_MVIEWS
All materialized views with log(s) owned by the user in the databaseDBA_REGISTERED_MVIEWS
Remote materialized views of local tablesTABLE_NAME
COMMENTS
ALL_REGISTERED_MVIEWS
Remote materialized views of local tables that the user can seeUSER_REGISTERED_MVIEWS
Remote materialized views of local tables currently using logs owned by the userDBA_MVIEW_LOG_FILTER_COLS
All filter columns (excluding PK cols) being logged in the materialized view logTABLE_NAME
COMMENTS
s
DBA_REGISTERED_MVIEW_GROUPS
Materialized view repgroup registration informationDBA_XML_VIEWS
Description of all XML views in the databaseALL_XML_VIEWS
TABLE_NAME
COMMENTS
Description of the all XMLType views that the user has privileges on
USER_XML_VIEWS
Description of the user’s own XMLType viewsDBA_XML_VIEW_COLS
Description of all XML views in the databaseALL_XML_VIEW_COLS
TABLE_NAME
COMMENTS
Description of the all XMLType views that the user has privileges on
USER_XML_VIEW_COLS
Description of the user’s own XMLType viewsV$FIXED_VIEW_DEFINITION
Synonym for V_$FIXED_VIEW_DEFINITIONGV$FIXED_VIEW_DEFINITION
TABLE_NAME
COMMENTS
Synonym for GV_$FIXED_VIEW_DEFINITION
-
AutorPosts
- Você deve fazer login para responder a este tópico.