要查看數據庫的信息和數據,可以使用以下命令:
查看數據庫版本:SELECT * FROM V$VERSION;
查看數據庫實例名:SELECT INSTANCE_NAME FROM V$INSTANCE;
查看數據庫名稱:SELECT NAME FROM V$DATABASE;
查看數據庫表空間:SELECT TABLESPACE_NAME FROM DBA_TABLESPACES;
查看數據庫用戶:SELECT USERNAME FROM DBA_USERS;
查看數據庫表:SELECT TABLE_NAME FROM DBA_TABLES;
查看數據庫視圖:SELECT VIEW_NAME FROM DBA_VIEWS;
查看數據庫索引:SELECT INDEX_NAME FROM DBA_INDEXES;
查看數據庫序列:SELECT SEQUENCE_NAME FROM DBA_SEQUENCES;
查看數據庫存儲過程:SELECT OBJECT_NAME FROM DBA_OBJECTS WHERE OBJECT_TYPE = ‘PROCEDURE’;
這些是常用的 Oracle 數據庫查看命令,可以根據實際需求進行調整和擴展。