赞
踩
1.打开cmd 连接系统默认数据库
2. 创建表空间
CREATE TABLESPACE DATA
DATAFILE ‘D:\oracle\DATA\DATA.ORA’
size 10G autoextend on next 1M Maxsize
unlimited logging extent management local segment
space management auto;
3.创建临时空间
CREATE TEMPORARY TABLESPACE DATA_TEMP
TEMPFILE ‘D:\oracle\DATA\DATA_TEMP.ORA’
size 1G EXTENT MANAGEMENT LOCAL UNIFORM SIZE 5M;
4.创建用户并授权
CREATE USER ceshi IDENTIFIED BY ceshi DEFAULT TABLESPACE DATA
TEMPORARY TABLESPACE DATA_TEMP;
ALTER USER ceshi ACCOUNT UNLOCK;
GRANT DBA TO ceshi;
GRANT CONNECT TO ceshi;
grant create any sequence to ceshi;
grant drop any sequence to ceshi;
grant select any sequence to ceshi;
5.用户解锁 及修改密码
conn /as sysdba;
alter user ceshi account unlock;
alter user ceshi identified by password;
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。