oracle怎样创建表空间和用户

阅读更多

1)创建表空间。在sql窗口中输入create tablespace test datafile 'D:\test.ora' size 1000m;这里的test为表空间名称,路径自己来命名。

2)执行成功后,继续创建用户。输入create user test identified by test default tablespace test quota 500m on users;  这里第一个test为用户名,第二个test为密码,第三个test为表空间名。然后执行。

3)成功创建用户后,进行授权。输入grant all privileges to test; 执行该语句给test用户授权,此时test用户就可以登录了。

你可能感兴趣的:(oracle怎样创建表空间和用户)