如何檢視oracle資料庫中的所有表

2021-06-22 00:24:21 字數 518 閱讀 1173

覺得你應該先弄清楚oracle的常規資料字典的結構,像9i裡的常規資料字典中物件名稱就有以user,all,dba為字首的物件。

以user為例,我們查該物件下有些什麼表,就應該執行下列的語句:

sql>select table_name from user_tables;

類似的,你可以進行替換。:)

如果你想查資料庫中所有的表的話,可以查詢

select * from dba_tables

如果你想查詢資料庫中某個使用者下的表的話,也可以登入這個使用者,再查詢:

select * from user_tables

要想匯入外部sql語句可以用命令

sql >@e:\檔名.sql

如你想儲存 select * from tablename;語句的結果,可以在sql*plus 裡面這樣:

spool c:\test.sql 

//這是儲存檔案的位置

select * from tablename;

spool off

oracle中如何檢視資料庫伺服器的ip位址

1.檢視本機oracle安裝目錄下的tns配置。home network admin tnsnames.ora。找到你需要訪問的庫 如primary description address list address protocol tcp host xx.xx.xx port connect da...

oracle中如何檢視資料庫伺服器的ip位址

1.察看本機oracle安裝目錄下的tns配置。home network admin tnsnames.ora。找到你需要訪問的庫 如primary description address list address protocol tcp host xx.xx.xx port connect da...

檢視Oracle資料庫中的執行計畫

1 set autotrace traceonly命令 2 explain plan for命令 1 explain plan for select from dual 2 select from table dbms xplan.display 3 10046檢視oracle資料庫中的執行計畫 能...