首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

oracle下令笔记

2012-08-21 
oracle命令笔记1.远程登入数据库。sqlplus sys/oracle@VMorcl as sysdba如果不是远程则不需要@VMORCL,此是

oracle命令笔记
1.远程登入数据库。
   sqlplus sys/oracle@VMorcl as sysdba
  如果不是远程则不需要@VMORCL,此是数据库客户端的实例
2. 创建用户以及分配表空间
   create user snpm identified by snpm default tablespace users;
3. 授权
  grant connect,resource to snpm;
4. 查找当前有哪些用户
  select * from all_users;
5. 更改权能,解锁
alter user SCOTT account unlock;
alter user scott identified by tiger;
grant connect,resource to scott;
grant create view to scott;

热点排行