Deletes an entry from the Database Connection Services (DCS) directory.
None
sqlenv.h
SQL_API_RC SQL_API_FN
sqlegdel (
struct sql_dir_entry * pDCSDirEntry,
struct sqlca * pSqlca);
SQL_API_RC SQL_API_FN
sqlggdel (
struct sqlca * pSqlca,
struct sql_dir_entry * pDCSDirEntry);
DCS databases are also cataloged in the system database directory as remote databases that can be uncataloged using the sqleuncd API.
To recatalog a database in the DCS directory, use the sqlegdad API.
To list the DCS databases that are cataloged on a node, use the sqlegdsc, sqlegdgt, and sqlegdcl APIs.
If directory caching is enabled (using the dir_cache configuration parameter, 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 the shared cache (server only) in DB2®, stop (db2stop) and then restart (db2start) the database manager. To refresh the directory cache for another application, stop and then restart that application.
UNCATALOG DCS DATABASE dbname [USING :value]