当前位置:Gxlcms > 数据库问题 > 数据库 建立

数据库 建立

时间:2021-07-01 10:21:17 帮助过:22人阅读

1、使用管理员账户登录

system/密码

2、创建命名空间:路径、大小可以任意

create tablespace temporcl datafie ‘E:\temp\temporcl.ora‘ size 100m;    //可以.dbf文件

3、创建用户

create user test_user identified by \ default  tabespace temporcl quota 50m on users;

4、给用户赋权:

grant all privileges to test_user;

之后就可以用创建的用户进行登录、建表。

select * from dba_data_files  --查询表空间的位置

数据库 建立

标签:--   数据   创建   命名空间   tables   use   creat   使用   赋权   

人气教程排行