V$LOG.STATUS

Log status:
■ UNUSED - Online redo log has never been written to. This is the state
of a redo log that was just added, or just after a RESETLOGS, when it
is not the current redo log.
■ CURRENT - Current redo log. This implies that the redo log is active.
The redo log could be open or closed.
■ ACTIVE - Log is active but is not the current log. It is needed for
crash recovery. It may be in use for block recovery. It may or may not
be archived.
■ CLEARING - Log is being re-created as an empty log after an ALTER
DATABASE CLEAR LOGFILE statement. After the log is cleared, the
status changes to UNUSED.
■ CLEARING_CURRENT - Current log is being cleared of a closed
thread. The log can stay in this status if there is some failure in the
switch such as an I/O error writing the new log header.
■ INACTIVE - Log is no longer needed for instance recovery. It may be
in use for media recovery. It might or might not be archived.[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10599713/viewspace-1001543/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/10599713/viewspace-1001543/

以下是对 `saveApplication` 函数中 `businessSampleV1Save` 调用的 `.then` 部分代码可能存在的错误进行的详细检查: ### 1. 数据类型和属性访问错误 在 `.then` 方法中,代码对 `res` 对象的属性进行了访问,如 `res.code`、`res.result.status`、`res.result.snMap` 等。如果接口返回的数据结构与代码预期不一致,就会出现属性访问错误。例如,如果 `res` 中没有 `result` 属性,那么访问 `res.result.status` 就会导致错误。 ```javascript if (res.code === '0') { if (res.result.status == '1') { // ... } else { const errList = res.result?.snMap?.filter(v => v.status != 1) || []; // ... } } ``` ### 2. 逻辑判断错误 在 `if (res.result.status == '1')` 这一行,使用了 `==` 进行比较,这可能会导致类型不匹配的问题。建议使用 `===` 进行严格比较,以确保值和类型都相等。 ```javascript if (res.result.status === '1') { // ... } ``` ### 3. 变量未定义错误 在 `this.errorMsg = errList?.map(v => 'SN:' + v.sn + $PIX.I18n.get('pmall-buyer-center-Hwtransfer-operationTipsfour', { val: v.msg })) || [];` 这一行,`$PIX` 可能未定义。需要确保 `$PIX` 变量在当前作用域中是可用的。 ### 4. 异步操作错误 在 `.then` 方法中,调用了 `this.getData()` 方法,这可能是一个异步操作。如果 `getData` 方法内部出现错误,并且没有进行错误处理,可能会导致整个程序出现异常。建议在 `getData` 方法中添加错误处理逻辑。 ```javascript this.getData().catch(error => { console.error('getData 方法出错:', error); }); ``` ### 完整检查建议 可以在 `.then` 方法中添加一些调试信息,以便更好地定位问题。例如: ```javascript businessSampleV1Save(params) .then(res => { console.log('接口返回数据:', res); this.detailLoading = false; if (res.code === '0') { if (res.result.status === '1') { this.$message.success(this.$PIX.I18n.get('pmall-china-message-saveSuccess')); this.pageInfo.currentPage = 1; this.getData().catch(error => { console.error('getData 方法出错:', error); }); } else { const errList = res.result?.snMap?.filter(v => v.status != 1) || []; if (errList?.length) { this.errorMsg = errList?.map(v => 'SN:' + v.sn + this.$PIX.I18n.get('pmall-buyer-center-Hwtransfer-operationTipsfour', { val: v.msg })) || []; this.tipsVisible = true; } else { this.$message.error(res.result.msg); } } } else { console.log('没进1'); this.$message.error(this.$PIX.I18n.get('pmall-china-message-actionFail')); } }) .catch(error => { console.log('捕获到错误1:', error); this.detailLoading = false; this.$message.error(this.$PIX.I18n.get('pmall-china-message-actionFail')); }); ```
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值