Quick overview of the state of an Oracle database.
Submitted by David Lozano Lucas on Fri, 2010-01-29 08:57
One common problem: You are allocated to a new project and find that nothing is documented.
By running this script, you get four important points of information: Tablespace status, installed products and its versions, oracle parameters different to default and status of tables:
[code]
SET LINESIZE 1000
SET PAGESIZE 1000
spool report.txt
prompt You can leave this script copied at $ORACLE_HOME\rdbms\admin\
prompt - Remember to use also statspack o bstats depending on the Oracle version
prompt - Review alert.log
prompt
prompt
prompt TABLESPACE STATUS
Select t.tablespace_name "Table
- David Lozano Lucas's blog
- Login to post comments
- Read more
Case sensitive object naming in PL/SQL
Submitted by wakula on Sat, 2010-01-23 08:07Hello,
This is my first entry here.
I would like to criticize criticism for case sensitive object naming in Oracle and PL/SQL.
As you might know - Oracle is converting object names to uppercase by default. Whenever you create object like
CREATE TABLE my_table(my_column NUMBER);
it would be created as MY_TABLE(MY_COLUMN NUMBER);
At the same time some people might create table
CREATE TABLE myTable(myColumn NUMBER);
which would become MYTABLE(MYCOLUMN NUMBER);
What is tricky about the above is the way Oracle is parsing queries.
Install Oracle on Windows 64 Bit and migrate Oracle Windows from 32 bit to 64 bit
Submitted by maheritc on Tue, 2010-01-12 18:40
Installing Oracle 11g 64 bit on Windows Server 2008
When installing Oracle 11.1.0.7 on Windows Server 2008 64 bit, the installer gave a an error saying the Operating System ( OS ) was not supporting. In looking at the install log on c:\program files\oracle, I noticed the installer thinks the OS is windows vista.
To work around this error, I selected the check box for user verified and continued with the install.
- maheritc's blog
- Login to post comments
- Read more
Use of the SQL Tuning Advisor
Submitted by David Lozano Lucas on Fri, 2010-01-08 08:56
Use the SQL Tuning Advisor for tuning SQL statements. Typically, you can run this advisor in response to an ADDM performance finding that recommends its use.
Additionally, you can run the SQL Tuning Advisor on the most resource-intensive SQL statements, referred to as top SQL, from the cursor cache or the AWR, as well as on a user-defined SQL workload.
To run the SQL Tuning Advisor do the following:
Oracle RAC Background processes
Submitted by rajabaskar on Mon, 2010-01-04 11:01
RAC Background Processes:
1. Lock Monitor Processes ( LMON)
2. Lock Monitor Services (LMS)
3. Lock Monitor Daemon Process ( LMD)
4. LCKn ( Lock Process)
5. DIAG (Diagnostic Daemon)
1.
Oracle Online Jobs and Career Guide
Submitted by jorgensundberg on Sun, 2009-12-20 16:36Hello, I recently put this list together as a resource for people looking for jobs within the Oracle space. It contains the top job boards, recruiters, LinkedIn groups, Twitter lists etc.
Please have a look at it and let me know what you think of it!
http://www.theundercoverrecruiter.com/content/oracle-online-career-guide
This report will be updated monthly and contains the best online resources for furthering your career within the Oracle world. Please let me know what you think of these resources.
Thanks,
Jorgen
- jorgensundberg's blog
- Login to post comments
Killing Sessions In Oracle
Submitted by jp_vijaykumar on Mon, 2009-12-14 18:36 KILLING SESSIONS IN ORACLE
--------------------------
Author JP Vijaykumar
Date Jan 27th 2009
Modified Jan 29th 2009
/*
One of my procedure is taking long time to complete.
Performanace Issue
Submitted by atchaya on Thu, 2009-12-10 06:14I have worked in a table with one timestamp field namely Actiondate. We have updated the sysdate value of inserting time to that field. It contains around 30 lakhs records.
I want to get the records which are inserted a particular day.
I run the following 2 queries..
select * from history
where trunc(actiondate) > trunc(sysdate)
order by docintno
OR
select * from history
where trunc(actiondate) > '01-dec-2009'
order by docintno
Both are taking too much time to give the results.
SQL and PL/SQL Questions
Submitted by simitechy on Thu, 2009-12-10 02:16Both SQL Trace and TKPROF help to find the statistics of an SQL statement which could be used for query optimization.
Start Oracle SQLTRACE:
In Oracle, to start an SQLTRACE for the current session, execute:
ALTER SESSION SET SQL_TRACE = TRUE;
Stop Oracle SQLTRACE
In Oracle, to stop SQL tracing for the current session, execute:
ALTER SESSION SET sql_trace = false;
- simitechy's blog
- Login to post comments
Trasliteration - Conversion of double/triple byte characters to single byte characters for various requirements
Submitted by ayush_anand on Mon, 2009-12-07 06:49I recently came across a document where the requirement was to convert from triple/double byte characters to single byte characters to send it for export complaince check as the export compliance system can accept only single byte characters.
Basically the useful thing about this was they were using IBM ICU project(an open source project) for this process,so in a way making it more open to developers.
These were the pros and cons for IBM identified by them.
Pros
- No interface needed (written in Java, integrable in Oracle)
- High level of portability, flexibility and scalability
- No int
- ayush_anand's blog
- Login to post comments
- Read more
