oracle12c创建用户scott和ORACLE 12C EM Express 进入方法 (转载)

xiaoxiao2021-02-28  96

      近期使用win10安装新版Oracle和客户端工具,遇到一些问题,也寻找了些解决方法,与大家分享,有不足之处或相关疑问及时留言!

        第一步:创建用户scott

进入cmd命令窗口,连接oracle数据库  (也可以直接用sql plus)

sqlplus / as sysdba  

创建c##scott用户(这里创建的用户为:c##scott,密码为:tiger)  

create user c##scott identified by tiger  

为用户授权  

grant connect,resource,unlimited tablespace to c##scott container=all;  

设置用户使用的表空间  

alter user c##scott default tablespace users;  

alter user c##scott temporary tablespace temp;  

使用c##scott用户登录  

connect c##scott/tiger  

显示当前登录的用户  

show user  

使用SQL Developer创建连接,并使用c##scott用户登录

   第二步:ORACLE 12C EM Express 进入方法 (成功登陆后可利用 sys 账户新增用户!!)

Copyright (c) 1982, 2014, Oracle. All rights reserved. 请输入用户名: system 输入口令: 上次成功登录时间: 星期五 1月 09 2015 18:42:49 +08:00 连接到: Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production With the Partitioning, OLAP, Advanced Analytics and Real Application Testing opt ions SQL> show parameter dispatchers; NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ dispatchers string (PROTOCOL=TCP) (SERVICE=oracle 12cXDB) max_dispatchers integer SQL> exec dbms_xdb_config.sethttpport(8088); PL/SQL 过程已成功完成。

转载请注明原文地址: https://www.6miu.com/read-43389.html

最新回复(0)