在Navicat新建用户

1.Ctrl+Q,进入查询,创建表空间。

输入create tablespace test datafile 'D:\Oracle\test.ora' size 1000m;

这里的test为表空间名称,路径自己来命名。然后点执行按钮。

2. 执行成功后,继续创建用户。

输入create user USER_TEST identified by test default tablespace test quota 500m on users; 

这里USER_TEST为用户名,第一个test为密码,第二个test为表空间名。然后执行。

3. 成功创建用户后,进行授权。

输入grant all privileges to USER_TEST;

执行该语句给USER_TEST用户授权,此时USER_TEST用户就可以登录了。

猜你喜欢

转载自www.cnblogs.com/excellent-vb/p/10931694.html