EXECUTE xp_cmdshell AS context of a sysadmin requires ##xp_cmdshell_proxy_account## credential to exist?

Hi,
I am unable to use a stored procedure to allow a non-sysadmin to execute in the context of a sysadmin and call xp_cmdshell unless the ##xp_cmdshell_proxy_account## actually exists.
My understanding is that a sysadmin does not require the use of a proxy in order to execute xp_cmdshell.  However without one set up I receive the following error:
Msg 15153, Level 16, State 1, Procedure xp_cmdshell, Line 1
The xp_cmdshell proxy account information cannot be retrieved or is invalid. Verify that the '##xp_cmdshell_proxy_account##' credential exists and contains valid information.
A little confused as to why the ##xp_cmdshell_proxy_account## needs to be set up and if/how/when the credential identity's details are actually used?
Regards
Dan

I am unable to use a stored procedure to allow a non-sysadmin to execute in the context of a sysadmin and call xp_cmdshell unless the ##xp_cmdshell_proxy_account## actually exists.
When you use EXECUTE AS in the procedure header, you impersonate a database user, but you don't get any permissions on server level, unless the database is marked as trustworthy. But don't make the database trustworthy, as it can can open a security
hole.
Instead a better solution is to create a certificate in the master database, and create a login from that certificate. That is not a login that can acutlly login, but only serves as a placeholder for permissions. In this case, you add the login to the sysadmin
role. Then you export the certificate to the user database and you sign the procedure with the certificate. Below are the steps to take as a script. For more details on the technique, see this article on my web site:
http://www.sommarskog.se/grantperm.html
I also discuss the dangers with trustworthy in more detail in this article.
USE master
go
-- Create certificate in master.
CREATE CERTIFICATE xp_cmdshell_cert
   ENCRYPTION BY PASSWORD = 'All you need is love'
   WITH SUBJECT = 'For xp_cmdshell privileges',
   START_DATE = '20020101', EXPIRY_DATE = '20200101'
go
-- Create a login for the certificate.
CREATE LOGIN xp_cmdshell_cert_login FROM CERTIFICATE xp_cmdshell_cert
go
-- Grant rights for the certificate login.
EXEC sp_addsrvrolemember xp_cmdshell_cert_login, sysadmin
go
-- Save the certificate to disk.
BACKUP CERTIFICATE xp_cmdshell_cert TO FILE = 'C:\temp\cert.cer'
WITH PRIVATE KEY (FILE = 'C:\temp\cert.pvk' ,
                  ENCRYPTION BY PASSWORD = 'Tomorrow never knows',
                  DECRYPTION BY PASSWORD = 'All you need is love')
go
-- Move to test database.
USE somedatabase
go
-- You procedure here.
CREATE PROCEDURE run_xp_cmdshell AS
EXEC xp_cmdshell 'DIR'
go
-- Give test user right to execute the procedure.
GRANT EXECUTE ON run_xp_cmdshell TO someuser
go
-- Import the certificate we created in master into the test database.
CREATE CERTIFICATE xp_cmdshell_cert FROM FILE = 'C:\temp\cert.cer'
WITH PRIVATE KEY (FILE = 'C:\temp\cert.pvk',
                  DECRYPTION BY PASSWORD = 'Tomorrow never knows',
                  ENCRYPTION BY PASSWORD = 'A day in life')
go
-- Delete the files.
EXEC master..xp_cmdshell 'DEL C:\temp\cert.*', 'no_output'
go
-- Sign the test procedures.
ADD SIGNATURE TO run_xp_cmdshell BY CERTIFICATE xp_cmdshell_cert
    WITH PASSWORD = 'A day in life'
go
Erland Sommarskog, SQL Server MVP, [email protected]

Similar Messages

  • Message Queue with SP executing xp_cmdshell not working in after DB migration

    We are in a Database Migration Project.
    DatabaseA is set to be migrated. It currently resides in ServerA. In DatabaseA lies an SP, which calls XP_CMDSHELL in it. This SP is being called by a messageQueue.
    In ServerA, we do have a Local Windows System user as the application login. ( ServerA\LocalLogin). This login  does not have any sysadmin privileges and only is a member of db_datareader and a custom executesp roles of the DatabaseA.
    This database Needs to be migrated to ServerB. when migrating this to ServerB, the only change is that the LocalSystem user is replaced by a Domain User. The application is supposed to connect to the DatabaseA via the Domain User. (Domain\DomainUserB)
    However, Once the database is migrated to ServerB, we get the following error related to the message queue:
    The xp_cmdshell proxy account information cannot be retrieved or is invalid. Verify that the '##xp_cmdshell_proxy_account##' credential exists and contains valid information Message Queue Service Broker
    This error never happen to come in ServerA and  is no proxy_accounts are configured in it. The logins (ServerA\LocalLogin and Domain\DomainUserB)  are identical in terms of privileges. What would be the problem ? Why is this error popping only in
    ServerB ? How can i overcome this without creating a proxy account ?
    Security Context of the MessageQueue is  ExecuteAsUser with a principal of dbo.
    Both the servers are SQL Server 2008, and Windows Server 2008.

    Hi Shamil,
    In addition to other post, please make sure the following things.
    1. Check that if the service account that SQL Server is running under has enough
    local security policies rights on the current server.
    2. Make sure the non-sysadmin user has a database user in the master database and GRANT your non-sysadmin user the rights to execute xp_cmdshell. 
    In order to do that, you can run the below scripts:
    USE master;
    GO
    CREATE USER [Domain\user] FOR LOGIN [Domain\user];
    GRANT EXECUTE ON xp_cmdshell TO [Domain\user];
    Reference:
    http://www.databasejournal.com/features/mssql/xpcmdshell-for-non-system-admin-individuals.html
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

  • Error: 28005, Severity: 16, State: 2...An exception occurred while enqueueing a message in the target queue. Error: 15517, State: 1. Cannot execute as the database principal because the principal "dbo" does not exist, this type of principal cannot be impe

    I've seen some similar questions, but want to make sure I can get an answer quickly and how to fix.
    Thanks,
    Paul
    spid24s     Error: 28005, Severity: 16, State: 2
    spid24s     An exception occurred while enqueueing a message in the target queue. Error: 15517, State: 1. Cannot execute as the database principal because the principal "dbo" does not exist, this type of principal cannot be impersonated,
    or you do not have permission.

    Hi Paul,
    I also had the same error on one of my servers, and it was because the user that created the database no longer worked for the company.
    So when his AD account got deleted, the database had NULL as owner
    Using the following query I asked for the owners of the databases:
    select name, suser_sname(sid) from master.dbo.sysdatabases
    So changing the owner of the databases that had a NULL owner solved the issue for me.
    use <databasesname>
    go
    exec sp_changedbowner 'sa'
    Thanks for triggering the solution.
    Peter

  • Stock for required data does not exist during repack of product

    Hello,
    I have the given situation, during the packing of a product (which is unpacked) in the Work Center I get the following error message:
    "Stock for required data does not exist
    Message no. /SCWM/L3104"
    After a debugging session we have found the cause as being the field FLGAVQ (Indicator: Handling Unit Contains an Available Quantity) in the structure /SCWM/S_HUHDR_INT. My question is if somebody knows from where this mark comes and if you stumbled on the same problem and if so how did you manage?
    All the best,
    Claudiu Maxim

    Hello Sridhar,
    Thanks for the response, the packing operation in our case is done in the SCM EWM environment in the specific Work Center. The transaction with which we pack is /SCWM/PACK - Packing - General. Do you have a solution for this problem with regards to the EWM environment?
    All the best,
    Claudiu Maxim

  • Context Directory Agent VM Requirements

    The CDA installation guide has a few undocumented issues around the vmware requirements. I have ran into issues that are documented on the forums such as the scsi controller and the nic settings.
    here is a thread of the lsi controller that must be selected for the CDA installation to run -
    https://supportforums.cisco.com/thread/2235247
    Also the nic adapter is not detected if I choose to use anything other than flexible. Is this a bug in CDA?
    Thanks,
    Tarik Admani
    *Please rate helpful posts*       

    Ken,
    Thanks for your help. My customer has other nics that they build their virtual machines and it was a little challenging in understanding if the flexbile adapter must be selected since the documentation only covers the OS used for the install.
    Thanks,
    Tarik Admani
    *Please rate helpful posts*

  • Query executed within a plug-in script returns 0 rows, although data exists

    I created a plug-in script for algorithm entity: Service Quantity Rule.
    The script calls a business service that I created using query zones. The query returns the values of the bill segment (ci.bseg.bseg_id and ci_bseg.closing_bseg_sw) that is created while running a bill manually. The zone receives the bseg_id as a parameter.
    The problem is that when I execute the business service within the plug-in script the business services returns 0 rows even though the data is actually being stored in the database.
    The script calculates some SQI values and saves it to the bill segment based on a response that is received from MDM (I'm using the usage request object).
    Steps:
    1.- Create Bill. The bill segment is created in error as it is waiting for the bill determinants to be sent from the MDM. If I test the zone with the bseg_id (as a parameter) of the newly created bill segment it works fine.
    2.- We send a message from the MDM to CC&B. The message is received and processed and it gets to a point when the usage updates the bill segment.
    3.- After the bill segment has been updated with the values from the usage request object it starts executing the plug-in script.
    4.- I obtain the bseg_id from the usage request and use the business service (passing the bseg_id as a parameter) and it returns no result.
    5.- The process finishes and if test the zone with the bseg_id (as a paramter) of the billing segment it works fine.
    So apparently during the execution of the script after the billing determinants are received from MDM I can't have access to the Bill segment that was created, even if the physically the record exists in the database (CI_BSEG).
    I also tried instantiating an object related with the bill segment and got the same result.
    Any idea or clue of what is happening?

    Could you be more explicit.
    What CC&B version?
    What MDM version?
    More details are required for:
    2.- We send a message from the MDM to CC&B. The message is received and processed and it gets to a point when the usage updates the bill segment.
    3.- After the bill segment has been updated with the values from the usage request object it starts executing the plug-in script.
    4.- I obtain the bseg_id from the usage request and use the business service (passing the bseg_id as a parameter) and it returns no result.

  • Logic Pro X - why is the sends context menu so hard to bring up on existing bus

    Why is the sends context menu in the mixer window so hard to bring up on a bus that has already been assigned, e.g when you want to change or remove it?  If I want to remove a bus send from a channel or change the bus number, I should be able to click on the bus and select the option.  But it seems to only come up some times, not consistently.
    Thanks.

    Just happened to me. Then realized that I had clicked the "link" button off in the Piano Roll Editor and clicking it back on fixed it.

  • Require a credential for the Adobe Interactive Forms scenarios- Charges

    Hi Friends,
    I need a info on Adobe Document Services, I have configured the service in an ECC 6.0 system. Now I would like to enable the interactive feature of adobe  forms. which is further required to apply for a credentials .pfx file PKCS#12 file. I just want to know whether it is chargable ( $ ) for one credentials, I have S -user ID of my client. I need this for testing purpose ..is there any alternative way to get this PKCS#12 file in free for some duration or the only way to create message to SAP applying for credentials ( As per SAP Note: 736902)
    Regards
    Ravi

    Hello Rabi,
    I did some investigation about the licensing for Adobe forms and i figured out from our SAP Rep that first 20 forms that you change..are free and after that its chargable..You might need to check your SAP Rep to get more insight into it.
    Hope this Helps.
    Rajeev

  • Result of Executing a Procedure in a Package to check if a file exists

    Hi,
    I have a procedure where i want to check if a name exists in my Oracle Table , for exemple , select name from my_files_processed , if the statement give a result , escape a step and go back to the previous step in the package , if the file doesn't exist in my table go to the next step in my package.
    Any issue on how to do this ??
    Best Regards

    First remove the horrible exception handler(s) which are hiding all errors;
    ie the
    when others
    then
    null;
    end;Then remember the main syntax is
    begin
    packagename.procedurename;
    end;
    /But also remember that procedure name must be declared in the package header if you want to call it. (This is called a public procedure). A private procedure does not have to be declared in the package header and can only be called from within the same package body.
    I always use sqlplus for verification as that is delivered with oracle. You know if it works with sqlplus it will work with any othere client and if it does not, it's usually a client issue.
    from what you have posted, There is nothing obvious as to why it won't work.

  • SP with xp_cmdshell gives an error in the MessageQueue, but executes successfully in SSMS.

    Hi All,
    I have a SP, which calls xp_cmdshell in it. This SP is being used in a MessageQueue. 
    The SQL server and Agent services are configured using a Domain service account, and this service account has a login under the sysadmin server role as well.
    When the MessageQueue is invoked, the SP returns the following exception :
    The xp_cmdshell proxy account information cannot be retrieved or is invalid. Verify that the '##xp_cmdshell_proxy_account##' credential exists and contains valid information.
    But when I execute the SP in SSSMS, under the service account login (which is a sysadmin), it successfully executes.
    I even created the ##xp_cmdshell_proxy_account## credential, but the Message Queue never stops giving this error.
    This is how the queue looks like :
    CREATE QUEUE [dbo].[TestxmCmdshellQueue]
    WITH STATUS = ON ,
    RETENTION = OFF ,
    ACTIVATION (      STATUS = ON ,
                            PROCEDURE_NAME = [dbo].[SpWithxp_cmdshell_Init] ,
                            MAX_QUEUE_READERS = 5 ,
                            EXECUTE AS N'dbo'  ),
    POISON_MESSAGE_HANDLING (STATUS = OFF) 
    The Service account is configured as a Local Administrator in the Local Server as well.
    I am running SQL Server 2008 R2 Sp2 on a Windows Server 2008 R2 Enterprise Machine. 
    Please let me know what I am missing here.

    I Made TRUSTWORTHY = ON in the database and the SP executed without any problem by the Message Queue.
    No, that is not the solution.
    Yes, it works. And it is a lot simpler than the solution I pointed you to. But it opens a big security hole. Or, well, depending how things you are on your server, it may be entirely uncontroversial. But as long as I don't know anything, I will have
    to assume that it is a security hole. And even if there is no one today on the server who is db_owner in the database but who should not be sysadmin, that could happen in the future.
    So, to anyone else who is reading this: don't set your databases to be trustworthy, unless you fully understand the implication. The correction solution is to use certificate signing. I describe this in detail in my article, and this article also explains
    the dangers with TRUSTWORTHY.
    http://www.sommarskog.se/grantperm.html
    Erland Sommarskog, SQL Server MVP, [email protected]

  • UDF required !! Cannot create target element Values missing in queue context

    Dear Experts,
    I am getting the cannot create target element error with acknowledgement payload in response message mapping  in synchronous interface. I have shared the response payload2. Please suggest do I need write any UDF.
    Message mapping successful with below payload1:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:updateOppResponse xmlns:ns0="http://soap.sforce.com/schemas/class/clientUpdateInqWebService">
       <ns0:result>
          <ns0:Description>Record Updated</ns0:Description>
          <ns0:SFDCId>006M0000007xjTrIAI</ns0:SFDCId>
          <ns0:Status>true</ns0:Status>
       </ns0:result>
    </ns0:updateOppResponse>
    With the below target system response message, Mapping failing with Cannot create target element /ns1:MT_InquiryUpdate_ECC_Ack. Values missing in queue context. Target XSD requires a value for this element, but the target-field mapping does not create one. Check whether the XML instance is valid for the source XSD, and whether the target-field mapping fulfils the requirement of the target XSD com.sap.aii.mappingtool.tf7.IllegalInstanceException:
    Actual acknowledgement reply from target system payload2:
    <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope xmlns="http://soap.sforce.com/schemas/class/clientUpdateInqWebService" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
       <soapenv:Body>
          <updateOppResponse>
             <result>
                <Description>Record Updated</Description>
                <SFDCId>006M0000007xjTrIAI</SFDCId>
                <Status>true</Status>
             </result>
          </updateOppResponse>
       </soapenv:Body>
    </soapenv:Envelope>
    Regards
    RKN

    Hi
    The easiest solution will be , write an simple java map for your response mapping.
    Please provide your target structure , if you need any help on the java mapping.
    Sample code:
    Response message from web service
    target msg:
    java code:
    package com.sap;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.transform.Result;
    import javax.xml.transform.Source;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    import com.sap.aii.mapping.api.AbstractTransformation;
    import com.sap.aii.mapping.api.StreamTransformationException;
    import com.sap.aii.mapping.api.TransformationInput;
    import com.sap.aii.mapping.api.TransformationOutput;
    public class populateResponseMessage extends AbstractTransformation {
          public void transform(TransformationInput arg0, TransformationOutput arg1)
                      throws StreamTransformationException {
                try {
                      DocumentBuilderFactory tfactory = DocumentBuilderFactory
                                  .newInstance();
                      DocumentBuilder tbuilder = tfactory.newDocumentBuilder();
                      Document doc = tbuilder.parse(arg0.getInputPayload()
                                  .getInputStream());
                      Document newdoc = tbuilder.newDocument();
                      Element root = (Element) newdoc.createElementNS(
                                  "urn:sap-com:document:sap:rfc:functions",
                                  "ns1:ZTEST_FAULT_MESSAGE_DATA.Response");
                      newdoc.appendChild(root);
                      NodeList nlList = doc.getElementsByTagName("ConversionRateResult");
                      if (nlList.getLength() != 0 && nlList != null) {
                            Node data = nlList.item(0);
                            String sourceval = data.getTextContent();
                            Element rate = (Element) newdoc.createElement("RATE");
                            rate.setTextContent(sourceval);
                            root.appendChild(rate);
                      Transformer transformer = TransformerFactory.newInstance()
                                  .newTransformer();
                      Source source = new DOMSource(newdoc);
                      Result output = new StreamResult(arg1.getOutputPayload().getOutputStream());
                      transformer.transform(source, output);
                } catch (Exception e) {
                      e.printStackTrace();
          }// end of transform

  • Permission to execute syslogins to non sysadmins, to list all the logins

    Hi All:
    How can we grant the permission to non sysadmin user to pull the report of all the existing SA's on the server.
    With Sysadmin role i m able to execute the query but when non-sysadmins are running they are not getting full result what i m seeing...
    The following permission already granted on master DB:
    1) Readonly, View server state, Execute and select permissions
    Query:
    select SL.name
    from syslogins SL
    INNER JOIN sys.server_principals SP
    ON SL.name = SP.name
    where SP.is_disabled <>1 and SL.sysadmin = 1
    Thanks,
    Thanks, Satish Kumar. Please mark as this post as answered if my anser helps you to resolves your issue :)

    VIEW ANY DEFINITION should do, although I fail to see why you need to expose this information to non-sysadmin users. See repro with an improved query below:
    CREATE LOGIN yngve WITH PASSWORD = 'malmsten'
    go
    EXECUTE AS LOGIN = 'yngve'
    go
    SELECT sp.name
    FROM sys.server_principals sp
    WHERE sp.is_disabled = 0
    AND EXISTS (SELECT *
    FROM sys.server_role_members mb
    JOIN sys.server_principals sp2 ON mb.role_principal_id = sp2.principal_id
    WHERE mb.member_principal_id = sp.principal_id
    AND sp2.name = 'sysadmin')
    go
    REVERT
    go
    GRANT VIEW ANY DEFINITION TO yngve
    go
    SELECT sp.name
    FROM sys.server_principals sp
    WHERE sp.is_disabled = 0
    AND EXISTS (SELECT *
    FROM sys.server_role_members mb
    JOIN sys.server_principals sp2 ON mb.role_principal_id = sp2.principal_id
    WHERE mb.member_principal_id = sp.principal_id
    AND sp2.name = 'sysadmin')
    go
    REVERT
    go
    DROP LOGIN yngve
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Cannot create target element /Invoice. Values missing in queue context.

    Hi Experts,
    I am working on Idoc to File scenario using SAP PI 7.1. In this scenario I am mapping Invoic02 Idoc with Invoice xsd. I am able to test the mapping in ESR with status as success.
    In ID Tools --> Test Configuration I used the same payload and tried testing the configuration step by step. while executing I am getting an error at Operation Mapping saying "Runtime exception occurred during application mapping com/sap/xi/tf/_MM_SRM_Hubwoo_Invoice_; com.sap.aii.mappingtool.tf7.IllegalInstanceException: Cannot create target element /Invoice. Valuesmissing in queue context. Target XSD requires a v~"
    Even though the mapping is getting executed successfully in ESR, I am not able to fix this issue. Need your inputs in resolving the same.
    Regards,
    Saurabh
    Edited by: saurabh mathure on Oct 16, 2010 8:14 AM

    Hi ,
    issue"Can not create the target element   value missing the queue context'.
    reason for this issue:
    Target field expecting some value from sender field. so in testing your not getting  any data from source field  for this reason your getting that issue.
    Solution:
    In mapping use node function:Mapwith deafault between source and taget fileds.
    Then activate mapping . now excute the scenario it  will properly without that issue.
    Cheers,
    Meera

  • Problems enabling xp_cmdshell

    We migrated a SQL Server 2005 server to SQL 2008R2 SP3 this past Sunday, with one named instance. One of the things we missed was that xp_cmdshell was enabled on the old server. The SQL server name is fl2000-sql002 and the SProc is using this code:
    SET @bcpCommand
    = 'bcp.exe AdjustmentRequests.##AdjustmentRequestCSVFinal out "\\fl2000-netcon01\DefPath\Charge Imports\result.csv" -S fl2000-sql002 -U AdjustmentRequests -P [Pwd] -t, -c'
    EXEC
    master..xp_cmdshell
    @bcpCommand
    The programmers request was to grant the local SQL ID named 'AdjustmentRequests' the ability to execute xp_cmdshell, but I want to use a generic SQLProxy account in case future SProc's also need the
    ability. Because it is referencing a remote UNC path, I created a new dedicated domain proxy account named SQL002DB.Proxy.
    I've done this before years ago but I didn't document the exact steps, so I was searching for the process again. I tried a few different links, and then ended up on the link I recognized from the last setup on one of our other SQL servers...
    http://sqlblog.com/blogs/tibor_karaszi/archive/2007/08/23/xp-cmdshell-and-permissions.aspx.
    At this point in time, the instance doesn't not have a login for the SQLProxy account, nor the domain\SQL002db.Proxy account, there are not any entries in the Credentials, and there are not any entries in the SQL Agent\Proxies\OperatingSystem(CmdExec)
    containers. I refreshed all containers to confirm.
    The commands I'm attempting to use are below.
    --1, allow   xp_cmdshell
    EXEC sp_configure 'xp_cmdshell', 1
    RECONFIGURE
    GO
    --2, grant permission to xp_cmdshell
    USE master
    CREATE LOGIN SQLProxy WITH PASSWORD =   'XP_Cmdshell'
    CREATE USER SQLProxy FROM LOGIN SQLProxy
    GRANT EXECUTE ON xp_cmdshell TO SQLProxy
    EXECUTE AS login = 'SQLProxy'
    EXEC sp_xp_cmdshell_proxy_account   'Domain\SQL002DB.Proxy','Pwd'
    EXECUTE AS login = 'SQLProxy'
    EXEC xp_cmdshell 'DIR C:\*.*'
    REVERT
    Regardless if I login as sa or login with my domain account which is a member of the sysadmin role, I receive these messages upon execution:
    Configuration option 'xp_cmdshell' changed from 1 to 1. Run the RECONFIGURE statement to install.
    Msg 15023, Level 16, State 1, Line 4
    User, group, or role 'SQLProxy' already exists in the current database.
    Msg 229, Level 14, State 5, Procedure sp_xp_cmdshell_proxy_account, Line 1
    The EXECUTE permission was denied on the object 'sp_xp_cmdshell_proxy_account', database 'mssqlsystemresource', schema 'sys'.
    Msg 229, Level 14, State 5, Procedure xp_cmdshell, Line 1
    The EXECUTE permission was denied on the object 'xp_cmdshell', database 'mssqlsystemresource', schema 'sys'.
    Now I see the SQLProxy login ID listed, but nothing else. What am I doing wrong? The staff are sharpening their pitchforks because they are having to run this process manually.

    Logged in as sa:
    EXEC
    sp_xp_cmdshell_proxy_account[Domain\SQL002DB.Proxy],
    'Pwd'
    Msg 15137, Level 16, State 1, Procedure sp_xp_cmdshell_proxy_account, Line 1
    An error occurred during the execution of sp_xp_cmdshell_proxy_account. Possible reasons: the provided account was invalid or the '##xp_cmdshell_proxy_account##' credential could not be created. Error code: '5'.
    USE
    master;
    GO
    CREATE
    USER [Domain\SQL002DB.Proxy]
    FOR
    LOGIN [Domain\SQL002DB.Proxy];
    GRANT
    EXECUTE
    ON
    xp_cmdshell
    TO [Domain\SQL002DB.Proxy];
    Msg 15023, Level 16, State 1, Line 1
    User, group, or role 'Domain\SQL002DB.Proxy' already exists in the current database.

  • CTXSYS.Context in Oracle Multitenant Database (Cloud) - is this supported?

    Hello guys,
    I am new to the world of apex which makes the administration console for the oracle database cloud a trivial ground for me.
    I am trying to setup context indextype which i require for some applications on the jcs front end. however, i am having no luck setting up this index types.
    I havent been able to find any resources regarding the CTXSYS package within the oracle database cloud documentation so I am hoping someone out here may have a few tips or tricks for me.
    How can I grant execute on CTXSYS.CTX_DDL object to my database users?
    thanks.

    There's no oracle text support for database cloud services shamefully.
    I cant help but wonder why oracle wont support features of its own product, not something to brag about "Oracle!!!!"

Maybe you are looking for

  • Can't write in Pages 09 documents with Mavericks

    So I accidentally upgraded to Pages 5 on my ipad so then I had to install Mavericks and Pages 5 on my MacBook too (to allow syncing). Now Pages 5 is a complete disaster. It screws up all the lay-outs I created in 09 and doesn't allow me to create new

  • How do I make itunes purchased music compatible with Windows Movie Maker?

    Windows Movie Maker will not accept the itunes format and I cannot find a way to convert the files. I need to convert the format to any of the following accepted formats: .aif, .aifc, .aiff .asf, .au, .mp2, .mp3, .mpa, .snd, .wav, and .wma Please Hel

  • Help me learn how to back up and set up a recovery on new MacBook please?

    Please bear with me if I come across not knowing anything about this topic....but that's why i'm asking for help. mentioned before that my brother set up my PC laptop for me years ago. And a friend set up my Western Digital External Hard Drive (My Bo

  • Display Variable screen values in BI 7.0

    Hi experts, I want to display the variable values once I execute a Report in BI 7.0 There was a option under Format in Business Explorer menu in BW 3.5 but I dont seem to find that option in BI 7.0 If somebody can point me where exactly I can find it

  • HT201441 how to get activation password off of iphone 4s

    my father has recently passed and he left me all of his stuff including his iphone 4s...im currently locked out of it becauses it requires the activation password and email soo can someone please help me get it off .....thanks:)