Error (or at least confused statements) in the Security Guide 12.1

On Page 4-16 under the creation of a common role, one paragraph reads:

Set the CONTAINER clause at ALL. In most cases, the omission of this clause of the CREATE ROLE statement or affecting the CURRENT creates the role as a local role and applies it to the current PDB only. However, if you are connected to the root and omit the clause CONTAINER, then by default the role is created as a common role, not a local role. You can create common roles in the root.

The first part of that paragraph says (or implies at least) that the creation of a role when you are connected to a file PDB will create a role is the CONTAINER is set to ALL.  The last sentence says that you can create common roles in the root. The implication is that you can create common roles only for the connection to the root, which would invalidate the prior statements.

Hi Matthew,

Thanks for catching that error, and I apologize for the confusion! To create a common role, you must be at the root. I reworked the article to say the following:

To create a common role, follow these rules:

  • Make sure that you are in the root. You cannot create the common roles of a PDB file. To check if you are in the root, run the command con_name show. The output should indicate that you are at the root (CBD$ ROOT).
  • Make sure that the name you give begin of joint role with c# # or c# and contain only EDCDIC or ASCII characters. Note that this requirement does not apply to the names of existing roles provided by Oracle, such as DBA or RESOURCE rights.
  • Optionally, set the CONTAINER clause at ALL. As long as you are in the root, if you omit setting the CONTAINER = ALL clause, then by default, the role is created as a common role.

Thank you

Pat Huey

Tags: Oracle

Similar Questions

  • error ORA-4068:-l' current state of the package is invalidated

    Hai friends,

    Please see this link

    Problem we faced, it is ' error ora-4068:-l' current state of the package is disabled "in the application.initiallly of customer, we migrated to oracle 9i and 10g 10.2.0.4.0

    We have discussed and obtained the solution as the timestamp of the objects may be different. (we expect the access rights of the table sys.obj$) pls see the link

    Re: oracle error-4068

    But now we are informed senior as below

    (1) error ora-4068 will come only when recompile us the view. is this true?

    (2) 6136074 bug is fixed in 10.2.0.4.0. is it?

    Gurus of give your valuable suggestions

    S

    Packages tend to fail because of their 'package '. A package has a 'State' when it contains the package variable and constant level etc. and the package is called. On the first calling package, the 'State' is created in memory to hold the values of these variables, etc. If an object including the package depends on for example a table is changed somehow example deleted and recreated due to data dependencies, the package then takes a State not VALID. When you do then appealed to the package, Oracle examines the status and see that it is not valid, then determines that the package has a "State". Because something changed the package depended on, the State is taken as being obsolete and is ignored, which causes the error "State package has been abandoned" message.

    If a package has no variables of level package etc. i.e. the 'State' and then, taking the same example above, the whole takes an INVALID state, but when you make then a call to the package, Oracle considers as invalid, but knows that there is no 'State' attached to it and is therefore able to recompile the package automatically and then continue execution without causing error messages. The only exception here is if the thing that the package was dependent on a change of such kind that the package may not compile, in which case you will get an invalid error package type.

    And if you want to know how we prevent Jetty package States...

    Move all variables and constants in a stand-alone package specification and to refer to those of your original package. So when the status of your original packing is invlidated for some reason, it has no State package and can be recompiled automatically, however the packaging containing the vars/const is not cancelled because it has no dependencies, so the State that is in memory for this package will remain and may continue to be used.

    As for package-level sliders, you will need to make these premises to the procedures/functions using them as you won't be able of sliders reference in all of packages like that (not sure on the use of the REF CURSOR but... exists for me to study!)

    This first example shows the State being disabled by adding a new column on the table and causing to give a 'Package State scrapped' error...

    SQL> set serveroutput on
    SQL>
    SQL> create table dependonme (x number)
      2  / 
    
    Table created.
    
    SQL>
    SQL> insert into dependonme values (5)
      2  / 
    
    1 row created.
    
    SQL>
    SQL> create or replace package mypkg is
      2    procedure myproc;
      3  end mypkg;
      4  / 
    
    Package created.
    
    SQL>
    SQL> create or replace package body mypkg is
      2    v_statevar number := 5; -- this means my package has a state
      3
      4    procedure myproc is
      5      myval number;
      6    begin
      7      select x
      8      into myval
      9      from dependonme;
     10
     11      myval := myval * v_statevar;
     12      DBMS_OUTPUT.PUT_LINE('My Result is: '||myval);
     13    end;
     14  end mypkg;
     15  / 
    
    Package body created.
    
    SQL>
    SQL> exec mypkg.myproc
    My Result is: 25
    
    PL/SQL procedure successfully completed.
    
    SQL>
    SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
      2  / 
    
    OBJECT_NAME
    --------------------------------------------------------------------------------------------------
    OBJECT_TYPE         STATUS
    ------------------- -------
    MYPKG
    PACKAGE             VALID
    
    MYPKG
    PACKAGE BODY        VALID
    
    SQL>
    SQL>
    SQL> alter table dependonme add (y number)
      2  / 
    
    Table altered.
    
    SQL>
    SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
      2  / 
    
    OBJECT_NAME
    --------------------------------------------------------------------------------------------------
    OBJECT_TYPE         STATUS
    ------------------- -------
    MYPKG
    PACKAGE             VALID
    
    MYPKG
    PACKAGE BODY        INVALID
    
    SQL>
    SQL> exec mypkg.myproc
    BEGIN mypkg.myproc; END;
    
    *
    ERROR at line 1:
    ORA-04068: existing state of packages has been discarded
    ORA-04061: existing state of package body "SCOTT.MYPKG" has been invalidated
    ORA-06508: PL/SQL: could not find program unit being called: "SCOTT.MYPKG"
    ORA-06512: at line 1
    
    SQL>
    SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
      2  / 
    
    OBJECT_NAME
    --------------------------------------------------------------------------------------------------
    OBJECT_TYPE         STATUS
    ------------------- -------
    MYPKG
    PACKAGE             VALID
    
    MYPKG
    PACKAGE BODY        INVALID
    
    SQL>
    SQL> exec mypkg.myproc
    
    PL/SQL procedure successfully completed.
    
    SQL>
    SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
      2  / 
    
    OBJECT_NAME
    --------------------------------------------------------------------------------------------------
    OBJECT_TYPE         STATUS
    ------------------- -------
    MYPKG
    PACKAGE             VALID
    
    MYPKG
    PACKAGE BODY        VALID
    

    And the following example shows how to get the package in their own specifications of package variables, allows the package to automatically recompile when it is called even if it has become invalid by the action to add a column to the table.

    SQL> drop table dependonme
      2  / 
    
    Table dropped.
    
    SQL>
    SQL> drop package mypkg
      2  / 
    
    Package dropped.
    
    SQL>
    SQL> set serveroutput on
    SQL>
    SQL> create table dependonme (x number)
      2  / 
    
    Table created.
    
    SQL>
    SQL> insert into dependonme values (5)
      2  / 
    
    1 row created.
    
    SQL>
    SQL> create or replace package mypkg is
      2    procedure myproc;
      3  end mypkg;
      4  / 
    
    Package created.
    
    SQL>
    SQL> create or replace package mypkg_state is
      2    v_statevar number := 5; -- package state in seperate package spec
      3  end mypkg_state;
      4  / 
    
    Package created.
    
    SQL>
    SQL> create or replace package body mypkg is
      2    -- this package has no state area
      3
      4    procedure myproc is
      5      myval number;
      6    begin
      7      select x
      8      into myval
      9      from dependonme;
     10
     11      myval := myval * mypkg_state.v_statevar;  -- note: references the mypkg_state package
     12      DBMS_OUTPUT.PUT_LINE('My Result is: '||myval);
     13    end;
     14  end mypkg;
     15  / 
    
    Package body created.
    
    SQL>
    SQL> exec mypkg.myproc
    My Result is: 25
    
    PL/SQL procedure successfully completed.
    
    SQL>
    SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
      2  / 
    
    OBJECT_NAME
    --------------------------------------------------------------------------------------------------
    OBJECT_TYPE         STATUS
    ------------------- -------
    MYPKG
    PACKAGE             VALID
    
    MYPKG
    PACKAGE BODY        VALID
    
    SQL>
    SQL> alter table dependonme add (y number)
      2  / 
    
    Table altered.
    
    SQL>
    SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
      2  / 
    
    OBJECT_NAME
    --------------------------------------------------------------------------------------------------
    OBJECT_TYPE         STATUS
    ------------------- -------
    MYPKG
    PACKAGE             VALID
    
    MYPKG
    PACKAGE BODY        INVALID
    
    SQL>
    SQL> exec mypkg.myproc
    My Result is: 25
    
    PL/SQL procedure successfully completed.
    
  • My Vista computer will not be stopped, randomly freezes and gives error Logon process has failed to create the security options dialog

    I have a laptop that has recently (in the last month) developed several questions. These issues are: computer does not, get the logon error message failed to create the dialog box options security when I hit Ctrl alt delete, computer hangs when more then another program is open. How can I solve them? My system is Vista Home premium 32 bit any help is appreciated.

    * original title - several issues need help *.

    Hello

    I forgot to include which could help with the connection of safety problem:

    How to restore the security settings to a known working state?
    (For Vista and XP)
    http://support.Microsoft.com/kb/313222

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • Error: Initiator has tried to get around the security phase, but we cannot

    Hello

    I started working on the new company and tonight we lost storage for about an hour and mistakes came:

    SAN1 storage array error event
    subsystem: MgmtExec
    event: 7.4.3
    time: Sun Apr 21 00:58:18 2013
    "connection iSCSI to target '10.10.10.21:3260, iqn.2001-05.com.equallogic:4-52aed6-cb0bdf198-eee0000000c50212-vss-control' initiator ' 10.10.10.22:53396, iqn.1991 - 05.com.microsoft:sp2 - vm - sql2.company.local' failed for the following reason:
    Initiator has tried to circumvent the security phase, but we cannot.

    On windows this evening first errors began:

    EventID: 4025
    Source: EqualLogic
    connection error iSCSI 0xefff0009 connecting to the vss-control for the 10.10.10.41 group volume

    Event ID: 10
    Source: iScsiPrt
    Logon request failed. The login response packet is given in the dump data.

    These errors I see repetition of the past in the Windows event log.

    It is hyper-v virtual SQL cluster with iSCI Dell storage connection.

    How to solve this problem?

    Thank you

    Hello

    Vss control volume, which is used my MS Volume Shadow service to access the clichés of material, there's a GUY configured username. However, the initiator does not send a name of user and password c...

    If you use the EQL TYPING kit, then you should allow these servers access to this volume.  Or change the ACL on this volume to allow that the servers that need to access.

    Alternatively, you can remove it from the Favorites tab, so that he tries to log in the next time the server starts.

    Finally, you can enable the discovery of prevnet filter this of is re - produce.

    Here is a KB from the Equallogic Web site.

    Solution title error: "initiator wanted to ignore the security phase but we can not." or "initiator has tried to circumvent the security phase but we cannot."

    Symptom of solution of details: event on the web interface of PS log table shows a connection error for a volume that says: "initiator wanted to ignore the security phase but we cannot." This error can be repeated continuously every few seconds.

    Question: by default, volumes that have enabled CHAP authentication will be shown during the process of iSCSI discovery even if the initiator does not have the authentication information c. Discovery is controlled by its address IP ACL, so if a machine matches the IP address of the ACL scope, we will see the volume. Note that multiple initiators such as those that are unix based as the initiator of the Cisco software that uses VMWare will continue to attempt to connect to the target (often, every two seconds), even if each connection attempt fails. This can fill the paper and the performance of the server can have an impact.

    Solution: Limit the discovery of volumes CHAP authenticated by IP address and ensure that only servers with appropriate credentials CHAP can observe the volume at all.

    The most common volume to see this error on is the special volume named "vss control." This volume is for communication with Microsoft's VSS service, using EqualLogic host integration tools. If it is configured for unlimited access, or is configured for the CHAP only, then each initiator on the SAN will be able to find out and may attempt to use it. Set ACL "vss-admin" to enter an IP address for each machine that needs to access, to ensure that no one else does.

    For firmware version 2.2.3 and, before going to the volume named 'vss-control', select the Access tab and change the entries here in a proper way.

    For the later version 2.3.2 (including all versions 3.X) firmware, go to the Configuration Group box and select the VSS/VDS. It's the ACL for the vss-control volume, which you should change as appropriate.

    It may be necessary to restart servers that try to access this volume after changing the ACLs, however. Some initiators do not release a target once they have discovered, even though the table indicates that the target does not exist. An example of this are ESX servers, using the software initiator.

    A second scenario may be a volume that is configured to be seen from in a VMWare server VM Windows using CHAP credentials and also install on the table to use a single connection Cap. Even if the credentials CHAP is setup correctly on each side if the ESX Server uses the software initiator that ESX will attempt to connect to the volume permanently every minutes or seconds depending on factors both. With configuration to several volumes in this way, it can be a drain on performance on ESX.

    To troubleshoot this scenario make sure to activate the iSCSI discovery of the IUG table of PS filter. This is done from the Group/iSCSI Configuration tab. check the box off and save the configuration using the Green disk icon in the upper right of the graphical interface. This makes the servers with the initiators that are correctly setup to see a volume with CHAP will see and try to connect to these volumes. Note: once an ESX Server has seen a volume to continue to try to connect with the software initiator until the ESX Server is restarted after this option is turned on.

    Note that, since the version of the firmware 3.0.5 and later, you can require authentication for CHAP-enabled volumes during discovery, by issuing the command in the CLI:

    GroupName > enable discovery-use-chap grpparams

    Kind regards

  • get an error to remove and update statement using the escape char

    for the following statement:
    Order of UPDATE
    A DATE = NULL
    WHERE
    circuit AS in_service_id | '------%' ESCAPE ' \'
    AND ord_id = "ORD1."

    getting below error:

    ORA-01424: missing or illegal character that follows the escape character

    any suggestions?

    Assuming that in_service_id is a variable

    The value of the variable can have any value that is having '-' char, this statement will give error.

    This can help.

    Order of UPDATE
    A DATE = NULL
    WHERE
    circuit AS replace(in_service_id,'\','\\') | '------%' ESCAPE ' \'
    AND ord_id = "ORD1."

  • Error: No mapping between account and the security of ID names was done when trying to setup of Dragon NaturallySpeaking 10.

    Original title: no mapping between account and the security of ID names was done.

    I am trying to set up my Dragon NaturallySpeaking 10 program. My computer (Dell Studio 1550 on Win 7 64 bit) has been recently reset and during the reinstallation of the DNS and the subsequent fine adjustment, I came across a page that wanted my username and admin password.. I plugged in and it came up with the error message: "no mapping between account and the security of ID names has been done." There is one account on my computer and my admin. account. If something has been lost in resetting? How can I fix / security ID card? Thank you for your help.

    Hi Hasky620,

    I recommend you contact the support of Dragon NaturallySpeaking for assistance:

    http://www.nuance.com/support/index.htm

  • Location of the color Guide?

    I read somewhere on the color Guide to set up the shades and hues ? Where can I find the color guide because it is supposed to be a guide to recolor function to breast?

    Could you be confusing things with the color Guide in Adobe Illustrator?  According to me, is there actually a window - menu color Guide here.

    -Christmas

  • Error code 0 x 800737712: refers to the component store corrupt, the component store is in an inconsistent state.

    Error code 0 x 800737712: I can't use Windows Update, I can't update Vista SP1, System Update Readiness Tool does not work, the error msg refers to the component store corrupt, the component store is in an inconsistent state. You are looking for a solution please.

    Hi BobJohnson08735,

    You can first try to use Fixit for Windows Update by following the link

    How to reset Windows Update components?

    http://support.Microsoft.com/kb/971058

    If you get a Error Code 80073712 0 x, then try the steps as a result of the KB article:

    Error message when you try to install updates on the Microsoft Update or Windows Update Web site: "0 x 80073712".

    http://support.Microsoft.com/kb/957310

    Hope this information is useful.

    Jeremy K.
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • HP DeskJet 3632: Printer HP DeskJet 3632 in 'State of the error.

    I bought a printer HP DeskJet 3632 it not so long ago and had some problems setting up, but managed to set up in the end. Now, whenever I try to print something I get the message that his into a 'State of the error' and I can't print. I tried unplugging several times, but I always get the same emssage. Also when it does not print, it's very slow.

    My operating system is also 8.1 but I'm not sure if its 64-bit or 32.

    Hello

    Thank you for using the forum. You can try the following:

    Please download and run the HP Print and Scan Doctor (PSDR) tool to diagnose and solve your problem

    http://h20180.www2.HP.com/apps/NAV?h_pagetype=s-926&h_lang=en&h_client=s-h-E016-1&h_keyword=DG-PDU

    Hope that helps.

  • Photosmart D110a. Error message: at least one of the cartridges has a problem.

    Photosmart D110a, Windows 7 32-bit, error message: at least one of the cartridges has a problem. Will print black if the deleted color cartridge. New cartridges does not solve the problem. Everything suggests not tried twice, cleaning, disconnect, etc..

    There is a document with the right information on how to help solve this problem located here.

    It seems that you have already made certain steps to help with this. If the printer is under warranty, then you may want to contact the HP Support on this device.

    Let me know if it helps.

  • my copy of CS4 is not allowing me to open it, whenever I have it try state that the license is no longer works and gives an error code: 6. this problem occurs on my laptop works fine my office copy [from the same CD, etc.]

    my copy of CS4 is not allowing me to open it, whenever I have it try state that the license is no longer works and gives an error code: 6. this problem occurs on my laptop works fine my office copy [from the same CD, etc.]

    Exit code: 6, Exit Code: 7 Installation error - http://helpx.adobe.com/creative-suite/kb/errors-exit-code-6-exit.html

    The problems with the Setup logs. CS5, CS5.5, CS6 - http://helpx.adobe.com/creative-suite/kb/troubleshoot-install-logs-cs5-cs5.html for more information on how to review your Setup logs

  • ERROR: New-Snapshot (the operation is not valid due to the current state of the object)

    Hello guys!

    I've been googlin everywhere, but impossible to find a solution to my problem. I hope that one of you, qualified people can point me in the right direction :)

    I created a powerCLI script to take a snapshot of our most important servers before we do our weekly maintenance. The idea to run the script as regular powershell script and then have

    1. Add snap-ins powercli and connect to virtualcenter servers
    2. ask the VC servers to virtual machines in a perticular folder
    3. Loop foreach on these servers to create a snapshot with the name $snapshotname

    Currently, I just do it turn on a test folder that I created in vSphere that contains 3 test VMs:

    • Testmagne1 - normal operation
    • Testmagne2 - I renamed the folder for this virtual machine in the data store to generate an error.
    • testmagne3 - normal operation

    Since the servers (not the test servers, but good ones) is the most important servers in our environment, I want to be able to catch exceptions and errors when I run this script. I do this with the Try - Catch - Finally works.

    The strange thing is:

    The release of Powershell/PowerCLI is different from the output in VirtualCenter (!)

    In virtualcenter, the output is as follows

    • Testmagne1 - snapshot is created successfully - as expected
    • Testmagne2 - the snapshot creation fails because it cannot find the files .vmx - as expected
    • Testmagne3 - snapshot is created successfully - as expected

    However, the exit in powercli is slightly different:

    • Testmagne1 - snapshot is created successfully - as expected
    • Testmagne2 - creation of the snapshot fails because it cannot find the files .vmx - as expected
    • Testmagne3 - snapshot fails with the error message: operation is not valid due to the current state of the object - huh?


    Apparently once the first error is generated all succeeding VMs get error "the operation is not valid due to the current state of the object"


    I've been pulling trying to figure this problem on my hair, but I'm not getting anywhere


    Here is some additional information:

    1. the Script (abridged version of it. It generates the same error):

    -STARTUP SCRIPT-

    $ErrorActionPreference = "stop".

    Add-PSSnapin VMware.VimAutomation.Vds, VMware.VimAutomation.Core | Out-Null

    SE connect-VIServer VIRTUALCENTER1, VIRTUALCENTER2 | Out-Null # Sensored VirtualCenter names

    $servers = get-VM-location 'testfolder '.

    $snapshotname = 'Testsnapshot '.

    $verifycreatesnapshot = Read-Host "you are about to create snapshots for $servers. Do you want to continue? o/n.

    If ($verifycreatesnapshot - eq 'y') {}

    Write-Host "snapshots of creation...". »

    {ForEach ($i in $servers)

    Write-Host "instant Creation for $i."

    Try {new-Snapshot - VM $i - name $snapshotname |} Out-Null}

    Catch {$_.exception | select *;} Write-Host "Unable to create the snapshot for $i" ;}

    }

    Write-Host "command finished.

    }

    else {Write-Host "Operation canceled by user"}

    Read-Host "end of the script. Press ENTER to close. "

    ------------------ END SCRIPT -------------------

    2. the PowerCli error messages:

    Error for Testmagne 2 (as expected):

    File: [DATASTORE114] testmagne2/testmagne2.vmx

    DynamicType:

    DynamicPropertyInternal:

    FaultCause:

    FaultMessage:

    ErrorId: Client20_TaskServiceImpl_CheckServerSideTaskUpdates_O

    perationFailed

    ErrorCategory: NotSpecified

    TargetObject:

    RecommendedAction:

    SessionId:

    ConnectionId: /VIServer = SENSORED: 443 /

    Severity: error

    Message: 31/10/2013-10:52:16 New-Snapshot the operat

    ion for the entity 'testmagne2' failed with the follo

    the wing's message: "file [DATASTORE114] testmagne2/testmagn".

    E2.vmx was not found.

    Data: {ParameterValues}

    InnerException: VMware.Vim.VimException: exploitation of the entity

    'testmagne2' failed with the following message: 'thread '.

    testmagne2/testmagne2.vmx e [DATASTORE114] was not crazy

    ND ".

    TargetSite:

    StackTrace:

    HelpLink:

    Source:

    Failed to create the snapshot for testmagne2

    Error for testmagne3:

    Creation of snapshot for testmagne3

    ErrorId: Core_BaseCmdlet_UnknownError

    ErrorCategory: NotSpecified

    TargetObject:

    RecommendedAction: An error occurred when executing command: new-Snapshot. I have check

    f exception for more details.

    SessionId:

    Login ID:

    Severity: error

    Message: 31/10/2013-10:52:17 instant New-capture operation is not

    valid due to the current state of the object.

    Data: {ParameterValues}

    InnerException : System.InvalidOperationException: operation is not valid from

    e to the current state of the object.

    at VMware.VimAutomation.ViCore.Impl.V1.Task.ViCoreTaskCo

    reServiceProviderImpl.BeginTaskCompletionPoll (list 1 taskLi

    St)

    at VMware.VimAutomation.Sdk.Impl.V1.Task.CoreTaskService

    Impl.WaitForTask (IEnumerable 1 taskList, ProgressCallback p

    rogressCallback)

    at VMware.VimAutomation.Sdk.Util10Ps.BaseCmdlet.BaseCmdl

    and. EndProcessingErrorHandled()

    at VMware.VimAutomation.ViCore.Util10Ps.BaseCmdlet.BaseC

    mdlet. EndProcessingErrorHandled()

    TargetSite: Sub ThrowTerminatingError (System.Management.Automation.Err

    orRecord)

    StackTrace: At System.Management.Automation.MshCommandRuntime.ThrowT

    erminatingError (ErrorRecord errorRecord)

    HelpLink:

    Source: System.Management.Automation

    Failed to create the snapshot for testmagne3

    3 PowerCLI version

    PowerCLI Version

    ----------------

    VMware vSphere PowerCLI 5.5 Release 1 build 1295336

    ---------------

    Versions of the snap

    ---------------

    VMWare AutoDeploy PowerCLI component 5.5 build 1262826

    VMWare ImageBuilder PowerCLI component 5.5 build 1262826

    License of VMware PowerCLI component 5.5 build 1265954

    VDS's VMware PowerCLI component 5.5 build 1295334

    VMware vSphere PowerCLI component 5.5 build 1295334


    4 VirtualCenter version

    VMware vCenter Server Version 5.0.0 Build 913577

    vSphere Client Version 5.0.0 Build 913577

    Hosts: VMware ESXi 5.0.0 Build 914586

    If you need additional information, let me know

    Any help is greatly appreciated

    Thank you!

    -Loincloth



    Definition - ErrorAction Stop locally on the cmdlet will not solve the problem. We have found and solved the problem and the fix will be available in the next version. Until then, you can use the $error variable to detect whether the cmdlet was successful or not. You can clear the $error variable before calling the cmdlet and check if it's still empty after the call.

  • With Move-VM error: operation is not valid due to the current state of the object.

    I only started shows after update to PowerCLI v5.1.  My vCenter is v5.0.  I saw this when moving virtual machines to a data store in a different data store cluster.  The task submits to vCenter successfully and ends, but the Move-VM errors and returns control to the script or command line that ran.

    $> Move-VM - VM somevm Datastore - somedatastore - confirm: $false
    Move-VM: 13/11/2012-16:07:45 operation Move-VM is not valid due to the current state of the object.
    On line: 1 char: 1
    + Move-VM VM - somevm - data somedatastore store - confirm: $false
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo: NotSpecified: (:)) [Move-VM], VimException)
    + FullyQualifiedErrorId: Core_BaseCmdlet_UnknownError, VMware.VimAutomation.ViCore.Cmdlets.Commands.MoveVM

    I'm puzzled.

    Do you by chance have a PowerShell v2 available somewhere where you can run the same script?

    As much as I know there no official PS still in PowerCLI v3 support, although there are only a few known minor pitfalls.

    While clutching at straws

  • vmrun start leads to a "error: operation failed because of the current state of the system.

    Hello

    I am running the vmrun like this on the console command.

    / usr/bin/vmrun t CR h https://ourhost/sdk u ouruser Pei ourpwd start ' build001/build001.vmx [datastorename] '.

    I get the error text:

    Error: The operation has failed because of the current state of the system

    When I opened the Vsphere client, I see that the operation began, but also with an error: the operation is not allowed in the current state.

    I'm running on VMWare Vsphere Server Version 4.1.0 Build 258902

    How can I make sure via command line that the State of the system is correct. Is there a way to get corrected through an order status?

    When I try to power to the top of the image within the user interface, it works, but I need to know the opposite effect.

    Thank you.

    Hello and welcome to the forums.

    check via the State of the line of command of this virtual machine if necessary, unblock the process using vmsuport x how to show in this http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1004340 Ko

  • PL/SQL - generate the error statement if the text file is not generated

    I have the following code as follows:
    SET SERVEROUTPUT ON SIZE 1000000;
    SET TIMING ON;
    --SPOOL draft.log
    DECLARE
    CURSOR C1 
    IS 
    SELECT * FROM Transaction;
    
    I_record_gen  INTEGER:=0;
    l_file                    utl_file.file_type;
    C_date                    CONSTANT VARCHAR2(8) := TO_CHAR(SYSDATE,'YYYYMMDD');
    
    BEGIN
    l_file := utl_file.fopen('Transaction_DIR','Transaction_'||C_date||'.txt', 'w' );
       FOR q IN C1 LOOP
       Utl_File.Put_Line(l_File,q.trans_id || '|' ||q.seq_no|| '|' ||q.count);
       I_record_gen:= 1;
       END LOOP;
     Utl_File.Fclose(l_File);
        EXCEPTION
        
       WHEN I_record_gen = 0 THEN
    dbms_output.put_line('Batch job runs successfully with no customer list extracted ');
        WHEN others THEN
               dbms_output.put_line('SQLERRCODE='||SQLCODE||'|'||SQLERRM);
    
    WHEN 
    
    END;
    /
    Based on the code, I want to generate a declaration in the error log if my variable I_record_gen has the value 0 when it has not entered my loop to generate the content of the file is generate.

    My code is correct? If not, how am I suppose to do?

    It looks like you want a custom exception. You can do the following:

    SET SERVEROUTPUT ON SIZE 1000000;
    SET TIMING ON;
    --SPOOL draft.log
    DECLARE
    CURSOR C1
    IS
    SELECT * FROM Transaction;
    
    I_record_gen  INTEGER:=0;
    l_file                    utl_file.file_type;
    C_date                    CONSTANT VARCHAR2(8) := TO_CHAR(SYSDATE,'YYYYMMDD');
    recordGenExc     EXCEPTION;
    
    BEGIN
    l_file := utl_file.fopen('Transaction_DIR','Transaction_'||C_date||'.txt', 'w' );
       FOR q IN C1 LOOP
       Utl_File.Put_Line(l_File,q.trans_id || '|' ||q.seq_no|| '|' ||q.count);
       I_record_gen:= 1;
       END LOOP;
     Utl_File.Fclose(l_File);
    
     IF I_record_gen = 0 THEN
          RAISE recordGenExc;
     END IF;
    
        EXCEPTION
    
       WHEN recordGenExc THEN
         dbms_output.put_line('Batch job runs successfully with no customer list extracted ');
        WHEN others THEN
               dbms_output.put_line('SQLERRCODE='||SQLCODE||'|'||SQLERRM);
    
    END;
    / 
    

    I added the following:

    -Adding a statement to an exception in the section DECLARE to your code.
    -Added a conditional to check the I_record_gen = 0 and then raised the exception if it was 0

Maybe you are looking for

  • HP w1907 monitor problems

    Just got this monitor 5 days ago.  Monitor HP w1907 LCD flat wide screen.  This morning when I got on the computer, I have a red line, one, down to the left at the end of the computer.  vertical.  from top to bottom.  right corresponding to the start

  • How to use NI9474 and cdaq9172 to generate the right variable cycle pulse 1 kHz

    Hello, I would like to use a NI9474 (in a cdaq9172 chassis) to send a square with a frequency of 1 kHz wave. The cycle will change just about every second (based on NI9205 voltage readings in all separate loop, by controlling the local variable 'duty

  • 17 - e100sh

    Hello HP Pavilion model 17-e100sh product G1N11EA #AKC OS Windows 7 Professional 32-bit sp1 HUN Problem: cannot find the correct drivers 1. Ethernet controller PCI\VEN_10EC & DEV_8136 & SUBSYS_213B103C & REV_07 PCI\VEN_10EC & DEV_8136 & SUBSYS_213B10

  • Card micro SD Port cover

    My Xperia is 5 days now, but I discovered some problem pre-assembled with the waterproof cap from SD card. The framework itself seems ok, but the cover looks too thick, at least thicker than a Sim Card/USB port. I am bit confused if strikes the warra

  • I have a mobile of Samsung S5230 FT. How can I download photos to my laptop using Vista

    I use HP Photo Essentials for all my files photo etc.