1

我有共享计算机,管理员安装 Oracle XE。但是我不能创建新用户,因为我在操作系统中没有权限,afaik。在 Oracle 文档中,DBA 应该是管理员组的成员。是否存在我可以在没有管理员权限的情况下管理本地实例 XE 的方式?我需要启动/停止数据库、连接/断开连接、终止会话等。它需要测试我的 Java 应用程序。

谢谢。

4

4 回答 4

2

您不需要具有管理员权限的操作系统用户(一旦安装并运行 Oracle)。

只需以 SYSDBA 身份连接,您就可以创建新的 Oracle 用户并管理整个数据库。

(我也在 XP 上这样做 - 与普通用户一起工作,但如果我需要在 Oracle 中配置某些东西,则以 SYSTEM 或 SYS 身份连接 SYSDBA 角色)

于 2012-04-10T16:36:41.320 回答
1

From XE manual here :

" On each platform, if the OS authentication user group does not already exist, it is automatically created when you install Oracle Database XE. In addition, upon installation on the Linux platform, the user account oracle is automatically created and placed in the dba group. Upon installation on the Windows platform, the user performing the installation is automatically added to the ORA_DBA group. On both platforms, you can add other host users to the OS authentication user group to enable them to connect to the database with the SYSDBA privilege. "

Since installation on windows needs admin user which I assume you are not, so it renders the automatic addition of that admin user to ORA_DBA group useless for you.

So what your admin can do immediately after XE installation on this shared machine is just add your non-admin OS user (local or domain level, whatever) to the newly created OS local group "ORA_DBA". Once this is done, you can simply open the sqlplus prompt and connect with SYSDBA privilege using your own non-admin user in future:

connect / as sysdba

However, you will still not be able to restart the Oracle service or the TNS listener, even if you are in the ORA_DBA group.

于 2014-06-26T06:05:10.860 回答
1

是否存在我可以在没有管理员权限的情况下管理本地实例 XE 的方式?

可能不是……如果这就是 Oracle 文档所说的。

一个明智的策略是与管理员讨论您的问题。指出如果您没有访问权限,您将难以完成工作。如果他们不授予您系统管理员权限,请让他们建议可以让您完成工作的替代方案。

可能只是他们需要在 Oracle 中授予您额外的权限。

于 2012-04-10T16:20:54.390 回答
1

如何在虚拟机中获得管理员权限?请参阅 virtualbox.org。

于 2012-04-10T16:32:02.747 回答