Breadcrumb

Description

# Oracle SQLcl 25.2.2 Docker Image Documentation ## Description Oracle SQL Command Line (SQLcl) is a free command line interface for Oracle Database. It allows you to interactively or batch execute SQL and PL/SQL. SQLcl provides in-line editing, statement completion, and command recall for a feature-rich experience, all while also supporting your previously written SQL*Plus scripts. This image contains the latest SQLcl release available and can be used anywhere docker can run. For more information about Oracle SQLcl refer to [OTN](https://www.oracle.com/database/technologies/appdev/sqlcl.html). ## **Using This Image** ## Pulling the SQLcl image ``` docker pull container-registry.oracle.com/database/sqlcl:latest ``` ## Using SQLcl from outside the Container To start a SQLcl instance execute the following command where is the name of the container and is the name of the image to start the container. ``` docker run --rm -it [SQLcl options] ``` The SQLcl options are the parameters you give to a normal sqlcl instance installed locally. So a real example would be ``` docker run --rm -it container-registry.oracle.com/database/sqlcl:latest system/password@localhost:1521/ORCL ``` ## Using SQLcl from inside the Container ``` docker run --rm -it --name ``` ``` $ docker run -it --rm container-registry.oracle.com/database/sqlcl:latest SQLcl: Release 25.2 Production Copyright (c) 1982, 2022, Oracle. All rights reserved. SQL> ``` ## Use a volume to load sql scripts You can mount a directory with your sql scripts on the path `/opt/oracle/sql_scripts` to run your sql scripts from SQLcl ``` $ docker run -it --rm -v /tmp/sql/:/opt/oracle/sql_scripts/ container-registry.oracle.com/database/sqlcl:latest SQLcl: Release 25.2 Production Copyright (c) 1982, 2022, Oracle. All rights reserved. SQL> @test.sql Connected. 1 ____ 1 Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production Version 19.3.0.0.0 ``` ## Run SQLcl image with a simple command Create a shell alias to call the SQLcl image and mount the sql_scripts as the current working directory path. ``` $ alias sqlcl='docker run -it --rm -v `pwd`:/opt/oracle/sql_scripts container-registry.oracle.com/database/sqlcl:latest' $ cd /tmp/sql_scripts $ sqlcl SQLcl: Release 25.2 Production Copyright (c) 1982, 2022, Oracle. All rights reserved. SQL> @test.sql Connected. 1 ____ 1 Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production Version 19.3.0.0.0 ``` ## Documentation [https://docs.oracle.com/en/database/oracle/sql-developer-command-line/](https://docs.oracle.com/en/database/oracle/sql-developer-command-line/) ## Key Features - In-Line Editor - edit multi-line statements and scripts interactively at the SQLcl prompt - Change Management - native Liquibase integration, with automatic changelog generation for your Oracle Database objects - Command History - cycle through your 100 previous scripts/commands - Completion Insight - auto-complete object names or keywords using the tab key - Other Commands - CTAS, DLL, Repeat, ALIAS, SCRIPT, FORMAT, and many more! - Client Side Scripting - execute javascript to manipulate query results, build dynamic commands, interact with the session, and much more - SQL*Plus Support - SQL*Plus environment settings, commands, and behaviors

Short URL for Repo

https://container-registry.oracle.com/ords/ocr/ba/database/sqlcl

Other Open Source Licenses

The container image you have selected and all of the software that it contains is licensed under the Oracle Free Use Terms and Conditions which is provided in the container image. Your use of the container is subject to the terms of Oracle Free Use Terms and Conditions license.

Pull Command for Latest

docker pull

Tags

TagOS/ArchitectureSizePull CommandLast UpdatedImage ID
latestlinux/arm64617.2 MBdocker pull container-registry.oracle.com/database/sqlcl:latest12 days agoe2b0fb8809c1
25.2.2linux/arm64617.2 MBdocker pull container-registry.oracle.com/database/sqlcl:25.2.212 days agoe2b0fb8809c1
latestlinux/amd64620.93 MBdocker pull container-registry.oracle.com/database/sqlcl:latest12 days ago15f6b9d0fb51
25.2.2linux/amd64620.93 MBdocker pull container-registry.oracle.com/database/sqlcl:25.2.212 days ago15f6b9d0fb51
25.2.0linux/arm64617.06 MBdocker pull container-registry.oracle.com/database/sqlcl:25.2.06 weeks agob49b01a2cfbf
25.2.0linux/amd64620.78 MBdocker pull container-registry.oracle.com/database/sqlcl:25.2.06 weeks ago1b0cf0d04a41
25.1.0linux/arm64605.95 MBdocker pull container-registry.oracle.com/database/sqlcl:25.1.04 months agoec915c506cc1
25.1.0linux/amd64609.71 MBdocker pull container-registry.oracle.com/database/sqlcl:25.1.04 months ago842365d5ce1f
24.4.4linux/arm64615.41 MBdocker pull container-registry.oracle.com/database/sqlcl:24.4.45 months ago53840666d824
24.4.4linux/amd64619.19 MBdocker pull container-registry.oracle.com/database/sqlcl:24.4.45 months agoa1fa4b443bb5
24.4.3linux/arm64615.39 MBdocker pull container-registry.oracle.com/database/sqlcl:24.4.35 months ago4acafb274599
24.4.3linux/amd64619.18 MBdocker pull container-registry.oracle.com/database/sqlcl:24.4.35 months agof389aa4ed596
24.4.1linux/arm64615.39 MBdocker pull container-registry.oracle.com/database/sqlcl:24.4.16 months ago582dc33401a9
24.4.1linux/amd64619.18 MBdocker pull container-registry.oracle.com/database/sqlcl:24.4.16 months agod3aeb9ddaa40
24.3.2linux/arm64598.18 MBdocker pull container-registry.oracle.com/database/sqlcl:24.3.29 months agodae5fa66cf28