SQLPlus jobs fail with Error: 45 occurs during the initialization of SQL*Plus when executing scripts via the Agent. This issue impacts both Windows and Linux Agents and occurs when the SQL script does not properly terminate without an explicit EXIT command., leading to an initialization failure.
sqlplus <user>/<password>@<Oracle_DB>:1521/<DB> @C:\Automic\Agents\sql.txt
SQL*Plus: Release 19.0.0.0.0 - Production on Thu Jul 31 10:30:05 2025
Version 19.27.0.0.0
Copyright (c) 1982, 2024, Oracle. All rights reserved.
Last Successful login time: Thu Jul 31 2025 10:29:58 +00:00
Connected to:
Oracle Database 23ai Free Release 23.0.0.0.0 - Develop, Learn, and Run for Free
Version 23.7.0.25.01
COUNT(*)
----------
1323
SQL> Error 45 initializing SQL*Plus
Internal error
EXIT; command to the end of the SQL script. This ensures SQL*Plus terminates properly and prevents Error 45.Subscribe to this article to receive updates on the status of this fix: .