Topic: Database Administration >> Data Transfer between InterSystems Cache & Oracle.
|
Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property.
You may review the entire Oracle Certification Program Candidate Agreement online Here.
|
|
|
|
| Title: Data Transfer between InterSystems Cache & Oracle. |
| Nayeem |
Posted: Apr 19, 2007 02:14:01 AM |
Total Post: 2
Joined: Apr, 2007
|
Hi DBA's,
I am facing one problem,
We have data in Oracle Table and fetching that data from Cache Database using linkserver concept.
I am able to fetch data through Cache query in Cache Studio from Oracle, like
Cache Query:
SELECT * FROM DATAMASK.TBL_MASKED_STG;
Here DATAMASK.TBL_MASKED_STG is link Table in cache (Table of Oracle).
But if i try to do Bulk update / Bulk Insert into Cache table using link table then i am getting error.
Cache Query:
INSERT INTO Sample.TestMaskClass (ACCOUNT_ID) SELECT ACCOUNT_ID FROM DATAMASK.TBL_MASKED_STG
Here Sample.TestMaskClass is Cache Table and DATAMASK.TBL_MASKED_STG is link Table in cache.
Error Message:
[Oracle][ODBC][Ora]ORA-00928: missing SELECT keyword.
Any help or comments or suggestion for this problem...?
Thanks in Advance & Waiting for kind reply .
regards,
Nayeem.
|
|
|
Oracle Virus |
| Posted: Apr 23, 2007 07:07:11 AM | |
|
Total Post: 50
Joined: Jan, 2007
|
Hi Nayeem,
Sorry unable to reply you for long time. Hmm...I cant see anything wrong in your query. But I suggest you to keep a brace for select statement as oracle can recognize it better.
Try this:
INSERT INTO Sample.TestMaskClass (ACCOUNT_ID)
(SELECT ACCOUNT_ID FROM DATAMASK.TBL_MASKED_STG);
Regards,
Aneel Kanuri
|
|
|
|
|
Nayeem |
| Posted: Apr 23, 2007 07:13:26 AM | |
|
Total Post: 2
Joined: Apr, 2007
|
Hi Aneel,
Thanks for your reply,
Actually after some R&D i came to know that its limitation in InterSystems Cache DB. In single Query we cannot have two different Datasources.Means Get data from one table of One data source (Oracle) and insert into another table of other data source (Cache).
Any ways found other way for it.
Thanks,
Nayeem
|
|
|
|
|
| Time Zone: EDT |
Send this thread to your friend |
|
|
|
|
Forum Rules & Description
Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user
|
| |
Get FREE Magazines
|
Top 10 Forum User
|
| Murtuja Khokhar | 857 |
| Mohammed Taj | 746 |
| positive fanatic | 483 |
| Jayanta Sur | 479 |
| Vigyan Kaushik | 386 |
| Gopu Gopi | 333 |
| Gitesh Trivedi | 322 |
| Vinoth Kumar | 264 |
| neeraj sharma | 258 |
| Ramesh Jois | 246 |
|
|