Thread 1 cannot allocate new log, sequence **** 这种错误,是因为日志文件太小或组数少造成的。建议增加日志文件的大小到500M,并且增加两组日志文件。 具体操作如下:
加两组日志文件:
alter database add logfile group 4 'e:\oraclelog\redolog004.log' size 500M;
alter database add logfile group 5 'e:\oraclelog\redolog005.log' size 500M;
日志文件切换:
alter system switch logfile;
alter system switch logfile;
删除原有日志组:
alter database drop logfile group 1;
alter database drop logfile group 2;
alter database drop logfile group 3;
新建日志组:
alter database add logfile group 1 'D:\ORACLE\ORADATA\NODMDB\REDO001.LOG' size 500M;
alter database add logfile group 2 'D:\ORACLE\ORADATA\NODMDB\REDO002.LOG' size 500M;
alter database add logfile group 3 'D:\ORACLE\ORADATA\NODMDB\REDO003.LOG' size 500M;
二·等待事件中: SQL*Net message from dblink 排在第一位,发现里面有类似下面这样的sql:
create table t_pgh_trx_temp as select * from t_pgh_trx@DBSVR where 1=2
语句目的是建一张新表,表结构和t_pgh_trx@DBSVR一样,里面没有数据。这样的语句完全可以不通过DBLINK,而是在本数据库建一张空表和t_pgh_trx@DBSVR结构一样,以后建表的时候用本地建的表。(这里说的是避免dblink的办法)。 实际上这种create table的操作也是不建议的,建议使用truncate table的操作。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/25099483/viewspace-715399/ ,如需转载,请注明出处,否则将追究法律责任。