随笔分类 -  日常运维+测试

摘要:问题描述: sqlplus本地登录报错,如下: sqlplus / as ssydba ERROR: ORA-12547:TNS:lost contact 原因分析: 首先确保数据库实例正常运行: srvctl status database -d DB_UNIQUE_NAME ps -ef|gre 阅读全文
posted @ 2023-10-18 08:44 高伟-林州 阅读(79) 评论(0) 推荐(0)
摘要:在启动数据库实例时报错: ORA-01078: failure in processing system parametersORA-00093: pga_aggregate_limit must be between 2048M and 100000G 原因: 该报错是由于设置的pga_aggre 阅读全文
posted @ 2023-10-18 08:27 高伟-林州 阅读(779) 评论(0) 推荐(0)
摘要:问题:由于误删除数据文件,导致无法正常删除该表空间 以下实验对问题做了重现,并且提供了详细的解决方案,前提是故障出现后操作系统没有重启 实验: 1.创建表空间TEST001,并创建表A默认表空间为TEST001,并且插入数值 SYS@EMREP> create tablespace test001 阅读全文
posted @ 2021-07-16 16:57 高伟-林州 阅读(138) 评论(0) 推荐(0)
摘要:一。利用已有索引创建主键1.建表GAO@PROD> create table abcd(id number(10),name1 varchar2(20)); Table created. 2.插入数据GAO@PROD> insert into abcd values(1,'genwang'); 1 阅读全文
posted @ 2021-06-22 09:13 高伟-林州 阅读(776) 评论(0) 推荐(0)
摘要:1.现象: 服务器CPU使用率很高 top查看cpu使用进程: 2.进程用户是oracle,根据spid查看是否是数据库进程,经过查询发现:不是数据库内部的进程 select a.sql_id,a.sql_text,b.machine,b.osuser,b.schemaname,c.pga_used 阅读全文
posted @ 2021-05-25 15:17 高伟-林州 阅读(3411) 评论(0) 推荐(0)
摘要:一。版本: 操作系统版本:SUSE 11 数据库版本:11.2.0.4 二。需求 因安全要求,需要修改SYS密码 三。步骤 1节点执行命令: alter user sys identified by XXXX; 2节点执行命令: alter user sys identified by XXXX; 阅读全文
posted @ 2020-05-14 17:40 高伟-林州 阅读(563) 评论(0) 推荐(0)
摘要:1.报错: 数据泵执行导入时报错:ORA-12899: value too large for column "SCOTT"."TEST112"."JOIN" (actual: 9, maximum: 8) 2.分析: 由报错,可知,应该是源端表和目标端表字符长度不一致,目标端字符长度最大值无法容纳 阅读全文
posted @ 2020-03-13 16:07 高伟-林州 阅读(1549) 评论(0) 推荐(0)
摘要:1.问题描述: 生产环境,zabbix告警业务用户密码即将过期,但是如何不知道业务用户密码的情况下来解决该问题? 2.实验一: 1)创建新的用户test,并授予test resource角色和connect权限,并测试连接test用户 SYS@PROD4 >create user test iden 阅读全文
posted @ 2020-02-22 12:20 高伟-林州 阅读(600) 评论(0) 推荐(0)
摘要:1.Oracle数据泵导出schema时有报错: Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - ProductionWith the Partitioning, OLAP, Data Mining 阅读全文
posted @ 2020-02-16 11:48 高伟-林州 阅读(3000) 评论(0) 推荐(0)
摘要:问题:rman duplicate时报错: RMAN-05001:auxiliary file name /u01/app/oracle/oradata/fratbs01.dbf conflicts with a file used by the target database 分析:应该是主库的这 阅读全文
posted @ 2019-11-20 22:48 高伟-林州 阅读(1329) 评论(0) 推荐(0)
摘要:1.启动数据库时报错:ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance ORA-00119: invalid specification for system parameter LOCAL_LIS 阅读全文
posted @ 2019-11-17 22:17 高伟-林州 阅读(1087) 评论(0) 推荐(0)
摘要:1.如果你的电脑很慢,可以查看下它的工作量是否太大。 在Linux系统中,我们一般使用uptime,或者w 或者top命令 如下:在操作系统中输入 :uptime 08:55:44 up 23 days,10:18 8users, load average: 21.78, 20.54, 18.75 阅读全文
posted @ 2019-06-18 09:27 高伟-林州 阅读(751) 评论(1) 推荐(0)
摘要:1.用sys用户远程登陆 [oracle@edbjr2p2 admin]$ sqlplus system/oracle@PROD3 as sysdbaSQL*Plus: Release 11.2.0.3.0 Production on Wed Jun 12 18:19:27 2019Copyrigh 阅读全文
posted @ 2019-06-12 18:54 高伟-林州 阅读(1371) 评论(0) 推荐(0)
摘要:SCOTT@PROD> insert /*+ append */ into b select * from a;4 rows created.SCOTT@PROD> select file#,block#,status from v$bh where objd=(select data_object 阅读全文
posted @ 2019-06-11 12:16 高伟-林州 阅读(895) 评论(0) 推荐(0)
摘要:1.问题:在用rman进行0级备份时,报错: ORA-19504: failed to create file "/u01/backup/db_0_20190603_1"ORA-27038: created file already exists 2.通过报错,可以看到是文件重复:created f 阅读全文
posted @ 2019-06-03 11:01 高伟-林州 阅读(1399) 评论(0) 推荐(0)
摘要:一。打开数据库alert日志,发现有报错 ERROR: failed to establish dependency between database RACDB and diskgroup resource ora.DATA.dg 二。上mos查看(是一个BUG,无害) This error is 阅读全文
posted @ 2019-02-14 14:53 高伟-林州 阅读(2205) 评论(0) 推荐(0)
摘要:lsnrctl start报错: TNS-12541:TNS:no listener TNS-12560:TNS:protocol adapter error TNS-00511:No listener Linux Error:111:Connection refused 解决:进入 /var/tm 阅读全文
posted @ 2018-12-22 11:44 高伟-林州 阅读(824) 评论(0) 推荐(0)
摘要:1.今天打开数据时,失败,报错 ERROR at line 1:ORA-03113: end-of-file on communication channelProcess ID: 3880Session ID: 125 Serial number: 3 2.想看下数据库的状态,发现提示:not c 阅读全文
posted @ 2018-11-24 08:51 高伟-林州 阅读(3728) 评论(0) 推荐(0)
摘要:报错:vmnet8设置中出现错误。子网IP和子网掩码不一致 设置子网IP时报错,如下图 同样的,写成192.168.0.0就没问题,如下图 总结: 这个虚拟网络编辑器是给添加网卡的,你添加vmnet8就是在你真实的电脑上添加了一个虚拟的网卡,这个地址是这个网卡处于的“网段”,切记,是网段!而不是IP 阅读全文
posted @ 2018-09-15 08:23 高伟-林州 阅读(17672) 评论(0) 推荐(1)