Can we capture changes made to the objects other than tables using streams
Hello All,
I have setup a schema level streams replication using local capture process. I can capture all the DML changes on tables but have some issues capturing DDL. Even though streams are used for sharing data at different or within a database I was wondering if we can replicate the changes made to the objects like views, procedures, functions and triggers at the source database. I am not able to replicate the changes made to the views in my setup.
Also, when I do a "select source_database,source_object_type,instantiation_scn from dba_apply_instantiated_objects" under the column 'object_type' I just see the TABLE in all the rows selected.
Thanks,
Sunny boy
Hello
This could be a problem with your rules configured with capture,propagation or apply. Or might be a problem with your instantiation.
You can replicate Functions, Views, Procedure, Triggers etc using Streams Schema level replication or by configuring the rules.
Please note that the objects like Functions, Views, Procedure, Triggers etc will not appear in the DBA_APPLY_INSTANTIATED_OBJECTS view. The reason is because you do a schema level instantiation only the INSTANTIATION_SCN in DBA_APPLY_INSTANTIATED_SCHEMAS is accounted for these objects. At the same time tables would get recursively instantiated and you would see an entry in DBA_APPLY_INSTANTIATED_OBJECTS.
It works fine for me. Please see the below from my database (database is 10.2.0.3):
on capture site_
SQL> connect strmadmin/strmadmin
Connected.
SQL> select capture_name,rule_set_name,status from dba_capture;
CAPTURE_NAME RULE_SET_NAME STATUS
STREAMS_CAPTURE RULESET$_33 ENABLED
SQL> select rule_name from dba_rule_set_rules where rule_set_name='RULESET$_33';
RULE_NAME
TEST41
TEST40
SQL> set long 100000
SQL> select rule_condition from dba_rules where rule_name='TEST41';
RULE_CONDITION
((:ddl.get_object_owner() = 'TEST' or :ddl.get_base_table_owner() = 'TEST') and
:ddl.is_null_tag() = 'Y' and :ddl.get_source_database_name() = 'SOURCE.WORLD')
SQL> select rule_condition from dba_rules where rule_name='TEST40';
RULE_CONDITION
((:dml.get_object_owner() = 'TEST') and :dml.is_null_tag() = 'Y' and :dml.get_so
urce_database_name() = 'SOURCE.WORLD')
SQL> select * from global_name;
GLOBAL_NAME
SOURCE.WORLD
SQL> conn test/test
Connected.
SQL> select object_name,object_type,status from user_objects;
OBJECT_NAME OBJECT_TYPE STATUS
TEST_NEW_TABLE TABLE VALID
TEST_VIEW VIEW VALID
PRC1 PROCEDURE VALID
TRG1 TRIGGER VALID
FUN1 FUNCTION VALID
5 rows selected.
on apply site_
SQL> connect strmadmin/strmadmin
Connected.
SQL> col SOURCE_DATABASE for a22
SQL> select source_database,source_object_owner,source_object_name,source_object_type,instantiation_scn
2 from dba_apply_instantiated_objects;
SOURCE_DATABASE SOURCE_OBJ SOURCE_OBJECT_NAME SOURCE_OBJE INSTANTIATION_SCN
SOURCE.WORLD TEST TEST_NEW_TABLE TABLE 9886497863438
SQL> select SOURCE_DATABASE,SOURCE_SCHEMA,INSTANTIATION_SCN from
2 dba_apply_instantiated_schemas;
SOURCE_DATABASE SOURCE_SCHEMA INSTANTIATION_SCN
SOURCE.WORLD TEST 9886497863438
SQL> select * from global_name;
GLOBAL_NAME
TARGET.WORLD
SQL> conn test/test
Connected.
SQL> select object_name,object_type,status from user_objects;
OBJECT_NAME OBJECT_TYPE STATUS
TEST_VIEW VIEW VALID
PRC1 PROCEDURE VALID
TRG1 TRIGGER VALID
FUN1 FUNCTION VALID
TEST_NEW_TABLE TABLE VALID
5 rows selected.
These Functions, Views, Procedure, Trigger are created on the source and got replicated automatically to the target site TARGET.WORLD. And note that none of these objects are appearing in DBA_APPLY_INSTANTIATED_OBJECTS view.
I have used the above given rules for capture. For propagation I dont have a ruleset itself and for apply I have same rules as of the capture rules.
Please verify your environment and let me know if you need further help.
Thanks,
Rijesh
Similar Messages
-
How to track changes made to the standard objects by SAP during upgrade ?
Hi All,
Can any one of you please let me know if there is any straight forward method to find any change made to the standard objects by SAP in different versions ?
Like for eg, during upgrade from 4.6c to ECC 6.0.
Thanks in advance.> For eg , if SAP has made any change in the standard transaction IE02, in ECC 6.0 how will we come to know those changes?
There are two sources for that:
The "Solution Browser" (http://solutionbrowser.erp.sap.fmpmedia.com/) which lists the differences between source and destination release and the release notes (http://service.sap.com/releasenotes). You'd need to read here all those from 4.6 to ERP 6.0 (so 4.7, ECC 5.0 and ERP 6.0) to find out the behaviour changes.
Markus -
How to Track the changes made to the custom table field value
I want to track the changes made to the custom table field value in table maintenance generator.please help me it is very urgent
Thanks & Regards,
KrantiHi Satya,
These are the steps you've to do.
1. Enable the change document flag in the data element level for the fields of the tables you want to monitor.
2. Go to transaction SCDO. Create a new change object, and add your table to this object. After generation, you'll get a function module.
3. Call this function module in the table maintainence generator screen, after the data is saved to the database table. This function module automaticallly writes the changes, with the old and new values, and the fields that were changed to the tables CDHDR and CDPOS.
4. You can keep track of the changes made to the table by monitoring these tables.
Regards
Anil Madhavan -
Report for abserving changes made to the customer master and moniter
Report for abserving changes made to the customer master and moniter and detail
Please send with t. code.Hi Dhari,
Well the requirement seems very simple but its not as simple as it looks.
i have an idea not sure whether it gonna work or not. you need to build a history cube as if i understand your requirement then for any selected period you wanna see the change in wage type or pay rate for each employee if any.
1. pick up an cube that builds on emp transaction data.
2. add the 0empoyee Md, wage type and pay rate from MD to the cube and fill the cube
3.so now every day or in scheduled time interval the MD will load and the corresponding the TD will be loaded to the cube.
4. create a info object say indicator and add it to the cube
5.while loading the data to the cube everyday in tranformation check if for same employee there is a change or not in the wage type and pay rate. If so set the indicator to 1.
4.now build one more cube for holding the changed records from this cube and call it say zhrchange
5. now pull the date, year and related emplyee information for the emplyee to the zhrchange for those with indicator 1.
6. before the next load happen, rememrbe to set the indicator to 0 before checking the conditoin in the transformation routine , so that only if the conditoin satisfy then only it will be 1 else it will be 0.
now the cube zhrchange has all the changed records with time stamp and you can base your query on that to get the changed values in specific time period
hope this helps. -
How to trace specific changes made to an object?
Hi experts,
Is there any log or trace file in the SAP Portal where to check specific changes made to an object by an administrator ? (i.e. current and former value for "Maximum Automatic Height" iview property, who changed that value, when...).
Thanks in advance.Hi ,
As you told some changes identified. so navigate to corresponnding portal obejcts and find modified and last changed by similar properties in the property editor object.
portal activity reports gives how many users visted specific pcd object but not who visited. You can use pcd filter to compare properties.
Regards,
Koti Reddy -
Tracking changes made to the finance quotation(CRMD_ORDER) line item
Hi All,
I want to track or identify changes made to the line item of a Finance quotation in Transaction CRMD_ORDER. User may change any where(any tab) at line item level.
I found that CRM_ORDER_READ function module has one import parameter IV_ONLY_CHANGED_OBJ. I tried to make use of this, but could not identify the changes.
Appreciate if anyone can provide me a better solution.
Thanks in advance.
Regards,
PrasadHi Anirban,
I'm developing some program, i need some FM or sample code to findout the changes made to the line item. Not in the GUI.
Thanks and Regards,
Prasad -
Tracking the changes made to the custom table field value
Hi all,
can we track the changes made to the custom table field values. if yes..plz specify how it can be done.
Example: if i changed the value of field 'NAME' of table 'YYHCUSTOMER'. i would like to know the old value and the new value of the field. For this, I set the flag 'LOG DATA CHANGES' in the technical settings of the table 'YYHCUSTOMER'.-> try TA: SCU3
regards Andreas -
Changes made in the WAD web template is not replicating on web browser
Hi,
We are using BI 7.0 WAD. Suppose if i create a one web template and if i run it ...it is working fine.
If i change the present web template and if i do change anything on the present web template and if run this web template it is giving the previous result....it is not reflecting the present changes.
The changes made in the WAD web template is not replicating on web browser result.
Thanks in adv
pinkyJust to add.
WAD templates are stored as HTML in the HTTP cache.
Whenever you make changes to the template - it is good practice to delete / invalidate the HTTP Server cache.
This can be done from
SMICM --> Goto (menu bar ) --> HTTP Server cache --> Invalidate --> GLobal
ust to make this thread complete..
However this is usually done for 3.x web templates since they run off the ABAp stack - not too sure about the JAVA stack - guess portal cache has to be cleared too.. -
How can we log changes made in RSA1 in BW/BI
How can we log changes made in RSA1 in BW/BI ?
Please advise.
Regards,
ArchanaHi Arun,
Thanks for your reply.
Basically I wanted to get the log for a particular user when executing RSA1 tcode (the user has change access).
Do we have any table which records the RSA1 changes.
Thanks.
Regards,
Archana -
Oracle Trigger - How can I capture and correct on the fly ORA-01847
Oracle Trigger - How can I capture and correct on the fly ORA-01847 day of month must be between 1.
I have a table that has a date column. Sometimes an invalid date is passed and I'd like to capture and initilize the incoming value to null and have it inserted without error. Currently I get ORA-01847 day of month must be between 1.
Example:
create table ep1
col_1 number,
col_2 date
Now if a user does the following, I want no error to occure but rather for the date value to be set to null and inserted.
insert into ep1 values('1', '41-JAN-13')
The insert may come from any client and I can't change the calling code hence can't used a precedure to replace the insert. I'm guessing there is some way to catch system level exceptions on the DB level. This doesn't need to be nice, it just needs to work.
Here is the question on experts exchange. I'm told there is no way, but there must be. After all the exception is on a DB system level and I would think one could extend or override these, or disable them.
http://www.experts-exchange.com/Database/Oracle/PL_SQL/Q_23045306.htmlSQL> declare
2 wrong_month exception;
3 pragma exception_init (wrong_month, -1843);
4 begin
5 begin
6 insert into emp (empno, hiredate)
7 values (2345,to_date('13/25/81','MM/DD/YY'));
8 exception
9 when wrong_month then
10 dbms_output.put_line('I caught the bad month');
11 insert into emp (empno, hiredate)
12 values (2345,null);
13 end;
14 end;
15 /
I caught the bad month
PL/SQL procedure successfully completed.
SQL>
SQL> select * from emp
2 where empno = 2345;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
2345Note the 1843 error vice 1847. It can be done outside of a trigger. -
The changes made in the WAD web template is not replicating on web browser
Hi,
We are using BI 7.0 WAD. Suppose if i create a one web template and if i run it ...it is working fine.
If i change the present web template and if i do change anything on the present web template and if run this web template it is giving the previous result....it is not reflecting the present changes.
The changes made in the WAD web template is not replicating on web browser result.
I went to transaction SMICM, then choose "Goto" from the top menu. From there, go to HTTP Server Cache, then choose Invalidate, then choose Global in system. With this thing also it didnt slove.
thanksClear your browser cache also and see if the changes are visible.....
Arun -
How to find out the changes made to the customized table entries
Hi Team
i want to know the changes made to the customized table. i have a 'Z' table in my production system, in that table i would like to know whether any table entry is deleted or not. if at all there is any deletion happened, i want to know who had done it.
So i request you to please let me know the procedure for the same.
Thanks
RajHi Nagaraju,
Go to Table Maintenance (SM30)- Display mode-- Utilities-- change Logs. Give the Date range. before giving the date range click on display status , this will show you If the display is active or not. Kindly please let me know If you need any more information on this.
Regards
Ram Pedarla -
I keep getting a warning stating that the document could not be auto saved in pages. The file has been changed by another application. Then it says click save any way to keep your changes and save the changes made by the other application as a version, or click revert to keep the changes from the other application and save your changes to a version.
What in the heck does all that mean, and why are they trying to behave like a Windows product or a Microsoft office product. I just don't get it.
Why is another application changing my documents? It's like they've created a virus within their own programs. It's a pain in the neck and makes no sense.I am also having the issue of a warning saying "could not be auto-saved in Pages. The file has been changed in another application. I then hit "save anyway", the warning will go away for a time, sometimes minutes, sometimes hourr, but then the warming reapprears saying the same thing. This is not the case with all Pages documents but it is the case with many.
Working with a Retina Macbook Pro and current software
These are newly created documents -
Changes made in the PODCAST GET INFO window do not "stick"?
When working with podcasts, changes made in the GET INFO window do not "stick" for newly downloaded podcasts? In other words the changes are not persistent for newly downloaded podcasts. I want the changes to apply to past, present, and future podcasts.
thats difficult to say without seeing the code in the template.
when you dont supply any _tempate value in the url, the system by default uses
WEBREPORTING_SELSCREEN template.
your po_selscreen may be a copy of this and modified to change the look and feel or something like that. compare these two and see whats causing the selscreen from appearing completely -
Will changes made to the white balance of my .mts files made in Lightroom
Will changes made to the white balance of my .mts files made in Lightroom be transferred with the file when I open in Premier Elements
If the changes have been applied and output as a final file, then yes. But if you're just editing the file in Lightroom and you haven't saved the finished file, no.
Maybe you are looking for
-
Dreamweaver 8 help please!
I'm having an issue with Dreamweaver 8, hope someone familiar with the program can help me. I've been neck deep in a website project for a client of my wife's work for the last couple of months now. I'm old school and code everything by hand in a pla
-
Free Visual Composer session for BPM Users (and win an iPod!)
Hello to all BPM fans and users! We would like to invite you to a free online session that focuses on creating UIs for your human tasks in BPM, using Visual Composer ! Forget all these Web Dynpro APIs and focus on what's really important - your user.
-
In adobe premiere cc 2014 , in the version for Apple , there is the " dynamics" in the audiometer / amplitude and compression/dynamics. In the same version for PC , there is no option. Somebody is also having this problem ? tks
-
After I turned on my mac, it did not have login screen. It just became a blue screen. Then, I googled sloutions, but non of slotuions worked for this problem. I tried "Safe Mode", Reset the Parameter RAM, and Command-S, it were failed. My system is s
-
Mac OS X 10.7, JTDS Drivers, and Windows Authentication
I'm trying to connect to a Microsoft SQL Server using JTDS 1.2 drivers loaded to SQL Developer via the third-party JDBC drivers preference. This configuration works with other applications, and I'm able to contact the server, but the Windows Authenti