Tag Archives: HOWTO

Power Shell: Remote session

This is a very common activity for any system administrator to remotely connect a computer and perform the administrative tasks. PowerShell offers an excellent opportunity to do exactly the same.

To remotely connect to any computer use the below command in the PowerShell

Enter-PSSession -ComputerName XXXX -Credential YYYY

Here XXXX is the computer name or IP of the remote computer and YYYY is the user name with which you want to login. This delivers the remote PS session to the remote computer if the given computer is in TrustedHosts list of WINRM. If not Powershell throws an exception as below;

image

In that case, we need to add the remote computer to the trusted hosts of WINRM. To do that, issue the below command;

winrm s winrm/config/client '@{TrustedHosts="RemoteComputer"}'

Here the “RemoteComputer” is the name or IP of the computer to which you want to connect.

image

Now execute the Enter-PSSession command to invoke a remote PS session to the remote computer.

image

Now you have the remote command shell (Power Shell)

Advertisements

Oracle, Installation issues – Part 1 – Error in invoking target ‘install’ of makefile SomeName.mk

This is one of the common issues that I get during the installation of Oracle on Linux box. Though there are enough resources available to get through this issue, I am just putting them together. I normally get such issue on two files when they are getting processed.

  1. ins_emagent.mk
  2. ins_ctx.mk

ins_emagent.mk, To fix this issue, do as mentioned below;

  • Open the file in VI editor or any other editor located at, “$ORACLE_HOME/sysman/lib/ins_emagent.mk
  • Search for “$(MK_EMAGENT_NMECTL)
  • Replace it as “$(MK_EMAGENT_NMECTL) -innz11″
  • Save the file
  • Click on “Retry” on the pop-up from Oracle installation.

You will find many useful things in the forum thread located here

ins_ctx.mk, To fix this issue, follow the below lines;

  • Remove any file or folder under “$ORACLE_HOME/lib/stubs” by issuing the command “rm -rf $ORACLE_HOME/lib/stubs/*
  • Take a backup of existing ins_ctx.mk file by issuing the command “cp $ORACLE_HOME/ctx/lib/env_ctx.mk $ORACLE_HOME/ctx/lib/env_ctx.mk.orig
  • Open the ins_ctx.mk file in VI or any editor
  • Find “LINK=$(LDCCOM)” at around line no 154
  • Change it into “LINK=$(LDCCOM) –Wl,–no-as-needed
  • Save the file
  • Click on “Retry” on the pop-up from Oracle installation.

The source oracle thread for this post is located here