Escolar Documentos
Profissional Documentos
Cultura Documentos
gunzip file_name
Example:gunzip XYZ_1.0_5.tar.gz
2.2) To untar the file:-----------------------------tar -xvf file_name
Example:tar -xvf XYZ_1.0_5.tar
3) To run the strings for the spawand program:------------------------------------------------------------strings -a (shell_script_file_name) > (logfile.log)
Example:strings -a GLPURGE > /home/partners-home/hex/preddy/phani1.log
3.1) Basic grep command:----------------------------------Example:grep 'DROP index' adwork001.log > /home/partners-home/xyz/preddy/dropindex.txt
Note:- grep command is just like the search for some specfic word in your windows file.
In Windows Operating System, we use the (CTRL+F) and then we give the word we want to
search. Similarly, grep is used for UNIX or LINUX Operating system. In the above Example,
I am searching for the 'DROP index' Word in adwork001.log file. And I want all the finding of
this search stored in some file. So, I have given the path and file name where it should
save.
4) Specfic to some project:------------------------------------To check the number lst files:----------------------------------------Example:ls -altr *.lst | wc -l
Note:- If some folder have some specfic extension files, then we can count the number of
that specfic extension files then we can use the above command. In the above example, I
am searching for the 'lst' extension files count.
To check the number of sql files with hit files :-----------------------------------------------------------grep '\.sql' *.lst | wc -l
Note:- Say, we have some .sql files names in all the lst files in some folder. Then we can
use the grep command to count the sql file names.
To check the number of files with hits in the lst file:-----------------------------------------------------------------grep 'Number of files with hits : [1-9]' *.lst
Note:- You can also give the count of the files with the range. In the above example, I have
givne the range from 1 to 9. If it find any number from this range then, it will get in the
count.
To create the file of the complete module :-------------------------------------------------------grep '\.sql' *.lst > lst_sql_'module_name'.txt
7.1) For specfic session we can change the variable value:------------------------------------------------------------------------setenv variable_name variable_value
Example :- The following was the current value.
INSTANCE_ENVID=XYZ12
(Used the following command to check the value (setenv | grep OBT)).
setenv OBTADMIN_ENVID OBT_12
The above command has changed the value of the variable.
--------------------------------------------------------------------OBTADMIN_ENVID=OBT_12
Note:- If you exit from the session and then variable value will be revert back.
8) To know the path of the log and out files of the application:----------------------------------------------------------------------------->>cd $APPLCSF
There you will have the log and out folders.
You can also try the following command to know the value of the APPLCSF variable.
env | grep log
9) Turn-on the application server:---------------------------------------------./oraWebAndForms.sh start Instance name
Example:-
1. cd $FND_TOP/patch/115/bin
2. ./ojspCompile.pl --compile --flush -p 2
(You can check if you are able to open the application or not). If you are still facing the
issue then try rebounce the application and see if it resolve the issue).
3. /home/applmgr/oraWebAndForms.sh bounce xyz12
12) Converting all the tabs to space in the file:----------------------------------------------------------By setting the following options in your ~/.vimrc file,
when you use tabs, spaces are actually entered into the file,
although it "feels" like there are tabs because backspaces work as they would with tabs.
You'll never have to worry about differing tabstop standards again.
Try it out, I promise youll be completely sold!
set softtabstop=4
set expandtab
set shiftwidth=4
Note also that if you want to convert a file with tabs to all spaces, set the above options and
then use:
:retab!
13) To know the Operating system on server (unix):----------------------------------------------------------------->uname
Example:----------2007.08.06-3:18:03 preddy@oscar[6]/home/partnershome/xyz/phani/xyz_23Jul/abc/la/utils > uname
HP-UX
14) To know the Operating system on server from database:--------------------------------------------------------------------------begin
dbms_output.put_line('Port String: '||dbms_utility.port_string);
end;
15) Admin utility to compile all the invalid objects:----------------------------------------------------------------i) This utility is avilable for the applmgr user. Use the following command to login with
applmgr user.
>>sudo su - applmgr
ii) Choose the Intance and then use the following command to run the adadmin utility.
>>adadmin
{ Note:- It will ask for the $APPL_TOP path. If the default path is not the correct one then
provide the correct path.
It will ask for the Log file name. (Default name willl be (adadmin.log)).
It will ask if you can be notified by email if a failure occurs. (Default will be set for NO).
It will ask for the Batchsize (Default is 1000).
It will ask for the correct database name.
It will ask to enter the password for your 'SYSTEM' ORACLE schema.("manager" will be the
password).
(manager password will be only one you enter manually. Rest of things you take the default
values.)
It will ask to enter the ORACLE password of Application Object Library (default will be
[APPS]).
}
iii) To will give the menu with different options.
----------------------------------------------------We will choose the "Compile/Reload Applications Database Entities menu" option. It will be
3 option normally.
iv) To will again give the other set of menu optins.
-----------------------------------------------
We will choose "Compile APPS schema" option to compile all the Invalid objects in APPS
schema.
(Note:- You can also use $ORACLE_HOME/rdbms/admin/utlrp.sql (which will compile all
invalid objects thru SVRMGRL.)).
17) To know apps password:-------------------------------------cd $ORACLE_HOME/reports60/server
more CGIcmd.dat
You will find userid=APPS/apps_pass@Instance_name
Note:- If you have the FTP access for server files. Then we can know the Apps password.
18) QUOTA:--------------------Say employees are allocated a certain amount of disk space on the file system for their
personal files, say 1000Mb. If you go over your quota, you are given some 'n' days to
remove excess files.
To check your current quota and how much of it you have used. For that you can use the
following command.
> quota -v
19) DF:-----------To find out how much space is left on the fileserver, use the following command.
> df .
20) DU:------------The du command outputs the number of kilobyes used by each subdirectory. Useful if you
have gone over quota and you want to find out which directory has the most files. From
your home-directory, use the following command.
> du -s *
The -s flag will display only a summary (total size) and the * means all files and directories.
21) GZIP:--------------This reduces the size of a file, thus freeing valuable disk space. This is compress the file. Is
it similar to the Winzip in the Windows Operating system.
Example:> ls -l phani.txt
note the size of the file using ls -l , then to compress phani.txt, use the following command.
Command
Meaning
ls
ls -a
mkdir
make a directory
cd directory
cd
change to home-directory
cd ~
change to home-directory
cd ..
pwd
cp file1 file2
mv file1 file2
rm file
remove a file
rmdir directory
remove a directory
cat file
display a file
less file
head file
tail file
wc file
command1 |command2
sort
sort data
who
man command
whatis command
apropos keyword
ls -lag
command &
^C
^Z
bg
jobs
fg %1
kill %1
ps
kill 26152