This web page contains survival notes on Oracle. As I get a chance I will place my survival notes here.
Resources
Download & Install Oracle
Example: Oracle 12c for Windows 64bit -
as of 4/22/2014
Note: I didn't see an XE version for 12c.
Windows Services:
My Notes
Terms
Topic | Notes | |||||||||
Oracle SQL Plus |
Connect to a DB: connect <username>/<pswd> @<DBName or Connect Identifier> |
|||||||||
TAB Table | TAB Table
|
|||||||||
List Tables in a Database | List Tables in Database
|
|||||||||
List Structure | List the Structure of a
Table
For Oracle: (desc TAB;)
|
|||||||||
Operators | Operators
|
|||||||||
Comment |
|
|||||||||
Tables | Tables
|
|||||||||
Temporary Tables | Temp
Tables
|
|||||||||
Date | Dates
|
|||||||||
Functions | Functions
|
|||||||||
Oracle DB Tools - Oracle 12c |
Start All Programs Find Directory: Oracle - OraDB12Home1 Application Development * Oracle ODBC Help * Oracle Provider for OLE DB Readme * SQL Developer * SQL Plus Configuration and Migration Tools *Administration Assistant for Windows * Database Configuration Assistant * Database Migration Assistant for Unicode * Database Upgrade Assistant * Locale Builder * Microsoft ODBC Administrator * Net Configuration Assistant * Net Manager * Update Password for Oracle Home User Integrated Management Tools * Wallet Manager Oracle Installation Products * Universal Installer |
|||||||||
How to Create A DB - Oracle 12c |
Launch the "Database Configuration Assistant" Start, search for: Database Configuration Assistant Launch Select: Create Database Click Next Screen: Creation Mode Select the default: Create a database with default configuration Keep the defaults and add: * Global Database Name: demo * Administrative Password: <enter your pswd> * "<Oracle Home User>": <enter your Oracle home user pswd> * Check - Create as Container Database * Pluggable Database Name: pdbdemo Click Next Click Finish Screen: Progress Page WARNING - wait for up to 5 min for progress bar to start and the screen to be populated so be patient and do not click the button "Close". Also, it may take up to 30 min to create the DB. Click "Password Management" button to set the passwords for the users: sys system Take note of the values on the screen. Once the completion bar is 100% then you are finished. Click "exit". You are finished. |
|||||||||
Containers & Pluggable DBs - Oracle 12c |
Terms: CDB - Container DB PDB - Pluggable DB - multi-tenancy alter session set container = <con_name
- container name> YouTube resources * http://www.youtube.com/watch?v=KKi37EIQ5-8
|
|||||||||
dual - testing selects with dual. |
select sysdate from dual; results: 26-MAY-14
|
|||||||||
group by |
group by - see SQL examples --
****************************************** |
|||||||||