oracle創(chuàng)建刪除表空間和用戶授權_第1頁
oracle創(chuàng)建刪除表空間和用戶授權_第2頁
oracle創(chuàng)建刪除表空間和用戶授權_第3頁
oracle創(chuàng)建刪除表空間和用戶授權_第4頁
全文預覽已結束

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、oracle創(chuàng)建表空間和用戶授權SYS用戶在CMD下以DBA身份登錄:在CMD中打sqlplus/nolog /匿名登錄然后再conn/as sysdba /以dba身份登錄/創(chuàng)建臨時表空間create temporary tablespace bigoa_tempsize 50mautoextend onnext 50m maxsize 2048mextent management local;/創(chuàng)建數據表空間create tablespace bigoaloggingsize 50mautoextend onnext 50m maxsize 2048mextent management l

2、ocal;/查看數據表空間select tablespace_name from dba_data_files;/創(chuàng)建用戶并指定表空間create user swoa identified by oadefault tablespace bigoatemporary tablespace temp;/給用戶授予權限grant connect,resource,dba,CTXAPP,create view to swoa;以后以該用戶登錄,創(chuàng)建的任何數據庫對象都屬于user_temp和user_data表空間,這就不用在每創(chuàng)建一個對象給其指定表空間了/修改用戶口令alter user user_

3、name identified by password;撤權:revoke 權限. from 用戶名;刪除用戶命令drop user swoa cascade;/刪除表空間drop tablespace bigoa_temp including contents and datafiles cascade constraints; /including contents 刪除表空間的內容,如果刪除表空間之前表空間中有內容,而未加此參數,表空間刪不掉/cascade constraints 同時刪除tablespace中表的外鍵參照/數據導出注:退出到cmd命令下再運行下列命令1、將數據庫TES

4、T完全導出,用戶名system密碼manager,導出到D:daochu.dmp中exp pobaoa/oaorcl file=d:/zyoa0809.dmp full=y /不用加full=y,加上的意思是連同系統表一起導出exp sjsoa/oaorcl file=d:/sjsoa1224.dmp full=y /不用加full=y,加上的意思是連同系統表一起導出2、將數據庫中system用戶與sys用戶的表導出exp system/managerTEST file=d:daochu.dmp owner=(system,sys3、將數據庫中的表inner_notify notify_sta

5、ff_relat導出exp aichannel/aichannelTESTDB2 file=d:datanewsmgnt.dmp tables=(inner_notify,notify_staff_relatexp swoa/oaorcl file=f:/swoa11.dmp tables=(OA_CALENDARexp bigoa/bigoaorcl file=f:/bigoatemp.dmp tables=(OA_CALENDAR4、將數據庫中的表table1中的字段field1以“00”開頭的數據導出exp system/managerTEST file=d:daochu.dmp tab

6、les=(table1 query="where filed1 like '00%'"/數據導入注:退出到cmd命令下再運行下列命令1、將D:daochu.dmp中的數據導入TEST數據庫中imp aichannel/aichannelHUST full=y file=d:datanewsmgnt.dmp ignore=y 有的表已經存在,所以會報錯,加上ignore=y就可以了imp pobaoa/oaorcl file=f:zyoa0916.dmp full=y ignore=yimp sjsoa/oaorcl file=f:/bigoatemp.dmp full=y2、將d:daochu.dmp中的表table1導入imp system/managerTEST file=d:daochu.dmp tables=(table1select INSTANCEID,NID,TITLE,NODENAME,ASSIGNER,NODEBEGIN,initiatorname,'辦理狀態(tài)&

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論