10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm trying to connect from Server A to Server B to transfer files from A to B. I'm using NUID A1 in Server A and NUID A2 in Server B. I have done the following the steps to setup password-less login.
1. Add the public key of A1 in A to the Authorized keys of A2 in B.
2. Add the public key of... (4 Replies)
Discussion started by: sanchid312
4 Replies
2. Shell Programming and Scripting
Hi All,
We are working on linux with putty terminal for file transferring using SFTP server...
here we want to know /We have Urgent Requirement
If SFTP connection is successfull then we should get .txt log file in target locaton as "Success/Failure"
Please provide batch script for above... (7 Replies)
Discussion started by: sravanreddy
7 Replies
3. AIX
Hi Techies,
I have a doubt.
ent0 Available Logical Host Ethernet Port (lp-hea)
ent1 Available Logical Host Ethernet Port (lp-hea)
ent2 Available Logical Host Ethernet Port (lp-hea)
ent3 Available Logical Host Ethernet Port (lp-hea)
ent4 Available... (4 Replies)
Discussion started by: jayadeava
4 Replies
4. Shell Programming and Scripting
Suppose i have 3 different servers say x,y and z.
Im running some process say ABC and 40 instances for the same is being created.
In load sharing suppose on
server x, 20 instances are running
server y, 10 instances are running
server z, 10 instances are running.
While checking the... (1 Reply)
Discussion started by: ankitknit
1 Replies
5. Solaris
hello all,
i have a question if i have two servers each one run an application i want to make a tunnel channel between the two servers the two application each one has a specific port .
for example server A has port 2001 and server B has port 2002
server A talk to server A using any... (1 Reply)
Discussion started by: maxim42
1 Replies
6. Shell Programming and Scripting
Hi,
I am running a shell script which will spawn the telnet and login.
But sometimes, the telnet session itself is not getting spawned.
My requirement is, if the telnet session is not spawned, the user must be notified that it failed.
Is there any command to capture the status of telnet... (2 Replies)
Discussion started by: merin
2 Replies
7. Shell Programming and Scripting
Hello,
I am looking for a way for a server to launch a connection command to one of the other servers where the connection command has already embedded in it a server name, user name and a password. (2 Replies)
Discussion started by: LiorAmitai
2 Replies
8. Red Hat
Hi,
I want to kill TCP connections which have status as TIME_WAIT & no PID
(as per the output of the "netstat - p" command).
Is there any command/utility available to kill connections to a specific port or IP address.
The problem is that these connections don't have process ID (see... (4 Replies)
Discussion started by: Davinder31may
4 Replies
9. Shell Programming and Scripting
hi,
Say me the command to check the status of server. whether its up or down (11 Replies)
Discussion started by: satheeshkr_cse
11 Replies
10. Shell Programming and Scripting
Hi friends,
I'm newbie to shell script. I wanted to create a shell script which able to write a result for all the telnet connection status. For example, from this machine I want to test the telnet connection (total 100+ servers) with this machine.
Any idea how to write this shell script?... (16 Replies)
Discussion started by: yhcheong
16 Replies
MYSQLND_MS_XA_BEGIN(3) 1 MYSQLND_MS_XA_BEGIN(3)
mysqlnd_ms_xa_begin - Starts a distributed/XA transaction among MySQL servers
SYNOPSIS
int mysqlnd_ms_xa_begin (mixed $connection, string $gtrid, [int $timeout])
DESCRIPTION
Starts a XA transaction among MySQL servers. PECL/mysqlnd_ms acts as a transaction coordinator the distributed transaction.
Once a global transaction has been started, the plugin injects appropriate XA BEGIN SQL statements on all MySQL servers used in the fol-
lowing. The global transaction is either ended by calling mysqlnd_ms_xa_commit(3), mysqlnd_ms_xa_rollback(3) or by an implicit rollback in
case of an error.
During a global transaction, the plugin tracks all server switches, for example, when switching from one MySQL shard to another MySQL
shard. Immediately before a query is run on a server that has not been participating in the global transaction yet, XA BEGIN is executed on
the server. From a users perspective the injection happens during a call to a query execution function such as mysqli_query(3). Should the
injection fail an error is reported to the caller of the query execution function. The failing server does not become a participant in the
global transaction. The user may retry executing a query on the server and hereby retry injecting XA BEGIN, abort the global transaction
because not all required servers can participate, or ignore and continue the global without the failed server.
Reasons to fail executing XA BEGIN include but are not limited to a server being unreachable or the server having an open, concurrent XA
transaction using the same xid.
Please note, global and local transactions are mutually exclusive. You cannot start a XA transaction when you have a local transaction
open. The local transaction must be ended first. The plugin tries to detect this conflict as early as possible. It monitors API calls for
controlling local transactions to learn about the current state. However, if using SQL statements for local transactions such as BEGIN, the
plugin may not know the current state and the conflict is not detected before XA BEGIN is injected and executed.
The use of other XA resources but MySQL servers is not supported by the function. To carry out a global transaction among, for example, a
MySQL server and another vendors database system, you should issue the systems SQL commands yourself.
Note
Experimental
The feature is currently under development. There may be issues and/or feature limitations. Do not use in production environments.
PARAMETERS
o $connection
- A MySQL connection handle obtained from any of the connect functions of the mysqli, mysql or PDO_MYSQL extensions.
o $gtrid
- Global transaction identifier (gtrid). The gtrid is a binary string up to 64 bytes long. Please note, depending on your charac-
ter set settings, 64 characters may require more than 64 bytes to store. In accordance with the MySQL SQL syntax, XA transactions
use identifiers made of three parts. An xid consists of a global transaction identifier (gtrid), a branch qualifier (bqual) and a
format identifier (formatID). Only the global transaction identifier can and needs to be set. The branch qualifier and format
identifier are set automatically. The details should be considered implementation dependent, which may change without prior
notice. In version 1.6 the branch qualifier is consecutive number which is incremented whenever a participant joins the global
transaction.
o $timeout
- Timeout in seconds. The default value is 60 seconds. The timeout is a hint to the garbage collection. If a transaction is
recorded to take longer than expected, the garbage collection begins checking the transactions status. Setting a low value may
make the garbage collection check the progress too often. Please note, checking the status of a global transaction may involve
connecting to all recorded participants and possibly issuing queries on the servers.
RETURN VALUES
Returns TRUE if there is no open local or global transaction and a new global transaction can be started. Otherwise, returns FALSE
SEE ALSO
Quickstart XA/Distributed transactions, Runtime configuration, mysqlnd_ms_get_stats(3).
PHP Documentation Group MYSQLND_MS_XA_BEGIN(3)