Oracle DBA

Security in the Database Oracle 11g March 19, 2012

Filed under: Database Security,Oracle,Uncategorized — gaphydba @ 8:21 am

We have seen the most awful of technology either stolen or lost your data on Databases especially Oracle has improved security through the newer version of Oracle 11g

Oracle 11g provides transparent data encryption at a tablespace level, and this video presents practical ways to look at security and implementing standards and procedures around the database environment to account for the security outside of the users, including secured environments for regulations and compliance.



Deadlock ORA-00060 error August 22, 2011

Filed under: Errors,Oracle — gaphydba @ 11:44 am
What is deadlock?
Deadlock is a situation in which two or more users are waiting for data locked by each other. deadlocks prevent some transactions from continuing to work.
How to resolve deadlock?
We have to do nothing to resolve deadlock error (ORA-00060), oracle automatically detects and resolve the deadlock by rolling back one statement involve in the statement. releasing one set of conflicting row locks.
Why deadlock error occurs?
deadlock is completely application bug. ask DEVELOPER to look into the coding on particular form (query) which raise DEADLOCK.
What is the reason for deadlock?
Deadlocks most often occur when transactions explicitly override the default locking of oracle database. because oracle database not escalate locks and does not use read locks for queries. but does use row-level locking, deadlocks occurs infrequently.

Video Tutorial – Installing Oracle 10gR2 Grid Control and deploying agent on Linux and Windows OS June 27, 2011

Filed under: DBA,Oracle — gaphydba @ 11:26 am

Oracle Grid Control managing  lots of databases and application servers  It can manage multiple instances of Oracle deployment  platform.Click here for the video tutorial of how to install Oracle 10gR2 Grid Control.


SYSDBA v/s SYSOPER July 20, 2010

Filed under: DBA,Oracle — gaphydba @ 6:16 am

SYSDBA and SYSOPER are administrative privileges required to perform high-level administrative operations such as creating, starting up, shutting down, backing up, or recovering the database. The SYSDBA system privilege is for fully empowered database administrators  the highest system privilege in oracle  But SYSOPER system privilege is limited than SYSDBA. SYSOPER system privilege allows a user to perform basic operational tasks, but without the ability to look at user data.

In the following section, the following listed the operation that a user can perform who is authenticated as SYSDBA and SYSOPER system privilege.

• Perform STARTUP and SHUTDOWN operations
• ALTER DATABASE: open, mount, back up, or change character set
• Includes the RESTRICTED SESSION privilege
• Allows a user to connect as user SYS.

• Perform STARTUP and SHUTDOWN operations
• ALTER DATABASE RECOVER (Complete recovery only. Any form of incomplete recovery, such as UNTIL TIME|CHANGE|CANCEL|CONTROLFILE requires connecting as SYSDBA.)
• Includes the RESTRICTED SESSION privilege
• Allows a user to perform basic operational tasks, but without the ability to look at user data


U.S. government sues Oracle for tens of millions of dollars June 18, 2010

Filed under: Oracle — gaphydba @ 4:37 am

The U.S. government is suing Oracle Corp. for denying it significant discounts on software purchases the vendor routinely gave to its commercial customers. The government is claiming damages as high as $169 million in the Oracle lawsuit.Go and read it


SOME Errors in Oracle and their solutions June 10, 2010

Filed under: Errors,IT,Oracle — gaphydba @ 4:20 pm

SQL> ORA 12545 Connect failed because target host or object does not exist

Cause: The address specified is not valid, or the program being connected to does not exist.
Action: Ensure the ADDRESS parameters have been entered correctly; the most likely incorrect parameter is the node name. Ensure that the executable for the server exists (perhaps “oracle” is missing.) If the protocol is TCP/IP, edit the TNSNAMES.ORA file to change the host name to a numeric IP address and try again.

SQL> ORA-12541: TNS no listener

Cause: Listener for the source repository has not been started.

Action: Start the Listener on the machine where the source repository resides.

manually u cant do by  $ORACLE_HOME/bin/lsnrctl start FOR UNIX IN CASE  ON WINDOWS goto control panel / services
u can see the listenerservice for the sid u have created.
start it!

ORA-01665: controlfile is not a standby controlfile

Then ‘copy’ standby control file to other host and be sure its being used.

1) use an unusual name when you create it
2) verify it is transferred successfully
3) verify it is going in the right location by examining spfilE

4. verify that you are using the control file that you think you created in the alter database command. use the TO ‘c:\somwhere\stdby.ctl’ option of the command.