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

What's hot

Linux basic1&2
Linux basic1&2Linux basic1&2
Linux basic1&2
Hideo Amezawa
 
Solr & Lucene at Etsy
Solr & Lucene at EtsySolr & Lucene at Etsy
Solr & Lucene at Etsy
Lucidworks (Archived)
 
Solr and Lucene at Etsy - By Gregg Donovan
Solr and Lucene at Etsy - By Gregg DonovanSolr and Lucene at Etsy - By Gregg Donovan
Solr and Lucene at Etsy - By Gregg Donovan
lucenerevolution
 
JavaSE7 Launch Event: Java7xGroovy
JavaSE7 Launch Event: Java7xGroovyJavaSE7 Launch Event: Java7xGroovy
JavaSE7 Launch Event: Java7xGroovyYasuharu Nakano
 
Bag of tricks
Bag of tricksBag of tricks
Bag of tricks
brian d foy
 
Swift Study #7
Swift Study #7Swift Study #7
Swift Study #7
chanju Jeon
 
SSH I/O Streaming via Redis-based Persistent Message Queue -Mani Tadayon
 SSH I/O Streaming via Redis-based Persistent Message Queue -Mani Tadayon SSH I/O Streaming via Redis-based Persistent Message Queue -Mani Tadayon
SSH I/O Streaming via Redis-based Persistent Message Queue -Mani Tadayon
Redis Labs
 
Perl Bag of Tricks - Baltimore Perl mongers
Perl Bag of Tricks  -  Baltimore Perl mongersPerl Bag of Tricks  -  Baltimore Perl mongers
Perl Bag of Tricks - Baltimore Perl mongers
brian d foy
 
Parsing JSON with a single regex
Parsing JSON with a single regexParsing JSON with a single regex
Parsing JSON with a single regex
brian d foy
 
201412 seccon2014 オンライン予選(英語) write-up
201412 seccon2014 オンライン予選(英語) write-up201412 seccon2014 オンライン予選(英語) write-up
201412 seccon2014 オンライン予選(英語) write-up恵寿 東
 
Basics
BasicsBasics
Var and Ops quiz
Var and Ops quizVar and Ops quiz
Var and Ops quiz
"Filniño Edmar Ambos"
 
Advanced modulinos
Advanced modulinosAdvanced modulinos
Advanced modulinosbrian d foy
 
Angular 2.0 Pipes
Angular 2.0 PipesAngular 2.0 Pipes
Angular 2.0 Pipes
Eyal Vardi
 
Mac OS X Lion で作る WordPress local 環境
Mac OS X Lion で作る WordPress local 環境Mac OS X Lion で作る WordPress local 環境
Mac OS X Lion で作る WordPress local 環境
Yuriko IKEDA
 
An Introduction to Scala JS
An Introduction to Scala JSAn Introduction to Scala JS
An Introduction to Scala JS
Knoldus Inc.
 
DDC Demo
DDC DemoDDC Demo

What's hot (20)

Linux basic1&2
Linux basic1&2Linux basic1&2
Linux basic1&2
 
clonehd01
clonehd01clonehd01
clonehd01
 
Solr & Lucene at Etsy
Solr & Lucene at EtsySolr & Lucene at Etsy
Solr & Lucene at Etsy
 
Solr and Lucene at Etsy - By Gregg Donovan
Solr and Lucene at Etsy - By Gregg DonovanSolr and Lucene at Etsy - By Gregg Donovan
Solr and Lucene at Etsy - By Gregg Donovan
 
JavaSE7 Launch Event: Java7xGroovy
JavaSE7 Launch Event: Java7xGroovyJavaSE7 Launch Event: Java7xGroovy
JavaSE7 Launch Event: Java7xGroovy
 
Bag of tricks
Bag of tricksBag of tricks
Bag of tricks
 
Swift Study #7
Swift Study #7Swift Study #7
Swift Study #7
 
SSH I/O Streaming via Redis-based Persistent Message Queue -Mani Tadayon
 SSH I/O Streaming via Redis-based Persistent Message Queue -Mani Tadayon SSH I/O Streaming via Redis-based Persistent Message Queue -Mani Tadayon
SSH I/O Streaming via Redis-based Persistent Message Queue -Mani Tadayon
 
Perl Bag of Tricks - Baltimore Perl mongers
Perl Bag of Tricks  -  Baltimore Perl mongersPerl Bag of Tricks  -  Baltimore Perl mongers
Perl Bag of Tricks - Baltimore Perl mongers
 
Parsing JSON with a single regex
Parsing JSON with a single regexParsing JSON with a single regex
Parsing JSON with a single regex
 
201412 seccon2014 オンライン予選(英語) write-up
201412 seccon2014 オンライン予選(英語) write-up201412 seccon2014 オンライン予選(英語) write-up
201412 seccon2014 オンライン予選(英語) write-up
 
Basics
BasicsBasics
Basics
 
123
123123
123
 
Var and Ops quiz
Var and Ops quizVar and Ops quiz
Var and Ops quiz
 
Advanced modulinos
Advanced modulinosAdvanced modulinos
Advanced modulinos
 
Angular 2.0 Pipes
Angular 2.0 PipesAngular 2.0 Pipes
Angular 2.0 Pipes
 
PHP pod mikroskopom
PHP pod mikroskopomPHP pod mikroskopom
PHP pod mikroskopom
 
Mac OS X Lion で作る WordPress local 環境
Mac OS X Lion で作る WordPress local 環境Mac OS X Lion で作る WordPress local 環境
Mac OS X Lion で作る WordPress local 環境
 
An Introduction to Scala JS
An Introduction to Scala JSAn Introduction to Scala JS
An Introduction to Scala JS
 
DDC Demo
DDC DemoDDC Demo
DDC Demo
 

Viewers also liked

Tutorial Instalisasi Oracle 10g dan Setting User
Tutorial Instalisasi Oracle 10g dan Setting UserTutorial Instalisasi Oracle 10g dan Setting User
Tutorial Instalisasi Oracle 10g dan Setting User
Imam Halim Mursyidin
 
Intro to Application Express
Intro to Application ExpressIntro to Application Express
Intro to Application Express
José Angel Ibarra Espinosa
 
Step By Step How To Install Oracle XE
Step By Step How To Install Oracle XEStep By Step How To Install Oracle XE
Step By Step How To Install Oracle XE
Achmad Solichin
 
IBM Informix Database SQL Set operators and ANSI Hash Join
IBM Informix Database SQL Set operators and ANSI Hash JoinIBM Informix Database SQL Set operators and ANSI Hash Join
IBM Informix Database SQL Set operators and ANSI Hash Join
Ajay Gupte
 
Oracle intro to designer abridged
Oracle intro to designer abridgedOracle intro to designer abridged
Oracle intro to designer abridgedFITSFSd
 
Sql server ___________ (advance sql)
Sql server  ___________  (advance sql)Sql server  ___________  (advance sql)
Sql server ___________ (advance sql)
Ehtisham Ali
 
Time-Based Blind SQL Injection using Heavy Queries
Time-Based Blind SQL Injection using Heavy QueriesTime-Based Blind SQL Injection using Heavy Queries
Time-Based Blind SQL Injection using Heavy Queries
Chema Alonso
 
Oracle database introduction
Oracle database introductionOracle database introduction
Oracle database introduction
Mohammad Javad Beheshtian
 
Managing Oracle Streams Using Enterprise Manager Grid Control
Managing Oracle Streams Using Enterprise Manager Grid ControlManaging Oracle Streams Using Enterprise Manager Grid Control
Managing Oracle Streams Using Enterprise Manager Grid Control
scottb411
 
T sql語法之 cte 20140214
T sql語法之 cte 20140214T sql語法之 cte 20140214
T sql語法之 cte 20140214LearningTech
 
Oracle dba trainining in hyderabad
Oracle dba trainining in hyderabadOracle dba trainining in hyderabad
Oracle dba trainining in hyderabad
sreehari orienit
 
Oracle: Joins
Oracle: JoinsOracle: Joins
Oracle: Joins
oracle content
 
Oracle 10g Installation
Oracle 10g InstallationOracle 10g Installation
Oracle 10g Installation
sasidharreddilingala
 
Advanced sql
Advanced sqlAdvanced sql
Advanced sql
Dhani Ahmad
 
Advanced Sql Training
Advanced Sql TrainingAdvanced Sql Training
Advanced Sql Training
bixxman
 
SQL Data Manipulation
SQL Data ManipulationSQL Data Manipulation
SQL Data Manipulation
khalid alkhafagi
 
Oracle Essentials Oracle Database 11g
Oracle Essentials   Oracle Database 11gOracle Essentials   Oracle Database 11g
Oracle Essentials Oracle Database 11g
Paola Andrea Gonzalez Montoya
 
Sql joins
Sql joinsSql joins
Sql joins
Gaurav Dhanwant
 

Viewers also liked (20)

Tutorial Instalisasi Oracle 10g dan Setting User
Tutorial Instalisasi Oracle 10g dan Setting UserTutorial Instalisasi Oracle 10g dan Setting User
Tutorial Instalisasi Oracle 10g dan Setting User
 
Intro to Application Express
Intro to Application ExpressIntro to Application Express
Intro to Application Express
 
Step By Step How To Install Oracle XE
Step By Step How To Install Oracle XEStep By Step How To Install Oracle XE
Step By Step How To Install Oracle XE
 
IBM Informix Database SQL Set operators and ANSI Hash Join
IBM Informix Database SQL Set operators and ANSI Hash JoinIBM Informix Database SQL Set operators and ANSI Hash Join
IBM Informix Database SQL Set operators and ANSI Hash Join
 
Oracle intro to designer abridged
Oracle intro to designer abridgedOracle intro to designer abridged
Oracle intro to designer abridged
 
Sql server ___________ (advance sql)
Sql server  ___________  (advance sql)Sql server  ___________  (advance sql)
Sql server ___________ (advance sql)
 
Time-Based Blind SQL Injection using Heavy Queries
Time-Based Blind SQL Injection using Heavy QueriesTime-Based Blind SQL Injection using Heavy Queries
Time-Based Blind SQL Injection using Heavy Queries
 
Oracle database introduction
Oracle database introductionOracle database introduction
Oracle database introduction
 
Managing Oracle Streams Using Enterprise Manager Grid Control
Managing Oracle Streams Using Enterprise Manager Grid ControlManaging Oracle Streams Using Enterprise Manager Grid Control
Managing Oracle Streams Using Enterprise Manager Grid Control
 
T sql語法之 cte 20140214
T sql語法之 cte 20140214T sql語法之 cte 20140214
T sql語法之 cte 20140214
 
Transaction
TransactionTransaction
Transaction
 
Oracle dba trainining in hyderabad
Oracle dba trainining in hyderabadOracle dba trainining in hyderabad
Oracle dba trainining in hyderabad
 
Oracle: Joins
Oracle: JoinsOracle: Joins
Oracle: Joins
 
Oracle 10g Installation
Oracle 10g InstallationOracle 10g Installation
Oracle 10g Installation
 
SQL
SQLSQL
SQL
 
Advanced sql
Advanced sqlAdvanced sql
Advanced sql
 
Advanced Sql Training
Advanced Sql TrainingAdvanced Sql Training
Advanced Sql Training
 
SQL Data Manipulation
SQL Data ManipulationSQL Data Manipulation
SQL Data Manipulation
 
Oracle Essentials Oracle Database 11g
Oracle Essentials   Oracle Database 11gOracle Essentials   Oracle Database 11g
Oracle Essentials Oracle Database 11g
 
Sql joins
Sql joinsSql joins
Sql joins
 

Similar to Intro oracle10gexpress

Ruby MVC from scratch with Rack
Ruby MVC from scratch with RackRuby MVC from scratch with Rack
Ruby MVC from scratch with Rack
DonSchado
 
R for Pirates. ESCCONF October 27, 2011
R for Pirates. ESCCONF October 27, 2011R for Pirates. ESCCONF October 27, 2011
R for Pirates. ESCCONF October 27, 2011
Mandi Walls
 
Modern C++
Modern C++Modern C++
Modern C++
Michael Clark
 
Shrug2017 arcpy data_and_you
Shrug2017 arcpy data_and_youShrug2017 arcpy data_and_you
Shrug2017 arcpy data_and_you
SHRUG GIS
 
MySQL Database System Hiep Dinh
MySQL Database System Hiep DinhMySQL Database System Hiep Dinh
MySQL Database System Hiep Dinhwebhostingguy
 
Azure sql insert perf
Azure sql insert perfAzure sql insert perf
Azure sql insert perf
Mornè Blake
 
NYC* 2013 - "Advanced Data Processing: Beyond Queries and Slices"
NYC* 2013 - "Advanced Data Processing: Beyond Queries and Slices"NYC* 2013 - "Advanced Data Processing: Beyond Queries and Slices"
NYC* 2013 - "Advanced Data Processing: Beyond Queries and Slices"
DataStax Academy
 
Intravert Server side processing for Cassandra
Intravert Server side processing for CassandraIntravert Server side processing for Cassandra
Intravert Server side processing for Cassandra
Edward Capriolo
 
Real data models of silicon valley
Real data models of silicon valleyReal data models of silicon valley
Real data models of silicon valley
Patrick McFadin
 
Play!ng with scala
Play!ng with scalaPlay!ng with scala
Play!ng with scala
Siarzh Miadzvedzeu
 
The Ring programming language version 1.7 book - Part 44 of 196
The Ring programming language version 1.7 book - Part 44 of 196The Ring programming language version 1.7 book - Part 44 of 196
The Ring programming language version 1.7 book - Part 44 of 196
Mahmoud Samir Fayed
 
Cassandra Summit 2014: Real Data Models of Silicon Valley
Cassandra Summit 2014: Real Data Models of Silicon ValleyCassandra Summit 2014: Real Data Models of Silicon Valley
Cassandra Summit 2014: Real Data Models of Silicon Valley
DataStax Academy
 
Building Ruby on Rails apps on Windows Azure (MIX 2010 at Last Vegas))
Building Ruby on Rails apps on Windows Azure (MIX 2010 at Last Vegas))Building Ruby on Rails apps on Windows Azure (MIX 2010 at Last Vegas))
Building Ruby on Rails apps on Windows Azure (MIX 2010 at Last Vegas))Sriram Krishnan
 

Similar to Intro oracle10gexpress (20)

Ruby MVC from scratch with Rack
Ruby MVC from scratch with RackRuby MVC from scratch with Rack
Ruby MVC from scratch with Rack
 
MySql slides (ppt)
MySql slides (ppt)MySql slides (ppt)
MySql slides (ppt)
 
R for Pirates. ESCCONF October 27, 2011
R for Pirates. ESCCONF October 27, 2011R for Pirates. ESCCONF October 27, 2011
R for Pirates. ESCCONF October 27, 2011
 
Modern C++
Modern C++Modern C++
Modern C++
 
Mysql rab2-student
Mysql rab2-studentMysql rab2-student
Mysql rab2-student
 
Mysql rab2-student
Mysql rab2-studentMysql rab2-student
Mysql rab2-student
 
Shrug2017 arcpy data_and_you
Shrug2017 arcpy data_and_youShrug2017 arcpy data_and_you
Shrug2017 arcpy data_and_you
 
Tabledown
TabledownTabledown
Tabledown
 
MySQL Database System Hiep Dinh
MySQL Database System Hiep DinhMySQL Database System Hiep Dinh
MySQL Database System Hiep Dinh
 
mysqlHiep.ppt
mysqlHiep.pptmysqlHiep.ppt
mysqlHiep.ppt
 
Azure sql insert perf
Azure sql insert perfAzure sql insert perf
Azure sql insert perf
 
Introduction to Node.js
Introduction to Node.jsIntroduction to Node.js
Introduction to Node.js
 
NYC* 2013 - "Advanced Data Processing: Beyond Queries and Slices"
NYC* 2013 - "Advanced Data Processing: Beyond Queries and Slices"NYC* 2013 - "Advanced Data Processing: Beyond Queries and Slices"
NYC* 2013 - "Advanced Data Processing: Beyond Queries and Slices"
 
Intravert Server side processing for Cassandra
Intravert Server side processing for CassandraIntravert Server side processing for Cassandra
Intravert Server side processing for Cassandra
 
Real data models of silicon valley
Real data models of silicon valleyReal data models of silicon valley
Real data models of silicon valley
 
Play!ng with scala
Play!ng with scalaPlay!ng with scala
Play!ng with scala
 
Pdxpugday2010 pg90
Pdxpugday2010 pg90Pdxpugday2010 pg90
Pdxpugday2010 pg90
 
The Ring programming language version 1.7 book - Part 44 of 196
The Ring programming language version 1.7 book - Part 44 of 196The Ring programming language version 1.7 book - Part 44 of 196
The Ring programming language version 1.7 book - Part 44 of 196
 
Cassandra Summit 2014: Real Data Models of Silicon Valley
Cassandra Summit 2014: Real Data Models of Silicon ValleyCassandra Summit 2014: Real Data Models of Silicon Valley
Cassandra Summit 2014: Real Data Models of Silicon Valley
 
Building Ruby on Rails apps on Windows Azure (MIX 2010 at Last Vegas))
Building Ruby on Rails apps on Windows Azure (MIX 2010 at Last Vegas))Building Ruby on Rails apps on Windows Azure (MIX 2010 at Last Vegas))
Building Ruby on Rails apps on Windows Azure (MIX 2010 at Last Vegas))
 

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