[how to] How to keep an Oracle 11g instance lean? |
- How to keep an Oracle 11g instance lean?
- MYSQL Timezone support
- Which design to choose in this case?
- reset mysql root password on ubuntu
- Deleting large chunks of data
- A table with a foreign-key, referencing the tables own primary key
- Update performance: clustered versus covering index
- Mysql slow.log with noindex, but without tmp_tables
- Why is simple timestamp comparison performing slow
- Should my Postgres backup server be as beefy (IO, processor, RAM) as my master?
- What is the best way to transport database fields from one database to another?
- Is it possible to integrate Oracle NoSQL Enterprise solution with Google app engine. If yes, then how..? [closed]
- Is it possible to avoid filesort?
- What happens when we create index
- Fast way of delete MySQL record
- Several PC Cannot Connect To MySQL Server on Certain Time
- Oracle DBF import brings me to a weird situation
- How to drop inheritance?
- Call pl/sql function and discard result
- Oracle DB 11gR2 netca installation failing
- copy package from schema B to schema C
- If an account has REQUIRE SUBJECT, does it still need a password?
- MySQL users corrupt
- Databases list not showing up?
- I have multiple sources INSERTing into a MySQL innodb table. My periodic aggregation script never makes accurate aggregates. Why?
- Converting dbo file from windows to linux
- Allow users to do anything within his own schema but cannot create or drop the schema itself
How to keep an Oracle 11g instance lean? Posted: 16 Jun 2013 09:13 PM PDT As a Mac user I run a local Oracle Enterprise Linux (OEL) Developer Day VM that houses an Oracle 11g instance for development/unit testing. I frequently refresh the data in the schemas (sometimes multiple times a day) and do not have a need for snapshots or backups. The number of rows in each schema's tables are orders of magnitude smaller than those of a production instance. I've had to extend the tablespaces' size more than a few times and I suspect I have improper resource allocation to begin with (SGA, PGA) for the way in which I'm using the instance (not for SQL Developer, TimesTen, etc. -- just for the Oracle 11g instance). I'm looking for recommendations/resources to help me
For example, I have turned off snapshot collection. But I think there are other (more?) impactful changes I can make to help increase the performance and reduce the footprint of VM. |
Posted: 16 Jun 2013 07:23 PM PDT We are having a shared hosting plan and they are saying that do provide MYSQL Timezone support in a shared hosting plan. I can create timezone related tables in our database and populate them with required data(data from from our local MYSQL Timezone related tables. How to view the code syntax for MySQL "CONVERT_TZ" function? Thanks Arun |
Which design to choose in this case? Posted: 16 Jun 2013 04:16 PM PDT I am designing a database for a video game. I have some data structures like For instance : Table Since |
reset mysql root password on ubuntu Posted: 16 Jun 2013 03:24 PM PDT In short: my goal is to reset mysql root password on ubuntu. Background: I set up a ubuntu desktop and installed LAMP stack last week. I then went to do something else, and just got back to carry on today. Either I did not set mysql password, or I have forgotten what I typed in. So I tried to reset it. I stopped mysql by I tried to start mysql using command line options, but it seems start only takes service name(??) So I ran: Went into mysql, fine. Then If ''@'localhost' has USAGE on all-schemal.all-tables, I'd think I can just update the password like this... Where did I miss? I used the instruction in mysql official website, the last part. I also tried the unix one but with no luck. And I was unsure when it says 'unix', does it mean all *nix system or just unix??? Anyway, any thoughts are welcome! many thx!!! |
Posted: 16 Jun 2013 02:12 PM PDT This batch is slow because of large number of rows to be deleted. What are the things to be considered to make things faster. Like how the indexing,triggers plays a role and how can you test the performance of your queries using what kind tools? |
A table with a foreign-key, referencing the tables own primary key Posted: 16 Jun 2013 08:42 PM PDT I was looking at the database sample that is provided by the DB2 server installaion. This database is the one created when running db2samle.exe from the "bin" folder. I noticed that the table "ACT" contains a primary key with a references to it self, see sql below, and was wondering if there are any logic reason for this? or is it just a glitzh in the design? |
Update performance: clustered versus covering index Posted: 16 Jun 2013 07:19 PM PDT I have a simple, 3-column table with about 50 million rows in it. This table gets about 5,000 inserts/updates per second, and perhaps 20 queries per second are executed against the table. The table looks like this: To maximize the efficiency of my queries, I need two indexes. (Result Includes Execution Time) and (Controller, ExecutionTime). These two indexes fully cover my queries - all information is served directly from the indices, no table lookups required. I chose nonclustered indices because I was worred about the performance hit using a clustered index with so many updates. But it occurs to me that since I am fully covering the queries, this might not be a valid concern - perhaps my covering, nonclustered indices require the same amount of maintenance as a clustered index would. So my question: In a table with a lot of inserts/updates, will a covering, nonclustered index usually have a lower UPDATE performance hit than a clustered index? Thanks for your time and help! |
Mysql slow.log with noindex, but without tmp_tables Posted: 16 Jun 2013 01:17 PM PDT Is it possible to change anything in config to logging in slow log queries without index use, but not in the temporary tables. I have a lot enough subquerys, so it creating anytime temporary table, that can not be have a index, so the full query landing in the slow.log. How i can change it? |
Why is simple timestamp comparison performing slow Posted: 16 Jun 2013 11:00 AM PDT I have a table with 12,582,912 rows and can't figure it out why is a simple comparison Explain http://i.imgur.com/PdOnH1V.png Queries Schema |
Should my Postgres backup server be as beefy (IO, processor, RAM) as my master? Posted: 16 Jun 2013 04:48 PM PDT I've set up a Postgres database on a server with 2 CPU cores, 4GB of RAM and an SSD volume (on top of RAID 10 of course). This is our (sort-of) "beefy" production database server (I can easily add more RAM, etc. when the time comes). Now it's time to set up a backup Postgres server (not used for reads or anything else, just strictly a replication/backup). I don't want to have to fork out another $150/mo for the same exact setup for my backup server, and I know that a lot of the server resources used for a production database have to do with complicated queries, sequential scans, etc., so my thinking was that I could get away with a 512MB server with about 1/6 the I/O performance, and 1 CPU core. Is that thinking correct, or does a replication/backup Postgres server typically need nearly the same specs as a production Postgres server? Note: I'm using Postgres 9.2.4 with streaming (non-synchronous) replication on an Ubuntu 12.04.2 server. |
What is the best way to transport database fields from one database to another? Posted: 16 Jun 2013 01:41 PM PDT I have two databases. The table name and fields name are different and field numbers are unequal. I need to transport all fields from one database to another. I can import the database as CSV format. I can use a PHP script which will accomplish this. But is there any other way to do this easily without any script. |
Posted: 16 Jun 2013 05:34 AM PDT Integration Google App engine and oracle NOSql for enterprise application. |
Is it possible to avoid filesort? Posted: 16 Jun 2013 06:11 AM PDT Is it possible to avoid 'Using temporary' and 'Using filesort' for the following SELECT query? I can't figure out a way to do it. I tried adding indexes, for both top_expire and program, but didn't help With the ORDER BY the query takes over 1 second and withoud it is just 0.003 seconds on localhost Query Schema |
What happens when we create index Posted: 16 Jun 2013 11:14 AM PDT What happens exactly when I create an index on the Let's assume the table contains the below data what exactly my doubt is what will be created and stored internally in index..... to improve the performance , whether sorted content of empid or some other information related to rows....? |
Fast way of delete MySQL record Posted: 16 Jun 2013 12:16 PM PDT I have a 1.2 million record in a database table( it use index column also) I want to delete old 1 million record. I try to do it using PhpMyadmin but it take more time. Is there any way to do it fast? I have another question: if i did this using SSH client in command line, will it be fast? |
Several PC Cannot Connect To MySQL Server on Certain Time Posted: 16 Jun 2013 11:54 AM PDT I have a network of 10 PCs and 1 Server. I installed MySQL Community Server v5.6.10 64-bit on the Server, and all the PCs are Windows XP, using ODBC Connection 5.2(a). Some of the PC (previously it was 3, now become 4) cannot connect to the MySQL at a certain time, which is 2.00 pm. Before, it was OK, the client can connect to the Server normally, but at 2.00 pm, those PC cannot connect anymore, with this error: From the above error message:
The only action I do to make everything work again is by restarting the PC (client), however, I don't want such solution. I want to know what's the cause, is it because of the ODBC connector, the PC, or any other reason. Could anyone give me some hints on what I should check? Thank you |
Oracle DBF import brings me to a weird situation Posted: 16 Jun 2013 01:01 PM PDT I have a big problem . One of my client send me some files to install them to his Oracle server but as a new user in oracle I am not sure how to do that. What I've recieved are this files : And if helps , those files are dated at 2007 (maybe do I need another version or Oracle?) I've googled for those files and what I get is that maybe files are from Acess , Are I am right? I've hexed the files and in top of them they have this hex And In some parts of the files(hexing) are references to Oracle , so I dont know if It's Acess or Oracle. I've also tried to import the files using Navicat But the result was just not as expected because all tables where nulled and with all columns the same name (from f1-fx) That's all I know . Thanks you for your help |
Posted: 16 Jun 2013 10:05 AM PDT I am new to PostgreSQL. The situation I have is someone created a child table inherits from the parent table. And dropped the child table. But the parent table still has the "down arrow" sign on it. I checked and there's no other link/relation on the parent table. Is this really an issue? I was told that the parent table is still in the 'been inherited' status and causing the performance issue. How to resolve this? By removing the 'been inherited' status' from the parent table? |
Call pl/sql function and discard result Posted: 16 Jun 2013 04:59 AM PDT I'm calling a function from pl/sql, but I do not require the result in this case. Is there a cleaner way to call this function without using a dummy variable? Works: Does not work: |
Oracle DB 11gR2 netca installation failing Posted: 16 Jun 2013 04:29 AM PDT I am getting below error when I run |
copy package from schema B to schema C Posted: 16 Jun 2013 06:29 AM PDT I am in the next situation: I am using oracle 11g. I am connected to an user, lets say schema1, where are a lot of permissions. I want to create a script which will copy the Package1 (and its body) from schema2 to schema3. The script will be executed from schema1. PS: I already look for a solution and I am not interested in export/import or in using other tools from toad, sql developer etc. |
If an account has REQUIRE SUBJECT, does it still need a password? Posted: 16 Jun 2013 09:29 AM PDT I'm in the process of setting up SSL-secured replication between two servers. Each server has its own public/private keypair, and the CA cert is just the concatenation of the two public certs, like this answer. Now I'm updating the replication account with REQUIRE SUBJECT "exact subject of the client" Is there any practical value to also having a password on the replication account (IDENTIFIED BY "secret")? |
Posted: 16 Jun 2013 11:29 AM PDT I have a strange situation here: From time to time I cannot log in with any of my mysql users. I even cannot make a mysql dump. So I started searching in mysql files and I found that I searched about the problem and I found that there was some bug in the MySQL, but it was in the older versions (4.X). I'm running 5.5. Any ideas? Thanks! |
Databases list not showing up? Posted: 16 Jun 2013 05:29 AM PDT This morning when I logged into SQL Server Management Studio (v 10.0.16) I clicked on the databases node and saw all by db's (they are hosted remotely) as I have done for the last 3 years. This evening, when I click on the databases node I see NOTHING - except the system databases. According to my hosting company, this is an issue with my local permissions. I have searched everywhere and found nothing to help me. I'm now desperate and and help would be massively appreciated. |
Posted: 16 Jun 2013 12:29 PM PDT I apologize in advance if this is a repeat. I'm not really sure how to properly ask for what I'm running into. I have a large InnoDB table set up. I have 3 sources that all INSERT concurrently at a moderately high volume (300-500 INSERT/s). I have a PERL script running on a cron job every 5 minutes that aggregates data from the last time it ran. It keeps track of the last record it processed by storing the auto_increment value of the last row in a metadata table. The aggregates are always off. But not by much. This has been so frustrating because it's just plain simple math (SELECT account_id,sum(sold) GROUP BY account_id). I have a suspicion that it has something to do with the transaction isolation (repeatable-read). I recently found FlexViews which looks very cool and might address my problem. But I was wondering if anyone could:
I'm like 95% sure the auto_increment thing along with transaction commit ordering is hosing me up, but I don't understand enough about DBs to really ask the right question. Oh, one thing to note, I've already checked over the field types. This issues isn't the result of rounding. |
Converting dbo file from windows to linux Posted: 16 Jun 2013 07:29 AM PDT I have a .dbo file which is created from windows. This file is succesfully reloaded into the mysql database in windows. I need to reload the dbo file into the mysql/mariadb database in linux. How I convert the file that was created from windows to linux? |
Allow users to do anything within his own schema but cannot create or drop the schema itself Posted: 16 Jun 2013 09:29 AM PDT I have created a schema in SQL Azure using following permissions on my database role: Through the above defined permissions a user can create/drop his own schema, so to overcome the problem I tried the ALTER ANY SCHEMA permission. But this permission also denies the user to create/drop tables. What permissions are required in order to allow the user to do anything within his own schema but not be able to create or drop the schema itself? |
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