oracle 传智播客笔记

oracle 传智播客_ORACLE经典视频教程 笔记(2008-09-09 15:32:34)

 
1.3个默认用户
 sys chang_on_install
 system manager
 scott tiger
2.启动监听
 lsnrctl start
3.启动实例
 oradmin -startup -sid orcl
 
4.创建用户
 create user xx identified by xx;
5.授权
 grant create session to lisi;
 grant create table to lisi;
        grant unlinited tablespace to lisi;

6.查询授权视图
 select * from user_sys_privs;
7.撤销权限
 revoke  unlinited tablespace from lisi;
 
7.授权
 //系统权限
 grant alter any table to xxx with admin option;
 
 //对象权限
 grant select a to xx with grant option;
 grant insert a to xx with grant option;
 //对象所有权限
 grant all a to xx with grant option;
 //列
 grant inset(id) on mytab to lisi;
 grant update(name) on mytab to lisi;

8.查询
 //查询系统表格
 select * from user_tab_privs;
 
 //查询表格列的权限
 select * from user_tab_privs;
      
 //设置dos 宽度
 set linesize xxx;


9.创建
 create role myrole;
10.附权限
 grant create session to myrole;
 
 有些系统权限无法直接赋予角色
 create table create any table
 [alert table] alter any table
 [drop table] drop any table
11.授权到用户
 grant myrole to zhangsan
12.删除角色
 drop role myrole;


13.三种验证方式
 操作系统验证
 密码文件验证
 数据库验证
 
14.linux下oracle启动方式
 lsnrctl start
 //sqlplus sys/oracle as sysdba;
 sqlplus /nolog
        conn sys/oracle as sysdba;
 startup
15.更改口令文件
 E:\oracle\ora92\database\pwdora9i.ora;
 orapwd file=E:\oracle\ora92\database\pwdora9i.ora password=sys entri=10;
 select * from v$pwfile_users;
 

猜你喜欢

转载自jsrgren.iteye.com/blog/1672516