OMBPLUS Looking for External Table in Mappings
Hello,
Can I resolve this problem with OMBPLUS?
I would like looking for all the mappings (stage) that have a source as an External Table.
Maybe anyone have a example?
Thanks
christian
Edited by: user11126676 on 14.09.2009 07:19
Something like this should get you on your way
(code assumes that you have logged in and CCd to the project and then the module already)
set maps [OMBLIST MAPPINGS]
foreach map $maps {
set tabs [ OMBRETRIEVE MAPPING '$map' GET EXTERNAL_TABLE OPERATORS]
if {[llength $tabs] == 0} {
puts "Mapping $map does not depend on external tables"
} else {
puts "Mapping $map depends on external tables: "
foreach tab $tabs {
puts $tab
}Cheers,
Mike
Similar Messages
-
How to look for the Table Name
Hi Friends,
Sometimes we need to download the table for the desired information if the same is not available from a particular report. How to look for the table name? Is there a report or a particular feild, where we can find the name of the particular table?
Thanks for the assistance.
RegardsHi Friend,
If you want to see the structures then go to SE11. Sometimes it happens that you cannot find the table names but only fields. In such case, if you want to find the Table names which is not available, then go to SE90.
Abap Dictionary > Fields > Table Fields.
Now Enter the Field name in Right Hand Side of the screen then Execute. You will see the all tables by which that Fields are used.
Regards,
Jigar -
How to use remote directory for external table
Hi Folks,
I have 2 Oracle 11GR2 64 bit database installed on Win 2008 server as prod1 and prod2.
I have one directory created on prod1 server as EXT_TAB_DIR using the path as D:\OrsDWtest_dir .
I want to use this directory in Prod2 server and use external table using this remote directory.
I am able to access the Prod1 directory from Prod2 machine and also i have created Network map drive as Z drive pointing to that prod1 D:\OrsDWtest_dir directory. Also i checked read and Write permissions are there . I am able to create the external table but when i try to fetch the data i m getting below error ..
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-04040: file IOMM_20121213_060736.csv in EXT_TAB_DIR not found
now my doubt is this possible ? Can we use remote directory for External table ? or is there is there any alternative way to achieve same ?
Thanks & Regards,
Vikash Jain(DBA)could you confirm the name and the existence of this file "IOMM_20121213_060736.csv" ?
same error like:
http://www.oracle-base.com/articles/9i/external-tables-9i.php
if the load files have not been saved in the appropriate directory the following result will be displayed.
SQL> SELECT *
2 FROM countries_ext
3 ORDER BY country_name;
SELECT *
ERROR at line 1:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-04040: file Countries1.txt in EXT_TABLES not found
ORA-06512: at "SYS.ORACLE_LOADER", line 14
ORA-06512: at line 1Edited by: Fran on 10-ene-2013 23:32 -
Hello,
I'm looking for system tables or views like in the Oracle Database.
First I'm looking for running /active sessions - like v$sessions or in an RAC environment gv$session
And get the corresponding SQL from v$sql
Second I had problems to drop tables due to constraints.
Therefore I was looking for dba_constraints, all_constraints or user_constraints
select * from user_constraints WHERE constraint_type in ('R');
With that information I'm able to generate a script to drop the constraints.
Third I want quick lookup about data types used in a table to correct my settings in Oracle BI.
For example which column in which table of my schema uses the datatype BIGINT.
If only 3 attributes in two tables out of 100 use the BIGINT datatype - I'm able to quickly change my settings in the OBIEE repository.
I'm missing a table like user_tab_columns.
How can I get the same information out of TimesTen ?
Thanks in advance,
ThorstenHi Thorsten,
You should be able to get some of the information that you want from the TimesTen reports that are in SQL Developer.
e.g.
<TimesTen Reports -> Table -> Columns -> Columns> returns a listing of all the columns and their data types. You can order by the data type column or add a filter (say ='TT_BIGINT') to restrict the result set.
<TimesTen Reports -> Table -> Constraints -> All Constraints / FK Constraints / PK Constraints / Unique Constraints> returns a listing of all the constraints, their name, the table that the constraints are on, and their properties.
For all the SQL Developer reports, you will be able to see the underlying queries and the TimesTen system tables/ views that they reference.
Simon -
Unix permission problem for external table in oracle 10g, sun solaris
Hello All,
I'm facing a problem in accessing external table which has stumped me a bit.
What I'm looking for is to use a external table with restricted permission to Others(770) on unix.
Would appreciate if someone helps me out here.
Here are the steps:
1.create directory ext_tab_dir1 as '/home/ravi/test'
2.grant read,write on directory ext_tab_dir1 to scott
3.CREATE TABLE scott.emp_load1(employee_number CHAR(5))
ORGANIZATION EXTERNAL (
type oracle_loader
default directory ext_tab_dir1
access parameters (
records delimited by newline
fields terminated by ' '
optionally enclosed by '"'
missing field values are null
location ('info.dat')
Now I have added unix user oracle to unix group myDbGroup and provided myDbGroup read/write/exec permission on directory /home/ravi/test.
info.dat has been placed in /home/ravi/test.
#pwd
/home/ravi
#ls -l
drwxrwx--- 2 ravi myDbGroup 512 Mar 7 17:35 test
I have manually logged in as user oracle and successfully created a sample file in /home/ravi/test.
-rwxrwx--- 1 ravi myDbGroup 13 Mar 7 17:33 info.dat
-rw-r--r-- 1 oracle oinstall 0 Mar 7 18:05 sampleFile
I then connect to the db using sqlplus as ravi and do a
#select * from scott.emp_load1
I get the following error
ERROR at line 1:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-04063: unable to open log file emp_load1_18567.log
OS error Permission denied
ORA-06512: at "SYS.ORACLE_LOADER", line 19
After this, I gave full permission to /home/ravi/test
drwxrwxrwx 2 ravi myDbGroup 512 Mar 7 17:35 test
#select * from scott.emp_load1
And this was successful.
It created a log file in /home/ravi/test
-rwxrwx--- 1 ravi myDbGroup 13 Mar 7 17:33 info.dat
-rw-r--r-- 1 oracle oinstall 0 Mar 7 18:05 sampleFile
-rw-r--r-- 1 oracle oinstall 0 Mar 7 18:05 emp_load1_18567.log
Now what stumped me is the owner and group owner of the file emp_load1_18567.log.
It is same as the sampleFile which I created manually!!
From this it can be deducted oracle is not using user id oracle while reading/writing to the unix directory but somehow assigning user id oracle as owner to the log file at the end.
If someone has encountered this problem earlier or has some info about this...pls share.
Regards,
RavinandanThanks for the reply.
I have earlier checked this with NOLOGFILE option.
But no luck.
I would like to add one more detail(which I missed earlier) about the problem.
If I give 750 access to /home/ravi(That is read/exec to Group and none perm to Others),
I will get the same error(KUP-04063: unable to open log file emp_load1_18567.log).
This obviously means oracle is not even able to access the directory(Although unix user oracle has access via the group perms). -
Using MISSING FIELD VALUES ARE NULL for external table
I want to place a null for values missing in the sub_account field. Here is my external table:
CREATE OR REPLACE DIRECTORY INCOMING_ORDERS_log_dir
AS 'c:\starpubs\starpubs\dataformats\logs\INCOMING_ORDERS\log';
CREATE OR REPLACE DIRECTORY INCOMING_ORDERS_bad_dir
AS 'c:\starpubs\starpubs\dataformats\logs\INCOMING_ORDERS\bad';
create table ext_INCOMING_ORDERS_table (
Account varchar(5),
Sub_Account varchar(1),
Override_Code varchar(1),
Nomenclature varchar(28),
chg_nbr varchar(3),
quantity integer,
U_I varchar(5),
zipcode varchar(5),
type_reject varchar(2)
organization external
type oracle_loader
default directory user_dir
access parameters
records delimited by newline
missing field values are null
badfile INCOMING_ORDERS_bad_dir:'INCOMING_ORDERS%a_%p.bad'
logfile INCOMING_ORDERS_log_dir:'INCOMING_ORDERS%a_%p.log'
fields
Account(1:5) char(5),
Sub_Account(7:7) char(1),
Override_Code(10:10) char(1),
Nomenclature(11:38) char(28),
chg_nbr(40:42) char(3),
quantity(44:48) integer external,
U_I(50:54) char(5),
zipcode(56:60) char(5),
type_reject(61:62) char(2)
location('PTCLICK.MANUAL.NOMEN.TXT','PTCLICK.ORDERS.TXT', 'EUR_RES.TXT', 'MQ.TXT', 'BPRO.TXT')
reject limit unlimited;
How can I place the MISSING FIELD VALUES ARE NULL for missing values for the sub_account?made the change I received this error:
SQL> select * from ext_INCOMING_ORDERS_table;
select * from ext_INCOMING_ORDERS_table
ERROR at line 1:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-00554: error encountered while parsing access parameters
KUP-01005: syntax error: found "no": expecting one of: "comma, date_format,
defaultif, enclosed, ltrim, lrtrim, ldrtrim, notrim, nullif, optionally, ),
rtrim, terminated"
KUP-01007: at line 7 column 26
CREATE OR REPLACE DIRECTORY INCOMING_ORDERS_log_dir
AS 'c:\starpubs\starpubs\dataformats\logs\INCOMING_ORDERS\log';
CREATE OR REPLACE DIRECTORY INCOMING_ORDERS_bad_dir
AS 'c:\starpubs\starpubs\dataformats\logs\INCOMING_ORDERS\bad';
create table ext_INCOMING_ORDERS_table (
Account varchar(5),
Sub_Account varchar(1),
Override_Code varchar(1),
Nomenclature varchar(28),
chg_nbr varchar(3),
quantity integer,
U_I varchar(5),
zipcode varchar(5),
type_reject varchar(2)
organization external
type oracle_loader
default directory user_dir
access parameters
records delimited by newline
badfile INCOMING_ORDERS_bad_dir:'INCOMING_ORDERS%a_%p.bad'
logfile INCOMING_ORDERS_log_dir:'INCOMING_ORDERS%a_%p.log'
fields
Account(1:5) char(5),
Sub_Account(7:7) char(1) NO PRESERVE BLANKS,
Override_Code(10:10) char(1),
Nomenclature(11:38) char(28),
chg_nbr(40:42) char(3),
quantity(44:48) integer external,
U_I(50:54) char(5),
zipcode(56:60) char(5),
type_reject(61:62) char(2)
location('PTCLICK.MANUAL.NOMEN.TXT','PTCLICK.ORDERS.TXT', 'EUR_RES.TXT', 'MQ.TXT', 'BPRO.TXT')
reject limit unlimited; -
Case statement logic for External Tables
Hi All,
Is there anyway I can perform a CASE logic in External table creation script?
I have a column which is supposed to receive only Numbers. But if i inadvertently receive a String, i want to insert NULL for that instance.
My table has the following creation syntax: ( I have to make a check for the NumValue column - althought I am using VARCHAR2(50) I have the transformation stage where the NumValue column has a CASE logic ; my entire file is getting rejected just because a single row in the input dat file is coming as a String)
CREATE TABLE XYZ_TABLE
LineNumber NUMBER(20),
NumValue VARCHAR2(50 BYTE)
ORGANIZATION EXTERNAL
( TYPE ORACLE_LOADER
DEFAULT DIRECTORY "EXT_TAB_DIR"
ACCESS PARAMETERS
( RECORDS DELIMITED BY NEWLINE
BADFILE 'EXT_TAB_DIR_LOG':'FILE1.BAD'
LOGFILE 'EXT_TAB_DIR_LOG':'FILE1.LOG'
DISCARDFILE 'EXT_TAB_DIR_LOG':'FILE1.DSC'
FIELDS TERMINATED BY '#|#'
OPTIONALLY ENCLOSED BY '#$' and '$#'
MISSING FIELD VALUES ARE NULL(
LINENUMBER,
NUMVALUE
LOCATION
( 'FILE1.dat'
REJECT LIMIT UNLIMITED;
Thank you,
ChaitanyaChaitanya wrote:
So here, in the CASE logic, can i perform a check for validating if the value received for NumValue is only number and not some Varchar2 value (which I am currently receiving for some rows)Assuming "is only number" means NumValue column can containg digits only:
insert
into TableABC(
linenumber,
nuvalue
select linenumber,
NumValue
from TABLEXYZ
where regexp_like(NumValue,'^\d+$')
/SY.
P.S. If NULL column NumValue is allowed, add OR NumValue IS NULL -
Looking for a table (PO)
Hi,
i am programming smartforms and got stuck programming because i can't find the table and the field i am looking for.
In a purchase order on the item level there is a
delivery address (which can also be changed manually).
What i would like to know is in which table this address can be found. (and what the field is called)
thanxHi
Go to EKPO and get EKPO-ADRNR.
Pass the EKPO-ADRNR number in the table ADRC.
This will provide the address details.
Reward if this helps
Thanks -
Looking for idoc tables.
Hello,
I am looking for a list of tables where idoc details are stored.
I know about tables EDIDC and EDID4. But they have header data and segment name data.
There should be few other tables that store the data that's in the segments fields.
say for ex. Material number or other material attributes in Matmas idocs.
Which table holds those detais?
Would appreciate anyones help pl.?
Best Regards,
Shiv.Hi
The Data is stored in the table EDID4 under application data. YOu can see that only when you increase the width of output to 1000. The Application data is stored as a cluster rather than single fields
The data is stored only in structures of segments at filed level. But this may not be retreivable.
Reward points if useful
Thansk & Regards
Kishore -
How not to consider a missing field for external tables
My Oracle vers. is 10gR2
I've created an external table using this syntax:
create table ext_table
(a number(5),
b number(5),
c varchar2(1000))
organization external
(type ORACLE_LOADER
default directory FLAISTD
access parameters (records delimited by newline
fields terminated by "#"
(a char(5),
b char(5),
c char(1000)))
location ('file.csv')
My problem is this. I've got a file.XLS that I save as file.CSV Sometimes any row of the file.XLS misses of the last column and so in my file.CSV I can have something like this:
123#123#xxx
456#456
and when I try to perform a select * from ext_table I get an error because it expects a missing field.
How can I do? Can I "say" in the create table above something for warning that the last field might miss?
Thanks in advance!Solomon Yakobson wrote:
Use TRAILING NULLCOLS:Oops, it is external table not SQL*Loader. So it should be MISSING FIELD VALUES ARE NULL:
create table ext_table
(a number(5),
b number(5),
c varchar2(1000))
organization external
(type ORACLE_LOADER
default directory TEMP
access parameters (records delimited by newline
fields terminated by "#" missing field values are null
(a char(5),
b char(5),
c char(1000)))
location ('file.csv')
Table created.
SQL> select *
2 from ext_table
3 /
A B C
123 123 xxx
456 456
SQL>SY. -
Looking for external hard drive for Mac book air
I'm looking for a external hard drive for my Mac book air
What features are important to you?
Size?
Capacity?
Speed?
Price?
Reliability?
HDD or SSD?
Desktop or portable?
Just about any USB external drive will function properly, with only a few exceptions. I would avoid the Toshiba Canvio using USB 3.0, as it has been the topic for numerous threads here wherein users have had problems using them with the MacBook Air.
My personal favorite external HDD right now is the Seagate GoFlex, as I can use them with the Thunderbolt adapter. But I have been eyeing the new LaCie Rugged Thunderbolt.
For super speed, I use a Crucial model M4, either using the Seagate Thunderbolt adapter, or I have some mounted in USB 3.0 housings. -
Macbook iSight Mic damaged? looking for external
I use QT broadcaster to record and rehearsals and other music related things, but lately I've noticed that the sound playback has been 'warbly.' It sounds like there is a chorus effect on it. Could it be possible I damaged it by high noise level in the room?
In any case, I'm looking for an external mic, but have no idea where to start or what kind of mic would be good for music recording.Hello, kimbahpnam
Your MacBook's built-in iSight does not have a microphone of its own. Unless you have connected an external mic, the mic you are using is part of your MacBook.
If your MacBook's mic once worked well for recording the same kind of sound, are you doing anything different? Things like running more applications than you did before may be overloading your MacBook's processor. Perhaps your MacBook no longer has sufficient free space in its hard disk or is in need of other Mac OS X Maintenance.
If none of these is your problem, have you checked your MacBook's mic with any other software such as iMovie to see if different software works correctly? You might also want to check to see if you have the problem in a different user account.
When you record normal voice with your MacBook's mic using both iMovie and QT Broadcaster, does the sound play back right? If even normal voice now plays back "warbly", your internal mic may be damaged. I suggest you see your Apple-Authorized Service Provider for a professional check.
I use this low cost Logitech USB desk mic for my iMovie voice-overs. While it is not a music quality mic, it would be cheap to try, and it is simple to select in the QTB > Audio > Source: choices bar.
For better recommendations on music quality microphones that are compatible with QTB, unless you get better suggestions here, I suggest you see your Apple Retailer or post in QT Discussions.
Finally, if you are using FileVault, turn it off. FileVault has issues with iMovie (and perhaps other applications), and it slows disk operations. See if you have better results when FileVault is disabled.
Jim -
Looking for External Sound Device for iBook G4
Does anyone know of an external audio device similar to Creative Technology's Sound Blaster Extigy that will work with my iBook G4? I would like to record CDs played through an external CD player that has audio compression. Unfortunately the iBook lacks audio inputs. Thanks.
Don SquiresPerhaps this is what you're looking for:
http://www.m-audio.com/products/en_us/SonicaTheater-main.html
I had an Extigy with my previous notebook (presario 1500) and absolutely loved the sound I got through my creative 5.1 speakers, at least when my computer was working properly
I see the sonic theatre as the mac equivalent, although it doesn't appear to have a remote, oh well. I have no idea how much of the software will work on a mac, but it can't be too hard to find some good audio software. -
Gurus,
I have created a External Table with the Following Script
CREATE TABLE ext_wdm_rollout_plan_test
(structure VARCHAR2(50),
initial_phase VARCHAR2(50),
chain_rfi VARCHAR2(50),
chain_anu VARCHAR2(50),
protected_by VARCHAR2(255))
ORGANIZATION EXTERNAL (
DEFAULT DIRECTORY EXTERNAL_TAB_DIR
ACCESS PARAMETERS(records delimited BY newline
badfile EXTERNAL_TAB_DIR :'EXT_WDM_ROLLOUT.bad'
LOGFILE EXTERNAL_TAB_DIR :'EXT_WDM_ROLLOUT.log'
SKIP 1
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
missing field VALUES are NULL
Structure char
,Initial_Phase char
,Chain_RFI char
,Chain_ANU char
,Protected_by char
LOCATION (
EXTERNAL_TAB_DIR:'wdm_rollout_plan_test.csv'
REJECT LIMIT UNLIMITED
In these Table Some Columns having the Special Character like 'new line feed' ie it looks like a square symbol in my database.
How can i avoid that kind of special symbols while creating the External Table.
I tried with the TRIM command also with External Table Scripts but it doesn't works.
please help me in this issue.
Regards,
VenugopalHi,
Use Substr or Replace functions on them. -
We've lost our backup script for a particularly hairy EXTERNAL TABLE def'n. TOAD is botching the script. Is there a SQL statement I can execute against the db which will deliver back the script?
-ChuckCharles,
<br>You can use DBMS_METADATA package.</br>
1 SELECT dbms_metadata.get_ddl('TABLE', table_name)
2 from user_tables
3* where table_name = 'EXT_RN_DEPLOY_DATA' --your table name
SQL> /
CREATE TABLE "SCOTT"."EXT_RN_DEPLOY_DATA"
( "MONITOR_ID" VARCHAR2(30),
"SAMPLE_ID" VARCHAR2(30),
"LATITUDE" VARCHAR2(10),
"DEW_POINT" NUMBER(18,8)
ORGANIZATION EXTERNAL
( TYPE ORACLE_LOADER
DEFAULT DIRECTORY "DATA_FILE_DIR2"
ACCESS PARAMETERS
( RECORDS DELIMITED BY NEWLINE SKIP 1
BADFILE DATA_FILE_DIR2:'REVEXT%A_%P.BAD'
LOGFILE DATA_FILE_DIR2:'REVEXT%A_%P.LOG'
FIELDS TERMINATED BY ","
OPTIONALLY ENCLOSED BY '"'
MISSING FIELD VALUES ARE NULL
LOCATION
( "DATA_FILE_DIR2":'load.csv'
REJECT LIMIT UNLIMITED
SQL> <br>More info <a href=http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96652/ch15.htm#1005930><b>here</b></a></br>
<br>Nicolas.</br>
Maybe you are looking for
-
[SOLVED]Network unreachable in live CD 2013.07.01 with BCM57788
Eth0 not set up with live CD 2013.07.01, so I was unable to install Archlinux Here are some informations on my configuration : * Computer Dell XPS8300, * I'm wired in DHCP to a Freebox as a router (IP given 192.168.0.15) * result of systemctl -- fail
-
Error Using JSF1.2 - latest version
Hi Folks, I have an application with JSF1.1_02. Now I want to migrate to JSF1.2B20. What I did was, just replaced the old jsf-api.jar and jsf-impl.jar with new libs and packaged the files again and trying to deploy. Deployement is failing with follow
-
How can i create a BSP system in EP
Hello All, I need to create a BSP system in Enterprise Portal 6.0 SP14 could you plz tell me what are the parameters we need to set in the WAS Property. Thanks in advance Bye Sreedhar G
-
Unable to remove Adobe Photoshop CC
無法刪除的Adobe Photoshop CC
-
Installing CS5.5 again. Last 3% i get error message to close WINWORD.EXE but i cannot find this; everything else is closed; installation will not complete. please help, thanks