Script to collect information on an instance of rac oracle / Linux area normal conclusion?
Hi allI have been instructed by the disaster recovery team to get a small quick script of race, to see what oracle instances are in a box, if it is raised, listener is running, etc.
Normal, only one node instances so far, I've had success. I retrieve the data from the file/etc/oratab and parse try it with awk to get an ORACLE_SID and ORACLE_HOME and.
This script is run as a user to the dba group, or the oracle so that each instance I try login through SQL * more than connect / as sysdba and not a request to collect information for instance that I echo the screen to determine that the instance is high and connectable.
The problem I encountered, if there is an instance listed for a node in a RAC cluster... he can't see/etc/oratab entries are quite the same using dbca for RAC nodes as normal nodes.
For example, say I have a RAC cluster that rac3 and rac1 rac2 nodes.
From what I see... on the individual nodes, in the/etc/oratab entries only seem to put in for the cluster CCR, rather that say rac1. My script that tries to set the oracle sid and home and connect / as sysdba fails. If the entry has been made there as rac1, it should work, I think.
Can anyone make any suggestions for me to use with this script, so that I can know which instance of node is running, if CARS is located on the computer... and automatically find and connect similar to how I am doing with the unique databases using/etc/oratab
Is there a similar to/etc/oratab file that is used by the clusterware on the system?
Thanks in advance,
Cayenne
Published by: cayenne on April 15, 2009 12:57
Why don't doing by pmon... which I think does not work if she is down but up... you can just run something like:
ps - ef | grep - v grep | grep pmon | cut '_' f d 3
or... you could use the oracle_sid you get from oratab (dbname in this case... for example) and run the following:
srvctl status database-d $sid_from_oratab | grep 'hostname ' | AWK '{print $2} '.
Tags: Database
Similar Questions
-
Need powershell scripts to collect information from vm disk
Hello
I need two scripts to collect information from vm drive,
1 script to collect information vm disk mode
Expected results:
The virtual computer name. Name of ESX. Cluster name | VMDK name | Device label. disksizeInGB | diskmode
Disc-> Just need the info as persistent or independent_persistent mode
2. script to collect info RDM of Vm
Expected results:
The virtual computer name. Name of ESX. Cluster name | DeviceName | File name | Compatibility mode | Size
The first script
Get-VM | %{ $vm = $_ $vm | Get-HardDisk | %{ $_ | select @{N="VM";E={$vm.Name}}, @{N="ESX";E={$vm.Host}}, @{N="Cluster";E={(Get-VMHost $vm.Host | Get-Cluster).Name}}, @{N="VMDK";E={$_.Filename}}, @{N="Device Label";E={$_.Name}}, @{N="disksizeInGB";E={"{0:N1}" -f ($_.CapacityKB/1MB)}}, @{N="Diskmode";E={$_.Persistence}} } } | ft -AutoSize -Force
____________
Blog: LucD notes
Twitter: lucd22
-
CLI script can collect information RDM
I was unable to find it in the documentation. Y at - it a cmdlet or process that I can use to collect a list of virtual machines in a data center has attached RDM disks and info on these RDM disks, IE MONDAY, capacity, used (s)?
This is the RDM disks.
foreach($vm in (Get-Datacenter MyDC | Get-VM)){ Get-HardDisk -VM $vm -DiskType "RawVirtual","RawPhysical" | select @{N="VM";E={$vm.Name}},ScsiCanonicalName,CapacityKb }
Find the used disc space as far as I know is available on data warehouses.
Or you could ask to leave in guest OS
-
Need a powershell script to gather information from ESX host
Hello
I need a powershell script to collect the below given information host ESX to the Virtual Center. My VC:2.5 of the environment, the ESX hosts: 2.5, 3, 3.5
At present I have individual powershell scripts of a steamer to get these details. Would be more useful to have a single script. I tried VESI, but does not receive the report in the below in the format.
| ESX host name Version | Number | construction | manufacturer Model | Processor type | Number of physical CPUS | Number of cores | VMotion service IP Console IP | | County HBA | Physical NETWORK interface cards count
Thanks in advance!
So I'm at my wits end here.
It works for me and Robert also confirmed that it worked for him.
Although I don't see why this would solve the problem, you could finally try an upgrade to PowerShell v2 RTM.
____________
Blog: LucD notes
Twitter: lucd22
-
Need a powershell script to collect info patch esx
Hello
IAM looking for a powershell script that collects the result of "motion esxupdate" for all versions of esx host 3.5 in the Virtual center 2.5 version and exports to CSV file.
It should take input as virtual Center and collect all the information of ESX host, connect to esx hosts, run the esxupdate query and update of the CSV with results.
I got the code base of other scripts. I've pasted below. He collects only results for esx server in view of the need to modify the code for the above requirements.
-
$servers = "server0″", server1″
$account = "root".
$password = "password".
$servers | % {$a = plink - pw $password $account@$_ "esxupdate query"
{$server = $_}
-
Thanks in advance!
Have you tried running the script in the powershell console?
May be a problem with the vesi script editor.
Sent from my iPhone
On 19 March 2010, at 21:14, Sureshadmin<>
-
Msinfo32.exe generates an Error Message "cannot collect information.
Hello
I am running XP Prof with SP3 and made a scan with the perfect system optimizer and it did remove a lot of files he said were copies and since then, Information System says that it can collect Information, cannot access windows management instrumentation software. Windows Management files may have been moved or missing. I tried to use the administrative tools in the Management Console Microsoft and add snap - in following the instructions from microsoft on their site, but still did not help. Also tried to restore as soon as possible and the recovery of deleted files from the optimizer software. Nothing has helped so far. I am also on a network with my laptop which runs on Windows 7, but the have not enabled since I stupidly paid 39.99 for this software now appeasrs to have screwed up my computer. Restoration did do 1 restore and I tried 5 times and it said could not files to an earlier time which is an another prolbem I've had for a while with system restore doesn't work does not correctly. If anyone can help me I would really appericiate it. Thank you my friends.
PKBISHOP
Hi PKBISHOP,The error message occurs if the Windows Management Instrumentation (WMI) service is not started. This can happen if the service is disabled, if a dependent service is not started, or if a problem is preventing start the WMI service. The system information utility will be able to collect information that the WMI service is started.To correct this information to resolve this problem, see the link below. -
Running windows 7. WMI is running in the services. Msinfo32.exe does not work
in the program information system, on the right side in the box grey
said
Cannot collect Information
Unable to access Windows Management Instrumentation software. Management of Windows files may be displaced or missing.
I looked at other posts, tried patches, watched registry edit info and nothing seems to work
Why you give up your other post here:
You need to maybe just reset the Windows Management Instrumentation (WMI) repository.
In the box type cmd and click on the Start orb button / open a window as administrator command prompt:
At the command prompt window, type the following commands one at a time by pressing ENTER after each:
net stop winmgmt (stop the WMI Service)
Answer Yes to the warning message about the stop of the:
Security Center
IP Helper
Then in the box enter these commands one at a time:
/resetrepository of winmgmt (he will tell you that the WMI repository has been reset)
net start winmgmt (it can report the WMI Service is started - which is correct)
exit (close the command prompt window)
See how msinfo32 works now.
Note that this could take a long time (several to several minutes) for the msinfo32 command complete repository of Windows is set to zero and MOF is compiled:
If that's what you see, wait patiently to fill information.
Then don't forget to restart your system so that other important Services get restarted and check again msinfo32.
-
Information system may not collect information.
Unable to connect to this computer. Check that the Winmgmt service is running.My problem has been set by following the steps:
1. click on start-> type CMD-> right click on CMD of the result-> click on run as administrator2. type the command net stop winmgmt and press enter3. Open command prompt and click on start and type system32-> open the folder system32 in the result pane.4. in the system32 folder open Wbem and locate the repository folder5. right click on the repository, then click Rename6. change the name of the drop to Repository.old folder7. switch back to the command prompt and type net start winmgmt and press ENTER to run command8. close all windows and restart the computer and try to Msinfor32. -
{REQUEST] windows could not collect information to osimage
Hello guys I have a problem here. You see now that I have windows 8.1 and I just bought windows 7 ultimate. As im trying to install when I click setup then it says windows could not collect information to osimage install.wim does not exist. I saw some issues in some forum and somebody said that I have to copy the cd of windows 7 ultimate in my hard drive (C), but it still does not work. Guys do you know what im supposed to do? Thank you
UH sorry im not the expert. Could you me more as easier or something? And what is the cause of the error?
Faulty installation or DVD your DVD drive is faulty.
You do not have the ability to create a thumb / Flash drive to install Windows.
After you download if necessary. ISO file (see my previous post, follow the step #4).
(4) for instructions on creating a bootable USB key to install Windows 7:
Read: http://www.sevenforums.com/tutorials/2432-usb-windows-7-installation-key-drive-create.html
Or: http://arstechnica.com/business/2009/12/the-usb-flash-drive/Optional software to create a Bootable Windows 7 DVD
http://support.Microsoft.com/default.aspx/KB/977640J W Stuart: http://www.pagestart.com
-
My Windows 8 "your pc fell on problem, collecting information and restart."
Helloo everybody
I had a problem with my pc today though:
yesterday, I unplugged my PC power and changed the place of my PC and everything.
This morning when I pluged everything I pressed the power button on my PC, it boots up it shows me the logo of the screen and then "your Pc on a problem, collecting information and restart for you" I have installed 2 a 8 and the other 8.1 windows, none of them is ready to start
but before that I unplugged my PC, it worked very well.
I tried to do the automatic repair and it says 'auto repair Failled' I also tried to "restore my system" and still the same problem
I downloaded these girls to dump, please check the
I'm really grateful if someone can help me
idon't want to lose those 2 windows, and I don't want to format :(
Thank you!
dump girls:
https://SkyDrive.live.com/redir?RESID=54C1809ED8225CC1%21501
Salim98
The crash more recent was November 29 and was tied to a stake of fatal power which might have killed the HD
have you tried booting in safe mode? Tried to start the victory 8 dvd?
INTERNAL_POWER_ERROR (a0)
Power policy manager has encountered an unrecoverable error.
Arguments:
Arg1: 000000000000010, the disk subsystem has no properly read or write the part of hibernation
file.
Arg2: 000000000000000a
Arg3: fffffa8005a39340, POP_HIBER_CONTEXT
Arg4: ffffffffc0000185, NTSTATUS error code -
How to collect information of a multi-node apps R12 environment.
Hello experts,
What are the ways, I can collect information from a multi-node environment.
As if it is shared, etc. unified.Node 1:-database, Manager of competitor and Admin
Node 2:-forms & webApplication:-12.1.3 (R12)
database :-11.2.0.3.0
OS:-avalerps002dp SunOS 5.10 Generic_148888-05 sun4v sparc sun4vI'm new to the installation program.
Kind regards
RahulHello
Please check old thread:
APPL_TOP unified in R12 for the application tier of high availability?
Re: How to find applications are shared or not
Kind regards
Hafiz
-
How can I create database in the xi of adobe acrobat professional to collect information of forms to fill out?
Hey bellaj.jenson,
Please see the below mentioned KB doc for the same link:
Acrobat help. Create and distribute PDF forms
See also: data collection with forms (PDF Forms)
Hope these helps.
Kind regards
Ana Maria
-
script to collect 'Triggered alarms' 4 VC in a single report
Hi team,
I'm looking for a script to collect 'Triggered alarms' 4 VC in a single report. We use ESXi 4.1 worm in the VC.
Is it possible to collect all 4 VC triggered alarms in a report by acronym and automatically by email with an Excel report.
Thank you
Kind regards
Roze
Finally the script helped for my need below.
Hi looking for script to collect multiple vCenters triggered alarms below:
How to run these scripts: \Get-TriggeredAlarms - vc001, vc002 vc03 vCenters
Location of the output file: c:\temp\alarms.csv
Script:
______________________________________________________________________________
(param
[String []] $vCenters
)
Function Get-TriggeredAlarms {}
(param
$vCenter = $(throw "doit être spécifié un vCenter."),
[System.Management.Automation.PSCredential] $credential
)
If {($credential)
$vc = to connect-VIServer $vCenter - Credential $credential
}
else {}
$vc = to connect-VIServer $vCenter
}
If (! $vc) {}
Write-Host "Failure connecting to vCenter $vCenter."
output
}
$rootFolder = get-file-server $vc "data centers".
{foreach ($ta in $rootFolder.ExtensionData.TriggeredAlarmState)}
$alarm = "" | Select-Object VC, EntityType, alarm, entity, status, time, recognized, AckBy, AckTime
$alarm. VC = $vCenter
$alarm. Alarm = (Get-View-Server $vc $ta.) Alarm). Info.Name
$entity = get-view-server $vc $ta. Entity
$alarm. Entity = (Get-View-Server $vc $ta.) Entity). Name
$alarm. EntityType = (Get-View-Server $vc $ta.) Entity). GetType(). Name
$alarm. Status = $ta. OverallStatus
$alarm. Time = $ta. Time
$alarm. Recognized = $ta. Recognized
$alarm. AckBy = $ta. AcknowledgedByUser
$alarm. AckTime = $ta. AcknowledgedTime
$alarm
}
Disconnect-VIServer $vCenter - confirm: $false
}
Write-Host ('Get messages from {0}. vCenters' f - $vCenters.Length)
$alarms = @)
{foreach ($vCenter to $vCenters)
Write-Host "Getting alarms from $vCenter."
$alarms += get-TriggeredAlarms $vCenter
}
$alarms | Export-csv c:\temp\alarms.csv
__________________________________________________________________
-
Storage - EMC or NetApp training? -What is the opinion which continue to increase identification of Collect information?
I get a lot of job opportunities for VCPs with storage capacities. I work with the directors of storage on all commitments but don't go or experience. Which storage certification I should continue to allow me to work as a PCV with extra storage responsibilities? My experience has been with EMC, NetApp and 3Parr on fiber, NFS, and iSCSI. What training and certification provider would be better or at least the first to continue?
Thxs
Both are huge players in the world of virtualization and thus increase your VCP - I would lean more towards the EMC cert just because of the VCE (VMware, CIsco and EMC) company
-
Script to collect resources cluster HA
Hello
I need a powercli script which collect the following:
By HA-cluster:
An overview of the ESX servers
Each ESX Server:
An overview of shared data warehouses and size, total cpu and total memory.
How to combine the following cmdlets?
Get-cluster 'cluster ' | Get-VMHost | Select name, CPUTotalMHz, MemoryTotalMB
Get-cluster 'cluster ' | Get-vmhost | Get-Datastore. Select name, CapacityMB
Hi Vincent,.
I am pleased that you fixed. And thanks for the link. I didn't know this trick.
Best regards, Robert
Maybe you are looking for
-
UNKNOWN NAMES APPEARING IN THE SECTION 'SHARING' TOPIC @ WINDOW LEFT
I STARTED SEEING NAMES APPEARING UNDER THE HEADING IN THE LEFT COLUMN IN ANY WINDOW, I OPENED "SHARED." I HAVE A MAC MINI (END OF 2012), ROUTER NETGEAR, APPLE TV, BURNING AND A HP PRINTER 3 IN 1, USED FOR SCANNING. THE LAST THREE ITEMS ARE CONNECTED
-
IPad will not sync with iTunes on my laptop. Synchronization in iPpod settings will not work
MY iPad will not sync with iTunes on my laptop, the sync on my iPad button will not work. I have the latest updates on both.
-
How to put each item in a list on a line separate from the text (Applescript)
I'm working on a well-founded ApplescriptObjc application, and I need feedback on how to do something with a list. I've seen many ways to convert text files into lists online, but I have a list and you have to put each element on its own line. I was
-
Pirates? ! Help please!
ALSO, Yes, I visited a Torrent site, ONCE! My system has slowed to a crawl and re-booting ceased to be the answer. I could check my network settings and found that they had been changed. I saw is no longer the internet through my router, but someone
-
Property path to the current step running
HelloI see an "access point" error for a step property path, only when the step is a sequence that is a subsequence call. When these properties of the stage are access from the sequence of high level (the one that is open when the pass is started),