Minggu, 07 Januari 2018

Sponsored Links

Oracle SQL Tutorial | How to Install Oracle 10g database (SQL ...
src: i.ytimg.com

SQL*Plus is the most basic Oracle Database utility, with a basic command-line interface, commonly used by users, administrators, and programmers.


Video SQL*Plus



Command types

SQL*Plus understands five categories of text:

  1. SQL statements
  2. PL/SQL blocks
  3. SQL*Plus internal commands, for example:
    • environment control commands such as SET
    • environment monitoring commands such as SHOW
  4. Comments
  5. External commands prefixed by the ! char

Scripts can include all of these components.

An Oracle programmer in the appropriately configured software environment can launch SQL*Plus, for example, by entering:

  $ sqlplus scott/tiger  

where the Oracle user scott has the password tiger. SQL*Plus then presents a prompt with the default form of:

  SQL>  

Interactive use can then start by entering a SQL statement (terminated by a semicolon), a PL/SQL block, or another command. For example:


Maps SQL*Plus



History

The first version of SQL*Plus was called UFI ("User Friendly Interface"). UFI appeared in Oracle database releases up to Version 4.

After Oracle programmers had added new features to UFI, its name became Advanced UFI. The name "Advanced UFI" changed to "SQL*Plus" with the release of the version 5 of Oracle.


Oracle 10g / SQL Plus & iSQL Plus - YouTube
src: i.ytimg.com


Usage

Graphical interfaces from Oracle or third parties have diminished the proportion of Oracle database end-users who depend on the SQL*Plus environment. Oracle shops typically continue to use SQL*Plus scripts for batch updating or simple reports.

Oracle Corporation's wrappers/gui-fications/replacements for SQL*Plus include:

  • Oracle SQL*Plus Worksheet, a component of OEM
  • iSQL*Plus or iSQLPlus, a web-based utility
  • SQL Worksheet, a component of Oracle SQL Developer
  • SQL Workshop (part of Oracle Application Express)

Oracle 11g

Starting from Oracle database 11g, iSqlplus (web based) and sqlplus GUI no longer ship with Oracle database software. The command-line SQL*Plus interface continues in use, mostly for non-interactive scripting or for administrative purposes. The Server Manager Command Line -a replacement of SQL*DBA- is obsolete and SQL*plus 8i and later allows the user to issue statements like STARTUP and SHUTDOWN when connected as SYSDBA. Server Manager 7.1 introduced the command CONNECT / AS SYSDBA to replace CONNECT INTERNAL. SQL*plus 8i and later allows the use of CONNECT / AS SYSDBA


Error In Sql *plus - Databases | Dream.In.Code
src: www.dreamincode.net


Compatibility

Other vendors have made their software somewhat compatible with SQL*Plus script commands or offer a SQL*Plus mode of operation. Relevant products include TOAD from Quest Software.


Creación de Tablas Oracle (SQL PLUS) - YouTube
src: i.ytimg.com


Integration

Variables

SQL*Plus-internal variables, accessible within an SQL*Plus session, include:

  • user variables, displayable with the DEFINE command and referenceable with one or two cases of a prefixed character (default prefixes: '&' and '&&'). Oracle Corporation calls these variables "substitution variables". Programmers can use them anywhere in a SQL or PL/SQL statement or in SQL*Plus commands. They can be populated by a literal using DEFINE or from the database using the column command.
    • predefined variables, prefixed with an underscore ('_')
    • substitution variables, useful for interacting with user-input
  • bind variables, prefixed by a colon (':'), which can interact with the PL/SQL environment. Displayable with the VARIABLE and PRINT commands

Error trapping

The WHENEVER command specifies an action to perform in the event of the system detecting an SQL error or an operating-system error while running a subsequent SQL*Plus command.


Oracle Tutorial 1 - Part 3 - YouTube
src: i.ytimg.com


Supplementary software

  • SQL Assistant SQL Assistant add-on for SQL*Plus Windows version extends SQL*Plus with SQL automatic word completion, in-line Oracle SQL Reference, data export/import, code unit testing, data browsing, and code development functions.
  • rlwrap rlwrap does GNU Readline like command completion for SQL*Plus on UNIX and Linux.

OraFAQ Forum: Client Tools » Where can i download SQL*Plus?
src: i46.tinypic.com


See also

  • Oracle SQL Developer

Tutorial Create table in SQL plus - YouTube
src: i.ytimg.com


References


Introduction(PART 2) | kullabs.com
src: www.kullabs.com


External links

  • SQL*Plus documentation
  • SQL*Plus FAQ
  • SQL*Plus tutorial

Source of the article : Wikipedia

Comments
0 Comments