Problems to reverse a flat file and use it as TARGET
Hi all.I have a requirement to create a CSV file with two columns, username and password. I use an ODI Client in a Windows XP and my ODI Server is a Unix server.
I tried so many different ways to reverse the file, but all attempts fail. :(
In my unix server, the file is located in/opt/odi_files/csv and my windows client is in C:/TEST_TXT_ODI. The file name is Export_Siebel_to_CA. CSV.
I created 2 logic diagrams, one called LS_FILE_WINDOWS_CSV and the other called LS_FILE_UNIX_CSV and the procedure of the physical schema, putting DS at the beginning... the other connecting correctly. I use the driver JDBC of Sunopsis file and when I test the connection by using the local agent or server, I have a success message. When I try to turn the tide, I get the error "unable to retrieve the list of files.
I have used this site as my guide until now ["http://odiexperts.com/?p=78"], but the configuration of the topology to access the unix server or using my own machine as a location for the file, I was not able to retrieve the columns in the file.
I think that there is something that I miss. Anyone help me?
Kind regards.
Luiz Araujo
Fala AI Buchu!
Can you send me a photo of your definition of data store? (the file to the template tab)
Cezar Santos
http://odiexperts.com
Tags: Business Intelligence
Similar Questions
-
Export data in a flat file without use of FL
Hello
I'm looking for options where I can export data into a flat file without using a FL (line Layout) i.e., using only the App Engine.
Please share your experience if you did something like this
Thank youA simple way to export any folder (table/view) to a csv gall, is to create a set of lines and loops through all fields of record like below example code
Local Rowset &RS; Local Record &Rec; Local File &MYFILE; Local string &FileName, &strRecName, &Line, &Seperator, &Value; Local number &numRow, &numField; &FileName = "c:\temp\test.csv"; &strRecName = "PSOPRDEFN"; &Seperator = ";"; &RS = CreateRowset(@("Record." | &strRecName)); &RS.Fill(); &MYFILE = GetFile(&FileName, "W", %FilePath_Absolute); If &MYFILE.IsOpen Then For &numRow = 1 To &RS.ActiveRowCount &Rec = &RS(&numRow).GetRecord(@("RECORD." | &strRecName)); For &numField = 1 To &Rec.FieldCount &Value = String(&Rec.GetField(&numField).Value); If &numField = 1 Then &Line = &Value; Else &Line = &Line | &Seperator | &Value; End-If; End-For; &MYFILE.WriteLine(&Line); End-For; End-If; &MYFILE.Close();
You can of course create an application for generic class call this piece of code.
It will be useful.
Note:
Do not complain to me ;) on performance issues -
Export a Table to a flat file and upload to a FTP server for external provider
I did some extensive research on forums and I think I have an idea, but really need help. Basically to have a table that is to be exported in a flat file and uploaded to an FTP server so that our provider can obtain the data from Monday to Saturday and automated by sysdate. These data are used to produce daily letters that come out to customers.
After doing some research I came across the UTL_FILE package and read more into that right now, but I don't know if that's what I use to create the file.
I use TOAD right now and see how the do it manually but really need the file to create itself and send it automatically to 06:00 Monday - Saturday, with the date at the end of the name of the file, which makes a single file for each day.
Thanks in advance for all your help.As Justin and others have said that I wrote [XUTL_FTP | http://www.chrispoole.co.uk/apps/xutlftp.htm] If you won't find in the Oracle documentation. It is pure PL/SQL using UTL_TCP and implements a built-in FTP from PL/SQL client / API. One of its many procedures overloaded FTP the contents of a refcursor directly to an FTP server of your choice, which means that no intermediate file is necessary. Since it is pure PL/SQL, it is trivial to program using DBMS_JOB/DBMS_SCHEDULER.
Any questions just ask.
HTH Chris
-
build a Visual Studio C++ 2008 .dll file and use it in labview
Hello
A few days I tried to create a .dll with c code file and use it with a call library function node in LabView. But I could never do it with success. I use Visual Studio 2008 and labview 8.6.
I had a look at some tutorials, but they were written for different versions of Visual Studio. And because I'm a newbie to Visual Studio, it was difficult for me to do in another version the turtrial is written for. However, I have a lot of experience in programming c for processor atmel (AVR Studio).
Is there someone who could help me step by step hollow Visual Studio C++ 2008 and later versions also help me configure my call library function node?
I'm form Switzerland, my English may have a few errors. Sorry for that.
What I've done so far:
* I opened VisualStudio 2008 and created a new project.
* For this I used the model ' class library ' (because I live in Switzerland, I have German versions of visual studio, and labview. So, probably, it is not called exactly "class library" in the English version)
* The project is created and I can insert my functions.
* but here I have some difficulties: in my tutorials, they say that a function should be defined as follows:
type name (arguments) WINAPI
{
code
}
for example
unsigned int WINAPI multiply (unsigned char, unsigned char b).
{
unsigned int c;
c = a * b;
return c;
}
but when I try to compile the project I get the errormessage:
SyntaxError: missing; prior to "multiply".
* When I remove WINAPI, it creates the dll file
* but when I try to open this dll with a "call library function node" in labview, I get an errormessage labview, that my multiply function is not found in the dll.
I'd be happy if someone could help me with this.
You need adorn your statements with extern "C". LabVIEW manages only the C dll; It cannot manage the C++ dll, which is what you will get if you do not have extern "C". I do not understand why you are trying to use 'stdcall '. For a normal DLL just stick to C-calls.
The link provided by Red rooster is for Visual C++ 6, which is a very old version. I suggest you look at instead, because it deals with Visual Studio 2005.
-
Export a table for the flat file and must insert sysdate in flat file column
Hi, I created an interface allowing to export an oracle table to a csv file. All the columns in the table work well. Then I need to insert the sysdate in a column in the csv file.
I made the map as working in the transit area, implementation is to_char(sysdate,'dd/mm/yyyy'). But the result is insert in column 14.
I tried to create a variable refreshing that choose double to_char(sysdate,'dd/mm/yyyy'), maps then as the csv file column, but he only insert 1 row and the format is YYYYMMDD.
I tried to use SELECT '< % = odiRef.getSysDate ("YYYYMMDD") % >' double to the variable and it also only insert a line in the flat file.
I used the same methodology in ODI10g, it works fine.
So, I wonder how it can be implemented in 11g.
Thank you
It turns out that I used the snapshot_date as a field name, it may be a reserved word. After that I changed the name of the field, it works fine. Thank you.
-
I'm trying to overthrow a flat file, but nothing happens. Kindly help.
Thankx in advanceCHEK if your model is locked or not. If it is locked then unlock and invert.
I hope this helps.
Nick
-
How to put the name of the Module file and use the current file name in the code?
Hello
I create SequenceCall (in MainSequence), but there must be the Module file name and existing file where the module. I found an old function that are not part of the API (TS_SequenceCallModuleSetUseCurrentFile() and TS_SequenceCallModuleSetSequenceName(). Those who are in the help file, but not in tsapicvi.c.
You can help someone with this (CVI code)?
Best regards
branar
Hello
Problem is solved using different fp (tsadpcvi.h, tsadpcvi.c). Instead of using tsapicvi.c with TestStand 4.2, the missing functions were found in tsadpcvi.c with TestStand 2010).
Best regards
branar
-
Problem with the system of files and media card renaming of files...
HIII guys.
I m, development of application in which I have to rename the file to media card so I use the FileConnection API.
but it gives me exception error in file system and the same code works fine for the files of memory device.
I m confused abt it... Is there any setting for media card access... ???.
code snippet
fconn = (FileConnection) Connector.open (file:///SDCard/BlackBerry/pictures/2.jpg, Connector.READ_WRITE);
If (fconn.exists ())
{
System.out.println ("" + fconn.canRead () + fconn.canWrite ());
fconn. Rename ("1.jpg");
fconn. Close();
Returns true;
}fconn.canRead () returns to me true
fconn.canWrite () returns me true.
help me guys...
Thanks in advance...
JDE 4.2.1
Device Simulator-8100
HIII
I finally found it...
My mistake of not closing the files input stream each so it locks...
Thnks for help...
-
Original title: expansion of the e-mail.
I used scrpnt for a page to a friend and then he sent an email and she said that she could not read, so I looked into this area and shes right, is possible for an enlarged image of a full page by e-mail... (text document
Hi Charles,
Thanks for sharing this information with us.
I am happy to know that the problem is solved, this will help other members of the community to the same question.
Please do not hesitate to visit our Web site for any help with Windows Operating System.
-
Problem with the large flat file
Hi, I am trying to import a flat 50 +. This is an extraction of an operational unknown
LKM SQL ODI record does not work... I think that there is too much data, and the buffer is too small.
Any tips?
Concerning
FrancescoYou must import the KMs in your project. Right mouse-button on the project, and import knowledge Modules. Point to the directory oracledi/industry, and you have two options here, LKM to Oracle (external Table) and LKM file Oracle (SQL Loader) file.
Then oprn your interface again, then select this module. -
Hello
Oracle - Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Version
I was able to reproduce the error like below:
Run the following code to Schema1:
Then in Schema2, createCREATE TABLE TNAME1 ( DB_ID VARCHAR2 (10 BYTE), DATA_ID VARCHAR2 (10 BYTE), DATA_ID2 VARCHAR2 (10 BYTE), IDENTIFIER1 NUMBER (19) NOT NULL, ID1 NUMBER (10) NOT NULL, STATUS1 NUMBER (10) NOT NULL, TIME_STAMP NUMBER (19) NOT NULL, OBJECT_ID VARCHAR2 (40 BYTE) NOT NULL, OBJECT_NAME VARCHAR2 (80 BYTE) NOT NULL, UNIQUE_ID VARCHAR2 (255 BYTE), DATA_LIVE CHAR (1 BYTE) NOT NULL, XML_MESSAGE SYS.XMLTYPE, ID2 VARCHAR2 (255 BYTE) NOT NULL, FLAG1 CHAR (1 BYTE) NOT NULL, KEY1 VARCHAR2 (255 BYTE), HEADER1 VARCHAR2 (2000 BYTE) NOT NULL, VERSION2 VARCHAR2 (255 BYTE) NOT NULL, TYPE1 VARCHAR2 (15 BYTE), TIMESTAMP1 TIMESTAMP (6), SOURCE_NUMBER NUMBER ) XMLTYPE XML_MESSAGE STORE AS BINARY XML PARTITION BY RANGE (TIMESTAMP1) (PARTITION MAX VALUES LESS THAN (MAXVALUE) ) NOCOMPRESS NOCACHE ENABLE ROW MOVEMENT / begin app_utils.drop_parameter('TNAME1_PAR'); end; BEGIN DBMS_XMLINDEX.REGISTERPARAMETER( 'TNAME1_PAR', 'PATH TABLE TNAME1_RP_PT PATHS (INCLUDE ( /abc:Msg/product/productType /abc:Msg/Products/Owner ) NAMESPACE MAPPING ( xmlns:abc="Abc:Set" )) '); END; / CREATE INDEX Indx_XPATH_TNAME1 ON "TNAME1" (XML_MESSAGE) INDEXTYPE IS XDB.XMLINDEX PARAMETERS ( 'PARAM TNAME1_PAR' ) local;
SCHEMA1:create synonym TNAME1 FOR SCHEMA1.TNAME1
Now to SCHEMA2, if we try:GRant All on TNAME1 to SCHEMA2
WE GET-> ORA-00942: table or view does not existExplain Plan for SELECT xmltype.getclobval (XML_MESSAGE) FROM TNAME1 t WHERE XMLEXISTS ( 'declare namespace abc="Abc:Set"; /abc:Msg/product/productType= ("1", "2") ' PASSING XML_MESSAGE);
While this works:
- Please tell me, what is the reason behind this and how can I overcome it. Originally all is my point of view based on this condition to fail in another schema, and not not to pick up the XMLIndexes.Explain Plan for SELECT xmltype.getclobval (XML_MESSAGE) FROM TNAME1 t
Also
Output is as:SELECT * from DBA_XML_TAB_COLS WHERE TABLE_NAME like 'TNAME1';
OWNER | TABLE_NAME | COLUMN_NAME | XMLSCHEMA. SCHEMA_OWNER | ELEMENT_NAME | STORAGE_TYPE | ANYSCHEMA | RUN
SCHEMA1 | TNAME1 | XML_MESSAGE | || || BINARY | DON'T | YES |
SCHEMA1 | TNAME1 | SYS_NC00025$ | || || CLOB | ||
-Can I change AnySchema to YES to NO for - column_name = XML_MESSAGE? Maybe that will solve my problem.
-SYS_NC00025$ is the XML Index, why not get all the values for ANYSCHEMA, RUN on it. What is causing the problem.
Please suggest... Thank you...The problem sounds familiar. Please create a SR on http://support.oracle.com for this one.
-
We all hope you are doing well.
I have a business problem to implement in ODI 11 G. It's here. I'm trying to load a target table from two sources that have the same column names. But a source is to the file format and the other is in the Oracle database.
That's what I think I'll create two mappings in the same interface by using the Union between the sources. But I don't know how the interface would connect to different logical architecture to connect to two different sources.
Thank you
SM
You are on the right track, all in a single interface. Follow these steps
(1) pull model of your data in the designer of the source file and your table model target to the target pane.
(2) all relevant columns map
(3) in the source designer to create a new dataset and choose as the UNION join type (this will create a separate tab in the source designer pane)
(4) select the new dataset tab in the source designer pane and pull your source oracle table data model in the designer of the source. All columns that are relevant to the target card
(5) make sure that your staging location is set to a relational technology i.e. in this case the target would be an ideal candidate because it is where the ODI will organize the data from source two files and oracle and perform the UNION before loading to the target
If you want to watch some pretty screenshots showing the steps above, take a look at http://odiexperts.com/11g-oracle-data-integrator-part-611g-union-minus-intersect/
-
Hello.
I'm having a problem loading and using my Adobe Photoshop CS3. This is the third time that I use this forum. I us a PC. The operating system is "Microsoft Windows 7 Home prem". I recently had to remove from my hard drive and reload the operating system with all the updates and load to the top of my existing software. All my software works except my Photoshop CS3, which I use most. I loaded the software disc and download online. The system of charge very well and activation is complete. Here are the main things that don't work properly, I have noticed so far. First of all, I can't open my camera RAW (I can with my Lightroom software, but not with my Photoshop software?). So I can't open any of my files of digital camera? Second, I can open a .jpeg file and use the Photoshop software and I can save the changes, but when I turn off my calculated the software doesn't seem to be on my computer. When I go to Windows ' search program and files "software is not located here. When I go to "Uninstall" the software of the foldername is there it is. "Photoshop CS3" but there isn't any size file to it IE 400 MB, while my software "Lightroom" on the 'uninstall' section will have a file for example size 400 MB tied to it. Thirdly, I also have a photosoftware of B + W, which operated in Photoshop; It's "NIK software - Silver Efex Pro" and it is located in the subtitle of 'filter' of Photoshop CS3. I use Silver Efex and all functions are working properly, but I can't save the file, it does not save the changes to save.
Please can you help me.
Thank you.
KEith
Try the forum for Photoshop.
-
Creating members shared in EPMA using flat files
Hi guys,.
I worked with flat files and shared members in v 9.3 with no problems.
However when I try to load shared v EPMA 11.1.2 members it does not work. In the xls file, I simply create the second rank for the shared member with storage of data as 'ShareData' and delete all other properties.
But when I load the flat file in EPMA it gives me the "Member section contains an entry duplicated for Member...". »
Is there something new to get closer to the shared members in v11? Am I missing something?
See you soon,.
Omar'IsPrimary' option will be not visible in the screen import mapping Dimension to the import profile creation. I think it's normal.
Can type you a complete error you get from the 'Import of the results' work Console a link please.
-
Reverse the metadata files in HFM
Hello
Im doing the next thing.
Im trying to overthrow a flat file, but when im trying to make the error I have this one: com.microsoft.sqlserver.jdbc.SQLServerException: Violation of constraint PRIMARY KEY 'PK_REV_COL '. Unable to insert key duplicate in the object ' dbo. SNP_REV_COL'.
Before that... IM overthrow another flat file and was a successful action, I erase that bad again vice versa, but now the reverse it show nothing.
The problem is that the reason why I have done the first time, and now I can't, is a new... everything, and why a single file shows an error and the other not?
I'll already had a problem with the reverse and HFM... we get a patch.
Best regardsProbably you specified in the file, even if the case is different from duplicate column names, ODI will throw this error.
Thank you
Fati
Maybe you are looking for
-
iPhone, iPad Air 2 not recognized by iTunes
Very frustrated right now. Given that Apple's Support is not in contact with return despite requests, the story will go here. I have Windows 10, iPhone 6 + and iPad Air 2. Last weekend I was invited to and did pass to iTunes 12.5.1.21. Plugged my iPh
-
Cannot display iMovie after update
I can import the photos, adjust the clip, crop, add music, and read in the upper left corner of the screen section. But the upper-left corner of the page is black and the slide does not open, nor the film opens here. I tried to save as a .m4v and r
-
TDMS write to the auto folder causes the flicker of the cursor
I joined a project (8.6 LV) showing this problem. When writing to a TDMS file in a folder of automatic settlement, the cursor briefly becomes a hourglass. This behavior is not seen when a folder is not monitored by LabVIEW project through AutoFill.
-
Qwest has change my email without my permission.
My internet service provider is qwest. They sent me an email that their email would be the last I would get on Window Live, (which I love). That I would then have to go to their homepage, Myquest, to retrieve my email... I'm upset, I don't like, b
-
Bad print quality with the new cartridge
I replaced the cartridge on my HP Photosmart c4680 printer a few weeks ago and the print quality looks as if it is low on ink. I followed the instructions on alignment after installation and made sure that I installed the new cartridge. There is no p