0

Is there a way I can write a code into a batch file that will unlock a specific account in the specified database?

Mikayil Abdullayev
  • 12,117
  • 26
  • 122
  • 206

2 Answers2

1
ALTER USER username ACCOUNT UNLOCK;
schurik
  • 7,798
  • 2
  • 23
  • 29
1

Call SQL*Plus (as a user with permissions to unlock accounts) from within the batch file and issue the DDL to unlock the user directly from in there.

Is that the sort of answer you were looking for or have I missed something in haste?

Ollie
  • 17,058
  • 7
  • 48
  • 59
  • Thank you bud. I know it is ALTER USER username ACCOUNT UNLOCK; But I thought it might be different from the batch file but now I understand how stupid I was to think so – Mikayil Abdullayev Aug 12 '11 at 10:43