determining Linux system memory consumption and availability

to determine the system memory consumption within Linux, the following bash commands can be used from the terminal:

free –m
egrep --color 'Mem|Cache|Swap' /proc/meminfo

image

Advertisements

determining size of folders in linux

within the terminal Linux will not display the complete folder and file sizes traversed below the folder, but only the folder size of the folder itself:
image
to display the complete size occupied by the folder and all sub folders and files below the folder similar to windows explorer, the following command can be used:

du -sh /opt/oracle/obiee/

image

define alias for starting/stopping Oracle BI

For starting and stopping of Oracle BI 11g the OPMN services was used. The usage of OPMN for starting and stopping the Oracle BI 11g services has also been described in a previous posting.

With Oracle BI 12c, OPMN is not used further anymore. The scripts to start Oracle BI can be found in the following directory:

/opt/oracle/obiee/user_projects/domains/bi/bitools/bin

image

To start the Oracle 12c instance the following command can be used:

./start.sh

image

Within linux a alias can be created to call the start script without navigating to the directory each time. To create the alias the bashrc needs to be edited using the following command:

gedit ~/.bashrc

image

this opens the bashrc file using the gedit editor to add the following lines at the bottom of the file:

alias bistart='/opt/oracle/obiee/user_projects/domains/bi/bitools/bin/start.sh'
alias bipsstart='/opt/oracle/obiee/user_projects/domains/bi/bitools/bin/start.sh -i obips1'
alias bistop='/opt/oracle/obiee/user_projects/domains/bi/bitools/bin/stop.sh'
alias bipsstop='/opt/oracle/obiee/user_projects/domains/bi/bitools/bin/stop.sh -i obips1'
alias bistatus='/opt/oracle/obiee/user_projects/domains/bi/bitools/bin/status.sh'

image

after this the file needs to be saved and the bashrc needs to be executed to take effect:

. ~/.bashrc

image