Previous Topic: Catalog ManagementNext Topic: class export


Class Management

This section describes commands that manage catalog and application classes.

This section contains the following topics:

class copy

class destroy

class export

class get_desc

class import

list (Class Management)--Retrieve List of Classes in a Package

class lock

class migrate

class move

class put_desc

class unlock

class copy

Copy a class from one package to another. You can copy a class as follows:

Syntax
class copy <src> <dst> [ store=<store> ]
Options:
<src>

Name of class that is to be copied

<dst>

Name of new class

<store>

Specifies the volume store where volumes are created.May be set to one of the following values:

local - store volumes on local server storage

san - store volumes on a SAN

Examples
class copy my-app:DBASE my-app/local:DBASE

copy application singleton to local catalog

                                                   
class copy my-app/local:DBASE /system:DBASE

copy local catalog to global catalog

                                                   
class copy /system:MYSQL5 my-app:DBASE        

copy global catalog to application singleton

class destroy

Delete a class and all its class volumes from a catalog or application.

Syntax
class destroy class [ --force ]  
Parameters
class

Name of the class to be deleted; the class may be in a global catalog, application-specific catalog, or it may be a singleton.

--force

option to skip the confirmation prompt

Examples
class destroy lamp:NAS

Destroy application singleton class

class destroy lamp/local:NAS

Destroy application local catalog class

class destroy /system:NAS

Destroy global catalog class

Note: Instances of the deleted class are not automatically deleted from any application.