Delete one side table in replication when reinitialize subscriber
I have a transactional replication with 4 articles but when I add a new article to it , I have to reinitialize the subscription to make it work,and after that I see the status of snapshot agent , it shows everything is ok, but the
table in the subscriber side become empty !!!! why? and what should i do? it's so dangerous for me!! thank u all
Hi,
Verify the article property from Publication properties. The Action if name is in use is set to Drop existing object and create a new one by default. The destination table be dropped if it already exists at a subscriber.
For more information:
http://blogs.msdn.com/b/repltalk/archive/2010/02/23/reinitialization-ms-sql-replication-subscirber-may-cause-data-loss.aspx
Central Subscriber Model Explained by Brandon Williams
http://www.sqlrepl.com/sql-server/central-subscriber-model-explained/
Thanks.
Tracy Cai
TechNet Community Support
Similar Messages
-
SELECT
ADHOC.ATS_ESH.Entry_Num
,ADHOC.ATS_ESH.Importer
,ADHOC.ATS_ESH.Version AS [ATS_ESH Version]
,ADHOC.ATS_ESL.Version AS [ATS_ESL Version]
FROM
ADHOC.ATS_ESH
INNER JOIN ADHOC.ATS_ESL
ON ADHOC.ATS_ESH.Customs_Entry_Num = ADHOC.ATS_ESL.Customs_Entry_Num
I just need to see the MAXIMUM version number in the ESL table for each Entry_Num in the ESH table. ESH is the one side, ESL is the MANY side.Do you understand what this query is doing? Did you check the blogs I pointed you to?
The query I provided gets the latest ESL version for each custom number. So, if max ESL version is higher than ESH version, it's just a coincidence. If you only want to see rows where versions do not match, just add an extra where condition, e.g.
SELECT * FROM cte WHERE Rn = 1
AND [ATS_ESH
Version] <> [ATS_ESL
Version]
BTW, what is the type of these version
columns and what kind of data in them? If they are character columns, sorting them in DESC order will not necessary return the latest version. Can you show some samples of the data in these two columns?
For every expert, there is an equal and opposite expert. - Becker's Law
My blog
My TechNet articles -
Can you have itunes delete one star songs from HD when itunes is not set to auto sort/manage
I have a very large music collection and as i am listening to it in my house my phone allows me to rate the music that is playing. Every week or so i would like to just have itunes mass delete from my hard drive the music that is listed as one star. Is there any way to do this? Since Itunes has a very screwed up way of organizing music i do not have it listed to auto-organize my stuff.
You can, if you so wish, create a smart playist with the rule Rating is one star.
CTRL+A will select all of the items in the list.
CTRL+SHIFT+DELETE will delete all of the items from the list and the library.
If the media files are located within the designated iTunes Media folder then the original files will also be deleted.
If the media is stored elsewhere my script KillSelectedFiles could be used after pressing CTRL+A.
tt2 -
Hi,
I have deleted master data of an info object but it does not remove all the data from the SID table.
I have selected with SID's option but not all data was removed.
I am getting the error below when transporting
"SID Table /BIC/ S2QKHITIND Contains Data : Characteristic ZQKHITIND Cannot be activated. "
What needs to be done to get the charecteristic activated.
Thanks
JamesHi Selva,
Thank you for the info. I have deleted data from all the infoproviders but still get the message
The system is unable to delete all the master data as, because some of it is still in use. (See log:
Object RSDMD, sub-object MD_DEL )
Do you want to delete the data records that are no longer in use?
What does this mean. is it due to the query open in some place or something else.
While I am not able to delete the SID table entries as the delete is not active. Please help.
Thanks
James -
RSDU_UTIL_ORA/FORM TRUNCATE_TABLE for SID table deletion error.
hai friends iam facing the error when deleting the SID table of my custom infoobject "RSDU_UTIL_ORA/FORM TRUNCATE_TABLE"
its throwing the following error not allowing me to create or change with the same name .
I have deleted the data from all other related targets .Basically trying to change the technical length but sid table is not getting deleted for some reason .In rsrv checked throwed number range error solved in snum but still couldnt delete from SID table.
Goodday.are you not able to delete using opton 'Delete Master data' with SIDs?
- Purvang -
When is loaded the SID Table?
Hi,
I thought that the SID table is filled when a Cube is loaded or when the Masted Data Attribute is loaded.
But we are facing a problem with the InfoObject 0ACTIONREAS (it has the 0ACTIONTYPE as compounding).
When we load the cube it says "No SID found for value 'Z317 ' of characteristic 0ACTIONREAS".
This InfoObject has a datasource to load the Text but not the Attribute (althoug it has checked the Master data attribute).
What could it be happening?
Regards, FedericoThis is a data quality issue, it appears. You state that the message being thrown is:
"No SID found for value 'Z317 ' of characteristic 0ACTIONREAS".
If you notice, the value has a space at the end, which SAP BW chokes on, and therefore cannot generate a SID for that value if one doesn't exist. You're going to need to modify the transformational logic for the target of this Characteristic by changing it to a Formula and using the R_TRIM function, to trim the space off of the value. SAP BW doesn't allow values to have a space at the beginning or ending of a Characteristic and will throw this error when it's encountered. -
How to delete obsolete entries in SID table
I have an Infoobject (0PCA_ITEMNO) without master data and is used in a DSO. The sid table of the info object and its index has grown very large to about 207 gB. The DSO is periodically selectively deleted to hold the last 3 months data. How can I delete the the old and unused sid table entries to reduce the size.
Correct...you wouldn't want to delete the SID table values using custom code. This would potentially cause inconsistencies because you may inadvertently delete a SID value that is located elsewhere in your environment.
For example, if you have an InfoObject with SID value 1 for actual value of A1 and it's deleted. However, there is an InfoCube that has SID value 1 for this InfoObject in a dimension table.
To remove the values from the SID table for this InfoObject, your best bet is to use RSRV as stated before. -
SID's of MD object not reflected in Attribute SID table
Hello Experts,
I happened to delete the SID table of a display attribute of a MD characteristic and then re-loaded the master data. The SID's for the MD object is being created, but no SID's exist for the display attribute. I have a query having the display attribute as selection criteria and no values are being populated.
I ran an RSRV test (Elementary) for the display attribute Infoobject and it gave me the error 'Missing initial entry in table /BIC/SZ*. 'Correct Error' in RSRV didn't help.
Could you please advise on fixing the issue and having the SID table for the display attribute populated?
Thanks.Hi
Go to Se14 and rebuild SID table or adjuct the entries .
Then try to reload data to taht MD object.
2. Run RSRV for that MD object with test type master data attributes
Hope this helps.
Regards,
Reddy -
SID table in the general tab and master data/text tab
Hello Bi Experts,
For example 0material Info-object:
There is a SID table in the general tab i.e /BI0/SCOMP_CODE
There is another SID table Attribute in the master data/text tab i.e /BI0/XCOMP_CODE,here there are Nav attributes with name S__0COMPANY.
When i got 0company info-object it got its own SID table i.e /BI0/SCOMPANY
Can some body explain me what is significance of SID table Attribute in the master data/text tab and what is difference with SID Table of attribute?
Cheers,
StalinHi,
SID is surrogate ID generated by the system. The SID tables are created when we create a master data IO. In SAP BW star schema, the distinction is made between two self contained areas: Infocube & master data tables/SID tables.
The master data doesn't reside in the satr schema but resides in separate tables which are shared across all the star schemas in SAP BW. A numer ID is generated which connects the dimension tables of the infocube to that of the master data tables.
The dimension tables contain the dim ID and SID of a particular IO. Using this SID the attributes and texts of an master data Io is accessed.
The SID table is connected to the associated master data tables via teh char key
Sid Tables are like pointers in C
Tables Starting with Description:
M - View of master data table
Q - Time Dependent master data table
H - Hierarchy table
K - Hierarchy SID table
I - SID Hierarchy structure
J - Hierarchy interval table
S - SID table
Y - Time Dependent SID table
T - Text Table
F - Fact Table - Direct data for cube ( B-Tree Index )
E - Fact Table - Compress cube ( Bitmap Index )
For more info go through the belwo link
http://www.sap-img.com/bw010.htm
Regards,
Marasa. -
JSplitPane: how can I close one side of the jsplitpane?
Hi!
I have a jsplitpane component on my frame. I want to close one side of the jsplitpane when my program loads. And after some time I want to open it back..
Do you happen to know how can I do that?Either you have not read the complete thread or you have not followed instructions correctly. Instead of adding HierarchyListener on JSpliPane, you are playing with divider before realization of split pane on screen.
Here is modified code [This works 100%]:
import java.awt.*;
import java.awt.event.HierarchyEvent;
import java.awt.event.HierarchyListener;
import javax.swing.*;
import javax.swing.plaf.basic.*;
public class MySplit {
private static void createAndShowGUI() {
JFrame frame = new JFrame();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
final JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,
new JButton("first"),
new JButton("second"));
splitPane.setOneTouchExpandable(true);
splitPane.setDividerLocation(150);
splitPane.setPreferredSize(new Dimension(400, 400));
splitPane.addHierarchyListener(new HierarchyListener() {
public void hierarchyChanged(HierarchyEvent e) {
if ((e.getChangeFlags() & HierarchyEvent.SHOWING_CHANGED) != 0) {
BasicSplitPaneUI ui = (BasicSplitPaneUI) splitPane.getUI();
BasicSplitPaneDivider divider = ui.getDivider();
JButton button = (JButton) divider.getComponent(1);
button.doClick();
BasicSplitPaneUI ui = (BasicSplitPaneUI) splitPane.getUI();
BasicSplitPaneDivider divider = ui.getDivider();
JButton button = (JButton) divider.getComponent(1);
button.doClick();*/
frame.getContentPane().add(splitPane);
frame.pack();
frame.setVisible(true);
public static void main(String[] args) {
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
createAndShowGUI();
}Thanks,
Mrityunjoy -
When creating a PDF from the scanner, it only scans one side despite the settings.
When creating a PDF from the scanner, it only scans one side. I am using a fi-7160 that supports scanning both sides at once. The Scanner software is configured to scan both sides, and so are the presets in Adobe Acrobat Pro. I've only gotten the setting to work with the Custom Scan setting. Has anyone else had this problem, and what is the solution?
Additionally, the software bundled with the scanner with automatically omit the back sides of a page if it is blank. I am scanning large files with occasional double sided pages. Is there a way to avoid having to manually delete blank pages when creating a new PDF from the scanner? It takes twice as long because I'm using the OCR stabilization.Hi anne,
Could you please let me know what Acrobat and OS version are you using.
Does this happen in case of any particular PDF or all PDF files?
Try repairing Acrobat and then again check.
Hope to get your response.
Regards,
Anubha -
Slow delete on a table with one CLOB column
Hi,
I have a table which has one CLOB column and even if I delete one row from it, it takes approx. 16 seconds. Since UNDO isn't generated for CLOBs (at least not in the UNDO tablespace), I can't figure out why this is so? The CLOB has defined a RETENTION clause, so it depends upon UNDO_RETENTION which is set to 900. There wasn't any lock from another session present on this table.
The table currently contains only 6 rows but it used to be bigger in the past, so I thought that maybe a full table scan is going on when deleting. But even if I limit the DELETE statement with an ROWID (to avoid a FTS), it doesn't help:
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
SQL> select count(*) from scott.packet;
COUNT(*)
6
SQL> column segment_name format a30
SQL> select segment_name
2 from dba_lobs
3 where owner = 'SCOTT'
4 and table_name = 'PACKET';
SEGMENT_NAME
SYS_LOB0000081487C00002$$
SQL> select segment_name, bytes/1024/1024 MB
2 from dba_segments
3 where owner = 'SCOTT'
4 and segment_name in ('PACKET', 'SYS_LOB0000081487C00002$$');
SEGMENT_NAME MB
PACKET ,4375
SYS_LOB0000081487C00002$$ 576
SQL> -- packet_xml is the CLOB column
SQL> select sum(dbms_lob.getlength (packet_xml))/1024/1024 MB from scott.packet;
MB
19,8279037
SQL> column rowid new_value rid
SQL> select rowid from scott.packet where rownum=1;
ROWID
AAAT5PAAEAAEEDHAAN
SQL> set timing on
SQL> delete from scott.packet where rowid = '&rid';
old 1: delete from scott.packet where rowid = '&rid'
new 1: delete from scott.packet where rowid = 'AAAT5PAAEAAEEDHAAN'
1 row deleted.
Elapsed: 00:00:15.64From another session I monitored v$session.event for the session performing the DELETE and the reported wait event was 'db file scattered read'.
Someone asked Jonathan Lewis a similar looking question (under comment #5) here: http://jonathanlewis.wordpress.com/2007/05/11/lob-sizing/ but unfortunately I couldn't find if he wrote any answer/note about that.
So if anyone has any suggestion, I'll appreciate it very much.
Regards,
JureAfter reviewing the tkprof as suggested by user503699, I noticed that the DELETE itself is instantaneous. The problem is another statement:
select /*+ all_rows */ count(1)
from
"SCOTT"."MESSAGES" where "PACKET_ID" = :1
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 2 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 1.40 16.93 125012 125128 0 1
total 3 1.40 16.93 125012 125128 2 1
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: ALL_ROWS
Parsing user id: SYS (recursive depth: 1)
Rows Row Source Operation
1 SORT AGGREGATE (cr=125128 pr=125012 pw=125012 time=0 us)
0 TABLE ACCESS FULL MESSAGES (cr=125128 pr=125012 pw=125012 time=0 us cost=32900 size=23056 card=5764)I checked if there was any "ON DELETE" trigger and since there wasn't, I suspected this might be a problem of unindexed foreign keys. As soon as I created an index on SCOTT.MESSAGES.PACKET_ID the DELETE executed immediately. The "funny" thing is that, the table SCOTT.MESSAGES is empty, but it has allocated 984MB of extents (since it wasn't truncated), so a time consuming full tablescan was occurring on it.
Thanks for pointing me to the 10046 trace which solved the problem.
Regards,
Jure -
Issue in data replication for one particular table
Hi,
We have implemented streams in out test environment and testing the business functionalities. We have an issue in data replication for only one custom table all other tables data replications are proper no issue. When we do 100 rows update data replication is not happening for that particular table.
Issue to simulate
Update one row -- Replication successful.
100 rows update -- After 3-4 hrs nothing happened.
Please let me know did any of you have come across similar issue.
Thanks,
AnandExtreme slowness on apply site are usually due to lock, library cache locks or too big segments in streams technical tables left after a failure during heavy insert. these tables are scanned with full table scan and scanning hundreds of time empty millions of empty blocks result in a very big loss of performance, but not in the extend your are describing. In your case it sound more like a form of lock.
We need more info on this table : Lob segments? tablespace in ASSM?
If the table is partitioned and do you have a job that perform drop partitions? most interesting is what are the system waits nd above all the apply server sessions waits. given the time frame, I would more looks after a lock or an library cache lock due to a drop partitions or concurrent updates. When you are performing the update, you may query 'DBA_DDL_LOCKS', 'DBA_KGLLOCK' and 'DBA_LOCK_INTERNAL' to check that you are not taken in a library cache lock. -
Delete from two tables in one statement
Hi,
Is there a way to delete from two tables in one statement?
Actually I have two tables:
1. Base table (id, name, age)
2. Person table (id, city, street)
The id in both tables is identical.
I would like to delete using something like a join:
Delete from base, person where id=2;
Thanks
dyahavHi,
If you want to delete records both at a time them your table must use ON DELETE CASCADE. See the below example.
CREATE TABLE supplier
( supplier_id numeric(10) not null,
supplier_name varchar2(50) not null,
contact_name varchar2(50),
CONSTRAINT supplier_pk PRIMARY KEY (supplier_id)
CREATE TABLE products
( product_id numeric(10) not null,
supplier_id numeric(10) not null,
CONSTRAINT fk_supplier
FOREIGN KEY (supplier_id)
REFERENCES supplier(supplier_id)
ON DELETE CASCADE
In this example, we've created a primary key on the supplier table called supplier_pk. It consists of only one field - the supplier_id field. Then we've created a foreign key called fk_supplier on the products table that references the supplier table based on the supplier_id field.
Because of the cascade delete, when a record in the supplier table is deleted, all records in the products table will also be deleted that have the same supplier_id value.
Thank you. -
Master Data SID table path deleted
Hello BW Gurus,
I have a Master Data InfoObject. i was doing something in development and by mistake I deleted the MasterData table(I gave the master data table path in tcode se14). Now I When I go into Master data tab,I dont see SID table path anymore.
When I browse the Maintain masterdata,I see some data and when I say display data,I dont see any. I dont know whats going on with this object. Can someone tell how do i get the SID table path in the Masterdata tab of this object.
Thanks in advance
NeoTrt activating the info object in RSA1.
Ravi Thothadri
Maybe you are looking for
-
3 years ago on an older version of itunes when you could hook your ipod to a friends computer and get their songs added to your library on your ipod then take them home and add them to your computer i took some of my friends songs. at christmas i got
-
How can I get a refund on an app that doesn't work
I bought an application today and the application works on the orignal ipad on the old IoS 4 software but not the new IoS 5 software on my ipad 2. I have tried to remove the app and re-download the app incase it was corrupted, but still had the same
-
Three agent UR versions gets installed from gateway - SCOM 2012 SP1 UR4
Hi, We have a SCOM 2012 SP1 UR4 installation with several gateways that servers connect to and get installation from. We noticed that when the agent get installed on a client server it gets first the agent itself, then UR1, UR2 and last UR4. From the
-
Hello, I am new to the RoboHelp world, but I am a Programmer by nature. I would like to know if I can create a toolbar for RoboHelp so that I can pre-load it with my own formatting and tags for Paragraphs, Tables, Headings, etc. I have to make it as
-
Hot swap and JSP debugging for Weblogic in exploded format?
Hi, I'm trying to use JDeveloper for JSF development to be deployed to a weblogic server. I must say JDeveloper is a great tool for JSF development as none of the free IDE in the market can do what JDeveloper does. However, I have a question on hot s