2026-03-12 20:23:15
This commit is contained in:
37
tpt/tools/sesspack_0.05_release/drop_sesspack.sql
Normal file
37
tpt/tools/sesspack_0.05_release/drop_sesspack.sql
Normal file
@@ -0,0 +1,37 @@
|
||||
-- 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
|
||||
Reference in New Issue
Block a user