orcale

--创建表空间
create tablespace TBS_VGOP
logging
datafile '/opt/oracle/product/11.0.6.0/oradb/oradata/vgop/TBS_VGOP.dbf'
size 10480m
autoextend on
next 1048m
extent management local;

--删除表空间
drop tablespace TEMP_VGOP;

--创建临时表空间
create temporary tablespace TEMP_VGOP
tempfile '/opt/oracle/product/11.0.6.0/oradb/oradata/vgop/TEMP_VGOP.dbf' 
size 1024m 
autoextend on 
next 1024m
extent management local;


--删除用户
drop user VGOPQRY;

--修改用户密码
alter user masadw identified by masadw;

-- 创建用户
create user vgopqry 
identified by "vgopqry" 
default tablespace TBS_VGOP 
temporary tablespace TEMP_VGOP profile DEFAULT; 
-- Grant/Revoke role privileges  
grant connect to VGOPQRY; 
grant resource to VGOPQRY; 
-- Grant/Revoke system privileges  
grant alter any index to VGOPQRY; 
grant alter any table to VGOPQRY; 
grant create any index to VGOPQRY; 
grant create any view to VGOPQRY; 
grant create any sequence to VGOPQRY; 
grant create any table to VGOPQRY; 
grant select any sequence to VGOPQRY; 
grant select any table to VGOPQRY;
grant create database link to VGOPQRY;
grant select any dictionary to VGOPQRY; 
grant execute any procedure to VGOPQRY; 
grant unlimited tablespace to VGOPQRY;

你可能感兴趣的:(orcale)