Remote Procedure Execution

Hi,
Is it possible to execute a procedure in other schema.
example: there is user A and user B.
user A has a DBlink with all necessary grants to user B.
Can user A execute a procedure which is present in user B schema?
How?

Hi GreenHorn,
Please find below examples:
CREATE OR REPLACE PROCEDURE USER_A.UPDATE_EMP
BEGIN
UPDATE USER_A.EMP
SET SALARY = SALARY + 1000;
COMMIT;
END;
GRANT EXECUTE ON USER_A.UPDATE_EMP TO USER_B;
Now, if User_B is executing the procedure, he can updates the table USER_A.EMP.
BEGIN
USER_A.UPDATE_EMP;
END;
PL/SQL Procedure Successfully Completed.
You should note one point here, The USER_B doesn't have any "UPDATE or INSERT or DELETE" privilege on TABLE EMP which exists in USER_A.
But, when I am executing this procedure from USER_A, it is executed successfully. This means, when you execute procedure, that procedure will be executed under the Privilege of OWNER.
So, in this example, If USER_B is executing USER_A's procedure, that procedure is being executed under privilege of USER_A only.
There is one more syntax called "AUTHID CURRENT_USER" to limit the privilege of PLSQL procedures. But, now, its not needed to confuse with that.
Thanks
Prabhu K

Similar Messages

  • SAP IQ 16 remote procedure to MsSQL 2005 error.

    Hi all,
        I've in IQ a remote procedure that call via RPC an old MsSQL 2005 stored procedure.
    In my old installation with IQ 12.7 ESD 4 all works well and I don't report any issues.
    Actually with the new IQ 16.0 SP08 I've the following strange behaviours.
    ERROR 1) When I call the remote procedure from IQ using SAP Interactive SQL all works well if I run the client from a remote host. I mean from an host which is not the server where IQ engine is running. If I execute the same call (always from SAP Interactive SQL) on the IQ engine server the following error is reported:
    There was an error reading the results of the SQL statement.
    The displayed results may be incorrect or incomplete.
    Cursor not in a valid state
    SQLCODE=-853, ODBC 3 State="24000"
    Cursor not in a valid state
    SQLCODE=-853, ODBC 3 State="24000"
    Server 'SVR_PRODOTTI': [Microsoft][ODBC SQL Server Driver]Function
    sequence error
    SQLCODE=-660, ODBC 3 State="HY000"
    ERROR 2) I've the following scenario:
         a.     I call a remote procedure (always the MsSQL 2005 remote procedure described above) inside a standard IQ stored procedure
         b.     the remote procedure fill a remote table with some data
         c.     in IQ after that the remote procedure is executed I want to get the produced data in IQ via proxy table
    Looking at MsSQL side I note that step (a) and (b) are executed, but when step (c) start running it remains blocked by the session that had run step (a and b) even if they are already finished. Look at the following extraction of session state by MsSQL side.
    SPID Status Login HostName     BlkBy  DBName Command CPUTime      DiskIO LastBatch ProgramName       SPID   REQUESTID
    177 SUSPENDED usr     IQ_SERVER  287    master EXECUTE            0        0        06/19 17:31:38 Sybase IQ 177    0   
    287 sleeping  usr     IQ_SERVER    .    master AWAITING COMMAND    9829 153149       06/19 17:31:38 Sybase IQ 287    0   
    SPID = 287 (remote procedure call)
    RPC Event 0      sp_remote_procedure;1
    SPID = 177 (proxy table access)
    Language Event 0      SELECT .... FROM .... t1 
    Environment details:
    IQ -> SAP IQ 16.0 SP08 on Win 2012 R2 server (64 bit)
    MSSQL -> MsSQL 2005 SP 2 32 bit Enterprise on Win 2003 server (32 bit)
    Do you have any suggestions about this strange behaviours?
    Best regards,
    Stefano

    Hi Tayeb,
        thank you for your suggestions, following some improvement and details about my errors.
    ERROR 1) [SOLVED]
    In SAP Interactive SQL: Tools -> Options -> SAP Sybase IQ
    The problem appear only if "Result processing" options are configured as:
    "Show results from the last statement" --> ON
    "Show only the first result set" --> ON
    ..hereafter I report the image that show the configuration that caused error.
    Any other configuration of these two parameters doesn't show any problem.
    ERROR 2) [already present]
    I checked the IQ 16 SP08 doc and as you reported MsSQL 2005 is not listed in RPC certified systems.
    I checked also the old IQ 12.7 ESD 4 (the version from which I want to migrate and where all works fine every day) doc and the same statement was reported. So not even in 12.7 release MsSQL RPC call seems to be certified, even if it still withou any problem.
    After some other tests tracing also different debugging mode (-zo and -zr) I share the following result.
    I tried the following use cases.
    Note that "rem_mssql_TARGET" sp insert data in a local table on MsSQL which is selected by IQ via proxy "pr_DELTA_IQ".
    [TEST A] - RDP via select
        select
          @max_date = RetDate,
          @error = RetCode 
        from
          DBA.rem_mssql_TARGET('2014-06-20 15:00:00')
    insert into DBA.DELTA_IQ 
      FIELD_1,
      FIELD_2
                           location 'TARGET_DB.TARGET_DB'
        select     
      FIELD_1,
      FIELD_2
        from DBA.pr_DELTA_IQ
    PROBLEM: on MsSQL all remains blocked, because proxy table extraction is blocked by remote procedure execution that result running.
    If I kill the remote procedure session from MsSQL, IQ engine shutdown itself without any messages.
    No data is inserted in DBA.DELTA_IQ.
    [TEST B] - RDP via exec
    exec DBA.rem_mssql_TARGET ('2014-06-20 15:00:00')
    insert into DBA.DELTA_IQ 
      FIELD_1,
      FIELD_2
                           location 'TARGET_DB.TARGET_DB'
        select     
      FIELD_1,
      FIELD_2
        from DBA.pr_DELTA_IQ
    PROBLEM: MsSQL doesn't report any blocking session.
    IQ return the following message and the IQ server doesn't shutdown itself.
    SQLCODE=-706, ODBC 3 State=“HY000”
    Remote server does not have the ability to support this statement
    Anyway all is rollbacked an no data is inserted in DBA.DELTA_IQ.
    Do you have any other hints about it?
    Thank you and regards,
    Stefano

  • Error Creating VM on 2011 iMac - The Hyper-V Virtual Machine Management service encountered an unexpected error: The remote procedure call failed. (0x800706BE).

    I am running Hyper-V in Windows 8.1 on a late 2011 27 inch iMac. Whenever I try to create a virtual machine I get the error below and Windows warns that it will restart in 1 minute. I tried a clean install of Windows, but my PC still crashes ever
    time I try to create a VM. I was able to successfully use Hyper-V in prior versions of Windows on this same PC. Any clue as to what is going on? A driver? Windows 8.1? Mac Hardware related?
    I see the following two entries in event viewer but have no other clue as to what is happening:
    Log Name:      Microsoft-Windows-Hyper-V-VMMS-Admin
    Source:        Microsoft-Windows-Hyper-V-VMMS
    Date:          1/10/2014 10:48:46 AM
    Event ID:      16000
    Task Category: None
    Level:         Error
    Keywords:     
    User:          SYSTEM
    Computer:      Charles-PC.CHARLESPOOL.local
    Description:
    The Hyper-V Virtual Machine Management service encountered an unexpected error: The remote procedure call failed. (0x800706BE).
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-Hyper-V-VMMS" Guid="{6066F867-7CA1-4418-85FD-36E3F9C0600C}" />
        <EventID>16000</EventID>
        <Version>0</Version>
        <Level>2</Level>
        <Task>0</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8000000000000000</Keywords>
        <TimeCreated SystemTime="2014-01-10T15:48:46.770451300Z" />
        <EventRecordID>58</EventRecordID>
        <Correlation />
        <Execution ProcessID="2488" ThreadID="8704" />
        <Channel>Microsoft-Windows-Hyper-V-VMMS-Admin</Channel>
        <Computer>Charles-PC.CHARLESPOOL.local</Computer>
        <Security UserID="S-1-5-18" />
      </System>
      <UserData>
        <VmlEventLog xmlns:auto-ns2="http://schemas.microsoft.com/win/2004/08/events" xmlns="http://www.microsoft.com/Windows/Virtualization/Events">
          <ErrorMessage>%%2147944126</ErrorMessage>
          <ErrorCode>0x800706BE</ErrorCode>
        </VmlEventLog>
      </UserData>
    </Event>
    Log Name:      Microsoft-Windows-Hyper-V-VMMS-Admin
    Source:        Microsoft-Windows-Hyper-V-VMMS
    Date:          1/10/2014 10:48:46 AM
    Event ID:      16010
    Task Category: None
    Level:         Error
    Keywords:     
    User:          SYSTEM
    Computer:      Charles-PC.CHARLESPOOL.local
    Description:
    The operation failed.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-Hyper-V-VMMS" Guid="{6066f867-7ca1-4418-85fd-36e3f9c0600c}" />
        <EventID>16010</EventID>
        <Version>0</Version>
        <Level>2</Level>
        <Task>0</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8000000000000000</Keywords>
        <TimeCreated SystemTime="2014-01-10T15:48:46.773497100Z" />
        <EventRecordID>59</EventRecordID>
        <Correlation />
        <Execution ProcessID="2488" ThreadID="8704" />
        <Channel>Microsoft-Windows-Hyper-V-VMMS-Admin</Channel>
        <Computer>Charles-PC.CHARLESPOOL.local</Computer>
        <Security UserID="S-1-5-18" />
      </System>
      <ProcessingErrorData>
        <ErrorCode>15005</ErrorCode>
        <DataItemName>Parameter0</DataItemName>
        <EventPayload>
        </EventPayload>
      </ProcessingErrorData>
    </Event>

    Hi CharlesPool,
    I am assuming that the win8.1 is in-place updated from win8 .
    Maybe you need to check the state of hypervisorlaunchtype .
    If it is off , please run command " bcdedit /set hypervisorlaunchtype auto "
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Exchange 2010 SP3 Failing to Install "The remote procedure call failed"

    I am getting an error while trying to upgrade the first Mailbox server in the organization to SP3. The CAS and HUB servers already upgraded without any issues. Any help is greatly appreciated.
    Here is the exchange setup logs output:
    [11/15/2014 09:10:52.0512] [2] Creating Server Object with DN = /dc=xxx/dc=xxx/cn=Configuration/cn=Services/cn=Microsoft Exchange/cn=xxx/cn=Administrative Groups/cn=Exchange Administrative Group (xxxx)/cn=Servers/cn=xxxxxx
    [11/15/2014 09:10:52.0512] [2]  Status code check (f:\14.03.0123\sources\dev\admin\src\libs\ds\x_dob.cxx:3370)
               Error code 0X8000500D (20493): This property can't be found in the cache.
    [11/15/2014 09:10:52.0528] [2] Leaving ScCreateServerObject
    [11/15/2014 09:10:52.0528] [2] Entering ScSetServerNetworkAddresses
    [11/15/2014 09:10:52.0528] [2] Entering ScGetServerDNSNameFromDS
    [11/15/2014 09:11:11.0482] [2]  ScUserDNFromLoginName (f:\14.03.0123\sources\dev\admin\src\libs\exsetup\exmisc.cxx:1441)
               Error code 0XC00706BE (1726): The remote procedure call failed.
    [11/15/2014 09:11:11.0482] [2]  ScGetServerDNSNameFromDS (f:\14.03.0123\sources\dev\admin\src\libs\exsetup\dsmisc.cxx:3481)
               Error code 0XC00706BE (1726): The remote procedure call failed.
    [11/15/2014 09:11:11.0482] [2] Leaving ScGetServerDNSNameFromDS
    [11/15/2014 09:11:11.0482] [2]  ScSetServerNetworkAddresses (f:\14.03.0123\sources\dev\admin\src\udog\excommon\ptudutil.cxx:1028)
               Error code 0XC00706BE (1726): The remote procedure call failed.
    [11/15/2014 09:11:11.0482] [2] Leaving ScSetServerNetworkAddresses
    [11/15/2014 09:11:11.0482] [2]  CAtomServer::ScAddOrRefreshDSObjects (f:\14.03.0123\sources\dev\admin\src\udog\exsetdata\components\server\a_server.cxx:288)
               Error code 0XC00706BE (1726): The remote procedure call failed.
    [11/15/2014 09:11:11.0482] [2]  CAtomServer::ScAddDSObjects (f:\14.03.0123\sources\dev\admin\src\udog\exsetdata\components\server\a_server.cxx:354)
               Error code 0XC00706BE (1726): The remote procedure call failed.
    [11/15/2014 09:11:11.0482] [2]  CBaseAtom::ScReinstall (f:\14.03.0123\sources\dev\admin\src\udog\setupbase\basecomp\baseatom.cxx:815)
               Error code 0XC00706BE (1726): The remote procedure call failed.
    [11/15/2014 09:11:11.0482] [2] Leaving CBaseAtom(Microsoft Exchange Server-Level Objects)::ScReinstall
    [11/15/2014 09:11:11.0482] [2] Service = '' CBaseServiceAtom::ScReinstall (f:\14.03.0123\sources\dev\admin\src\udog\setupbase\basecomp\basesvcatom.cxx:242)
               Error code 0XC00706BE (1726): The remote procedure call failed.
    [11/15/2014 09:11:11.0482] [2] Leaving CBaseServiceAtom(Microsoft Exchange Server-Level Objects)::ScReinstall
    [11/15/2014 09:11:11.0482] [2] mode = 'Reinstall' (61955) CBaseAtom::ScSetup (f:\14.03.0123\sources\dev\admin\src\udog\setupbase\basecomp\baseatom.cxx:537)
               Error code 0XC00706BE (1726): The remote procedure call failed.
    [11/15/2014 09:11:11.0482] [2]  ScSetupAtom (f:\14.03.0123\sources\dev\admin\src\udog\exsetdata\exsetds.cxx:882)
               Error code 0XC00706BE (1726): The remote procedure call failed.
    [11/15/2014 09:11:11.0482] [2] Leaving ScSetupAtom
    [11/15/2014 09:11:11.0482] [2] [ERROR] An error occurred with error code '3221685950' and message 'The remote procedure call failed.'.
    [11/15/2014 09:11:11.0482] [1] The following 1 error(s) occurred during task execution:
    [11/15/2014 09:11:11.0482] [1] 0.  ErrorRecord: An error occurred with error code '3221685950' and message 'The remote procedure call failed.'.
    [11/15/2014 09:11:11.0482] [1] 0.  ErrorRecord: Microsoft.Exchange.Management.Deployment.ExsetdataException: An error occurred with error code '3221685950' and message 'The remote procedure call failed.'.
    [11/15/2014 09:11:11.0482] [1] [ERROR] The following error was generated when "$error.Clear();
        buildToBuildUpgrade-ExsetdataAtom -AtomName Server -DomainController $RoleDomainController
    " was run: "An error occurred with error code '3221685950' and message 'The remote procedure call failed.'.".
    [11/15/2014 09:11:11.0482] [1] [ERROR] An error occurred with error code '3221685950' and message 'The remote procedure call failed.'.
    [11/15/2014 09:11:11.0482] [1] [ERROR-REFERENCE] Id=AllADRolesCommon__ExsetdataServer Component=EXCHANGE14:\Current\Release\Shared\Datacenter\Setup
    [11/15/2014 09:11:11.0482] [1] Setup is stopping now because of one or more critical errors.
    [11/15/2014 09:11:11.0482] [1] Finished executing component tasks.
    [11/15/2014 09:11:11.0529] [1] Ending processing Install-MailboxRole
    [11/15/2014 09:14:12.0977] [0] End of Setup
    [11/15/2014 09:14:12.0977] [0] **********************************************
    Additionally here is the 2 errors that are showing up in the event viewer for MSExachange Management:
    Exchange Management Console-Local
    2652
    45
    00:00:18.9698426
    View Entire Forest: 'True', Configuration Domain Controller: 'domaincontroller.xxx.xxx', Preferred Global Catalog: 'domaincontroller.xxx.xxx', Preferred Domain Controllers: '{ domaincontroller.xxx.xxx }'
    Microsoft.Exchange.Management.Deployment.ExsetdataException: An error occurred with error code '3221685950' and message 'The remote procedure call failed.'.
    0
    Exchange Management Console-Local
    2652
    9
    00:00:37.7834262
    View Entire Forest: 'True', Configuration Domain Controller: 'domaincontroller.xxx.xxx', Preferred Global Catalog: 'domaincontroller.xxx.xxx', Preferred Domain Controllers: '{ domaincontroller.xxx.xxx }'
    Microsoft.Exchange.Management.Deployment.ScriptExecutionException: The following error was generated when "$error.Clear(); buildToBuildUpgrade-ExsetdataAtom -AtomName Server -DomainController $RoleDomainController
    " was run: "An error occurred with error code '3221685950' and message 'The remote procedure call failed.'.". ---> Microsoft.Exchange.Management.Deployment.ExsetdataException: An error occurred with error code '3221685950' and message 'The
    remote procedure call failed.'. --- End of inner exception stack trace ---
    0
    Microsoft.Exchange.Management.Deployment.ExsetdataException: An error occurred with error code '3221685950' and message 'The remote procedure call failed.'.

    Hi,
    Please try to remove the Water mark and Action keys under
    HKLM\SOFTWARE\Microsoft\Exchangeserver\V14\MailboxRole
    After that, reboot the server and rerun the set up.
    This issue due to Exchange failed set up was trying to resume the previously failed setup rather than starting completely over.
    Best Regards.

  • Cannot open pictures in Window 8.1...getting message 'the remote procedure call failed". What is the solution?

    cannot open pictures in Window 8.1...getting message 'the remote procedure call failed".  What is the solution?
    I recently bought a new HP computuer and uploaded Window 8.1.  I then transfered photo files from old computer to new computer using a portable storage drive.
    When trying to view the photos, a message pops up showing a file path...and the message 'the remote procedure call failed'.  Photos are in jpeg format.
    Please let me know what I can do to view photos?

    What program you use to view these photos? Choose another app to view these photos
     for a test.
    This issue only occurred when you view photo? What is the result if we connect the
    portable storage drive to other computer (if possible)?
    Run sfc/scannow to check and fix if there are some missing or corrupted system files.
    Check the event viewer to see the detailed information of this issue.
    Regards
    Yolanda
    TechNet Community Support

  • Inserting data in remote database with remote procedure

    Hi,
    I have a problem concerning inserting data in a remote database (10g) by using a remote procedure.
    I call the procedure from a 11g database just by doing:
    begin
    getlocalfilecontent@remoteserv(param)
    commit;
    end;
    And it wouldn't insert the data into the remote table.
    While when I execute the same procedure locally on that remote database (10g)
    It does insert the data I want.
    What could be causing the problem here, am I overseeing something?
    Edited by: user7634309 on 14-Aug-2009 02:14

    Already thanks for the fast replies
    The dblink works perfectly. I can select data etc with this dblink.
    The procedure on the remote database is the same.
    One other thing, when I execute the remote procedure on local database 2nd time I get the
    ORA-ERR: ORA-02041: client database did not begin a transaction.
    This could be fixed by doing a commit or rollback but still no inserting in remote table.
    So to sum it up:
    What doesn't work:(no inserting)
    On 11g server that calls remotely the procedure
    begin
    getlocalfilecontent@remoteserv(parameter);
    commit;
    end;
    What works(does insert)
    On 10g server calling the procedure locally
    begin
    getlocalfilecontent(param);
    commit;
    end;
    So everything is the same except on the 11g server I add the dblink spec behiind the procedurecall

  • How to Execute a Remote Procedure in Portal using Database Link

    Hi,
    I followed the instructions to create a Portal form for a remote procedure. But I am encountering the following error. Can someone advise what may be the cause?
    Failed to execute - Missing string(create_package_body) language(us) domain (wwv) sub_domain (wwv_builder) (WWV-04300)
    ORA-04020: deadlock detected while trying to lock object PUBLIC.PORTLET_SCHEMA (WWV-11230)
    Failed to parse as PORTAL - (WWV-08300)
    PURPOSE
    How to execute a remote procedure in Portal using Database Link.
    DESCRIPTION
    This procedure assumes that you have two databases, one of which is remote, and Portal is configured in the other.
    Remote Database A:
    ==================
    1) Create a procedure as follows: Create or Replace PROCEDURE SCOTT.ADD_TWO_VALUES ( v_one IN NUMBER, v_two IN NUMBER, v_result OUT NUMBER) as begin v_result :=v_one+v_two; end; 2) Grant execute privileges to PUBLIC on the procedure.
    Database B (where Portal is configured): ========================================
    1) Create a public database link and choose to connect as a specific user (say SYSTEM). By default, in an Oracle 8i database, the "global_names" parameter in initSID.ora (or init.ora) file is set to "true". This Global Naming parameter enforces that a dblink has the same name as the database it connects to. Therefore, if the remote global database (A) name is "ora8.acme.com" then the database link should also be named as "ora8.acme.com".
    2) Create a synonym for the procedure in Database A. Make sure you fully qualify the procedure name in the remote database (like SCOTT.ADD_TWO_VALUES).
    3) Create a dynamic page to execute the procedure. The ORACLE tags in the dynamic page will look similar to the following: <ORACLE> DECLARE v_total NUMBER; BEGIN ADD_TWO_VALUES(:v_one,:v_two, v_total); htp.p('The total is => '); htp.p('<input type="TEXT" VALUE='||v_total||'>'); htp.para; htp.anchor('http://<machine.domain:port#>/pls/portal30/SCOTT.DYN_ADD_TWO_VALUES.show_parms', 'Re-Execute Procedure'); END; </ORACLE>
    4) Portal does not have an option to create a form based on a synonym. Therefore, if you want to create a form instead of a dynamic page, create a wrapper procedure and then create a form based on this procedure. For example: Create or Replace PROCEDURE PORTAL30.ADD_TWO_VALUES_PR ( v_one IN NUMBER, v_two IN NUMBER, v_total OUT NUMBER) as begin add_two_values(v_one, v_two, v_total); end;
    5) Grant execute privileges to PUBLIC on the procedure.

    hello...
    any input will welcomed... Thanks..

  • Java2 SDK SEv1.4.1_01-Win Install Failure - remote procedure call

    Whenever I try to install the J2 SDK 1.4.1 on Windows XP Pro, everything works til the actual install is supposed to start. It just hangs there. When I hit the Cancel button, nothing happens; so I have to use task manager to cancel it. Afterward a small window with a message saying "An error occurred while launching the setup. The remote procedure call failed". I found a similar posting last spring for XP & J2 SDK 1.4.0, but there was no resolution posted. Does anybody know what the problem is?

    I would be very interested in a solution for this problem as well. I get father. The installer runs all the way through until it is done (100%). But it does not complete and hangs. If I cancel install the error dialog with the following message. "An error occurred while launching the setup. The remote procedure call failed." appears. This is also an Windows XP Pro machine.

  • Remote procedure call failed and did not execute response after changing contents

    Hey Hey!
    I have reviewed the other posts related to this issue but have not found a solution.
    I have done myself quite a mischief and hope someone here can help me out!
    I'm running an old ACER laptop with Windows 7. This PC belonged to an old colleague and therefore all of the folders and user names were still under his name, so I decided to try to change them all to my name. The main issue was the USER folder which had
    the locked symbol next to it but it wasn't locked at all. I googled how to delete this folder and one bright spark suggested I create a new folder with my name, copy all of the folders from the other 'locked' user's folder into my folder, and then delete the
    old user's folder. 
    That was fine. All seemed well. When I tried to delete the old folder the computer sat around thinking saying it was 'moving' but not doing anything. So, I cancelled the operation in the Task Manager. When I attempted to open any folder from the start menu
    or desktop or task bar I was presented with a bunch of numbers and letters and the message "REMOTE PROCEDURE CALL FAILED AND DID NOT EXECUTE."
    I quickly googled the message realising I'd made a major error and the first response was to type in services.msc or something to that effect, so I typed that into the Start Menu search bar and hit enter and nothing came up. So, I tried again, but now I
    couldn't type anything into the search bar, I could not even select any programs from the Start Menu. 
    So, I can't access the Start Menu, search bar, or any of the folders unless I open uTorrent, select open containing folder, and from there I can access what I need.
    I'm too afraid to reboot the PC. I can't locate my copy of Windows 7 anywhere. I'm freaking out!!
    Before I pour my lowly student wage into getting a professional to fix it, could someone please offer some suggestions??
    Greatly appreciated in advance. 
    Paris, Texas. 

    Hi,
    Based on your description, for this question is more related to NetQueryDisplayInformation() API, in order to get better help, we may ask for suggestions in the following MSDN forum.
    MSDN Forum
    https://social.msdn.microsoft.com/Forums/en-US/home
    Besides, we can try to use a script to get all domain users. Regarding this point, the following script can be referred to as reference.
    How to list all active directory users in a particular domain using PowerShell
    https://gallery.technet.microsoft.com/office/How-to-list-all-active-0d9be7ce
    In addition, for scripts, we can also ask for help in the following forum.
    The Official Scripting Guys Forum
    https://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
    Best regards
    Frank Shen 

  • Remote Procedure Call Failed - Verifying Account prior to establishing PIN as sign in option

    PC Settings / Accounts / Sign in options / PIN / Verify Account info / :  I enter my Microsoft Account password and receive the following message:
    "Remote procedure call failed"
    Cannot cancel - screen keeps reappearing.
    I have successfully established a sign-in PIN for my Win 8.1 desktop.  The above problem is occurring only on my Win 8.1 laptop.

    Hi,
    Sorry for my late reply.
    Regarding the issue, please ensure that RPC service is start.
    If it stops, I suggest you perform the following step to start it.
    1.Press Win+R, and type regedit, then press enter.
    2.Please navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\RpcSs and
    locate Start registry key
    Double click on Start and edit the value:
    Change Startup type :
    Automatic - 2
    Manual - 3
    Disabled - 4
    Automatic (Delayed Start) - 2
    Note: When you change to Automatic (Delayed Start) a new key DelayedAutostart is created with value 1.
    When you change to Automatic from Automatic (Delayed Start), DelayedAutostart change value to 0.
    If it cannot start, please refer to the following article to test it.
    "Could not start the Remote Procedure Call (RPC) Service. Error 1058" error message when you manually start the Remote Procedure Call service
    http://support.microsoft.com/kb/838428
    Regards,
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Event ID: 5014, 5004 The DFS Replication Service is stopping communication with partner / Error 1726 (The remote procedure call failed.)

    I'm replicating between two servers in two sites (Server A - Server 2012 R2 STD, Server B - Server 2008 R2) over a VPN (Sonicwall Firewall).  Though the initial replication seems to be
    happening it is very slow (the folder in question is less than 3GB).  I'm seeing these in the event viewer every few minutes:
    The DFS Replication service is stopping communication with partner PPIFTC for replication group FTC due to an error. The service will retry the connection periodically.
    Additional Information:
    Error: 1726 (The remote procedure call failed.)
    and then....
    The DFS Replication service successfully established an inbound connection with partner PPIFTC for replication group FTC.
    Here are all my troubleshooting steps (keep in mind that our VPN is going through a SonicWall <--I increased the TCP timeout to 24 hours):
    -Increased TCP Timeout to 24 hours 
    -Added the following values on both sending and receiving members and rebooted server
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
    Value =DisableTaskOffload
    Type = DWORD
    Data = 1
    Value =EnableTCPChimney
    Type = DWORD
    Data = 0
    Value =EnableTCPA
    Type = DWORD
    Data = 0
    Value =EnableRSS
    Type = DWORD
    Data = 0
    ---------------------------------more troubleshooting--------------------------
    -Disabled AntiVirus on both members
    -Made sure DFSR TCP ports 135 & 5722 are open
    -Installed all hotfixes for 2008 R2 (http://support.microsoft.com/kb/968429) and rebooted
    -Ran NETSTAT –ANOBP TCP and the DFS executable results are listed below:
    Sending Member:
    [DFSRs.exe]
      TCP    10.x.x.x:53            0.0.0.0:0             
    LISTENING       1692
    [DFSRs.exe]
      TCP    10.x.x.x:54669        
    10.x.x.x:5722          TIME_WAIT       0
      TCP    10.x.x.x:54673        
    10.x.x.x:5722          ESTABLISHED     1656
     [DFSRs.exe]
      TCP    10.x.x.x:64773        
    10.x.x.x:389           ESTABLISHED     1692
    [DFSRs.exe]
      TCP    10.x.x.x:64787        
    10.x.x.x:389           ESTABLISHED     1656
     [DFSRs.exe]
      TCP    10.x.x.x:64795        
    10.x.x.x:389           ESTABLISHED     2104
    Receiving Member:
    [DFSRs.exe]
      TCP    10.x.x.x:56683        
    10.x.x.x:389           ESTABLISHED     7472
     [DFSRs.exe]
      TCP    10.x.x.x:57625        
    10.x.x.x:54886         ESTABLISHED     2808
    [DFSRs.exe]
      TCP    10.x.x.x:61759        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61760        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61763        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61764        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61770        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61771        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61774        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61775        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61776        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61777        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61778        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61779        
    10.x.x.x:57625         TIME_WAIT       0
      TCP    10.x.x.x:61784        
    10.x.x.x:52757         ESTABLISHED     7472
    [DFSRs.exe]
      TCP    10.x.x.x:63661        
    10.x.x.x:63781         ESTABLISHED     4880
    ------------------------------more troubleshooting--------------------------
    -Increased Staging to 32GB
    -Opened the ADSIedit.msc console to verify the "Authenticated Users" is set with the default READ permission on the following object:
    a. The computer object of the DFS server
    b. The DFSR-LocalSettings object under the DFS server computer object
    -Ran
    ping <var>10.x.x.x</var> -f -l 1472 and got replies back from both servers
    -AD replication is successful on all partners
    -Nslookup is working so DNS is working
    -Updated NIC drivers on both servers
    - I ran the following to set the Primary Member:
    dfsradmin Membership Set /RGName:<replication group name> /RFName:<replicated folder name> /MemName:<primary member> /IsPrimary:True
    Then Dfsrdiag Pollad /Member:<member name>
    I'm seeing these errors in the dfsr logs:
    20141014 19:28:17.746 9116 SRTR   957 [WARN] SERVER_EstablishSession Failed to establish a replicated folder session. connId:{45C8C309-4EDD-459A-A0BB-4C5FACD97D44} csId:{7AC7917F-F96F-411B-A4D8-6BB303B3C813}
    Error:
    + [Error:9051(0x235b) UpstreamTransport::EstablishSession upstreamtransport.cpp:808 9116 C The content set is not ready]
    + [Error:9051(0x235b) OutConnection::EstablishSession outconnection.cpp:532 9116 C The content set is not ready]
    + [Error:9051(0x235b) OutConnection::EstablishSession outconnection.cpp:471 9116 C The content set is not ready]
    ---------------------------------------more troubleshooting-----------------------------
    I've done a lot of research on the Internet and most of it is pointing to the same stuff I've tried.  Does anyone have any other suggestions?  Maybe I need to look somewhere
    else on the server side or firewall side? 
    I tried replicating from a 2012 R2 server to another 2012 server and am getting the same events in the event log so maybe it's not a server issue. 
    Some other things I'm wondering:
    -Could it be the speed of the NICs?  Server A is a 2012 Server that has Hyper-V installed.  NIC teaming was initially setup and since Hyper-V is installed the NIC is a "vEthernet
    (Microsoft Network Adapter Multiplexor Driver Virtual Switch) running at a speed of 10.0Gbps whereas Server B is running a single NIC at 1.0Gbps
    -Could occasional ping timeout's cause the issue?  From time to time I get a timeout but it's not as often as the events I'm seeing.  I'm getting 53ms pings.  The folder
    is only 3 GB so it shouldn't take that long to replicate but it's been days.  The schedule I have set for replication is mostly all day except for our backup times which start at 11pm-5am.  Throughout the rest of the time I have it set anywhere from
    4Mbps to 64 Kbps.  Server A is on a 5mb circuit and Server B is on a 10mb circuit. 

    I'm seeing the same errors, all servers are running 2008 R2 x64. Across multiple sites, VPN is steady and reliably.
    185 events from 12:28:21 to 12:49:25
    Events are for all five servers (one per office, five total offices, no two in the same city, across three states).
    Events are not limited to one replication group. I have quite a few replication groups, so I don't know for sure but I'm running under the reasonable assumption that none are spared.
    Reminder from original post (and also, yes, same for me), the error is: Error: 1726 (The remote procedure call failed.)
    Some way to figure out what code triggers an Event ID 5014, and what code therein specifies an Error 1726, would extremely helpful. Trying random command line/registry changes on live servers is exceptionally unappealing.
    Side note, 1726 is referenced here:
    https://support.microsoft.com/kb/976442?wa=wsignin1.0
    But it says, "This RPC connection problem may be caused by an unstable WAN connection." I don't believe this is the case for my system.
    It also says...
    For most RPC connection problems, the DFS Replication service will try to obtain the files again without logging a warning or an error in the DFS Replication log. You can capture the network trace to determine whether the cause of the problem is at the network
    layer. To examine the TCP ports that the DFS Replication service is using on replication partners, run the following command in a
    Command Prompt window:
    NETSTAT –ANOBP TCP
    This returns all open TCP connections. The connections in question are "DFSRs.exe", which the command won't let you filter for.
    Instead, I used the NETSTAT command as advertised, dumping output to info.txt:
    NETSTAT -ANOBP TCP >> X:\info.txt
    Then I opened Excel and manually opened the .TXT for the open wizard. I chose fixed-width fields based on the first row for each result, and then added a column:
    =IF(A3="Can not", "Can not obtain ownership information", IF(LEFT(A3,1) = "[", A3&B3&C3, ""))
    Dragging this down through the entire file let me see that row (Row F) as the file name. Some anomalies were present but none impacted DFSrs.exe results.
    Finally, you can sort/filter (I sorted because I like being able to see everything, should I choose to) to get just the results you need, with the partial rows removed from the result set, or bumped to the end.
    My server had 125 connections open.
    That is a staggering number of connections to review, and I feel like I'm looking for a needle in a haystack.
    I'll see if I can find anything useful out, but a better solution would be most wonderful.

  • Function and procedure execution

    hi all,
    i have question in procedure execution and function execution oracle database.
    i want know that which is faster in execution procedure or function.
    can i see the time taken by procedure and select query
    i want to see only time not cpu cost or anything else.
    i am waiting for your responses...

    There is no difference in cost between whether something is a function or a procedure.
    The decision making should reflect usage only. For example you can not use a procedure in SQL.
    If you wish to break things down further focus on 10046 and 10053 tracing.
    Seeing time only is roughly equivalent to cutting off all of your fingers to see how something feels to your thumb.
    Timing is only one very small part of what you should be watching.

  • Sql server configuration manager remote procedure call failed(0x800706be)

    Hi,
    My Sql Server Management Studio working well. But When I open Sql server configuration manager I Got an error
    “Remote procedure call failed (0x800706be)”
    I tried Goggling the problem and solve it but I am not getting any valuable
    solution. Is anyone solve this problem
    I attach snap here
    MySql Server Details:
    Microsoft SQL Server 2008 R2 (RTM) - 10.50.1617.0 (X64) Developer Edition (64-bit) on Windows NT 6.1 <X64> (Build 7600: )

    This error appears to happen when .mof files (Managed Object Format (MOF)) don’t get installed and registered correctly during set-up. To resolve this issue, I executed
    the following mofcomp command in command prompt to re-register the *.mof files:
    mofcomp.exe "C:\Program Files (x86)\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof"
    Regards,
    Basit A. Farooq (MSC Computing, MCITP SQL Server 2005 & 2008, MCDBA SQL Server 2000)
    http://basitaalishan.com
    cau u pls tell me how to type this command on command prompt. I also have the same error in sql server 2008. I allready have sql server 2008 sp2 installed. When I was trying to type this command as it it by copying this full command to command prompt it
    shows that command not found as follows
    C:\>mofcomp.exe "C:\Program Files (x86)\Microsoft SQL Server\100\Shared\sqlmgmpr
    oviderxpsp2up.mof"
    Microsoft (R) MOF Compiler Version 6.1.7600.16385
    Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
    File 'C:\Program Files (x86)\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2
    up.mof' not found!
    please tell me step by step 
    thanks 
    nravhad

  • Sql server services give error the remote procedure call failed [0x800706be] in sql server 2008

    sql server services give error the remote procedure call failed [0x800706be] in sql server 2008.
    To resolve this issue, I executed the following mofcomp command in command prompt to re-register the *.mof files:
    mofcomp.exe "C:\Program Files (x86)\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof".
    but it does not work.
    Plz give the exact soln to solve this error.

    sql server services give error the remote procedure call failed [0x800706be] in sql server 2008.
    To resolve this issue, I executed the following mofcomp command in command prompt to re-register the *.mof files:
    mofcomp.exe "C:\Program Files (x86)\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof".
    but it does not work.
    Plz give the exact soln to solve this error.
    So when you tried starting SQL server service it gave the error right  ?  or when you click on SQL server services in SQL server configuration manager(SSCM) you get this error. Can you be more clear.  As far as I read your question it has something
    to do with permission. Close SSCM window and this time  right click on SQL server configuration manager and select run as administrator and check if you can see SQL server services
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Articles

  • Unable to automatically step into the server. the remote procedure cannot be debugged.

    Hi,
    I am trying to deploy report using ssis script c# code.I am using the proxy for ReportingService2010 and following code is giving the error.
    code:
    ReportingService2010 rs = new ReportingService2010();
    rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
    rs.CreateFolder("MSI Report Demo", "/", null);
    Error:
    unable to automatically step into the server. the remote procedure cannot be debugged. This usually indicates that debugging has not been enabled on the server.
    Please share the idea on it. 
    Thanks in advance.
    -Gautam

    just make a trust between to domain and it works .

Maybe you are looking for

  • How to alter the default profile for multiple users

    I am trying to alter the default profile assigned to users during user creation to a new profile. I know to change the profile for one user using the syntax alter user abc profile profileabc The issue I have is that there are 100's of users under def

  • LiveCycle and AD three questions.

    I have three Javascript questions.  1)     How would I go about finding the current domains which user is authenticated to.  What I need to do is have a form that can only be used while in certain domain. 2)     Would also like a way of populating a

  • OPMN failed to start  (but it seems running) during setup

    I got a warning during setup of Grid Control on new database )10g rel 2 (Linux). I tried to set on contnue and after setup OPMN starts (as during setup) but ./emctl start oms fails with unexpected error. Any suggestion? Thanks Fabio

  • HT5457 I can't get my screen to change again from vertical to landscape

    Can you walk me thru getting my ipad2 to change from vertical to landscape

  • The horror...

    for anyone whose tried to manage data files on an external hard drive using both a mac and pc they know the dismal truth. it can not be done easily... even with third party software the process *****... i eventually decided to format my 500 gig HD us