Académique Documents
Professionnel Documents
Culture Documents
Streams
goto asmcmd
no users can make changes in other areas to which they dont have privliges to.
nohup can be used to run any process in the background immediately and works only
for a single time by one command
crontab can also be used to run processes in the background but it is generally
used to schedule single or multiple jobs at different timings / days
6)
7) List down the steps to rename a datafile in oracle database 11g
first, you have to bring down the corresponding tablespace by alter tablespace name
offline;
then you can goto OS level and goto the directory where datafile exists and then
rename the file by mv command
goto SQL prompt again and give command as alter tablespace name rename datafile
'location/oldfile name' to 'locatioin/newfile name'
then alter tablespace name online
9) what is the difference between the incremental and differential RMAN backup:
inremental backup:
Incremental backup is the difference between current work and last backup. It
copies all the files that have chaned since the last backup was made.
irrespective of the last backup whether it is full backup or incremental, it will
copy only the difference.The size of the backup is small.
differential backup:
Differential backup is the difference between current work and last fulll backup.
It goes backwards and searches all the previous backup until the last full backup
and then
does the current backup. In this case the size of the backup is very big becasue
the data is being duplicated.
10) What is the difference between expire and obsolete, validate and cross check
Obsolete backup is the backup that we have in our system that is older than Rman
backup retention policy. To check Rman retention policy and current backup use
following commands
to check obsolete backup please use "crosscheck backup" command then run "delete
obsolete"
delete obsolete removes alll the obsoleted physical files from the drive
backup entries are removed from rman catalog
11)
12) what is the difference between pfile and spfile.
The pfile is text based file and can be edited in an editor like vi.
Changes made to pfile would take effect when the database is restarted using pifle
The SP file is the binary file that permits changes without restarting the
database but it cannt be changed using any editor. If you dont specify pfile in
your startup
commmand, it will open automaically by using spfile.
13) Describe different stages of oracle database during startup and shutdown
startup nomount (starts the instance, reads pfile or spfile, creates SGA)
startup mount (reads control file that contains the data file location
and names)
startup (database is open)
startup restrict (allows restricted users to work like DBAs etc)
startup force (Shuts and restarts the DB)
shutdown (waits for all users to finish their work, stops new connections,
then closes the DB)
shut immediate (Cancels current connections and shuts the DB)
shut abort (Shuts the DB immmediately, sometimes needs recovery on next
startup).
Install Linux
As root, create Groups and users like oinstall, dba, asmdba etc and grid and oracle
Do this on each node
Set passwords for all users
add entries for public, private IPs and hostnames to etc/hosts
check kernel parameters on google and change accordingly on each node in sysctl
create all the directories for grid and oracle installation oracle base, grid base,
oracle home & grid home)
download required RPMs and install thru yum
copy grid software to a directory and unzip
change permissions and ownerships for the directories
start ./runinstaller and install the grid (choose all nodes, create passwordless
connectivity thtu ssh duing installation)
Before start applying the patch, check thru opatch lsinventory if that patch is
already applied
download patch and unzip to a directory
open readme
follow the pre-patch instuctions
apply the patch as stated in the readme file
check all post-patch instructions
finally check status of the patch thru opatch lsinventory