I have a bash script running on a server to capture and process the Logs.
The script is invoked by an utility for processing the Logs. After processing the Logs the
state of the Logs should be stored in db2 table located in some other server.
say, if i have shell script on 110.88.99.10 and db2 on 110.88.99.11..
I need save the processed result to db2.. Any suggestions?
It seems that you need to install the DB2 client: IBM data server access. Once you have installed, you configure the remote instance and database (catalog TCPIP Node and catalog database), and then you can integrate db2 commands (db2 insert ... - log result) in your script.
Related
I am running a postgresql database on AWS ec2 machine and scheduling the backup of the database every night at 12:00 a.m. by crontab which executes a shell script containing all the commands to backup the data. The problem is, I want to do it without stopping the database service. Please help!
https://www.postgresql.org/docs/current/static/app-pgdump.html,
pg_dump is a utility for backing up a PostgreSQL database. It makes
consistent backups even if the database is being used concurrently.
pg_dump does not block other users accessing the database (readers or
writers).
You run it without stopping the service
I am running a job on informatica cloud. It picks up a file from a server (remote) and dumps the data into salesforce. I want to run post processing commands from informatica cloud on the source file which is present in the remote server after the informatica job finishes. Is it possible?
Files need to present in the Agent installed machine.
Post processing command file cannot be present in remote location.
I am trying to use the zkCli.cmd client utility to create a node on a remote zookeeper server from DOS command line directly (i.e. without going into the client utility itself). Is this possible?
I have tried the following:
D:\apps\zookeeper-3.4.6\bin>zkCli.cmd -server 192.168.1.3:2181 create /test-node test-data
But it doesn't create any nodes on that zookeeper server.
My final aim is to be create nodes on remote zookeeper server via a .bat file directly for example.
Thanks,
PM.
I was also having same issue faced on linux, than I found that you can create a znode by provide its data value :
create -s /ha/masternode "highavailability"
I am working on Postgresql 9.2 streaming replication and I have finished setting up on the master and on the standby I want to set up the parameters in recovery.conf file.
But I can not get the file so I have created a new file 'named recovery.conf' and copied all the contents of recovery.conf.sample file and edited the parameters.
I saved it and when I start the postgresql service, it gives error
"service on local computer started and stopped....."
But when I remove recovery.conf file the service starts.
I need help.
I'm trying to run a .bat file after my stored procedure has done running. The purpose of the batch file is to create logs based on the code in the stored procedure. But I don't know how to run a .bat or even an exe file using PL/SQL Oracle.
The oracle scheduler can execute OS programs (on the DB server), and you can create a scheduled jobs from pl/SQL.
Look at the documentation of DBMS_SCHEDULER package - http://docs.oracle.com/cd/E11882_01/appdev.112/e25788/d_sched.htm#i1000363