> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# alterSchema

<div className="kinetica-javadoc">
  <ul className="member-list">
    <li>
      <div className="section detail" id="alterSchema(com.gpudb.protocol.AlterSchemaRequest)">
        <h3>alterSchema</h3>
        <div className="member-signature"><span className="modifiers">public</span> <span className="return-type"><a href="/content/api/java/com/gpudb/protocol/AlterSchemaResponse" title="class in com.gpudb.protocol">AlterSchemaResponse</a></span> <span className="element-name">alterSchema</span><wbr /><span className="parameters">(<a href="/content/api/java/com/gpudb/protocol/AlterSchemaRequest" title="class in com.gpudb.protocol">AlterSchemaRequest</a> request)</span> throws <span className="exceptions"><a href="/content/api/java/com/gpudb/GPUdbException" title="class in com.gpudb">GPUdbException</a></span></div>
        <div className="block">Used to change the name of a SQL-style <a href="/content/concepts/schemas/" target="_top">schema</a>, specified in <a href="/content/api/java/com/gpudb/protocol/AlterSchemaRequest#getSchemaName()"><code>schemaName</code></a>.</div>

        <div className="dl notes">
          <div className="dt">Parameters:</div>
          <div className="dd"><code>request</code> - <a href="/content/api/java/com/gpudb/protocol/AlterSchemaRequest" title="class in com.gpudb.protocol"><code>Request</code></a> object containing the parameters for the operation.</div>
          <div className="dt">Returns:</div>
          <div className="dd"><a href="/content/api/java/com/gpudb/protocol/AlterSchemaResponse" title="class in com.gpudb.protocol"><code>Response</code></a> object containing the results of the operation.</div>
          <div className="dt">Throws:</div>
          <div className="dd"><code><a href="/content/api/java/com/gpudb/GPUdbException" title="class in com.gpudb">GPUdbException</a></code> - if an error occurs during the operation.</div>
        </div>
      </div>
    </li>

    <li>
      <div className="section detail" id="alterSchema(java.lang.String,java.lang.String,java.lang.String,java.util.Map)">
        <h3>alterSchema</h3>
        <div className="member-signature"><span className="modifiers">public</span> <span className="return-type"><a href="/content/api/java/com/gpudb/protocol/AlterSchemaResponse" title="class in com.gpudb.protocol">AlterSchemaResponse</a></span> <span className="element-name">alterSchema</span><wbr /><span className="parameters">(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" className="external-link">String</a> schemaName, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" className="external-link">String</a> action, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" className="external-link">String</a> value, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" className="external-link">Map</a>\<<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" className="external-link">String</a>,<wbr /><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" className="external-link">String</a>> options)</span> throws <span className="exceptions"><a href="/content/api/java/com/gpudb/GPUdbException" title="class in com.gpudb">GPUdbException</a></span></div>
        <div className="block">Used to change the name of a SQL-style <a href="/content/concepts/schemas/" target="_top">schema</a>, specified in <code>schemaName</code>.</div>

        <div className="dl notes">
          <div className="dt">Parameters:</div>
          <div className="dd"><code>schemaName</code> - Name of the schema to be altered.</div>

          <div className="dd">
            <code>action</code> - Modification operation to be applied. Supported values:

            <ul>
              <li><a href="/content/api/java/com/gpudb/protocol/AlterSchemaRequest.Action#ADD_COMMENT"><code>ADD\_COMMENT</code></a>: Adds a comment describing the schema. </li>
              <li><a href="/content/api/java/com/gpudb/protocol/AlterSchemaRequest.Action#RENAME_SCHEMA"><code>RENAME\_SCHEMA</code></a>: Renames a schema to <code> value</code>. Has the same naming restrictions as <a href="/content/concepts/tables/" target="_top">tables</a>. </li>
            </ul>
          </div>

          <div className="dd"><code>value</code> - The value of the modification, depending on <code> action</code>. For now the only value of <code>action</code> is <a href="/content/api/java/com/gpudb/protocol/AlterSchemaRequest.Action#RENAME_SCHEMA"><code>RENAME\_SCHEMA</code></a>. In this case the value is the new name of the schema.</div>
          <div className="dd"><code>options</code> - Optional parameters. The default value is an empty <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" className="external-link"><code>Map</code></a>.</div>
          <div className="dt">Returns:</div>
          <div className="dd"><a href="/content/api/java/com/gpudb/protocol/AlterSchemaResponse" title="class in com.gpudb.protocol"><code>Response</code></a> object containing the results of the operation.</div>
          <div className="dt">Throws:</div>
          <div className="dd"><code><a href="/content/api/java/com/gpudb/GPUdbException" title="class in com.gpudb">GPUdbException</a></code> - if an error occurs during the operation.</div>
        </div>
      </div>
    </li>
  </ul>
</div>
