DBACLASSDBACLASS

  • ORACLE DBA
    • DATABASE
      • ADMINISTRATION
      • PERFORMANCE TUNING
      • DATAGUARD
      • ORACLE SECURITY
      • Backup & Recovery
      • TROUBLESHOOT
      • QUIZ
    • ORACLE RAC
    • ORACLE 12c-20c
    • ORACLE MULTITENANT
    • OEM 12C/13C
    • GOLDENGATE
    • INTERVIEW QA
    • DBA CHEATSHEET
  • DBA SCRIPTS
  • POSTGRES SCRIPTS
  • ANSIBLE
  • R

BACKUP & RECOVERY

Useful flashback related commands

1566 views 1 min , 21 sec read 0

Below are the collection of useful flashback related commands. 1. How to check whether flashback is enabled or not: select flashback_on from v$database; 2. Enable flashback in database: — make sure database is in archivelog mode: alter system set db_recovery_file_dest_size=10G scope=both; alter system set db_recovery_file_dest=’/dumparea/FRA/B2PMT3′ scope=both; alter database flashback on; 3. Disable flashback in database: […]

COMPRESSION in datapump oracle

6881 views 1 min , 51 sec read 2

COMPRESSION parameter is used with EXPDP, to compress the generated dump file. NOTE – For using compression parameter with datapump, we need to have Oracle advance compression license.   COMPRESSION Reduce the size of a dump file. Valid keyword values are: ALL, DATA_ONLY, [METADATA_ONLY] and NONE. In this below demo, we will compare the dump […]

REUSE_DUMPFILES parameter in EXPDP

3119 views Less than a minute 1

If we try to export a dumpfile with the name, which is already present in that directory. then we will get error like ORA-27038: created file already exists ORA-39001: invalid argument value ORA-39000: bad dump file specification ORA-31641: unable to create dump file “/export/home/oracle/dbaclass_estim.dmp“ ORA-27038: created file already exists Additional information: 1 So if the […]

SAMPLE parameter in EXPDP to export subset of data

3045 views Less than a minute 0

Let’s say we have a very big table, and for testing purpose, we need only a subset of data i.e to let’s say 10 percent of data from that table, then SAMPLE parameter can be used in EXPDP. We will explain its use in below demo. SAMPLE Percentage of data to be exported. DEMO: SQL> […]

ESTIMATE REQUIRED DISK SPACE FOR EXPORT USING estimate_only

4199 views Less than a minute 0

ESTIMATE_ONLY parameter can be used in EXPDP command, to estimate the disk space required for the export job, without doing the actual export. So when we are not sure what will be the export dump size, then better to use this option first, before generating the export dump. By default ESTIMATE_OPTION=N DEMO: PARFILE WITH ESTIMATE […]

FLASHBACK parameter in DATAPUMP(EXPDP)

5486 views 1 min , 41 sec read 1

We can use the flashback parameter ( FLASHBACK_SCN or FLASHBACK_TIMESTAMP) in expdp to take a consistent backup of the table as of a specific point in time. Flashback method depends upon undo data. So if we are trying to take an export of the table with the flashback for which data is not available in […]

CONTENT parameter in datapump

6428 views 1 min , 25 sec read 0

CONTENT parameter is used in expdp or impdp, to load/unload data only, metadata only or both. CONTENT Specifies data to unload. Valid keyword values are: [ALL], DATA_ONLY and METADATA_ONLY.   CONTENT=ALL is the default value CONTENT=METADATA_ONLY: It will take export only the metadata, i.e skeleton/DDL on the object/schema. It won’t export any of the data/rows. […]

Shell script to delete old archives using RMAN

9640 views Less than a minute 2

If the requirement is to delete archive log backups automatically (without taking backup), then below shell script can be configured in crontab. prepare the shell script. cat rman_arch_del.sh #!/bin/bash export ORACLE_HOME=/oracle/app/oracle/product/12.1.0.2.0 export ORACLE_SID=PARIS12C export PATH=$ORACLE_HOME/bin:$PATH delBackup () { rman log=/home/oracle/arch_del.log << EOF connect target / DELETE noprompt ARCHIVELOG ALL COMPLETED BEFORE ‘sysdate-1’; CROSSCHECK ARCHIVELOG ALL; […]

Query clause in oracle datapump expdp

6330 views Less than a minute 1

             QUERY clause can be used in expdp or impdp to export/import subset of the data or data with specific conditions. DEMO: Export dump of a table from emp_tab WHERE created > sysdate -40 . Filter can be added on any column depending upon the requirement. SQL> select count(*) from […]

SKIP_CONSTRAINT_ERRORS as DATA_OPTION in impdp

5807 views 1 min , 27 sec read 0

DATA_OPTIONS=SKIP_CONSTRAINT_ERRORS is a very useful parameter mostly used with table_exists_action=APPEND . In general, if you are appending data ( table_exists_action=APPEND) to an existing table with a unique constraint and if the new rows violating the unique constraint, then the import job will fail( even if only one row violates the constraint) DATA_OPTION=SKIP_CONSTRAINT_ERRORS parameter will help […]

Page 1 of 512345»
Google
Custom Search
  • 2ansible
  • 47BACKUP & RECOVERY
  • 16CLOUD
  • 56DATABASE
  • 40DATABASE SCRIPTS
  • 10Database-Wiki
  • 24DATAGUARD
  • 9DB TOOLS
  • 18GOLDENGATE
  • 3HADOOP
  • 40HOW TO
  • 61ORACLE 12C
  • 4ORACLE 18C
  • 4ORACLE 19C
  • 44ORACLE RAC
  • 12ORACLE SECURITY
  • 30PERFORMANCE TUNING
  • 3POSTGRES
  • 4R-STUDIO
  • 13SHELL SCRIPT
  • 144TROUBLESHOOTING
  • 3WEBLOGIC
  • Upgrade database from 11g to 12c manually 77095 16
  • install oracle goldengate 12c on linux 7 63477 0
  • How to run SQL tuning advisor for a sql_id 58837 6
  • Upgrade database from 12.1.0.2 to 12.2.0.1 51224 9
  • Transparent Data Encryption (TDE) in oracle 12c 50492 2
  • How to drop and recreate temp tablespace in oracle 49002 8
  • ORA-04036: PGA memory used by the instance exceeds PGA_AGGREGATE_LIMIT 48082 2
  • Prerequisite check “CheckActiveFilesAndExecutables” failed 38625 3
  • create database link from oracle to sql server 37428 6
  • How to generate AWR report in oracle 36267 4

Tags

12c archive archivelog ASM Audit AWR backup cloud database dataguard datapatch datapump dgmgrl DISKGROUP EXPDP flashback goldengate grid impdp installation multitenant OGG- OPATCH ORA- oracle oracle 12.2. oracle 12c partition patch PDB performance pluggable RAC redolog rman SCRIPT scripts security SHELL script standby statistics tablespace temp undo upgrade

About DBACLASS

DBACLASS.COM is a knowledgebase for Oracle Database administrators
  • @TwitterDBA https://t.co/iMfhff4h6d
    Friday Oct 28 - 8:28am
  • @TwitterDBA https://t.co/xBWFtD3lga
    Friday Oct 28 - 8:27am

Follow @supportdbaclass on Twitter

  • Privacy policy
  • Terms & Conditions
  • Contact us
  • About Us
  • Write for us
  • Q&A Forum