ORACLE11AM Basics
ORACLE11AM Basics
================= ========
- In IT field we are interacting two types of applications those are,
1. Front End Applications
2. Back End Applications
Server:
======
- The role of server is taking request from a client,processing a request
and response to a client application.
Ex: Java(jsp),.Net(asp.net),....etc
What is Oracle?
=============
- it is a DB software / a Backend tool / a RDBMS product / a ORDBMS(module).
What is Data ?
============
- it is a rawfact(i.e numbers,characters,symbols and special char's).
- data never give any meaningfull statements.
Ex:
1001 is data SMITH is data
1002 is data MILLER is data
1003 is data WARNER is data
What is Information?
==================
- processing data is called as "Information".
- information is always give meaningfull statements.
What is Database ?
===============
- it is a collection of inter-related data / information.
Ex:
Inter-related data / information
==========================
no customers = no products
no products = no customers
no employees = no departments
no departments = no employees
Types of Databases?
==================
- there two types of databases in realtime.
1. OLTP(online transaction processing)
2. OLAP(online analytical processing)
1. OLTP:
=======
- these databases are used for storing "day-to-day" transactional
information.
Ex: oracle,sqlserver,mysql,db2,postgresql,......etc
2. OLAP:
========
- these databases are used for storing "historical data / information".(i.e
Bigdata)
Ex: datawarehouse
What is DBMS?
=============
- it is a software which is used to manage and mantain data/information
with the database.
- by using DBMS s/w we can perform the following operations are,
> creating database memory
> creating tables
> inserting data
> updating data
> selecting data
> deleting data
- it will act as an interface between user and database.
User <------> DBMS s/w <------> Database
Models of DBMS?
==============
- there are three types of models in DBMS.
i) Hierarchical Database Management System(HDBMS)
Ex: IMS s/w (information management system)
ii) Network Database Management System(NDBMS)
Ex: IDBMS s/w(integrated database management system)
NOTE:
=====
- HDBMS,NDBMS models are outdated in realtime.
iii) Relational Database Management System(RDBMS):
==============================================
- it again two modules those are,
i) Object Relational Database Management System(ORDBMS):
====================================================
- data can be stored in the form of "Table".
a Table : collection of rows & columns.
a Row : group of columns
- a row can be called as "record / tuple / row".
- a column can be called as "attribute / field / columns".
- these databases are completly depends on "SQL"
so that these databases are also called as "SQL Databases".
Ex: Oracle,SQLserver,Mysql,Db2,Postgresql,Sybase,.......etc.
Note:
=====
- if we want to deployee(i.e installation) oracle s/w then we need
a platform.
What is Platform:
==============
- it is a combination of operating system and micro-processor.
i) Platform Dependent:
===================
- it supports only one specific operating system with the
combination of any micro-processor.
Ex: Cobal,Pascal,C,C++.
Note: Oracle is a platform independent product i.e it can install in any operating
system like Windows,Linux,Unix,Mac,Solaries,......etc
i) Client component:
=================
- by using client component / tool we can perform the following 3 operations
are,
ii) Database:
===========
- it is a permanent memory which is allocating by the system
from a ROM(i.e Harddisk).
- data can be stored permanently.
Connect:
========
- when a user want to connect to oracle server we need a database tool
is called as "SQLPlus".
Communicate:
============
- when a user want to communicate with database we need a database
language is known as "SQL".
SQLPLUS vs SQL:
===============
SQLPLUS SQL
======== ====
1. it is a DB tool which was 1. it is DB language which was introduced
introduced by "oracle company". by "IBM".
Solution:
========
> go to services
> go to oracleserviceORCL and click on it
> select startup type : Automatic
> click on start button
> click on ok button
> click on SQLplus
Enter user-name: SYSTEM/TIGER
conneted.
Problem-2:
=========
> Click on SQLplus
Enter user-name: SYSTEM
Enter password: TIGER
ERROR:
ORA-28000: The account is locked.
Solution:
========
> Click on SQLplus
Enter user-name: \sys as sysdba (default username)
Enter password: sys (default password)
connected.
EX:
SQL> ALTER USER SYSTEM ACCOUNT UNLOCK;
User altered.
SQL> CONN
Enter user-name: SYSTEM/TIGER
Connected.
Problem-3:
=========
> Click on SQLplus
Enter user-name: \sys as sysdba (default username)
Enter password: sys (default password)
(or)
> Click on SQLplus
Enter user-name: system (default username)
Enter password: tiger
Solution:
========
- Reinstallation of oracle s/w.
Ex:
> Open SQLplus
Enter user-name: SYSTEM/TIGER
connected.
SQL> CONN
Enter user-name: MYDB11AM/123
ERROR:
ORA-01045: user MYDB11AM lacks CREATE SESSION privilege; logon denied
EX:
SQL> GRANT CONNECT TO MYDB11AM;
Grant succeeded.
SQL> CONN
Enter user-name: MYDB11AM/123
Connected.
SQL> CONN
Enter user-name: MYDB11AM/ABC
Connected.
How to re-create a new password for a user,if we forgot it:
=================================================
syntax:
======
ALTER USER <USERNAME> IDENTIFIED BY <NEW PASSWORD>;
EX:
SQL> CONN
Enter user-name: SYSTEM/TIGER
Connected.
SQL> CONN
Enter user-name: MYDB11AM/MYDB11AM
Connected.
EX:
SQL> CONN
Enter user-name: SYSTEM/TIGER
EX:
SQL> CONN
Enter user-name: SYSTEM/TIGER
Connected.