`

数据库突然无法登陆,只有sysdba可以

阅读更多

数据库突然无法登陆,只有sysdba可以登陆。

检查alert文件:

Fri Jan  8 11:41:40 2010
Thread 2 advanced to log sequence 2263 (LGWR switch)
Current log# 4 seq# 2263 mem# 0: /oradata/gamis/redo04.log
Fri Jan  8 12:00:11 2010
Trace dumping is performing id=[cdmp_20100108120010]
Fri Jan  8 12:30:21 2010
Thread 2 advanced to log sequence 2264 (LGWR switch)
Current log# 5 seq# 2264 mem# 0: /oradata/gamis/redo05.log
Fri Jan  8 13:10:29 2010
Database in quiesce mode  <============进入
Fri Jan  8 13:10:30 2010
ALTER SYSTEM SET service_names=’GAMIS’ SCOPE=MEMORY SID=’GAMIS2′;

<==================变化
Fri Jan  8 13:51:14 2010
Thread 2 advanced to log sequence 2265 (LGWR switch)
Current log# 6 seq# 2265 mem# 0: /oradata/gamis/redo06.log
Fri Jan  8 14:12:04 2010
Database out of quiesce mode
Fri Jan  8 14:12:07 2010
ALTER SYSTEM SET service_names=’GAMIS’,'GAMIS_TAF’ SCOPE=MEMORY SID=’GAMIS2′;
Fri Jan  8 14:13:07 2010
Errors in file /u01/oracle/admin/GAMIS/udump/gamis2_ora_905460.trc:
ORA-00604: error occurred at recursive SQL level 1
ORA-12805: parallel query server died unexpectedly
ORA-06512: at line 10

可以看到在13:10分进入了quiesce mode,所以导致系统没有办法登陆。从随后的更新可以看出,这种更新基本应该由管理工具引起。通过确认,在此刻有工程师在进行emca操作,可以认为是emca引起该问题。

确认文档:

Running EMCA Results in Database quiesce And No New Connections or Operations Can Be Performed During the DB Control Repository Creation [ID 375946.1]  

  修改时间 24-SEP-2008     类型 PROBLEM     状态 PUBLISHED  

In this Document
Symptoms
Cause
Solution


Applies to:

Enterprise Manager Grid Control – Version: 10.2.0.1 to 11.1.0.7
This problem can occur on any platform.

Symptoms

When running ‘emca -config dbcontrol db -repos recreate’ or ‘emca -deconfig dbcontrol db -repos drop’ to recreate or drop the Enterprise Manager Database Control configuration files and repository the operation hangs and at the same time users are not able to login to the database.

Cause

The emca command, when recreating or dropping the repository, requires the database to be quiesced.  This means that, temporarily, no operations are possible on the database and new users cannot login.

If there are active sessions on the database at the time the quiesce operation will hang pending their completion, during which time no new users will be able to connect.

Therefore it is important to understand that running these commands may/will cause the database to be unavailable during the time that the repository is being dropped and should not be run on a production database unless you are fully aware of the possible impact to database availability and have planned for this eventuality

Solution

To implement the solution, please execute the following steps:

1. Kill the emca command
2. Connect to the database with SYS account through SQL*Plus
SQL > alter system unquiesce;

Run the emca command at a time when there is low system usage.
For additional information on emca, please consult:
Enterprise Manager Advanced Configuration
Topic 1.2.6 Configuring Database Control During and After the Oracle Database 10g Installation
Available on OTN at:
http://download.oracle.com/docs/cd/B16240_01/doc/nav/portal_booklist.htm

分享到:
评论

相关推荐

    数据库sysdba、sysoperator区别

    sysdba、sysoperator各个数据库角色权限的区别,文章做了较为详细的描述

    oracle数据库基础手记

    c:\&gt; sqlplus /nolog 进入数据库 sql&gt; conn /as sysdba sql&gt; conn system /密码 ----------------------- disconn断开连接 关闭数据库: (abort参数是强制关闭) shutdown (normal/transactional/abort) 启动...

    oracle sysdba 密码解释

    oracle sysdba 密码解释,讲述oracle sysdba的密码机制,以及如何恢复,等操作。

    Oracle用sysdba登录问题

    Oracle数据库用sysdba登录的时候,不需要提供用户名/密码,或者输入不存在的用户名/密码,也能成功,原因是采用了OS验证方式。

    查看oracle数据库的连接数以及用户、数据库锁定进程

    查看oracle数据库的连接数以及用户 1、查询oracle的连接数 2、查询oracle的并发连接数 3、查看不同用户的连接数 4、查看所有用户: 5、查看用户或角色系统权限(直接赋值给用户或角色的系统权限): 6、...

    删除oracle数据库并重建脚本

    @echo sysdba:是否为sysdba,格式:y或者1 @echo 导数据库所需信息: set user=cwy1030 set password=1 @echo 建数据库用户所需信息: set sysuser=sys/1 set sysdba=y set db=orcl set tablespace=MOF --------...

    Oracle通过sqlplus连接数据库的方式

    在oracle服务器,可以直接通过操作系统权限认证,使用sysdba方式登陆,前提是你可以登入服务器,并且拥有此权限。 oracle@e871d42341c0:~$ id uid=1000(oracle) gid=1000(dba) groups=1000(dba) oracle@e87

    Oracle 11g自带人事管理示例数据库(安装使用有详细说明)

    2、在该目录下执行:sqlplus / as sysdba; 3、执行SQL&gt;@hr_main.sql创建HR数据库。 1、使用管理者system身份登录,登陆成功后输入 alter user hr identified by hr(默认密码为hr) account unlock;就可以用了; 2、...

    Oracle数据库的启动和关闭

    要启动和关闭数据库,必须要以具有Oracle 管理员权限的用户登陆,通常也就是以具有SYSDBA权限的用户登陆。一般我们常用INTERNAL用户来启动和关闭数据库(INTERNAL用户实际上 是SYS用户以SYSDBA连接的同义词)。...

    Sys和system用户、sysdba 和sysoper系统权限、dba角色的区别

    【sys】 所有oracle的数据字典的基表和视图都存放在sys用户中,这些基表和视图对于oracle的运行是至关重要的,由数据库自己维护,任何用户都不能手动更改。sys用户拥有dba,sysdba,sysoper等角色或权限,是oracle...

    Linux下启动oracle数据库

    包汉以下两部分: ①Linux下启动oracle数据库; ②sqlplus / as sysdba、sqlplus /nolog后再conn / as sysdba两种登录oracle方式的区别

    数据库安全基线.doc

    限制数据库SYSDBA帐号 4 1.1.1.4. 口令策略 5 1.1.1.5. 帐号锁定策略 5 1.1.1.6. 用户权限最小化 5 1.1.1.7. public权限 6 1.1.1.8. 数据库角色管理 6 1.1.1.9. 启用日志审计 7 1.1.1.10. 日志记录及保存 7 1.1....

    Linux系统怎么用命令重启oracle数据库.docx

    以系统管理员登录,命令:connect / as sysdba (4) 启动数据库,命令:startup (5) 如果是关闭数据库,命令:shutdown immediate (6) 退出sqlplus控制台,命令:exit Linux系统怎么用命令重启oracle数据库全文共3页...

    性能测试监控数据库 打印AWR报告

    3. 进入数据库 sqlplus / as sysdba 4. 查看用户 show parameter db_name 5. 开始压测后执行DBMS_WORKLOAD_REPOSITORY.CREATE_SNAPSHOT (); 6. 结束压测后执行 exec DBMS_WORKLOAD_REPOSITORY.CREATE_SNAPSHOT ();...

    oracle数据库密码过期处理方法.docx

    数据库密码过期后,用户sysdba用户无法登录访问系统,通过文档中的方法,可以修改密码,修改后可以继续访问Oracle数据库系统。

    Oracle数据库安全基础知识

    Oracle数据库安全基础知识。。。。。。。。。

    国产瀚高数据库rpm安装包,含安装脚本

    国产瀚高数据库rpm安装包,含安装脚本,需要arm架构服务器,将资源上传到服务器后执行sh deploy.sh脚本即可自动安装。默认账号sysdba 密码:Aa123456@ jdbc连接示例 driver=com.highgo.jdbc.Driver conn=jdbc:highgo...

    dba和sysdba的区别

    关于SYS和DBASYS权限的区别介绍,可以帮助大家很好的了解这两种权限

    在用isql连接数据库的时候,比较常见的错误

    在用isql连接数据库的时候,比较常见的错误

    数据库系统管理与维护(Oracle)-数据库作业1.doc

    首页 / 我的课程 / 数据库系统管理与维护(Oracle) / 常规 / 第一次作业 / 回顾第 1 次试答 第一次作业 题目1 还未回答 满分1.00 题干 创建数据库时需要多少个控制文件?(A ) 请选择一个答案: a. 1个 b. 2个 c. ...

Global site tag (gtag.js) - Google Analytics