登陆:sqlplus "/as sysdba"
建库:create user 用户名 identified by 密码 default tablespace users temporary tablespace temp; 分号不可忘记
赋权限:grant connect,resource,create view,create materialized view to 用户名; 同样分号不可忘记
数据库备份:exp命令
exp 要备份的用户名/密码 file=/opt/ora11/库名20151201.dmp 导出的路径
备份的数据导入到新库:
sqlplus 中
imp 要导入的用户名/password file=要导入的文件-201501060430.dmp fromuser= 备份的数据库名 touser=要到入库名