DBA Blogs

How to create an alert to monitor RMAN archive backup job that exceeds one hour runtime.

Tom Kyte - Wed, 2017-01-11 02:26
Is there a SQL script, template or OEM alert that can send an email alert when a RMAN archive backup job exceeds one hour? This is for a standalone 11.2.0.4 database running AIX 7.1. The OEM version we have is 12.1.0.5. Thank you
Categories: DBA Blogs

Upgrade nach #Oracle 12c selbst testen: Mainz, 2. bis 3. Februar

The Oracle Instructor - Wed, 2017-01-11 02:10

noon2noon

Die Deutsche Oracle Anwender Gruppe (DOAG) bietet diesen interaktiven Workshop an. Eine sehr gute Gelegenheit, das Upgrade einmal selbst mit der Unterstützung renommierter Experten durchzuführen. Ich werde einen Vortrag zum Thema Common vs. Local beisteuern. Das ist eins der tendenziell komplizierten Themen, mit denen Einsteiger in Multitenant konfrontiert werden.


Tagged: DOAG
Categories: DBA Blogs

How to use the null column in where condition

Tom Kyte - Tue, 2017-01-10 08:06
Hi Tom, I have a situation were for some record one column is having a value and for few records the column value is null. how do i select the record for this case. For eg select segment1,segment2 from abc nvl(segment2,'')=nvl(segment2,...
Categories: DBA Blogs

Reading and generating file in outside of db server

Tom Kyte - Tue, 2017-01-10 08:06
Hi Tom, I want to load images into DB table from host server, which is not DB directory. Currently i am using bfile concept to load images, which are in db directory. But, due security purpose client don't want to give access of DB server to...
Categories: DBA Blogs

delayed block cleanout

Tom Kyte - Tue, 2017-01-10 08:06
Hi Tom, Thanks for providing answers in detail for us Though you explained in so many times still I have confusion about this topic,can you clear my question. "A query that reads datablocks that have been updated by a large DML (INSERT/U...
Categories: DBA Blogs

SQLLDR & lob file path

Tom Kyte - Tue, 2017-01-10 08:06
Is there a way to specify the lob file path? I can not change my .dat files to include the path so I am looking for a way when I load to specify the lob file direcotry. Lob file name was dynamically generated so I can't use CONSTANT either. ...
Categories: DBA Blogs

Bitmap Indexes

Tom Kyte - Tue, 2017-01-10 08:06
Hi Tom, Good Day I was reading a book written by a popular author (I would prefer not to mention the name of the book and its author). He says: In discussion on bitmap indexes, the following was written: "Concatenated B*tree indexes were ...
Categories: DBA Blogs

unexpected query plan change from index range scan to full table scan

Tom Kyte - Tue, 2017-01-10 08:06
Our oracle server vision is 11.2.0.1, we found one issue related to query plan change when running stress test, which is unexpected. I have one table with following schema CREATE TABLE JOURNAL ( REVISION_ID NUMBER(20) NOT...
Categories: DBA Blogs

Table Lock During partition import.

Tom Kyte - Tue, 2017-01-10 08:06
Hi Guys, DB Info :needs to be available 24x7x365. Table Info : 300 GB , Partitioned by range and has Global Indexes. needs to be available 24x7x365. I want to do a character set conversion to UTF-8 in the oldest partitions while the table...
Categories: DBA Blogs

SQL Loader

Tom Kyte - Tue, 2017-01-10 08:06
Hi, i loading some into table by using sql loader. to uderstand my issue clearly See the Below Example INSERT INTO t1 VALUES (2,'san'thu'); above statement throws error ORA-00917 missing comma. so to insert san'thu below is the corr...
Categories: DBA Blogs

Set up email notification for DML query for a table

Tom Kyte - Tue, 2017-01-10 08:06
Hi Team, My question is : I need to configure email notification for any insert, update, delete query in database table. I have a trigger in place for this . Trigger name is TTT_WNIU_USER_WORKGROUP Target table name is TTT_om_user_workgro...
Categories: DBA Blogs

Difference between Rownum and level in connect by (it is giving different result)

Tom Kyte - Mon, 2017-01-09 13:46
Hi, Hope your doing great! Can you kindly guide me with the difference between the rownum and level in connect by, I though it will give same result but it is little confusing. Can you please teach me in steps how it works. Thanks! drop tabl...
Categories: DBA Blogs

Check constraint violated while loading JSON doc into DB

Tom Kyte - Mon, 2017-01-09 13:46
<code>Team, Could you please help me to understand why this JSON document load got failed with check constraint enabled? but this is a Valid JSON document, validated it through http://jsonlint.com/ portal. for time being, we are able to just...
Categories: DBA Blogs

Executing .sql file in Pl/sql procedure

Tom Kyte - Mon, 2017-01-09 13:46
Hi , I am trying to execute a set of insert statements in a pl/sql block. However these insert scripts vary time to time. Hence i would like to save them in some location as .sql file and execute in pl/sql So i would like to know if it is poss...
Categories: DBA Blogs

issue with the usage of the oracle external table

Tom Kyte - Mon, 2017-01-09 13:46
Hi tom, I have an oracle external table in my database and i am running my database in linux operating system.I have a directory where i will be placing the (.csv) file and loading into the external table.But there is an issue with the externa...
Categories: DBA Blogs

Using Oracle Big Data Lite Virtual Machine with Ravello trial

Big Data Lite Virtual Machine is the most straight-forward way to start learning about Oracle Big Data Stack or even develop demos/proof of concepts on top of it (don't forget however that BD Lite...

We share our skills to maximize your revenue!
Categories: DBA Blogs

V$RMAN_BACKUP_JOB_DETAILS, a caveat

Hemant K Chitale - Sun, 2017-01-08 23:46
Building on a previous blog post (you could read it before or after this post), here's a quick demo of a caveat or quirk with V$RMAN_BACKUP_JOB_DETAILS.

This in 11.2.0.4

[oracle@ora11204 Desktop]$ rman target /

Recovery Manager: Release 11.2.0.4.0 - Production on Mon Jan 9 13:39:44 2017

Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.

connected to target database: ORCL (DBID=1362461976)

RMAN> backup as compressed backupset
2> incremental level 1 database
3> plus archivelog ;


Starting backup at 09-JAN-17
current log archived
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=153 device type=DISK
channel ORA_DISK_1: starting compressed archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=108 RECID=1245 STAMP=928093294
input archived log thread=1 sequence=109 RECID=1246 STAMP=928093719
input archived log thread=1 sequence=110 RECID=1247 STAMP=928093722
input archived log thread=1 sequence=111 RECID=1248 STAMP=928093724
...
...
...
input archived log thread=1 sequence=163 RECID=1318 STAMP=929802055
input archived log thread=1 sequence=164 RECID=1319 STAMP=932823436
input archived log thread=1 sequence=165 RECID=1320 STAMP=932823439
input archived log thread=1 sequence=166 RECID=1321 STAMP=932823606
channel ORA_DISK_1: starting piece 1 at 09-JAN-17
channel ORA_DISK_1: finished piece 1 at 09-JAN-17
piece handle=/u02/FRA/ORCL/backupset/2017_01_09/o1_mf_annnn_TAG20170109T134007_d768kr8l_.bkp tag=TAG20170109T134007 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:01:15
Finished backup at 09-JAN-17

Starting backup at 09-JAN-17
using channel ORA_DISK_1
no parent backup or copy of datafile 2 found
no parent backup or copy of datafile 1 found
no parent backup or copy of datafile 3 found
no parent backup or copy of datafile 4 found
channel ORA_DISK_1: starting compressed incremental level 0 datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00002 name=/u01/app/oracle/oradata/ORCL/sysaux.dbf
input datafile file number=00001 name=/u01/app/oracle/oradata/ORCL/system.dbf
input datafile file number=00003 name=/u01/app/oracle/oradata/ORCL/undotbs1.dbf
input datafile file number=00004 name=/u01/app/oracle/oradata/ORCL/users.dbf
channel ORA_DISK_1: starting piece 1 at 09-JAN-17
channel ORA_DISK_1: finished piece 1 at 09-JAN-17
piece handle=/u02/FRA/ORCL/backupset/2017_01_09/o1_mf_nnnd0_TAG20170109T134123_d768n3v5_.bkp tag=TAG20170109T134123 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:45
channel ORA_DISK_1: starting compressed incremental level 1 datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00011 name=/u01/app/oracle/oradata/ORCL/datafile/o1_mf_hemant_cdgb60g4_.dbf
input datafile file number=00012 name=/u01/app/oracle/oradata/ORCL/datafile/o1_mf_users_c552qnsh_.dbf
input datafile file number=00013 name=/u01/app/oracle/oradata/ORCL/datafile/o1_mf_intermed_c552qpc7_.dbf
channel ORA_DISK_1: starting piece 1 at 09-JAN-17
channel ORA_DISK_1: finished piece 1 at 09-JAN-17
piece handle=/u02/FRA/ORCL/backupset/2017_01_09/o1_mf_nnnd1_TAG20170109T134123_d768ojmm_.bkp tag=TAG20170109T134123 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:15
Finished backup at 09-JAN-17

Starting backup at 09-JAN-17
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting compressed archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=167 RECID=1322 STAMP=932823743
channel ORA_DISK_1: starting piece 1 at 09-JAN-17
channel ORA_DISK_1: finished piece 1 at 09-JAN-17
piece handle=/u02/FRA/ORCL/backupset/2017_01_09/o1_mf_annnn_TAG20170109T134223_d768ozv9_.bkp tag=TAG20170109T134223 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 09-JAN-17

Starting Control File and SPFILE Autobackup at 09-JAN-17
piece handle=/u02/FRA/ORCL/autobackup/2017_01_09/o1_mf_s_932823745_d768p1jo_.bkp comment=NONE
Finished Control File and SPFILE Autobackup at 09-JAN-17

RMAN>


What does V$RMAN_BACKUP_JOB_DETAILS tell us ?

SQL> l
1 select to_char(start_time,'DD-MON HH24:MI') Start_At,
2 to_char(end_time,'DD-MON HH24:MI') End_At,
3 input_bytes/1048576 Input_MB, output_bytes/1048576 Output_MB,
4 input_type, status
5 from v$rman_backup_job_details
6 where start_time > trunc(sysdate)
7* order by start_time
SQL> /

START_AT END_AT INPUT_MB OUTPUT_MB INPUT_TYPE
--------------------- --------------------- ---------- ---------- -------------
STATUS
-----------------------
09-JAN 13:40 09-JAN 13:42 2917.06055 491.563477 DB INCR
COMPLETED


SQL>


The view does NOT show how much of the input/output was for ArchiveLogs.  It clubs ArchiveLogs and the controlfile autobackup under the   single entry for "DB INCR".   Anyone reading this row from V$RMAN_BACKUP_JOB_DETAILS would NOT know if ArchiveLogs had been backed-up, would NOT know if a controlfile/spfile autobackup was created.
Furtheremore, if there is a failure (e.g. only the last ArchiveLog backupset failed ?), would you be able to identify what has successfully been backed up.  Also see my previous blog post.
.
.
.


Categories: DBA Blogs

error in packages

Tom Kyte - Sun, 2017-01-08 19:26
<code>i have table and packages like this,but iam getting error while executing it.so please help me: CREATE TABLE LOGGING_DATA_HDR ( LOG_ID NUMBER, TABLE_NAME VARCHAR2 (30 CHAR) NOT NULL, PK_DATA VARCHAR2 (500 BYTE...
Categories: DBA Blogs

Need to Know the process & result of my question

Tom Kyte - Sun, 2017-01-08 19:26
Emp, dept table is present for reference SQL> select * from dept; DEPTNO DNAME LOC ---------- -------------- ------------- 10 ACCOUNTING NEW YORK 20 RESEARCH DALLAS 30 SALES CHICAGO ...
Categories: DBA Blogs

Pages

Subscribe to Oracle FAQ aggregator - DBA Blogs