All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.kuali.db.oracle.drop.sql Maven / Gradle / Ivy

There is a newer version: 1.1.3
Show newest version
-- Drop the user and ignore the Oracle 'user does not exist' error
-- Dropping the user removes all objects associated with this schema (tables, views, indexes, sequences, etc)
-- This is roughly the equivalent to MySQL's: DROP DATABASE [databaseName] IF EXISTS
BEGIN 
  EXECUTE IMMEDIATE 'DROP USER ${database} CASCADE'; 
EXCEPTION WHEN OTHERS THEN 
 IF SQLCODE != ${oracle.error.sqlcode.userDoesNotExist} THEN
   RAISE;
 END IF;
END;
/




© 2015 - 2025 Weber Informatics LLC | Privacy Policy