Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 1169

Re : How to do an alter session

$
0
0
I did a changeset sqlfile

the migrate.sql file is nice...

-- *********************************************************************
-- Update Database Script
-- *********************************************************************
-- Change Log: src/main/resources/db/v1/master.xml
-- Ran at: 26/04/17 11:51
-- Against: QUIZLIQUIBASE@jdbc:oracle:thin:@localhost:1521/pdb1
-- Liquibase version: 3.5.3
-- *********************************************************************

SET DEFINE OFF;

-- Lock Database
UPDATE DATABASECHANGELOGLOCK SET LOCKED = 1, LOCKEDBY = 'CHPRUVOS-FR (192.168.28.1)', LOCKGRANTED = to_timestamp('2017-04-26 11:51:43.333', 'YYYY-MM-DD HH24:MI:SS.FF') WHERE ID = 1 AND LOCKED = 0;

-- Changeset src/main/resources/db/v1/06-03-2017-1.xml::editionview1::cp
ALTER SESSION SET EDITION=V1;

....

But the result is NOK

[ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:3.5.3:update (default-cli) on project quizdbliqui: Error setting up or running Liquibase: Migration failed for change set src/main/resources/db/v1/06-03-2017-1.xml::editionview1::cp:
[ERROR] Reason: liquibase.exception.DatabaseException: ORA-00922: option erronée ou absente
[ERROR] [Failed SQL: ALTER SESSION SET EDITION=V1;]


Viewing all articles
Browse latest Browse all 1169

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>