How To Use Sub Query in Informatica: Blogs Discussions Research Directory
How To Use Sub Query in Informatica: Blogs Discussions Research Directory
Hi,
Can any one guide me how to use this sub query in informatica.
Discussions
SELECT DISTINCT mfg_facility_site_name EBCDIC to ASCII
FROM hier_mfg_facility_by_wcntr hier Bad Records
Inf'Mica unable to recognize To_date(Est__Comp__Date,
WHERE NOT EXISTS (
'mon dd, yy
SELECT 'X' sessions parameter expansion
FROM lkp_mfg_facility_site lkp #of transformations in a mapping
WHERE lkp.mfg_facility_site_name =hier.mfg_facility_site_name) Union of Data in informatica
Mapping with Sub-Query
cubes.
Blog Articles
Informatica Going into Private Equity Hands and Unknown
37 Replies Territory for $5.3 billion
Informatica v IBM Information Server - the sweet suite
comparison
Unknown User replied Aug 19, 2003 0
IBM Information Server trails Informatica on the
SalesForce.com Scoreboard
Hi,
There are a number of ways to do it - assuming that you're asking about how
to incorporate such a sub-query into the sources.
The simplest way is to use the SQL Override facility in the Source
Qualifier.
Hi Stuart,
Thank you for this reply, I hope you meant to say SQL Override facility in
the Source
x
We Qualifier, is writing
have updated our ownPolicy
our Privacy SQl query in SQL Query
and encourage you Box Right??
to read it by clicking here.
yes I did that, but no break through it's not working.
Here what I followed..
Here mapping & session is successful and only the main query (i.e) SELECT
DISTINCT mfg_facility_site_name
FROM hier_mfg_facility_by_wcntr hier is getting executed , it is not
executing the sub Query
It would be great if you can suggest me or let me know how this query can be
used differently to create a mapping in INFORMATICA, as this needs to be
fixed in a very quick time
Thanks In Advance
Regards
Rajender
Hi,
Not sure problem, but you need to turn on tracing and see the sql that
informatica is generating. It may be adding its own where clause or sort.
Make sure your SQL override query uses the same names as your ports.
Your subquery looks suspect. What is 'X'? Does not map to port name!!
You can achieve same subquery functionality in your mapping using a lookup
to lookup the mfg facility table.
Jeff Larimore
Ext. 67802
Hi Rajender,
I cannot understand what 'X' is meant for.
I tried to simulate the problem with simple example, which is explained
below. Try to relate with your problem and let me know whether it helps in
any way.
Sources
------------
Related
Forrester Consulting Report: Empowered Customers Drive ...
Buy/Market/Sell/Service Smarter eBook
Avoiding the Shoebox: Managing Expenses in Small and ...
Hi Chandra,
Thank you for your reply, as such 'X' is just a value which optimizes the
query..
any way forget that I can alter my sub query with out using value 'X'
Now kindly tell me who to make this sub query run, how do you Override SQL
Query in SQ Transformation?
Regards
Rajender
One option you might consider is to just create a view based on this SQL
definition and then just source the view in your mapping.
Matt
Hi Matt,
Great Idea, I did create a view but unfortunately I'm getting this error
RR_4035 SQL Error,when the session is run
why is it so???
Regards
Rajender
Rajender,
It sounds like the port size is too small for the data being returned.
Check all of your port definitions in the source and source qualifier.
Matt
Hi Rajender,
Just check by performing LTRIM AND RTRIM for "lkp.mfg_facility_site_name"
and "hier.mfg_facility_site_name" in the subquery.
Regards,
Chandra
"Rajender, Aleti
(IE10) via To: Chandra Sekhar <email@removed
informatica-l" cc:
<informatica-l@Op Subject: [informatica-l] Re: How to use sub query in informatica
enITx.com>
19/08/2003 06:04
PM
Please respond to
informatica-l
Hi Chandra,
Thank you for your reply, as such 'X' is just a value which optimizes the x
We have updated our Privacy Policy and encourage you to read it by clicking here.
query..
any way forget that I can alter my sub query with out using value 'X'
Now kindly tell me who to make this sub query run, how do you Override SQL
Query in SQ Transformation?
Regards
Rajender
Hi Rajender,
Would like to see 5 lines before and after the error in the session log.
Regards,
Chandra
"Rajender, Aleti
(IE10) via To: Chandra Sekhar <email@removed
informatica-l" cc:
<informatica-l@Op Subject: [informatica-l] Re: How to use sub query in informatica
enITx.com>
19/08/2003 06:38
PM
Please respond to
informatica-l
Hi Matt,
Great Idea, I did create a view but unfortunately I'm getting this error
RR_4035 SQL Error,when the session is run
x
We why
haveisupdated
it so???our Privacy Policy and encourage you to read it by clicking here.
Regards
Rajender
Raj,
Paste your sql into a sql plus and try and run it. Once it works, then put
it into a sql override.
Jeff Larimore
Ext. 67802
"Larimore,
Jeffrey (CCL) via To: Chandra Sekhar <email@removed
informatica-l" cc:
<informatica-l@Op Subject: [informatica-l] Re: How to use sub query in informatica
enITx.com>
19/08/2003 06:52
PM
Please respond to
informatica-l
Raj,
Paste your sql into a sql plus and try and run it. Once it works, then put
it into a sql override.
Jeff Larimore
Ext. 67802
Hi Matt,
MFG_FACILITY_SITE_CODE VARCHAR2(10)
MFG_FACILITY_SITE_NAME VARCHAR2(30)
Kindly do suggest me
Regards
Raj
Rajender,
1. Make sure your session points to the correct database where the
source object exists
2. Make sure the session database userid has SELECT permissions on the
source object
Matt
Matt,
Regards
Rajender
Raj,
The problem is the sql. Run it stand alone using sql plus and if it works,
then send us the session log pertaining to the source qualifier.
Jeff Larimore
Ext. 67802
Hi Jeff,
Cheers
Raj
Jeffrey,
Rajender has already placed the SQL into a view definition and is
sourcing the view. The only problems I see with the SQL are that 1.) the
main FROM clause should only have one table in it, and 2.) the "SELECT
*" needs to be changed. Here is a revised version that would be valid
in Oracle syntax:
Matt
Okay,
Then it could be a permissions problem. The informatica sessions connect to
oracle with a user name. Be sure this user has select priviledges on the
tables and view.
Ext. 67802
Hi Rajender,
Did you try with LTRIM nd RTRIM which i have specified previously.
Regards,
Chandra.
"Rajender, Aleti
(IE10) via To: Chandra Sekhar <email@removed
informatica-l" cc:
<informatica-l@Op Subject: [informatica-l] Re: How to use sub query in informatica
enITx.com>
19/08/2003 07:54
PM
Please respond to
informatica-l
Hi Jeff,
Cheers
Raj
Hi Rajender,
How about thinking on the following line. Just brain storming, since we are
comparing strings.
Regards,
Chandra
"Rajender, Aleti
(IE10) via To: Chandra Sekhar <email@removed x
We informatica-l"
have updatedcc:our Privacy Policy and encourage you to read it by clicking here.
<informatica-l@Op Subject: [informatica-l] Re: How to use sub query in informatica
enITx.com>
19/08/2003 07:54
PM
Please respond to
informatica-l
Hi Jeff,
Cheers
Raj
There is no difference between using 1) two tables in the from clause 2)yes
u can also keep 1 or * it makes no difference
any way Matt I have tried keeping your modified query in my SQTrans but no
records are loaded, where as when I execute the same Query in TOAD/SQL+ I
get a result of 5 records
Any way guys thank you very much for your concern and support, it will be
great if I can have email Id so that I can send
you the full log file
Thanks a Ton...
Regards
Rajender
Rajender,
Matt
Validation Problems:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= 3D=3D=3D=3D=3D
# Order / Data type and no of ports inside the source qualifier should
match the columns in the select clause.
I have tried Jeff's suggestion yesterday itself and couldn't get through...
as of now I think using view is a better approach.. but even this is
failing..
guys can you suggest me all the possible reasons for
RR_4035 SQL Error [
ORA-00942: table or view does not exist
Thanks in advance
Regards
Raj
Raj,
SEND THE SESSION OUTPUT LOG PLEASE!!! If it says table or view does not
exist, then it is permissions problem.
RR_4035 means invalid SQL.
Jeff Larimore
Ext. 67802
Hi jeff,
A very good morning and thank you very much for your concern, as such I have
tried sending
you the session log file to you email id "email@removed"
but its getting me mailer demon can you get me you email id, any way here is
the session log file
Hi,
Is there any thing like my repository schema should have the access
privilege of my view which is coming form
another schema/database
cheers
Raj
x
We have updated our Privacy Policy and encourage you to read it by clicking here.
Unknown User replied Aug 20, 2003 0
Jeff, Matt & Chandra!!
Thanks a ton for your support finally I could break thorough the problem...I
replicated my source
schema into another DB then it worked fine..no need for a view too, SQL
override works perfectly..
But here is still the mystery what type of permission would be problem with
my original DB..
Raj,
I'm glad you solved the problem. To see what the permissions problem is go
to your Database connections and see what user Informatica uses to connect
to the problem schema. The check with your DBA to see if that user has been
granted select priviledges in all tables involved in your query. I think
you'll find that perhaps they have select on one table, but the other table
may be new and they didn't grant select on it to the Informatica user.
I never mind about problems that get solved and we know why, it's the ones
we solve and we don't know why that bother me.
Best wishes,
Jeff Larimore
Ext. 67802
Hi Raj,
It's good that your task is done. But, we didnot identify the reason for
the problem. If you find time, I would suggest you to still work on it and
find the reason.
If we know the reason then we can solve easily if any of us face the
similar problem next time.
Regards,
Chandra.
"Larimore,
Jeffrey (CCL) via To: Chandra Sekhar <email@removed
informatica-l" cc:
<informatica-l@Op Subject: [informatica-l] Re: How to use sub query in informatica
enITx.com>
20/08/2003 04:47
PM
Please respond to
informatica-l x
We have updated our Privacy Policy and encourage you to read it by clicking here.
Archive Page - http://dw.ittoolbox.com/groups/groups.asp?v=inform atica-l
Raj,
I'm glad you solved the problem. To see what the permissions problem is go
to your Database connections and see what user Informatica uses to connect
to the problem schema. The check with your DBA to see if that user has
been
granted select priviledges in all tables involved in your query. I think
you'll find that perhaps they have select on one table, but the other table
may be new and they didn't grant select on it to the Informatica user.
I never mind about problems that get solved and we know why, it's the ones
we solve and we don't know why that bother me.
Best wishes,
Jeff Larimore
Ext. 67802
Hi Jeff,
Thank you, as of now I'm even able to work out with my original database,
the session works fine only when I use
Normal mode but it fails when I use Bulk mode in the target session
properties.
What is the actual scene going behind Normal & BULK mode with different
DB's,
Thanks in advance
Regards
Raj
Hi Raj,
What is the error present in the session log when you use Bulk Mode.
Regards,
Chandra
x
We have updated our Privacy Policy and encourage you to read it by clicking here.
"Rajender, Aleti
(IE10) via To: Chandra Sekhar <email@removed
informatica-l" cc:
<informatica-l@Op Subject: [informatica-l] Re: How to use sub query in informatica
enITx.com>
20/08/2003 05:13
PM
Please respond to
informatica-l
Hi Jeff,
Thank you, as of now I'm even able to work out with my original database,
the session works fine only when I use
Normal mode but it fails when I use Bulk mode in the target session
properties.
What is the actual scene going behind Normal & BULK mode with different
DB's,
Thanks in advance
Regards
Raj
Hi Raj,
Following is the extract from Release notes of Informatica 6.1. Please go
through. Hope it helps.
CR 38672, 36211: Oracle bulk load session fails or runs in normal mode on
some versions of Oracle
When you configure a session for bulk loading and the target database is on
Oracle, the session fails when the Oracle client version is greater than or
equal to 8.1.5 and less than 8.1.7.2. When the Oracle client version is
less than 8.1.5, the session runs in normal mode.
Workaround: Apply the Oracle Threaded Bulk Mode patch (Oracle bug number
1666360), use Oracle client 8.1.7.2 or higher, or run the session in normal
mode.
x
We have updated our Privacy Policy and encourage you to read it by clicking here.
Regards,
Chandra
"Rajender, Aleti
(IE10) via To: Chandra Sekhar <email@removed
informatica-l" cc:
<informatica-l@Op Subject: [informatica-l] Re: How to use sub query in informatica
enITx.com>
20/08/2003 05:13
PM
Please respond to
informatica-l
Hi Jeff,
Thank you, as of now I'm even able to work out with my original database,
the session works fine only when I use
Normal mode but it fails when I use Bulk mode in the target session
properties.
What is the actual scene going behind Normal & BULK mode with different
DB's,
Thanks in advance
Regards
Raj
Raj,
You didn't say if both your data bases were the same, ie Oracle, SQL Server
or whatever. Bulk mode is supported for Sybase and SQL Server under 5.x,
but not for Oracle.
Basically, bulk mode uses BCP (the same thing as Oracle SQL Loader), so it
doesn't do any logging while loading and uses the INSERT with APPEND hint.
x
We have updated our Privacy Policy and encourage you to read it by clicking here.
Best wishes,
Jeff Larimore
Ext. 67802
Hi Raj,
Following Third Party Limitations (Oracle) of Informatica 6.1 Release notes
may help you. Please refer to them.
1) CR 38672, 36211: Oracle bulk load session fails or runs in normal mode
on some versions of Oracle
2) CR 35268: The Informatica Server fails to bulk load to multiple
instances of the same Oracle target
3) CR 34337: Oracle 8i sessions running in bulk mode may fail
Regards,
Chandra.
"Chandra Sekhar
via To: Chandra Sekhar <email@removed
informatica-l" cc:
<informatica-l@Op Subject: [informatica-l] Re: How to use sub query in informatica
enITx.com>
20/08/2003 05:24
PM
Please respond to
informatica-l
Hi Raj,
What is the error present in the session log when you use Bulk Mode.
Regards,
Chandra
"Rajender, Aleti
(IE10) via To: Chandra Sekhar
<email@removed
informatica-l" cc:
<informatica-l@Op Subject: [informatica-l]
Re: How to use sub query in informatica
enITx.com>
x
We have updated our Privacy Policy and encourage you to read it by clicking here.
20/08/2003 05:13
PM
Please respond to
informatica-l
Hi Jeff,
Thank you, as of now I'm even able to work out with my original database,
the session works fine only when I use
Normal mode but it fails when I use Bulk mode in the target session
properties.
What is the actual scene going behind Normal & BULK mode with different
DB's,
Thanks in advance
Regards
Raj
But guys still one final query how come it is working fine with my other
database, when the schema
is replicated from the original DB to the other. The client version of the
other DB is also 8.1.7.0.0
and server is 8.1.7.3
Thanks a Ton....
Regards
Raj
x
This thread has been closed due to inactivity.
We have updated our Privacy Policy and encourage you to read it by clicking here.
Start a new thread here
Toolbox for IT Topics on Toolbox for IT Toolbox.com
My Home Data Center Enterprise Architecture & EAI Networking & Infrastructure About
Topics Data Center Enterprise Architecture & EAI Hardware News
People Networking Privacy
Companies Development Information Management Communications Technology Terms of Use
Jobs C Languages Business Intelligence Work at Toolbox.com
White Paper Library Java Database Operating Systems Advertise
Visual Basic Data Warehouse Linux Contact us
Collaboration Tools Web Design & Development Knowledge Management UNIX Provide Feedback
Discussion Groups Oracle Windows
Blogs Help Topics
Enterprise Applications Technical Support
Follow Toolbox.com CRM IT Management & Strategy Security PCMag Digital Group
Toolbox for IT on ERP Emerging Technology & Trends Security
Twitter PeopleSoft IT Management & Strategy
Toolbox.com on Twitter SAP Project & Portfolio Management Storage Other Communities
Toolbox.com on SCM Storage
Facebook Siebel Cloud Computing Toolbox for HR
Cloud Computing Toolbox for Finance
Copyright ©1998-2017 Ziff Davis, LLC (Toolbox.com). All rights reserved. All product names are trademarks of their respective
companies. Toolbox.com is not affiliated with or endorsed by any company listed at this site.
PCMag Digital Group AdChoices
x
We have updated our Privacy Policy and encourage you to read it by clicking here.