|
||||
Thursday, September 17, 2015
NSSQL : Nullable columns
NSSQL : Block buffering
|
||||||
|
||||||
Saturday, September 05, 2015
PATHWAY Domains and ACS in ACTIVE-ACTIVE Solution
2) If a NONSTOP System fails, further transactions are routed instantly by ACS to application processes running in surviving nodes. Thus, recovery from a system failure in instantaneous.
3) Since all of the domains in a Pathway Domain are independently configured, upgrades may be made with ZERO downtime by taking down a domain, upgrading it , returning to service and rolling the upgrade through the other domains at the same time.
To avoid a single point of failure, that portion of each serverclass resident in a NonStop server node should have its own local application database.

Tuesday, September 01, 2015
HP NonStop AutoSYNC
Using a configured list of files that are important to the
application environment, AutoSYNC
and directories; and partitioned files. Files necessary to start and
maintain applications also are handled by AutoSYNC. Included are
configuration files, batch files, object/source files, OSS files, BLOBs,
TACL macros, and Obey files.
executing a TACL command, compiling a SQL program, or starting
a program such as a batch job. AutoSYNC also supports automatic
software distribution and can be used to initially load systems being
brought online by synchronizing the files of the new systems with
those of a primary system.
Sunday, August 30, 2015
HP Nonstop TMF - In Detail
For applications that are TMF-enabled, TMF guarantees the consistency and the correctness of the Enscribe and NonStop SQL databases maintained by the applications.
It accomplishes this ability by ensuring that either all of the operations included in the application’s transactions are applied to the database, or none are. Transactions are durable, surviving any fault in a NonStop server, by safe-storing all changes to the database in a mirrored, diskbased audit trail. The TMF audit trail is the heart of TMF.
An application is not informed of the completion of a transaction until its changes have been safe-stored in the audit trail. After a system recovers from a failure, the audit trail’s contents are used to roll back any incomplete transactions. The audit trail can be used to restore files that have been corrupted or that have been accidentally deleted. TMF allows databases to be reorganized online.
Backups can be written to physical or virtual tape without application downtime. Archived audit trails can be accessed to restore corrupted or deleted files while the system is fully operational.
Because transaction durability is guaranteed by the audit trail, the actual data in the databases does not have to be written to disk immediately. Instead, updated data blocks can be batched and written to disk at the convenience of the operating system. Thus, application processing capacity and response times are significantly enhanced by TMF. TMF provides an interface which allows it to support the management of transactions distributed across a heterogeneous network of other systems.
As will be described in upcoming sections, the TMF audit trail plays a key role in many of the HP NonStop data replication facilities. It provides a log of all database changes to be replicated to other systems.
HP NonStop Remote Database Facility (RDF)
HP NonStop Remote Database Facility (RDF)
HP NonStop RDF extends the NonStop server’s fault tolerance to disaster recovery.
Using the audit trail generated by NonStop TMF and operating-system level services, RDF instantly replicates audited database changes to identical target databases on one or more target systems.
Thus, in the event of a failure of a primary system, the application can be recovered to a backup system within minutes and with minimal data loss. RDF will back out any incomplete transactions on the target system when the target system takes over processing.
RDF can be configured to protect individual audited files or tables, the contents of one or more subvolumes, or entire disk volumes. It can replicate changes to one or more target systems.
Alternatively, it can replicate changes from many source databases to a single target database to provide a single backup for multiple production systems. RDF is useful for upgrading hardware and software with no application downtime. The backup system is taken offline and upgraded. Application processing is then redirected to the upgraded backup system, and the other system is upgraded. Though applications on the target system cannot open databases for write access that are being replicated by RDF, they can read the target databases. On the target system, other applications can be running, replicating their database changes to other target systems. If the backup system has to take over processing, the backup applications open the application databases for write access before continuing application processing. There is a small time latency between when transactions are executed on the source system and when they have been successfully replicated to the target system.
Thus, transactions in the replication pipeline may be lost due to a primary system failure. If this loss is unacceptable, RDF implements a Zero Lost Transaction (ZLT) feature. With ZLT, the audit trail disk mirrors are split; and one mirror is located up to 100 kilometers from the production system. No transaction completes until it has been successfully written to the remote mirror. The remote mirror is available to a backup system if the backup system needs to take over processing with no lost transactions.
HP NonStop AutoTMF
HP NonStop AutoTMF
Many legacy applications have been written without using the HP NonStop TMF transaction manager.In such instances, HP NonStop AutoTMF supports existing application unaudited Enscribe files, allowing applications to be TMF-protected without the need for coding changes or recompiling.
AutoTMF permits such applications to take advantage of the TMF transaction protection of audited databases and to benefit from the performance improvements delivered by TMF.
AutoTMF can be configured to audit only one or any subset of applications or files. Once a file is placed under AutoTMF protection, AutoTMF will dynamically determine effective and efficient transaction boundaries within the application.
These delineated transactions are then written to the database under the TMF transaction manager. By instrumenting an application with AutoTMF, changes to unaudited files are written to a TMF audit trail.
This is a requirement for replicating the data in unaudited files to other databases.
Few Nonstop Fundamentals - V
CHECKPOINT
A checkpoint is a Nonstop specific Term relevant only to Nonstop Process Pairs. The purpose of a checkpoint is to ensure that the two process have identical process state so that if there is a single point of failure, the backup process can take over the completion of processing without the requesting process needing to do any exception handling.The purpose of checkpoints are to make primary process failures transparent.
Checkpoints occur on critical region boundaries to ensure all-or-nothing processing process semantics.
The primary process sends checkpoints on critical region boundaries to the backup and waits for acknowledgement before proceeding to the next critical region step.
Its upto Application Architects to determine what the critical regions of a process are.
Saturday, August 29, 2015
Few Nonstop Fundamentals - IV
Massively Parallel Processing(MPP) VS
Symmetical Multi-Processor(SMP)
Few Nonstop Fundamentals - III
IPM
IPM means Inter Process Message, is a type of message that is sent across a message bus to tie the processors of an MPP system together.In the context of Nonstop, this is a message that is sent between any two processes within a given Nonstop Node or across an EXPAND network on Nonstop Nodes.
These messages are unsolicited requests that are sent to the $RECEIVE message queue of a specified process by another Nonstop Process.
On Nonstop X, InfiniBand is the bus fabric.
RDMA

RDMA means Remote Direct Memory Access, is a capability specific to ServerNet and Infiniband architectures where by the memory of a given CPU can be directly referenced by a process in another CPU without the CPU that owns the memory being involved in the I/O operation.
There is no context Switching, Interrupt or Trap Handling needed to service the I/O.
Everything happens in user mode during the process execution time slice for maximum efficiency.
Few Nonstop Fundamentals - II
Multi Core Processors
Multi Core processors are a more recent evolution of CPU architectures where by sophisticated chip logic and compilers allow processing to be broken into threads of critical regions and submitted to multiple cores simultaneously.Instead of processor needing to run at ever faster clock speeds, cross-section computing power can be aggregated across multiple processors to achieve the same effect.
TMF
TMF Means Transaction Monitor Facility.Transaction monitor is a mechanism that can ensure ACID properties of a given database update or transactional all-or-none execution consistency respectively. In Nonstop Systems, this transaction monitor is achieve through TMF subsystem.
Its fully integrated with IPM and file system.
Few Nonstop Fundamentals - I
Nonstop Process Pair
A Nonstop Process Pair refers to
- a primary process residing in a particular CPU
- and a designated backup CPU residing in another CPU.
They share the same process name and but have a difference Process ID(CPU:PIN).
They can be configured to be amneisa backup processes(i.e they know nothing about the state of other process) or
they communicate with each Other to preserve state using checkpoints.
Thursday, April 12, 2007
TACL Security Parameters
#PMSEARCHLIST
- A SearchList is list of subvolumes that the TACL software uses to find a program file when the program is invoked using a file name that is not fully qualified.
#TACLSECURITY
It returns a pair of chars , that represent a TACL security.
The first character represents the criterion that determines whether ot not to allow a process to open the TACL process's $RECEIVE for writing.
The second character determines whether to allow an opener with a qualifying name to transfer data to or from #SERVER.
Tuesday, April 10, 2007
Process Structure in Tandem
OS divided memory into six sections for Application/system processes.
1. System code space
2. System Libary space
3. System Data Space
4.Application code space
5.Application Data space
6. Application Library space
Code Space - It contains program instuctions and constants from the OBJ file.
Data Space - It is used by a process to store and manipulate Data.
Library Space - Its used by a process to store any routines loaded from libraries
Monday, April 09, 2007
Things to remember in Object Oriented programming
Important things to remember:
Good programs are
Flexible
Robust
Extensible
Easy to understand
Easy to maintain
An object oriented program is a collection of interacting objects.
Good OO programs are characterized by
Encapsulation
information hiding
modular design
Reliance on public method contracts not internal implementation
Loose coupling between objects.
High levels of abstraction -- polymorphic behavior
A program starts by creating one object whose job it is to create all objects that are initially needed.
Objects can create other objects.
Objects can be disposed and cease to exist.
Objects do not need names to function.
Objects should only know the minimum of what they need to know and should do only the minimum of what they need to do.
This is called "loose coupling". Don't make "god objects".
Objects should expose the minimum information and methods needed by the rest of the program. This is another aspect of loose coupling.
When using an object, do not concern yourself with how its methods are implemented, only on what that class defines as the function of that method. Thus a method involves more than just code, but also a "contract" with the rest of the program.
Thursday, April 05, 2007
Gathering System Information
numbers and the current SYSnnn, use the SYSINFO Command.
On Nonstop K series system, sysinfo command may not work properly.
We can use RLSEID file which contains system numer and release version.
ex1 :-
FUP COPY $system.sys01.rlseid
FUP COPY $system.sys04.rlseid
Saturday, April 23, 2005
How to showing the equivalent Tandem (NSK) process id of the OSS ?process?
jojo@\rat:~ $ ps -l
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME
CMD
000 0002 5300 318308420 1 - 175 - 0,347 - - #ptcaamr
00:00 /bin/-sh
000 2002 5300 234422338 318308420 - 175 - 0,491 - - #ptcaamr
00:00 ps
You could also use the '-o addr' option:
jojo@\rat:~ $ ps -o addr,command
ADDR COMMAND
0,347 /bin/-sh
0,410 ps -o addr,command
Binder Timestamp Versus SQL Compile Time
We found this information after much experimentation. The last modified time of a SQL program shows when it was last SQL-compiled - it does not reflect when the source language program was actually compiled. (The opposite is also true: the Binder timestamp does not reflect when the SQL-compile was performed but this information is much less important.) We ran into some problems where the wrong version of a program was used, but it was not possible to tell this from the last modified time information. Using the Binder you can obtain the date and time of both the source language compilation and the SQL-compilation.
To show the source language compilation time, issue the following command:
BIND SHOW SET TIMESTAMP FROM object
To determine the SQL-compilation time, use the following undocumented option of the Binder's INFO INCLUDE command:
BIND FILE object; INFO INCLUDE SQL_OBJ SQL-OBJECT, DETAIL
Try this in tandem oss -
Copy and paste the following and check it out for yourself..
echo ' 82 43/25 43+65P80P82P73P76P32P70P79P79P76P10P ' dc