简体   繁体   English

在Oracle 11G实例中创建新用户/架构时出现问题

[英]Issue creating a new user / schema in Oracle 11G instance

I have an Oracle instance with 8 users/schemas already but since late last week I am unable to create any new users on that instance. 我已经有一个具有8个用户/方案的Oracle实例,但是自上周下半年以来,我无法在该实例上创建任何新用户。 When I run the create user script it just keeps running.... 当我运行创建用户脚本时,它一直在运行。

This is a development box and I have full access to it. 这是一个开发工具箱,我可以完全访问它。 I am not a DBA so how do I troubleshoot to find out what the issue could be? 我不是DBA,因此如何解决问题的根源? and what could the issue be? 问题可能是什么?

Here is the create user script: 这是创建用户脚本:

create user usr_ARCHIVE identified by usr_ARCHIVEpw
default tablespace USERS
temporary tablespace TEMP
profile DEFAULT
quota UNLIMITED on USERS;

Please have a look at the user tablespace to see whether it has enough free space or not. 请查看用户表空间以查看其是否有足够的可用空间。 I have faced similar issues in the past. 我过去也遇到过类似的问题。

It's probably waiting or trying to obtain a lock. 它可能正在等待或尝试获取锁。 To determine what is going on you need to enable tracing. 要确定发生了什么,您需要启用跟踪。 Before executing the create user statement, execute the following command: 在执行创建用户语句之前,执行以下命令:

alter session set events '10046 trace name context forever, level 12';

This will create a trace file in the trace directory. 这将在跟踪目录中创建一个跟踪文件。 By default this is the same directory where the alert.log file is stored. 默认情况下,这是存储alert.log文件的目录。 Analyze the trace file and especially check for the lines that start with WAIT. 分析跟踪文件,尤其是检查以WAIT开头的行。

The problem was with another 10G TNSListener that was running. 问题出在另一个正在运行的10G TNSListener。 Once the 10G TNSListener was stopped and 11G Listener restarted the issue was resolved. 一旦10G TNSListener停止并且11G Listener重新启动,问题就解决了。

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

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