oracle 如何给order用户赋予权限
答案:3 悬赏:0 手机版
解决时间 2021-03-05 20:33
- 提问者网友:寂寞梧桐
- 2021-03-05 16:32
oracle 如何给order用户赋予权限
最佳答案
- 五星知识达人网友:封刀令
- 2021-03-05 17:41
经测试是可以的,不过你建户的时候应该是带双引号的,不然建户的时候就会报错,所以登录的时候同样要加上双引号。
以下为测试代码:
SQL> create user order identified by oracle123 ;
create user order identified by oracle123
*
ERROR at line 1:
ORA-01935: missing user or role name
SQL> create user "order" identified by oracle123 ;
User created.
SQL> grant dba to order;
grant dba to order
*
ERROR at line 1:
ORA-00987: missing or invalid username(s)
SQL> grant dba to "order";
Grant succeeded.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Pr
oduction
With the Partitioning, OLAP, Data Mining and Real Application Testing options
C:Userslenovonn>sqlplus/nolog
SQL*Plus: Release 11.2.0.1.0 Production on Sun Jun 9 17:04:46 2013
Copyright (c) 1982, 2010, Oracle. All rights reserved.
SQL> conn "order"/oracle123@orcl;
Connected.
SQL>
以下为测试代码:
SQL> create user order identified by oracle123 ;
create user order identified by oracle123
*
ERROR at line 1:
ORA-01935: missing user or role name
SQL> create user "order" identified by oracle123 ;
User created.
SQL> grant dba to order;
grant dba to order
*
ERROR at line 1:
ORA-00987: missing or invalid username(s)
SQL> grant dba to "order";
Grant succeeded.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Pr
oduction
With the Partitioning, OLAP, Data Mining and Real Application Testing options
C:Userslenovonn>sqlplus/nolog
SQL*Plus: Release 11.2.0.1.0 Production on Sun Jun 9 17:04:46 2013
Copyright (c) 1982, 2010, Oracle. All rights reserved.
SQL> conn "order"/oracle123@orcl;
Connected.
SQL>
全部回答
- 1楼网友:刀戟声无边
- 2021-03-05 19:39
运行grant语句要使用有权限的用户,比如system。
- 2楼网友:拾荒鲤
- 2021-03-05 18:14
好像用户名不要加双引号吧?
在我的测试环境下, 当创建一个 test_user 用户以后, 执行下面2行代码。 test_user 用户就能登陆了啊。
SQL> GRANT CONNECT TO test_user;
Grant succeeded.
SQL> GRANT DBA TO test_user;
Grant succeeded.
在我的测试环境下, 当创建一个 test_user 用户以后, 执行下面2行代码。 test_user 用户就能登陆了啊。
SQL> GRANT CONNECT TO test_user;
Grant succeeded.
SQL> GRANT DBA TO test_user;
Grant succeeded.
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯