Legacy Knowledge Base
Published Sep. 10, 2025

Installing Fixes That Involve Updates to Database Tables

Written By

Christopher Lui

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

We understand that some customers have security policies which compel them to use the Liferay platform to connect to the database as a user that does not have elevated privileges; privileges to change the structure of the tables, such as CREATE, ALTER and/or DROP. 

Sometimes a plugin or hotfix that we provide may require a database update to resolve the issue. Unlike a full Liferay Portal upgrade, there isn't an obvious expectation that there will be a database update. So if you apply the new plugin/hotfix that requires a database update, you will receive database permission errors, for example:

code>08:41:36,858 WARN  [ServerServiceThread Pool -- 140][BaseDB:457] ORA-01031: insufficient privileges: create table Marketplace_App (uuid_ VARCHAR2(75 CHAR) null,appId number(30,0) not null primary key,companyId number(30,0),userId number(30,0),userName VARCHAR2(75 CHAR) null,createDate timestamp null,modifiedDate timestamp null,remoteAppId number(30,0),title VARCHAR2(75 CHAR) null,description varchar2(4000) null,category VARCHAR2(75 CHAR) null,iconURL varchar2(4000) null,version VARCHAR2(75 CHAR) null);
08:41:36,874 WARN  [ServerServiceThread Pool -- 140][BaseDB:457] ORA-01031: insufficient privileges: create table Marketplace_Module (uuid_ VARCHAR2(75 CHAR) null,moduleId number(30,0) not null primary key,appId number(30,0),bundleSymbolicName VARCHAR2(500 CHAR) null,bundleVersion VARCHAR2(75 CHAR) null,contextName VARCHAR2(75 CHAR) null);

Due to the complexity of database structure and possible data changes, our patching processes do not allow us to provide the raw SQL scripts with the fixes.

Environment

  • Liferay Portal 6.x

Resolution

Find a maintenance window to:

  1. Set the application server (Ex. Tomcat) to connect to the database as a privileged user with CREATE/ALTER/DROP rights.
  2. Start up the Liferay platform and let the update commence.
  3. Switch back to the secured user. 
Did this article resolve your issue ?

Legacy Knowledge Base