Grant Datasource resume actions to the Operator using WLST?

Hi gurus,
I'm trying to grant the JDBC datasource suspend/resume action to the 'Operator' role. I understand this is an admin task and the 'Operator' role cannot do this. I've tried to edit weblogic.management.runtime -> JDBCDataSourceRuntime -> suspend/resume policy Mbean via the JMX editor and added the Opertor role in a new policy, but I haven't been successful.
Is it possible to provide a user with a script (which can run as an Admin user), without providing the admin credentials to an operator user, so that he can resume a suspended data source?
Thanks.

Hi I am trying to test my conncetion pool using WLST testPool()..
Here are the steps i followed
wls:/Mydomain/domainRuntime/ServerRuntimes/ms1/JDBCServiceRuntime/ms1/JDBCDataSourceRuntimeMBeans/testdatasrc> x = cmo.testPool()
wls:/Mydomain/domainRuntime/ServerRuntimes/ms1/JDBCServiceRuntime/ms1/JDBCDataSourceRuntimeMBeans/testdatasrc>print x
None
Getting value of x ="None" (i did test from admin console test success)
If i uncheck TestConncetionsOnReserve and apply above wlst command getting same error what i am getting in admin console.
"Warning! Connectivity to backend database not verified. This is either because required connection pool attribute "TestConnectionsOnReserve" has not been enabled, or an invalid value has been specified for attribute "TestTableName". Please check the server log for more details.. "
Only case when test is succesful i am getting "*None*"
Any help
Thanks
Subba

Similar Messages

  • Is it possible to grant datasource resume actions to the Operator role?

    Hi gurus,
    I'm trying to grant the JDBC datasource suspend/resume action to the 'Operator' role. I understand this is an admin task and the 'Operator' role cannot do this. I've tried to edit weblogic.management.runtime -> JDBCDataSourceRuntime -> suspend/resume policy Mbean via the JMX editor and added the Opertor role in a new policy, but I haven't been successful.
    Is it possible to provide a user with a script (which can run as an Admin user), without providing the admin credentials to an operator user, so that he can resume a suspended data source?
    Thanks.

    Hello,
    theoretically you could remove the domain admins from the local administrator group. BUT this you should first test in a lab to see what happens after removal on the SCOM server.
    Best regards
    Meinolf Weber
    MVP, MCP, MCTS
    Microsoft MVP - Directory Services
    My Blog: http://blogs.msmvps.com/MWeber
    Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
    Twitter:  

  • Deleting the applications using WLST

    Hi Gurus,
    I have been trying to delete the my application by using the command like this
    delete(“TestApp”,”AppDeployments”);
    But get an error every time I run this command saying
    WLSTException: ‘Error occured while performing delete : Cannot delete MBean of type AppDeployment with name TestApp. You can only delete MBeans children to the current cmo. \nTo view the children types that you can delete, use listChildTypes().’
    When i try to run this command as mentioned in the error
    listChildTypes()
    I do not see any MBeans which can help in deleting my TestApp, what am i doing wrong here? How can i delete the application?
    Thanks in advance.
    Edited by: 853410 on 27-Apr-2011 10:29

    HI,
    The Indentation (The space before a statement) is very important in WLST because the control statements like if{} and Loops like for{} and while{} starts and ends based on the Indentation.
    Please use the below corrected script:
    url=t3://localhost:8001
    username=weblogic
    password=weblogic
    app.1=MyApp1
    app.2=MyApp2
    app.3=MyApp3And following will be your WLST Script:
    from java.io import FileInputStream
    propInputStream = FileInputStream("test.properties")
    configProps = Properties()
    configProps.load(propInputStream)
    Url = configProps.get("url")
    print 'url=', Url
    User = configProps.get("username")
    print 'User=', User
    Password = configProps.get("password")
    print 'Password = ', Password
    connect(User,Password,Url)
    config()
    cd ('Applications')
    for i in 1,2,3:
         App = configProps.get("app."+str(i))
         delete (App)
         print 'Application ',App,' has been deleted Successfully..!!!'
         i =i+1
    So Now you need to just make changes in the Properties file...No need to touch anything in the WLST Script except the For Loop Count.Which is equal to the Number of applications which you want to delete ;)
    Thanks
    Ravish Mody

  • ALSB 3.0: Resume action behavior like the Skip action

    Hi,
    I have a Proxy Service that receive a array.
    Then I do a For Each action to go through the array and call a Service callout for each element of the array.
    I also want to continue the processing of the array if a Service callout return a failed message.
    Reading the documentation, I think this was the solution of my scenario:
    Resume
    Resume message flow after an error is handled by an error handler. This action has no parameters and can only be used in error handlers.
    But the Resume action in the Error Handler is going to the next Stage, not to the next action in the For Each, just like the Skip action.
    There something I'm missing?
    thanks

    When you call a service route, the response will be in the variable $body. What I suspect you want to happen is you want to map the response body of the service route to the response of your service.
    This can be confusing, so what I tend to do is have a step with a new assign. I have an XQuery that maps the response of the route sevice to the service response. I assign this to a variable. I then do a replace. I find it confusing doing a replace when both the variables are called body. These steps should be performed on the response pipeline.
    Hope this makes sense.
    cheers
    James

  • Creating Protection Group Fails with Error:360 The operation failed due to a virtual disk service error

    Hello
    I'm setting up a DPM server (2012 R2) at a remote site; everything goes well with no issues until a protection group is created, at which point I get the following error;
    Create protection group: Protection Group 1 failed:
    Error 360: The operation failed due to a virtual disk service error
    Error details: The system cannot find the file specified
    Recommended action: Retry the operation.
    The environment is as follows;
    - Virtual Machine Running Server 2008 R2 Fully updated
    - Storage Pool is an iSCSI connection Thick Provisioned 1TB GPT and shows in Disk Management with no issues.
    - Have connected to Session 0 (console) 
    - Error log shows The provider did not receive a Plug and Play service notification for the volume. volume=10  for the VDS Dynamic Provider
    Can Anyone Help?
    Thanks
    .Adam Langdon

    Hi,
    Disk defrag is initiated when a volume shrink is attempted. See if there is any problem defragging a volume and correct any problems doing that.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT]
    This posting is provided "AS IS" with no warranties, and confers no rights.

  • An error occured while attempting to perform the operation.

    Hi
    I'm getting the following error message in my disco plus report.
    "An error occured while attempting to perform this action. The operation did not complete successfully.
    Extra Internal info:
    (OLException
    Cause:OLException {
    Code: OLCmRefException::eNullRef
    Args: OLCmRefException::eNullRef
    I have searched the forum but have found no usefull information for me.
    The problem occured when I added a calculation to woorkbook that was working perfectly fine before. Now I can't even remove any item or calculation (or anything) from the worksheet.
    I then edited the calculation to just show "1" instead which allowed me to remove that certain calculation, but I can still not remove any item.
    Please ask if more details are needed.
    What can have caused this problem, and is there a way to solve it? Do I have to redo the entire report?
    BR
    Robert

    Robert,
    We encountered this issue with our 10.1.2.54.25 installation on a Solaris OS. We are currently at CP3. We have tried CP4, 5, 6 and 7. No resolution. Oracle has replicated our issue assigned a bug # and say that they have found a fix but it will not be made available until the release of 10.1.2.3 CP2. We have requested a one-off patch for 10.1.2.54.25 CP7. They are currently thinking about it. We have been hung up since Feb. '08 and not be able to resolve any bugs because of this problem.
    Jerre

  • Assignment of components to operations using LSMW

    Hi
    i created routing using LSMW.
    i created all the operations using direct nput methode
    and  material to group assignmebt using batch input methode.
    but i was not able to assign my components of the BOM to my routnig operations.
    How to do this.
    which one is the best and easy way. direct or batch input methode.

    Dear,
    Now I am clear.
    You need to create different 2 BOM and with BOM items, as below,
    example - total requirement of material A is say 10.
    Semi finished Product- X BOM
    BOM item 1 - material A-qty 8
    BOM item 2 - material B-qty -5
    Finished material Y - BOM
    BOM item 1 - semifished material X-qty 10
    BOM item 2 - material C-qty 10
    BOM item 3 - material A-qty 2
    BOM item 4 - material D-qty -2
    You need to create above 2 BOM's if you want to see semifished product into inventory, if not proceed as below
    Finished material Y - BOM
    BOM item 1 - material A-qty 8 assign it to routing operation 10
    BOM item 2 - material B-qty -5 assign it to routing operation 10
    BOM item 2 - material C-qty 10 assign it to routing operation 20
    BOM item 3 - material A-qty 2 assign it to routing operation 30
    BOM item 4 - material D-qty -2 assign it to routing operation 30
    I think this is the only way you can map it.

  • Creating photoshop actions after the fact

    Hi
    I am new to creating actions, I have crated a design I am happy with and I want to recreate it easily with an action. The design uses multiple stages and filters, so its a real pain to retrace steps. Is there a quick way to create an action set without having to go through all steps again ???
    Thx in advance.

    Check 'History log' - In General Preferences at the bottom of the panel.  It won't make your action automatically, but it will give you a step by step text file of how you made your masterpiece.
    http://digital-photography-school.com/how-to-keep-a-log-of-your-work-in-photoshop

  • How to query the SubsystemHealthStates through WLST

    The WLS Console seems to combine the Health State Information from all Subsystems of a Managed Server, when I just call getHealthState() on the Managed Server I get the ServerRuntime State.
    Could anyone point me to some sample code that queries the Subsystems and consolidates the Health State similar to what the Console Does?
    Thanks
    Erwin

    Some examples are given here: http://middlewaremagic.com/weblogic/?p=6016 especially in the "Monitoring using WLST' section.
    It shows an example for the data source and JMS runtimes, plus some example for the JVM statistics.
    All the available runtimeMBean are listed here: http://download.oracle.com/docs/cd/E12839_01/apirefs.1111/e13951/core/index.html

  • Error (23317) The operation Change properties of virtual machine is not permitted on a virtual machine that has shared virtual hard disks. Recommended Action The operation Change properties of virtual machine is not permitted on a virtual machine that h

    Experts !
    Error (23317)
    The operation Change properties of virtual machine is not permitted on a virtual machine that has shared virtual hard disks.
    Recommended Action
    The operation Change properties of virtual machine is not permitted on a virtual machine that has shared virtual hard disks.
    Is this limitation by design? If we have a shared VHDX between two VMs, then I am not able to change the VM properties from SCVMM.
    SCVMM 2012 R2 with Windows Server 2012 R2 Hyper-V.
    Appreciate any help !
    Optimism is the faith that leads to achievement. Nothing can be done without hope and confidence.
    InsideVirtualization.com

    Hello,
    that is a VMM issue.
    If you did not deploy your virtual cluster from a VMM service template, VMM doesn't recognize the configuration.
    Until MS got it fixed, you could use the workaround from system center central:
    http://www.systemcentercentral.com/tag/shared-vhdx/
    This posting is provided >AS IS< with no warranties.

  • Trying to delete file from trash but get this: The operation can't be completed because the item "File name" is in use. All other files delete except this one. Please help

    Trying to delete file from trash but get this: The operation can’t be completed because the item “File name” is in use. All other files delete except this one. Please help

    Maybe some help here:
    http://osxdaily.com/2012/07/19/force-empty-trash-in-mac-os-x-when-file-is-locked -or-in-use//

  • How to log the exception using Log action in Oracle Service Bus

    Hi,
    Whenever an exception is raised how to log the exception using Log action in oracle service bus.After logging where I have to find the logged message.

    It would be in the log file for the managed server which ran the request. If you are logging the message at a lower level than your app server, however, you won't see it. You should be logging the exception at Error level.

  • Cannot delete file: The operation can't be completed because the item "DataReferences" is in use.

    I have a My Book TB Drive where all of my Time Machine backups go to. I decided to delete some older version of backups. They ended up in my trash can. When I deleted the items in my trash can, all of them erased with the exception of one file. This file refuses to go! I have tried "Empty Trash", "Secure Empty Trash" and holding the Option Key + "Secure Empty Trash". Each time the I get the following error: The operation can’t be completed because the item “DataReferences” is in use.
    If I unplug the My Book TB Drvie, the file dissapears from the trash can. If I plug it back in, it reappears.
    I am not sure what to do anymore. Any suggestions?
    Thanks!
    MacMini
    Mountain Lion (Error originated in OS X)
    My Book TB (External Hard Drive)

    I found an article on how to allow third party apps. Posted it below just in case if anyone is interested.
    http://www.computeraudiophile.com/f11-software/your-security-preferences-allow-i nstallation-only-apps-mac-app-store-and-identified-developers-12789/
    Anyhow, I was able to do the double click on the trash it.I tried the "fast" version and the "really stuck" version and unfortunately, none of the options worked.
    Any other suggestions?

  • Error message during copy of new version, it says the operation cannot be completed because the item foxfire is in use.

    During downloading of 7.0 Foxfire, during the copy I get an error message that says the operation cannot be completed because the item Foxfire is in use.

    If there are problems with updating or with the permissions then easiest is to download the full version and trash the currently installed version to do a clean install of the new version.
    Download a new copy of the Firefox program and save the disk image (dmg) file to the desktop
    * Firefox 7.0.x: http://www.mozilla.com/en-US/firefox/all.html
    * Trash the current Firefox application to do a clean (re-)install
    * Install the new version that you have downloaded
    Your profile data is stored elsewhere in the Firefox Profile Folder, so you won't lose your bookmarks and other personal data.
    * http://kb.mozillazine.org/Profile_folder_-_Firefox

  • The operation cannot be completed because it is in use

    i have a macbook with yosemite running.I also have a wdtv live with a 1tb hdd on it.I could transfer files from my mac to the hdd over wifi with no problem till i upgraded to yosemite.It tells me when i transfer a large file the operation cannot be completed because it is in use.Small files can be transferred with no problem at all.When i transfer them through direct usb to the hdd no problem at all.What can be the solution to this problem???

    If there are problems with updating or with the permissions then easiest is to download the full version and trash the currently installed version to do a clean install of the new version.
    Download a new copy of the Firefox program and save the disk image (dmg) file to the desktop
    * Firefox 7.0.x: http://www.mozilla.com/en-US/firefox/all.html
    * Trash the current Firefox application to do a clean (re-)install
    * Install the new version that you have downloaded
    Your profile data is stored elsewhere in the Firefox Profile Folder, so you won't lose your bookmarks and other personal data.
    * http://kb.mozillazine.org/Profile_folder_-_Firefox

Maybe you are looking for