100% found this document useful (1 vote)
133 views6 pages

Oracle 11g PL/SQL Tools & Connections

The document discusses different tools for interacting with Oracle databases, including SQL Developer, SQL Plus, and Enterprise Manager. It also covers database authentication using user name, password, and role. Database connections are defined by host name, port, and SID, with details often stored in TNSnames.ora. Bind variables make SQL and PL/SQL code dynamic by substituting placeholders like :ssnValue. SQL Developer and SQL Plus are the primary tools covered in the course.

Uploaded by

aditya chauhan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
133 views6 pages

Oracle 11g PL/SQL Tools & Connections

The document discusses different tools for interacting with Oracle databases, including SQL Developer, SQL Plus, and Enterprise Manager. It also covers database authentication using user name, password, and role. Database connections are defined by host name, port, and SID, with details often stored in TNSnames.ora. Bind variables make SQL and PL/SQL code dynamic by substituting placeholders like :ssnValue. SQL Developer and SQL Plus are the primary tools covered in the course.

Uploaded by

aditya chauhan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Using the Database Interface

• Selecting the Appropriate Tool


• Database Connections
• Bind Variables
• Using SQL Plus
• Using SQL Developer

Oracle 11g PL/SQL Fundamentals I


Selecting the Appropriate Tool
• Oracle SQL Developer – Used by database developers
[replaces SQL Plus]
• Oracle Enterprise Manager SQL Worksheet – Used by
database administrators, application server
administrators, and web server administrators
• Oracle SQL Plus – Occasionally used by database
administrators
• Oracle Application Express – Used by database
developers for web-based applications
• Oracle JDeveloper Studio – Used by Java database
developers

Oracle 11g PL/SQL Fundamentals I


Authentication Elements
• User Authentication – User credentials are authenticated
to ensure access is authorized.
• Database Authentication Elements
Element Description
User name This is the name of the database account.
It is created by the database administrator.
Password This is the security password associated to the database
account.
Role Some Oracle tools require a connection role or privilege
desired for the connection.
DBA’s sometimes connect using SYSOPER, SYSDBA, or
SYSASM.

Oracle 11g PL/SQL Fundamentals I


Oracle Database Connections
• Users are authenticated against a database instance.
The instance identification is based upon a database
connection definition.
Element Description
Host name This is the host name or the IP address of the database
server.
Port This is the port number of the database listener API
running on the host system.
SID This identifies the System Identifier, which is the unique
name for the database server.

• This detail is often stored in the TNSnames.ora file.

Oracle 11g PL/SQL Fundamentals I


Bind Variables
• Bind Variables are a method to make PL/SQL
and SQL code dynamic.
DECLARE
x_salary employee.salary%TYPE;

BEGIN
SELECT salary
INTO x_salary
FROM employee
WHERE ssn = :ssnValue;

END;
/

Oracle 11g PL/SQL Fundamentals I


Oracle Tools
• Oracle SQL Developer - Most of our work will be
performed using this tool.
• Oracle SQL*Plus – This is a command line tool to
interface with your database.

Oracle 11g PL/SQL Fundamentals I

You might also like