PS E:\PROJECT\LOOPBACK\meetupz>节点服务器/bin/Automigration.js
代码:
var app = require('../server');
// this loads the accountDb configuration in ~/server/datasources.json
var dataSource = app.dataSources.db;
dataSource.automigrate('User', function(err) {
if (err) throw err;
dataSource.disconnect();
});
// this automigrates the model
dataSource.automigrate('meetup', function(err) {
if (err) throw err;
dataSource.disconnect();
});结果:
未处理的拒绝错误: ORA-24422:试图销毁会话时发生的错误
请帮帮忙
发布于 2018-11-07 16:17:56
解决方案是只调用一次automigrate并断开一次连接。https://loopback.io/doc/en/lb3/Creating-a-database-schema-from-models.html
https://stackoverflow.com/questions/53111142
复制相似问题