howto
Using SQL * Plus on Command Line in Ubuntu
This blog post is an HowTo "Setup SQL*Plus to work on BASH" The commands illustrated in this howto are tested on Ubuntu 9.10 with Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production Installed.
What is SQL * Plus ?
SQL*Plus is a command line SQL and PL/SQL language interface and reporting tool that ships with the Oracle Database Client and Server software. It can be used interactively or driven from scripts. SQL*Plus is frequently used by DBAs and Developers to interact with the Oracle database.
Prerequisite
Oracle Database 10g Express Edition Release 10.2.0.1.0 Installed
Once you have Oracle 10g Installed successfully you can go to
Applications > Oracle Database 10g Express Edition > Run SQL Command Line
and successfully run all your SQL PL/SQL easily but using SQL*Plus directly on BASH is the real fun, Below are the steps which will enable you to use SQL*Plus on BASH
1) set ORACLE_HOME
4 Steps to add Ubuntu Systems to Active Directory Setup
The IT environment today in any organization is a sort of a mixture where many different Operating Systems are used, and Windows Active Domain Controller exists in majority of such organization.
Below is a 4 step How to on "Connecting Linux (Ubuntu) Systems to Active Directory Setup"
1) Update the Software Repositories
sudo apt-get update
2) Install Required Packages (likewise-open)
sudo apt-get install likewise-open
3) Join The Domain using Domain Administrator Account, replace Administrator with Domain Administrator Username and fqdn..domain with the Fully Qualified Domain Name
sudo domainjoin-cli join fqdn.domain Administrator
4) Update the Startup Scripts
sudo update-rc.d likewise-open defaults
Restrict Multiple Logins in Domain (AD)
I have always asked this question to my colleagues as to "How do i restrict Multiple Logins in an Active Directory Setup"
So here is the answer
Create a file when a user login and check for such file each time the login request is received if file exists logoff, if file is not present Login and create the file. Its that simple
Below is the step by step process to achieve this using Group Policy
Assumptions:
Key Based Authorization with SSH
Using remote shells is all time favourite but remembering those many passwords is a pain so here are the steps to login using SSH without putting a password :)
1. Create a public ssh key, if you haven’t one already. Look at ~/.ssh. If you see a file named id_dsa.pub then you obviously already have a public key. If not, simply create one.
ssh-keygen -t dsa should do the trick. Please note that there are other types of keys, e.g. RSA instead of DSA.
2. Make sure your .ssh dir is not publically writable
# chmod 700 ~/.ssh

















Recent comments
1 week 4 days ago
5 weeks 3 days ago
6 weeks 4 days ago
7 weeks 8 hours ago
7 weeks 10 hours ago
10 weeks 12 hours ago
12 weeks 11 hours ago
13 weeks 16 hours ago
17 weeks 1 day ago
18 weeks 5 days ago