当前位置:   article > 正文

oracle创建数据库命令

oracle创建数据库命令

oracle创建数据库命令

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;

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/956684
推荐阅读
相关标签
  

闽ICP备14008679号