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

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)

文檔簡介

1、oracle創(chuàng)建表空間和用戶授權(quán)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)建數(shù)據(jù)表空間create tablespace bigoaloggingsize 50mautoextend onnext 50m maxsize 2048mextent management l

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

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

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

5、ff_relat導(dǎo)出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、將數(shù)據(jù)庫中的表table1中的字段field1以“00”開頭的數(shù)據(jù)導(dǎo)出exp system/managerTEST file=d:daochu.dmp tab

6、les=(table1 query="where filed1 like '00%'"/數(shù)據(jù)導(dǎo)入注:退出到cmd命令下再運行下列命令1、將D:daochu.dmp中的數(shù)據(jù)導(dǎo)入TEST數(shù)據(jù)庫中imp aichannel/aichannelHUST full=y file=d:datanewsmgnt.dmp ignore=y 有的表已經(jīng)存在,所以會報錯,加上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導(dǎo)入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. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論