Sponsored Content
Top Forums Shell Programming and Scripting need script for activate and deactivated databases in server Post 302095184 by krishna176 on Saturday 4th of November 2006 01:42:09 AM
Old 11-04-2006
need script for activate and deactivated databases in server

Hi all,

i am using below command to find the running datases, bases this command i need a (shell/korn)script for which databases are running and which databases are not running in one file. i need out put below format.

Kindly help to me. its very critical issue for me. i dont have script knowledge.


command : #ps -ef |grep pmon


databases
----------------

SREDEV1
SREDEV2
SREDEV3
SREDEV4
SREUAT2
SREUAT3
SREUAT4
SREUAT5
SREUAT6
SREUAT7
SREQA1
SREQA2
SREQA4
OREDEV1
COEDEV
REP_DB
MRTDEV1
RICDEV3A
RICPROD2
ODSUAT1
----------------------


OUTPUT

STGDEV1 RUNNING
*****STGDEV2 NOT RUNNING*******
STGDEV3 RUNNING
STGDEV4 RUNNING
******STGUAT2 NOT RUNNING******
******STGUAT3 NOT RUNNING******
******STGUAT4 NOT RUNNING******
---------------------------------------------


THANKS & REGARDS
KRISHNA MURTHY
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how do i activate php on linux....

i have activated mysql, and apache on my redhat 9 box, i went to mr BASH and wrote a php script, and it wouldn't execute. any help????????????????????????????????????? is there something that i need to activate??????? i have RUBY on there too,does it matter or no??? ... (2 Replies)
Discussion started by: mbabeli
2 Replies

2. UNIX for Advanced & Expert Users

activate and deactivate

hi all by using gethostbyname, i can know whether the net is available or not. it is working fine when i activate or deactivate in neat. the problem is when i remove cable(netcable) it is not working proparly, i would like to know it. am using fedora5, AMD can u please help me . thank... (3 Replies)
Discussion started by: munna_dude
3 Replies

3. SCO

How to activate/use networkcards SCO Open Server

Hi, in our business we have a formerly (few years ago) installed computer with an openserver SCO 5.05 there are 3 network cards in it. one on board and two 3Com-cards Looking with ifconfig (or scoadmin) they seemed to be installed correctly. IP-Adress, netmask broadcas looks OK. But no... (3 Replies)
Discussion started by: klex
3 Replies

4. Shell Programming and Scripting

Activate all Linux services script

Now i'm up to making a script from which you could activate all Linux services without being an expert. It's gonna be a powerful tool, I'll look forward to make it able to change the port which the service is assigned to. But I need some help, post some script to activate services and I'll fusion... (8 Replies)
Discussion started by: Dax01
8 Replies

5. AIX

Migration DB2 V8 databases to Power7 server

hi Guys, I just wondering if someone has gone through this process before. We are about to migrate all our current LPARS from a Power6 server to a new Power7 server. The only concern we have is that we are runing a few DB2 V8 databases on AIX 5.3 and basically DB2 v8 is been out of support for... (2 Replies)
Discussion started by: arizah
2 Replies

6. Shell Programming and Scripting

Activate and deactivate function within a ksh script

Hi, I have written a function which will blink a text "Scanning...". Now in the main script when I am doing the scan in the server I want to call this function so that user will see a blinking text on the screen and at the same time script will proceed will the scan function. Once scan is... (2 Replies)
Discussion started by: suhasingale
2 Replies

7. Shell Programming and Scripting

script to find oracle databases that are not in cluster

I need to create a script to list all the databases that are in cluster environment. The reason is that there are databases which are not in under cluster control and we need to identify those. The easiest way to identify is: clrt list (if SUNW.oracle_server:6, SUNW.oracle_listener:5 are not... (0 Replies)
Discussion started by: misterx12345
0 Replies

8. Shell Programming and Scripting

Passwordless login gets deactivated after some time

Hi Friends, I was successfully able to login passwordlessly to server 1.1.1.2 from server 1.1.1.1 by following the below steps. I had already generated the keys using (ssh-keygen -t rsa) once and i am assuming i do not have to do that again. ssh id@1.1.1.2 mkdir -p .ssh cat... (8 Replies)
Discussion started by: srkmish
8 Replies

9. Shell Programming and Scripting

Automation script for Oracle queries for two different Databases

Hi Team, I am Oracle Databse developer. I am currently working on two databases. DB1 and DB2. in DB1 I have a Select query which will return 100 records. In Db2 I have a Select query which also return 100 records. In these two tables ( in different Schemas) we have a common column. ... (2 Replies)
Discussion started by: vasuvv
2 Replies
platform::shell(n)					       Tcl Bundled Packages						platform::shell(n)

__________________________________________________________________________________________________________________________________________________

NAME
platform::shell - System identification support code and utilities SYNOPSIS
package require platform::shell ?1.1.4? platform::shell::generic shell platform::shell::identify shell platform::shell::platform shell _________________________________________________________________ DESCRIPTION
The platform::shell package provides several utility commands useful for the identification of the architecture of a specific Tcl shell. This package allows the identification of the architecture of a specific Tcl shell different from the shell running the package. The only requirement is that the other shell (identified by its path), is actually executable on the current machine. While for most platform this means that the architecture of the interrogated shell is identical to the architecture of the running shell this is not generally true. A counter example are all platforms which have 32 and 64 bit variants and where a 64bit system is able to run 32bit code. For these running and interrogated shell may have different 32/64 bit settings and thus different identifiers. For applications like a code repository it is important to identify the architecture of the shell which will actually run the installed packages, versus the architecture of the shell running the repository software. COMMANDS
platform::shell::identify shell This command does the same identification as platform::identify, for the specified Tcl shell, in contrast to the running shell. platform::shell::generic shell This command does the same identification as platform::generic, for the specified Tcl shell, in contrast to the running shell. platform::shell::platform shell This command returns the contents of tcl_platform(platform) for the specified Tcl shell. KEYWORDS
operating system, cpu architecture, platform, architecture platform::shell 1.1.4 platform::shell(n)
All times are GMT -4. The time now is 02:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy