[how to] Sql Server 2008: The Login is from an untrusted domain - domain setup with computer level login |
- Sql Server 2008: The Login is from an untrusted domain - domain setup with computer level login
- How to output query to file using SQLite3
- When is it worth it to use Triggers and stored procedures/functions?
- Table partitioning filegroup
- mysqlnd: same mysql server and php version, can't connect from Windows
- Optimizing "Removing duplicates" thread state
- What's the most effective way to back-up / save data on Oracle 11g large data sets?
- File Maker Script Relative Cell Value
- Can I use the database and query it while full-text indexing?
- Configuring PostgreSQL for read performance
- How much RAM for a large database on a dedicated MySQL InnoDB server?
- Running the following query within a scheduled job
- Why does copied MySQL database have different data than source?
- Missing values in INNER JOIN MS-Access?
- How to rollback the identity seed after deadlock
- Streaming replication in postgresql 9.1 -- sender and receiver processes aren't running
- CREATE DATABASE permission denied in database 'master'
- Oracle RAC 11g R2 DB silent install: parameter needed for system class
- How do I identify the remote db agent name to use in create_database_destination on Oracle 11gR2?
- Getting "BadImageFormatException" when attempting to connect through Visual Studio to Oracle
- SHOW TABLE STATUS very slow on InnoDB
- Find all the SP's where a particular column is not updated
- Designing Simple Schema for Disaggregation of Demand Forecast
- SQL Server BPA 2008R2
- Setting up DRBD on an active MySQL server
- MySQL optimization - year column grouping - using temporary table, filesort
- How can an identity primary key index become fragmented?
Sql Server 2008: The Login is from an untrusted domain - domain setup with computer level login Posted: 15 May 2013 08:55 PM PDT I have a Sql Server 2008 R2 database I'm attempting to connect to using ADO.NET using integrated security in the connection string. The database resides on a 64 bit Windows Server 2003 machine. The client is a 64 bit Windows 7 Enterprise machine. The specific error I receive is : SQL Server 2008: The login is from an untrusted domain and cannot be used with Windows authentication The computer is added as a windows account on the sql server as DOMAIN.edu\ComputerName$ and has been granted full permissions on the target database. Both the server and client are part of the same active directory domain. The computers can communicate with each other over remote desktop. The client machine can see network shares on the server machine, so I don't think network connectivity is a problem. I didn't have a problem with this setup when the Sql Server 2008 R2 database was residing on a 64 Windows XP Professional machine and the client was the same machine. What else can I verify or modify to make my current setup work for machine level authentication? |
How to output query to file using SQLite3 Posted: 15 May 2013 06:57 PM PDT Is there an equivalent to Oracle's spool for sqlite3? |
When is it worth it to use Triggers and stored procedures/functions? Posted: 15 May 2013 05:50 PM PDT As an example, lets say I have a forum application and for every topic that is created, I have a trigger that fires a database function creating a post.(lets assume we have a topics table and a post table) I know these things can be quite circumstantial, but generally, do simple tasks like this belong in triggers/functions, or should they just be done in the application code? As for updating views and replies I was thinking of offloading them to a queue, since the systems functionality doesn't really depend on them. |
Posted: 15 May 2013 07:58 PM PDT Can I use the same filegroup for multiple tables when partitioning a table? I partitioned a items table by year. It created five filegroups. Can I use the same file group for orders table or will I need to create separate filegroup? |
mysqlnd: same mysql server and php version, can't connect from Windows Posted: 15 May 2013 03:39 PM PDT (This question is also in StackOverflow http://stackoverflow.com/questions/16575994/mysqlnd-same-mysql-server-and-php-version-cant-connect-from-windows) I'm migrating mysql functions to mysqli. As I'm using PHP 5.4+, mysqlnd is used by default (is bundled and enabled with PHP). I have two enviroments, dev and production. Both uses the same database (MySQL 5.5.24-log).
I have no admin privileges for the database. I've read a lot and all workarounds point to updating the user's password, in order to use 41-length encoded passwords, but Some others suggest downgrading PHP, but I'm trying not to. It's dumb :-/ The weird thing is that it works in Linux, but not in Win. The fact that Any clues? |
Optimizing "Removing duplicates" thread state Posted: 15 May 2013 03:00 PM PDT I'm trying to hunt down MySQL variables/settings and metrics relevant to the "Removing duplicates" thread state. Here's a snippet from All but The MySQL documentation says ...
My question is, what is this "extra stage" and what variables and/or metrics would be applicable for improving performance? |
What's the most effective way to back-up / save data on Oracle 11g large data sets? Posted: 15 May 2013 06:05 PM PDT We have a database(actually more databases split by primary access path, modulo on a key.) with millions of records (about 400 millions ). Right now I need to save a specific table userData(which has specific data such username, address, city, state, zipcode, country) remotely(on a different server). I'm wondering which would be the best solution given the following requirements :
|
File Maker Script Relative Cell Value Posted: 15 May 2013 03:32 PM PDT I'm new to FileMaker as well as Database administration in general. In my table, every Record contains a link to an Adobe Illustrator file and two Photosho files. The layout speciies a button for each of those files for each Record. The button launches a script that would theoretically launch the Illustrator/Photoshop file that it corresponds to. Here's the script I'm using for Illustrator:
where So here's the problem I'm running into. Most of the time, the button doesn't work. It gives me an error that says, "The file "blah blah.ai" could not be found and is required to complete this operation." When it does work, it is immediately after reassigning the file in the EDIT: It seems that the problem actually arises when all the referenced files are not in the same folder. |
Can I use the database and query it while full-text indexing? Posted: 15 May 2013 01:02 PM PDT I need to index my database, but I need to query it while it is indexing, it may take a long time, can I do that? |
Configuring PostgreSQL for read performance Posted: 15 May 2013 11:32 AM PDT Our system write a lots of data (kind of Big Data system). The write performance is good enough for our needs but the read performance is really too slow. The primary key (constraint) structure is similar for all our tables: timestamp(Timestamp) ; index(smallint) ; key(integer) A table can have millions of row, even billion of rows, and a read request is usually for a specific period (timestamp / index) and tag. It's common to have a query that return around 50000 lines. Currently, we can read about 1000 lines per second but we need to be 10 times faster. Is this possible and if so, how? Thanks a lot for help!! |
How much RAM for a large database on a dedicated MySQL InnoDB server? Posted: 15 May 2013 12:12 PM PDT Hereunder my hardware config: I've upgraded from 12Gb to 32Gb and switched the Java application server on another server in order to have a dedicated MySQL server. Hereunder my MySQL config: MySQL 5.5.28 with InnoDB plugin on RedHat 6. Database size is 130Gb. Since my RAM upgrade, I've updated "innodb_buffer_pool_size" from 8000M to 28000M. Since this upgrade, the response time for my SQL requests are a disaster (7x much slower). What do you think ? Another options to update or to add ? Many thanks in advance, Bob' |
Running the following query within a scheduled job Posted: 15 May 2013 12:05 PM PDT I am looking at running the following query within a scheduled job weekly: Not sure what I am doing wrong but I continue to get an error, I have tried running it from within the @query tag for the sendmail option. Thanks |
Why does copied MySQL database have different data than source? Posted: 15 May 2013 06:19 PM PDT I am trying to migrate database A to database B. I have tried various methods for this, including...
Option 1 always fails, and I'm not sure why. The error message just says "failed". Options 2 and 3 seem to work fine, but then some tables have slightly different data, which makes absolutely no sense to me. For example, here is a row of data from database A... ...and here is the same row in database B... The "foo" and "bar" are HTML content for web page #438 at revision #2255. I have no idea how the HTML content for the same exact revision can be different, when database B should be a straight copy of A. Mysteriously, "foo" represents the most recent version of page #438, and "bar" actually reflects the prior version of page #438. How is this even possible? Also, if any of you DBAs happen to be familiar with Drupal, note that this is for a Drupal site. Incidentally, when I try to restore a backup on this site (a ZIP or SQL file made with the Backup and Migrate module), I get an unhelpful "site encountered an unexpected error" message and nothing else in the error log. The same ZIP and SQL files restore just fine in other test environments, so something about this one site just seems wonky. |
Missing values in INNER JOIN MS-Access? Posted: 15 May 2013 11:24 AM PDT When I run the following query in MS-Access: I end up with values in the Now I'm pretty sure that the keys are matching up and it is only displaying an empty value in ...resulting in And further still when I modify the query to display only the values that have NULL values the originals that appeared in the ...and this returns 30 rows. But I still do not understand why the values are not being displayed, there are a bunch of other queries / It doesn't matter that much provided the next query will be able to use the values to key off of, but I just wondered what was going on. |
How to rollback the identity seed after deadlock Posted: 15 May 2013 11:43 AM PDT Now that's an approximate sequence of operations Im performing: So, as you see, everything's simple: basically, I insert record with explicit ID, then I want to return the identity seed back to its previous value (because the insert will obviously shift it). I need this kind of strange logic (from the first POW) becase I can have ID-s in a large range (billions of rows) of values where the first digit has some special meaning. For instance, I have current identity seed 1000007777. Then I want to insert a record with ID 2000007777 (this will shift identity to 2000007778). But I want to turn it back to 1000007777, because I believe that I will never reach the point when an identity collision will occur (I just don't operate such volumes of data). As I said, the first digit serves special purposes. Now, the problem is, if I rollback the transaction after insert, the identity will not get rolled back (as i got it, that's the design of SQL server, and I believe many DB providers). I can handle this manually if I am the one who conciously performes the rollback. But what if there is deadlock (or some error) right at the point before reseed? How can I handle that (except handling the exception and performing unconditional reseed)? Any ideas? |
Streaming replication in postgresql 9.1 -- sender and receiver processes aren't running Posted: 15 May 2013 02:25 PM PDT I've followed this guide, and cross-referenced the primary postgresql wiki in order to set up replication. I've configured Thanks a lot for any help you might be able to offer! |
CREATE DATABASE permission denied in database 'master' Posted: 15 May 2013 07:40 PM PDT I've developed a desktop application using WPF and Entity Framework code-first. In my application the user can create multiple databases at run-time. But Entity Framework can't create database if the user isn't admin on his machine. I need to find a solution that could be done with coding. Management Studio is not installed on the user's machine. What do you suggest? |
Oracle RAC 11g R2 DB silent install: parameter needed for system class Posted: 15 May 2013 07:52 PM PDT I'm installing Oracle RAC DB 11gR2 using response file and silent mode. The installation is failing with the error message:
Which parameter is needed for a server-class install? I tried changing the value for |
How do I identify the remote db agent name to use in create_database_destination on Oracle 11gR2? Posted: 15 May 2013 12:30 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 |
Getting "BadImageFormatException" when attempting to connect through Visual Studio to Oracle Posted: 15 May 2013 11:28 AM PDT I get the following message: "Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed." when I attempt to create a connection from both Visual Studio 2008 and 2012 to Oracle from my Windows 8 64bit workstation. I'm not running a web app when this message happens. I'm only trying to establish an Oracle connection with Visual Studio. Any solutions posted on the internet that I have seen that resolve this issue with others, doesn't seem to apply to my circumstances.
My environment is
Any suggestions would be appreciated. |
SHOW TABLE STATUS very slow on InnoDB Posted: 15 May 2013 12:07 PM PDT Recently we've been migrating from MyISAM to InnoDB and I understand that MyISAM uses meta information against each table to track information and such - however, the database is about 1.8gb with 1+ million records across 400+ or so tables. The problem comes with software like PHPMyAdmin runs "SHOW TABLE STATUS FROM dbase;" where it can take up to 50 seconds to execute that command. Is there a way to optimise this? (MySQL or MariaDB) Thanks! |
Find all the SP's where a particular column is not updated Posted: 15 May 2013 06:29 PM PDT I want to find stored procedures where a particular column is not updated. As an example SP1: SP2: So I want to get all the SP's where Note: one SP can have multiple update statements. Is there any possibility to get the table name of that update statement ? |
Designing Simple Schema for Disaggregation of Demand Forecast Posted: 15 May 2013 01:07 PM PDT I am doing a simple database design task as a training exercise where I have to come up with a basic schema design for the following case: I have a parent-child hierarchy of products (example, Raw Material > Work in Progress > End Product).
Demand Forecast is usually done at the higher level in hierarchy (Raw Material or Work in Progress level) It has to be disaggregated to a lower level (End Product). There are 2 ways in which demand forecast can be disaggregated from a higher level to lower level:
Forecast shall be viewable in weekly buckets for the next 6 months and the ideal format should be: PRODUCT_HIERARCHY table could look like this: ORDERS table might look like this: where,
How to store forecast? What would be a good basic schema for such a requirement? My idea to select orders for 26 weekly buckets is: But this will give weekly buckets starting from today irrespective of the day. How can I convert them to Sunday to Saturday weeks in Oracle? Please help designing this database structure. (will be using Oracle 11g) |
Posted: 15 May 2013 11:01 AM PDT I have been using SQL server BPA for getting good information from Microsoft. I was using its 2005 version in which i used to export the results in csv format but recently I got two new servers which has got SQL Server 2008 R2 installed on it and I know I can't run BPA 2005 on these, so chose the R2 version of it, but it doesn't have an option to save the report on csv format, only xml, I have tried the excel to convert it into csv but no use, even-though it display the details but can't narrow down the results any idea of converting the results to csv format? |
Setting up DRBD on an active MySQL server Posted: 15 May 2013 07:07 PM PDT When it comes to setting up DRBD and MySQL, is the following possible?
|
MySQL optimization - year column grouping - using temporary table, filesort Posted: 15 May 2013 02:07 PM PDT I have a transactions table which is having 600,000 records, I need to list the count for the dashboard on financial year basis. The table used is MyISAM. I tried adding index for the transaction date ( SELECT COUNT( * ) AS cnt, CASE WHEN MONTH( tran_date ) >=3 THEN concat( YEAR( tran_date ) , '-', YEAR( tran_date ) +1 ) ELSE concat( YEAR( tran_date ) -1, '-', YEAR( tran_date ) ) END AS financial_year FROM `transactions1` WHERE tran_date >= '2010-06-01' GROUP BY financial_year Showing rows 0 - 4 (5 total, Query took 1.2095 sec) id select_type table type possible_keys key key_len ref rows Extra 1 SIMPLE transactions1 range PRIMARY,tran_date tran_date 8 NULL 346485 Using where; Using index; Using temporary; Using filesort Keyname Type Unique Packed Field Cardinality Collation PRIMARY BTREE Yes No tran_date 205720 A tran_ID 617162 A coupon_No BTREE No No coupon_No 617162 A account_typeBTREE No No account_type 3 A prodCode BTREE No No prodCode 430 A tran_date 308581 A tran_date BTREE No No tran_date 205720 A cust_ID BTREE No No cust_ID 3265 A tran_date 308581 A account_type 308581 A points_earned 617162 A Update : Tried adding partition which is not that much helpful in comparison with non partitioned one. Does replication help in this case for reading this table?. There will be more grouping based on the dates (using the date functions) when reading the data. Edit: I altered the query and reduced the query execution time. The query I used is, SELECT SUM( count ) FROM ( SELECT COUNT( * ) AS count, CASE WHEN MONTH( tran_date ) >=3 THEN concat( YEAR( tran_date ) , '-', YEAR( tran_date ) +1 ) ELSE concat( YEAR( tran_date ) -1, '-', YEAR( tran_date ) ) END AS format_date FROM transactions1 GROUP BY tran_date ) AS s GROUP BY format_date Showing rows 0 - 4 (5 total, Query took 0.5636 sec) id select_type table type possible_keys key key_len ref rows Extra 1 PRIMARY <derived2> ALL NULL NULL NULL NULL 229676 Using temporary; Using filesort 2 DERIVED transactions1 index NULL tran_date 8 NULL 617162 Using index But when using SELECT COUNT( * ) AS count, CASE WHEN MONTH( tran_date ) >=3 THEN concat( YEAR( tran_date ) , '-', YEAR( tran_date ) +1 ) ELSE concat( YEAR( tran_date ) -1, '-', YEAR( tran_date ) ) END AS format_date FROM transactions1 GROUP BY tran_date Showing rows 0 - 29 (229,676 total, Query took 0.0006 sec) gives less time without using the |
How can an identity primary key index become fragmented? Posted: 15 May 2013 12:14 PM PDT From what I understand about index fragmentation, this should not be possible. The cases I have found in my databases are non-clustered. Example: Update: I am querying dm_db_index_physical_stats.avg_fragmentation_in_percent, so I believe it is physical fragmentation I am seeing. |
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