學習登入oracle資料庫時常用的操作命令

來源:互聯網
上載者:User

1、su – Oracle 不是必需,適合於沒有DBA密碼時使用,可以不用密碼來進入sqlplus介面。

2、sqlplus /nolog 或sqlplus system/manager 或./sqlplus system/manager@ora9i;

3、SQL>connect / as sysdba ;(as sysoper)或

connect internal/oracle AS SYSDBA ;(scott/tiger)

conn sys/change_on_install as sysdba;

4、SQL>startup; 啟動資料庫執行個體

5、 查看當前的所有資料庫: select * from v$database;

select name from v$database;

desc v$databases; 查看資料庫結構欄位

7、怎樣查看哪些使用者擁有SYSDBA、SYSOPER許可權:

SQL>select * from V_$PWFILE_USERS;

Show user;查看當前資料庫連接使用者

8、進入test資料庫:database test;

9、查看所有的資料庫執行個體:select * from v$instance;

如:ora9i

  • 1
  • 2
  • 下一頁
【內容導航】
第1頁:學習登入oracle資料庫時常用的操作命令 第2頁:學習登入oracle資料庫時常用的操作命令

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.