六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 43|回复: 0

Oracle常用操作命令

[复制链接]

升级  2%

62

主题

62

主题

62

主题

举人

Rank: 3Rank: 3

积分
206
 楼主| 发表于 2013-1-14 08:58:53 | 显示全部楼层 |阅读模式
连接在orcl上密码为tiger的用户scott:
sqlplus scott/tiger@orcl


退出连接:
exit


导出在orcl上密码为tiger的用户scott数据库表到e:\oracle,保存文件为test.dmp
exp scott/tiger@orcl file=e:\oracle\test.dmp


导入在orcl上密码为tiger的用户scott数据库表从e:\oracle,文件为test.dmp
imp scott/tiger@orcl file=e:\oracle\test.dmp 





删除用户(未删除表空间)
drop user username cascade;


登录超级管理员
sqlplus sys/oracle@orcl as sysdba;


创建用户
create user username identified by pwd default tablespace users Temporary TABLESPACE Temp;


用户授权
grant connect,resource,dba to username; 


提交
commit;
 
 
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表