SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Replication (2008)
 SQL Server to Oracle replication
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sonu_bariar
Starting Member

USA
4 Posts

Posted - 07/27/2011 :  12:03:07  Show Profile  Reply with Quote
I am setting up transactional replication to replicate one table from SQL Server 2008 R2 to Oracle 11g. I created the table in Oracle schema. There are some dependencies on this table and we cannot allow SQL Server to Drop and Re-Create the table in oracle, so I set the option "Keep existing object unchanged" in the "article->destination object->Action if name is in use" property in the publication setup.
But this is not working. It try to create the object and give below error.
Command attempted:
CREATE TABLE UCS_USER(
XXXXXXXXXX
(Transaction sequence number: 0x0000006800001B0800C800000000, Command ID: 5)

Error messages:
• ORA-00955: name is already used by an existing object (Source: MSSQL_REPL_ORACLE, Error number: 955)
Get help: http://help/955
• ORA-00955: name is already used by an existing object (Source: MSSQL_REPL_ORACLE, Error number: 955)
Get help: http://help/955

If I set the Option “Drop existing object and create a new one” It works.

Any help please. I want to keep the existing object unchanged.

mohanaram.g
Starting Member

USA
2 Posts

Posted - 07/06/2012 :  11:33:54  Show Profile  Reply with Quote
Hi sonubariar,
I have the same problem. Did u find out the reason why it is not working with keep the existing object unchanged.


mohanaram.g
Go to Top of Page

mohanaram.g
Starting Member

USA
2 Posts

Posted - 07/06/2012 :  11:33:58  Show Profile  Reply with Quote
Hi sonubariar,
I have the same problem. Did u find out the reason why it is not working with keep the existing object unchanged.


mohanaram.g
Go to Top of Page

sonu_bariar
Starting Member

USA
4 Posts

Posted - 07/23/2012 :  15:45:17  Show Profile  Reply with Quote
Hi Mohanaram,

Once you create the publication,run this stored procedure on publication Database to make the changes in the properties of the publication, not to generate the scripts to create the objects.

DECLARE @publication AS sysname;
DECLARE @article AS sysname;
DECLARE @option AS int;
SET @publication = N'Publication_Name';
SET @article = N'Article_Name';
SET @option = 0;

EXEC sp_changearticle
@publication = @publication,
@article = @article,
@property = N'schema_option',
@value = @option

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000