database-administration

Either the user, 'IIS APPPOOL\App Name', does not have access to the 'SSAS Cube Name' database, or the database does not exist

孤街浪徒 提交于 2019-12-11 15:08:39
问题 1st - I deployed the cube to localhost using SSAS (SQL Server Analysis Services) 2nd - I verified the cube database exists using SSMS (SQL Server Management Studio) even tough the SSAS DB is not showing in SSMS 3rd - I tried to grant permission to my IIS APPPOOL following this answer 4th - I added a new connection in SSMS to Analysis Services in localhost server (instead of a connection to the database engine in the localhost server) 5th - I realized that the process for granting permissions

Integration Services Catalog folder permissions changed

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 02:45:56
问题 Question: Do any of the SQL Server systems tables in either SSISDB or MSDB contain information that would allow me to discover which users are making changes to folder permissions in the Integration Services Catalog? Background: I saw that a SQL Agent Job was failing with the following error description: Cannot access the package or the package does not exist. Verify that the package exists and that the user has permissions to it. Upon researching the issue, I found that the service account's

Oracle alter table insufficient privileges

≯℡__Kan透↙ 提交于 2019-12-11 01:02:52
问题 I have just installed oracle 12c and then i am trying to grant user various rights. I am logged in as system and i had given rights for create user which worked. However, while granting rights for alter table it gave me error ORA-00990: missing or invalid privilege Researching on this problem brought me to another post on SO. The Comments on this post indicated that it is because i am not logged in as GLOBAL user.However i don't know how to log in as GLOBAL user. Do i have to create one ? Is

What Phenomena does MySQL try to prevent by locking the whole table upon executing Delete statement with the condition on a non-indexed column

荒凉一梦 提交于 2019-12-10 23:54:28
问题 Using the MySQL isolation level of Repeatable Read. Given table test having non-indexed column quantity : id | quantity -------------------- 1 | 10 2 | 20 3 | 30 Tx1 executes 1st, note it is not committed yet, meaning that all the acquired locks are not released yet. Tx1: START TRANSACTION; DELETE FROM test WHERE quantity=10; Now executing Tx2 Tx2: START TRANSACTION; INSERT INTO test(quantity) VALUES (40); COMMIT; For Tx2 I get the following result: Lock wait timeout exceeded; try restarting

Postgresql | No space left on device

时光毁灭记忆、已成空白 提交于 2019-12-10 17:37:50
问题 I am getting space issue while running a batch process on PostgreSQL database. However, df -h command shows that machine has enough space below is the exact error org.springframework.dao.DataAccessResourceFailureException: PreparedStatementCallback; SQL [INSERT into BATCH_JOB_INSTANCE(JOB_INSTANCE_ID, JOB_NAME, JOB_KEY, VERSION) values (?, ?, ?, ?)]; ERROR: could not extend file "base/16388/16452": No space left on device Hint: Check free disk space. What is causing this issue? EDIT postgres

optimizing Query with datediff() in mysql

依然范特西╮ 提交于 2019-12-10 12:08:30
问题 I have a Query like below select id,name,baseid,member_card_type,membercard_num,last_draw,counter from details_dest where datediff(curdate(),basedate)<100; i have used the explain on that and found it is using index which is on basedate and i think date_diff is the problem so please suggest me is there any other way to execute it without any functions and kindly tell me which is better datediff() or to_days() in according to performance i am using mysql 5.5 回答1: I would suggest the following

Find all integer columns which are reaching its limits using information_schema

若如初见. 提交于 2019-12-10 11:59:07
问题 I can get a list of all columns I want to verify the space available. SELECT TABLE_NAME, COLUMN_NAME, COLUMN_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_TYPE = 'int(11)' AND TABLE_NAME LIKE 'catalog_category_entity%'; Considering that int(11) is up to 2147483648 (not considering unsigned) I would like to calculate how much I am using from this range. Individually I could check one like this: select max(value_id)/2147483648 as usage from catalog_product_entity_int; But I would like to do

RESULT_CACHE RELIES_ON (NLS_SESSION_PARAMETERS)

蹲街弑〆低调 提交于 2019-12-10 10:37:06
问题 Why below function is not returning fresh param value every time I am altering session to set new NLS_DATE_FORMAT FUNCTION get_param(p_parameter IN VARCHAR2) RETURN VARCHAR2 RESULT_CACHE relies_on(nls_session_parameters) IS l_value nls_session_parameters.value%TYPE; BEGIN dbg('Entered Fn_Get_nls_session_Parameter_frc to cache details for .. ' || p_parameter); SELECT SYS_CONTEXT('USERENV', p_parameter) INTO l_value FROM dual; RETURN l_value; EXCEPTION WHEN NO_DATA_FOUND THEN dbg('In NDF : Gng

Monitor unused indexes in MySQL

独自空忆成欢 提交于 2019-12-10 10:14:42
问题 I have a set of servers where the maintenance query execution takes long. This is due to the indexes that are created by the developers at different points. Is there any way to monitor the unused indexes that adversely affect the execution. 回答1: For mysql 5.6 before By Default package of mysql does not have much statistics for analysis but there are some unofficial patches by which you can analyze. like userstats http://ourdelta.org/docs/userstats By This patch you can analyze the stats and

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

坚强是说给别人听的谎言 提交于 2019-12-09 20:38:12
问题 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