`
deejay
  • 浏览: 142659 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

oracle笔记

 
阅读更多

//删除表空间
DROP TABLESPACE gzgl_temp INCLUDING CONTENTS AND DATAFILES;

//删除用户

DROP USER gzgl cascade
create temporary tablespace GZGLPTDB_TEMP   tempfile 'G:\oracle\oradata\gzgl_temp.dbf'  size 50m  autoextend on next 50m maxsize 20480m  extent management local;  

//创建数据表空间  

create tablespace GZGLPTDB_DATA logging  datafile 'G:\oracle\oradata\gzgl_data.dbf'  size 50m  autoextend on next 50m maxsize 20480m extent management local;  

//创建用户并指定表空间  

create user gzglptdb identified by gzglptdb default tablespace GZGLPTDB_DATA temporary tablespace GZGLPTDB_TEMP;  
//给用户授予权限  
grant connect,resource,imp_full_database to gzglptdb;  

//导出DMP
exp gzglptdb/gzglptdb @10.11.23.43:1521/orcl

//导入DMP
imp gzglptdb/gzglptdb

 

二、创建和管理JOB没有权限

oracle中创建job是通过调用dbms_scheduler.create_job来做. 用户需要能创建job,管理job
对应的权限:
1) create job
2) manager scheduler

相应命令如下:

grant create job to orace_user1;
grant manage scheduler to orace_user1;

 

解锁用户

<!--StartFragment -->
alter user scott account unlock;
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics