Schizophrenic sql or server?

Thanks for taking my question!
We have 3 oracle servers (10.2.0.3). Each server has the same tables, data, and indexes but each can start acting different for no apparent reason. Sql that has run for months goes bad on our production and test server while the production's backup server works fine.
In this case, I can fix the problem (as described below) but don’t understand what went wrong or why my change fixed the problem. Each server collects stats nightly so indexes and tables are not stale.
Anyone have any ideas why sql is breaking?
Thank You! Kathie
BACKGOUND:
Sql works fine on 1 server and not on the other 2 servers (as I said before - same data and indexes on each server and sql has not changed on any of the servers).
TO FIX FULL TABLE SCAN:
MOVED: JOIN name_record n ON s.sr_key = n.nr_key AND n.nr_inactive_flag = 0
ADDED INDEX: (nr_key, nr_inactive_flag)
Already had an index with nr_key (which is unique) so it doesn't make since to add the new index but if I remove it the index the full table scan comes back.
*THIS IS THE ORIGINAL STATEMENT
SELECT ...sch.sch_name, sch.sch_state, v1.val_9pos AS sr_class_9,
v2.val_25pos AS sr_hsg_status_25, v3.val_25pos AS sr_hsg_list_25,
v4.val_9pos AS sr_selective_svc_9,
v5.val_madison AS sr_direct_deposit_10,
v6.val_3pos AS sr_for_lang_comp_3,
vtm1.vtm_13_display AS sr_matriculation_13,
vtm2.vtm_13_display AS last_ug_term,
vtm3.vtm_13_display AS last_g_term
FROM student_record s
JOIN user_names usr ON s.sr_public_w_check = usr.usr_key AND usr.usr_user_name = 'StudentUserID'
JOIN name_record n ON s.sr_key = n.nr_key AND n.nr_inactive_flag = 0JOIN value_terms vtm1 on s.sr_matriculation = vtm1.vtm_term
JOIN value_terms vtm2 ON s.sr_last_ug_term = vtm2.vtm_term
JOIN value_terms vtm3 ON s.sr_last_g_term = vtm3.vtm_term
JOIN value_master v1
ON v1.val_field = 205003 AND s.sr_class = v1.val_value_number
JOIN value_master v2
ON v2.val_field = 201204 AND s.sr_hsg_status = v2.val_value_number
JOIN value_master v3
ON v3.val_field = 201202 AND s.sr_hsg_list = v3.val_value_number
JOIN value_master v4
ON v4.val_field = 201173 AND s.sr_selective_svc = v4.val_value_number
JOIN value_master v5
ON v5.val_field = 201407 AND s.sr_direct_deposit = v5.val_value_number
JOIN value_master v6
ON v6.val_field = 201154 AND s.sr_for_lang_comp = v6.val_value_number
>>>> to here <<<<
LEFT JOIN school_records sch ON s.sr_high_school =sch.SCH_TYPE_AND_CODE

each can start acting different for no apparent reason. Sql that has run for
months goes bad on our production and test server while the production's
backup server works fine.What sort of "bad"? Please describe the behaviour in more detail.
Each server collects stats nightly so indexes and tables are not stale. The different usages of the servers might suggest they would have different rates of data change and hence might have different stats. In general collecting stats every night is usually bad practice: either the change in the stats is marginal - in which case why bother - or it can be severe, in whcih case it might have a deleterious effect on previously performant code (although I agree that is unlikely).
Cheers, APC
blog: http://radiofreetooting.blogspot.com

Similar Messages

  • Fetch the data from the tables in the SQL 2005 server to sap R/3.

    Hi Experts,
    We need to fetch the data from the tables in the SQL 2005 server to sap R/3.
    Please explain which will be the best approach to fetch the same and how to do it. Sample program can greatly help.
    << Please do not offer points >>
    Regards,
    Shobana K
    Edited by: Rob Burbank on Sep 21, 2010 2:36 PM

    Hi,
    Try NATIVE SQL statements in your abap code otherwise you can try to establish jdbc connection from ABAP program.
    search in SDN for samples!
    Suresh

  • Failed to Establish Connection With SQL Database Server in Essbase studio

    I am using Essbase Studio Release 11.1.2.1.00 for developing XOLAP cubes and deploying them on to Essbase server .
    I am getting the below Error while deploying the cube onto Essbase server.
    error : Failed to deploy Essbase cube.
    Caused by: Failed to build Essbase cube dimension: (TimeHierarchy) .
    Caused by: Cannot get async process state. Essbase Error(1021001): Failed to Establish Connection With SQL Database Server.
    From Essbase Studio -> Datasources tab, I could able to connect to SQL Database server..Please let me know how to resolve this issue.
    Thanks,
    Swathi

    Thanks for the reply.
    There was a problem with my Essbase Server..so now i m pointing to other server.
    now I am getting the below Error:
    Failed to deploy Essbase cube.
    Caused by: Cannot end incremental build. Essbase Error(1025008): Join Specification near [[TIMEID]] is invalid. Please verify the Xolap Schema file.
    Please let me know how can I validate my cube and what changes might require in my Cube definitions?

  • Failed to Establish Connection with SQL Database Server (EAS)

    Hi,
    We have recently installed version 11.1.2.1 of essbase. Everything is working just peachy. One of my users tried to build a load rule using an Oracle ODBC data connection and gets the error:
    Failed to Establish Connection with SQL Database Server.  See log for more information.
    When I look in the log I see this:
    [Tue Feb 28 09:14:43 2012]Local/Sample/Basic/mressler@EnCanaAD/4240/Info(1013091)
    Received Command [SQLListDsn] from user [mressler@EnCanaAD]
    [Tue Feb 28 09:14:43 2012]Local/Sample/Basic/mressler@EnCanaAD/4240/Info(1021020)
    Cannot read SQL driver name for [Backup Exec Catalogs] from [ODBC.INI]
    [Tue Feb 28 09:15:03 2012]Local/Sample/Basic/mressler@EnCanaAD/5228/Info(1013091)
    Received Command [SQLRetrieve] from user [mressler@EnCanaAD]
    [Tue Feb 28 09:15:03 2012]Local/Sample/Basic/mressler@EnCanaAD/5228/Info(1021020)
    Cannot read SQL driver name for [Backup Exec Catalogs] from [ODBC.INI]
    [Tue Feb 28 09:15:03 2012]Local/Sample/Basic/mressler@EnCanaAD/5228/Info(1021004)
    Connection String is generated
    [Tue Feb 28 09:15:03 2012]Local/Sample/Basic/mressler@EnCanaAD/5228/Info(1021041)
    Connection String is [DSN=Test;UID=...;PWD=...;]
    [Tue Feb 28 09:15:03 2012]Local/Sample/Basic/mressler@EnCanaAD/5228/Info(1021006)
    SELECT Statement [SELECT '1' from dual] is generated
    [Tue Feb 28 09:15:03 2012]Local/Sample/Basic/mressler@EnCanaAD/5228/Info(1021013)
    ODBC Layer Error: [IM004] ==> [[Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed]
    [Tue Feb 28 09:15:03 2012]Local/Sample/Basic/mressler@EnCanaAD/5228/Info(1021014)
    ODBC Layer Error: Native Error code [0]
    [Tue Feb 28 09:15:03 2012]Local/Sample/Basic/mressler@EnCanaAD/5228/Error(1021001)
    Failed to Establish Connection With SQL Database Server. See log for more information
    [Tue Feb 28 09:15:03 2012]Local/Sample/Basic/mressler@EnCanaAD/5228/Warning(1080014)
    Transaction [ 0x140002( 0x4f4cfd87.0x7b890 ) ] aborted due to status [1021001].
    I have tested that the ODBC connection can connect to the database. The sql query has been dumbed down to select '1' from dual. I have not included the word "select" in the query.
    Anyone seen this before? We are in the process of uninstalling the Oracle client completely and re-installing it to see if this solves the issue. We only installed the 64 bit version of the Oracle client. I am running on Windows Enterprise 2008 R2 - 64 bit. EAS, Essbase, EIS are all 64 bit installs. I believe Studio is the only one that is 32bit. However we are not currently using this product.
    Thanks,
    Mike

    Hi Mike,
    With Oracle Support's help, we got 3 of the 5 servers working now. We were using the Datadirect drivers but were configuring them wrong! You have to use the Standard Connection portion in the setup, specifying the Host, Port Number (1521) and the SID. We were using the TNSNames Connection which worked in the past, but apparently does not now.
    So I am down to 2 servers not working. They are both Windows 2008 R2 Enterprise 64 bit, running Oracle EPM Essbase 11.1.2.1. When I Open SQL in EAS it prompts for database (Essbase Server, App, DB) and when I hit ok it pops up with "Network error: Cannot Locate Connect Information For []". We did not do any of the suggestions in the document you linked to get the other 3 servers working. When you hit ok on that error, you then get another error stating, "There are no Data Sources defined. 'SQL data sources' option will be disabled". We do have datasources defined on the server.
    Any ideas?
    Thanks,
    Mike
    Edited by: Mike on Mar 1, 2012 8:38 AM

  • Error: 1021001 Failed to Establish Connection With SQL Database Server

    Hello,
    Someone you already MEETS it the following error during an essbase retrieve DLR.
    My client oracle essbase on my server is 64bit, Essbase 11.1.2.2 x64
    I run the odbc located in% windir% \ system32 \ odbcad32.exe
    "Error: 1021001 Failed to ESTABLISH Connection With SQL Database Server. See log for more information"
    Here is the log:
    Received Command [SQLListDsn] from user [admin]
    [2:50:33 p.m. Fri 28 September 2012] Local / CAS_TEST / / / 8168/Info (1042059)
    Connected from [10.100.50.2]
    [2:50:33 p.m. Fri 28 September 2012] Local/CAS_TEST/CAS_TEST/admin/8168/Info (1013091)
    Received Command [SQLRetrieve] from user [admin]
    [2:50:33 p.m. Fri 28 September 2012] Local/CAS_TEST/CAS_TEST/admin/8168/Info (1021004)
    Connection String is generated
    [2:50:33 p.m. Fri 28 September 2012] Local/CAS_TEST/CAS_TEST/admin/8168/Info (1021041)
    Connection String is [DSN = TEST_ORACLE; UID = ...; PWD = ...]
    [2:50:33 p.m. Fri 28 September 2012] Local/CAS_TEST/CAS_TEST/admin/8168/Info (1021006)
    SELECT Statement [SELECT from dual;] is generated
    [2:50:33 p.m. Fri 28 September 2012] Local/CAS_TEST/CAS_TEST/admin/8168/Info (1021013)
    ODBC Layer Error: [IM004] ==> [[Microsoft] [ODBC Driver Manager] Driver's SQLAllocHandle we failed SQL_HANDLE_ENV]
    [2:50:33 p.m. Fri 28 September 2012] Local/CAS_TEST/CAS_TEST/admin/8168/Info (1021014)
    ODBC Layer Error: Native Error code [0]
    [2:50:33 p.m. Fri 28 September 2012] Local/CAS_TEST/CAS_TEST/admin/8168/Error (1021001)
    Failed to ESTABLISH Connection With SQL Database Server. See log for more information
    [2:50:33 p.m. Fri 28 September 2012] Local/CAS_TEST/CAS_TEST/admin/8168/Warning (1080014)
    Transaction [0x780001 (0x50659d19.0xc9e78)] aborted due to status [1021001].
    When I try to go through OCI service name:
    dbServerName: port / service_name
    I have the following error message:
    Solutions2: List of members 1423.CAS_TEST.CAS_TEST September 28, 2012 2:50:15 PM CEST Succeeded
    Read SQL record September 28, 2012 2:50:35 PM CEST Failed
    thank you in advance
    Edited by: 851398 on 28 sept. 2012 06:31

    In essbase logs there is nothing special, same for windows log.
    Everything I like is log in log view eas
    [Fri Sep 28 17:52:11 2012]Local/CAS_TEST///4020/Info(1013205)
    Received Command [Get Database Info]
    [Fri Sep 28 17:52:11 2012]Local/CAS_TEST///4020/Info(1013205)
    Received Command [Get Database State]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///7580/Info(1013210)
    User [admin] set active on database [CAS_TEST]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///6720/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/6720/Info(1013091)
    Received Command [GetAttributeNameSpecs] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///7304/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/7304/Info(1013091)
    Received Command [GetOtlInfo] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///7572/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/7572/Info(1013091)
    Received Command [OtlQueryMbrs] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///8116/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/8116/Info(1013091)
    Received Command [OtlQueryMbrs] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///7384/Info(1013210)
    User [admin] set active on database [CAS_TEST]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///6592/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/6592/Info(1013091)
    Received Command [GetAttributeNameSpecs] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///7972/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/7972/Info(1013091)
    Received Command [GetOtlInfo] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///216/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/216/Info(1013091)
    Received Command [OtlQueryMbrs] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///3104/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/3104/Info(1013091)
    Received Command [GetAttributeNameSpecs] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///3472/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/3472/Info(1013091)
    Received Command [GetOtlInfo] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///8112/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/8112/Info(1013091)
    Received Command [OtlQueryMbrs] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///4020/Info(1013205)
    Received Command [Get Database Info]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///3840/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/3840/Info(1013091)
    Received Command [GetAttributeNameSpecs] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///7760/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/7760/Info(1013091)
    Received Command [GetOtlInfo] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///7300/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/7300/Info(1013091)
    Received Command [OtlQueryMbrs] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///7904/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/7904/Info(1013091)
    Received Command [OtlQuerySmartLists] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///3612/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/3612/Info(1013091)
    Received Command [GetAttributeNameSpecs] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///6732/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/6732/Info(1013091)
    Received Command [GetOtlInfo] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///7576/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/7576/Info(1013091)
    Received Command [OtlQueryMbrs] from user [admin]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST///7268/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:21 2012]Local/CAS_TEST/CAS_TEST/admin/7268/Info(1013091)
    Received Command [OtlQueryMbrs] from user [admin]
    [Fri Sep 28 17:52:27 2012]Local/CAS_TEST///7556/Info(1013210)
    User [admin] set active on database [CAS_TEST]
    [Fri Sep 28 17:52:29 2012]Local/CAS_TEST///8168/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:29 2012]Local/CAS_TEST/CAS_TEST/admin/8168/Info(1013091)
    Received Command [SQLListDsn] from user [admin]
    [Fri Sep 28 17:52:55 2012]Local/CAS_TEST///7564/Info(1042059)
    Connected from [10.100.50.2]
    [Fri Sep 28 17:52:55 2012]Local/CAS_TEST/CAS_TEST/admin/7564/Info(1013091)
    Received Command [SQLRetrieve] from user [admin]
    [Fri Sep 28 17:52:55 2012]Local/CAS_TEST/CAS_TEST/admin/7564/Info(1021004)
    Connection String is generated
    [Fri Sep 28 17:52:55 2012]Local/CAS_TEST/CAS_TEST/admin/7564/Info(1021041)
    Connection String is [DSN=TEST_ORACLE;UID=...;PWD=...;]
    [Fri Sep 28 17:52:55 2012]Local/CAS_TEST/CAS_TEST/admin/7564/Info(1021006)
    SELECT Statement [SELECT * from dual ] is generated
    [Fri Sep 28 17:52:55 2012]Local/CAS_TEST/CAS_TEST/admin/7564/Info(1021013)
    ODBC Layer Error: [IM004] ==> [[Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed]
    [Fri Sep 28 17:52:55 2012]Local/CAS_TEST/CAS_TEST/admin/7564/Info(1021014)
    ODBC Layer Error: Native Error code [0]
    [Fri Sep 28 17:52:55 2012]Local/CAS_TEST/CAS_TEST/admin/7564/Error(1021001)
    Failed to Establish Connection With SQL Database Server. See log for more information
    [Fri Sep 28 17:52:55 2012]Local/CAS_TEST/CAS_TEST/admin/7564/Warning(1080014)
    Transaction [ 0xb50001( 0x5065c7d7.0x31ce0 ) ] aborted due to status [1021001].
    Have you an idea about the Merant driver to essbase?
    Thank

  • Possible for AIR app connecting to SQL 2005 server

    Is it possible using Flex AIR to connection to SQL 2005
    server and fetch data ?
    If YES, whats step / process we need to follow please.
    We have the DB in sql 2005 and we want to develop desktop
    client and fetch the records from DB to AIR app.

    "kamaljeetsinghsaini" <[email protected]>
    wrote in message
    news:gmsmnc$non$[email protected]..
    > As we know that AIR supports SQlite only but in our case
    we want to fetch
    > data
    > from server that is using SQL 2005 as DB. So are you
    saying we can
    > directly
    > send the HTTP service to that server and fetch data from
    it ?
    You can send the HTTPService request to whatever back end
    technology you are
    currently using to access it. For example, if you are using
    ASP.net, you
    would still use ASP.net, but you would send back something
    that Flex
    understands, such as XML, instead of the HTML that the
    browser client
    understands.

  • Essbase Studio - Failed to Establish Connection With SQL Database Server

    Hi all,
    I am new to Hyperion and am having trouble deploying what seems a simple cube in Essbase Studio.
    My environment is Windows 2003, EPM 11.1.1.2, SQL Server 2000.
    I have the following two issues which may be related.
    1. The EPM System Diagnostic tool says that Hyperion Foundation cannot connect to the SQL database.
    Error:
    Failed: Connection to database
    Error: java.net.UnknownHostException: <server name: <server name>
    Recommended Action:
    Every other EPM application is able to connect to the database. I have tried re-configuring Foundation Services and checking the config files and nothing looks wrong. I would appreciate advice on how to fix this.
    2 In Essbase Studio, I was able to connect to the database where the source data is, build the minischema and create dimensions and measures. But when I run the cube deployment wizard I get the error:
    Message: Failed to deploy Essbase cube
    Caused By: Failed to build Essbase cube dimension: (Time)
    Caused By: Cannot incremental build. Essbase Error(1021001): Failed to Establish Connection With SQL Database Server. See log for more information
    …ODBC Layer Error: [08001] ==> [[Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]SQL Server does not exist or access denied.]
    I have checked the DSN as well as the connections set up within Studio, and they are all able to connect to the database. I am using the admin user for the Essbase server and have created a different user for the databases where the data resides and the shared services database. I tried using the same user all the way through and this didn’t help.
    Can you please advise what else I can check or change to resolve this issue.
    Also, can you work in EAS with cubes that are created in Studio? I tried looking at it and I got an error that the rule file couldn’t be accessed because it was created in Studio.
    After the above failures, I tried creating a cube in EIS, with mixed success. I have been able to load the members and data without errors. But when I try to view the data in the cube, I am seeing field names for the measures instead of the data itself.
    ...Definitely more questions than answers at this stage of my learning.
    Regards
    Michelle

    Michelle,
    I don't know if you found an answer to you question after so many months but I was hoping I could be helpful.
    The issue you are experience happens often when the dimension that you are getting an error on, in this case TIME, is built from a snowflake lineage and there is a bad foreign key reference. This dimension is most like high-up in your outline build process for Essbase Studio and this prevents the build from happening usually early on.
    Check your logs also. They are in Hyperion > Products > logs > essbase > essbasestudio.
    You can also make your logs more verbose by setting a configuration variable in the essbase studio server.properties file but that should only be used for debugging as it really saps performance.
    And, yes, you can of course edit an Essbase Studio deployed cube in EAS. However, any changes you make to the cube in EAS are subject to being wiped-out upon the next Essbase Studio deployment of that Applicaion/Database combo.
    If you want to provide more detail, screenshots, etc. I would be glad to help where I can.
    Cheers,
    Christian
    http://www.artofbi.com

  • SQL Azure server instance

    I want to find out is how many SQL bulk operations can reliably be done at once on a SQL Azure server instance?
    Is there any capacity restrictions such as # of simultaneous bulk inserts, total # of rows per bulk operation,
    etc.?
    How should we handle multiple sql bulk operations to make this more reliable? Any best practices, recommendations

    Hi Rajesh,
    Based on your query, here is the link which answers all your questions.
    http://social.technet.microsoft.com/wiki/contents/articles/3507.windows-azure-sql-database-performance-and-elasticity-guide.aspx
    http://azure.microsoft.com/en-us/services/sql-database/
    http://msdn.microsoft.com/library/azure/hh852669.aspx
    Girish Prajwal

  • Full table scans : sql or server?

    Thanks for taking my question!
    We have 3 oracle servers (10.2.0.3). Each server has the same tables, data, and indexes but each can start acting different for no apparent reason. Sql that has runs for months goes bad on our production and test server while the production's backup server works fine.
    In this case, I can fix the problem (as described below) but don’t understand what went wrong or why my change fixed the problem. Each server collects stats nightly so indexes and tables are not stale.
    Anyone have any ideas why sql is breaks?
    Thank You!
    Kathie
    BACKGOUND:
    Sql works fine on 1 server and not on the other 2 servers (as I said before - same data and indexes on each server and sql has not changed on any of the servers).
    TO FIX FULL TABLE SCAN:
    MOVED: JOIN name_record n ON s.sr_key = n.nr_key AND n.nr_inactive_flag = 0
    ADDED INDEX: (nr_key, nr_inactive_flag)
    Already had an index with nr_key (which is unique) so it doesn't make since to add the new index but if I remove it the index the full table scan comes back.
    *THIS IS THE ORIGINAL STATEMENT
    SELECT ...sch.sch_name, sch.sch_state, v1.val_9pos AS sr_class_9,
    v2.val_25pos AS sr_hsg_status_25, v3.val_25pos AS sr_hsg_list_25,
    v4.val_9pos AS sr_selective_svc_9,
    v5.val_madison AS sr_direct_deposit_10,
    v6.val_3pos AS sr_for_lang_comp_3,
    vtm1.vtm_13_display AS sr_matriculation_13,
    vtm2.vtm_13_display AS last_ug_term,
    vtm3.vtm_13_display AS last_g_term
    FROM student_record s
    JOIN user_names usr ON s.sr_public_w_check = usr.usr_key AND usr.usr_user_name = 'StudentUserID'
    JOIN name_record n ON s.sr_key = n.nr_key AND n.nr_inactive_flag = 0JOIN value_terms vtm1 on s.sr_matriculation = vtm1.vtm_term
    JOIN value_terms vtm2 ON s.sr_last_ug_term = vtm2.vtm_term
    JOIN value_terms vtm3 ON s.sr_last_g_term = vtm3.vtm_term
    JOIN value_master v1
    ON v1.val_field = 205003 AND s.sr_class = v1.val_value_number
    JOIN value_master v2
    ON v2.val_field = 201204 AND s.sr_hsg_status = v2.val_value_number
    JOIN value_master v3
    ON v3.val_field = 201202 AND s.sr_hsg_list = v3.val_value_number
    JOIN value_master v4
    ON v4.val_field = 201173 AND s.sr_selective_svc = v4.val_value_number
    JOIN value_master v5
    ON v5.val_field = 201407 AND s.sr_direct_deposit = v5.val_value_number
    JOIN value_master v6
    ON v6.val_field = 201154 AND s.sr_for_lang_comp = v6.val_value_number
    to here <<<<LEFT JOIN school_records sch ON s.sr_high_school =sch.SCH_TYPE_AND_CODE

    Schizophrenic sql or server?.
    C.

  • How to configure data source for MS SQL 2005 Server.

    Good morning,
    While creating a data source for MS SQL 2005 Server, what are the values I should use for:
    Object Factory, DataSource Type, and CPDS Class Name values ?
    Thanks
    Seenu

    seenuFour wrote:
    Hi,
    I am working on a web application, the backend of which is a MS SQL 2005 server. I am creating a data source on the application server to manage the connection pool.
    Hence I need to give the following values while creating the data source:...
    Hence you need to provide some actual detail about what the context is.
    IIS runs "web applications" but your question would have no meaning in that context. On the other hand it might have some meaning if you were running Tomcat.

  • Instant client 10.2.0.3 used with ms sql linked server doesn't work

    Hi,
    instant client version 10.2.0.3 doesn't work as microsoft sql linked server (both 2000, 2005) while 10.2.0.1 does. (tested by overwriting files in instant client directory - basic instalation, then restart mssql services) - the message is, that the oracle client is not installed when running sql (registration of linked server is ok).
    Is it a known issue or is there any workaround?
    (Windows XP, 2003, MS SQL 2005, MS SQL 2000, Oracle 9.2.0.6)
    Thanks,
    Pavel

    I installed oracle-instantclient-basic-10.2.0.3-1.i386.rpm on a redhat box to
    connect oracle database server 9.2.0.8.0 install on win box.Is there any other Oracle software installed on the RedHat machine?
    In which directory did you install Instant Client?
    Can you login with sqlplus?
    On the database server, I defined parameters like this :
    NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS'
    NLS_NUMERIC_CHARACTERS='. 'This will have no effect on your problem - these are client environment variables.
    Before starting apache (lampp) I set Oracle environement like this :
    export NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS'
    export NLS_NUMERIC_CHARACTERS='. '
    My application worked very fine.
    BUT a few days ago (1 week), in my application, the date format display wrong,
    I have this format : DD/MON/YYYY even with
    export NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS'
    before starting apache.The ancient question: Do you remember what you changed before it stopped working?
    So I stop my apache and try set Oracle environment like this :
    export ORACLE_HOME=/usr/lib/oracle/10.2.0.3/clientAs has been said, do away with that.
    export PATH=$ORACLE_HOME/bin:$PATHYou don't need that either.
    Except is might be nice to have the directory that contains sqlplus in PATH.
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATHNow that surprises me.
    Normally, instant client shared libraries are not installed in a subdirectory.
    Does this "lib" directory exist?
    You should add the directory containing the *.so files to LD_LIBRARY_PATH.
    When I restart apache and test my application, an error php message occurs :
    Ocisessionbegin error while trying TO retrieve text FOR error ora-12705
    I check my oracle_home, I don't think I make a mistake?It seems that Oracle cannot find the instant client shared library libociei.so.
    This library must be found in LD_LIBRARY_PATH.
    In this context it would be interesting to know (as I asked above) if any other Oracle products are installed on this machine.
    Yours,
    Laurenz Albe

  • HA Installation of ERP 6 With SQL 2005 Server Problem.

    hi ,
    i have two blade server with windows 2003 Enterprise and  cluster configure on them as prescribe by the note of Microsoft.
    now i have installed MS Sql 2005 Server as said by the SAP Documentation on first node and it was sucessfull . after that i installed ABAP (ASCS) SCS on first node and it was installed too . now i am stuck at the process of FIRST MSCS NODE step
    the installation note says :-
    7.4.5Configuring the First MSCS Node
    To configure the first MSCS node so that it functions properly in MSCS, you have to run the cluster configuration option offered by the SAPinst tool. When you run this option it:
    Creates the SAP cluster group
    Copies tools to the SAPCluster directory
    Sets the SAPService to manual
    Makes sure that the SAPOsCol service starts from the SAPCluster directory
    this says cluster configuration option but i can't find it any where and i don't know how the %windows%/sapcluster dir  creates do i have to create it manually if so then how, the sap document says as follows :-
    SapCluster Directory
    In an SAP cluster installation, an additional directory u2013 %WINDIR%\SapCluster u2013 is created under the system directory.
    This contains all the SAP files required by all MSCS cluster nodes, independently of the MSCS node the SAP instance is running on. The files are database tools and program files (executables) used by the operating system monitor (SAPOsCol).
    The directory is added to the path variable of the user <sapsid>adm.
    can any one help me in this .
    thanks in advanced

    thanks for response , at the phase FIRST MSCS NODE it stuck
    the R3CLUS.LOG file is as follows :-
    24.8.2010, 13:14:26, ntclsapclus.cpp, 213, Entry: InstallSAPResourceType
    24.8.2010, 13:14:26, ntclsclinst.cpp, 58, Entry: Sclinstsrct::Create
    24.8.2010, 13:14:26, ntclsclinst.cpp, 79, CreateClusterResourceType RC= 183
         Cannot create a file when that file already exists.
    24.8.2010, 13:14:26, ntclsclinst.cpp, 91, DllRegisterCluAdminExtension RC= 0
    24.8.2010, 13:14:26, ntclsclinst.cpp, 102, DllRegisterServer RC= 0
    24.8.2010, 13:14:26, ntclsclinst.cpp, 116, Exit: Sclinstsrct::Create RC= 0
    24.8.2010, 13:14:26, ntclsapclus.cpp, 215, Exit: InstallSAPResourceType RC= 0
    and SAPINST.LOG file say's in last lines:-
    INFO 2010-08-24 13:15:26.655
    Execute step dGetSAPClusterParameters of component |MSCS_A|windows|ind|ind|ind|0|0|CollectClusterParameters|windows|ind|ind|ind|3|0
    WARNING[E] 2010-08-24 13:15:26.670
    MUT-03028  Number value 0x-3f580000 is bigger than 0xFFFFFFFF.
    ERROR 2010-08-24 13:15:26.824
    FCO-00011  The step dGetSAPClusterParameters with step key |MSCS_A|windows|ind|ind|ind|0|0|CollectClusterParameters|windows|ind|ind|ind|3|0|dGetSAPClusterParameters was executed with status ERROR .
    and SAPINST_DEV.LOG say's in last lines :-
    WARNING[E] 2010-08-24 13:15:26.670
               CJSlibModule::writeError_impl()
    MUT-03028  Number value 0x-3f580000 is bigger than 0xFFFFFFFF.
    TRACE      2010-08-24 13:15:26.793 [iaxxejsbas.hpp:483]
               EJS_Base::dispatchFunctionCall()
    JS Callback has thrown unknown exception. Rethrowing.
    ERROR      2010-08-24 13:15:26.824 [sixxcstepexecute.cpp:950]
    FCO-00011  The step dGetSAPClusterParameters with step key |MSCS_A|windows|ind|ind|ind|0|0|CollectClusterParameters|windows|ind|ind|ind|3|0|dGetSAPClusterParameters was executed with status ERROR .
    TRACE      2010-08-24 13:15:26.840 [iaxxgenimp.cpp:752]
                CGuiEngineImp::showMessageBox
    <html> <head> </head> <body> <p> An error occurred while processing option SAP ERP 6.0 EHP4 Ready - Support Release 1 > SAP Application Server ABAP > MS SQL Server > High-Availability System > First MSCS Node. You can now: </p> <ul> <li> Choose <i>Retry</i> to repeat the current step. </li> <li> Choose <i>View Log</i> to get more information about the error. </li> <li> Stop the option and continue with it later. </li> </ul> <p> Log files are written to C:\Program Files/sapinst_instdir/ERPEhP4/AS-ABAP/MSS/HA/MSCS-A.
    TRACE      2010-08-24 13:15:26.840 [iaxxgenimp.cpp:1255]
               CGuiEngineImp::acceptAnswerForBlockingRequest
    Waiting for an answer from GUI
    help needed........
    Edited by: Eric Brunelle  to fix HTML tags on Aug 24, 2010 9:15 AM

  • SCOM 2012 R2 Data Warehouse failed to request a list of management packs from SQL RS server

    Hello, I get this alert can someone help me out ?
    I did check the Proxy and is configured on all the MS and DW server.
    Alert Description
    Data Warehouse failed to request a list of management packs which contain
    reports deployed to SQL Reporting Services Server. Report deployment process
    failed to request management pack list from SQL RS Server. The operation will be
    retried.
    Exception 'WebException': The request failed with HTTP status 407:
    Proxy Authentication Required ( Forefront TMG requires authorization to fulfill
    the request. Access to the Web Proxy filter is denied. ).
    One or more
    workflows were affected by this.
    Workflow name:
    Microsoft.SystemCenter.DataWarehouse.Deployment.Report
    Instance name:
    Data Warehouse Synchronization Service
    Instance ID:
    {FDC7C774-397C-3660-9D57-EFBED3B60329}

    Every call to the SRS generates a call to the OpsMgr SDK on Root Management
    Server to check permissions (security integration). It apepars the account
    the call is made under does not have access.
    To figure out which account is used follow this process:
    1) Run console and click on "Run As Profiles" in the Administration space;
    2) Double-click "Data Warehouse Report Deployment Account";
    3) Click on "Run As Accounts" tab;
    4) If you have a line in the accounts which lists your Root Management
    Server in the "Target Computer" column, note the account name in the "Run As
    Account" column. If you do not have such a line, follow steps 2-4 for the
    "Default Action Account" profile and note the account name;
    5) Click on "Run-As Accounts" in the Administration space and double click
    the account name which you got on step 4)
    6) Switch to the "Account" tab and note domain name and user name;
    Once you found the account (say, DOMAIN\user) check that it is a member of
    the User Role "Operations manager Report Security Administrators". If not -
    add it and the process will recover automatically.
    Also You can refer below links
    http://blogs.technet.com/b/smsandmom/archive/2007/09/06/system-center-operations-manager-doesn-t-show-any-reports.aspx
    http://www.networksteve.com/enterprise/topic.php/Data_Warehouse_failed_to_request_a_list_of_management_packs..._E/?TopicId=16627&Posts=2
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"

  • Multiple dev environments of CRM 2011 on one SQL 2012 server

    Hello,
    I have requirement to install multiple development servers of CRM 2011 which would use one SQL 2012 Server. 
    As you know, you need separate CRM 2011 Reporting Extensions, which means that Reporting Services (SSRS) should be installed not in SQL 2012 server but in the same server as CRM 2011. For SSRS (on CRM 2011 server) I want to use SQL 2008R2 Express (licensing
    issues).
    Is it possible to use SQL 2008R2 Express only for SSRS, while CRM 2011 is using SQL 2012 on different server?
    I get errors while creating organization:
    System.Web.Services.Protocols.SoapException: The feature: "Customizing security roles" is not supported in this edition of Reporting Services.
    Environment information:
    CRM 2011 on Windows Server 2008 R2. In the same server SSRS 2008 R2 on SQL 2008 R2 Express
    CRM database in different machine with SQL 2012 on Windows Server 2012.
    Regards, 
    Jonas

    SQL Express is not supported for Dynamics CRM.  Plus, the only way to have completely separate installations of Dynamics CRM pointing to one server for SQL is to used named instances of SQL Server on the Windows server you're installing SQL. 
    So you literally would have to install SQL multiple times on that one box.
    Instead of going through all that effort, why not just install Dynamics CRM once, and then make multiple CRM deployments using the CRM Deployment Manager? You can make as many CRM environments as you need with a single install of Dynamics CRM. This works
    great in dev environments where you need multiple instances for multiple devs. Plus, it gives you exactly one point of administration when it comes to the CRM install, and is a lot more supportable.
    The postings on this site are solely my own and do not represent or constitute Hitachi Solutions' positions, views, strategies or opinions.

  • How to connect labviewv database toolkit to SQL CE server

    Dear sir,
                      i am using labview 8.2.1 and Database Connectivity 8.2.i need same simple  concept of how to connect  LV database toolkit to SQL CE Server.

    When opening the database connection, you will need to provide either a connection string, or a path to a UDL (which will contain a conenction string). The easiest way to get a connection string is to go to (no I am not kidding) www.ConnectionStrings.com. Once there you enter the type of DBMS you are trying to connect to, and the system will list connection strings that you can use based on the drivers that you're using.
    How much experience do you have with LV and/or databases?
    Mike...
    PS: you might also want to check out a series I did a bit ago on database connectivity in my blog. See the link in my signature...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

Maybe you are looking for