top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

convert newline character to html tag in oracle sql 11g

+1 vote
360 views

I am reading a file which has many descriptive fields of length 4000 bytes. While reading this file as a table I could not put the conditions into the source qualifier because it does not have enough space to put SQL in it.

Hence i decided to put replace newline character by spaces in a expression transformation.

I tried the following code:

REPLACECHR(0,SUPSPD_COMMUNICATION_PLAN, CHR(10)||CHR(11)||CHR(12),'<br/>')
I am getting < in the output.

How do i do this?

posted Aug 12, 2014 by Shweta Singh

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

I guess you get the error as each time SQ gets a newline character, it treats this as a new row. You probably would need to do the replacement before reading the file with Informatica. Try sed or other command line tool you have available

answer Aug 18, 2014 by Amit Sharma
Similar Questions
+1 vote

I am trying to install Informatica 8.6 server on my Windows 7 Home Edition Laptop with Oracle 11g. I am getting error message:

"Cannot start Informatica services" EXITCODE: S.

There is a long description which says:

"Use the error below and catalina.out and node.log in the server/tomcat/logs directory on the the current machine to get more information." .

When I checked catalina.out, the file is empty and node.log didn't exist in server/tomcat/logs.

Could you please let me know how to get rid of this error if have happened to come across and resolved that or know how to resolve the error?

0 votes

Teradata : JANUVIA - 50MG – TABLET - 1 BLISTER - 28 TABLET (28.TA) ORacle: JANUVIA - 50MG ? TABLET - 1 BLISTER - 28 TABLET (28.TA)

We are using code page 'ms windows latin 1 (ansi) superset of latin1' for source connection i.e. Teradata.

We are using code page UTF 8 for target

+1 vote

I have a Time column in my SQL Server table which has data like (14:00:00.0000000).

I am trying to load this type of data in Oracle table which has corresponding column datatype as timestamp. I am trying to convert the time column in SQL server to timestamp column in oracle using Informatica.

Whats the best way to do it?

0 votes

I have Informatica 9 and an Oracle database in my system. Now I want to install a SQL Server database in my system and add this database to Informatica.

Is that possible ?

Purpose: I need to migrate some of the tables from SQL Server to Oracle database using informatica.

Could anyone let me know, after installing SQL Server, how can I add this SQL Server database to informatica for creating mapping?

0 votes

I have simple informatica(9.1) mapping(one to one) which loads data from flat file to RDBMS

it take 5 mins to load to Oracle db and 20 mins to load same file in SQL Server 2008 R2.

Can there be any source/pointers for performance improvement

...