AskDba.org Weblog » Entries tagged with "Security"
Using Oracle Wallet to Execute Shell script/cron without hard coded Oracle database password
You have been asked to schedule a shell script which need to connect to a particular user and perform some action? How do you pass the password to script without hardcoding it in script. If password is written in a script, isn’t it a security threat? Well with 10gR2 , Oracle Wallet provides you with facility to store database credentials in client side Oracle Wallet. Once stored, you can connect to database using sqlplus /@connect_string Let’s see … Read entire article »
Database Security: Transparent Data Encryption
Data in the database is secured by using authentication, authorization and auditing mechanism, but the information stored in the datafiles can be read using any hex-editor tools or other OS level utilities, which is causing threat to sensitive data. To overcome this limitation TDE is used to secure sensitive data, in database columns, stored in the datafiles. TDE is key-based access control mechanism. For each table, having encrypted column in it, an encryption key is generated which is again encrypted by database server’s master key. The database server’s master key is generated at the time when Wallet is ceated. The master key is stored outside oracle database in a Wallet and the keys for all tables containing encrypted columns are stored in dictionary tables in database. How to setup TDE: … Read entire article »
How To Change/Restore User Password in 11G
Oracle 11g introduces Case-sensitive passwords for database authentication. Along with this if you wish to change the password (temporarily) and reset it back to old , you will find that password field in dba_users is empty. Prior to 11g we could use following technique to change/restore password SQL> create user amit identified by amit; User created. SQL> grant create session to amit; Grant succeeded. SQL> conn sys as sysdba Enter password: Connected. SQL> select username,password from dba_users where username='AMIT'; USERNAME PASSWORD ------------------------------ ------------------------------ AMIT 9DEC0D889E8E9A6B SQL> alter user amit identified by abc; User altered. SQL> conn … Read entire article »
Solving ORA-1031 while connecting as “/ as sysdba” :
Many times we see an issue like this: SQL> conn / as sysdba ERROR: ORA-01031: insufficient privileges This is a very common and frequent error that can occur after the new oracle software install or due to some permissions changes at OS level. I will dicuss the approach to solve ORA-1031 error on UNIX environment. 1. Check that oracle_sid and oracle_home are set correctly as: $ echo $ORACLE_SID $ echo $ORACLE_HOME Find the values returned by above command and match these values under /etc/oratab file, these have to be listed there. EXAMPLE: ======== $ echo $ORACLE_SID BSNL $ echo $ORACLE_HOME /u01/app/oracle/product/10.2.0/db_2 $ cat /etc/oratab BSNL:/u01/app/oracle/product/10.2.0/db_2:N VSNL:/u01/app/oracle/product/10.2.0/db_2:N The values above are matching with /etc/oratab entries If the oracle_sid and oracle_home are not set properly then set it as: $ export ORACLE_SID=BSNL $ export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_2 And try to connect as “/ as sysdba” It should work now. If these are correct but still the error is coming … Read entire article »

Recent Comments