aix

Why this warning from IBM XL C/C++ compiler?

爱⌒轻易说出口 提交于 2019-12-01 01:09:55
问题 Here's a minimum code example that illustrates the problem: #include <iostream> class Thing { // Non-copyable Thing(const Thing&); Thing& operator=(const Thing&); int n_; public: Thing(int n) : n_(n) {} int getValue() const { return n_;} }; void show(const Thing& t) { std::cout << t.getValue() << std::endl; } int main() { show(3); } This yields the same error: int main() { show( Thing(3) ); } IBM XL C/C++ 8.0 compiler under AIX emits these warnings: "testWarning.cpp", line 24.9: 1540-0306 (W)

Oracle下载地址

穿精又带淫゛_ 提交于 2019-11-30 23:21:09
ORACLE11GR2 Oracle Database 11g Release 2 (11.2.0.1.0) for Microsoft Windows (64-bit) http://download.oracle.com/otn/nt/oracle11g/112010/win64_11gR2_database_1of2.zip http://download.oracle.com/otn/nt/oracle11g/112010/win64_11gR2_database_2of2.zip http://download.oracle.com/otn/nt/oracle11g/112010/win64_11gR2_client.zip http://download.oracle.com/otn/nt/oracle11g/112010/win64_11gR2_grid.zip Oracle Database 11g Release 2 (11.2.0.1.0) for Microsoft Windows (32-bit) http://download.oracle.com/otn/nt/oracle11g/112010/win32_11gR2_database_1of2.zip http://download.oracle.com/otn/nt/oracle11g/112010

How to overcome an incompatibility between the ksh on Linux vs. that installed on AIX/Solaris/HPUX?

六眼飞鱼酱① 提交于 2019-11-30 14:42:22
I am involved in the process of porting a system containing several hundreds of ksh scripts from AIX, Solaris and HPUX to Linux. I have come across the following difference in the way ksh behaves on the two systems: #!/bin/ksh flag=false echo "a\nb" | while read x do flag=true done echo "flag = ${flag}" exit 0 On AIX, Solaris and HPUX the output is "flag = true" on Linux the output is "flag = false". My questions are: Is there an environment variable that I can set to get Linux's ksh to behave like the other Os's'? Failing that: Is there an option on Linux's ksh to get the required behavior?

Extract xml tag value using awk command

橙三吉。 提交于 2019-11-29 04:27:49
I have a xml like below <root> <FIToFICstmrDrctDbt> <GrpHdr> <MsgId>A</MsgId> <CreDtTm>2001-12-17T09:30:47</CreDtTm> <NbOfTxs>0</NbOfTxs> <TtlIntrBkSttlmAmt Ccy="EUR">0.0</TtlIntrBkSttlmAmt> <IntrBkSttlmDt>1967-08-13</IntrBkSttlmDt> <SttlmInf> <SttlmMtd>CLRG</SttlmMtd> <ClrSys> <Prtry>xx</Prtry> </ClrSys> </SttlmInf> <InstgAgt> <FinInstnId> <BIC>AAAAAAAAAAA</BIC> </FinInstnId> </InstgAgt> </GrpHdr> </FIToFICstmrDrctDbt> </root> I need to extract the value of each tag value in separate variables using awk command. how to do it? You can use awk as shown below, however, this is NOT a robust

Unable to connect to AIX(Unix) box with SSH.NET Library - Error : Value cannot be null

為{幸葍}努か 提交于 2019-11-29 04:19:47
I am trying to connect to an AIX box and execute some commands using SSH.NET library. The following is the code snipplet KeyboardInteractiveAuthenticationMethod kauth = new KeyboardInteractiveAuthenticationMethod(username); PasswordAuthenticationMethod pauth = new PasswordAuthenticationMethod(username, password); ConnectionInfo connectionInfo = new(ConnectionInfo(servername, 22, username, pauth,kauth); SshClient sshClient = new SshClient(connectionInfo); sshClient.Connect(); SshCommand sshCommand = sshClient.RunCommand("mpstat"); Console.WriteLine(sshCommand.Result); Console.ReadKey(); I get

How to return memory from process to the OS

北战南征 提交于 2019-11-29 02:30:52
I have an issue with memory management in various operating systems. My program is a server that does some processing that could take a few GB of memory. After that, it releases most of the memory while it waits for a few hours until another request arrives. On AIX and Solaris, I observe the following behavior, When I free memory, the memory is not returned back to the operating system. The amount of virtual memory used by a process always increases - never decreases. The same is true for the physical memory, up to its limit. Thus it appears that we use all this memory in sleep mode as well.

Managing error handling while running sqlplus from shell scripts

怎甘沉沦 提交于 2019-11-28 23:39:37
问题 #!/bin/sh echo "Please enter evaluate database username" read eval_user echo "Please enter evaluate database password" read eval_pass echo "Please enter the database name" read db_name LOGFILE=shell_log.txt $ORACLE_HOME/bin/sqlplus -s /nolog <<-EOF>> ${LOGFILE} connect $eval_user/$eval_pass@$db_name WHENEVER OSERROR EXIT 9; WHENEVER SQLERROR EXIT SQL.SQLCODE; DBMS_OUTPUT.put_line('Connected to db'); EOF if [ $? != 0 ] then echo "The upgrade script failed. Please refer to the log results.txt

Why can “%.10f” % Decimal(u) emit a string with a literal colon?

大憨熊 提交于 2019-11-28 21:03:55
When formatting a number to be printed, 12 digit numbers are being formatted with a colon immediately after the dot. Why is this happening? This is Python 2.7 on an AIX system. $ uname -a ; /opt/bin/python2.7 AIX myserver 1 6 00F6A5CC4C00 Python 2.7.12 (default, Sep 29 2016, 12:02:17) [C] on aix5 Type "help", "copyright", "credits" or "license" for more information. >>> '{0:.10f}'.format(123456789012) '123456789011.:000000000' >>> from decimal import Decimal >>> u=123456789012 >>> print "%.10f" % Decimal(u) 123456789011.:000000000 Further information: It is not every 12 digit number: >>> for x

Changing an AIX password via script?

限于喜欢 提交于 2019-11-28 17:04:20
问题 I am trying to change a password of a user via script. I cannot use sudo as there is a feature that requires the user to change the password again if another user changes their password. AIX is running on the system. unfortunately, chpasswd is unavailable. I have expected installed, but I am having trouble with that also. here is what I thought would work echo "oldpassword\nnewpasswd123\nnewpasswd123" | passwd user However once run the script I am prompted with please enter user's old

ksh88 changing single quotes to double quotes inside heredocs?

房东的猫 提交于 2019-11-28 10:09:05
I seem to be running into an issue that's specific to ksh88 that's changing single quotes to double quotes, but only under certain situations involving heredocs and command substitution. Here's an example: #!/bin/ksh # This example works correctly echo "Example 1:" cat <<EOF The 'quick' brown fox "jumped" over the lazy dog. EOF echo # This example is broken echo "Example 2:" var=$(cat <<EOF The 'quick' brown fox "jumped" over the lazy dog. EOF) echo "${var}" echo # This example works correctly echo "Example 3:" var=`cat <<EOF The 'quick' brown fox "jumped" over the lazy dog. EOF` echo "${var}"