最近遇到一個使用了Oracle數據庫的服務器
conn sys/change_on_install as sysdba;
select * from v$database;
select name from v$database;
desc v$databases; 查看數據庫結構字段
SQL>select * from V_$PWFILE_USERS;
Show user;查看當前數據庫連接用戶
select * from v$instance
如
SQL> select TABLE_NAME from all_tables;
select * from all_tables;
SQL> select table_name from all_tables where table_name like
TABLE_NAME
_default_auditing_options_
desc CQI
select * from CQI
create user test
grant connect
grant sysdba to test
commit;
alter user sys indentified by test;
alter user system indentified by test;
From:http://tw.wingwit.com/Article/program/Oracle/201311/17233.html