DOS窗口中连接Oracle,创建用户,授权

环境

1.确认本机中有sqlpuls(安装oracle自动安装了的)

命令

1.连接:(打开cmd)

sqlplus  testuser/[email protected]//192.168.0.1:1521/orcl

DOS窗口中连接Oracle,创建用户,授权
2.创建用户,并授权

grant create session to test;                             //授权test用户登录权限。

grant connect,create view ,resource  to test;    //给表提供创建试图等权限

grant create table to test; //授权创建表