Request PL/SQL article
Hi,everyone,i'm a beginner of PL/SQL£¬
Who can recommend a pl/sql article to me.
Thanks.
Oracle documentation would be the best place to start.
For PL/SQL it could be found at following locaton:
http://download-west.oracle.com/docs/cd/B12037_01/appdev.101/b10807/toc.htm
Similar Messages
-
Request: PL/SQL, External Table and SQL Loader
I see lately Questions asked in SQL and PL/SQL forum regarding SQL Loader and External Table are being moved to {forum:id=732}.
Being an PL/SQL developer for some time now i feel External Table (and if i may, SQL Loader and DBMS_DATAPUMP) are very much an integral part of a PL/SQL development and the question related to these topics are well suited in SQL and PL/SQL forum. Even in SQL and PL/SQL FAQ we have exclusive content that discuss on these topics {message:id=9360007}
So i would like to request the moderators to consider not moving such questions out of the SQL and PL/SQL forum.
Thanks,
Karthick.Karthick_Arp wrote:
I see lately Questions asked in SQL and PL/SQL forum regarding SQL Loader and External Table are being moved to {forum:id=732}.
Being an PL/SQL developer for some time now i feel External Table (and if i may, SQL Loader and DBMS_DATAPUMP) are very much an integral part of a PL/SQL development and the question related to these topics are well suited in SQL and PL/SQL forum. Even in SQL and PL/SQL FAQ we have exclusive content that discuss on these topics {message:id=9360007}
So i would like to request the moderators to consider not moving such questions out of the SQL and PL/SQL forum.
Thanks,
Karthick.Not sure which moderators are moving them... cos it ain't me. I'm quite happy to leave those there. -
"http request error" - SQL call sometimes works, sometimes doesn't
Hello everyone,
A bit of a random question, maybe someone has an idea...
I have a flex app that queries data from a mySQL service via http service. Overall, things work great! The queries are quick to return a result and without issues. But, when I view the website from my work PC, I get this error "HTTP Request Error", and none of the SQL calls work. Any ideas? I know my work has very tight security regulations, but I would still think it would be able to work.
I can't get a better security message because I can't set up and run flex to debug the issue, all I get is "HTTP Request Error", so who knows what it could be. I have tested my website from about 15 computers/different networks, and they all work, except my work PC. Any ideas?
And yes, the flash version is current.
Thanks!it sounds like the work security is blocking it
can you write a simple html page that fetches the data and displays it?It might give you a better idea what is happening behind flex -
OBIEE direct DB request query sql statement cannot be edited after saved
I have created direct DB request with long complex query, validated sql and Results appears ok. After I save this request and go back to edit the SQL statement, the original statement is only partially visible. Basically I can not do edit.
Is there any Query related buffer or other configuration parms I have to set up?I'm not sure what the deal is between Flex/AIR and Visusal Studios, but i descided to publish my webservices and point the wsdl there instead of using the visual studio generated one.
AND BEHOLD
I't worked and worked much much faster than i was anticipating.
So i'll just chalk it up to poor communication between FLEX and VS. But if anybody knows a more complete answer I would still love to hear it. -
Submitt request to SQL table using C# WPF Application
I would like to submit request from WPF application to SQL table. My source is SharePoint list.
I am using Visual Studio 2008 for getting the Data from SharePoint List.
At the bottom I have Submit button which I want to use for inserting data into SQL table.
Below code is working fine for getting the data from SharePoint list. cmdGetRequests Button is working fine
I am new in programming any help be appreciated.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using RequestsApp.WingtipSite;
using System.Data.SqlClient;
namespace RequestsApp
/// <summary>
/// Interaction logic for Window1.xaml
/// </summary>
public partial class
Window1 : Window
public Window1()
InitializeComponent();
private void cmdGetRequests_Click(object sender,
RoutedEventArgs e)
InformationGatewayDataContext dc =
new InformationGatewayDataContext(
new Uri("https://organization.xx./_vti_bin/ListData.svc"));
dc.Credentials = System.Net.CredentialCache.DefaultCredentials;
var source = dc.Requests;
listBox1.Items.Clear();
foreach (var dev
in source)
string devName = dev.ID +
" " + dev.FT + " " + dev.TX +
" " + dev.EG +
" " + dev.CompanyName + " " + dev.EmailAddr +
" " + dev.Flag +
" " + dev.StatusDate + " " + dev.Date +
" " + dev.Priority +
" " + dev.Source;
listBox1.Items.Add(devName);
private void cmdSendRequests_Click(object sender,
RoutedEventArgs e)
simamThank you for the giving me right direction. I am able to get the list from SharePoint list into WPF application and submit data to SQL table.
Now I need to have Delete button which will delete the SharePoint list data. and then exit the application.
my Delete button is not working , I am using below code for deleting the list data
private void cmdDeleteRequests_Click(object sender,
RoutedEventArgs e)
InformationGatewayDataContext dc =
new InformationGatewayDataContext(
new Uri("https://organization.xx./_vti_bin/ListData.svc"));
dc.Credentials = System.Net.CredentialCache.DefaultCredentials;
var source = dc.Requests;
listBox1.Items.Clear();
foreach (var dev
in source)
string devName = dev.ID +
" " + dev.FT + " " + dev.TX +
" " + dev.EG + " " + dev.CompanyName +
" " + dev.EmailAddr + " " + dev.Flag +
" " + dev.StatusDate + " " + dev.Date +
" " + dev.Priority +
" " + dev.Source;
listBox1.Items.Add(devName);
simam -
Any Plan for JDeveloper to have feature requests like SQL Developer
Recently SQL Developer has come up with "Feature requests" link where users can request for feature requests or see the existing ones.
http://htmldb.oracle.com/pls/otn/f?p=42626:37:3434730358746967::NO:::
This sort of feature will be very useful in one place instead of using JDev Forum for feature requests.Hi,
yes, we like the idea and we are looking into this.
Frank -
Set filter (with presentation variables) for requests using "SQL Issued"
if I have a "SQL issued":
SELECT saw_0 saw_0, saw_1 saw_1, saw_2 saw_2, saw_3 saw_3, saw_4 saw_4 FROM (
SELECT saw_0 saw_0, saw_1 saw_1, SUM(saw_2) saw_2, SUM(saw_3) saw_3, SUM(saw_4) saw_4
FROM
SELECT "Period"."YearMonth" saw_0, "Customer"."CustomerName" saw_1, COUNT("Sales"."SalesDate") saw_2, "Sales"."No.OfConsumer" saw_3, 0 saw_4
FROM CRM
WHERE ("Period"."YearMonth" >= 200904) AND ("Period"."YearMonth" <= 200910)
UNION ALL
SELECT "Period"."YearMonth" saw_0, "Customer"."CustomerName" saw_1, 0 saw_2, 0 saw_3, Count("SuperSales"."SuperSalesDate") saw_4
FROM CRM
WHERE ("Period"."YearMonth" >= 200904) AND ("Period"."YearMonth" <= 200910)
) t1
GROUP BY saw_0, saw_1
ORDER BY saw_0, saw_1
) t2 ORDER BY saw_0
actually, in this request, I would like to set a filter for "Period"."YearMonth" using presentation variable.
is it possible to do this ?
Thanks !!Hi Forreging,
You can use presentation variables, but not if you are directly setting the SQL via the Advanced tab.
Instead, build up the first report just like the first part of the UNION statement. Then use the "Combine with Similar request" to build up the logic for the second part of the query.
When you approach it this way, you have the ability to set filters on each "Sub-Request" via the Criteria tab. Otherwise, OBIEE only lets you add a filter at the outer level of the query when you go the route of setting the SQL in the Advanced tab.
Good luck and if you find this post useful, please award points!
Best regards,
-Joe -
Map progress with stars per lesson. How to store/request stats sql
The massive SQL request for the map is for loading the progress, not for the image. I store for every lesson result (1-3 stars). Lets say the player completed all (10) lessons of a map. To show the map with its stars, I would have to request point the highest score for each map. Not sure now if this can be done in only one SQL call. Have to check this.
Another way of doing it is storing all needed data (number of stars for each map point) in a JSON encoded string to the database. So it’s just one request. But useless for statistics, so it’s still necessary to write each lesson to “results”.
Shouldn't I just keep those stats locally so I don't have to request them from the server every time?Well, been reading and mysql can handle billions of rows. So I think I read that there is some slow down in the chain
AIR - browser(php) - mysql - broswer - AIR
I know mysql processes damn fast so somewhere in that chain things are getting slowed down. I read somewhere that stored procedures in the mysql db help as they are already compiled and you can also execute various commands with one sql call. Also, helps against sql injection.
Is that right??? and where might the "slow down" come from? -
CLIENT CONFIG REQUESTS CCR SQL ERROR
Hi,
Since 1 months now, our SMS_Client _Config_Manager is in critical state. This is caused by a lot of errors (100/day):
Microsoft SQL Server reported SQL message 8672, severity 16: [42000][8672][Microsoft][SQL Server Native Client 11.0][SQL Server]The MERGE statement attempted to UPDATE or DELETE the same row more than once. This happens when a target row matches more than
one source row. A MERGE statement cannot UPDATE/DELETE the
This error occurs when the query sp_CP_checkNewAssignedMachine is executed. (See log below)
We migrated all our site from 2007 to 2012 beginning of the year. During migration, we enabled Client Push installation and from time to time, the nodes with "Client No" where deleted from SCCM to be rediscoverd by AD discovery. Now we have
still around 1000 clients that for some or other reason cannot be installed.
I could also see that in the ccrretry.box, there are around 1000 (EMPTY) files to be processed.
CCM.log
Execute query exec [sp_CP_SetPushRequestMachineStatus] 16787434, 1 SMS_CLIENT_CONFIG_MANAGER 2/04/2014 11:20:12 6720 (0x1A40)
Submitted request successfully SMS_CLIENT_CONFIG_MANAGER 2/04/2014 11:20:12 6720 (0x1A40)
Getting a new request from queue "Retry" after 100 millisecond delay. SMS_CLIENT_CONFIG_MANAGER 2/04/2014 11:20:12 6720 (0x1A40)
Found CCR "16787435.ccr" in queue "Retry". SMS_CLIENT_CONFIG_MANAGER 2/04/2014 11:20:12 6720 (0x1A40)
*** exec [sp_CP_CheckNewAssignedMachine] N'P01', 1 SMS_CLIENT_CONFIG_MANAGER 2/04/2014 11:20:12 3584 (0x0E00)
*** [42000][8672][Microsoft][SQL Server Native Client 11.0][SQL Server]The MERGE statement attempted to UPDATE or DELETE the same row more than once. This happens when a target row matches more than one source row. A MERGE statement cannot UPDATE/DELETE the
same row of the target table multiple times. Refine the ON clause to ensure a target row matches at most one source row, or use the GROUP BY clause to group the source rows. : sp_CP_CheckNewAssignedMachine SMS_CLIENT_CONFIG_MANAGER 2/04/2014 11:20:12 3584
(0x0E00)
CCCRT::RunSQLStoredProc - Failed to execute SQL cmd exec [sp_CP_CheckNewAssignedMachine] N'P01', 1 SMS_CLIENT_CONFIG_MANAGER 2/04/2014 11:20:12 3584 (0x0E00)
CCRQueueRequest::GetRequestFromQueue - Failed to execute SQL cmd sp_CP_CheckNewAssignedMachine SMS_CLIENT_CONFIG_MANAGER 2/04/2014 11:20:12 3584 (0x0E00)
Does someone know how to solve this? Are there duplicate records?
Is enabling client push best practice when migration is done? On new machines, the SCCM client is installed via OSD.
Thanks,
WiMI get the above issue and the one below at a client site; the error started with the error below then changed to the one reported above and back to the one below. Everything is working as it should but the issues started when one of the admins at the data-centre
incorrectly applied a gpo which affected a number of service accounts (sccm inclusive) and they expired....hence reporting in sccm got broke as well as this error in the ccm.log file appeared.
Remote client install still works but I believe this error affects new client discovered by sccm, so in other words devices discovered by sccm do not get the client installed automatically....but if all access and permissions are in place...pushing out the
client to the new discovered system works, it just not done automatically, which kinda defeats one the reasons for using sccm.
I have searched the breadth of the tinternet and I can only find two technet reference to the same error - one says to edit the stored procedure on the sql server which I don't think should be done... Like Jason said and I concur....its bad joo joos.
The second suggestion, said you should select all the options in the Client Push Installation properties, I have tried this but hasn't solved the problem.
I am planning to upgrade the site to the R2 CU3 before the end of the year but I would like to resolve this error before the upgrade.
The site is currently sccm 2012 sp1
Any idea?> Resolution? sil vous plait!
Merci -
Request about SQL Developer Homepage
Hi,
Can we have a link on the PL/SL developer homepage with link and descriptions to downloading some of the free programs that are out there? It would also be nice to publish something on the API's etc on how to build plugins for the Raptor tool. I think a lot of the developent and ideas for this can be made by those in the open source community to really drive Raptor.
Just a thought : )
Thanks!its already in the works
Barry -
HOW TO: Post a SQL statement tuning request - template posting
This post is not a question, but similar to Rob van Wijk's "When your query takes too long ..." post should help to improve the quality of the requests for SQL statement tuning here on OTN.
On the OTN forum very often tuning requests about single SQL statements are posted, but the information provided is rather limited, and therefore it's not that simple to provide a meaningful advice. Instead of writing the same requests for additional information over and over again I thought I put together a post that describes how a "useful" post for such a request should look like and what information it should cover.
I've also prepared very detailed step-by-step instructions how to obtain that information on my blog, which can be used to easily gather the required information. It also covers again the details how to post the information properly here, in particular how to use the \ tag to preserve formatting and get a fixed font output:
http://oracle-randolf.blogspot.com/2009/02/basic-sql-statement-performance.html
So again: This post here describes how a "useful" post should look like and what information it ideally covers. The blog post explains in detail how to obtain that information.
In the future, rather than requesting the same additional information and explaining how to obtain it, I'll simply refer to this HOW TO post and the corresponding blog post which describes in detail how to get that information.
*Very important:*
Use the \ tag to enclose any output that should have its formatting preserved as shown below.
So if you want to use fixed font formatting that preserves the spaces etc., do the following:
\ This preserves formatting
\And it will look like this:
This preserves formatting
. . .Your post should cover the following information:
1. The SQL and a short description of its purpose
2. The version of your database with 4-digits (e.g. 10.2.0.4)
3. Optimizer related parameters
4. The TIMING and AUTOTRACE output
5. The EXPLAIN PLAN output
6. The TKPROF output snippet that corresponds to your statement
7. If you're on 10g or later, the DBMS_XPLAN.DISPLAY_CURSOR output
The above mentioned blog post describes in detail how to obtain that information.
Your post should have a meaningful subject, e.g. "SQL statement tuning request", and the message body should look similar to the following:
*-- Start of template body --*
The following SQL statement has been identified to perform poorly. It currently takes up to 10 seconds to execute, but it's supposed to take a second at most.
This is the statement:
select
from
t_demo
where
type = 'VIEW'
order by
id;It should return data from a table in a specific order.
The version of the database is 11.1.0.7.
These are the parameters relevant to the optimizer:
SQL>
SQL> show parameter optimizer
NAME TYPE VALUE
optimizer_capture_sql_plan_baselines boolean FALSE
optimizer_dynamic_sampling integer 2
optimizer_features_enable string 11.1.0.7
optimizer_index_caching integer 0
optimizer_index_cost_adj integer 100
optimizer_mode string ALL_ROWS
optimizer_secure_view_merging boolean TRUE
optimizer_use_invisible_indexes boolean FALSE
optimizer_use_pending_statistics boolean FALSE
optimizer_use_sql_plan_baselines boolean TRUE
SQL>
SQL> show parameter db_file_multi
NAME TYPE VALUE
db_file_multiblock_read_count integer 8
SQL>
SQL> show parameter db_block_size
NAME TYPE VALUE
db_block_size integer 8192
SQL>
SQL> show parameter cursor_sharing
NAME TYPE VALUE
cursor_sharing string EXACT
SQL>
SQL> column sname format a20
SQL> column pname format a20
SQL> column pval2 format a20
SQL>
SQL> select
2 sname
3 , pname
4 , pval1
5 , pval2
6 from
7 sys.aux_stats$;
SNAME PNAME PVAL1 PVAL2
SYSSTATS_INFO STATUS COMPLETED
SYSSTATS_INFO DSTART 01-30-2009 16:25
SYSSTATS_INFO DSTOP 01-30-2009 16:25
SYSSTATS_INFO FLAGS 0
SYSSTATS_MAIN CPUSPEEDNW 494,397
SYSSTATS_MAIN IOSEEKTIM 10
SYSSTATS_MAIN IOTFRSPEED 4096
SYSSTATS_MAIN SREADTIM
SYSSTATS_MAIN MREADTIM
SYSSTATS_MAIN CPUSPEED
SYSSTATS_MAIN MBRC
SYSSTATS_MAIN MAXTHR
SYSSTATS_MAIN SLAVETHR
13 rows selected.Here is the output of EXPLAIN PLAN:
SQL> explain plan for
2 -- put your statement here
3 select
4 *
5 from
6 t_demo
7 where
8 type = 'VIEW'
9 order by
10 id;
Explained.
Elapsed: 00:00:00.01
SQL>
SQL> select * from table(dbms_xplan.display);
PLAN_TABLE_OUTPUT
Plan hash value: 1390505571
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 60 | 0 (0)| 00:00:01 |
| 1 | TABLE ACCESS BY INDEX ROWID| T_DEMO | 1 | 60 | 0 (0)| 00:00:01 |
|* 2 | INDEX RANGE SCAN | IDX_DEMO | 1 | | 0 (0)| 00:00:01 |
Predicate Information (identified by operation id):
2 - access("TYPE"='VIEW')
14 rows selected.Here is the output of SQL*Plus AUTOTRACE including the TIMING information:
SQL> rem Set the ARRAYSIZE according to your application
SQL> set autotrace traceonly arraysize 100
SQL> select
2 *
3 from
4 t_demo
5 where
6 type = 'VIEW'
7 order by
8 id;
149938 rows selected.
Elapsed: 00:00:02.21
Execution Plan
Plan hash value: 1390505571
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 60 | 0 (0)| 00:00:01 |
| 1 | TABLE ACCESS BY INDEX ROWID| T_DEMO | 1 | 60 | 0 (0)| 00:00:01 |
|* 2 | INDEX RANGE SCAN | IDX_DEMO | 1 | | 0 (0)| 00:00:01 |
Predicate Information (identified by operation id):
2 - access("TYPE"='VIEW')
Statistics
0 recursive calls
0 db block gets
149101 consistent gets
800 physical reads
196 redo size
1077830 bytes sent via SQL*Net to client
16905 bytes received via SQL*Net from client
1501 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
149938 rows processed
SQL>
SQL> disconnect
Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing optionsThe TKPROF output for this statement looks like the following:
TKPROF: Release 11.1.0.7.0 - Production on Mo Feb 23 10:23:08 2009
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Trace file: orcl11_ora_3376_mytrace1.trc
Sort options: default
count = number of times OCI procedure was executed
cpu = cpu time in seconds executing
elapsed = elapsed time in seconds executing
disk = number of physical reads of buffers from disk
query = number of buffers gotten for consistent read
current = number of buffers gotten in current mode (usually for update)
rows = number of rows processed by the fetch or execute call
select
from
t_demo
where
type = 'VIEW'
order by
id
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1501 0.53 1.36 800 149101 0 149938
total 1503 0.53 1.36 800 149101 0 149938
Misses in library cache during parse: 0
Optimizer mode: ALL_ROWS
Parsing user id: 88
Rows Row Source Operation
149938 TABLE ACCESS BY INDEX ROWID T_DEMO (cr=149101 pr=800 pw=0 time=60042 us cost=0 size=60 card=1)
149938 INDEX RANGE SCAN IDX_DEMO (cr=1881 pr=1 pw=0 time=0 us cost=0 size=0 card=1)(object id 74895)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
SQL*Net message to client 1501 0.00 0.00
db file sequential read 800 0.05 0.80
SQL*Net message from client 1501 0.00 0.69
********************************************************************************The DBMS_XPLAN.DISPLAY_CURSOR output:
SQL> -- put your statement here
SQL> -- use the GATHER_PLAN_STATISTICS hint
SQL> -- if you're not using STATISTICS_LEVEL = ALL
SQL> select /*+ gather_plan_statistics */
2 *
3 from
4 t_demo
5 where
6 type = 'VIEW'
7 order by
8 id;
149938 rows selected.
Elapsed: 00:00:02.21
SQL>
SQL> select * from table(dbms_xplan.display_cursor(null, null, 'ALLSTATS LAST'));
PLAN_TABLE_OUTPUT
SQL_ID d4k5acu783vu8, child number 0
select /*+ gather_plan_statistics */ * from t_demo
where type = 'VIEW' order by id
Plan hash value: 1390505571
| Id | Operation | Name | Starts | E-Rows | A-Rows | A-Time | Buffers | Reads |
| 0 | SELECT STATEMENT | | 1 | | 149K|00:00:00.02 | 149K| 1183 |
| 1 | TABLE ACCESS BY INDEX ROWID| T_DEMO | 1 | 1 | 149K|00:00:00.02 | 149K| 1183 |
|* 2 | INDEX RANGE SCAN | IDX_DEMO | 1 | 1 | 149K|00:00:00.02 | 1880 | 383 |
Predicate Information (identified by operation id):
2 - access("TYPE"='VIEW')
20 rows selected.I'm looking forward for suggestions how to improve the performance of this statement.
*-- End of template body --*
I'm sure that if you follow these instructions and obtain the information described, post them using a proper formatting (don't forget about the \ tag) you'll receive meaningful advice very soon.
So, just to make sure you didn't miss this point:Use proper formatting!
If you think I missed something important in this sample post let me know so that I can improve it.
Regards,
Randolf
Oracle related stuff blog:
http://oracle-randolf.blogspot.com/
SQLTools++ for Oracle (Open source Oracle GUI for Windows):
http://www.sqltools-plusplus.org:7676/
http://sourceforge.net/projects/sqlt-pp/Alex Nuijten wrote:
...you missed the proper formatting of the Autotrace section ;-)Alex,
can't reproduce, does it still look unformatted? Or are you simply kidding? :-)
Randolf
PS: Just noticed that it actually sometimes doesn't show the proper formatting although the code tags are there. Changing to the \ tag helped in this case, but it seems to be odd.
Edited by: Randolf Geist on Feb 23, 2009 11:28 AM
Odd behaviour of forum software -
Unable to view SQL Request in Log files
Hi Folks,
I am facing an issue which I am unable to find out the solution to view the physical query generated in log files in Presentation Services.
Below is the SQL Request generated but I want to view the exact physical query i.e SQL Request which is hitting DB.
So please guiude me to resolve this issue, I guess it is because of Initialization blocks created which is blocking to view the SQL request.
-------------------- SQL Request:
set variable LOGLEVEL = 7;SELECT "- Policy Effective-Start Date"."Start Quarter" saw_0, "- Insurance Policy Facts".Revenue saw_1, "- Insurance Policy Facts"."# Insurance Policies" saw_2, "Insurance Policy".Status saw_3, "Insurance Policy".Type saw_4 FROM "Insurance Policies" WHERE ("Insurance Policy".Type = 'Policy') AND ("- Policy Effective-Start Date"."Start Julian Day Number" BETWEEN VALUEOF(CURRENT_JULIAN_DAY)-365 AND VALUEOF("CURRENT_JULIAN_DAY")) ORDER BY saw_0, saw_3, saw_4
/* QUERY_SRC_CD='rawSQL' */
Regards
DjThere is no Enterprise Edition of SSMS. There is SSMS Basic and SSMS Complete. Prior to 2012 sp1, only SSMS Basic were available with Express Edition - but as of 2012 sp1 Expredd also offers SSMS Complete. SSMS Complete is selected bu default when you install
SSMS (unless you are prior to 2012 sp1 and are using Express, of course).
However, even SSMS Basic *should* show Agent assuming you have permissions for that. This is hearsay, but from trusted sources. Here is what to do:
Check what is installed for the machine from where you are running SSMS. You can do that using SQL Server Installation Center - see this blog post: http://sqlblog.com/blogs/tibor_karaszi/archive/2011/02/10/what-does-this-express-edition-look-like-anyhow.aspx
(towards the end).
On that machine try both this problematic account as well as an account which is sysadmin. Does the sysadmin account see Agent? If so, you know permissions aren't granted properly. If not, then you know the tool is the problme.
Also try the problematic account from a machine where you know you see Agent normally. Again, this will help you assess whether the problem is the tool (SSMS) or permissions for the account.
Tibor Karaszi, SQL Server MVP |
web | blog -
Named Pipes Provider: Could not open a connection to SQL Server
We are running into an error on a SQL request from SQL-IDA to the SQL-IDB server. Both servers are on Windows 2005 with MS SQL Server 2003 SP3.
OLE DB provider "SQL-IDA" for linked server "SQL-IDB" returned message "Login timeout
expired".
OLE DB provider "SQL-IDA" for linked server "SQL-IDB" returned message "An error has
occurred while establishing a connection to the server. When connecting to SQL Server 2005,
this failure may be caused by the fact that under the default settings SQL Server does not
allow remote connections.".
Msg 53, Level 16, State 1, Line 0
Named Pipes Provider: Could not open a connection to SQL Server [53].
It seems to suggest that SQL-IDA cannot find the network path to SQL-IDB. We've followed the steps in this article http://support.microsoft.com/default.aspx?scid=kb;EN-US;914277 but it did not resolve our issue. Is it possible that the MSDTC dynamic port range
should be set to a specific range on both servers?
Any help is greatly appreciated.
AlbertHi Albert,
Can you try to use the SQL Server Management Studio on server ‘SQL-IDA’ to connect to the instance on server ‘SQL-IDB’ to see if it works or not?
There are possible reasons to error 53:
a) typo in the server name, or using "/" rather than "\" between server name and instance name, e.g. "myserver/myinst" is not correct.
b) name resolution to the server name is not correct, "ping -a yourserver" would tell if that's the case
c) The server machine is firewall'ed and file sharing is not in the exception list. You need put "File and Printer Sharing" in exception.
For more information:
Named Pipes Provider, error: 40 - Could not open a connection to SQL Server (Microsoft SQL Server, Error: XXX).
TechNet Subscriber Support
If you are
TechNet Subscription user and have any feedback on our support quality, please send your feedback
here.
Stephanie Lv
TechNet Community Support -
Hi All,
I am getting the following error when tried to connect to the sap system
Database is SQLSERVER
trc file: "dev_disp", trc level: 1, release: "640"
Thu May 22 18:21:37 2008
kernel runs with dp version 130(ext=102) (@(#) DPLIB-INT-VERSION-130)
length of sys_adm_ext is 312 bytes
sysno 01
sid BWP
systemid 560 (PC with Windows NT)
relno 6400
patchlevel 0
patchno 101
intno 20020600
make: multithreaded, ASCII
pid 3104
Thu May 22 18:21:38 2008
***LOG Q00=> DpSapEnvInit, DPStart (01 3104) [dpxxdisp.c 1098]
shared lib "dw_xml.dll" version 101 successfully loaded
shared lib "dw_xtc.dll" version 101 successfully loaded
shared lib "dw_stl.dll" version 101 successfully loaded
shared lib "dw_gui.dll" version 101 successfully loaded
shared lib "dw_mdm.dll" version 101 successfully loaded
Thu May 22 18:21:40 2008
WARNING => DpNetCheck: NiHostToAddr(www.doesnotexist0164.qqq.nxst) took 2 seconds
Thu May 22 18:21:49 2008
WARNING => DpNetCheck: NiAddrToHost(1.0.0.0) took 9 seconds
***LOG GZZ=> 2 possible network problems detected - check tracefile and adjust the DNS settings [dpxxtool2.c 3887]
MtxInit: -2 0 0
DpSysAdmExtInit: ABAP is active
DpShMCreate: sizeof(wp_adm) 6624 (828)
DpShMCreate: sizeof(tm_adm) 2379840 (11840)
DpShMCreate: sizeof(wp_ca_adm) 18000 (60)
DpShMCreate: sizeof(appc_ca_adm) 6000 (60)
DpShMCreate: sizeof(comm_adm) 192000 (384)
DpShMCreate: sizeof(vmc_adm) 0 (364)
DpShMCreate: sizeof(wall_adm) (22440/34344/56/100)
DpShMCreate: SHM_DP_ADM_KEY (addr: 064A0040, size: 2665448)
DpShMCreate: allocated sys_adm at 064A0040
DpShMCreate: allocated wp_adm at 064A17D0
DpShMCreate: allocated tm_adm_list at 064A31B0
DpShMCreate: allocated tm_adm at 064A31D8
DpShMCreate: allocated wp_ca_adm at 066E8218
DpShMCreate: allocated appc_ca_adm at 066EC868
DpShMCreate: allocated comm_adm_list at 066EDFD8
DpShMCreate: allocated comm_adm at 066EDFF0
DpShMCreate: allocated vmc_adm_list at 0671CDF0
DpShMCreate: system runs without vmc_adm
DpShMCreate: allocated ca_info at 0671CE18
DpShMCreate: allocated wall_adm at 0671CE20
MBUF state OFF
Thu May 22 18:21:51 2008
EmInit: MmSetImplementation( 2 ).
<ES> client 0 initializing ....
<ES> InitFreeList
<ES> block size is 1024 kByte.
Using implementation flat
<EsNT> Memory Reset disabled as NT default
<ES> 277 blocks reserved for free list.
ES initialized.
Thu May 22 18:21:53 2008
rdisp/http_min_wait_dia_wp : 1 -> 1
***LOG Q0K=> DpMsAttach, mscon ( ems606) [dpxxdisp.c 9819]
Thu May 22 18:21:55 2008
CCMS: AlInitGlobals : alert/use_sema_lock = TRUE.
Thu May 22 18:21:57 2008
CCMS: start to initalize 3.X shared alert area (first segment).
DpMsgAdmin: Set release to 6400, patchlevel 0
MBUF state PREPARED
MBUF component UP
DpMBufHwIdSet: set Hardware-ID
***LOG Q1C=> DpMBufHwIdSet [dpxxmbuf.c 1025]
DpMsgAdmin: Set patchno for this platform to 101
Release check o.K.
Thu May 22 18:22:34 2008
ERROR => W0 (pid 3824) died [dpxxdisp.c 12270]
ERROR => W1 (pid 3832) died [dpxxdisp.c 12270]
my types changed after wp death/restart 0xbf --> 0xbe
ERROR => W2 (pid 3840) died [dpxxdisp.c 12270]
my types changed after wp death/restart 0xbe --> 0xbc
ERROR => W3 (pid 3848) died [dpxxdisp.c 12270]
my types changed after wp death/restart 0xbc --> 0xb8
ERROR => W4 (pid 3856) died [dpxxdisp.c 12270]
ERROR => W5 (pid 3864) died [dpxxdisp.c 12270]
my types changed after wp death/restart 0xb8 --> 0xb0
ERROR => W6 (pid 3872) died [dpxxdisp.c 12270]
my types changed after wp death/restart 0xb0 --> 0xa0
ERROR => W7 (pid 3880) died [dpxxdisp.c 12270]
my types changed after wp death/restart 0xa0 --> 0x80
DP_FATAL_ERROR => DpWPCheck: no more work processes
DISPATCHER EMERGENCY SHUTDOWN ***
increase tracelevel of WPs
killing W0-3824 (SIGUSR2)
ERROR => DpWpKill(3824, SIGUSR2) failed [dpxxtool.c 2494]
killing W1-3832 (SIGUSR2)
ERROR => DpWpKill(3832, SIGUSR2) failed [dpxxtool.c 2494]
killing W2-3840 (SIGUSR2)
ERROR => DpWpKill(3840, SIGUSR2) failed [dpxxtool.c 2494]
killing W3-3848 (SIGUSR2)
ERROR => DpWpKill(3848, SIGUSR2) failed [dpxxtool.c 2494]
killing W4-3856 (SIGUSR2)
ERROR => DpWpKill(3856, SIGUSR2) failed [dpxxtool.c 2494]
killing W5-3864 (SIGUSR2)
ERROR => DpWpKill(3864, SIGUSR2) failed [dpxxtool.c 2494]
killing W6-3872 (SIGUSR2)
ERROR => DpWpKill(3872, SIGUSR2) failed [dpxxtool.c 2494]
killing W7-3880 (SIGUSR2)
ERROR => DpWpKill(3880, SIGUSR2) failed [dpxxtool.c 2494]
NiWait: sleep (10000 msecs) ...
NiISelect: timeout 10000 ms
NiISelect: maximum fd=445
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Thu May 22 18:22:44 2008
NiISelect: TIMEOUT occured (10000 ms)
dump system status
Workprocess Table (long) Thu May 22 12:52:44 2008
========================
No Ty. Pid Status Cause Start Err Sem CPU Time Program Cl User Action Table
0 DIA 3824 Ended no 1 0 0
1 DIA 3832 Ended no 1 0 0
2 UPD 3840 Ended no 1 0 0
3 ENQ 3848 Ended no 1 0 0
4 BTC 3856 Ended no 1 0 0
5 BTC 3864 Ended no 1 0 0
6 SPO 3872 Ended no 1 0 0
7 UP2 3880 Ended no 1 0 0
Dispatcher Queue Statistics Thu May 22 12:52:44 2008
===========================
--------++++--
+
Typ
now
high
max
writes
reads
--------++++--
+
NOWP
0
3
2000
10
10
--------++++--
+
DIA
5
5
2000
5
0
--------++++--
+
UPD
0
0
2000
0
0
--------++++--
+
ENQ
0
0
2000
0
0
--------++++--
+
BTC
0
0
2000
0
0
--------++++--
+
SPO
0
0
2000
0
0
--------++++--
+
UP2
0
0
2000
0
0
--------++++--
+
max_rq_id 13
wake_evt_udp_now 0
wake events total 9, udp 7 ( 77%), shm 2 ( 22%)
since last update total 9, udp 7 ( 77%), shm 2 ( 22%)
Dump of tm_adm structure: Thu May 22 12:52:44 2008
=========================
Term uid man user term lastop mod wp ta a/i (modes)
Workprocess Comm. Area Blocks Thu May 22 12:52:44 2008
=============================
Slots: 300, Used: 1, Max: 0
--------++--
+
id
owner
pid
eyecatcher
--------++--
+
0
DISPATCHER
-1
WPCAAD000
NiWait: sleep (5000 msecs) ...
NiISelect: timeout 5000 ms
NiISelect: maximum fd=445
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Thu May 22 18:22:49 2008
NiISelect: TIMEOUT occured (5000 ms)
Shutdown server ...
DpJ2eeDisableRestart
DpModState: buffer in state MBUF_PREPARED
NiBufSend starting
NiIWrite: write 110, 1 packs, MESG_IO, hdl 3, data complete
MsINiWrite: sent 110 bytes
MsIModState: change state to SHUTDOWN
DpModState: change server state from STARTING to SHUTDOWN
Switch off Shared memory profiling
ShmProtect( 57, 3 )
ShmProtect(SHM_PROFILE, SHM_PROT_RW
ShmProtect( 57, 1 )
ShmProtect(SHM_PROFILE, SHM_PROT_RD
DpWakeUpWps: wake up all wp's
Stop work processes...
Stop gateway
killing process (3808) (SOFT_KILL)
Stop icman
killing process (3816) (SOFT_KILL)
Terminate gui connections
[DpProcDied] Process lives (PID:3808 HANDLE:428)
waiting for termination of gateway
NiWait: sleep (1000 msecs) ...
NiISelect: timeout 1000 ms
NiISelect: maximum fd=445
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Thu May 22 18:22:50 2008
NiISelect: TIMEOUT occured (1000 ms)
[DpProcDied] Process died (PID:3808 HANDLE:428)
[DpProcDied] Process lives (PID:3816 HANDLE:424)
waiting for termination of icman
NiWait: sleep (1000 msecs) ...
NiISelect: timeout 1000 ms
NiISelect: maximum fd=445
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Thu May 22 18:22:51 2008
NiISelect: TIMEOUT occured (1000 ms)
[DpProcDied] Process lives (PID:3816 HANDLE:424)
waiting for termination of icman
NiWait: sleep (1000 msecs) ...
NiISelect: timeout 1000 ms
NiISelect: maximum fd=445
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Thu May 22 18:22:52 2008
NiISelect: TIMEOUT occured (1000 ms)
[DpProcDied] Process lives (PID:3816 HANDLE:424)
waiting for termination of icman
NiWait: sleep (1000 msecs) ...
NiISelect: timeout 1000 ms
NiISelect: maximum fd=445
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Thu May 22 18:22:53 2008
NiISelect: TIMEOUT occured (1000 ms)
[DpProcDied] Process lives (PID:3816 HANDLE:424)
waiting for termination of icman
NiWait: sleep (1000 msecs) ...
NiISelect: timeout 1000 ms
NiISelect: maximum fd=445
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Thu May 22 18:22:54 2008
NiISelect: TIMEOUT occured (1000 ms)
[DpProcDied] Process lives (PID:3816 HANDLE:424)
waiting for termination of icman
NiWait: sleep (1000 msecs) ...
NiISelect: timeout 1000 ms
NiISelect: maximum fd=445
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Thu May 22 18:22:55 2008
NiISelect: TIMEOUT occured (1000 ms)
[DpProcDied] Process lives (PID:3816 HANDLE:424)
waiting for termination of icman
NiWait: sleep (1000 msecs) ...
NiISelect: timeout 1000 ms
NiISelect: maximum fd=445
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Thu May 22 18:22:56 2008
NiISelect: TIMEOUT occured (1000 ms)
[DpProcDied] Process lives (PID:3816 HANDLE:424)
waiting for termination of icman
NiWait: sleep (1000 msecs) ...
NiISelect: timeout 1000 ms
NiISelect: maximum fd=445
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Thu May 22 18:22:57 2008
NiISelect: TIMEOUT occured (1000 ms)
[DpProcDied] Process lives (PID:3816 HANDLE:424)
waiting for termination of icman
NiWait: sleep (1000 msecs) ...
NiISelect: timeout 1000 ms
NiISelect: maximum fd=445
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Thu May 22 18:22:58 2008
NiISelect: TIMEOUT occured (1000 ms)
[DpProcDied] Process lives (PID:3816 HANDLE:424)
waiting for termination of icman
NiWait: sleep (1000 msecs) ...
NiISelect: timeout 1000 ms
NiISelect: maximum fd=445
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Thu May 22 18:22:59 2008
NiISelect: TIMEOUT occured (1000 ms)
[DpProcDied] Process lives (PID:3816 HANDLE:424)
waiting for termination of icman
NiWait: sleep (1000 msecs) ...
NiISelect: timeout 1000 ms
NiISelect: maximum fd=445
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Thu May 22 18:23:00 2008
NiISelect: TIMEOUT occured (1000 ms)
[DpProcDied] Process lives (PID:3816 HANDLE:424)
waiting for termination of icman
NiWait: sleep (1000 msecs) ...
NiISelect: timeout 1000 ms
NiISelect: maximum fd=445
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Thu May 22 18:23:01 2008
NiISelect: TIMEOUT occured (1000 ms)
[DpProcDied] Process died (PID:3816 HANDLE:424)
DpHalt: cancel all lcom connections
MPI CancelAll 2 -> 0
MPI DeleteAll 2 -> 0
NiIMyHostName: hostname = 'ems606'
AdGetSelfIdentRecord: > <
AdCvtRecToExt: opcode 60 (AD_SELFIDENT), ser 0, ex 0, errno 0
AdCvtRecToExt: opcode 4 (AD_STARTSTOP), ser 0, ex 0, errno 0
DpConvertRequest: net size = 163 bytes
NiBufSend starting
NiIWrite: write 562, 1 packs, MESG_IO, hdl 3, data complete
MsINiWrite: sent 562 bytes
send msg (len 110+452) to name -, type 4, key -
detach from message server
***LOG Q0M=> DpMsDetach, ms_detach () [dpxxdisp.c 10045]
NiBufSend starting
NiIWrite: write 110, 1 packs, MESG_IO, hdl 3, data complete
MsINiWrite: sent 110 bytes
MsIDetach: send logout to msg_server
MsIDetach: call exit function
DpMsShutdownHook called
NiSelClear: removed hdl 3 from selectset
MBUF state OFF
AdGetSelfIdentRecord: > <
AdCvtRecToExt: opcode 60 (AD_SELFIDENT), ser 0, ex 0, errno 0
AdCvtRecToExt: opcode 40 (AD_MSBUF), ser 0, ex 0, errno 0
AdCvtRecToExt: opcode 40 (AD_MSBUF), ser 0, ex 0, errno 0
blks_in_queue/wp_ca_blk_no/wp_max_no = 1/300/8
LOCK WP ca_blk 1
make DISP owner of wp_ca_blk 1
DpRqPutIntoQueue: put request into queue (reqtype 1, prio LOW, rq_id 19)
MBUF component DOWN
NiBufClose: clear extensions for hdl 3
NiBufSetStat: bufstat of hdl 3 changed from OK to OFF
NiICloseHandle: shutdown and close hdl 3 / socket 384
MsIDetach: detach MS-system
EsCleanup ....
***LOG Q05=> DpHalt, DPStop ( 3104) [dpxxdisp.c 8547]
Good Bye .....
Pls help to resolve this issue.
Regards,
KrisHi Saeid,
Thanks for your reply, the white paper above is, I believe for 2000 and 2005, and the errors which are mentioned are nowhere in my error log on our server.
Our server version is :
Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (X64) Jun 17 2011 00:54:03 Copyright (c)
Microsoft Corporation Enterprise Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)
Based on the following link, you need to apply, at least, cumulative 5 for SQL Server 2008 r2 SP2. So, I agree with Shanky, please apply service pack 3.
FIX: Error 17883 when you run a query on a server that has many CPUs and a large amount of memory in SQL Server 2012 or in SQL Server 2008 R2
T-SQL Articles
T-SQL e-book by TechNet Wiki Community
T-SQL blog -
ODBC connection failed (SQL Server Native Client)
Dear ..
I tried to connect to ODBC with SQL Server Native Client 11.0.
It successfully connected in SQL mgmt studio : (LocalDB)\AAA
but when I tried to connect to ODBC, it's failed like below..
[Microsoft][SQL Server Native Client 11.0][SQL Server]Login failed for user 'KKIKKI\Jinsu'.
[Microsoft][SQL Server Native Client 11.0][SQL Server]Cannot open database "MAPDB" requested by the login. The login failed.
test failed.
How to initialize all of my SQL Native Client and ODBC configuration?
I tried to remove all SQL application, but it's same situation.. Please help..
jinsuhttps://www.connectionstrings.com/sql-server-native-client-11-0-odbc-driver/
T-SQL Articles
T-SQL e-book by TechNet Wiki Community
T-SQL blog
Maybe you are looking for
-
How do I add text to an image?
I have purchased a template and imported it to Photoshop. I then sliced the template into sections, saved it for web and opened the index file in dreamweaver. My questions is, how do I add text to the images? I want to add the text content, within th
-
I am implementing CUA for my SAP landscape and would like to incorporate our portal but I am unsure how to do this. I have changed my portal UME to point to the ABAP system as it's datasource. I am unsure how I can get my portal roles assigned to my
-
ERROR report when backing up of ipad
I get repeated error reports when backing ipad only when trying to update to ios 5. when I back up without update option it works fine i have version 4.3.1 and want to update it.help!
-
Smartform XSF validation gives error
Hi, we are printing smartforms to XSF. When we try to validate the xml output in XMLSpy using the DTD file posted on SDN (https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b5d2d190-0201-0010-95b3-a3ff828477ef) we get the error messa
-
REUSE_ALV_GRID_DISPLAY - the internal table are different showed table
Hello I'm using REUSE_ALV_GRID_DISPLAY. The internal table-filed X = 1000. The same field on ALV list is showed as 1000 000. The field is : SORTAMOUNT CURR 12 decimal 5 Following the code (i not used particular option): REFRE