SlideShare a Scribd company logo
Oracle 10g Express
Download Oracle 10g Express
• Oracle 10g Express Edition:
   – http://www.oracle.com/technetwork/database/express-
     edition/overview/index.html
• Oracle® Database Express Edition Installation Guide
   – http://download.oracle.com/docs/cd/B25329_01/doc/install.1
     02/b25143/toc.htm#CIHBCFDD
• Oracle® Database Express Edition Getting Started
  Guide

  http://download.oracle.com/docs/cd/B25329_01/doc/
  admin.102/b25610/toc.htm
Start and Login to Oracle 10g Exp
• To start:Oracle PopUp menu
  – Start database: wait for the services to complete:
     • The OracleXETNSListener service was started successfully.
     • The OracleServiceXE service is starting..............................
     • The OracleServiceXE service was started successfully.
  – Go to database home page
     • Login
     • Accounts
         – System administrator
         – User
     • Logout
  – Stop database
Online Help
• SQL reference:
  – http://download.oracle.com/docs/cd/B14117_
    01/server.101/b10759/toc.htm
• Tutorial:
  – http://st-
    curriculum.oracle.com/tutorial/DBXETutorial/in
    dex.htm
Run SQL Command Line
           SQL*Plus
• First start Oracle
• Then choose Run SQL Command Line
  from Oracle menu
• At the prompt:
  – Connect accoutName
Commands at Oracle SQL>
• To list all commands:
  – SQL>help index
• To list all tables:
  – Select * from Cat;
• To display a table structure:
  – Describe tableName
• To run a DOS command from Oracle:
  – Host DOSCommand
  – Example: Host dir
Creating SQL Command Batch File

• Creating a batch file with .sql extension
  – At SQL>Edit filename
     • Ex: SQL>edit c:batch1.sql
• Use START command to execute the
  batch file.
        – SQL>START c:batch1.sql

• See the batch file contents at SQL>
  – SQL>host type c:batch1.sql
Batch File Example
Drop table hotel;
Create table hotel (hotelno char(3), hotelname varchar(20),city varchar(20));
Insert into hotel values('h1', 'Grosvenor','CHICAGO');
Insert into hotel values('h2', 'Westin','SAN FRANCISCO')
Insert into hotel values('h3', 'Hilton','London');

Drop table room;
Create table room(roomno char(3),hotelno char(3),type char(6),
     price number(7,2));
Insert into room values('r1','h1','single', 200.00);
Insert into room values('r2','h1','single', 300.00);
Insert into room values('r3','h1','double', 440.00);
Insert into room values('r1','h2','single', 200.00);
Insert into room values('r2','h2','single', 300.00);
Insert into room values('r3','h2','double', 400.00);
Insert into room values('r1','h3','single', 200.00);
Insert into room values('r2','h3','single', 250.00);
Insert into room values('r3','h3','double', 300.00);
• To display complete field name:
   – Ex.
   – column sex format a3
   – Select * from student;
• To print output:
   – Screen capture
   – Command window:
      • Click the SQL icon on the upper left corner
      • Edit/Mark
      • Edit/Copy
• Enter a date value: assume emp table has: eid,
  ename, hiredate and salary field:
   – Insert into emp values(‘e1’, ‘peter’,’10-Feb-
     04’,5000.00);
Working with SQL Buffer
• SQL Buffer remembers the last SQL
  command executed.
• List: list the SQL statement with line
  number
• correct the line with error:
     • line number correct statement
• Run

More Related Content

PDF
Travis CI+Dockerで複数バージョンの単体テスト
PDF
Immutable infrastructure on AWS
PDF
Clojure@Nuday
PDF
WebSockets, Unity3D, and Clojure
PDF
Node lt
PDF
Client-side Storage 
 
TXT
Simple php backdoor_by_dk
PDF
Absolute Beginners Guide to Puppet Through Types - PuppetConf 2014
Travis CI+Dockerで複数バージョンの単体テスト
Immutable infrastructure on AWS
Clojure@Nuday
WebSockets, Unity3D, and Clojure
Node lt
Client-side Storage 
 
Simple php backdoor_by_dk
Absolute Beginners Guide to Puppet Through Types - PuppetConf 2014

What's hot (20)

PPTX
Linux basic1&2
PDF
PDF
Solr & Lucene at Etsy
PDF
Solr and Lucene at Etsy - By Gregg Donovan
PDF
JavaSE7 Launch Event: Java7xGroovy
PDF
Bag of tricks
PDF
Swift Study #7
PDF
SSH I/O Streaming via Redis-based Persistent Message Queue -Mani Tadayon
PDF
Perl Bag of Tricks - Baltimore Perl mongers
PDF
Parsing JSON with a single regex
PDF
201412 seccon2014 オンライン予選(英語) write-up
PDF
TXT
Var and Ops quiz
PDF
Advanced modulinos
PPTX
Angular 2.0 Pipes
ODP
PHP pod mikroskopom
PDF
Mac OS X Lion で作る WordPress local 環境
PDF
An Introduction to Scala JS
PDF
Linux basic1&2
Solr & Lucene at Etsy
Solr and Lucene at Etsy - By Gregg Donovan
JavaSE7 Launch Event: Java7xGroovy
Bag of tricks
Swift Study #7
SSH I/O Streaming via Redis-based Persistent Message Queue -Mani Tadayon
Perl Bag of Tricks - Baltimore Perl mongers
Parsing JSON with a single regex
201412 seccon2014 オンライン予選(英語) write-up
Var and Ops quiz
Advanced modulinos
Angular 2.0 Pipes
PHP pod mikroskopom
Mac OS X Lion で作る WordPress local 環境
An Introduction to Scala JS
Ad

Viewers also liked (20)

PDF
Tutorial Instalisasi Oracle 10g dan Setting User
PPT
Intro to Application Express
PPTX
Step By Step How To Install Oracle XE
PPT
IBM Informix Database SQL Set operators and ANSI Hash Join
PDF
Oracle intro to designer abridged
PPTX
Sql server ___________ (advance sql)
PPT
Time-Based Blind SQL Injection using Heavy Queries
PPTX
Oracle database introduction
PPT
Managing Oracle Streams Using Enterprise Manager Grid Control
PPTX
T sql語法之 cte 20140214
PPT
Transaction
PDF
Oracle dba trainining in hyderabad
PPTX
Oracle: Joins
PDF
Oracle 10g Installation
PPT
Advanced sql
PPT
Advanced Sql Training
PPTX
SQL Data Manipulation
PDF
Oracle Essentials Oracle Database 11g
PPTX
Sql joins
Tutorial Instalisasi Oracle 10g dan Setting User
Intro to Application Express
Step By Step How To Install Oracle XE
IBM Informix Database SQL Set operators and ANSI Hash Join
Oracle intro to designer abridged
Sql server ___________ (advance sql)
Time-Based Blind SQL Injection using Heavy Queries
Oracle database introduction
Managing Oracle Streams Using Enterprise Manager Grid Control
T sql語法之 cte 20140214
Transaction
Oracle dba trainining in hyderabad
Oracle: Joins
Oracle 10g Installation
Advanced sql
Advanced Sql Training
SQL Data Manipulation
Oracle Essentials Oracle Database 11g
Sql joins
Ad

Similar to Intro oracle10gexpress (20)

PPTX
SQLcl overview - A new Command Line Interface for Oracle Database
PPT
Mysql
PDF
Erik_van_Roon.pdf
PDF
Oracle Sql Developer 21 Database Design And Development Using This Featureric...
DOC
Oracle install
PPTX
Is SQLcl the Next Generation of SQL*Plus?
PPTX
Oracle 10g
PDF
Isqlplus command
PDF
PT- Oracle session01
PPT
dbs class 7.ppt
PPTX
CSE311_IAH_Slide06_SQL _Retrival_Queries.pptx
PDF
SQLcl the next generation of SQLPlus?
PPT
postgresqlllllllllllllllllllllllllllllll.ppt
PPT
Sql 2006
PPTX
Oracle SQL Developer Tips & Tricks
PPT
Interactive SQL: SQL, Features of SQL, DDL & DML
PDF
Chapter – 6 SQL Lab Tutorial.pdf
PDF
Complete SQL in one video by shradha.pdf
DOC
Create manula and automaticly database
PPT
Les08[1] Producing Readable Output with SQL*Plus
SQLcl overview - A new Command Line Interface for Oracle Database
Mysql
Erik_van_Roon.pdf
Oracle Sql Developer 21 Database Design And Development Using This Featureric...
Oracle install
Is SQLcl the Next Generation of SQL*Plus?
Oracle 10g
Isqlplus command
PT- Oracle session01
dbs class 7.ppt
CSE311_IAH_Slide06_SQL _Retrival_Queries.pptx
SQLcl the next generation of SQLPlus?
postgresqlllllllllllllllllllllllllllllll.ppt
Sql 2006
Oracle SQL Developer Tips & Tricks
Interactive SQL: SQL, Features of SQL, DDL & DML
Chapter – 6 SQL Lab Tutorial.pdf
Complete SQL in one video by shradha.pdf
Create manula and automaticly database
Les08[1] Producing Readable Output with SQL*Plus

Intro oracle10gexpress

  • 2. Download Oracle 10g Express • Oracle 10g Express Edition: – http://www.oracle.com/technetwork/database/express- edition/overview/index.html • Oracle® Database Express Edition Installation Guide – http://download.oracle.com/docs/cd/B25329_01/doc/install.1 02/b25143/toc.htm#CIHBCFDD • Oracle® Database Express Edition Getting Started Guide http://download.oracle.com/docs/cd/B25329_01/doc/ admin.102/b25610/toc.htm
  • 3. Start and Login to Oracle 10g Exp • To start:Oracle PopUp menu – Start database: wait for the services to complete: • The OracleXETNSListener service was started successfully. • The OracleServiceXE service is starting.............................. • The OracleServiceXE service was started successfully. – Go to database home page • Login • Accounts – System administrator – User • Logout – Stop database
  • 4. Online Help • SQL reference: – http://download.oracle.com/docs/cd/B14117_ 01/server.101/b10759/toc.htm • Tutorial: – http://st- curriculum.oracle.com/tutorial/DBXETutorial/in dex.htm
  • 5. Run SQL Command Line SQL*Plus • First start Oracle • Then choose Run SQL Command Line from Oracle menu • At the prompt: – Connect accoutName
  • 6. Commands at Oracle SQL> • To list all commands: – SQL>help index • To list all tables: – Select * from Cat; • To display a table structure: – Describe tableName • To run a DOS command from Oracle: – Host DOSCommand – Example: Host dir
  • 7. Creating SQL Command Batch File • Creating a batch file with .sql extension – At SQL>Edit filename • Ex: SQL>edit c:batch1.sql • Use START command to execute the batch file. – SQL>START c:batch1.sql • See the batch file contents at SQL> – SQL>host type c:batch1.sql
  • 8. Batch File Example Drop table hotel; Create table hotel (hotelno char(3), hotelname varchar(20),city varchar(20)); Insert into hotel values('h1', 'Grosvenor','CHICAGO'); Insert into hotel values('h2', 'Westin','SAN FRANCISCO') Insert into hotel values('h3', 'Hilton','London'); Drop table room; Create table room(roomno char(3),hotelno char(3),type char(6), price number(7,2)); Insert into room values('r1','h1','single', 200.00); Insert into room values('r2','h1','single', 300.00); Insert into room values('r3','h1','double', 440.00); Insert into room values('r1','h2','single', 200.00); Insert into room values('r2','h2','single', 300.00); Insert into room values('r3','h2','double', 400.00); Insert into room values('r1','h3','single', 200.00); Insert into room values('r2','h3','single', 250.00); Insert into room values('r3','h3','double', 300.00);
  • 9. • To display complete field name: – Ex. – column sex format a3 – Select * from student; • To print output: – Screen capture – Command window: • Click the SQL icon on the upper left corner • Edit/Mark • Edit/Copy • Enter a date value: assume emp table has: eid, ename, hiredate and salary field: – Insert into emp values(‘e1’, ‘peter’,’10-Feb- 04’,5000.00);
  • 10. Working with SQL Buffer • SQL Buffer remembers the last SQL command executed. • List: list the SQL statement with line number • correct the line with error: • line number correct statement • Run