Query System Tables In Oracle
By default public has select privileges on various system tables and views.
Query system tables in oracle. 1 system tables. List all tables in oracle database accessed by current user. A all columns in tables accessible to the current user in oracle database b all columns in tables in oracle database. Locks acquired by users on system tables may prevent others from defining data or executing the sqlprepare odbc function or the connection preparestatement jdbc method.
The owner column displays the owner s name of the table. Unfortunately oracle does not directly support the show tables command. The query can be filtered to return tables for a given schema by adding a where owner some schema clause to the query. Retrieving all user privileges within oracle can range from a simple task using a basic sql query to an advanced script depending primarily on how involved the roles and privileges are configured within the server.
Comments on columns of accessible tables and views. Timesten stores metadata information about the contents of your database in system tables in your database. Show tables owned by the current user to show tables owned by the current user you query from the user tables view. Below is an alphabetical listing of the oracle system tables that are commonly used.
Arguments in object accessible to the user. This is a query to get all oracle schemas or users in an oracle database instance. You can see the list of objects by using this query. Information specific to system tables.
All tables views synonyms sequences accessible to the user. User tables table does not have the owner column. Following are some most important queries which are useful to get database information about database objects. The below query lists all tables in oracle which are accessible by the current user.
Tables accessible to the current user. Privileges are required to access system tables and views. Query was executed under the oracle9i database version. Select from sys dba tab privs where grantee public.
The admin or select any table privilege is required to access other system tables and views. Select owner table name from all tables.