view

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
laxmi_etl
Charter Member
Charter Member
Posts: 117
Joined: Thu Sep 28, 2006 9:10 am

view

Post by laxmi_etl »

Hi

when i tried to load view into a table.(Basically the view is in one database
and the target table is in other database)

I am getting the below error
can any body suggest what to do.

Oracle_Enterprise_17,0: SQL*Loader: Release 10.2.0.2.0 - Production on Tue Jan 16 11:54:42 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Control File: ora.434338.642423.0.ctl
Character Set WE8ISO8859P1 specified for all input.
Data File: ora.434338.642423.fifo.0
File processing option string: "FIX 79"
Bad File: ora.434338.642423.0.log.bad
Discard File: none specified
(Allow all discards)
Number to load: ALL
Number to skip: 0
Errors allowed: 50
Continuation: none specified
Path used: Direct - with parallel option.
Table "RDW90_DM"."V_SLS_SU_STORE_SKU_DMD", loaded from every logical record.
Insert option in effect for this table: APPEND
Column Name Position Len Term Encl Datatype
------------------------------ ---------- ----- ---- ---- ---------------------
SKU 1:10 10 CHARACTER
NULL if 1:10 = BLANKS
STORE 11:14 4 CHARACTER
NULL if 11:14 = BLANKS
YEARWEEK 15:18 4 INTEGER
NULL if 15:18 = 0X80000000(character '')
REG_UNITS 19:38 20 PACKED DECIMAL (38, 10)
NULL if 19:38 = 0X0000000000000000000000000000000000000000(character '')
PRM_UNITS 39:58 20 PACKED DECIMAL (38, 10)
NULL if 39:58 = 0X0000000000000000000000000000000000000000(character '')
SU_UNITS 59:78 20 PACKED DECIMAL (38, 10)
NULL if 59:78 = 0X0000000000000000000000000000000000000000(character '')
SQL*Loader-951: Error calling once/load initialization
ORA-26056: Requested direct path operation on a view is not supported.
Log file contents:
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Actually, it looks like your target is a view. Load the base table(s) instead.
-craig

"You can never have too many knives" -- Logan Nine Fingers
laxmi_etl
Charter Member
Charter Member
Posts: 117
Joined: Thu Sep 28, 2006 9:10 am

Post by laxmi_etl »

Sorry, Actually My target is also view not a table.
laxmi_etl
Charter Member
Charter Member
Posts: 117
Joined: Thu Sep 28, 2006 9:10 am

Post by laxmi_etl »

Sorry, Actually My target is also view not a table.
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

sqlldr can't load a view in DIRECT path. Switch to DML.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

...and then only if the view is 'updateable' I do believe. As previously noted, you could always target the base tables.
-craig

"You can never have too many knives" -- Logan Nine Fingers
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post by narasimha »

It is more efficient to work with the base tables (with DIRECT option), than removing the DIRECT option and loading of view.
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
Post Reply