大家好,欢迎来到IT知识分享网。
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;
免责声明:本站所有文章内容,图片,视频等均是来源于用户投稿和互联网及文摘转载整编而成,不代表本站观点,不承担相关法律责任。其著作权各归其原作者或其出版社所有。如发现本站有涉嫌抄袭侵权/违法违规的内容,侵犯到您的权益,请在线联系站长,一经查实,本站将立刻删除。 本文来自网络,若有侵权,请联系删除,如若转载,请注明出处:https://yundeesoft.com/24034.html