oracle授權、表備份、使用者管理

來源:互聯網
上載者:User

標籤:結構   let   dba   upd   同步   pre   style   ...   grant   

使用者管理    建立使用者:        create user 使用者名稱 identified by 密碼;    修改使用者密碼:        alter user 使用者名稱 identified by 密碼;    啟用使用者:        alter user 使用者名稱 account unlock;    刪除使用者:        drop user 使用者名稱;使用者權限管理    1、授權許可權(connect、resource、dba)        grant 許可權1,許可權2,...to 使用者名稱;    2、收回許可權        revoke 許可權1,許可權2,...from 使用者名稱;    3、重要許可權需要使用者退出後重新登入才進行載入資料表許可權管理    1、授權許可權(all、select、update、delete、insert、alter(只能修改表結構))        grant 許可權1,許可權2,...on 表名 to 使用者名稱;    2、收回表許可權        revoke 許可權1,許可權2,...on 表名 from 使用者名稱;    3、表許可權除了drop、create這2個許可權屬於擁有者,其他許可權        可以分享select、insert、update、delete、alter資料備份    1、全表備份        create table 副表名 as select *from 主表名;    2、資料內部備份        create table 副表名 as select ename,empno||deptno,...from sun_emp;    3、資料備份是全欄位全資料複製,但是約束不複製資料同步更新    第一步:刪除副表的資料        delete from 副表;    第二步:插入主表資訊        insert into 副表 select * from 主表;

 

oracle授權、表備份、使用者管理

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.