database-administration

No start database manager command was issued. SQLSTATE=57019

白昼怎懂夜的黑 提交于 2019-12-05 07:57:54
I am new to DB2 and I have installed DB2 9.7. I created an instance which is shown below [sathish@oc3855733574 ~]$ db2ilist sathish Settings of /etc/services is shown below DB2_sathish 60000/tcp DB2_sathish_1 60001/tcp DB2_sathish_2 60002/tcp DB2_sathish_END 60003/tcp DB2_TMINST 50000/tcp But, when I start using 'db2start' it throws the following error 07/31/2015 10:26:20 0 0 SQL1042C An unexpected system error occurred. SQL1032N No start database manager command was issued. SQLSTATE=57019 I installed DB2 using 'root' and starting 'DB2' from 'instance' (sathish in this case) Any help or URL

Show failure for SQL 2005 Job that executes Powershell script through CMD prompt, IF PS script fails

自闭症网瘾萝莉.ら 提交于 2019-12-04 17:09:25
I have a SQL 2005 instance that runs a job that uses a Powershell script to rename the current SQL TX Log backup file by appending "-PrevDay" to it, (subsequently deleting the backup already named "XXX-PrevDay.bak" if it exists), and then run a full backup of the DB and a TX Log backup, if the DB is not in Simple mode. SQL Server Agent Job kicks off the Powershell script through CMD in each job step and the powershell script kicks off the sql backup using "Invoke-SQLCmd" cmdlet. This works great, unless the backup fails, because the SQL job still shows as "Successful". This is because the SQL

What's the difference between the Oracle SYS and SYSTEM accounts?

你。 提交于 2019-12-04 15:26:41
问题 What are the differences between the Oracle SYS and SYSTEM built in accounts? Edit: Apart from 3 letters! 回答1: SYS owns the oracle data dictionary. Every object in the database (tables, views, packages, procedures, etc. ) all have a single owner. For the database dictionary, and a whole lot of special tables (performance views and the like) are all owned by the SYS user. The SYSTEM user is supposed to be the master DBA user, with access to all of these object. This reflects an early, and long

Oracle specific timestamp format 'DD-MON-RR HH.MI.SSXFF AM'

蓝咒 提交于 2019-12-04 10:20:29
I have a problem with Oracle 11g specific timestamp format. This is what I have: select to_timestamp('21-OCT-15 08.24.30.000000000 PM','DD-MON-RR HH.MI.SSXFF AM') from dual; Response from database: ORA-01855: AM/A.M. or PM/P.M. required 01855. 00000 - "AM/A.M. or PM/P.M. required" I have also tried to alter session settings with several commands and still nothing. alter session set NLS_LANGUAGE='ENGLISH'; alter session set NLS_DATE_LANGUAGE='ENGLISH'; alter session set NLS_TIMESTAMP_FORMAT = 'DD-MON-RR HH.MI.SSXFF AM'; alter session set NLS_TIMESTAMP_TZ_FORMAT='DD-MON-RR HH.MI.SSXFF AM'; I can

how to move a mysql database to another mount point

爷,独闯天下 提交于 2019-12-04 09:49:20
I have a MySQL database, it is getting larger and larger and I want to move the whole database to another mount point, where I have enough storage. I want my current data to be transferred, and that new data get saved to the new position. software stack: MySQL 5 running on FreeBSD 6 Of course other answers are valid. But if you want to keep the default configuration, do following: stop mysqld mv /var/lib/mysql /var/lib/mysql.backup mount your new partition under /var/lib/mysql cp -r /var/lib/mysql.backup /var/lib/mysql start mysqld Stop mysqld Copy /var/lib/mysql (or whatever $datadir in my

lsnrctl start rane when i fireing this command this error comeing

梦想的初衷 提交于 2019-12-04 07:12:16
问题 [oracle@myserver ~]$ lsnrctl start rane LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 27-SEP-2016 23:04:58 Copyright (c) 1991, 2009, Oracle. All rights reserved. Starting /oraeng/app/oracle/product/11.2.0/bin/tnslsnr: please wait... TNSLSNR for Linux: Version 11.2.0.1.0 - Production System parameter file is /home/oracle/listener.ora Log messages written to /oraeng/app/oracle/product/11.2.0/log/diag/tnslsnr/myserver/rane/alert/log.xml TNS-01150: The address of the specified listener

Random timeout running a stored proc - drop recreate fixes

*爱你&永不变心* 提交于 2019-12-04 04:44:07
问题 So I work with a largish database (30 gig) sql 2005 with a .net 3.5 web front end on a 10 year old system. It has new and old bits We are getting a problem that is happening more and more frequently. A stored proc (we've had 4 different ones so far) decides that it will timeout. The call is happening from the webserver and hits the 30 sec timeout and logs to our error log. The website uses a single login (I know this is wrong but it cannot be changed due to legacy code). Just after this I run

how to drop partition without dropping data in MySQL?

喜欢而已 提交于 2019-12-03 08:35:58
问题 I have a table like: create table registrations( id int not null auto_increment primary key, name varchar(50), mobile_number varchar(13)) engine=innodb partition by range(id) ( partition p0 values less than (10000), partition p0 values less than (20000), partition p0 values less than max value); Not exactly like above but similar to that.... Now assume that my table has 200000 rows and now I want to remove partitions on the table and reorganize them in accordance to requirement without MAX

SQL Database Best Practices - Use of Archive tables?

♀尐吖头ヾ 提交于 2019-12-03 06:47:26
I'm not a trained DBA, but perform some SQL tasks and have this question: In SQL databases I've noticed the use archive tables that mimic another table with the exact same fields and which are used to accept rows from the original table when that data is deemed for archiving. Since I've seen examples where those tables reside in the same database and on the same drive, my assumption is that this was done to increase performance. Such tables didn't have more than a about 10 million rows in them... Why would this be done instead of using a column to designate the status of the row, such as a

How do I find the last time that a PostgreSQL database has been updated?

自作多情 提交于 2019-12-03 04:57:53
问题 I am working with a postgreSQL database that gets updated in batches. I need to know when the last time that the database (or a table in the database)has been updated or modified, either will do. I saw that someone on the postgeSQL forum had suggested that to use logging and query your logs for the time. This will not work for me as that I do not have control over the clients codebase. 回答1: You can write a trigger to run every time an insert/update is made on a particular table. The common