0
votes
0answers
3 views

PGAdmin III Server Status Error: Could not read directory “pg_log” No such file or directory

Running Postgresql 9.3 on Ubuntu 14.04 and PGAdmin III 1.18.1 on Windows 7. I tried Tools->Server Status and I get an error "Could not read directory "pg_log" No such file or directory" I don't ...
0
votes
0answers
9 views

2008 R2 Express Silent Install - FullText Service Not working

I'm trying to build an installer for an app that installs SQL SERVER 2008 R2 ADV with FullText already enabled, but couldn't sort it out. It must support Windows XP, so that's the first OS I'm ...
2
votes
2answers
16 views

Share centralized queries for multiple databases

OK, here's a challenge for you guys. I am tasked with setting up reporting for two companies being run as a single company. For reasons I won't get into, they are implicitly split but (for our ...
2
votes
1answer
13 views

Hierarchy for dimensional model

I am trying to model a DW where I have many levels of geography (Neighborhood, District, City, State). I have several demographic data that should be included in the model. These data include count ...
0
votes
0answers
6 views

List all privileges granted on tablespace

Frineds, DB: 11gR2 OS: Unix So I'm moving all objects of a tablespace-A to new tablespace-B. Is there a way to list all privileges/quota granted for tablespace-A? Since tablespace-A can have ...
0
votes
0answers
5 views

If I were to peak under the hood, how does MySQL's GET_LOCK function work?

I am curious about how MySQL's GET_LOCK function actually works. I understand what it means when I ask for a lock, and what the potential return values are. But I want to get a better understanding ...
0
votes
1answer
13 views

Oracle sys password lost

I inherited an Oracle DB on Linux Redhat from someone who left the company and didn't tell anyone what the passwords were to the various accounts on the database itself (not Linux), including what he ...
1
vote
0answers
7 views

MySQL Memory & max_connections Performance Tuning

So, our site runs WordPress and in the past few days we have been getting tons of spam comments etc. I believe that we are becoming the victims of some kind of bot army that has been crashing our ...
0
votes
1answer
17 views

Max from 2 columns with priority date col then the seq col Oracle

I have a column xdate, column seqnumber, personID I want 1 record per personID, where it is the most recent xdate max(xdate) if there is multiple same max xdates i want it to look then for the max ...
1
vote
0answers
15 views

Database Mail connection to exchange - Resets and timeouts

I am trying to send the results of a query in an email, and each time it takes longer than 5-10 minutes for me to recieve the message. The actual relay from Exchange takes less than one minute, but ...
-1
votes
0answers
14 views

Multiple conditions in a derived column ssis

Hi I am trying fairly new to SSIS , and my task is to convert dates in string as given below to a datetime. These are my date of birth in the source file (string data type): Source date of birth ...
1
vote
0answers
5 views

SSRS 2012 - Dynamically change value of textbox in report header

I am in the process of converting some MS Access 2003 reports to SSRS 2012 (using VS 2010 to develop the reports). I have a report with a number of parameters. Some of the parameters are populated ...
0
votes
2answers
31 views

average record hourly

I have one table, here is the schema CREATE TABLE `table_200901` ( `id` int(11) NOT NULL AUTO_INCREMENT, `carType` bigint(20) DEFAULT NULL, `dateTime` datetime DEFAULT NULL, `distance` ...
1
vote
1answer
22 views

Rolling count of total transactions over time

I need to get a set of total transactions over time on a weekly interval. Essentially I need a total-transactions-to-date column. When I group by WEEK(Date) I get the amount of transactions for that ...
0
votes
1answer
10 views

How to access pg_settings from separate connection

I am trying to access the pg_settings table from a separate connection belonging to a legacy application. I know how to identify the connection's procid from pg_stat_activity, but I am unsure how to ...
3
votes
1answer
37 views

How to back out of mass update in SQL Replication

We have a database which is set up in Merge Replication. We accidentally updated hundreds of thousands of records in a large published table on the publisher database. We did something like this: ...
0
votes
0answers
11 views

How to back out of mass update in SQL Replication [duplicate]

We have a database which is set up in Merge Replication. We accidentally updated hundreds of thousands of records in a large published table on the publisher database. We did is something like ...
3
votes
1answer
53 views

SQL Server: Using 4 part identifiers when database may be on the same server

In my client's setup, the database servers in lower environments are all on one server for cost saving purposes, but in higher environments, these databases are deployed on separate servers, and ...
0
votes
2answers
19 views

Best way to store few rows of data every minute without creating 1440 columns a day?

I will be calling a server that returns some JSON data every minute. The values are along the lines of Value, Currency, DateTime, and maybe 1 or 2 more values. What is the best way to keep save these ...
0
votes
0answers
12 views

How do you pinpoint locations of data that is being fed to a SRS report. [on hold]

What is the easiest way to find the original locations (exactly table & column) of the data that a SRS reports uses? This SRS report is complex and is fed data from three massive databases. I have ...
0
votes
1answer
27 views

Why does mysql treat “<” like it was “<=”?

I've tried the following command: SELECT * FROM `mi_schedule` WHERE `day`<=(DATE_ADD(NOW(),INTERVAL 7 DAY)) AND `day`>=NOW() Got 8 rows. Then I changed the <= to <, and nothing changed, ...
1
vote
3answers
267 views

How to pull rows only from the weekends?

My table data is like this: ID Name salary date 1 a 100 1/08/2014 2 b 200 2/08/2014 . . . . 26 z 2600 26/8/2014 Now I want to return only rows from Saturday or ...
1
vote
0answers
18 views

How to measure bandwidth requirements for MySQL, Postgres, …?

TLTR: how to configure MySQL/Postgres to get a fair measurement of the I/O requirments for analytical queries? Hello, for certain database and especially database hardware experiments for want to ...
0
votes
0answers
14 views

Oracle Calling a Procedure Returning a CURSOR in another Procedure

I have 2 packages and a procedures that return a sysref cursor. Now i want to call either of the 2 packages and procedures in another package and procedure that will take the decision on an input ...
0
votes
0answers
7 views

Error 2003: Setting up MySQL Replication

Trying to setup MySQL Replication using this guide here : http://wpguru.co.uk/2013/05/how-to-setup-mysql-masterslave-replication-with-existing-data/ I was able to do this on two random VMs running the ...
0
votes
1answer
18 views

How to do Mysql migration from 5.0 (320bit windows) to 5.6 (64 bit windows)?

I want migrate My Mysql 5.0 windows 32 bit to Mysql 5.6 Windows 64 bit? Please suggest me the best way to do migration, i have around 10gb of data present in Mysql 5.0.
0
votes
0answers
15 views

How can I use parameters of type Int32 from an environment for an integration services package in a SQL Server 2008 job?

I made a SSIS package using two string parameters and one Int32 parameter. I defined a SQL Server Agent job that should execute that package. In "Integration Services Catalogs" I definied an ...
1
vote
1answer
21 views

Profiling and debugging “Incorrect syntax was encountered while parsing :setvar.”

I have the following script using SQLCMD setvar, but I receive an error when I parse the script: :setvar dbname "PROD" :setvar backuppath = "e:\sql\restore\PROD.bak" USE [master]; GO -- backup the ...
1
vote
1answer
35 views

how to shoot SQL error 823?

I had a laptop die HDD went dead which a running sql database was opened (in program) I had to have the hard drive recovered however all i got back was a bad database which has the torn page. All ...
0
votes
0answers
37 views

Are there any incompatibilities between Oracle 11 and 12?

I have an application which has been validated on an Oracle 11.2 database. A client has asked me whether they can use Oracle 12c instead as that is what their IT department would prefer. Is there an ...
1
vote
1answer
31 views

How to optimise window queries in postgres

I have the following table with approximately 175k records: Column | Type | Modifiers ...
2
votes
0answers
20 views

Sample a Mysql table to increase performance

we are storing all our clients traffic data in a MySQL 5.1.73 database (MyISAM) and then we use it to generate user and internal statistics/graphs, always searchinng for a client id and a date/hour. ...
0
votes
0answers
10 views

ORA-01034: ORACLE not available ORA-27101: shared memory realm does not exist

After installing of Oracle 11g express edition i tried to connect to DB ..while connecting it shows this error don't know why..? could any one help me..! I am using windows 32 bit..
1
vote
1answer
11 views

Java Spring application Database triggers auditing - how to provide the right user that made the change

We are developing a new web application. one of the most basic requirement is to audit all entities changes into a separate table. We would like to use DB triggers for that purpose. We use MySQL as ...
0
votes
0answers
9 views

RMAN error RMAN-06207,RMAN-06208,RMAN-06210,RMAN-06211,RMAN-06212,RMAN-06213,RMAN-06214

I have this issue with around 7 servers, we have an RMAN job that takes backup and validate the backup ... here is RMAN settings: RMAN> show all; RMAN configuration parameters for database with ...
-5
votes
0answers
33 views

Arithmetic overflow error [on hold]

arithmetic overflow error converting expression to data type int How to solve this problem?
1
vote
0answers
29 views

Escape characters in Oracle dump

I'm new to oracle and I have this problem. When I take a dump of particular table which has CLOB data type, the resulting dump doesnt handle escaping special characters. So I get ' un escaped, so ...
0
votes
3answers
69 views

Delete all the data from all tables

I have a little problem. I have to delete all the data from our database. I don't want to drop tables, only delete the data sets. These are 47 tables in total. I tried the following: Delete ...
0
votes
0answers
14 views

SQL Server to MySQL migration using MySQL workbench

I tried to migrate database from SQL Server 2012 to MySQL v5.5. I used MySQL workbench v6.1 community edition. What I was migrating is just schema only, not for the data. I got this error Reverse ...
-1
votes
1answer
15 views

How to create a Postgres trigger to ensure field is non-updateable

I'm trying to create a Postgres trigger to ensure after a column's value has been set, it cannot be updated (basically make it readonly). So far I've come up with the following draft trigger. 1) ...
1
vote
4answers
39 views

where clause: if this value from col x make sure col y is this value

I feel like this is an easy one for you Experts! I haven't done any kind of Advanced SQL in years. Fundamental question: select * from myTable where ((if col1 = 'this', make sure col2 = ...
1
vote
0answers
20 views

Denormalization Strategies: When is it appropriate to create redundancy for faster querying?

So I sometimes see databases purposely add redundant information for faster querying. I saw that this was mentioned here but I was wondering when would this be better than indexing, or creating a ...
0
votes
1answer
15 views

oracle tablespaces

I export db from user which is related on tablespace USER on local PC and import to user which is related to tablespace DATATAB on server....my question is: will data be stored in DATATAB tablespace ...
3
votes
1answer
36 views

Can a High number of Worktables/sec and/or workfiles/sec lead to tempdb Contention?

We have a large number of very heavily used OLTP systems. One of our biggest issues right now is tempdb contention. I understand how creating many temp tables and table variables (which our developers ...
1
vote
2answers
30 views

Trying to filter msdb..sysjobs by job_id

I'm attempting to determine the name of the SQL Server Agent Job that is currently running by comparing the output of master.sys.dm_exec_sessions.program_name to msdb..sysjobs.job_id I'm using the ...
-1
votes
2answers
21 views

My data base missed and disappeared after detaching it

I have detached my data base in sql 2008 and unfortunately I do not know its path and by my connection string I extract its exact name and searched it but it is disappeared from my computer Is it ...
0
votes
1answer
14 views

MySQL Workbench run SQL script file Character Set encoding issue

Upon running a .sql file for creating a schema in MySQL Workbench 6.1, it prompts a window saying it cannot decide the right character set What's the proper thing to do?
0
votes
0answers
10 views

Error when trying to deploy SSIS package

I am trying to deploy my 2012 SSIS project to the Integration Services catalog on the SSIS server (also 2012). I am getting the error below. I checked that there is plenty of space in SSISDB and ...
1
vote
1answer
8 views

Create user to monitor database activity on Postgres

Postgres 9.3 Debian 7 I want to create a monitor user called monitor that the only permission is to run queries to monitor all the database activity. I created the user and it can select from ...
0
votes
0answers
21 views

Unknown Error when attempting to run Import Data wizard

In SQL Mgmt Studio, when right-clicking on a database, choosing Tasks and selecting Import Data, we receive the below error message. Any idea what might be causing this? We are running SQL Server ...

15 30 50 per page