29th January 2010
in
Unix
This is a linux command line reference for common operations.
Examples marked with • are valid/safe to paste without modification into a terminal, so
you may want to keep a terminal window open while reading this so yo[...]
1 Comment
18th January 2010
in
Tips
The GENERATE_STMT procedure of this UTILITY package needs four parameters i.e. TABLE NAME, WHERE CLAUSE, PATH WHERE Developer WANT FILE TO BE GENERATED and FILE NAME. WHERE CLAUSE value must be passed in the form of q[...]
Tags: Export TABLE Records into Flat File with INSERTs
1 Comment
18th January 2010
in
Security
This trigger secures objects, preventing a user from dropping them by mistake. To begin, create a table for the example below called secured_objects with a column objectname, with datatype varchar2(20). Insert a record i[...]
Tags: Trigger to Prevent Dropping Objects
3 Comments
18th January 2010
in
OraERR
“ORA-00980: synonym translation is no longer valid” is a common error encountered in a development environment. This can happen for many reasons. Some of them are
1. You created a synonym on non-existing obje[...]
Tags: Find Invalid Synonyms
1 Comment
18th January 2010
in
Tuning
This query provides a list of queries (1,000 characters only) involved in full table scans. The total number of rows and blocks for each table is also displayed so that you can determine whether the full scan is degradin[...]
Tags: Find Full Table Scans
No Comments
18th January 2010
in
Session
This script displays instance background process information. The script works when the database is MOUNTed or OPENed.
-- Oracle 8I
select
A.SID,
A.SERIAL#,
A.PROGRAM,
P.PID,
[...][...]
Tags: Instance Background Processes Information
No Comments
18th January 2010
in
Structure
This script generates a spool file that can be run from a SQL*Plus session to list the differences between 2 tables with identical structure. This can be useful if 2 similar tables need to be compared across different[...]
Tags: Comparing Contents of Two Tables with Identical Structure
3 Comments
16th January 2010
in
Structure
I found an interesting script that I used sometime back to compare the structure of 2 tables. Thought I should preserve and blog it for the benefit of all.
— SCRIPT START —
Rem script name – compare_tab[...]
Tags: Compare table structure in oracle
2 Comments
13th January 2010
in
OraERR
ORA-01940: Cannot drop a user that is currently connected
Problem Description:
SQL> drop user strmadmin cascade;
drop user strmadmin cascade
*
ERROR at line 1:
ORA-01940: cannot drop a user that is currently connected[...]
Tags: ORA-01940: Cannot drop a user that is currently connected
No Comments
12th January 2010
in
Security
One thing you need to remember before read this post is there is no easy or shortcut way to make a read only user of another schema. Like grant select on username to another_username- there is no such single command like[...]
Tags: Create Read only user for a Schema
127 Comments