Error in the procedure while tried to increment the seq

Hello ,
I tried the following but giving the errors..
Plz help me in this..
CREATE OR REPLACE PROCEDURE Seq_inc AS
   vmaxarrec number(10);
   vseq number(10);
      select max(recid) into vmaxarrec from acc_rec;
      select SEQ_ACC_REC.currval into vseq from dual;
    BEGIN
      FOR i IN vseq .. vmaxarrec  LOOP
        select SEQ_ACC_REC.nextval  from dual;
      END LOOP;
    END ;And giving the following errors...
LINE/COL ERROR
4/7 PLS-00103: Encountered the symbol "SELECT" when expecting one of
the following:
begin function package pragma procedure subtype type use
<an identifier> <a double-quoted delimited-identifier> form
current cursor
The symbol "begin" was substituted for "SELECT" to continue.
11/9 PLS-00103: Encountered the symbol "end-of-file" when expecting
one of the following:
begin case declare end exception exit for goto if loop mod
null pragma raise return select update while with
LINE/COL ERROR
<an identifier> <a double-quoted delimited-identifier>
<a bind variable> << close current delete fetch lock insert
open rollback savepoint set sql execute commit forall merge
Thanks

smile wrote:
SQL> CREATE OR REPLACE PROCEDURE Seq_inc AS
2     vmaxarrec number(10);
3     vseq number(10);
4       
5      BEGIN   
6      select max(recid) into vmaxarrec from acc_rec;
7      select SEQ_ACC_REC.currval into vseq from dual;
8       
9        FOR i IN vseq .. vmaxarrec  LOOP
10          select SEQ_ACC_REC.nextval  from dual;
11        END LOOP;
12   
13      END ;
14  /
Warning: Procedure created with compilation errors.
SQL> sho err
Errors for PROCEDURE SEQ_INC:
LINE/COL ERROR
10/9     PLS-00428: an INTO clause is expected in this SELECT statementI tried with the above correction ..and still errorsIt looks to me like you're trying to reset the sequence number to a new starting value. In reality there's very little point in doing this, though I've come across a few test scenarios where it's good to start with the same sequence number each time.
The logic for changing a sequence to a particular value is along the lines of:
SQL> select test.nextval from dual;
   NEXTVAL
       125
SQL> var v_inc number;
SQL> var v_resetno number;
SQL> exec :v_resetno := 50;
PL/SQL procedure successfully completed.
SQL> exec execute immediate 'select -(test.nextval-:x)-1 from dual' into :v_inc using :v_resetno;
PL/SQL procedure successfully completed.
SQL> exec execute immediate 'alter sequence test increment by '||:v_inc;
PL/SQL procedure successfully completed.
SQL> select test.nextval from dual;
   NEXTVAL
        49
SQL> alter sequence test increment by 1;
Sequence altered.
SQL> select test.nextval from dual;
   NEXTVAL
        50
SQL> select test.nextval from dual;
   NEXTVAL
        51
SQL>Note: In your code you are reading the currval of the sequence before you know that you've read the nextval. That will give an error, because the currval is only known within the current session after a nextval has been obtained.
So, as a procedure, you want something like:
CREATE OR REPLACE PROCEDURE Seq_inc AS
  v_maxarrec number;
  v_inc      number;
  v_seq      number;
BEGIN   
  select max(recid)+1 into v_maxarrec from acc_rec; -- get the required sequence value
  select -(seq_acc_rec.nextval-v_maxarrec)-1 into v_inc from dual; -- determine the difference
  execute immediate 'alter sequence seq_acc_rec increment by '||v_inc; -- alter the sequence
  select seq_acc_rec.nextval into v_seq from dual; -- query the sequence to reset it
  execute immediate 'alter sequence seq_acc_rec increment by 1'; -- alter the sequence to increment by 1 again
END ;(+untested+)

Similar Messages

  • Error HTTP Status 500 - while trying to invoke the method java.util.Properties.entrySet() of a null object loaded from local variable 'globalProperties'

    Hi,
    I installed BI platform SBOP BI PLAT 4.1 and was able to log in to CMC and BI Launchpad. Post this, I installed SBOP DATA SERVICES 4.2 SP01 PATCH 3 WINDOWS 64B and am getting the above error while trying to open CMC and BI Launchpad.
    Please help

    Thanks Jawahar, re deploying web apps helped.

  • What does the error message -50 mean while trying to connect to the iTunes Store?

    I got this error message while trying to connect to the iTunes Store. -50. Does anyone know what that might mean? For almost two months I have been unable to use my iTunes with my iPod-because my iPod is not being recognized in iTunes. I have done every troubleshooting thing possible-including completely uninstalling and reinstalling iTunes, eight different times. Please help. Super frustrated.

    iTunes: "-50" alert when syncing your iOS device to iTunes 10.3
    iTunes displays -50 error message when syncing iPod on Windows XP
    "Error -50," "-5000," "8003," "8008," or "-42023"
    These alerts occur due to timeouts or conflicts trying to write a file during download.
    If you encounter this issue while accessing iTunes Store:
    See iTunes 9: "One Moment Please" or "Error (-50)" message when accessing iTunes Store
    If you encounter this issue while while downloading something from the iTunes Store:
    Delete your iTunes Downloads folder, located in:
    Mac OS X:
  ~/Music/iTunes/iTunes Media/Downloads   Note: "iTunes Media" may appear as "iTunes Music. Also, the tilde (~) refers to your Home directory.
    Windows Vista:
  \Users\username\Music\iTunes\iTunes Media\Downloads\
    Windows 7:
  \Users\username\My Music\iTunes\iTunes Media\Downloads\
    Windows XP:
  \Documents and Settings\username\My Documents\My Music\iTunes\iTunes Media\Downloads\
    After locating your iTunes Downloads folder:
    Quit iTunes.
    Delete the Downloads folder on your computer.
    Open iTunes.
    Choose Store > Check for Available Downloads.
    Enter your account name and password.
    If you encounter this issue while while downloading Digital Copies using Windows:
    Use MSCONFIG (directions for Windows XP and Windows Vista/Windows 7) to disable conflicting software.
    If using MSCONFIG steps resolves the issue, you may want to use the System Configuration Utility to turn on the third-party System Services and Startup Items one at a time (restarting your computer after turning on the item or items) to identify which System Service or Startup Item is causing the conflict.
    You can turn all of them back on by selecting the Normal Startup option under the General tab of the System Configuration Utility window, but please note that this may cause the issue to reoccur.
    If you are able to isolate the issue to a particular third-party software, you may wish to contact them to let them know of the conflict.

  • Getting error "Error connecting to MDEX" while trying to open micro browser

    Hi,
    I am using endeca Tools and framework 3.1.0 and MDEX 6.3.0.
    While trying to open micro browser from Workbench UI to create page template configurations,I am getting following message in popout:
    Error connecting to MDEX. The data service associated with this editor is not correctly configured.
    Please guide the if you have any clue.
    Thanks,
    Mayank Batra

    I have successfully configured RecordSpotlight editor to use a different endeca instance. What I did is modify apps\[your app name]\config\editors_config\services\dataservice.json file with updated endeca search configuration, save the file, and run apps\[your app name]\control\set_editros_config.bat to apply the change.
    To verify, you can run apps\[your app name]\control\export_site.bat command to export your site configuration, the updated data service config should show in the site xml file exported.
    Hope it helps,
    Michelle

  • Sender RFC adapter Error- request was null while trying to extract it.

    Hi All,
    I  have a scenario running in Production(PI 7.0 system) where SAP ECC sends RFC request through sender RFC adapter. The scenario was working fine but now I am getting the below error in default trace and I couldn't see any error in communication channel monitoring.
    java.lang.Exception: RfcServer[BAS_ECC_RFC_Snd]1[AFSenderD] request was <null> while trying to extract it.
    I have gone through the below thread and performed a full cache refresh but it didn't help :  
    [NULL]
    I have gone through SAP note:730870 and I couldn't get any help on this error. Can you please suggest your ideas to solve this issue.
    Thanks & Regards,
    Laawanya

    Hi Lawanya,
    Check you RFC and input data , whether the RFC call is able to get the data from ECC or not.
    you can test the same RFC in ECC with input data and you can check whether the RFC in ECC is return the value or not.
    I gues in your case the RFC in ECC is not return any data  to PI.

  • Getting linker error in Visual studio while trying to use class ActiveSelectionObserver

    I am trying to implement a selection observer. I am using public specifier to derive from class ActiveSelectionObserver and have included the header file SelectionObserver.h.
    But I am getting the below error from linker while trying to do that.
    Below is the my code:
    class CSDTSelectionObserverImpl : public ActiveSelectionObserver
    /* some code here**/
    Below is the linker error:
    CSDTSelectionObserverImpl.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl ActiveSelectionObserver::ActiveSelectionObserver(class IPMUnknown *,class IDType<struct PMIID_tag>)" (__imp_??0ActiveSelectionObserver@@QEAA@PEAVIPMUnknown@@V?$IDType@UPMIID_tag@@@@@Z) referenced in function "public: __cdecl CSDTSelectionObserverImpl::CSDTSelectionObserverImpl(class IPMUnknown *)" (??0CSDTSelectionObserverImpl@@QEAA@PEAVIPMUnknown@@@Z)

    Thanks Markus, this resolved the issue.
    I Included below in properties> linker>input>Additional dependencies
    $(ID_SDK_DIR)\build\win\objdx64\WidgetBin.lib
    But is there some documentation to get this information? as what all .lib are needed for a particular class etc?

  • Error on Control Center while trying to run jobs

    Hi,
    I got a problem while trying to run the scheduled jobs or process flows.
    We tried restarting the control center service manually. It is started without throwing any errors at the backend. But when I open the control center service and try to start or stop a job, its throwing the below error.
    The error is as below.
    ORA-20029: The control center service is not currently available
    ORA-06512: at "OWB_REPO.WB_RTI_EXCEPTIONS", line 107
    ORA-06512: at "OWB_REPO.WB_RTI_QUEUES", line 200
    ORA-25207: enqueue failed, queue OWB_REPO.WB_RT_SERVICE_QUEUE is disabled from
    enqueueing
    ORA-06512: at "OWB_REPO.WB_RTI_SERVICE_EXECUTION", line 548
    ORA-06512: at "OWB_REPO.WB_RTI_SERVICE_EXECUTION", line 619
    ORA-06512: at "OWB_REPO.WB_RT_EXECUTION_CONTROL", line 27
    ORA-06512: at line 1
    I am not able to resolve it. Could any one of you please help me in resolving it?
    It is very urgent. Thanks a ton in advance
    Regards,
    SriGP.

    Hi Oliver,
    Thanks again!!
    There are a lot of queues in DBA_Queues.
    But how can we know which queues should be enabled and which queues should be disabled? As I observed, All the Exception queues are disabled and the reamining queues are enabled.
    About the parameter aq_tm_processes, we have not changed the value of it. Previously, all the jobs used to execute perfectly with the same setting. So, I dont think the value is a problem.
    Recently, we had the below problem in database, because of which all the jobs got stalled/hanged. The system DBA had resolved this problem by extending the SYSTEM tablespace. After that all the database is fine except the OWB jobs. Is there any impact on the on the owb jobs because of the below error?
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01653: unable to extend table SYS.AUD$ by 8192 in tablespace SYSTEM
    ORA-02002: error while writing to audit trail
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01653: unable to extend table SYS.AUD$ by 8192 in tablespace SYSTEM
    Thanks in advance,
    SriGP.

  • Error 1604 on ipad while trying to restore

    trying to update my ipad & came up with error 1604 while trying to restore

    I also have the same error, updating for the first time. Tried restoring from backup but keeps giving me unknown error (6) or unknown error (13). Went to my local o2 shop and they advising me that it is something to do with my PC but i have tried this on my laptop also. Any help would be appreciated as my iphone is now stuck with just the apple logo and then turns to the usb cable with itunes logo

  • Error 11500:2,-14 while trying to update tax software

    I'm trying to install an update from H&R Block for CA state tax return, and get this error message:
    An error prevented the update from completing
    error 11500:2,-14
    Not sure if this is a problem with my mac or with their update -- I've tried several things with HRBlock to no avail.
    Thanks in advance for any insight.

    Hi Z, and welcome to Apple Discussions.
    Do you have at least 15% free space on your HD? Have you successfully run Repair Disk? If "no" to either, I would take care of that. If "yes" to both, read on.
    This error usually indicates a bad/failed update, which you know already. Try downloading and installing the update again. If that doesn't work, uninstall/trash the original app and install it from scratch, then download the update again and try installing it. If still no luck repeat the process while booted into Safe Mode.

  • I get the following error in Disk Utility while trying to repair permiss...

    http://img80.imageshack.us/img80/9639/picture1xp1.png
    Here's the error.

    try running "sudo periodic daily weekly monthly"
    at the terminal
    then reboot.
    made mine snappy again.
    (i posted this in the thread about the problems with system speed after install, but i figured here couldn't hurt as well.)

  • Error in stored procedure while using dbms_datapump for transportable

    Hi,
    I'm facing following issue:
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE 10.2.0.4.0 Production
    TNS for Solaris: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    ====================================================================================
    I'm trying to do transportable tablespace through stored procedure with help of DBMS_DATAPUMP, Following is the code :
    ==================================================================================
    create or replace
    procedure sp_tts_export(v_tbs_name varchar2) as
    idx NUMBER; -- Loop index
    JobHandle NUMBER; -- Data Pump job handle
    PctComplete NUMBER; -- Percentage of job complete
    JobState VARCHAR2(30); -- To keep track of job state
    LogEntry ku$_LogEntry; -- For WIP and error messages
    JobStatus ku$_JobStatus; -- The job status from get_status
    Status ku$_Status; -- The status object returned by get_status
         dts           varchar2(140):=to_char(sysdate,'YYYYMMDDHH24MISS');
         exp_dump_file varchar2(500):=v_tbs_name||'_tts_export_'||dts||'.dmp';
         exp_log_file varchar2(500):=v_tbs_name||'_tts_export_'||dts||'.log';
         exp_job_name varchar2(500):=v_tbs_name||'_tts_export_'||dts;
         dp_dir varchar2(500):='DATA_PUMP_DIR';
         log_file UTL_FILE.FILE_TYPE;
         log_filename varchar2(500):=exp_job_name||'_main'||'.log';
         err_log_file UTL_FILE.FILE_TYPE;
         v_db_name varchar2(1000);
         v_username varchar2(30);
         t_dir_name VARCHAR2(4000);
    t_file_name VARCHAR2(4000);
    t_sep_pos NUMBER;
         t_dir varchar2(30):='temp_0123456789';
         v_sqlerrm varchar2(4000);
    stmt varchar2(4000);
         FUNCTION get_file(filename VARCHAR2, dir VARCHAR2 := 'TEMP')
    RETURN VARCHAR2 IS
    contents VARCHAR2(32767);
    file BFILE := BFILENAME(dir, filename);
    BEGIN
              DBMS_LOB.FILEOPEN(file, DBMS_LOB.FILE_READONLY);
              contents := UTL_RAW.CAST_TO_VARCHAR2(
    DBMS_LOB.SUBSTR(file));
              DBMS_LOB.CLOSE(file);
              RETURN contents;
         END;
    begin
    --execute immediate ('drop tablespace test including contents and datafiles');
    --execute immediate ('create tablespace test datafile ''/home/smishr02/test.dbf'' size 10m');
    --execute immediate ('create table prestg.test_table (a number) tablespace test');
    --execute immediate ('insert into prestg.test_table values (1)');
    --commit;
    --execute immediate ('alter tablespace test read only');
    --dbms_output.put_line('11111111111111111111');
    dbms_output.put_line(log_filename||'>>>>>>>>>>>>>>>>>>>>>>>>>>>'|| dp_dir);
    log_file:=UTL_FILE.FOPEN (dp_dir, log_filename, 'w');
    UTL_FILE.PUT_LINE(log_file,'#####################################################################');
    UTL_FILE.PUT_LINE(log_file,'REPORT: GENERATED ON ' || SYSDATE);
    UTL_FILE.PUT_LINE(log_file,'#####################################################################');
    select global_name,user into v_db_name,v_username from global_name;
    UTL_FILE.PUT_LINE(log_file,'Database:'||v_db_name);
    UTL_FILE.PUT_LINE(log_file,'user running the job:'||v_username);
    UTL_FILE.PUT_LINE(log_file,'for tablespace:'||v_tbs_name);
    UTL_FILE.NEW_LINE (log_file);
    stmt:='ALTER TABLESPACE '||v_tbs_name || ' read only';
    dbms_output.put_line('11111111111111111111'||stmt);
    execute immediate (stmt);
    UTL_FILE.PUT_LINE(log_file,' '||v_tbs_name || ' altered to read only mode.');
    UTL_FILE.NEW_LINE (log_file);
    UTL_FILE.PUT_LINE(log_file,'#####################################################################');
    UTL_FILE.NEW_LINE (log_file);
    UTL_FILE.PUT_LINE(log_file,' Initiating the Datapump engine for TTS export..............');
    UTL_FILE.NEW_LINE (log_file);
    dbms_output.put_line('11111111111111111111');
    JobHandle :=
    DBMS_DATAPUMP.OPEN(
    operation => 'EXPORT'
    *,job_mode => 'TRANSPORTABLE'*
    *,remote_link => NULL*
    *,job_name => NULL*
    --,job_name => exp_job_name
    --        ,version => 'LATEST'
    UTL_FILE.PUT_LINE(log_file,'Done');
    UTL_FILE.NEW_LINE (log_file);
    UTL_FILE.PUT_LINE(log_file,' Allocating dumpfile................');
    DBMS_DATAPUMP.ADD_FILE(
    handle => JobHandle
    ,filename => exp_dump_file
    ,directory => dp_dir
    ,filetype => DBMS_DATAPUMP.KU$_FILE_TYPE_DUMP_FILE
    -- ,filesize => '100M'
    UTL_FILE.PUT_LINE(log_file,'Done');
    UTL_FILE.NEW_LINE (log_file);
    UTL_FILE.PUT_LINE(log_file,' Allocating logfile................');
    DBMS_DATAPUMP.ADD_FILE(
    handle => JobHandle
    ,filename => exp_log_file
    ,directory => dp_dir
    ,filetype => DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE
    UTL_FILE.PUT_LINE(log_file,'Done');
    UTL_FILE.NEW_LINE (log_file);
    UTL_FILE.PUT_LINE(log_file,' Setting attributes................');
    DBMS_DATAPUMP.set_parameter(handle => JobHandle,
    name=>'TTS_FULL_CHECK',
    value=>1);
    DBMS_DATAPUMP.METADATA_FILTER(
    handle => JobHandle
    ,NAME => 'TABLESPACE_EXPR'
    ,VALUE => 'IN ('''||v_tbs_name||''')'
    -- ,object_type => 'TABLE'
    UTL_FILE.PUT_LINE(log_file,'Done');
    UTL_FILE.NEW_LINE (log_file);
    UTL_FILE.PUT_LINE(log_file,' Now starting datapump job................');
    DBMS_DATAPUMP.START_JOB(JobHandle);
    UTL_FILE.PUT_LINE(log_file,'Done');
    UTL_FILE.NEW_LINE (log_file);
    UTL_FILE.PUT_LINE(log_file,' Monitoring the job................');
    --------------Monitor the job
    PctComplete := 0;
    JobState := 'UNDEFINED';
    WHILE(JobState != 'COMPLETED') and (JobState != 'STOPPED')
    LOOP
    DBMS_DATAPUMP.GET_STATUS(
    handle => JobHandle
    ,mask => 15 -- DBMS_DATAPUMP.ku$_status_job_error + DBMS_DATAPUMP.ku$_status_job_status + DBMS_DATAPUMP.ku$_status_wip
    ,timeout => NULL
    ,job_state => JobState
    ,status => Status
    JobStatus := Status.job_status;
    -- Whenever the PctComplete value has changed, display it
    IF JobStatus.percent_done != PctComplete THEN
    DBMS_OUTPUT.PUT_LINE('*** Job percent done = ' || TO_CHAR(JobStatus.percent_done));
    PctComplete := JobStatus.percent_done;
    END IF;
    -- Whenever a work-in progress message or error message arises, display it
    IF (BITAND(Status.mask,DBMS_DATAPUMP.ku$_status_wip) != 0) THEN
    LogEntry := Status.wip;
    ELSE
    IF (BITAND(Status.mask,DBMS_DATAPUMP.ku$_status_job_error) != 0) THEN
    LogEntry := Status.error;
    ELSE
    LogEntry := NULL;
    END IF;
    END IF;
    IF LogEntry IS NOT NULL THEN
    idx := LogEntry.FIRST;
    WHILE idx IS NOT NULL
    LOOP
    DBMS_OUTPUT.PUT_LINE(LogEntry(idx).LogText);
    idx := LogEntry.NEXT(idx);
    END LOOP;
    END IF;
    END LOOP;
         --copy the datafiles to data dump dir     
         UTL_FILE.PUT_LINE(log_file,'Done');
    UTL_FILE.NEW_LINE (log_file);
    UTL_FILE.PUT_LINE(log_file,' Copying datafiles to dump directory................');
    -- grant select on dba_directories to prestg;
    declare
    cnt number;
    begin
    select count(*) into cnt from dba_directories
    where directory_name=upper(t_dir);
    if cnt=1 then
    execute immediate('DROP DIRECTORY '||t_dir);
    end if;
    end;
         FOR rec in (select file_name from sys.dba_data_files where tablespace_name=v_tbs_name)
         LOOP
         t_sep_pos:=instr(rec.file_name,'/',-1);
    t_dir_name:=substr(rec.file_name,1,t_sep_pos-1);
    t_file_name:=substr(rec.file_name,t_sep_pos+1,length(rec.file_name));
    dbms_output.put_line(t_dir_name|| ' ' || t_dir);
    dbms_output.put_line(t_file_name);
         execute immediate('CREATE DIRECTORY '||t_dir||' AS '''||t_dir_name||'''');
         UTL_FILE.PUT_LINE(log_file,' Copying '||rec.file_name||'................');
         utl_file.fcopy(t_dir, t_file_name, dp_dir, t_file_name);
         UTL_FILE.PUT(log_file,'Done');
         execute immediate('DROP DIRECTORY '||t_dir);
         END LOOP;
    UTL_FILE.NEW_LINE (log_file);
    UTL_FILE.PUT_LINE(log_file,' Altering tablespace to read write................');
         execute immediate ('ALTER TABLESPACE '||v_tbs_name || ' read write');
    UTL_FILE.PUT(log_file,' Done');
         err_log_file:=utl_file.fopen(dp_dir, exp_log_file, 'r');
         UTL_FILE.NEW_LINE (log_file);
    UTL_FILE.PUT_LINE(log_file,' content of export logfile................');
         loop
    begin
         utl_file.get_line(err_log_file,v_sqlerrm);
         if v_sqlerrm is null then
         exit;
         end if;
         UTL_FILE.PUT_LINE(log_file,v_sqlerrm);
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    EXIT;
    END;
         end loop;
              utl_file.fclose(err_log_file);
    utl_file.fclose(log_file);
    END;
    I'm getting following error when DBMS_DATAPUMP.OPEN is called in procedure:
    SQL> exec sp_tts_export('TEST');
    BEGIN sp_tts_export('TEST'); END;
    ERROR at line 1:
    ORA-31626: job does not exist
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79
    ORA-06512: at "SYS.DBMS_DATAPUMP", line 938
    ORA-06512: at "SYS.DBMS_DATAPUMP", line 4566
    ORA-06512: at "PRESTG.SP_TTS_EXPORT", line 78
    ORA-06512: at line 1
    ==============================================================================================
    This procedure is part of user ABC. I'm getting the above when I'm running this under ABC schema. However I have tested the same procedure under sys schema. When I'm creating same procedure in SYS schema it is running fine. I am clueless on this. Pls help
    Thanks
    Shailesh
    Edited by: shaileshM on Jul 28, 2010 11:15 AM

    Privileges acquired via ROLE do NOT apply within named PL/SQL procedures.
    Explicit GRANT is required to resolve this issue.

  • Error 406 access denied while trying to Add Windows 2008 HV host in SCVMM 2008.

    I am trying to add Windows 2008 HV host in SCVMM 2008. While adding host i am getting error message...
    Error (406)
    Access
    has been denied while contacting the server <server name>. 
    Recommended
    Action
    1.
    Verify that the specified user account has administrative privileges on <server name>.
    2.
    Verify that DCOM access, launch, and activation permissions are enabled on <server name> for the Administrators group. Use dcomcnfg.exe to modify
    permissions, and then try the operation again.
    I have already done DCOM security modification for my user. I am able to RDP or any file sharing HV host from SCVMM machine. My user is member of local administrator for both the machines. 
    Before that i have added one Windows 2008 HV (Core) successfully and 2 ESX host in same SCVMM machine. 
    Any Help would be greatly appreciated.
    vaibhav

    Has anyone found a fix for this? I've been troubleshooting this issue for 4 days now. I've unjoined/rejoined the host to the domain, deleted SCVMM certificate, given permissions (out the wahzoo) in COM/Access Permissions, all updates installed, firewall
    is off (I even tried turning it on and configuring program/port access), I've tried with 3 different domain accounts that are a member of the local Administrators group.
    The other day I managed to get the host added (don't ask me how) but then all the VM's were in status 'Host not responding' so I couldn't even manage them. So I removed it and now can't get the host added again. I'm using SCVMM 2008 R2 SP1 and the problem
    host is Server 2008 R2 SP1 x64.
    Error (406)
    Access has been denied while contacting the server xxxxxxxx.domain.com.  
    Recommended Action
    1. Verify that the specified user account has administrative privileges on xxxxxxx.domain.com.
    2. Verify that DCOM access, launch, and activation permissions are enabled on xxxxxxx.domain.com for the Administrators group. Use dcomcnfg.exe to modify permissions, and then try the operation again.
    I was getting this error after I got the host added:
    Error (2910)
    VMM does not have appropriate permissions to access the resource C:\Windows\system32\qmgr.dll on the xxxxxxxx.domain.com server.
     (Access is denied (0x80070005))
    Recommended Action
    Ensure that Virtual Machine Manager has the appropriate rights to perform this action.

  • HT201210 error 21 comes up while trying to restore iphone 4?

    WHILE KEEP TRYING TO RESTORE MY IPHONE 4 IT KEEPS SAYING ERROR 21 AFTER ITUNES EXTRACTS SOFTWARE TUNRS OFF AND ON BACK SHOWS APPLE LOGO THAN GOES BACK TO THE ITUNES SCREEN WITH THE CHARGER LOGO, WHAT CAN I DO? ANY BODY KNOW? PLEASE  LET ME KNOW, THANKS. NOT SURE OF THE OPERATING SYSTEM BUT THINK IT IS IOS 7.1 OR 7..0.6

    From TS3694 Resolve Specific iTunes update and restore errors:
    Check for hardware issues
    Related errors: 1, 3, 10-47, 1002, 1011, 1012, 1014, 1000-1020, 1669.
    Try to restore your iOS device two more times while connected with a cable, computer, and network you know are good. Also, confirm your security software and settings are allowing communication between your device and update servers. If you still see the error message when you update or restore, contact Apple support.

  • OSStatus error -108 in QuickTime while trying to record my desktop.

    I am getting 'OS Status error -108' in QuickTime (v10) while I am trying to record my desktop.  I get this error as soon as I hit the record button.
    Anybody know what this could be? How to fix?

    OK just zapped the PRam, no Cigar.
    Personally, I did not think it would help. (As previously noted, I tend to agree with those who consider this more of a "contiguous" memory problem.)
    see the 10.6.8 was installed freshly about 3 weeks ago.  this MM functions as a server doing faxes, answering machine, print server and a few emails a day (iMovie is not even installed neither is Flip4Mac).  so it is not like in heavy use.  so I fail to see how their can be fragmentation.
    Did you "wipe" the drive prior to your install? If not, there is the possibility of carryover fragmentation. I just checked my startup drive and found 709,236 of 1,991,704 items out of optimum order (36%) since my last routine maintainence optimization, drive mechanics test, and general "dusting & cleaning" exercise. Here is the graph:
    Of course, I may process an average of 100 GBs to 200 GBs of data during a typical day of copying, converting, and storing video content. (Yesterday was a non-typical day since I had to "panic" backup 597 GBs of DVD images from one RAID drive to another because one array appeared to require reformatting following its latest firmware and dashboard updates. This was in the middle of copying a season of TV shows to my internal drive, converting them for TV use, adding them to my iTunes library, inserting metadata, and proofing the results. In any case, it appears my DroboPro will survive after all since I discovered this morning that the dashboard installer app as released by manufacturer support was probably faulty. (I.e., the embedded PKG file embedded within the installer application was opening Pacifist for installation rather than the Mac OS Installer.app as it should have done. In any case, I extracted the installer package from the app file, corrected the problem, and ran the PKG file manually to save the need of backing up another 7 TBs of data over the next week.)
    In any case, to get back to your problem... It may be a good idea to simply see if you can find a program that will graph, disply, or otherwise reveal your current state of fragmentation. If the disk is not fragmented, then you can continue your search for an alternative solution. If it is highly fragmented, then you can try the defragmentation option and see it it works. In either case, it may help others if you post your results here for further review.
    Best of luck...

  • Error: 1 ... while trying to open a PDF

    I have Adobe Creative Cloud and have used Acrobat XI Pro before on this computer (Mac Yosemite). Today when I try to run it, I get a configuration error. It says to uninstall and reinstall the product. However, while the desktop app shows the app, when I click the Uninstall, it just says, "waiting" then "0%". Then back to normal. Still showing installed. And there is no folder in the applications/whatever/uninstall place so I can't run uninstall that way. How do I uninstall Acrobat Pro if its not actually on my system (for whatever reason). Or the uninstall program isn't.
    When I search for it using Spotlight Search it says I have 11.0.09. And I cannot upgrade.
    What do I need to kill to register that I don't actually have it installed, then reinstall it so I can actually use it?
    Thanks.

    All,
    First, thanks for the help and input.
    Second, I finally figured it out. I have an old mirror drive that still had Acrobat and other Adobe apps on it. My system was looking at that and deciding Acrobat was still installed but since it was not on my main hard drive, it couldn't find it to uninstall it. I'd like to say my Mac is stupid for not figuring it out, but I guess I'm stupider for not figuring it out, either.
    But, I deleted EVERYTHING off all drives and am reinstalling all my Adobe apps now. Even Acrobat (which I installed first) works perfectly.
    Moral of the story for anyone else having this issue ... check ALL your drives for any copies of Adobe stuff and delete!
    Thanks again to all 'cause I used all the tools you pointed to in order to clean all my drives. Much appreciated.
    Best,
    Rich

Maybe you are looking for

  • How do I find a file on a network drive?

    I cannot seem to get Spotlight to search on my network drive. There is a file on my network drive and I simply cannot find it. What is the secret?

  • In which Oracle version is that possibile?

    I've tried to create these procedure that I've found. CREATE OR REPLACE PROCEDURE genlookup (tab IN VARCHAR2, col IN VARCHAR2) IS BEGIN pl ('CREATE OR REPLACE FUNCTION ' || l_ltab || '_row_for ('); pl (' ' || l_lcol || '_in IN ' || l_ltab || '.' || l

  • JDBC for Oracle 8i (8.1.5)in JRE 1.2

    I'm trying to connect to Oracle 8i dbms (8.1.5) thru an applet. In JDeveloper 2.0 environment (with JDK1.2) it works fine, but at netscape 4.5 with JRE plug-in version 1.2, it throws an exception from oracle connection "No Suitable Drive". I've read

  • JMS - Oracle - ArchieveLog

    Welcome,           Digital World!!!           Everything is limited, even "random" produces periodic sequence...           Is here any advice to Senior Oracle DBAs not to use ArchiveLog for JMS           Schema?           Today, I had 2500msg/min., e

  • Invoking Servlets in Flash MX

    Hello, I'm new here.. and hope some kind souls would help me out here? Our project scope My friend and I are working on this Flash application that retrieves data from a IBM DB2 database and displays it. We read somewhere that Flash can't connect dir