Deletes an entry from the Database Connection Services (DCS) directory.
Authorization
One of the following:
Required Connection
None
Version
sqlenv.h
C API Syntax
/* File: sqlenv.h */ /* API: Uncatalog DCS Database */ /* ... */ SQL_API_RC SQL_API_FN sqlegdel ( struct sql_dir_entry * pDCSDirEntry, struct sqlca * pSqlca); /* ... */ |
Generic API Syntax
/* File: sqlenv.h */ /* API: Uncatalog DCS Database */ /* ... */ SQL_API_RC SQL_API_FN sqlggdel ( struct sqlca * pSqlca, struct sql_dir_entry * pDCSDirEntry); /* ... */ |
API Parameters
REXX API Syntax
UNCATALOG DCS DATABASE dbname [USING :value] |
REXX API Parameters
Sample Programs
Usage Notes
DCS databases are also cataloged in the system database directory as remote databases that can be uncataloged using sqleuncd - Uncatalog Database.
To recatalog a database in the DCS directory, use sqlegdad - Catalog DCS Database.
To list the DCS databases that are cataloged on a node, use sqlegdsc - Open DCS Directory Scan, sqlegdgt - Get DCS Directory Entries, and sqlegdcl - Close DCS Directory Scan.
If directory caching is enabled (see the configuration parameter dir_cache in sqlfxsys - Get Database Manager Configuration), database, node, and DCS directory files are cached in memory. An application's directory cache is created during its first directory lookup. Since the cache is only refreshed when the application modifies any of the directory files, directory changes made by other applications may not be effective until the application has restarted. To refresh DB2's shared cache (server only), stop (db2stop) and then restart (db2start) the database manager. To refresh the directory cache for another application, stop and then restart that application.
See Also
sqlegdad - Catalog DCS Database
sqlegdcl - Close DCS Directory Scan
sqlegdge - Get DCS Directory Entry for Database
sqlegdgt - Get DCS Directory Entries
sqlegdsc - Open DCS Directory Scan
sqleuncd - Uncatalog Database.