[how to] MSSQL - Can a partitioned table span on multiple files across different file groups? |
- MSSQL - Can a partitioned table span on multiple files across different file groups?
- Remove Mac OSX Lion pre-installation of PostgreSQL
- DBCC CHECKDB command creating database file with same name but with space character in extension
- BEFORE INSERT trigger in MySQL
- Having a PostgreSQL database exposed to the internet
- How to rebuild entire MySQL data after server re install?
- How can I model this problem in a graph database?
- What's the practice to generate long user id like those on Facebook?
- User roles and permissions
- In place upgrade from MySQL 5.5 to 5.6.11 removes all users from user table
- SSRS 2008 R2 setup issue
- SQL Server Import Job Removed Data After Job Failed
- Get all the database in db2 through web
- Database design for an E-commerce website
- How to sync MySQL database between two servers
- I would like to query a range of criteria on multiple columns in MySQL
- Backing up a 400-500 GB database on MySQL/Amazon RDS?
- What is the actual difference between innodb_autoinc_lock_mode 0,1,2
- Why would mysql "show global status" query be taking 15 minutes?
- Modify MySQL foreign key related column without dropping foreign key relation
- Is there a way to export Oracle's UNDO?
- 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?
MSSQL - Can a partitioned table span on multiple files across different file groups? Posted: 09 Jun 2013 07:39 PM PDT In SQL 2008 and above, if a table is partitioned, can it span across multiple files across multiple filegroups? Thanks |
Remove Mac OSX Lion pre-installation of PostgreSQL Posted: 09 Jun 2013 12:44 PM PDT I'm running Lion 10.7.5, and I'm trying to install Postgresql 9.2.4 for use with Django. I have hit countless roadblocks and errors, so I would like to start with a totally clean slate. I did a What is the best method for doing this? or, is this definitely not recommended? Note: I do not have a postgresql uninstaller app, so I'm interested in which files I need to manually delete (unless there's a better way of course.) |
DBCC CHECKDB command creating database file with same name but with space character in extension Posted: 09 Jun 2013 08:32 PM PDT I am running simple But when i execute same command on the live server the command executes without any error, but it creates one extra file int the same location as my mdf file. For instance, if my mdf file name is Whats wrong here? |
BEFORE INSERT trigger in MySQL Posted: 09 Jun 2013 06:29 AM PDT I am new to MySQL and I'm having problems with a I have a table named What I want to accomplish is only rows with a date between I am using MySQL version 5.5.24. This is the code: |
Having a PostgreSQL database exposed to the internet Posted: 09 Jun 2013 04:59 AM PDT I've seen on DBA and other sites that exposing a database to the Internet is a particularly bad idea, but I noticed that PostgreSQL has SSL-certificate-only authentication. Does this make it any safer to expose a database to the internet (cert-only auth from non-localhost connections) or would it still be better to establish a VPN, or tunnel through SSH etc? If the latter is safer, what exactly makes it safer? I feel like I am overlooking something glaringly obvious in this regard. I've set up a handful of databases before but never actually needed to set one up that requires some sort of remote administration (“remote” in this case meaning over the Internet or WAN rather than a LAN). |
How to rebuild entire MySQL data after server re install? Posted: 09 Jun 2013 05:21 AM PDT I have a MySQL server running with multiple databases in a 32 bit environment. I need to rebuild my system to a 64 bit environment. Is it possible to replicate the entire MySQL databases, users, privileges, settings, etc. after the rebuild? |
How can I model this problem in a graph database? Posted: 09 Jun 2013 01:09 AM PDT I have a project that I'm working on where I extract data from PDFs and map/visualize the relationships between the extracted pieces. Here's an example of my problem: How can I model this in a graph database like Neo4j? I would like to be able to be given one piece of data (like a person's name) and find all related (images, co-mentions, authors, etc.) at up to 10 depth. Here's what I'm thinking for the structure, but I'm not sure if it's a good approach: (this isn't any kind of actual syntax) Is this the right way to structure this data in a graph database? |
What's the practice to generate long user id like those on Facebook? Posted: 08 Jun 2013 10:54 PM PDT Now I am about to launch a site and I have trouble coming up with a way to create long user id(e.g. 4000002). Do I set id to auto-increment(Starts at 0) and then add something(e.g. 4000000) to this id and put this new number in a new column in my table? Does any body have a better practice to achieve this? Thanks in advance! |
Posted: 09 Jun 2013 05:59 AM PDT Look at the attached graphic. I'm trying to keep this as simple as possible. Basically I want to have multiple admins(or superusers) who own regular users who own sites.
I don't know if I should have What's the best way to do this simply? P.S: I know the graphic has User2 under site1 and site2 but I don't need it that complex. Same users for same site but different roles is sufficient. No need for 1 regular user to edit 2 sites. |
In place upgrade from MySQL 5.5 to 5.6.11 removes all users from user table Posted: 09 Jun 2013 01:25 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: 09 Jun 2013 04:25 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? |
SQL Server Import Job Removed Data After Job Failed Posted: 09 Jun 2013 07:06 PM PDT I have a SQL Server Job set up to import data from a table to a table on another server, using the Import/Export data wizard. In one instance, the job failed (with, I believe a SQL connection issue), and with that, the data from both tables were deleted. The tables on both the source and destination server were removed. Does this make sense? If anything, why would the data be removed from the source? The source is SQL Server 2012 and the destination is SQL Server 2008. |
Get all the database in db2 through web Posted: 09 Jun 2013 10:25 AM PDT I would like to get all the databases available on a db2 instance from a C# application. The CLP command to be used is How can I fire this command from C#? Is there another select statement I can use to get all the databases on one db2 instance? |
Database design for an E-commerce website Posted: 09 Jun 2013 05:49 PM PDT I am new to database design. I am designing a database for an E-commerce website, there are a lot of products to be updated, but while designing for product specification table I do not understand whether I need specify all the specifications in a table or do I need to use different tables for different products? For example, consider the products Mobile and book, each of these having unique specifications (such as color,size, cost, model for mobile and title, ISBN, author, cost, year_of_publication, etc. for book), if it is only less number of products then it is possible for me to design, but when there is a thousands of products, it takes a lot of time. Can anyone tell me how to design my database to manage this situation? |
How to sync MySQL database between two servers Posted: 09 Jun 2013 05:25 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: 09 Jun 2013 08:25 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 ? |
Backing up a 400-500 GB database on MySQL/Amazon RDS? Posted: 09 Jun 2013 08:25 PM PDT We have an Amazon RDS small instance for a MySQL datawarehousing database. Database size will be around 400-500 GB very shortly. What is the best way to backup our database? Can it be done efficiently with automatic backups and DB snapshots available with RDS? Or should we consider some other options? What would those be? Using EC2, hosting in some other cloud, or using any other database? |
What is the actual difference between innodb_autoinc_lock_mode 0,1,2 Posted: 08 Jun 2013 09:25 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. |
Why would mysql "show global status" query be taking 15 minutes? Posted: 09 Jun 2013 06:25 PM PDT I'm reviewing the slow log, and on one of my slaves the average time for SHOW GLOBAL STATUS is 914s. Any idea how to determine the cause of this? |
Modify MySQL foreign key related column without dropping foreign key relation Posted: 09 Jun 2013 06:25 AM PDT I need to modify a foreign key related column. When I tried to alter it I got "Error on rename of 'x' to 'y' (errno: 150)" error. So I googled and found foreign key relation is the 'villain'. I dropped the foreign key relation, altered the column and created foreign key relation. Is there any way to alter foreign key related columns without dropping the relation? |
Is there a way to export Oracle's UNDO? Posted: 09 Jun 2013 07:25 PM PDT I tried exp utility to dump all database. Looks like this exports only the last version of data skipping undo log. Using flashback queries I see: What I'm trying to do is to capture db changes, make backup for later use with the ability to flashback to timestamp. With rman backup I have similar situation: Update: I managed to do what I needed only by increasing undo retention and direct copying of data files and control file modification on cloned instance. |
What is the difference between int(8) and int(5) in mysql? Posted: 09 Jun 2013 11:25 AM 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: 09 Jun 2013 01:47 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: 09 Jun 2013 05:25 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