Files
oracle/tpt/tools/sesspack_0.05_release/drop_sesspack.sql

38 lines
1.1 KiB
MySQL
Raw Normal View History

2026-03-12 21:23:47 +01:00
-- Copyright 2018 Tanel Poder. All rights reserved. More info at http://tanelpoder.com
-- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions.
--------------------------------------------------------------------------------
--
-- Author: Tanel Poder
-- Copyright: (c) http://www.tanelpoder.com
--
-- Notes: This software is provided AS IS and doesn't guarantee anything
-- Proofread before you execute it!
--
--------------------------------------------------------------------------------
define spuser=PERFSTAT
define spconn=""
accept spuser default &spuser prompt "Specify the schema where SAWR and SESSPACK are installed [&spuser]: "
accept sppassword prompt "Specify the password for &spuser user: " hide
accept spconn prompt "Enter connect string PREFIXED WITH @ if connecting to remote database [&spconn]: "
-- @@unprepare_user
connect &spuser/&sppassword&spconn
prompt Uninstalling schema...
@@drop_sesspack_packages.sql
@@drop_sesspack_schema.sql
prompt Schema uninstalled.
prompt
prompt Uninstallation completed.
prompt Currently connected as &spuser&spconn....
prompt