简体   繁体   English

Oracle 19c - 无法连接到我在 SQL 开发人员中创建的新用户

[英]Oracle 19c - can't connect with a new user I've created in SQL developer

I created a new user 'modeling' in SQL developer.我在 SQL 开发人员中创建了一个新用户“建模”。 But I can't connect to DB with this user.但我无法用这个用户连接到数据库。 I granted all permissions, but I've got the following errors.我授予了所有权限,但出现以下错误。

I've installed Oracle 19c on Windows 10 Enterprise x64 and created the user after connecting with 'sys' user in SQL Developer tool.我已经在 Windows 10 Enterprise x64 上安装了 Oracle 19c 并在 SQL 开发工具中与“sys”用户连接后创建了用户。

连接错误画面

用户编辑

在此处输入图像描述

Regular users are not allowed to login "as SYSDBA" unless user has been granted this role.除非用户被授予此角色,否则不允许普通用户“以 SYSDBA 身份”登录。 To the right in your screenshot you have selected the role "SYSDBA".在屏幕截图的右侧,您选择了角色“SYSDBA”。 If you rather select the role "default", you will be able to login.如果您宁愿 select 角色“默认”,您将能够登录。

All the different roles in the drop down list are roles you can grant to users.下拉列表中的所有不同角色都是您可以授予用户的角色。 These roles have specific administrative purpose.这些角色具有特定的管理目的。

When role granted and selected in SQL Developer at login, this user will be granted administrative privileges to handle everything regular users are not going to worry about like startup, shutdown, backup, storage-management当登录时在 SQL Developer 中授予和选择角色时,该用户将被授予管理权限来处理普通用户不会担心的所有事情,例如启动、关闭、备份、存储管理

Why so complicated?为什么这么复杂?

In a huge corporate-bank you will most likely separate the guys who do backup from the guys who do storage-admin from the guys who do dba work.在一家大型企业银行中,您很可能会将从事备份工作的人与从事存储管理工作的人与从事 dba 工作的人分开。 In your world where you have everything installed on your laptop, all this seems like complicated things.在您的笔记本电脑上安装了所有东西的世界中,所有这些似乎都是复杂的事情。 Remember you have installed enterprise software on your machine and these security constructs are means to restrict administrative access.请记住,您已经在计算机上安装了企业软件,这些安全结构是限制管理访问的手段。

The most common connection construct you will see when doing administrative work on your Oracle Database engine is this在 Oracle 数据库引擎上进行管理工作时,您将看到的最常见的连接结构是这样的

sqlplus sys/password@<TNS_ALIAS> as sysdba (via SQL net) or sqlplus / as sysdba (OS auth) sqlplus sys/password@<TNS_ALIAS> as sysdba (通过 SQL 网络)或sqlplus / as sysdba (操作系统身份验证)

Best of luck!祝你好运!

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM