I had a discussion with our DBA about how to change a database schema. His opinion is that all changes must be reversible. For example:
Obsolete tables/columns should not be dropped as soon as they become redundant. Instead, they should be kept for at least a few releases.
Instead of renaming a table/column, create a new table/column a...
I work in a call centre that uses single table Access database for its calling, which I moved to a SQL server based system. There's a data list table (not normalized) and a calls table. This has about one update per second currently. All call outcomes along with date, time, and agent id are stored in the calls table. Agents have a predef...
I want to query database two from database 1. Easy, right?
SELECT * FROM database2.dbo.TableName
Sure. But what if the actual name of database2 changes? I have to go back and change all of my procs. Imagine if the instance of database2 on the staging server is named "database2_staging"...
What I'd like is an abstraction that I could p...
We have some Materialized views in our Oracle 9i database that were created a long time ago, by a guy no longer working here. Is there an easy (or any) method to determine whether Oracle is using these views to serve queries? If they aren't being used any more, we'd like to get rid of them. But we don't want to discover after the fact...
How can we shrink temp tablespace in oracle? And why it is increasing so much like upto 25 GB since there is only one schema in the database for the application and data table space size is 2 GB and index table space size is 1 GB used.
...
I have a table that essentially looks like this:
CREATE TABLE myTable (
id INT auto_increment,
field1 TINYINT,
field2 CHAR(2),
field3 INT,
theDate DATE,
otherStuff VARCHAR(20)
PRIMARY KEY (id)
UNIQUE KEY (field1, field2, field3)
)
I'd like to partition the table based on the month and year of theDate, h...
So I have some experience with Microsoft Access, building database apps for people, vba, etc for different folks at work....different divisions. And I have actually learned a lot in that realm...however,
now the need for SQL Server has arrived, and I have never really ventured into that realm...so let the questions begin:
how vastly di...
I need to have an Oracle 11g R1 on a Windows 32-bit duplicated to a Windows 64-bit using RMAN Active Duplication.
32-bit setup:
Windows Server 2003 R2 Standard Ed. SP2
Database - Oracle 11g 11.1.0.6.0
64-bit setup:
Windows Server 2008 R2 Standard Ed.
Startup Database - Oracle 11g 11.1.0.7.0
Although 11g R1 is not cert...
Our current database layout for store inventory includes a table that houses a record for each item and includes the item attributes such as price, cost, description, SKU, etc. Each store then has a table that has the SKU and the Quantity, and a few other attributes that are different for each store depending on the SKU.
Although this ...
I am new to database management.
My application is very database intensive so I've tried really hard to make sure the application and the MySQL database are working as efficiently as possible together.
Currently I'm tuning the MySQL query cache on a 6 gb RAM, quadcore processor computer. My current MySQL is configured as follows:
qu...
I have a database which was upgraded from 2000 to 2005. Is there any issue using sp_dbcmptlevel to change compatibility level to 90. Will this cause any issues with old queries or stored procedures
...
What and when is the best way to use FK's without geting FK "redundancy".
Let's say that i have three tables Account, Category and Product.
1: Table Account
Definition:
Id, Primary BigInt
Name, Varchar
2: Table Category
Definition:
Id, Primary BigInt
AccountId, BigInt ForeignKey
Name, Varchar
3: Table Product
Definition:
...
I am having the below statement from stored procedure. It's giving Insufficient Privileges.
But If i run the create statement alone from the sql prompt it's creating table.
execute immediate 'create table TEST_ABC(
NO_AC NUMBER(8)
, ILL_PER VARCHAR2(15)
, INIT_C DATE
...
I need to determine the MAXSIZE that was set for a tablespace when it was created (Oracle 10g)
I'm sure I'm missing something obvious, but the information isn't immediately apparent in the information in DBA_TABLESPACES
...
I'm a developer with over 10 years experience in vb5/6, C#, VB.NET, 3 years of WCF too, design and architecture. I consider myself to be pretty good and can usually solve anything given time (like most good developers). I worked for a company for 8 years and during that time used a database called IBM UniVerse, it's an old Pick style dat...
Our application runs on the web, is mostly an inquiry tool, does some transactions. We host the Oracle database. The app has always had a different instance of Oracle for each customer. A customer is a company which pays us to provide our service to the company's employees, typically 10,000-25,000 employees per customer. We intend to hav...
i have made columns in some of the tables encrypted in sql server 2008.
Now as i am a db owner i have the access to encode and decode the data using the symmetric key and certificate. But some other users have only currently datareader and datawriter rights ,and when they execute any SP referring the logic which uses the key and certific...
I 'm java system designer. As we have large project to do tightly,
Those projects are java api without webpage.
I design to create general flow engine to support all project.
This idea use 1 oracle schema , having general transaction table .
And others control routing table.
They all nearly complete. But DBA Team concern that he i...
We're using SQL Server 2000 Query Analyser, and one issue we have is that very occasionally, when a user is updating our live database, they insert the incorrect/no(!) where clause. I know, not good, but it happens.
Are there any editors that will warn of the number of rows that might be changed (if that is even possible) or even a way...
After creating a db using Database Configuration Assistant, I go to Enterprise Manager, log into it, and it tells me, that java.lang.Exception: Exception in sending Request :: null. OracleDBConsole for this db, and iSQLPlus services are started. When I run %ORACLE_HOME%\bin\emctl status dbconsole, it says, EM Daemon is not running. How d...