sqldeveloper创建账号_用oralce 自带工具sql developer 创建表空间,用户,权限
用oralce 自帶工具sql developer 創(chuàng)建
/*第1步:創(chuàng)建臨時(shí)表空間? */
create temporary tablespace hudongtemptablespace
tempfile 'E:\worksubject\WY-Honda_Ess\Oracle11g\hudongtemptablespace.dbf'
size 50m
autoextend on
next 50m maxsize 20480m
extent management local;
/*第2步:創(chuàng)建數(shù)據(jù)表空間? */
create tablespace hudongtablespace
logging
datafile 'E:\worksubject\WY-Honda_Ess\Oracle11g\hudongtablespace.dbf'
size 50m
autoextend on
next 50m maxsize 20480m
extent management local;
/*第3步:創(chuàng)建用戶并指定表空間? */
create user hudong identified by hudong
default tablespace hudongtablespace
temporary tablespace hudongtemptablespace;
/*第4步:給用戶授予權(quán)限? */
grant connect,resource,dba to hudong;
當(dāng)刪除表空間時(shí),要做以下操作:解決oracle 錯(cuò)誤:ORA-01219
1、?? ?alter database datafile 'E:\worksubject\WY-Honda_Ess\Oracle11g\HONDAESS_TEMP.DBF' offline drop;
2、 alter database open;
備份數(shù)據(jù)庫(kù):exp userid=hudong/hudong@sales file=D:\appprd20140310.dmp
還原數(shù)據(jù)庫(kù) :imp hudong/hudong@testsales full = y file=e:\appprd20140311.dmp ignore=y
總結(jié)
以上是生活随笔為你收集整理的sqldeveloper创建账号_用oralce 自带工具sql developer 创建表空间,用户,权限的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: footer.php置底,CSS五种方式
- 下一篇: element ui select设置不