Pages

Showing posts with label Tutorials. Show all posts
Showing posts with label Tutorials. Show all posts

Friday, June 9, 2017

Export full database using data pump expdp

Create a directory.
  • cd /home/oracle
  • mkdir -p datapump/fullexport
Connect database using SYS user
  • sqlplus / as sysdba
Create a directory object
  • create a directory orcl_full as '/home/oracle/datapump/fullexport';
Grant read, write privileges on directory object and a rule 'datapump_exp_full_database' to hr user
  • grant read,write on directory orcl_full to hr;
  • grant datapump_exp_full_database to hr;


Monday, May 8, 2017

Date-Manipulation Functions

MONTHS_BETWEEN: gives number of months between two dates
ADD_MONTHS: adds calendar months to date
NEXT_DAY: gives next day of the date specified
LAST_DAY: gives last day of the month
ROUND: round date
TRUNC: truncate date


Thursday, March 23, 2017

Change an Oracle database to noarchivelog mode


Here, we will alter our database to no archive log mode.
For this,
  • shutdown our database if it is running
  • take our database to mount mode
  • alter database to noarchivelog
  • open database
  • verify