Unix Perl Script To verify a Up and Running Database on Different Server

Unix Perl Script To verify a Up and Running Database on Different Server
Hi
can any one please tell me a solution to verify a Up and Running Database on Different Server other than the one where we run the unix perl script? The perl script should check if the database is running else it must exit.
Thanks much
Kiran

The other best solution would be Enterprise Manager, load the EM on the other machine and install oracle intelligent agent on all the boxes where oracle is running and problem solved.
FTP is only a File Transfer Protocol, you can upload/download the files but cant execute them.
Apart from EM the best way is load oracle client and make connection to all the databases.
AND There are some free oracle monitoring software available I dont know much about them but one is NAGIO (if I am not wrong), try that if you want.
BTW whats the problem in monitoring the boxes from the same physical box, means just schedule a script using cron on the same physical box where oracle is to either make connection using SQLPLUS or check the processes using "ps" command and if there is anything wrong then send alert from that box only. In this way there is no need to maintain a central monitoring server.
Daljit Singh

Similar Messages

  • How do I run a unix command to quit ARD if it is running on a remote server I am trying to access?

    how do I run a unix command to quit ARD if it is running on a remote server I am trying to access?

    killall "Remote Desktop"
    Regards.

  • Backup few partitions from a database and restore them on different server

    I have a Database called Datamart. Datamart database has multiple partitioned tables and the database has different filegroups and partitions. I would split the database on to three servers with one-third of the database on each.
    If the database has 1500 partitions, then 0-499 on server1 Datamart database, 500-999 on server2 Datamart database and 1000-500 on server3 Datamart database.
     

    See
    http://aboutsqlserver.com/2014/06/24/partial-database-backup-and-piecemeal-restore-in-microsoft-sql-server/
    http://msdn.microsoft.com/en-us/library/ms177425.aspx
    http://msdn.microsoft.com/en-us/library/ms190984.aspx
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Perl Script to Verify a Database is up and running

    Hi there,
    Can any one suggest a way how to verify if the database is up and running from unix using a perl script? If not ,ofcourse the script will fail. Getting the following error ..
    ERROR: ORA-12203: TNS:unable to connect to destination
    Any suggestions are most valuable to me.
    Thank you,
    Kiran

    Cant we test it with any user other than sysdba? Yes..
    $dbh = DBI->connect("dbi:Oracle:", 'some_user', 'password') or die "Connect E
    rror $DBI::errstr\n";
    can we add this in the existing perl scripts? yes you can but DBI and DBD::Oracle need to be added to perl
    How to execute this? Create a script with your perl code and make it executable e.g. chmod 700 myscript.pl
    How do we know we have DBI module is present to use it? Once you create a script and try to execute it you will get errors on your use DBI statement.
    DB server and unix should be on the same machine right? In this example yes... But you can connect to any db through sqlnet using the tnsnames or with DBI you can do dynamic connections as well. So it will completly bypass tnsnames.ora.
    I would strongly suggest looking at "programming the Perl DBI"
    HTH
    Frank

  • Pro COBOL / Precompile and run with Micro Focus Server Express in Unix AIX

    I have Oracle 11g R2 DB and client installed in Unix AIX machine. I would like to make a simple test pgm to :
    1. the precompile using procob on the sample program
    2. compile it through Micro Focus Server Express
    3. run the sample
    This sample pgm will just open a predefined Oracle DB, read and write a record to a table.
    I see there is a demo_procob.mk file in precomp/demo/procob2. Not sure how to use it. Any help out would be helpful.
    Thanks.

    Thanks for the quick reply.
    I think the examples are installed and that is the reason I see the sample1..10. I can do procob on the sample1.pco to convert it to a pure cobol pgm and then compile through microfocus server express. But I can't run it as it gave Load error: file 'sqladr'; error code 173, pc=0, call=1, seg=0 173 called program file not find in drive/directory.
    Is this the right step and where can I find the sqladr and other modules?
    should this be placed in the COBDIR or PATH?
    Anything else I need to set?
    thanks.

  • Oracle user .profile change and running Database

    We have 1 Oracle Database (9i) running on AIX Server for long time. Now we are making some room to create second database. We would like to make change to Oracle User .profile , so it would prompt to specify ORACLE_SID upon login under oracle to UNIX. Also we would add new entry in oratab for new database. However we will not be creating this database for another couple of weeks. Could this cause some trouble for currently running Database? Could existing backup jobs, stats job and other monitor jobs fail on existing running DB?
    Let me know if you need more information to help us on this question

    This is very unlikely, though it would depend on how you developed the jobs you discuss. Without these jobs: no problem.
    What I do with multiple databases on Unix boils down the following.
    In /etc/profile, I set up a env var DEFDB
    In .profile of Oracle I set ORACLE_SID to the value of this DEFDB, and I set
    ORAENV_ASK to "NO". I run oraenv (which is in /usr/local/bin), and I leave ORAENV_ASK set.
    I don't want oraenv asking for a database during login, and I want to issue
    export ORACLE_SID=<some value> prior to running oraenv manually.
    Sybrand Bakker
    Senior Oracle DBA

  • Error trying to get LiveCycle ES up and running with JBoss/SQL Server

    I am having an error trying to get LiveCycle ES Trial up and running with JBOSS and SQL Server.  The LiveCycle ES and JBOSS engines are running on Windows Server 2003 SP #2 under VMWare Server with 2 vCPUs/1 GB vRAM.  The SQL Server database is SQL 2005 x86-64 with SP #2 on a separate server.<br /><br />I have carefully followed all of the instructions for setting up jboss, modifying all of the appropriate XML files, downloading the SQL JDBC drivers and putting it in the %JBOSS_HOME%\server\all\lib directory, etc.  I tried both the SQL JDBC 1.1 and 1.2 drivers and they both fail.<br /><br />The error I get is on startup of jboss using<br />cmd /c start /low run.bat -c all<br />(and yes I also just tried run.bat -c all)<br /><br />it runs along file until it gets here<br />2008-06-18 16:00:03,123 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=IDP_DS' to JNDI name 'java:IDP_DS'<br />2008-06-18 16:00:03,123 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=EDC_DS' to JNDI name 'java:EDC_DS'<br />2008-06-18 16:00:03,373 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'<br />2008-06-18 16:00:03,373 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=adobe_JmsQueueXA' to JNDI name 'java:adobe_JmsQueueXA'<br />2008-06-18 16:00:03,389 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=adobe_JmsTopicXA' to JNDI name 'java:adobe_JmsTopicXA'<br />2008-06-18 16:00:03,482 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'<br />2008-06-18 16:00:03,514 WARN  [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Throwable while attempting to get a new connection: null<br />org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: com.microsoft.jdbc.sqlserver.SQLServerDriver; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: com.microsoft.jdbc.sqlserver.SQLServerDriver))<br />     at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnecti on(LocalManagedConnectionFactory.java:164)<br />[ lots more error scrolls ]<br /><br />this repeats multiple times<br /><br />I can see that it does acknowledge that I put the sqljdbc.jar file in the appropriate directory from the boot.log<br /><br /><snip><br />15:59:44,856 DEBUG [SARDeployer] deployed classes for file:/C:/jboss/server/all/lib/sqljdbc.jar<br /><snip><br /><br />please help!

    APJ<br />We ran into many issues setting up a very similar environment.  In the end we had to use a specially configured JBoss, supplied by Adobe, to make a connection with the SQL database.  Since you have SQL w/ SP2 on it, you will need the 1.2 driver for sure, but you may want to talk to Adobe support about obtaining the version of JBoss they supplied us with.  The Adobe Support Reference Number is: 1-52422366.<br /><br />Even with the alternate JBoss we had to perform the following steps to get the configuration right:<br /><br />1.     Install Livecycle from the installation DVD.  Follow the instructions for installing LiveCycle supplied by Adobe, including all pre-installation instructions.  Make sure NT service is installed with parameters, and dont run Configuration Manager.<br />2.     Rename %LIVECYCLE_INSTALL%\jboss to %LIVECYCLE_INSTALL%\jboss_orig<br />3.     Extract the zipped new, good instance of JBoss (supplied by Adobe)  to the %LIVECYCLE_INSTALL%\ folder  <br />4.     Go to the %LiveCycle_Home%\deploy folder and make a copy of the file adobeimport_SQLServer.jar file.  Rename the copy of the file to aadobeimport_SQLServer.jar.  There seems to be a bug in configuration manager that looks for a file with the extra  a appended to the beginning of the file name, where that file normally isnt there.  Make sure that the adobeimport_SQLServer.jar file is still in this folder as well.<br />5.     Edit the data source file (%JBOSS_HOME%\server\all\deploy\ adobe-ds.xml) to point to the correct database for the LiveCycle Server.<br />a.     Update the <connection-url>, <user-name>, and <password> tags with the correct database connection information.<br />b.     If BAM is to be used on the server (this should be done on the Production server) then delete both lines that state Remove this line, if BAM is used.<br />6.     Go to the login configuration file (%JBOSS_HOME%\server\all\conf\login-config.xml), and edit the section labeled <application-policy name = "MSSQLDbRealm">.<br />a.     Change the Principal, UserName, and Password options to point to the correct database.  These will be the same as what was changed in the adobe-ds.xml file from the step above.<br /><br />7.     Edit the system variables on the server.  Add to the Path variable %JBOSS_HOME%\bin, and add the variable JBOSS_HOME with the path to the JBoss folder on the server. (D:\Adobe\LiveCycle8\jboss  for example)<br />8.     From windows services start the JBoss for Adobe LiveCycle ES v8.0 service.  Review the JBoss server log (%JBOSS_HOME%\server\all\log\server.log) to verify that JBoss starts without throwing any exception errors (A document timeout exception is the only acceptable exception for starting the service).  <br />9.     Run the LiveCycle Configuration Manager (%LiveCycle_Home%\ConfigurationManager\bin\ConfigurationManager.bat).  <br />a.     Select to Not Upgrade fromLiveCycle 7.x.<br />b.     Check all boxes on the Solution Component Selection screen.<br />c.     For the Task Selection screen check all the boxes except for the Import LiveCycle ES Samples into LiveCycle ES if on the production server. <br />d.     Run through the rest of the configuration manager interface to setup the LiveCycle server with the new application server.  Follow the steps supplied by Adobe for this.<br />10.     Once configuration manager has completed, reboot the server, and verify that JBoss starts up again without any exceptions or errors (again a document timeout exception is an acceptable exception.  Look at the server log to verify this (%JBOSS_HOME%\server\all\log\server.log)).

  • Performance Issue : Application and oracle database in different sub-net

    Hi,
    We have an 24/7 application that uses oracle 11g R2 as the back end database. The application sits on a separate box and the oracle database sits on a separate box.
    Unless we keep both the machines in the same sub-net, the throughput of the application becomes very slow and kind of un-usable in performance setups.
    In fully loaded conditions, the application will be inserting around 12K records per minute into the database. In such scenario, restarting the application takes longer time (more than 2 hours) when the oracle server is on a different network as compared to the application. In real world, the oracle will be in a separate dedicated network and the DBAs resist to have an application in the same sub-net.
    Is there a way we can keep the application and the oracle database server in a different network (but present in same location) and achieve same throughput/performance when both servers are on same subnet.
    Thanks,
    Krishna

    871609 wrote:
    Hi,
    We have an 24/7 application that uses oracle 11g R2 as the back end database. The application sits on a separate box and the oracle database sits on a separate box.
    Unless we keep both the machines in the same sub-net, the throughput of the application becomes very slow and kind of un-usable in performance setups.
    In fully loaded conditions, the application will be inserting around 12K records per minute into the database. In such scenario, restarting the application takes longer time (more than 2 hours) when the oracle server is on a different network as compared to the application. In real world, the oracle will be in a separate dedicated network and the DBAs resist to have an application in the same sub-net.
    Is there a way we can keep the application and the oracle database server in a different network (but present in same location) and achieve same throughput/performance when both servers are on same subnet.
    Thanks,
    KrishnaHave the DBAs explained why they resist having the apps and db servers in the same subnet? Every place I've ever worked configured it exactly that way ... db and apps servers on different machines in the same subnet.

  • Essbase and database in different server

    Hi,
    It is possible to put the ESSBASE in one server and database(oracle , SQL Server) in another server? It is possible, what are the things i want to do?
    Thanks,
    PC

    Hi,
    Assuming that you've got powerful boxes for this purpose, if you are going to use database server just as a repository database server for say, Planning, then that's fine to have essbase and rdbms on the same server. However, it's not advisable to have essbase on a server where a heavy datawarehouse is co-hosted.
    Alp

  • Want to connect to client's server with ARD, and run ARD on the server.

    Hi, I have Apple Remote Desktop and use it to monitor, update and service clients servers. I also have client's buy ARD to use internally to access, update and maintain computers on the network.
    When I try to access/sign-in to a server with ARD, when it's running ARD, it will not connect.
    What is the proper way to ARD into a server and still be able to run ARD on the server to connect with and work on other computers on the local network?
    Thanks in advance.

    On the client server install of ARD, open ARD, select preferences, select security tab, and make sure "allow control of this computer when ARD is running" is selected.

  • Need a script to delete user files and run on logout.

    Hi folks!
    I'm a total Mac novice so forgive me if I'm vague on anything here. I work in a library and we have recently acquired an iMac running Mountain Lion. The unit is primarily for use by Visually Impaired users however sighted folks can use it as well.
    What I need is something that will delete any files created/downloaded by the sighted users but that will not delete anyone else's files. I tried just using the Guest Account however that also deletes all the system preferences for that account including the dock setup which I need to stay the same.
    If possible I would like this to run on logout.
    For additional points anyone who can also find me something that will run automatically when the users sign in and will sign them out after 30 minutes would super spectacularly awesome.
    Thanks people!

    That being said, if you you still really want to do this you can create a logout hook and write a shell script to remove the files.  See "About Daemons and Services", Appendix B on writing a logout hook.
    But a far easier way is to create Account's login item that will cause a shell script to be launched to delete the files.  You can encapsulate the shell script so it runs as an application that can be added to the Login Items.  One such encapsulator is Platypus.
    Note, rather than delete them, if you want to ensure all the specific plists have specific settings, then create a master set of them and copy the master set into the Preferences directory (being careful to observe ownership and permissions settings of course).

  • [solved] script/keybinding to launch terminal and run command

    the answer is probably simple. but here's the idea.
    i use cmus as my music player. at the moment, i have to open a terminal and then type 'cmus'. i'd like to set up a keybinding to run cmus. (incidentally, i'm trying to do this in i3.)
    the code
    exec cmus
    doesn't work, presumably because 'cmus' has to be loaded from within the terminal. (is that right?) what's the syntax for passing on the command 'cmus' to the terminal? what's the best way to do this?
    Last edited by anti-destin (2012-03-15 23:52:40)

    bindsym mod+c exec urxvtc -name cmus -e cmus
    urxvtc => Your terminal here if you use something else. Most support -name and -e. Please read their man pages.
    -name => Useful for xprop. It assigns the WM_CLASS which can be used for tagging clients.
    man urxvt
    -e command [arguments]
    Run the command with its command-line arguments in the urxvt
    window; also sets the window title and icon name to be the basename
    of the program being executed if neither -title (-T) nor -n are
    given on the command line. If this option is used, it must be the
    last on the command-line. If there is no -e option then the default
    is to run the program specified by the SHELL environment variable
    or, failing that, sh(1).
    Last edited by Earnestly (2012-03-15 19:19:25)

  • Does anyone have a perl script that can submit a proxy request to iplanet proxy server with basic authentication? We want to do content verification using BigIP.

     

    Hi, Dave.
    If you're using the BlackBerry browser, you can't configure anything to bypass the RIM servers.  I believe you may do so by using the Opera browser, but I haven't tried it myself so cannot comment with authority.
    I hope that clears up the issue for you. 
    - If my response has helped you, please click "Options" beside my post and mark it as solved. Clicking the "thumbs up" icon near the bottom of my response would also be appreciated.

  • Implementing e-Recruitment and HR on same/different server

    Hi Friends,
    We are in the process of implementing e-Recruitment for an Organisation with approx. size of 15,000 employees. This will also include Internal Job Postings.
    I have the following questions in this respect:
    1. Should E-Recruitment 6.0 and HR ECC 6.0 be implemented on the same server or seperate servers ? What are the pros and cons in both the
    scenarios ??
    2. Should the E-Recuitment portal server be different from the HR-ESS
        server or shall it be implemented on top of ESS portal 7.0 ??
    3. Which server scenario is recommended ?
    Regards,
    Shashank

    Hi Shashank
    1.  Its not mandatory that ECC & E recruitment shd in the seperate servers.  But because of few security reasons, they will be maintained seperately.  For example:  E recruitment will be accessed by the external people also, who want to apply for external job posting.  So, there is a risk for ECC for exposure of data like employee master data, financial details etc., actually this risk is not direct, but by any chance that someone might hack to get the data - just to avoid the chances, thats all.
    2.  The Erecruitment & ESS can be in the same server for internal job posting
    3.  Better suggestion would be ECC & E rec would be in seperate servers.
    Regards
    Sirisha

  • Primary and Standby Database on different versions

    Dear Friends,
    We have a situation now where we have successfully completed the oracle upgrade of primary database to 10.2.0.4
    but could not proceed further with the physical standby database.
    Can we have standby database in its current version (9.2.0.8) and its primary database on (10.2.0.4)
    and will it apply the logs shipped from primary without any issues ?
    Appreciate your earliest valuable responses.
    Best Regards,
    Viswanathan Subramanian

    > Can we have standby database in its current version (9.2.0.8) and its primary database on (10.2.0.4)
    No, this is not supported.
    Markus

Maybe you are looking for

  • Time Machine fails when trying to backup

    I have a macbook running 10.5.8.  I am trying to use time machine with my iomega external hard drive but I keep getting an error that the backup failed.  I have been successful with backups in the past with this same hard drive.  Any ideas what's goi

  • AVCHD edit in PE10 share to DVD or Blue Ray

    I am currently editing a project in AVCHD and plan on making DVD and BR discs.  Not all the people who want this footage have blue ray players or HD TVs.   The footage is of sporting events with lots of action and camera movement.    What I have foun

  • Substitution variable in a select statement

    I have a cursor as follows: cursor c2 is select'word',cuel.curricular_component_name,cuel.curricular_element_name,phase,cuel.curricular_type,student_contact_hours,faculty_name,objective,cuel.curricular_component_id,cuel.curricular_element_id from v_c

  • Change in 2nd Local Currency (Hard Currency 40)

    Hello, We have maintained 2nd local Currency as Hard currency 40, we want to remove that, we have removed and tested (in test client) don't see any issue with that. We can switch off/on on 2nd local currency (hard currency) at any point of time. Befo

  • Customizing error in work schdule rule A F2 40 1501

    Dear All, In my test portal when i want to apply leave from ESS -> working time > leave request then i m getting "Customizing error in work schdule rule A F2 40 1501 " This error is not coming for every employee but most of them getting this error .