# renameCatalog {#renameCatalog}

## Syntax {#Syntax .section}

`renameSchema(catalog, oldSchema, newSchema)`

## Arguments {#Arguments .section}

**catalog**is a string specifying the catalog name.

**oldSchema**is a string specifying the old schema name.

**newSchema**is a string specifying the new schema name.

## Details {#Details .section}

Rename a schema.

## Examples {#Examples .section}

``` {#codeblock_pvr_4cb_pbc}
renameSchema("catalog1", "schema1", "schema2")
```

**Parent topic:**[Functions](../../Functions/category.md)

