Difference between pages "Create User Script" and "Lookup v$ Views"
(Difference between pages)
Jump to navigation
Jump to search
(Created page with "There are many ways of cloning a user account or two from one database to another. Here are a few simple SQLs to dynamically generate scripts from the source database, which c...") |
(Created page with "It's often difficult to remember which v$ view contains information you might be after. One way of quickly looking up the various views, is to run a query on the v$fixed_tabl...") |
||
Line 1: | Line 1: | ||
− | + | It's often difficult to remember which v$ view contains information you might be after. | |
− | + | One way of quickly looking up the various views, is to run a query on the v$fixed_table view. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<blockquote><pre> | <blockquote><pre> | ||
− | + | SQL> select name from v$fixed_table where name like '%FLASHBACK%'; | |
− | |||
− | |||
− | + | NAME | |
− | + | ------------------------------ | |
− | + | GV$FLASHBACK_DATABASE_LOGFILE | |
− | + | V$FLASHBACK_DATABASE_LOGFILE | |
− | + | GV$FLASHBACK_DATABASE_LOG | |
+ | V$FLASHBACK_DATABASE_LOG | ||
+ | GV$FLASHBACK_DATABASE_STAT | ||
+ | V$FLASHBACK_DATABASE_STAT | ||
+ | V$FLASHBACK_TXN_MODS | ||
+ | V$FLASHBACK_TXN_GRAPH | ||
− | + | 8 rows selected. | |
− | |||
− | |||
− | |||
− | |||
</pre></blockquote> | </pre></blockquote> |
Latest revision as of 22:58, 8 November 2019
It's often difficult to remember which v$ view contains information you might be after.
One way of quickly looking up the various views, is to run a query on the v$fixed_table view.
SQL> select name from v$fixed_table where name like '%FLASHBACK%'; NAME ------------------------------ GV$FLASHBACK_DATABASE_LOGFILE V$FLASHBACK_DATABASE_LOGFILE GV$FLASHBACK_DATABASE_LOG V$FLASHBACK_DATABASE_LOG GV$FLASHBACK_DATABASE_STAT V$FLASHBACK_DATABASE_STAT V$FLASHBACK_TXN_MODS V$FLASHBACK_TXN_GRAPH 8 rows selected.