Oracle创建用户、表(1)
1. 连接
C:\Users\LEI>sqlplus / as sysdba
SQL*
Plus:
Release 12.1.0.2.0 Production on 星期五
4月
22 10:
17:
52 2016
Copyright (c)
1982,
2014, Oracle.
All rights reserved.
连接到:
Oracle Database
12c Enterprise Edition
Release 12.1.0.2.0 -
64bit Production
With the Partitioning, OLAP, Advanced Analytics and
Real Application Testing options
2. 修改密码/创建用户OLAPSYS
SQL> alter user OLAPSYS identified
by 123456;
用户已更改。
3. 授权登录
SQL> grant
create session
to OLAPSYS;
授权成功。
3.1 解锁用户,如果用户锁定(默认锁定)
如解锁OLAPSYS用户
alter user olapsys account unlock;
3.2 在CMD中连接
conn olapsys;
4. 打开SQL Developer工具本地连接
5. 创建表,确定
6. 查看表,点击刷新 后可以查看到创建的表
解决:
1.0 用户名密码错误无法的登录问题 执行步骤2. 修改密码/创建用户OLAPSYS 2.0 没有 CREATE SESSION 权限; 登录被拒绝 01045. 执行步骤3. 授权登录