Project Name/Case Study: Second Year Practical Training Seminar Report
Project Name/Case Study: Second Year Practical Training Seminar Report
By
MOHIT PANDEY
(PIET17CS064)
By
Mohit Pandey
(PIET17CS064)
i
RAJASTHAN TECHNICAL UNIVERSITY
CERTIFICAT
E
This is to certify that Final Year Practical Training Seminar Report entitled
“PROJECT NAME” has been submitted by “Student Name (Registration No.), XYZ
(CE/11/001)” for partial fulfilment of the Degree of Bachelor of Technology of
Rajasthan Technical University. It is found satisfactory and approved for
submission.
Date:
<Date>
PIET, Jaipur
ii
Company Certificate to be attached
iii
DECLARATION
I hereby declare that the seminar report entitled “Project Name(in capital)" was
carried out and written by me under the guidance of Mr. Krutibash Nayak and Ms.
Sneha sharma, Assistant Professor, Department of Computer Engineering,
Poornima Institute of Engineering & Technology,Jaipur. This work has not been
previously formed the basis for the award of any degree or diploma or certificate nor
has been submitted elsewhere for the award of any degree or diploma.
iv
Annexure 5.5: Second Year Practical Training Seminar Report Format (Acknowledgement –
Sample)
ACKNOWLEDGEMEN
T
A project of such a vast coverage cannot be realized without help from numerous sources
and people in the organization. I am thankful to Mr. Shashikant Singhi,
C h a i r m a n , PGC and Dr. Dinesh Goyal, Director, PIET for providing me a
platform to carry out such a training successfully.
I am also very grateful to Mr. Deepak Moud (HOD,CE) for his kind support.
I would like to take this opportunity to show my gratitude towards Dr. Megha
Gupta & Prof (Dr) Rekha Jain (Coordinator, PTS) who helped me in successful
completion of my Second Year Practical Training. They have guided, motivated & were
source of inspiration for me to carry out the necessary proceedings for the training to be
completed successfully.
I am thankful to<Domain Expert> for his/her kind support and providing me expertise
of the domain to develop the project.
I would also like to express my hearts felt appreciation to all of my friends whose direct
or indirect suggestions help me to develop this project [and to entire team members for
their valuable suggestions.
Lastly, thanks to all faculty members of Computer Engineering department for their moral
support and guidance.
Submitted
by:
Student
Name:
v
Annexure 5.6: Second Year Practical Training Seminar Report Format (Abstract – Sample)
ABSTRACT
Subject Descriptors:
8 CS 1 Distributed Systems
6 CS 4 Web Technology
5 CS 4 Database Management Systems
4 CS 3 Software Engineering
Keywords:
Distributed databases, micro-mainframe link
6
Chapter 1
Introduction to ORACLE
Since the IT field deals with the advanced technologies, this certification offers countless
opportunities for promotion. DBA is also responsible for baking up systems in case of power
outage and other hazards. Also, it ensures the integrity of the database, confirming that the
data stored comes from reliable sources.
Oracle certification course guarantees a series of high-grade rewarding projects that will
work towards the improvement of your skills. Being one of the best certifications, it should
always be a priority as it will help secure one of the best jobs in the future.
Besides validating your professional and technical expertise, it has been found that Oracle
DBA certification proves more useful regarding verification. It showcases your hard work
for achieving expertise and each badge offer validation of particular skills that you have
achieved.
Thus, pursuing an Oracle DBA certification course will only add to the assets and promise
a better future.
7
1.2 COMPANY PROFILE-
Company Name-TechieNest pvt. ltd.
TechieNest is a certified ISO 9001:2008, technology service provider and training organization.
The soul mission of founders is to facilitate the education, research and development program;
all under one roof. In a very short span of time our team has successfully delivered the impactful
service to more than 350 colleges, including the most prestigious institutions of India, such as
IIT Mumbai, IIT Delhi and all the NITs. All over the India, with our 6 centers, we are renowned
for our own manufacturing unit and unique content. TechieNest is moving ahead with an
ideology where practical and theory are equally emphasized. In the vast growing ‘Technical Era’
we are rising with a mission to expand the set boundaries of the ‘techie-brains’ to Explore,
Invent and Innovate!
8
Chapter 2
Technology specification
2.1 LANGUAGE LEARNED-
Structured Query language (SQL) pronounced as "S-Q-L" or sometimes as "See-Quel"is
actually the standard language for dealing with Relational Databases.
SQL programming can be effectively used to insert, search, update, delete database records.
In fact it can do lot of things including, but not limited to, optimizing and maintenance of
databases.
The database contains user data, metadata, and control structures. Metadata, or data
about the data, is the collection of information on disk that permits Oracle software to
manage user data. An example of metadata is the data dictionary. Control structures (such
as the control file and online redo log files) ensure the integrity, availability, and
recoverability of user data.
Server processes parse and execute SQL statements, and retrieve and return results to the
user or application
9
Chapter 3
3.1.1 DATABASE
A database management system (DBMS) is a computer software application that interacts with the user,
other applications, and the database itself to capture and analyze data. A general-purpose DBMS is
designed to allow the definition, creation, querying, update, and administration of databases. Well-known
DBMSs include MySQL, Microsoft SQL Server, Oracle, Sybase, SAP HANA, and IBM DB2. A database
is not generally portable across different DBMSs, but different DBMS can interoperate by
using standards such as SQL and ODBC or JDBC to allow a single application to work with more than
one DBMS.
10
Figure: 1
11
3.2.2 RESPONSIBILITY OF DBA
Creates and maintains all databases required for development, testing, education and
production usage.
Computer often have applications or tools on them in addition to the Oracle Databases.
Performs ongoing tuning of the database instances.
Plans and implements backup and recovery of the Oracle database.
Controls migrations of programs, database changes, reference data changes and menu
changes through the development life cycle.
Implements and enforces security for all of the Oracle Databases.
Administers all database objects, including tables, clusters, indexes, views, sequences,
packages and procedures.
Troubleshoots with problems regarding the databases, applications and development
tools.
Create new database users as required.
Manage sharing of resources amongst applications.
The DBA has ultimate responsibility for the physical database design.
12
A good knowledge of Oracle security management.
A good knowledge of how Oracle acquires and manages resources.
Sound knowledge of the applications at your site.
Experience and knowledge in migrating code, database changes, and data through the
various stages of the development life cycle.
A good knowledge of the way Oracle enforces data integrity.
There is some steps that we have to perform on Linux before installing oracle database on Linux. And
these are as follows as:-
#groupadd oinstall
#groupadd dba
Useradd:- It is used to create new with oracle name as well with some priorities.
#mkdir –p /u01/app/oracle
13
#chown –R oracle:oinstall /u01/app/oracle
#chmod –R 775 /u01/app/oracle
#mkdir –p /u01/app/oracle/product/11.2.0/db_home
#chown –R oracle:oinstall /u01/app/ oracle/product/11.2.0/db_home
#chmod –R 775 /u01/app/ oracle/product/11.2.0/db_home
1. Open kernel parameter file via vi editor and following parameter into this file
#vi /etc/sysctl.conf
2. Use below command to check kernel parameters are right or wrong
#sysctl -p
14
Figure: 2
1. Open shall limits file via vi editor and following parameter into this file
#vi /etc/security/limits.conf
Figure: 3
Configuration of .bash_profile :-
1. Open .bash_profile via vi editor in oracle user and following parameter into this file
#su – oracle (This command is used to switch user from root to oracle)
15
#vi .bash_profile
Add parameter
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_home
export PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin
Figure: 4
16
3.4 INSTALLATION OF ORACLE DATABASE
./runInstaller.sh
2. The product you want to install is Oracle Database 11g. Make sure the product is
selected and click Next.
3. You will perform a basic installation with a starter database. Enter prod for the Global
Database Name and oracle for Database Password and Confirm Password. Then,
click Next.
4. You need to specify your Inventory directory. The location should be set
to /u01/app/oracle/oraInventory. Accept the default Operating System group
name, oinstall. Then, click Next.
5. The installer now verifies that the system meets all the minimum requirements for
installing and configuring the chosen product. Please correct any reported errors before
continuing. When the check successfully completes, click Next.
6. Oracle Configuration Manager allows you to associate your configuration information
with your Metalink account. You can choose to enable it on this window. Then,
click Next.
7. Review the Summary window to verify what is to be installed. Then, click Install.
8. The progress window appears.
9. The Configuration Assistants window appears.
10. Your database is now being created.
11. You need to execute orainstRoot.sh and root.sh as the root user.
12. Open a terminal window and enter the following commands. Follow the prompts as
instructed.
17
#su – root
SQL stands for ‘Structure query language. By which we can perform any change in our database.
Every changes will perform in database by using SQL queries. Basically SQL commands further
divide into four parts which are as follows:-
1. Select:- This command is simply used to access the data by following method.
Syntax:
select column name from objectname;
18
3. Delete:- This command is used delete data from any object.
Syntax:
Delete from tablename where column name=’data’;
DDL commands are used to modify the structure of object like size of datatype ,name of
column name etc . DDL commands are as follows:-
1. Create:- this command is use to create new table with specify column name.
Syntax:-
Create table tablename (columnname datatype(size)………);
3. Truncate:-this command is used to delete whole data of table and also release the space.
Syntax:-
Truncate table tablename;
19
TCL commands are used to save the data and used rollback data. This can be done by
following command:-
Note:- DML commands are commited command and DDL commands are auto-commited
commands.
DCL commands are used to provide and revoke the permission to any user or from any user.
This can be done by following commands:-
3.5.5 CONSTRAINT:-
Constraints are usually created at the same time as the table. Constraints can be added to a table
after its creation and also temporarily disabled.
20
Constraints can be defined at one of two levels.
Table References one or more columns and is defined separately from the
definitions of the columns in the table; can define any constraints
except NOT NULL
Syntax:
In the syntax:
21
The NOT NULL constraint ensures that the column contains no
null values. Columns without the NOT NULL constraint can contain null values by default.
22
The CHECK constraint defines a condition that each row must
satisfy. The condition can use the same constructs as query conditions, with the following
exceptions:
An Oracle database is a collection of data treated as a unit. The purpose of a database is to store
and retrieve related information. A database server is the key to solving the problems of
information management. In general, a server reliably manages a large amount of data in a
multiuser environment so that many users can concurrently access the same data. All this is
accomplished while delivering high performance. A database server also prevents unauthorized
access and provides efficient solutions for failure recovery.
Basically ORACLE – SERVER is a combination of instance and physical storage area. It has
three main component as a computer has. These are as follows:-
23
Figure: 5
3.6.1 INSTANCE:-
3.6.2 ORACLE-SERVER:-
It is basically a combination of instance and storage area. Whenever we are going to start
database using startup command. That time instance of database is create then oracle server
make link with storage area. The Oracle server extends the data modeling capabilities to support
24
an object relational database model that brings object-oriented programming, complex data
types, complex business objects, and full compatibility with the relational world. It includes
several features for improved performance and functionality of online transaction processing
(OLTP) applications, such as better sharing of run-time data structures, larger buffer caches, and
deferrable constraints. Data warehouse applications will benefit from enhancements such as
parallel execution of insert, update, and delete operations; partitioning; and parallel-aware query
optimization. Operating within the Network Computing Architecture (NCA) framework,
Oracle9i supports client-server and Web-based applications that are distributed and multitier.
25
– Redo entries reflect changes made to the database
o Redo entries take up contiguous, sequential space in the buffer
o Data stored in the redo log buffer is periodically written to the online redo log
files
o Size is managed by the parameter LOG_BUFFER
– Default is 4 times the maximum data block size for the operating system
3. Shared pool :
o Consists of multiple smaller memory areas
– Library cache
Shared SQL area
Contains parsed SQL and execution plans for statements
already run against the database
– Procedure and package storage
o Dictionary cache
– Names and datatypes of columns in the database tables
– Privileges of all users
– Names of all tables and views in the database
o Managed via an LRU algorithm
o Size determined by the parameter SHARED_POOL_SIZE
Figure: 6
26
3.7.2 PROGRAMMABLE GLOBAL AREA (PGA)
o Used for a single process (in upward version of oracle it holds multiple process info.)
o Not shareable with other processes
o Writable only by the server process
o Allocated when a process is created and deallocated when a process is terminated
o Contains:
Sort area – Used for any sorts required by SQL processing
Session information – Includes user privileges
Cursor state – Indicates stage of SQL processing
Stack space – Contains session variable
In Oracle-Server there is six mandatory process on which oracle-server runs. And these process
are as follows:-
27
DBWR cannot write out ‘dirty’ buffers before they have been written to
the online redo log files.
2. LGWR(Log writer):
o Writes contents of redo log buffers to online redo log files
o Primary job is to keep the redo log buffer ‘clean’
o Writes out redo log buffer blocks sequentially to the redo log files
o May write multiple redo entries per write during high utilization periods
o Mandatory process
LGWR writes to disk when:
– A transaction is COMMITED
– A timeout occurs (3 sec)
– The redo log buffer is 1/3 full
– There is more than 1 megabyte of redo entries
– Before DBWR writes out ‘dirty’ blocks to datafiles
3. SMON :
o Performs automatic instance recovery
o Reclaims space used by temporary segments no longer in use
o Merges contiguous areas of free space in the datafiles (if PCTINCREASE > 0)
o SMON ‘wakes up’ regularly to check whether it is needed or it may be called
directly Mandatory process
o SMON recovers transactions marked as DEAD within the instance during
instance recovery
o All non-committed work will be rolled back by SMON in the event of
server failure
o SMON makes multiple passes through DEAD transactions and only
applies a specified number of undo records per pass, this prevents short
transactions having to wait for long transactions to recover
o SMON primarily cleans up server-side failures
28
4. PMON:
o Detects both user and server aborted database processes
o Automatically resolves aborted processes
o PMON rolls back the current transaction of the aborted process
o Releases resources used by the process
o If the process is a background process the instance most likely cannot continue
and will be shut down
o PMON primarily cleans up client-side failures
5. CKPT:
o Forces all modified data in the SGA to be written to datafile
o Occurs whether or not the data has been committed
o CKPT does not actually write out buffer data only DBWR can write to the
datafiles
o Updates the datafile headers.
Oracle-server is going start that time oracle first of all read the parameter file. Parameter file
contains whole information about database, memory etc. Without parameter file database can
never be start. For that industry always make many backup of parameter file. Parameter file
contains following information:-
29
5. archive file destination
1. PFILE :-
o By default database start with pfile in older version of oracle 9i (exclude).
o It is completely in text format.
o Parameter of pfile can be change simply open file by pfile and add parameter into
it.
o Whenever changes occur in pfile then database must be restart for getting
changes.
2. SPFILE :-
o By default database start with pfile in newer version of oracle after 8i (exclude).
o It is partially in text and binary format.
o Parameter of SPfile can be change using command.
o Whenever changes occur in SPfile then database must not be restart for getting
changes.
3.9.2 TABLESPCE
A database is divided into logical storage units called tablespaces, which group related logical
structures together. For example, tablespaces commonly group together all application objects to
simplify some administrative operations.
Each database is logically divided into one or more tablespaces. One or more datafiles are
explicitly created for each tablespace to physically store the data of all logical structures in a
tablespace. The combined size of the datafiles in a tablespace is the total storage capacity of the
tablespace.
30
Figure: 7
3.9.3 DATAFILES
Every Oracle database has one or more physical datafiles. The datafiles contain all the database
data. The data of logical database structures, such as tables and indexes, is physically stored in
the datafiles allocated for a database.
Data in a datafile is read, as needed, during normal database operation and stored in the memory
cache of Oracle. For example, assume that a user wants to access some data in a table of a
database. If the requested information is not already in the memory cache for the database, then it
is read from the appropriate datafiles and stored in memory.
31
To check location of datafile :
Figure: 8
Every Oracle database has a set of two or more redo log files. The set of redo log files is
collectively known as the redo log for the database. The primary function of the redo log is to
record all changes made to data. If a failure prevents modified data from being permanently
written to the datafiles, then the changes can be obtained from the redo log, so work is never lost.
32
Figure: 9
You can enable automatic archiving of the redo log. Oracle automatically archives log files when
the database is in ARCHIVE mode.
Sql command to check log list and enable or disable Archive log :-
Figure: 10
Every Oracle database has a control file. A control file contains entries that specify the physical
structure of the database. For example, it contains the following information:
Database name
Names and locations of datafiles and redo log files
Time stamp of database creation
33
To check all Control file:
Figure: 11
34
4. Copy new controlfile using exiting controlfile on provide above location by cp command.
5. Start database.
Figure: 12
We perform recovery operation when our controlfile corrupt during the database is running.
Then we perform following operations:-
35
3.11 CONCLUSION
During the industrial training I have learn about oracle database, roles and responsibility of DBA
in any company like user management, memory management, backup, restore and it’s recovery
when database is running and learn deadlock situation when it will occur and how to resolve the
deadlock situation. And also learned about client-server management which means connectivity
between number of client to number of server where actual database is present and how to access
the data from server and store in own database.
36
3.12 REFERENCES
There are some references from we can get information about oracle and it’s product. These are
as follows:-
www.oracle.com
www.tutorialspoint.com
www.stackoverflow.com
www.javatpoint.com
37