- ✕This summary was generated using AI based on multiple online sources. To view the original source information, use the "Learn more" links.
SQL*Plus is Oracle’s command-line tool for executing SQL, PL/SQL, and administrative commands directly against an Oracle Database. It supports both database operations and environment configuration.
Example – Connecting and Running a Query
sqlplus scott/tiger@orclSQL> SELECT empno, ename FROM emp WHERE deptno = 10;Copied!✕CopyThis logs in as user scott with password tiger to the orcl database and retrieves employees from department 10.
Connecting to a Database
CONNECT username/password@hostname:port/service_name;Copied!✕CopyYou can also connect as a privileged user:
CONNECT sys/password@orcl AS SYSDBA;Copied!✕CopyThis establishes a session with the database for running commands.
Describing Objects
DESCRIBE employees;Copied!✕CopyDisplays column names, data types, and other metadata for the employees table.
Formatting Output
SET LINESIZE 150;SET PAGESIZE 50;COLUMN ename FORMAT A20;Copied!✕CopyThese commands adjust output width, page length, and column formatting for better readability.
Running Scripts
@script.sqlSTART /path/to/script.sqlCopied!✕Copy SQL*Plus Commands - Oracle Help Center
SQL*Plus is a command-line tool that provides access to the Oracle RDBMS. SQL*Plus enables you to: Enter SQL*Plus commands to configure the SQL*Plus environment Startup and shutdown an Oracle …
See results only from docs.oracle.comSQL*Plus Basics - docs.oracl…
You can use SQL*Plus commands to manipulate SQL commands and PL/SQL …
SQL*Plus Basics - Oracle Hel…
You can use SQL*Plus commands to manipulate SQL commands and PL/SQL …
SQL*Plus Command Reference - GeeksforGeeks
Jun 6, 2024 · SQL*Plus is a command-line tool for Oracle Database that allows users to interact with the database using SQL and PL/SQL commands. Here, we …
Basic SQL Plus Commands With Examples: Easy Guide
Welcome to our guide on Basic SQL plus commands with examples. You'll find …
SQL*Plus Basics - docs.oracle.com
You can use SQL*Plus commands to manipulate SQL commands and PL/SQL blocks and to format and print query results. SQL*Plus treats SQL*Plus commands differently than SQL commands or PL/SQL …
SQLPlus commands – Coder Tutorial
SQLPlus commands The most important commands available in SQL * Plus are: ACCEPT – used to read a variable input DEF (DEFINE) – allow you to declare a variable DESC (DESCRIBE) – lists the attributes …
Searches you might like
Oracle SQL Plus: A Complete Guide - betanet.net
Oracle SQL Plus is a powerful tool that is widely used by database developers and administrators to interact with Oracle databases. In this article, we will provide a …
SQL Plus Command | Different Command of SQL Plus …
May 15, 2023 · Guide to Sql Plus Command. Here we discuss the PL/SQL, and SQL command languages are known to be authoritative enough in detail.
SQL Plus - Command Reference - Datacadamia
57 rows · Starts SQL*Plus from the operating system prompt. Performs the specified action if a SQL command or PL/SQL block generates an error. Performs an XQuery 1.0 query on a specified …
SQL Tutorial: Learn SQL from Scratch for Beginners
This SQL Tutorial helps you master SQL quickly and effectively through many hands-on and practical examples with quizzes.
SQL*Plus Basics - Oracle Help Center
You can use SQL*Plus commands to manipulate SQL commands and PL/SQL blocks and to format and print query results. SQL*Plus treats SQL*Plus commands differently than SQL commands or PL/SQL …
Deep dive into SQL*Plus Basic Commands