This blog is primarily intended for the beginners of Oracle Apps.Here, I would like to share some of my design and development work with Oracle Applications community.Feel Free to share your tips , tricks and scripts.Please contact me for "Oracle Apps Technical Trainings".
1)I know the name of a UNIX command, but I don't know what it does?
Use the 'whatis' command
whatis will give a brief description of the command
Example:
$ whatis grep
grep grep (1) - search a file for a pattern
2)I know what a UNIX command does, but I can't remember the name?
Use 'man -k'
This will do a keyword search of the man pages
Example:
$ man -k grep
egrep egrep (1) - search a file for a pattern using full regular expressions
fgrep fgrep (1) - search a file for a character string
fmlgrep fmlgrep (1f) - search a file for a pattern
grep grep (1) - search a file for a pattern
nisgrep nismatch (1) - utilities for searching NIS+ tables
3)What are .o files? .a files?
When a programmer writes a program, he begins by writing the code in a programming language. This 'source code' is kept in a text file. When he is ready to build the program, he runs the source code text through a compiler. This translates the source code into 'object code'. Object code is in a format that is understandable by the machine. ('Machine language') Note that object code is not portable across platforms. The same source code compiled on a Solaris machine will produce a different .o file when compiled on a HP-UX machine. All object files (.o, .a, .so) cannot be copied across different platforms.
When all the object code is compiled, the programmer next collects all the object files, and runs them through the linker. The linker basically collects all the object code, along with any other necessary code, and produces an executable (or 'binary') Object code can also be collected into a library file, or archive. (.a file) This file is created by the 'ar' command. It just collects all the object code into one file, and adds a table of contents to it. Library files can be linked into an executable the same way as .o files. Oracle delivers its code (except for the NT platform) as .o or .a files. These files are run through the linker to produce executables.
4)What are .so files?
.so files contain object code like .a and .o files. However, these libraries are not linked in when the programmer creates the executable. Instead, they are loaded in when the program runs. This allows the library to be shared among multiple programs, hence the name 'shared libraries' (on Windows, these are called DLLs) If a program cannot find the shared libraries it needs, it will not run. See also the questions on ldd and LD_LIBRARY_PATH.
5)How do I tell an HP10.20 object file from an HP11.0 object file?
The preferred way to tell whether an object was built with HP-UX 10.20 or HP-UX 11.0 is use the odump command.
No comments:
Post a Comment