Posts

Showing posts from October, 2016

expdp content=data_only

[oracle@oracle1 dpump]$ expdp atest/password directory=dpump dumpfile=test_tab1.dmp content=data_only tables=test_tab1 logfile=test_tab1.log Export: Release 11.2.0.1.0 - Production on Wed Feb 11 10:58:23 2015 Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options Starting "ATEST"."SYS_EXPORT_TABLE_01":  atest/******** directory=dpump dumpfile=test_tab1.dmp content=data_only tables=test_tab1 logfile=test_tab1.log Estimate in progress using BLOCKS method... Processing object type TABLE_EXPORT/TABLE/TABLE_DATA Total estimation using BLOCKS method: 64 KB . . exported "ATEST"."TEST_TAB1"                         5.937 KB      11 rows Master table "ATES...

ORA-14074: partition bound must collate higher than that of the last partition

Image
I have a table AUDIT_LOGONS, it has 5 partitions in it and one partition is defined as MAXVALUE. All partitions has some data (see below screen) in it except the MAXVALUE partition. Now I want to add a new partition which has date values less than 2016-05-31  But I am getting error ORA-14074 sql : alter table AUDIT_LOGONS add partition AUDIT_LOGONS_P1 VALUES LESS THAN (TO_DATE(' 2016-05-31 00:00:00', 'SYYYY-MM-DD HH24:MI:SS')); and I get this error : SQL Error: ORA-14074 : partition bound must collate higher than that of the last partition 14074. 00000 -  " partition bound must collate higher than that of the last partition " *Cause:    Partition bound specified in ALTER TABLE ADD PARTITION Solution 1: We can add a sub-partition to the partition that was set with MAXVALUE (AUDIT_LOGONS5 in this case). In below sql we are modifying the partition audit_logons5 adding a sub-parition audit_logons6 which will have all the data which has date below "2016-09-30...

Real Time Log Apply on Standby Database

                Configure Real Time Log Apply on Standby By default, log apply services wait for the full archived redo log file to arrive on the standby database before applying it to the standby database . If the real-time apply feature is enabled , log apply services can apply redo data as it is received from the Primary DB, without waiting for the current standby redo log file to be archived. We can use the ALTER DATABASE statement to enable the real-time apply feature, as below: For physical standby databases, issue the ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE statement. For logical standby databases, issue the ALTER DATABASE START LOGICAL STANDBY APPLY IMMEDIATE statement. NOTE : Standby redo log files are required to use real-time apply. Lets Test it: oracle@ORCLSTDBY:[~] $ sqlplus /"as sysdba" SQL*Plus: Release 11.2.0.4.0 Production on Tue Oct 4 10:57:52 2016 Copyright (c) 1982, 2013, Oracle....