(){// Supply the state information required by the task.Threadwithstate TWS =New threadwithstate ("This report displays the number {0}.", 42 );// Create a thread to execute the task, and then// Start the thread.Thread t = new thread (New threadstart (TWS. threadproc ));T. Start ();Console. writeline ("main thread does some work, then waits .");T. Join ();Console. writeline ("independent task has completed;
Background: Documenting the process of deploying a JAR program in a Linux environment1 Deployment Process record 1.1 program structureThe main function here is in the Demrest2.java file.For ease of deployment, do the following two points:1 A dependent jar file is not included in the exported jar package2 The configuration file used by the program allows the user to customize it without placing it in the jar package.1.2 Exporting a JAR packageYou can export the normal jar package here. To facilit
When you try to install software on the IBM SmartCloud enterprise+, you may experience some potential problems. With this in mind, you need to consider the following alternative installation method, which uses Internet information Services Version 6 as an example.
The environment used in this article includes:
Internet Information Services (IIS) V6 32-bit
Using Microsoft Windows 2003/2008 Server as a virtual machine on the WMware Esxbox
Cygwin (installed on the Windows VM by default)
SmartC
Build an IB Fix development environment for IB Fix development, ibfix
Interactive Brokers (IB), a world-renowned Internet brokerage, opens an account at IB to trade a variety of global financial products (stocks, futures, foreign currency ...)
Many small Internet brokers in China (including some small start-up financial technology companies) mostly (not all) choose IB as the downstream brokers of US stocks (generally speaking: all U.S. shares are placed on the IB channel)
In most cases, apart fr
(1 );
}
}
// Declare a callback function. Note that the passed parameters must be of the same type as the function parameters in the example class.
Public Delegate void examplecallback (INT linecount );
// Case Master Class
Public Class Example
{
Public static void main ()
{
// Instantiate threadwithstate and pass the parameters. Note: The namespace reference of New examplecallback (resultcallback) and the passed parameters (resultcallback function)
Threadwithstate
Objective: To export a database on a computer and import it into a database on another computer using a data pump.
A the operation on the computer. EXPDP Data export
1, running CMD;
2, login database, input command: sqlplus system/password;
3, creating directory path: Create directory Backup_path as ' E:\APP\TWS\ORADATA\ORCLDV '; (Backup_path is a path name, can be named (must be an existing path), E:\APP\TWS
Install TSM software in Linux: unzip 1. Unzip the installation file, server and client 2. install packages such as libstdc, gcc, glibc, and compat. 2. enter the i686 directory cd i6863. install TIVsm-license-5.5.0-0.i386.rpm TIVsm-server-5.5.0-0.i386.rpm TIVsm-tsmscsi-5.5.0-0.i386.rpm these three packages 4. after installation, the storage pool volume (backup) may exist in the/opt/tivoli/tsm/server/bin directory. dsm archive. dsm spcmgmt. dsm) -- data
Install TSM software in Linux: unzip 1. unzip the installation file, server and client 2. install packages such as libstdc, gcc, glibc, and compat. 2. go to the i686 directory cdi6863. install TSM software in Linux: unzip 1. unzip the installation file, server and client 2. install packages such as libstdc, gcc, glibc, and compat. 2. enter the i686 directory cd i6863. install TIVsm-license-5.5.0-0.i386.rpm TIVsm-server-5.5.0-0.i386.rpm TIVsm-tsmscsi-5.5.0-0.i386.rpm these three packages 4. after
tivoli. li_db_session_t (
Dbname
Allsess
Activess
Timstap date)
Timstap)
To_date
To_date
To_date
To_date
To_date
To_date
To_date
To_date
To_date
To_date
To_date
To_date
To_date
To_date
To_date
To_date
To_date
To_date
To_date
);
Insert 4406727 rows of data. The entire table size is 312 MB.3.2 Create indexes in five scenarios
-- Local prefixed index type 1:
-- Local prefixed index type 2:
-- Local nonprefixed index type 1:
-- Local nonprefixed inde
Original: http://space.itpub.net/189512/viewspace-701939
BackgroundOracle 10.2.0.4 is running on a machine, and a full DB backup of Oracle is included with the TSM for database5.5.1, including an archive log.The Oracle 10.2.0.4 code is installed on the B machine. You want to restore A's database to B because there is a problem with the a machine hardware. Install the TSM for database 5.5.1, using the same TSM nodename, for example, Dpo.
1, no spfile, no control files, the most typical is not to
://www.CodeHighlighter.com/-->#! /Bin/sh
#====================================
# Yuanhui. He
# Khler@163.com
#====================================
While:
Do
Echo "Current DIR is" $ pwd
Stillrunning = $ (PS-Ef | grep "$ PWD/loader" | grep-V "grep ")
If ["$ stillrunning"]; then
Echo "TWS service was already started by another way"
Echo "kill it and then startup by this shell, other wise this shell will loop out this message annoyingly"
Kill-9 $ pidof $
passing. See the following code:
Using System;Using System. Threading;
// The ThreadWithState class contains the task to be executed and the method to execute the task.Public class ThreadWithState {// The attribute to be used, that is, the parameter to be passedPrivate string boilerplate;Private int value;
// Constructor Containing ParametersPublic ThreadWithState (string text, int number){Boilerplate = text;Value = number;}
// Method to be thrown to the thread for execution. There is no return
The following shell uses a while-do loop to check if the loader process is running and, if not, to start, so that the process of crashing the dead is restarted in time.Two points must be noted:
1, PS |grep a process must add its road strength, otherwise easily grep to the wrong result;2, must use-V to remove the grep command itself from the result, otherwise the result is not empty.
code is as follows
copy code
#!/bin/sh #===================== #YuanHui. He #
#=====================
While:
Todo
echo "Current DIR is" $PWD
stillrunning=$ (ps-ef |grep "$PWD/loader" |grep-v "grep")
If ["$stillRunning"]; Then
echo "TWS service is already started by another way"
echo "Kill it and then startup by the This shell, the other wise this shell'll loop out this message annoyingly"
Kill-9 $pidof $PWD/loader
Else
echo "TWS service is not started"
echo "S
tables 1 and 2.
To test, we created the required users and groups using IBM Tivoli Directory Server V6.3 as the LDAP repository. (LDIF script files that are used to create these users and groups are available from the downloads section of this article.) Then, we configured the WebSphere application server for this Tivoli Directory server so that the job scheduler could take advantage of the users and gr
#====================================# YuanHui. HE# Khler@163.com#====================================While:DoEcho "Current DIR is" $ PWDStillRunning = $ (ps-ef | grep "$ PWD/loader" | grep-v "grep ")If ["$ stillRunning"]; thenEcho "TWS service was already started by another way"Echo "Kill it and then startup by this shell, other wise this shell will loop out this message annoyingly"Kill-9 $ pidof $ PWD/loaderElseEcho "
How do I keep the service running? How can I ensure that the service is automatically restarted even if it is hung up? This is often a problem when you write a service program. In a Linux system, a powerful shell can handle such transactions with great flexibility.The following shell through a while-do loop, with Ps-ef|grep to check whether the loader process is running, if not run, then start, so that the crash hangs the process of re-started in time.Two points must be noted:1, PS |grep a proce
2. Install the TSM Client
Install all file sets in the folder
Modify the TSM client. profile fileExport dsm_dir =/usr/Tivoli/TSM/client/BA/binExport dsm_config =/usr/Tivoli/TSM/client/BA/bin/DSM. OptExport dsm_log =/usr/Tivoli/TSM/client/BA/bin
Modify the DSM. Opt and DSM. sys files of the TSM ClientThese two files are under/usr/
About WebLogic server reboot or log rotation causing server.log i node number change
A couple of days ago, my colleague asked me a question, that is, when the client was using Tivoli to analyze the WebLogic server log, when the server restarted, Tivoli went wrong, saying that Fileid is changed. It was suspected to be related to the Inodenumber of server log. The code for WebLogic server logging is not very
keychain application.
-To learn more about SSH, Carlos recommends O 'Reilly's SSH, The Secure Shell: The Definitive Guide (O 'Reilly Associates, January 1, 2001 ).
-The Snort intrusion detection system (IDS) is the best open-source product designed to detect and report unauthorized access or suspicious behavior. If you are planning to automate the signing and encryption of archive files, you must use an IDS.
-You can use GNU Privacy Guard (GnuPG), OpenSSL, and ncrypt to sign and encrypt the ar
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.