Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

Free Oracle Tips

HTML Text

 Home
 E-mail Us
 Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB   


 

 

 


 

 

 
 

UNIX Access Control Management

Oracle Tips by Burleson Consulting

Advanced Oracle Utilities: The Definitive Reference by Rampant TechPress is written by top Oracle database experts (Bert Scalzo, Donald Burleson, and Steve Callan).  The following is an excerpt from the book.

In UNIX, a user named oracle is generally created to become the owner of the Oracle software on the UNIX server.  In addition to the oracle user, other UNIX users may be created and granted access to certain oracle files on the server. First on the menu is how UNIX manages user IDs and groups. 

 

UNIX group management

Groups are defined in a file called /etc/group.  Each line of the /etc/group file contains group data separated by a colon “:”. This file defines each group and contains the following values:

 

group name   :  group_nbr  : members of the group

root> cat /etc/group

root::0:root
bin::2:root,bin,daemon
mail::6:root
tty::7:root,tty,adm
lp::8:root,lp,adm
nuucp::9:root,nuucp
daemon::12:root,daemon
dba::102:oracle,oradev
mysql::104:

 

Now see how user information is stored inside UNIX.

UNIX user management

UNIX users are controlled by a special file called /etc/passwd.  This file contains a series of strings separated by colons “:”.  The values are:

 

username  :  password  :  user_nbr : group_nbr :  default shell

root> cat /etc/passwd

oracle:x:108:102::/export/home/oracle:/bin/ksh
oradev:x:109:102::/export/home/oradev:/bin/ksh

 

From the above listing, it can be determined that the oracle user has a encrypted password in /etc/shadow, that they are user 108, and they are in group 102.  The oracle user has /export/home/oracle for a home directory, and they are using the Korn shell as a default shell.  For some people, the John the Ripper tool, explained later, meets the definition of a utility. But for the purposes of this book, it definitely does not.

UNIX passwords on Oracle servers

UNIX passwords are extremely vulnerable to hacking.  Users can change their passwords by invoking the passwd command.  Note that the listing of /etc/passwd does not contain the encrypted passwords for the user IDs, and the password column is denoted with an “x”.  This indicates that the system administrator is storing the passwords in another special file called /etc/shadow.

 

However, protecting passwords in a /etc/shadow file is not always enough to ensure security.  Several tools such as John the Ripper can be used to easily crack into these UNIX files, stealing access to the Oracle server and all database data.  To learn how to protect a UNIX password from hacking, see the UNIX password cracker at http://www.openwall.com/john/.

UNIX connectivity for Oracle

When the Oracle DBA creates the tnsnames.ora file to define remote databases, they often specify the host name of the foreign server that contains the remote Oracle database instead of the TCP/IP address.  For example, an entry in the tnsnames.ora file for a remote database might look like this:

 

kc =
   (DESCRIPTION =
     (ADDRESS_LIST =
         (ADDRESS =
           (COMMUNITY = TCP)
           (PROTOCOL = TCP)
          (HOST = gates)
           (PORT = 1521)
          )
      )
     (CONNECT_DATA = (SID = bbq))
    )

This shows a TNS service name of kc, which defines a connection to a remote server named gates, that contains an Oracle database named bbq. When a remote connection request is made from the UNIX server, the /etc/hosts file is accessed to get the IP address for the gates server.  From the listing below, it shows that the gates server is located at 192.133.13.12.  In sum, the /etc/hosts file is used to isolate the IP address from the tnsnames.ora file.  If the IP address should ever change, the UNIX systems administrator only needs to change the IP address in one place.

 

root> cat /etc/hosts

192.133.13.22  gates    gates.com
192.144.13.22  dopey  dopey.com

Many of the UNIX commands used to manage an Oracle database are similar, or at times, even identical to the Windows commands.

Advanced Oracle Utilities: The Definitive Reference by Rampant TechPress is written by top Oracle database experts (Bert Scalzo,  Donald Burleson, and Steve Callan). 

Buy direct from the publisher and save 30%!

 

 

  
 

 
 
 
 
Oracle performance tuning software
 
 

 

 
 
 
Oracle performance Tuning 10g reference poster
 
 
 
Oracle training in Linux commands
 
Oracle training Excel
 
Oracle training & performance tuning books
 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright ? 1996 -  2012 

All rights reserved.

Oracle ? is the registered trademark of Oracle Corporation.