on 08-02-2011 8:13 AM
Hi XI Experts,
We are facing an issue while importing a Database table into the external definition in PI 7.1.
The details are as below:
I have configured user 'A' in PI communication channel to access the database. But the table that I want to access is present in schema "B". Due to this, I am unable to view the table that I have to import in the list available.
In other words, I am trying to access a table present in a different schema in the same database. Please note that my user has been given all the required permissions to access different schema. Even then, I am unable to access the table in different schema.
Kindly provide your valuable suggestions as to how I can import table which is present in another schema but in the same Database.
Regards,
Subbu
Hai!
I have faced the same scenario and i got a sccessfull result.
Create a JDBC Receiver Channel and while Giving the connection detail give the User name and password for the Schema B.
Sure u can see the table list when you import the extenal definition.
If you not getting kimdly check whether the channel is active or stop channel and start it again.
Regard's
Preethi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If you are using DB tab as the category while creating the External Definition. The above is the only way i think the user id which is used in the JDBC Receiver channel should have the Authorization to access the Schema B. Otherwise if you have the XSD file for the table structure you can select the Category as xsd and you can import the same in the External Definition.
Regard's
Preethi.
In JDBC channel configurations, how have you written the query parameter?
You need to write:
SELECT ***** FROM <TABLE>.<SCHEMA>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
This query is used to fetch data from the table. This is fine.
But, firstly I want to import the table structure from a different schema into PI so that I can map that field to the target structure.
When I look for the tables available with Database UserID, the required table is not available in the list as it belongs to different schema.
How do I access / import a table structure present in "A" schema into PI with a user which belongs to schema "B".
We have provided all the necessary permissions to the user in schema "B" to access schema "A".
Please suggest.
Thank you.
Regards,
Subbu
If you are using PI 7.1, then you can do JDBC Lookup to import JDBC meta data (table structures from DB). Configure a jdbc receiver communication channel where you specify username and password which has permission to access schema A and Schema B of database. Specify database name in the connection string. Then you might have access to import both schema.
Please refer these links
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.