ORA Error Solutions——ORA-00020 ORA-00257 ORA-00600 ORA-01012 ORA-01031 ORA-01102

本文针对Oracle数据库中常见的错误代码如ORA-00020、ORA-00257等进行了详细的解释,并提供了相应的解决方案,包括如何调整参数、清理归档日志以及处理实例恢复等问题。

ORA-00020 maximumnumber of processes (150) exceeded

Problem: DB instance can’t be login andshow below error

ORA-00020maximum number of processes (150) exceeded

Root CauseTheprocesses parameter is set as 150. Sqlplus / as sysdba can’t login.And hangprocesses were locked the DB instances.

Solution: Restart DB server. It is anot a good solution.

More: please set the parameter as 1000at the begging to create DB instance. It is better to kill the blocked processwith kill -9.

ps -ef|grep oraclesid|grep -v grep|cut -c 9-15 |xargs kill -9

ps -ef|grep oraclesid show the process, if LOCAL=YES: the sessionis connected in locale server and not via listener. If LOCAL=NO: the session isconnected via listener.



ORA-00257:archiver error. Connect internal only, until freed

Problem: archive log is full of thedisk, show below error

ORA-00257:archiver error. Connect internal only, until freed

Root Cause: The archive mode is openand archive log files size is increasing day by day to  be full of disk.

Solution: rman clean archive log,because rman can release the space of Oracle.

rman target sys/manager

RMAN>crosscheck archivelog all

RMAN>delete archivelog all; //delete all archive log

RMAN>delete expired archivelog all; //delete expired archive logs

RMAN>delete archivelog until time 'sysdate-1' ;//delete the archive log beforetoday

Check theusage rate SQL:

SQL>select* from V$FLASH_RECOVERY_AREA_USAGE;

More:

sqlplus sys/manager as sysdba

SQL> show parameter log_archive_dest;  //Check archive log location

SQL>archive log list; //archive log directory and logsequence

SQL>show parameter recover; // find the recoverdirectory

Closearchive mode:

SQL>shutdown immediate;

SQL>startup mount;

SQL>alter database noarchivelog;

SQL>alter database open;

Open archivemode:

SQL>alter database archivelog;

SQL>alter database open;

SQL>archive log list;

If thedatabase can’t be started normally with archive mode, please firstly close thearchive mode, startup successfully and then open the archive mode.

If DBstartup still failed, please delete some archivelog files;

SQL>select group#,sequence# from v$log;

SQL>alter database clear unarchived logfile group 1;

SQL>ALTER DATABASE OPEN;

SQL>select name from v$datafile;

SQL>ALTER SYSTEM SET LOG_ARCHIVE_DEST=’/opt/app/oracle/oradata/useagedb/arch’scope=spfile

Or updatethe size

SQL>ALTER SYSTEM SET DB_RECOVERY_FILE_DEST_SIZE=3GSCOPE=both;


ORA-00600:internal error code, arguments: [kcratr1_lastbwr], [], [], [], [],[], [], []

Problem:SQL>startup
ORACLE instance started.

TotalSystem Global Area 1073741824 bytes
Fixed Size 1264916 bytes
Variable Size 264241900 bytes
Database Buffers 801112064 bytes
Redo Buffers 7122944 bytes
Database mounted.
ORA-00600: internal error code, arguments: [kcratr1_lastbwr], [], [], [], [],[],[], []

Encountered in: 10.2.0.2.0 Database

Root Cause:Oracle is unable to perform instance recover but it works whenis invoked manually.

Solution:

SQL>startup mount
ORACLE instance started.

TotalSystem Global Area 1073741824 bytes
Fixed Size 1264916 bytes
Variable Size 264241900 bytes
Database Buffers 801112064 bytes
Redo Buffers 7122944 bytes
Database mounted.
SQL>
recover database
Media recovery complete.
SQL>
alter database open;

Databasealtered.


More: This manner can’t solve all theORA 600 errors based on different situations.

ORA-01012: not logged on

Problem: DB instance can’t be login andclient reported ora- 12560.

conn / as sysdba report below error: ORA-01012: not logged on

And connect with other user, ORA-01089: immediate shutdown inprogress - no operations are permitted.

Root CauseShutdownprocess is failed.

Solution: ps-ef|grep ora_dbw0_$ORACLE_SID

Kill -9 porcessID

Or

ps -ef |grep $ORACLE_SID | grep -v grep | cut -c 9-15 | xargs kill -s 9


More:

关闭数据库是shutdown 后面没有接关闭参数中的任何一个。

  nomal --->所有连接都断开时才能关闭;

  transactional --->等待事务结束后,主动断开连接;

  immediate --->主动断开事务和连接

  abort --->立刻关闭数据库,这个操作是危险的,不会同步数据,不触发检查点,回滚段直接清空,相当于掉电,每次启动都要实例恢复。

ORA-01031: insufficient privileges

Problem: Via root account to connectinstance as sysdba, error ora-01031:insufficientprivileges is shown.

Root Cause: root has not the privilege.

Solution: Change the oracle account toconnect instance as sysdba. And export ORACLE_SID in the multiple instances.

More: Check parameter:

[oracle@3816svr~]$ export ORACLE_SID=opdb

[oracle@3816svr~]$ sqlplus / as sysdba    

SQL> showparameter password;


NAME                                 TYPE        VALUE

----------------------------------------------- ------------------------------

remote_login_passwordfile            string      EXCLUSIVE

SQL> select *from v$pwfile_users;


USERNAME                       SYSDB SYSOP SYSAS

----------------------------------- ----- -----

SYS                            TRUE  TRUE FALSE


SQL> grantsysdba to sys;

Update the passwordfile:

SQL>host$ORACLE_HOME/bin/orapwd file=$ORACLE_HOME/dbs/orapwopdb password=manager force=y

ORA-01102: cannot mount database inEXCLUSIVE mode  

Problem:  Oracle server (virtual machine)isrestarted accidentally and the ora_data in the mount server(not restart). Whenthe instance is started, below error is shown:

SQL>startup
ORACLE instance started.

TotalSystem Global Area 276824064 bytes
FixedSize                  778736 bytes
VariableSize            137371152 bytes
Database Buffers         138412032 bytes
RedoBuffers                262144 bytes
ORA-01102: cannot mountdatabase in EXCLUSIVE mode

Root Cause: the file resource is lockedin the server restart process.

Solution:

(1)cd $ORACLE_HOME/dbs

$ls sgadef*

Sgadef* notfound

$ls lk*

ls<sid>filesis not deleted. So delete them.

$rm lk*

(2)And thencheck alter log, below error is shown: ORA-27086: unable to lock file – alreadyin use

Because thefile lock is still exited. So the lock should be cleaned.

Executionstep:

mv controlfile /tmp/controlfile

cp/tmp/controlfile /u01/oratab/ora_sid


More:  

[root@3816svr ~]# cd$ORACLE_HOME/dbs

[root@3816svr dbs]#fuser -u lk*

[root@3816svr dbs]#fuser -u lkOPDB (uppercase of SID)

lkOPDB:              24981(oracle) 24983(oracle)25016(oracle) 25022(oracle) 25026(oracle) 25028(oracle) 25030(oracle)25032(oracle) 25034(oracle) 25036(oracle) 25038(oracle) 25042(oracle)

Via fuser to killthem:


[root@3816svrdbs]#fuser -k lk*




内容概要:本文介绍了一种基于多目标粒子群算法(MOPSO)的微电网优化调度模型,综合考虑风能、光伏、储能系统、柴油发电机、燃气轮机以及与主电网之间的能量交互等多种分布式能源的协同运行。通过构建以运行成本最小化、碳排放最低化和系统可靠性最优化为目标的多目标优化模型,利用Matlab平台实现MOPSO算法求解,完成对微电网在不同运行场景下的能量管理与调度方案优化。该模型能够有效平衡经济性与环保性之间的关系,适用于含多类型分布式电源的复杂微电网系统,具有较强的工程应用价值和科研参考意义; 适合人群:具备一定电力系统基础知识和Matlab编程能力的研究生、科研人员及工程技术人员,尤其适合从事微电网、智能电网、综合能源系统、可再生能源集成与优化调度等领域研究的专业人士; 使用场景及目标:①用于多能源耦合微电网系统的协同优化调度研究;②支持多目标智能优化算法在能源系统中的建模与求解实践,帮助用户掌握MOPSO在实际工程问题中的应用方法;③为学术论文复现、毕业设计、科研项目开发提供完整的代码实例与技术支撑; 阅读建议:建议读者结合Matlab代码与理论文档,深入理解目标函数构建、约束条件处理及Pareto最优解集生成机制,重点关注算法参数设置、多目标权衡分析与结果可视化,并可通过调整能源配置或引入新约束进行二次开发与创新研究。
内容概要:本文系统研究了基于模型预测控制(MPC)的滚动优化方法在微电网多时间尺度能量管理调度中的应用。通过构建包含风能、光伏、储能等多种分布式能源的微电网综合系统模型,充分利用MPC的前瞻性预测与滚动优化机制,实现对系统内部能量流的精细化、动态化调控。研究重点解决了新能源出力强不确定性带来的调度挑战,兼顾系统运行的经济性、稳定性与可靠性,在日前、日内及实时等多个时间尺度上实现了优化决策的协同。文中配套提供了完整的Python代码实现,涵盖模型构建、约束处理、目标函数设定与求解全过程,具有较强的可复现性与工程参考价值。; 适合人群:具备一定电力系统、优化理论基础和Python编程能力的研究生、科研人员及从事微电网、综合能源系统、能源互联网等领域研究的工程技术人员。; 使用场景及目标:①深入理解MPC在复杂能源系统调度中的核心原理与技术优势;②学习并复现多时间尺度滚动优化的完整建模与求解流程;③为微电网能量管理系统(EMS)的开发、相关学术研究或工程项目提供直接的算法实现参考与技术支撑; 阅读建议:建议读者结合所提供的Python代码进行逐行研读与调试,亲自动手修改系统参数、负荷曲线或新能源出力数据,以深刻体会MPC算法的动态响应特性与优化效果,进而在此基础上开展二次开发与创新性研究。
智能安防是依托人工智能、大数据、物联网等前沿技术构建的新一代安全防护体系,彻底打破了传统安防“被动监控、事后追溯”的局限。它不再是孤立的摄像头、门禁和报警器的简单组合,而是通过全域感知设备的互联互通,实现对人员、车辆、环境等多维度数据的实时采集与智能分析。从社区出入口的人脸无感通行、异常行为识别,到道路上的违章智能抓拍、重点区域的入侵预警,再到企业园区的消防隐患预判、设备故障自动告警,智能安防能在毫秒级完成风险研判,把安全防线从“事后处置”前移到“事前预防”。如今,它早已渗透到城市治理、居家生活、商业运营等各类场景,成为守护公共安全与私人空间的核心技术支撑。 不同于传统安防依赖人工盯守的高成本模式,智能安防凭借算法的持续迭代,不断拓展安全防护的边界。它可以通过对历史数据的深度挖掘,提前识别人群聚集、消防通道占用等潜在风险,联动公安、物业、应急等多部门快速响应,大幅降低安全事件的发生概率和处置时长。在老旧小区改造中,智能安防设备的加装解决了过去流动人口管理难、高空抛物溯源难等长期痛点;在家庭场景里,智能门锁、可视门铃、燃气泄漏报警器等设备组成的居家安防网络,让用户通过手机就能随时掌握家中安全状态。随着数字城市建设的推进,智能安防正从单一的安全工具,进化为构建智慧城市安全底座的关键组成部分,为人们的日常工作与生活筑牢更高效、更精准的防护屏障。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值