[how to] Row not being deleted from the publication when it's deleted in a subscription |
- Row not being deleted from the publication when it's deleted in a subscription
- Clients require instance name to connect to clustered instance
- MySQL failures after changing innodb_flush_method to O_DIRECT and innodb_log_file_size
- Bigdata - When do we choose NoSQL databases (Document stores, key-value stores, Column family and Graph)?
- Update row to another table using mysql trigger
- Implicitly (or proxy) convert to Nvarchar on incoming queries from legacy or 3rd party applications
- How to trace the exacy query fired in sql server
- ERROR 1136 Need help mysql
- SQL Server backup job last 5 days
- Looking for a database-design to model a availability problem (large data sets are expected) [on hold]
- Cardinality showing the nature of relationships among tables
- Cannot create an instance of OLE DB provider "OraOLEDB.Oracle" for linked server
- Mysql datatype for username of maximum 15 characters
- mysqldump freezing on a specific table
- Why would increase in innodb_buffer_pool_size slow down MySQL?
- In place upgrade from MySQL 5.5 to 5.6.11 removes all users from user table
- SSRS 2008 R2 setup issue
- How to sync MySQL database between two servers
- I would like to query a range of criteria on multiple columns in MySQL
- What is the actual difference between innodb_autoinc_lock_mode 0,1,2
- How to avoid using the IN clause in sql query used in a stored procedure
- What is the difference between int(8) and int(5) in mysql?
- Mysql innoDB write operations are extremely slow
- MySQL table relations, inheritance or not?
Row not being deleted from the publication when it's deleted in a subscription Posted: 07 Sep 2013 05:41 PM PDT We've merge replication configured in our environment(1 Publisher, 3 Subscribers) and We know by default merge replication is bi-directional. Its working fine in case of inserts i.e, if a row is inserted at publisher then it's getting updated at subscriber and vice versa. The real issue is, if row gets deleted at publisher then its getting deleted at subscriber but, if a row gets deleted in any of 3 subscribers then its not getting deleted at publisher. When a row is deleted at publisher then it's getting updated in MSmerge_tombstone(Publisher). But, in case of subscriber, the corresponding row(rowguid) is not getting updated in MSmerge_tombstone(Subscriber). I think that might be the issue, even merge delete trigger exist on these tables(Subscriber). Please help me out, as it is a production issue. Publisher(2008R2 sp1-Enterprise), Subscribers(2008R2 sp1-Standard) |
Clients require instance name to connect to clustered instance Posted: 07 Sep 2013 12:59 PM PDT We have a clustered instance, say Instance1, assigned its own virtual network name and IP, via Failover Cluster Manager. This instance is configured to listen on port 1433 in SQL Server network configuration (verified in the logs). Within our intranet, we can connect to this instance by using just the IP address, say 172.0.1.2 (as well as the FQDN) using SSMS. However, some external clients cannot connect unless they specify 172.0.1.2\Instance1 explicitly. I don't understand why this is the case. From what I understand, it doesn't make sense that the instance name needs to be specified given that the IP is assigned to the instance itself. I noted in SQL Server network configuration that the IP address assigned via Failover Cluster Manager is not explicitly listed as an active enabled address. Should that be added? |
MySQL failures after changing innodb_flush_method to O_DIRECT and innodb_log_file_size Posted: 07 Sep 2013 08:34 AM PDT We changed Later, when we tried to fix the situation and stopped MySQL (and stopped DA) we deleted log files it didn't help - databases were corrupted. We finally created a new instance, and recovered everything from backups. We had errors like these: Can someone tell me what really happened? We've seen bad things happening when you change Was setting |
Posted: 07 Sep 2013 06:20 AM PDT We have different kind of big data which can grow from Tera to Exabytes. The below are the characteristics of our data:
We are using C++(for some of the REST services), Scala(Lift Web framework) for our development. Kindly let us know when to use the below NoSQL databases?
Please share any resources ( blogs, books etc) for more details. |
Update row to another table using mysql trigger Posted: 07 Sep 2013 08:31 AM PDT I have the following 2 tables ( I need to update the rows from table company_id to table places when insert a new row on table company. For example, if I insert a new row to Places_id select form places table After select I added this trigger How can I solve this problem? |
Implicitly (or proxy) convert to Nvarchar on incoming queries from legacy or 3rd party applications Posted: 07 Sep 2013 02:26 AM PDT We have a 3rd party application of witch we don't have the source code. This application executes queries on our database without using the "N" prefix before literal strings. It does this in inserts and where clauses. So what we need is a way to translate a query like this: to this: Is there a way to implicitly force this on SQL server (2005 or higher, I guess if an upgrade is needed it would be acceptable). Otherwise, does anyone know of a 3rd party proxy that would be able to translate the queries? Building one would be costly, but I think it is feasible. Or could we use some other trick like a trigger or something? I have already checked if the 3rd party application can handle multi-byte characters in the strings that are sent and returned, that is not a problem at all. The only problem is that it's formatting the queries without using N's. (It should have been using parameters but we can't change it anyway). |
How to trace the exacy query fired in sql server Posted: 07 Sep 2013 10:22 AM PDT I am facing a problem with performance tuning. We are using an application called ARAS (one of the leading PLM software) which is using Sql server as the back end. Every time we find some data using Aras interface it interacts with SQL server and give us Response. But I am unable to find which query is being sent to SQL Server. I tried to find it using this query This was also not helping me properly. We are using SQL Server 2008 Express and ARAS 9.3 |
Posted: 07 Sep 2013 03:44 AM PDT I am working on my sql via mysql. I need help with a code. When I insert it to mysql, I get this "ERROR 1136 (21S01): Column count doesn't match value count at row 1" I look on Google, some my books that i owned and even try this Getting error 1136 in this MySQL query still at a standstill. |
SQL Server backup job last 5 days Posted: 07 Sep 2013 01:35 AM PDT We've been having this nightly backup job on SQL Server 2012 but it appends to the I noticed that I can delete several backups at once prior than I'm thinking in keeping 3 days thus deleting like this: All seems ok, but for the backup, can I create filenames like this? (note the @today in CONCAT() ) Or what methods do you employ to accomplish backups with some days history? |
Posted: 07 Sep 2013 12:47 PM PDT I am looking for a database-design to store and query information about disposability of cars in a to be designed care-sharing-community, where users can rent cars provided by other users. There will be a (proximity) search which should only show all available cars. I'll expect to have following data: Car data with general availability - set by the car owner. Rent contracts for a specific or recurring date/time, which reduces the availability. Here some example queries that should be possible:
No matter if SQL or NoSQL is used for the model, any ideas are welcome. Important: The database-design should scale well, as large data sets are expected. |
Cardinality showing the nature of relationships among tables Posted: 07 Sep 2013 08:19 AM PDT Lets say there's a table named Department and a table named Instructor. We've conditions that says :
Now the point is, if seen from the Department's angle, the relationship is of type "one to many"(coz one department can accommodate many instructors ) but if seen from instructor's angle, then the relationship is of type "one to one"(coz, one instructor can join only one department). If we implement "one to many"( from department's angle) by making a foreign key in instructor table that would refer to department table, e.g. : Instructors table : Department Table : Does these statements sufficiently satisfies both "one to one"( from instructor's table angle ) and "one to many"(from department's angle) ? or Do we need to change or SQL code to introduce "one to one" aspect too ? |
Cannot create an instance of OLE DB provider "OraOLEDB.Oracle" for linked server Posted: 07 Sep 2013 05:19 AM PDT i am having a bit of a linked server problem . I created a sql server linked server and it's been working fine for last 2 years and suddenly not working . SQL Server Microsoft SQL Server 2005 - 9.00.5324.00 (X64) Aug 24 2012 18:28:47 Copyright (c) 1988-2005 Microsoft Corporation Enterprise Edition (64-bit) on Windows NT 5.2 (Build 3790: Service Pack 2) Oracle client version Oracle - OraClient11g_home1 Cannot create an instance of OLE DB provider "OraOLEDB.Oracle" for linked server Ps : we have enabled Allow in Process in Sql Server for Oracle Provider anyone got any ideas on this and what can be done to avoid this happen again many thanks Ray |
Mysql datatype for username of maximum 15 characters Posted: 06 Sep 2013 11:19 PM PDT I currently have a database with the "user" table having username as one of the columns. I allow a maximum of 15 characters for the username in my system... Is it fine to have the username column as a varchar(15) datatype? |
mysqldump freezing on a specific table Posted: 07 Sep 2013 03:19 PM PDT I dumped a database ( When the dump was blocked: On the other hand I can dump the table This works well and quickly! The table What is the next step in investigating why I can't dump the whole database? How can I make it work? |
Why would increase in innodb_buffer_pool_size slow down MySQL? Posted: 07 Sep 2013 09:19 AM PDT 5.1.68-cll - MySQL Community Server on CentOS The system has 32GB of RAM. I increased innodb_buffer_pool_size from 10240M to 15360M (10GB -> 15GB). Time taken for a series of identical operations increased from 720 to 822 seconds (14% increase). This was the result only a single test at each setting. But 4 previous tests performed a few months ago resulted in times between 726 and 740s. I just tried running it again with 8GB, and the time taken was 719s. Why would more memory result in a slower process? EDIT: More details on process The process that I'm testing involves emptying some tables and rebuilding them from data from existing tables. I'm not sure if it's using There are no schema definition changes being made. Here is the output of And Edit by RolandoMySQLDBA Please run this query RESULT: and this one RESULT: During running of process: and: |
In place upgrade from MySQL 5.5 to 5.6.11 removes all users from user table Posted: 07 Sep 2013 02:19 PM PDT On Windows, I upgraded from 5.1 to 5.5 no problem.
All good, but going from 5.5 to 5.6:
but I get: If I look at the
Thanks. |
Posted: 07 Sep 2013 05:19 PM PDT I have installed SSRS 2008 R2 on my desktop and server. When I hit the reports link on my desktop all I get to see is this I cant create a new folder or data source or anything of the sort On the server where I am attempting to set up SSRS 2008 R2, all I get is a white screen that shows the virtual folder name in large fonts, followed by the version of the reporting services server on the next line. This is not leaving me any clues as to what needs to be fixed. On both pcs I am using the credentials of the local admin. Any clues on what needs to be fixed? |
How to sync MySQL database between two servers Posted: 07 Sep 2013 06:19 AM PDT I need to sync a MySQL database between two servers. If a new record will be added in server A, then server B fetch new record. If a new record will be added in server B, then server A fetch new record. |
I would like to query a range of criteria on multiple columns in MySQL Posted: 07 Sep 2013 10:19 AM PDT I have 3 columns in a mysql table. I'm using Innodb engine. I want to be able to search for some values on those columns and also anything close to those values. For example : We have 3 columns as "Fast" "Smart" "Sharp" and they are of type boolean/int I have 1000 records in the table, as an example, I list 5 here. and let's say we wanna search for people who are smart and sharp as 0 1 1 but if there is no record with the value of 0 1 1 we want to get the closest to it which is 1 1 1 or 1 0 1 or etc. So now when I search for it, I get the exact value, if the value doesn't exist, I won't get anything back from DB. So how can I achieve this and if I get a bunch of result, how can I sort them from the closets to my query to the feartest ? |
What is the actual difference between innodb_autoinc_lock_mode 0,1,2 Posted: 06 Sep 2013 10:19 PM PDT I would like to understand the differences between innodb_autoinc_lock_mode options 0,1 and 2 when parallel load data infiles are given. I see in "0" option, it locks the entire table and does the First transaction requested for N number of records say TX1. So when next transaction say TX2 is raised in meantime when first transaction is still getting uploaded using "load data", then it has to wait in the queue for the first one TX1 to complete. And then it sets the max(AI_column)+1 value from the table and does upload for the next set of load data. In this case it doesn't jump the Auto Increment numbers. Also I see in "1" option, it locks the entire table and does the First transaction requested for N number of records say TX1. So when next transaction say TX2 is raised in meantime when first transaction is still getting uploaded using "load data", then it has to wait in the queue for the first one TX1 to complete. And then it sets the max(AI_column)+1 value from the table and does upload for the next set of load data. And then it sets the max(AI_column)+some_creepy_jump. But I see in "2" option, it doesn't lock the entire table. Instead it keeps inserts for each process simultaneously and inserting records for which ever request falls in randomly and ends all threads with average time around (1.21 sec for 7 parellel threads using load data having 1000000 record each). In this case it has multiple transactions in mixed order. And then it sets the max(AI_column)+some_creepy_jump atlast. I'm using mysql 5.1.61 .
As my project demands multiple processes using load data for a table. And I have tested the above options and finalized to go with option 2. Kindly correct me if my experiments are wrong. |
How to avoid using the IN clause in sql query used in a stored procedure Posted: 07 Sep 2013 08:23 AM PDT Is there a better way to write the SQL other than using the IN clause in the below given SP. When i am using this IN clause, i suffer a performance dip due to large number or records involved in the User and Member tables. Kindly suggest the alternative as i don't have a full knowledge in writing SP |
What is the difference between int(8) and int(5) in mysql? Posted: 07 Sep 2013 12:19 PM PDT I found out, that if you have a field defined as INT(8) without ZEROFILL it will behave exactly as INT(5) in both cases the maximum value is or do i miss something? I found this Question: http://dba.stackexchange.com/a/370/12923
so there seems to be no difference then. |
Mysql innoDB write operations are extremely slow Posted: 07 Sep 2013 07:19 AM PDT I'm having serious performance problems with MySQL and the InnoDB engine. Even the simplest table makes writing operations (creating the table, inserting, updating and deleting) horribly slow, as you can see in the following snippet. I have been looking at htop and the long waiting times are not because of abnormal CPU load. It's almost zero, and memory usage is also normal. If I create the same table using the MyISAM engine, then it works normally. My my.cnf file contains this (if I remember right I haven't changed anything from the default Debian configuration): I have also tried to restart the server, but it doesn't solve anything. The slow queries log doesn't give any extra information. |
MySQL table relations, inheritance or not? Posted: 07 Sep 2013 06:19 PM PDT Im building a micro CMS. Using Mysql as RDMS, and Doctrine ORM for mapping. I would like to have two types of pages. Static Page, and Blog Page. Static page would have page_url, and page_content stored in database. Blog page would have page_url, but no page_content. Blog would have Posts, Categories... Lets say I have route like this: This is page, with page url that can be home, or news, or blog... That page can be either Static page, and then I would joust print page_content. But it can also be Blog Page, and then I would print latest posts as content. How should I relate these Static Page and Blog Page tables? Is this inheritance, since both are pages, with their URL, but they have different content? Should I use inheritance, so that both Static and Blog page extends Page that would have page_url? Or should I made another table page_types and there store information about available page types? |
You are subscribed to email updates from Recent Questions - Database Administrators Stack Exchange To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |
No comments:
Post a Comment