Skip to content

Commit e09f331

Browse files
committed
oracle disconnect instead of kill
1 parent 0685795 commit e09f331

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tests/functional/fixtures.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,8 @@ CREATE TABLE "$logtable"
169169
EXECUTE IMMEDIATE 'ALTER USER $dbUserName ACCOUNT LOCK';
170170
FOR ln_cur IN (SELECT sid, serial# FROM v`$session WHERE username = '$dbUserName')
171171
LOOP
172-
EXECUTE IMMEDIATE ('ALTER SYSTEM KILL SESSION ''' || ln_cur.sid || ',' || ln_cur.serial# || ''' IMMEDIATE');
172+
EXECUTE IMMEDIATE ('ALTER SYSTEM DISCONNECT SESSION ''' || ln_cur.sid || ',' || ln_cur.serial# || ''' IMMEDIATE');
173173
END LOOP;
174-
DBMS_LOCK.sleep(1);
175174
EXECUTE IMMEDIATE 'DROP USER $dbUserName CASCADE';
176175
END IF;
177176
END LOOP;

0 commit comments

Comments
 (0)