REPLICAT: search sqlexec on a table resides on a different database
Hi all
I use GoldenGate 12 c as an ETL.
I need to search on a table resides on a different database than the target of one in a REPLICAT process and insert the records in the target database when an insert on a source table is detected.
I took a chance with sqlexec but I don't know how to operate it.
My Replicat process would have two clauses userid (a single connection to the target of access database) and the other to access a database of external research?
ggsci > edit replicat rep
Rep REPLICAT
SETENV (ORACLE_SID = DB1)
SETENV (NLS_LANG = AMERICAN_AMERICA. AL32UTF8)
Ggs_owner@db1 username, PASSWORD ggs_owner
Ggs_owner@DB2 username, PASSWORD ggs_owner
MAP, TARGET
SQLEXEC (ID insertLookup, &)
QUERY ' insert into schema1.table1 (select * from db2:schema2.tab2) where...', &
PARAMS (...)), and
I did find an example on sqlexec search against a table resides on a different database.
I would be grateful if someone colud set an example in this regard. Thank you in advance.
OGG Admin Guide 17.4 (http://docs.oracle.com/goldengate/1212/gg-winux/GWUAD/wu_customcode.htm#i1047744)
Oracle GoldenGate provides a marker system event, also known under the name of the event marker
infrastructure (EMI), which allows the Oracle GoldenGate process to make sense
action based on event record in the transaction log or in the trail (according to the)
the process data source).
---------------
As per above mention of documentation OGG, EVENTS are based on log files path or transaction recording, but in your case, it is the event of the outside world (e.g. external database) and rest of things would stay the same. In most cases, users want to use the data or find data based on recordings of the event, but in your case, the need is different and event record is so. It shouldn't be a problem.
Haddi
Tags: Business Intelligence
Similar Questions
-
Even table with values of different data controls
JDev ADF BC Web services 11.1.1.5.0
I have an array element in the user interface and two controls of data with the same set of attributes.
One is a data based VO control and another is a data bean control in which attributes will fill a web service.
I display a tabled text entry, a search button, and a table to the page.
Now, if I get the value of parameter of the Webservice, the table automatically displays table of results of the Web service data control.
And if not, the table must be empty and then it should belong the VO control data base.User af:switch for this component. A side holds the web service table and the other the vo we. The condition for the switch is the result of the web service call.
Timo
-
How to integrate the structures of different tables in different databases?
Hello
I am new to oracle... well help me with the below question...
I have the same set of attributes linked together (a, b, c and d) in two different databases A and B.
The structure of the tables at the same time the database are different, but they carry the same attributes in the same relationship.
I have to integrate these attributes to object unique db such as any update to the base tables updates my object. How can I do this and what object will be useful?
Thank youHi Arun,
Then as you say they are of different databases, we can create a link between the databases and
can create view based on the Tables.(i.e.) if the data in the base table changes the data in the view should also change in real time.
Arun, of course, the view will also change in real time, because the view is nothing more than a virtual table.
When you query on a view, he questioned the details of the * "Base Table" * only. If the data will be updated, i.e.
existing in the Base Table.Thank you
Shankar -
After spending tables and index a different tablespace, index got unusable?
Hello
I moved to table and index a different tablespace. After the many indices obtained unusable. I did not understand thiis?
How can I do still usable?
best regards and thank you?If you bâtait the index (after moving the table, by the way), then they should be usable without something extra to see.
Check this procedure only one (small) table and index if this index can be used later. If not, then you have a mystery :-)Kind regards
Uwe Hessehttp://uhesse.WordPress.com
-
How to search for a keyword in all views in a database?
Hi all:
I'm trying to search for a keyword in all views in a database. Can someone share me a query that I can reuse?
Kind regards
BMP
Published by: BMP on January 8, 2010 14:55Select owner, name from dba_dependencies where referenced_link_name = 'XXX ';
Or something like: -.
Select view_name, dba_views text where text like 'XXX % ';
-
create the table on the logical standby database
Dear administrators,
Here is my situation;
1. my primary database (where the owner of the table is "ICC" having a DBA) is used for insert/update operations.
2. the logic stdby DB (dataguard structure with MAX availability) is used to generate reports, after update tables belonged to the same "BCC" user Note that these tables is excluded from replication.
3. developers may need to create this kind of tables to generate a different kind of reports.
The problem is that when the application of standby is enabled or disabled, the ICC user is not able to create a new table, it gives ORA-01031: insufficient privileges. Note that it is not practical to ask the ADMINISTRATOR to disable "APPLY" to any table creation.
You have an idea on how to solve.
My database is path.10.2.0.4.0 10 gr 2 on Windows 2003
Thanks in advanceHere's your solution provided.
Kind regards.
-
How can we copy the tables, views, etc in one database to another?
I do not have a solid DBA experience, but was put in charge of the update and the migration of a number of tables and views across several databases.
I need a workflow better than export and import of tables from files .csv and copy and paste the code SQL of each individual view for the future.
Can someone point me in the right direction? I am happy to be reading, but have no idea where to look.What you need is Tools - Database Export or copy of the database, but if there is a lot of data, the Data Pump will be so much faster. 1 command line for export, to import 1. DP works better for selected drawing or export complete (so also ideal for backups). The export of the database of Sqldev is nice to review, add, or remove the generated script, so more for small interventions and scripting.
Have fun
K. -
How to make a GRANT previliage on a table in a different database?
How to make a GRANT previliage on a table that is in a different database (different host)?
Published by: user10980630 on April 6, 2009 05:18Create the link of database between databases and give GRANT to any table on the database
- - - - - - - - - - - - - - - - - - - - -
Kamran Agayev a. (10g OCP)
http://kamranagayev.WordPress.com -
How to create views of data from different databases tables in2
Using Oracle 10.2 g
I have 2 databases Gus and the haggis on schema Comqdhb.
Glink indicates a link of database between Haggis and Gus
In Gus, there is school that contains columns with same name upn, grade, subject, student of tables...
STUDENT
UPN
academicYear
Object
Object
GRADE
examlevel
grade
SCHOOL
SN
In HAGGIS raising tables, grade, teacher containing columns upn... desc below.
STUDENT
UPN
GRADE
grade
UPN
academicyear
level
Create views in your database HAGGIS who join their all the qualities of the review. You should have a point of view that will produce the following relationship:
examGrade (upn, subject, examlevel, sn, rank, academicYear)
So I need to create a view that gets the data from the tables in the databases.
create view as examGrade (upn, subject, examlevel, sn, rank, academicYear) like some s.upn
But I don't get the selection of a column of 2 tables in different databases
I mean if I said
Select the UPN in comqdhb.student@glink,comqdhb.student;
Select the upn name in comqdhb.student@glink,comqdhb.student
*
ERROR on line 1:
ORA-00918: column ambiguously defined
Help me, thank you.Hello
Rider wrote:
The issue is that I can't understand that I should create the view by the union of the haggis and the two gus data or only haggis.
the reason I believe I need to combine the two is mentioned * "" create views in your database schema HAGGIS who join their all the qualities of the review. ". *
By the mention of creating views and who join their all the qualities of the review, it probably means to obtain the data of the GUS and HAGGIS.This is my interpretation of the assignment, too.
If you ask just the tables on Gus, you will get the ranks of three of the four schools: it's not all examination classes.
If you ask just the tables on Haggis, you will get the ranks of any of the four schools: it's not all examination classes.2nd prob is that if have decided to create a view that gets the data from these two gus and therer haggis would be a lot of duplication involved due to the cross product
Why would there be "repetition involved due to the cross-product"?
If the quuery of Gus produces 100 lines, the request of product Haggis 30 rows, then the UNION of the two will have 100 + 30 = 130 lines (assuming, as you say, each student is at school only one).the query I wrote is
Create view examGrade (upn, subject, examlevel, sn, rank, academicYear)
as
Select distinct s.upn as upn, g.subject as topic,
g."LEVEL" as examlevel, g.grade as rank, to_number (g.academicyear) as academicyear
of s comqdhb.student, comqdhb.grade g
s.UPN, sb.subject, g.elevel, g.grade, s.acyr select Union
of comqdhb.subject@glink sb,comqdhb.student@glink s,comqdhb.gradevalues@glink g;You should not write, not to mention not formatted zip code. I have a little time I can devote to answering questions in the forum. Do you want me
b spend this time formatting your code, so I can understand the question, and no time to answer, or
b spend only a little time reading understanding your code and spend most of my time to help you?
I would prefer (b), but the choice is yours.
See the statement that I posted in my last post for an example of the formatted code. You see how it appears in a box with a police fixed-width, and multiple spaces are printed? This is because I typed {code} (all small letters), before and after the section I wanted formatted.At least put each table in the FROM clause on a separate line, so it is easy to know if you have enough join conditions.
If you have N tables in the FROM clause, you almost always have at least N-1 join conditions that specify how the tables are linked together. For example, if talk you about two tables, quality and student, you expect to see a join condition that tells you when you have data in a table, how to find related data in the other table, such asg_gus.upn = s_gus.upn
No no no join conditions will cause "repetition involved due to the cross product.
I downloaded my info here
http://www.upload4free.com/download.php?file=44201983-School_ExamGrades.PDF
http://www.upload4free.com/download.php?file=184648736-ExamGrades_Case_Study_2008FINAL.PDFSorry, if there is data as long as you can't post here, there is much too much for me to read.
Make a sample set, containing a few (maybe five) students and a few shades of each student. It is fine to copy a few lines of your actual data.That's all the time I have for today. I can't wait to get the data and formatted requests.
-
Limit search / replace on a table or a spreadsheet
Is it possible to limit the command find / replace for a selected table or spreadsheet (tab). When I try, search numbers in the entire workbook (all tabs). Excel do not have this limitation. Super annoying, especially since the soft seems to jump from a tab to the tab before answering all the tables in a tab.
Hi Ty,
Short answer: feature not available.
By the numbers, "Worksheet", short for "spreadsheet" refers to the entire document, which may contain several "leaves", each of which can be consulted by clicking its tab at the top of the workspace.
With the previous version, Numbers ' 09 (version 2.x) Find could be confined to the sheet current, or could search the entire Document. This feature (and many others) did not appear in the new numbering.
Many extra features have been added to the new application, and have added several new (and useful) features that were not in Numbers ' 09.
Unfortunately, the possibility of limiting a search to a single sheet or a single table is not (yet) a feature support 3 digit.
If you want added, go to the menu number (in numbers), select provide feedback numbers and make your request.
Kind regards
Barry
-
Search index in a table 2D in a range
Hello.
I have two tables 2D (9 x 9) and I would like to find clues of an element that is within a specific range. For example, ±15% of the value I'm looking for. I found and implemented research Array.vi 2D, it works well, but it is possible to configure only one number to search, not a range. So, I'm stuck at this point.
Any help is very appreciated!
Thank you.
-
Poor search performance clustered with table of singles (100 k)
In a data entry project, I created a data type to store regular data. I have a cluster (see photo) which consists of a name, StringData, Numericaldata and ArrayOfSinglesData (predefined 100points k). Thus, every piece of data can be a scalar string, scalar number or an array of numbers.
I then do a picture of this for all of my variables, maybe 150 or more.
Works well, but the performance when adding new data (search for the exact name) is pretty poor. Very high CPU and many even page faults for the slow connection like 1 to 10 times per second.
The entrance to the data add method is an array of (stringname, DataString). So for each new data I loop over all the variables, find the one with the correct name string and add new data (replce the scalar chain and the number, add to arrayOfSingles).
Given that I have 150 variable, as I thought a linear search should be ok, but probably the program moves also around 100 k singles for each comparison, or it's my idea at least.
Can you suggest which is a good thing to do to improve performance?
I added a search binary smarter, but it was necessary to sort variables, and since I have two names for each variable (called internal and external) that I use when you add, it helped only for half of the research.
If I find the time I would like to divide the cluster so that all ArrayOfSingles are separated, but maybe you can tell me immediately if it is useful?
(Labview, 2012sp1)
Like Gerds link watch I suppose you're looping in the table looking for your name?
I just tested, and using DVR to extract only the ID and grabbing then a single element are fast enough. I will attach my test so you can try it for yourself.
/Y
-
Noob question to try to replicate the rows in a table
Simplification of the problem is that I have a table with user_id, name, year where useridentifier is pk. I would like to take advantage of all the lines that correspond to year = 2008 and insert them into the same table, but start the user_id a number and year = 2009.
I know that this does not work, but that's what I want to do in noob-code:
INSERT in the TABLE)
user_id, name, year
) (VALUES
SELECT User_id_seq.nextval after starting at 3500, name, 2009 of the same table to insert in the place where year = 2008
);
I considered using a temporary table, I've also seen mention of sliders, but do not understand what they are. I'm really, really new to Oracle and SQL in general, but am familiar with programming and shell scripts. I know more in-depth research could land me what I want, but I think my search syntax would be just as weak as my knowledge of the subject. I just think that it's something so basic and easy that my research are not using the right conditions to catch a shot.Hello
is a fixed number practice INSERT INTO TEST_1 (SELECT t.user_id +
, t.NAME, (t.YEAR + 1) FROM TEST_1 T WHERE t.YEAR = 2008); COMMIT; Kind regards
-
How can I search within a cluster table?
I have a cluster that contains a control channel and a DBL control.
A table consists of the latter.
The table looks like the lines below.
'min' 3.55
10.33 "max".
7.33 "average."
How can I retrieve the value of 'min' without having to inspect all the elements of this array in my LabVIEW code?
In C, C++ and java, there is 'map', but it doesn't seem to be an equivalent to the card in LabVIEW.
Try to give a peek here:
http://forums.NI.com/T5/LabVIEW/how-do-I-create-an-associative-array/TD-p/764454
Kind regards
Marco
-
Hello
I'm looking in a logging table (T1)
(a) the early line for each 'name '.
(b) these names without any entry in the table of logging. Possible names are defined in table T2.
I have a solution (see below), but I think that there must be a more adequate.
Any help is appreciated.
Thanks, Hans
Here are the definitions of table;
CREATE TABLE 'T1' ('NAME' VARCHAR2 (20 BYTE) 'INFO', DATE 'LOG_DATE', 'STATUS' VARCHAR2(20 BYTE), VARCHAR2 (20 BYTE));
CREATE TABLE 'T2' (VARCHAR2 (20 BYTE) 'NAME');
And some test values
Insert into T1 (NAME, STATE, LOG_DATE, INFO) values ('A', '0', to_date ('14.12.2015 12:09:51 ',' DD.)) MM YYYY HH24:MI:SS'), ' (INFO A 0');
Insert into T1 (NAME, STATE, LOG_DATE, INFO) values ('A', '1', to_date ('14.12.2015 12:10:16 ',' DD.)) MM YYYY HH24:MI:SS'), ' (INFO A 1');
Insert into T1 (NAME, STATE, LOG_DATE, INFO) values (' B ', 1', to_date ('14.12.2015 12:10:38 ',' DD.) ") MM YYYY HH24:MI:SS'),'INFO B 1');
Insert into T1 (NAME, STATE, LOG_DATE, INFO) values (' B ', ' 0', to_date ('14.12.2015 12:11 ',' DD.) ") MM YYYY HH24:MI:SS'),'INFO B 0');
Insert into T2 (NAME) values ('A');
Insert into T2 (NAME) values ('B');
Insert into T2 (NAME) values ('C');
My solution:
with a (too)
Select t1.name, max (log_date) MaxLogDate from T1 group by name
),
b like)
Select t1.name, t1.status, t1.log_date, t1.info
Of
a, t1
where
T1. Name = B.SID and
T1.log_date = a.MaxLogDate)
Select t2.name, b.log_date, b.status
b outer join t2 on t2.NAME = b.name right
b.name order;
What gives these results:
'NAME '. "LOG_DATE. 'STATUS '. « A » "14.12.2015 12:10:16. « 1 » « B » "14.12.2015 12:11. « 0 » « C » "" ""
using the rank function
Select t2.name, t.log_date, t.status
de)
SELECT t1.name, t1.log_date, t1.status, row_number () over (partition by t1.name t1.log_date desc order) rn
from t1
) t
join right t2 on t2.name = t.nom and t.rn = 1
order of t2.name
Maybe you are looking for
-
Can I get the fingerprint button, set up my normal button
I want to get the new home finger print button, but I don't know how
-
I have the pavilion DV8 that I love him and all, but sometimes the screen turns off for seconds (empty) and back on with a message at the bottom of the bar saying that nvidia driver collapsed tasks respond and recovered? so please help with the way f
-
HP Compaq 15-s103TU: realtek
I guess I have an OS 32-bit but not sure. Anyway, I can't connect to the internet. Troubleshooting told me that the Realtek RTL8723BE 802.11b/g/n wifi adapter has driver or hardware related problems. There is no previous version of the driver that I
-
Why are my @ key symbol and "key on my keyboard.
The only thing wrong with my keyboard, it is that these two symbols are swapped around. I should also have the symbol of the UK book on my 3 key, but it seems like the hash symbol. I have the most updated driver for the keyboard and troubleshooting c
-
Appearance and themes to people with disabilities
Nobody is able to change their appearance or themes on this pc, it says it has been disabled. I deleted is probably something at some point anyway to fix this?