can't automate the listener on startup under redhat 6.3

Dear oracle specialists I installed oracle 11g r2 on linux RedHat 6.3 after a successful installation and automating db departure

can't automate starts high earpiece however able to start it manually since I was new as well bi for oracle in order to

scripts Linux can help me find the error

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

Oracle2918 0.4 0.0 1984168 18440?SS 06:33 0:00 ora_pmon_ice
Oracle2920 0.3 0.3 1982056 15308?SS 06:33 0:00 ora_vktm_ice
Oracle2924 0.3 0.0 1982056 15392?SS 06:33 0:00 ora_gen0_ice
Oracle2926 0.3 0.0 1982056 15248?SS 06:33 0:00 ora_diag_ice
Oracle2928 0.5 0.0 1982080 23492?SS 06:33 0:00 ora_dbrm_ice
Oracle2930 0.3 0.0 1982056 15464?SS 06:33 0:00 ora_psp0_ice
Oracle2932 0.4 0.0 1982568 19000?SS 06:33 0:00 ora_dia0_ice
Oracle2934 1.6 0.9 1982056 39228?SS 06:33 0:03 ora_mman_ice
Oracle2936 0.5 0.0 1987812 22012?SS 06:33 0:00 ora_dbw0_ice
Oracle2938 0.5 0.0 1997608 23436?SS 06:33 0:00 ora_lgwr_ice
Oracle2940 0.4 0.0 1982568 18356?SS 06:33 0:00 ora_ckpt_ice
Oracle2942 0.7 0.0 1982616 34412?SS 06:33 0:00 ora_smon_ice
Oracle2944 0.5 0.0 1982576 22268?SS 06:33 0:00 ora_reco_ice
Oracle2946 0.2 1.4 1987896 64636?SS 06:33 0:00 ora_mmon_ice
Oracle2948 0.4 0.0 1982056 20340?SS 06:33 0:00 ora_mmnl_ice
Oracle2950 0.3 0.0 1983956 15356?SS 06:33 0:00 ora_d000_ice
Oracle2952 0.3 0.0 1983120 14520?SS 06:33 0:00 ora_s000_ice
Oracle2994 0.3 0.0 1982056 17344?SS 06:33 0:00 ora_qmnc_ice

Oracle3205 0.1 1.2 1988764 54972?SS 06:33 0:00 ora_cjq0_ice
Oracle3207 0.7 0.0 1983640 31268?SS 06:33 0:00 ora_q000_ice
Oracle3209 0.7 0.0 1985556 32068?SS 06:33 0:00 ora_q001_ice
Oracle3269 1.0 0.6 1983632 27092?SS 06:36 0:00 ora_j000_ice
Oracle3271 0.3 0.0 1982052 15032?SS 06:36 0:00 ora_j001_ice

Here's my database looks like after automatic loads the operating system after the show

the PS command

and here's my interlocutor after issuing. / lsnrctl status

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on August 2, 2013 06:42:43

Copyright (c) 1991, 2009, Oracle.  All rights reserved.

Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1521)))

AMT-12541: TNS:no listener

AMT-12560: TNS:protocol adapter error

AMT-00511: no listener

Linux error: 111: connection refused

Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=ICELANDLOCAL.localdomain) (PORT = 1521)))

AMT-12541: TNS:no listener

AMT-12560: TNS:protocol adapter error

AMT-00511: no listener

Linux error: 111: connection refused

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

.bash_profile environment variables

export PATH

umask 022

export TMPDIR = / tmp

export ORACLE_BASE = / u01/app/oracle

export ORACLE_HOME=$ORACLE_BASE/product/11.2.1/dbhome_1

export ORACLE_HOME_LISTNER=$ORACLE_BASE/product/11.2.1/dbhome_1

Export ORACLE_HOME_LISTNER = $ORACLE_HOME

Export TNS_ADMIN = ORACLE_HOME/network/admin

export LD_LIBRARY_PATH = $ORACLE_HOME/lib: / lib: / usr/lib

export PATH = $ORACLE_HOME/bin: $PATH

export ORACLE_SID = ice

and my free from oracle startup script

Description #: Oracle automatic start-stop script.

#

# Define ORA_HOME as equivalent to the $ORACLE_HOME

# from which you want to run dbstart and dbshut;

#

# Define ORA_OWNER to the userid of the owner of the

# Oracle in ORA_HOME server.

ORA_HOME=/U01/app/Oracle/product/11.2.1/dbhome_1

ORA_OWNER = oracle

If [! f $ORA_HOME/bin/dbstart]

then

echo "Oracle startup: cannot start.

output

FI

case '$1' in

'Start')

# Run Oracle databases:

# The following command assumes that the oracle connection

# will not prompt the user for all values

known $ORA_OWNER - c "start ORA_HOME/bin/lsnrctl $ LISTENER."

known $ORA_OWNER - c $ORA_HOME/bin/dbstart $ORA_HOME

touch/var/lock/subsys/Ben

;;

'stop')

# Stop the Oracle databases:

# The following command assumes that the oracle connection

# will not prompt the user for all values

known $ORA_OWNER - c $ORA_HOME/bin/dbshut $ORA_HOME

known $ORA_OWNER - c "ORA_HOME/bin/lsnrctl stop $ LISTENER."

RM-f/var/lock/subsys/Ben

;;

ESAC

any suggestion or help would be appricieated

Thanks in advance

you are right about the listener

Here is my old script released

#! / bin/sh

# chkconfig: 345 99 10

Description #: Oracle automatic start-stop script.

#

# Define ORA_HOME as equivalent to the $ORACLE_HOME

# from which you want to run dbstart and dbshut;

#

# Define ORA_OWNER to the userid of the owner of the

# Oracle in ORA_HOME server.

ORA_HOME=/U01/app/Oracle/product/11.2.1/dbhome_1

ORA_OWNER = oracle

If [! f $ORA_HOME/bin/dbstart]

then

echo "Oracle startup: cannot start.

output

FI

case '$1' in

'Start')

# Run Oracle databases:

# The following command assumes that the oracle connection

# will not prompt the user for all values

known $ORA_OWNER - c "start ORA_HOME/bin/lsnrctl $".

known $ORA_OWNER - c $ORA_HOME/bin/dbstart

touch/var/lock/subsys/Ben

;;

'stop')

# Stop the Oracle databases:

# The following command assumes that the oracle connection

# will not prompt the user for all values

known $ORA_OWNER - c $ORA_HOME/bin/dbshut

known $ORA_OWNER - c "ORA_HOME/bin/lsnrctl stop $.

RM-f/var/lock/subsys/Ben

;;

ESAC

and here's my new script released

#! / bin/sh

# chkconfig: 345 99 10

Description #: Oracle automatic start-stop script.

#

# Define ORA_HOME as equivalent to the $ORACLE_HOME

# from which you want to run dbstart and dbshut;

#

# Define ORA_OWNER to the userid of the owner of the

# Oracle in ORA_HOME server.

ORA_HOME=/U01/app/Oracle/product/11.2.1/dbhome_1

ORA_OWNER = oracle

If [! f $ORA_HOME/bin/dbstart]

then

echo "Oracle startup: cannot start.

output

FI

case '$1' in

'Start')

# Run Oracle databases:

# The following command assumes that the oracle connection

# will not prompt the user for all values

Su - oracle - c "start ORA_HOME/bin/lsnrctl $".

known $ORA_OWNER - c $ORA_HOME/bin/dbstart

touch/var/lock/subsys/Ben

;;

'stop')

# Stop the Oracle databases:

# The following command assumes that the oracle connection

# will not prompt the user for all values

known $ORA_OWNER - c $ORA_HOME/bin/dbshut

Su - oracle - c "ORA_HOME/bin/lsnrctl stop $.

RM-f/var/lock/subsys/Ben

;;

ESAC

as I said I came to this at random by the help of this article

http://yong321.freeshell.org/oranotes/UnixStartupScripts.txt

Tags: Database

Similar Questions

  • How can disable us the selection of lines under condition

    Hi Experts,

    JDEV version 12.1.3.0

    How can disable us the selection of lines under certain conditions.

    As the lines newly unregistered should be allowing the selection of lines.

    Saved lines should be disabled from the selection.

    Can achieve us.

    Please me advice accrdingly

    Thank you

    Roy

    You are implementing a generic selection as shown here http://www.oracle.com/technetwork/developer-tools/adf/learnmore/23-generic-table-selection-listener-169162.pdf Manager in this handler, you check and validate the selection of our not.

    Timo

  • How can I get the child to pass under the appropriate parent based on the name?

    I'm reading an .ini file and based on the name of the group, I want that child to go under this name. If I read in another file, and he wears the same group name, that I want the child to be able to go under this name. Right now I can't even the child to pass under a different group name when it is supposed to. He continues to go by the same name of Parent. Here is my code.

    parent of int = 0;

    Ini_GetStringIntoBuffer (iniText, 'Details', 'Group', cbuf, BUFSIZE);

    InsertTreeItem (s_gMainWindow.managerTab, MANAGERTAB_TREE, VAL_SIBLING, 0,)
    VAL_NEXT, cbuf, NULL, 0, relative).

    Ini_GetStringIntoBuffer (iniText, 'Details', 'Name', cbuf, BUFSIZE);
         
    InsertTreeItem (s_gMainWindow.managerTab, MANAGERTAB_TREE, VAL_CHILD, 0,)
    VAL_LAST, cbuf, NULL, 0, relative ++);

    Ini_GetStringIntoBuffer (iniText, 'Details', 'Version', cbuf, BUFSIZE);
         
    SetTreeCellAttribute (s_gMainWindow.managerTab, MANAGERTAB_TREE, relate, 1, ATTR_LABEL_TEXT, cbuf); I can't do this correspond with the child column.

    Try this:

    parent of int = 0;

    int parent, index;

    Ini_GetStringIntoBuffer (iniText, 'Details', 'Group', cbuf, BUFSIZE);

    parent = InsertTreeItem (s_gMainWindow.managerTab, MANAGERTAB_TREE, VAL_SIBLING, 0,)
    VAL_NEXT, cbuf, NULL, 0, relative).

    Ini_GetStringIntoBuffer (iniText, 'Details', 'Name', cbuf, BUFSIZE);
    index = InsertTreeItem (s_gMainWindow.managerTab, MANAGERTAB_TREE, VAL_CHILD, parent,
    VAL_LAST, cbuf, NULL, 0, relative ++);

    Ini_GetStringIntoBuffer (iniText, 'Details', 'Version', cbuf, BUFSIZE);
    SetTreeCellAttribute (s_gMainWindow.managerTab, MANAGERTAB_TREE, index, 1, ATTR_LABEL_TEXT, cbuf);

    the idea is to keep the index of the item that you insert in order to reuse it when you want to edit the item.

  • How can I use the CC of color under Windows?

    How can I use the CC of color under Windows?

    Or is it an online color Analyzer?

    Hello

    You can use CC to color online at the Adobe color CC. It is a great web app.

    Sue.

  • why I can't manage the listener by EM?

    Dear Sir

    I am trying to remotely manage the file listener.ora for an instance of database 10 g called FINANCEIRA (the operating system I use is the Windows), using the EM Database Control. I'm following the steps below to do this:

    1) access to the Administration of Services Net screen;

    (2) choose the listener to the Manager option.

    Note: the path of the listener configured on the server is "C:\oracle\product\10.2.0\db_2\network\admin".

    where

    ORACLE_HOME="C:\oracle\product\10.2.0\db_2\".

    The EM control works very well... the problem is that, once the option of the listener is chosen and I click OK to move to the next screen, an error message is triggered by asking me to check if the path 'C:\oracle\product\10.2.0\db_2\network\admin' is valid and the operation is aborted.

    I checked, the path is OK... There's a listener.ora file, for sure. It can be confirmed because when I chose to administer the tnsname.ora file, the process works. So, why not work for the listener.ora file?

    TKS

    Well, that's a stupid question and I don't know what is the reason for this. But here is what works for me when I have this problem, hopefully it would work as well for you.

    (1) go in $oracle_home/network/tools
    (2) in the Netproperties file, comment out the line INSTALLEDCOMPONENTS = ORACLENET

    It should work after the comment line. Do not post feedback after doing so.

    HTH
    Aman...

  • How can I automate the process of replacing these. PNG in my art?

    I have a very large project, that I'm in the middle and it becomes very painful to have to do these one by one.

    SAMPLE.jpg

    I've already sorted 'go - to'.psd I copied and pasted into all subdirectories of name-based. Now, it's just a matter to recreate with the insignia of various clans and tartan as well as their name. First of all, I was wondering if there is a way to bulk to replace the badge 'clan '. PNG is even if they are all named differently by their clan.

    If this is possible then it is perhaps possible to replace the tartan aswell?

    What is the name, I have files delimited by tabs that crank out every spelling of the name clans individual once the main file has undergone all the work described above. I.O. If the clan has a common spelling of 'Auchinleck' but also goes by, file in step finals Affleck, Auchinlech, Aachnaleck, Auchinlick, then these will all be taken care of with the tab -delimited.


    No control of Photoshop help would be most appreciated!

    So you're a candidate to learn scripting.

    Windows and Mac have an internal scripting language and Apple, PowerShell script respectively.

    Photoshop can also use the script. Visual basic script on Windows and on Mac Apple script. Windows and Mac can also use JavaScript for Photoshop.

    In the Photoshop script forum are links to learn more about writing scripts.

    Photoshop scripts

  • How can I change the user at startup

    Two of us are now using my laptop and we are both administrators, but after a reboot, I am required to connect and the other user does not appear as an option, even though I have close the session before stopping. It's only when I connect the other user option is displayed. I want two users to have the ability to log on to the power, not just me. Any help?

    Thank you.

    You can select parameters in the system to turn off AutoConnect on startup for all users.

    Here is an example with text and images:

    • Safety Tip Mac: disable the automatic connection - intego mac security blog:

    https://www.Intego.com/Mac-Security-blog/Mac-Security-Tip-disable-automatic-Logi n.

    Similar, but opposite context:

    • Mac OS X - that allows the automatic connection:

    https://KB.wisc.edu/Helpdesk/page.php?id=39258

    Where there may be File Vault and content encrypted, you must read the suite & research

    to see what is involved so these elements still work. Other issues can lead to

    perform maintenance and backups if you have an encrypted file or a vault in your OS X.

    He mentions a certain question concerning auto Vault login and go to the end:

    • Set your Mac to automatically connect on startup - Apple Support

    In any case...

    Good luck & happy computing!

  • Can I automate the creation of a simulated device?

    I see I can create simulated devices OR Max is it possible to automatically create devices of simulations? I want software unit as part of an automated deployment process testing

    Hi Chris,

    Sorry, I thought that the System Configuration OR > LabWindows/CVI function appeared when you install OR-DAQmx (after selecting "Custom"), but it doesn't.

    Here's what you need to do:

    • Configuration of system OR download: http://joule.ni.com/nidu/cds/view/p/id/2613/lang/en (or select from the Driver DVD NOR)
    • Select LabWindows/CVI:
    • nisyscfg.h must be installed in %ProgramFiles%\National Instruments\Shared\CVI\include.
    • nisyscfg.lib must be installed in %ProgramFiles%\National Instruments\Shared\CVI\ExtLib\msvc. Note that it need to link against user32.lib as well.

    Brad

  • How can I automate the NTFS permissions?

    Our directory structure has redundancy: C:\Project1, C:\Project2, C:\Project3, etc.
    Under each folder of the project, the subdirectories are similar: C:\ProjectX\Sub1, C:\ProjectX\Sub2, C:\ProjectX\Sub3, etc.

    We would like to allow to assign permissions to subfolders different NTFS, once the main project folder is created. By example, if I create C:\Project1, I want these subfolders to create and with these permissions:

    • C:\Project1\Sub1: Write privs to Group1
    • C:\Project1\Sub2: Reading only privs for group2
    • C:\Project1\Sub3: Write privs to everyone

    I think that this should be done either through Group Policy or script (even if other alternatives would be appreciated). Could someone give us help on how this started? References would also be appreciated.

    Thanks in advance.

    Hello

    The question you asked is best answered in the Technet Forums.

    You can post your questions here:

    http://social.technet.Microsoft.com/forums/en-us/winserverGP/threads

  • How can I capture the time of startup and logon for XP users on my domain?

    How can I capture time (or time)
    -for users to access the logon screen (references)
    -users press OK after entering his credentials on the logon screen
    -Office XP that appear in a usable format moderately (for example, the user is able to open Explorer)

    We have problems with the connection of slow/slow start (SBSL) with Windows XP on the field and we would have 'real' numbers before you start so that we can have a base line and that you don't need to ask users what they mean when they say "it's a bit slower than usual" (and we'll know what stage of the startup procedure is slow). We would like to be able to capture (without intervention of the end user) following in a file or somewher event schedule so that we can measure how slow (or not), they are and what stage is slow, and what days it was slow. We are already capture the userenv logs.

    Hello

    Your Windows XP question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the TechNet Windows XP Networking forum.

    http://social.technet.Microsoft.com/forums/en-us/category/windowsxpitpro

  • Can I automate the output in Acrobat XI preview window?

    Hello

    I would like to implement a solution simple click for proofing in acrobat XI, which allows my users do the following:

    Overview of open output 1.).

    2.) settings (select a specific profile, check simulate overprinting is enabled, enable simulate paper color).

    3.) enter full screen mode.

    4.), or hide the output re-color-the preview window so that it is darker, as the color of the interface is lighter than the white point of one of the profiles that I want to simulate...

    Is it possible to achieve through java script in the Acrobat console or I have to develop a plugin c ++?

    advice, advice or useful links you would know I developed not anything for acrobat before.

    Concerning

    Matt

    I don't think you can automate it all by both methods.

  • How can I automate the numbering of pages between different files?

    I use InDesign CS2

    to set up a magazine.  The magazine has about 50-60 ads in it, and each ad is in a separate file, until the magazine is assembled.  There is a guide at the end of the magazine that show the basic information in a format of grid on advertisers in the magazine.  The formatting for the grid is controlled with tab stops to reinvest as advertisers come and go from point to point. I need to add a new column to indicate which page the ad associated with the entry of the grid is on, but I can't find a way to automate it.  The only solution I have found so far is to copy the phone number of the advertiser and to find other bodies in the magazine once it is assembled.

    Is it possible to automate this task, remembering that these ads are all contained in separate files until the magazine is assembled? I find the help topics on the subject of indexes, hyperlinks, bookmarks, etc. to be very confusing and not very useful.

    KeithDale wrote:

    Ads can be placed in InDesign, because I have CS2.  Copy us the ad and paste it into the magazine.  This seems to prevent continuous history references because they must be put in place in the same file. Establish links once the ad is placed in the ad is useless, because it will be broken once the announcement is moved to another file and will take more time than to just do a search for the phone number.  I was oping there will be a way to put in a kind of anchor or something which will be updated automatically when an ad is placed in the magazine.

    It depends on how save you or receive outside ads. These days most advertisers submit PDF, but that you're creating ads to identity card and recording in native format. Personally, I save the original work in .indd for future editing, but export a copy in PDF format and the place to display ads. You can place the PDF file in different numbers as much as you like and there is no risk of leaving anything out when you copy and paste.

    In addition, more information on the guide as only the page numbers there.  I need to have page numbers fit in the existing format to make it work properly (obviously, I'll have to add a column). A table of contents can contain all of these additional data?

    It's not what I was picturing, so, no, I don't think that OCD would help a lot.  If you upgrade to CS4 you can probably use cross references that are now a native function. In CS2, you might be able to at least semi-automate paging using the cross-reference of sectors de Jong script: Script for referrals, including a tutorial on how to use it (updated April 10, 2006)

    I can't imagine an easy way to do it in any version, i.e. anything that doesn't require not to add some sort of marker to each announcement and perhaps update the table if things are moving (that part is not onereous - just run the script again). Maybe someone else has another idea.

  • I can not disable the software at startup on my T61 agroenvironnemenaux

    I disabled the fingerprint software and the power of password in the bios. I rebooted and checked. The display shows both are disabled. However when I powered the xp splash screen appears, then a box with a graphic of fingerprints and the message "Please login to registration of fingerprints. Or press Ctrl-Alt_Delete to you connect using a password.

    When I press Ctrl-Alt-Delete sometimes I det the windows login screen. Since I have no password by pushing the back allows me to use my machine. However, it is an annoyance and sometimes Ctrl-Alt-Delete is ignored and I have to turn off and start again.

    Guy 7661-D28 S / N L3 - xxxxx 08/09

    Any ideas?

    Note of the moderator; s/n, edited for the protection of its own

    It's been a while for me also on XP, but you deleted digital data within the application of fingerprints?

    In Win7 there is a flag says "Show at startup" (or similar), if the XP version has a place too then try turning off as well.

  • How can I disable the password at startup and sleep awake HP pavilion Windows 8

    When I first started all I installed the password. There is no one else in my house that I care and that you want to disable the password. I went to the control panel and don't check the password none on sleep. I always get the password on the two start up application and awakining of his sleep. How can I disable password?

    I think it's how you do it:

    1. Go to charms (top-right with the mouse)
  • How can I automate the creation of a partition from scratch for a large number of hosts?

    I would like to help with the following steps to cerate a partition scratch on all hosts that have no script, then reprot back to me which guests were to have created.

    all my ESXi hosts have a LUN to start with the space, all the boot LUN are named with the same naming that is conveiton "hostname-localstorage.

    I would like to come up with a script that will check each host in a cluster for a partition of scaratch, if it does not create the folder ".locker -hostname" on local storrage and then set the partition scratching to the new location. Then the new report to me, which is already a partition from scratch and those to whom he owed create a parition scratch to so I can plan then a good time to put the hosts with newly created partitions scratch mainenance mode and restart their.

    I glued the manual way to do it below. I'd appreciate any help anyone can give and it will be well appreciated. I try to avoid to do 1000 hours below. Thanks in advance...

    Note: Before you begin, make sure that/tmp/scratch exists. If it does not exist, create it by using the command #mkdir/tmp/scratch.
    1. Open a command prompt where the PowerCLI is installed.
    2. Connecting to host ESXi using the command:

      connect-viserver ESXHostnameOrIP

    3. A list of the data stores accessible by using the ESXi Host command:

      Get-Datastore

    4. Mount a read/write as a PSDrive data store using the command:

      New-PSDrive -Name "mounteddatastore" -Root \ -PSProvider VimDatastore -Datastore (Get-Datastore "DatastoreName")

    5. Access the PSDrive new using the command:

      Set-Location mounteddatastore:

    6. Create a directory named only for the ESXi host using the command:

      New-Item "DirectoryName" -ItemType directory

      For example:

      New-Item ".locker-ESXHostname" -ItemType directory

    7. Check the current value of the ScratchConfig.ConfiguredScratchLocation configuration with the command option:

      Get-VMHostAdvancedConfiguration -Name "ScratchConfig.ConfiguredScratchLocation"

    8. Change the ScratchConfig.ConfiguredScratchLocation configuration option, specifying the full path to the directory created in step 6, using the command:

      Set-VMHostAdvancedConfiguration -Name "ScratchConfig.ConfiguredScratchLocation" -Value "/vmfs/volumes/DatastoreName/DirectoryName"

      For example:

      Set-VMHostAdvancedConfiguration  -Name "ScratchConfig.ConfiguredScratchLocation" -Value  "/vmfs/volumes/Datastore1/.locker-ESXHostname"

    9. The ESXi host in maintenance mode and restart so that the configuration change to take effect.

    Mike P

    I have something similar to use the script below.

    I think you'll find that your out in there.

    $configName = 'ScratchConfig.ConfiguredScratchLocation'
    
    $mode,$warn = Get-PowerCLIConfiguration | %{$_.DefaultVIServerMode,$_.DisplayDeprecationWarnings}Set-PowerCLIConfiguration -DefaultVIServerMode "Multiple" -DisplayDeprecationWarnings:$false
    
    Get-VMHost | where {$_.ExtensionData.Config.Product.ProductLineId -eq "embeddedEsx"} | %{    Connect-VIServer -Server $_.Name -User root -Password MyPswd    $scratch = (Get-VMHostAdvancedConfiguration -VMHost $_)[$configName]    $tgtName = ".locker-" + $_.Name.Split('.')[0]    if($scratch -notmatch ($tgtName + "$")){        $ds = Get-Datastore -VMHost $_ | where {$_.Name -match "localstorage"}        if($ds){            Set-Location -Path $ds.DatastoreBrowserPath            New-Item $tgtName -ItemType directory            Set-VMHostAdvancedConfiguration -Name $configName -Value ('/vmfs/volumes/' + $ds.Name + '/' + $tgtName) -Confirm:$false            Set-VMHost -VMHost $_ -State 'Maintenance' -Confirm:$false            Restart-VMHost -VMHost $_ -Confirm:$false            Set-VMHost -VMHost $_ -State 'Connected' -Confirm:$false        }    }    Disconnect-VIServer -Server $_.Name}
    
    Set-PowerCLIConfiguration -DefaultVIServerMode $mode -DisplayDeprecationWarnings:$warn
    

    It uses the DatastoreBrowserPath that Vitali has suggested.

Maybe you are looking for