Open topic with navigation

TIBCO® Patterns 6.1.2

# Deleting a Database (lkt_dbdelete)

This command deletes a database, releasing all storage associated with it and with its records.

    dvkerr_t lkt_dbdelete(lpar_t host, lpar_t name );
    dvkerr_t lkt_dbdeleteT(lpar_t host, lpar_t name, lpar_t tran );

If the database has been checkpointed (see Checkpointing and Restoring a Database) the checkpoint is also deleted when the transaction is committed, and thus the database can no longer be restored with the `lkt_restore` command.

If durable-data is enabled, all of the files backing the table are removed when the transaction is committed.

## Input

## host (optional)

This is used to identify the server. For more information, see Communicating with TIBCO Patterns Servers

## name (required)

is the name of the database (LPAR_STR_DBDESCRIPTOR) to be destroyed.

## tran (optional)

identifies the user transaction (LPAR_LONG_TRAN_ID) under which the table delete operation is to be performed.

Error codes and items returned by lkt_dbdelete

CHKPT_CORRUPT | Name of table that has corrupt checkpoint information
DBNOTFOUND | name of nonexistent database
EXPECTDBDESC | item that should have been a table name
INTERNAL | details of unexpected error encountered
JOINSET | Name of parent table that has child tables linked to it
NODBDESC | (none)
NOSYSINIT | (none)
PARAMVAL | invalid table name
TRAN_UNKNOWN | lpar that contains the unknown transaction id
TRAN_IN_USE | lpar that contains the transaction id
TRANCONFLICT | list that contains LPAR_LONG_INT_TRAN_ID and LPAR_STR_ERRORDETAILS

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO® Patterns

Copyright © 2010-2025. Cloud Software Group, Inc. All Rights Reserved.