Skip to content

Close DB connections before trying to restore dump #6

Open
@gregcorbett

Description

@gregcorbett

If the failover database happens to be in use when 1_runDbUpdate.sh is run to update it, the update fails.

This is because the existing GOCDB5 user can't be dropped, see below.

Dropping GOCDB5 user failed [0]
SQL*Plus: Release 11.2.0.2.0 Production on Fri Jul 16 08:40:01 2021 Copyright (c) 1982, 2011, Oracle. All rights reserved. SQL> Connected. SQL> Directory created. SQL> DROP USER GOCDB5 CASCADE 1_runDbUpdate.sh check_db_dump_recent.py dropGocdbUser2.sh dropGocdbUser.sh failover_TEMPLATE.sh gatherStats.sh getDump.sh lastImportedDmpFile loadData.sh ora11gEnvVars.sh pass_file pass_file_exemplar.txt updateLog.txt ERROR at line 1: ORA-01940: cannot drop a user that is currently connected SQL> Disconnected from Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production

One solution would be to switch the webserver off (and back on) as part of 1_runDbUpdate.sh

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions