[how to] (newb) Riak nodes automatically shutting down |
- (newb) Riak nodes automatically shutting down
- Capture Data Change Vs Triggers
- How to determine that the chain of log degraded
- Migrating Oracle packages to SqlServer
- SQL Server Partitioning...Really? [closed]
- NpgSQL performance and reliability?
- Cannot connect to server. Too many symbolic links. Postgres Error
- csv file handling
- Estimated vs Actual rows differences (actual much smaller than estimated) - sort
- Filter on a window function without writing an outer SELECT statement
- Errors while creating multiple mysql-5.5 instances
- How do I identify the remote db agent name to use in create_database_destination on Oracle 11gR2?
- Database migration, how to
- Optimize UNION query in MYSQL
- How can Innodb ibdata1 file grows by 5X even with innodb_file_per_table set?
- Is there slowdown inserting into an InnoDB table that has no index set?
- Loading XML documents to Oracle 11g DB with control file
- Enabling/disabling/changing Oracle auditing without a shutdown?
- MySQL - run SELECT statement on another server without defining the table structure
- Tools and methodologies to keep to DBs aligned
- consequences of using "innodb_flush_method = O_DIRECT" without having a battery backed write cache? or on a KVM guest?
- DB2 to require password each time
- How can I set a default session sql_mode for a given user?
- oracle streams apply: how to get a reason why LCR message was not applied
- SQL Server 2008 Setup Error 0x80070490
- Replicating data from Oracle to MySQL
- Users cannot view tables in non-default schema in SSMS
- How can I create different sets of sequential values based on another column in a table?
(newb) Riak nodes automatically shutting down Posted: 22 Jun 2013 06:23 PM PDT I'm going through the book "Seven Databases in Seven Weeks" and am on the Riak chapter. I'll installed Riak successfully and am able to start dev1, dev2, and dev3 nodes. If I If I HOWEVER, after about 30 seconds the nodes seem to shut down. They don't show up in a What's going on? |
Capture Data Change Vs Triggers Posted: 22 Jun 2013 12:35 PM PDT I am constructing a database that needs to keep track of historical data. It is a Electronic medical system. All data needs to be updated in real time so the user can see what changes happened in the application. Would CDC be the way to go or should I just have triggers on the database that pushes the information into a Audit tables |
How to determine that the chain of log degraded Posted: 22 Jun 2013 12:10 PM PDT MSSQL server 2005. or then if i try run log backup i receive error message |
Migrating Oracle packages to SqlServer Posted: 22 Jun 2013 08:31 PM PDT I'm moving database from Oracle to SQLServer (2012 if that matters). The process of migrating tables/views is more or less straightforward and automated. Triggers are also not an issue since I don't have too many of them. However, I wonder what is the best practice for moving Oracle packages. As far as I know, SQLServer doesn't have anything similar. My idea is to map each package to SQLServer schema (thus, for instance, I'll have 'package1' , 'package2', etc schemas in SQLServer, each of them has no tables, just functions/procedures/types). I believe it will preserve original purpose of packages and at the same time reduce number of changes required on application side. Does it make sense or I'm on a wrong way? Thank you. |
SQL Server Partitioning...Really? [closed] Posted: 22 Jun 2013 09:35 AM PDT I was just looking at SQL Server's (2008) implementation of partitioning. Is it me or when compared to other RDBMSs (Oracle, Greenplum, etc), is SQL Server's implementation kind of a disaster from a management standpoint? I ask because it seems as though you have to create separate file groups and files for each partition. This doesn't seem to be an implementation that supports a very dynamic data set. It's great for data that is very well defined and known. However, it seems as though there would be a lot of work the DBA must go through in order to maintain partitions as the partition key values change. Can somebody educate me a bit more on why the underlying partitioning file storage mechanism isn't a bit more abstracted? |
NpgSQL performance and reliability? Posted: 22 Jun 2013 05:57 AM PDT Is NpgSQL a good choice for serious LOB apps (WinForms / WPF)? I did some testing and it does strike me like a solid .net provider, but I was hoping that I could confirm this with someone who had more experience using NpgSQL in LOB apps. |
Cannot connect to server. Too many symbolic links. Postgres Error Posted: 22 Jun 2013 07:54 AM PDT I get this error when I try connecting to a PostgreSQL server: What can I do to fix this? I have Postgres installed on my Mac. |
Posted: 22 Jun 2013 12:25 PM PDT I am using an EAV like structure to store CSV files. There aren't any predetermined columns, so it needs to be able to expand the columns / data on demand. Is this a fairly good way of handling such a task, or is there a better/more efficient way of doing this? Below is some sql structure / an example query that the application builds on the fly to help search through the data / display it. This is the query that gets built out automagically by the application[I get the distinct selection on the name column], I started with a stored procedure but needed to dynamically generate the columns on the fly.... |
Estimated vs Actual rows differences (actual much smaller than estimated) - sort Posted: 22 Jun 2013 04:46 AM PDT I'm running a query that is processing some nodes out of an XML document. My estimated subtree cost is in the millions and it seems it all comes from a sort operation sql server is performing on some data that I extract from xml columns via XPath. The Sort operation has an estimated number of rows to be around 19 million, whereas the actual row count is about 800. The query itself runs reasonably well (1 - 2 seconds), but the discrepancy has me wondering about the query performance and why this difference is so large? |
Filter on a window function without writing an outer SELECT statement Posted: 22 Jun 2013 11:35 AM PDT Since window functions cannot be included in the WHERE clause of the inner SELECT, is there another method that could be used to write this query without the outer SELECT statement? I'm using Oracle. Here is the sqlfiddle. |
Errors while creating multiple mysql-5.5 instances Posted: 22 Jun 2013 05:35 AM PDT I have installed 3rd mysql instance on my testing server. 2 instances already running without any issues. When I installed 3rd instance by mysql-5.5.30 zip source, it installed successfully but when I tried to restart 3rd instance of mysql it says,
1st instance running on 3305 2nd instance running on 3306 3rd instance running on 3307 Error Log is as follows. Still unable to figure out this error. How can I start the 3rd instance? InstallationHere is the story from beginning. I have installed mysql via source:
When I restart this instance it gives error of updating pid and exit. Which step is missing? My
|
How do I identify the remote db agent name to use in create_database_destination on Oracle 11gR2? Posted: 22 Jun 2013 07:35 PM PDT I am trying to setup DBMS_SCHEDULER in Oracle 11g to run a remote database job. I have a remote Oracle 11g R2 database on unix and a local one on Windows. I read that you can install the oracle scheduler agent from the 11g client install for machines that don't have Oracle installed but this is not needed for running remote jobs if Oracle is present on both machines. With the remote agent installation, you run schagent and provide parameters to register the agent to the remote machine but I cant find any instructions on the web regarding how to register remote agents when both machines have Oracle installed or what to use as the agent name in this case. I have added an entry to tnsnames.ora for the remote DB and can tnsping, etc. If I run the |
Posted: 22 Jun 2013 02:42 PM PDT I have two databases DB1 and DB2. In both databases exists this two tables mo_sms and mt_sms. This is the structure of those tables: I have some values in DB2 that should be migrated (inserted) in DB1. My problem here is I don't know how to get the records from DB2.mo_sms tables and those relations from DB2.mt_sms and then insert to DB1.mo_sms and DB2.mt_sms. For example I'll get all the records from mo_sms with |
Posted: 22 Jun 2013 05:35 PM PDT I have a problem with a UNION query in MySQL. We have 10 millions players on our website and we would like to select players with a multi-criterias system. For exemple, selecting US people, men, > 35 yo. We are using "vertical partionning" : 1 table per criter. For exemple : We would like to do this kind of query : Do you have any idea on how to optimize that ? Thanks ! François ----- More details Explain of the query : SHOW CREATE TABLE |
How can Innodb ibdata1 file grows by 5X even with innodb_file_per_table set? Posted: 22 Jun 2013 06:35 PM PDT I have innodb_file_per_table set and just today my ibdata1 file jumped from 59M to 323M after I made several changes to an 800M table to reduce it to about 600M. That particular table's .ibd file was reduced but the server's ibdata1 file went crazy. Any ideas? |
Is there slowdown inserting into an InnoDB table that has no index set? Posted: 22 Jun 2013 03:35 PM PDT I have an old application with lots of InnoDB tables, that have no indexes at all, not even a primary ID or such. Those tables only contain a few thousand rows. Would it be faster to |
Loading XML documents to Oracle 11g DB with control file Posted: 22 Jun 2013 01:35 PM PDT I am using Oracle 11g XML database and trying to load XML documents to this DB with a control file and the I want to use the Oracle function Here is the date entry in XML file: And here is entire code the control file: I believe that I can execute the above control file with the The UPDATE: I successfully registered the schema, which contains definition for the date string, and 100 other schema, with a script. Since this script is very large, I am posting only 2 registration portions of it: The 2nd registration above is the last in the script, and this creates the table STXP, in which I am trying to load about 800 XML files. Each XML file has a root element called stxp. This is the relevant definition of date string: And this is how I am using the above definition: When I make the above element optional (for testing purpose) and remove the date string entry (mentioned near the top of this question) from my XML file, the XML file is loaded successfully to Oracle XML database. When I put this entry back to XML file (because it is required), Oracle rejects it. Because I let Oracle take care of population of STXP table with data from XML files, I am not sure if I can set a trigger to pre-process the date string from the input XML file before saving it in database. i think there is a way to do it in the control file. |
Enabling/disabling/changing Oracle auditing without a shutdown? Posted: 22 Jun 2013 04:35 AM PDT I have a large database that needs auditing on a very detailed level (every select, update, insert, and delete, along with the actual text of the statement) for about half the users. I know how to do this (here is a related question for anyone interested), but I also realize we cannot do this for any extended amount of time because of how much quickly we would be collective massive amounts of data. So while there is a scheduled downtime coming up that we can implement the auditing, to change it to fine tune it (as management changes the request of what data they desire) or to disable it once we have enough data would require us having to take the database down to disable this. While this wouldn't be too horrible to do if we were able to schedule a short downtime late at night, it would be really nice if this could be avoided altogether, but every reference I've seen so far requires the database to be brought down and back up. So, my question (which I believe to be general enough for the purposes of this site, even though the back story is specific) is if there is a way to enable/disable/change auditing without shutting down the database. Edit: Oracle version 11r2. As for AUD$ vs. FGA, I'm not sure what FGA is, but AUD is the table which will hold the data, so I am assuming that one. |
MySQL - run SELECT statement on another server without defining the table structure Posted: 22 Jun 2013 08:35 AM PDT In MySQL I can query information on another server using federated tables, as long as I've defined the same table structure locally. In MS SQL Server, however, I can run any SQL statement against a linked server. Is it possible to do the same thing in MySQL? |
Tools and methodologies to keep to DBs aligned Posted: 22 Jun 2013 12:35 PM PDT 2 DBs having schemas that represent the same semantic objects. The first one is production DB (Non-RDBMS, in-house implemented in-memory DB with shitload of RAM). Other is Postgres. Once in a while the production DB is changed (schema upgrade). Question: what is the best practice to keep DBs of different types aligned semantically? |
Posted: 22 Jun 2013 04:35 PM PDT Mysql 5.5.29 Innodb- 128GB Ram - 32 cores - Raid 10 SSD. Our server which is a dedicated KVM guest on a 'baremetal' is hosting our heavy read-write DB server. Everything is file-per-table. innodb_Buffer_pool is 96GB with 1GBx2 log_file_size with about 20 minutes of writes to fill up those logs at peak time. How bad of a situation would it be if O_DIRECT (currently running on the default) was enabled during a high work load without a battery backed write cache and a total crash were to occur on the OS, parent host or the power was cut? Does a battery backed write cache make a difference if the server is a vm guest of the parent anyway? . |
DB2 to require password each time Posted: 22 Jun 2013 09:35 AM PDT I am using db2inst1 to connect to a database in DB2 which I have installed on my machine. Therefore, db2inst1 user does not require username/password authentication (borrows them from the OS). I would like to change that, and force every time a connection is initiated a username/password to be requested. More specifically, this is how the authentication configuration looks like:
I have played with some authentication combinations for "AUTHENTICATION" and "TRUST_CLNTAUTH" without much luck. |
How can I set a default session sql_mode for a given user? Posted: 22 Jun 2013 02:35 PM PDT I want to have a default session sql_mode that is different from the global sql_mode. I can set it manually, but I'd like to do it automatically. I thought I could add it to Yet, when I connect my session sql_mode, the session still inherits the global sql_mode. I'm using MySQL 5.5.16. |
oracle streams apply: how to get a reason why LCR message was not applied Posted: 22 Jun 2013 07:35 AM PDT I've set up bidirectional oracle streams replication (11gR1) using identical scripts on both machines (DB1 and DB2). Although changes from DB1 are being applied to DB2, changes from DB2 to DB1 aren't. I have only one rule for capture processes that checks for apply tag to prevent cyclic propagation, and have no rules for apply processes. LCRs from DB2 are dequeued at DB1 by apply reader process (update LCRs are among dequeued messages for sure, because when I issue 50 inserts at DB2, at DB1 dequeued messages counter increases by 50), but aren't processed by apply coordinator and servers : As far as I understand, in that case LCRs can be silently ignored (without throwing apply error) only if SCN of LCR is lesser that instantiation SCN for a table, but instantiation SCN is 1114348 (< 1118751): Oracle provides means to deal with errors, but how to check why message was not applied if there was no error? |
SQL Server 2008 Setup Error 0x80070490 Posted: 22 Jun 2013 06:35 AM PDT I am trying to install SQL Server 2008 x64 on Windows 2008 R2 and keep getting the following error:
I have applied all required patches and there are no other instances of SQL Server on the machine. Any clues as to what the cause might be? Thanks. |
Replicating data from Oracle to MySQL Posted: 22 Jun 2013 10:35 AM PDT I work with a vendor that does data analytics, and they currently receive a replication stream from some of our databases using a product called Goldengate (which is very expensive). Goldengate has been great - it replicates transactions from the Tandem-NSK source and can apply the changes into any supported database - they're using MySQL at the remote end. We're switching our billing system to Oracle, and while we could continue to use Goldengate to move these logs, I'd like to see if there's another option. We initially chose Goldengate because nothing else could get data out of the Tandem NSK, but now that we're moving to Oracle, there may be some more native (or at least simpler) choices. I've got nothing against them - like I said, it works great - but I'm hoping that two mainstrem databases are easier to do replication between than the NSK. Are there any products of methods that would help get transactional data from an Oracle system into an MySQL database? I'm not sure if there's any way to do this kind of replication natively (I know we can do Oracle -> MSSQL using native replication, but not any way to target MySQL that I'm aware of), or if anybody knows of a product that could facilitate this (and costs less than Goldengate). Thanks for any suggestions! |
Users cannot view tables in non-default schema in SSMS Posted: 22 Jun 2013 08:35 PM PDT I'm having an issue setting the I've tried granting permissions to view definitions: That didn't work. I tried setting the table-level permission: That also didn't work. Then I tried just a blanket grant: And that did work; they can now see My goal here is to allow the user to view all tables within a given schema. How do I accomplish that? If I should be able to do this by default, what permissions should I be looking at to find why I can't? |
How can I create different sets of sequential values based on another column in a table? Posted: 22 Jun 2013 07:46 PM PDT I've got a table that holds two types of notes. Collection Notes and Delivery Notes. They are identical data structures, hence using the same table. I am migrating data from a legacy system into this table and there is a requirement that Collection and Delivery notes have their own sequential numbers. I had previously implemented two sequence tables as where the It's getting towards time to do the final (real) data migration and this setup seems hard to work with. Is there a way I could bin the two sequence tables and add a The new table might look like and the data would look like: I'm using MS SQL Server 2008. |
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