10.2.0.3 patch is released for various plateforms, like Linux (x86,x86_64,Itanium), Windows (32bits/64bits), Solaris (64 bits) and Z/OS Patch 5337014
Author: Laurent Schneider
Paul Moen article on MONTHS_BETWEEN
I have been shocked by Paul Moen article on MONTHS_BETWEEN. Here is my own case : SQL> select months_between( date ‘2000-03-01’, date ‘2000-02-28’) * 31 from dual; 4 Incredible! I have always been very careful with months_between because of the documented end_of_month behaviour (there is one month between 30-APR and 31-MAY), but I did not […]
OEM Generic service
I want to monitor the output of one script in OEM. Let’s say my script is that easy : #!/bin/ksh echo $RANDOM So I go to OEM 10gR2 Grid Control All Targets Add Generic Service – Go Name : random Select System : EM Website System Define availability based on: Service Test Test Type: custom […]
-0
Is -0 a meaningful output ? SQL> set numf 9 SQL> select -.1 from dual; -.1 — -0 not really 😡
-ignoreDiskWarning
I am in the process in installing Oracle 10gR2 patch 2 with response file. There is no plenty of disk available, but installing a patch does not require as much space as specified by the runInstaller. when I start in silent mode, I get : $ ./runInstaller -responseFile /home/oracle/10202.rsp -silent Starting Oracle Universal Installer… —————————————————————————– […]
length(”)=null?
What is the length of an empty string? According to Oracle documentation, Oracle Database currently treats a character value with a length of zero as null. However, this may not continue to be true in future releases, and Oracle recommends that you do not treat empty strings the same as nulls And therefore the length […]
search for a string in all tables of a schema
this is often asked on the forums. I also needed this a while ago while reverse engineering a database model. Here is my today solution: 1) select * and extract the first column found per table with regexp (10g) SQL> select table_name,column_name from (select rownum,table_name, regexp_substr(dbms_xmlgen.getxml(‘select * from “‘||table_name||’”‘),'<[^>]*>&string</[^<]*>’) column_name from user_tables) where length(column_name)!=0; Enter […]
To exp or to expdp?
While browsing on the support/desupport notice, I find out that exp is going to be desupported in 10gR2. Metalink Note 345187.1 The original import will still be supported for upgrade from older releases. For upgrade to newer releases (11g,12g), use expdp.
Oracle 9iR2 desupport
How long is Oracle 9iR2/10g going to be supported? Infinitely! Metalink updated the upcoming desupport advisory. For 8iR3, you had something like : Error Correction Support (ECS): 31-DEC-2004 Extended Support (ES): 31-DEC-2007 Extended Maintenance Support (EMS): 31-DEC-2006 Now for 9iR2, 10gR1, 10gR2, you have this : Release GA Date Premier Extended Sustaining Support Support Support […]
su in sqlplus
How to switch user in Oracle ? One approach is to change the password : SQL> connect / as sysdba Connected. SQL> select password from dba_users where username=’SCOTT’; PASSWORD —————————— F894844C34402B67 SQL> alter user scott identified by abc123; User altered. SQL> connect scott/abc123 Connected. SQL> create table t… SQL> connect / as sysdba Connected. SQL> […]
Set up ovid to use tns with your ldap server
I had a question in my mailbox today about using TNS resolution with an unsupported LDAP Server like Sun Java System Directory Server. Supported in 9i and above are only Microsoft Active Directory and Oracle Internet Directory. In 8i also Novell. So I have done this once with OVID. 1) download Oracle Virtual Directory 2) […]
Oracle Magazine January-February 2007
Check the oracle magazine on otn.oracle.com/oramag In the peer-to-peer, you can read more about 3 Oracle Aces, Steve Karam, Nicolas Gasparotto, Dave Moore. In the technology columns, three more aces talk about Oracle technlogies. Steven Feuerstein about The Right Place for PL/SQL, Arup Nanda about Recover in a Flash, and Tom Kyte about On Top-n […]
Welcome to the Oracle Database 11g Release 1 Beta Program!
Today is a good day, I have been accepted to the beta program and will be able to download 11gR1 beta 4 shortly. There is a Confidential Disclosure Agreement, so do not expect to read more on 11g here before the production release. My blog articles about 11g in OpenWorld 2006: 11g New Features 11g […]
10.2.0.3
I successfully installed 10gR2 patchset 2 on my notebook : SQL> select ACTION,VERSION,COMMENTS from registry$history; ACTION VERSION COMMENTS ——- ———- —————————— CPU 10.2.0.2.0 CPUOct2006 UPGRADE 10.2.0.3.0 Upgraded from 10.2.0.2.0 SQL> select COMP_NAME,VERSION,STATUS from dba_registry; COMP_NAME VERSION STATUS ———————————– ———- ———– Oracle Expression Filter 10.2.0.3.0 VALID Oracle Database Catalog Views 10.2.0.3.0 VALID Oracle Database Packages and […]
10.2.0.3 is huge
900M in size for a Linux patch is getting quite big. Expect 2G for HPUX/AIX5L, guess this 2G limit, if reached, is going to be a problem for many users ! Hint : use FileZilla to download software
10gR2 patchset 2 is out
For Windows and Linux x86, Oracle Database 10.2.0.3 is available download
How Much Is My Blog Worth?
Inspired by How Much Is My Blog Worth? My old blog, laurentschneider.blogspot.com, is worth $14,678.04 My new blog, laurentschneider.com, is worth $564.54 This is all the pain by changing domain, bye bye top position in google, bye bye backlinks… My old blog is still active, and I hope to get equivalent ranking until end of […]
switched from blogspot to my own domain
Download my feed : https://laurentschneider.com/feed/
Chinese Chess Swiss Champion 2006
I was honored to receive this trophy yesterday : More results under http://www.sxv.ch/news_2006.php
Restrict network access to listener
If I have a limited number of db clients which are authorized to access my listener, I can restrict access to my listener by setting only two parameters in sqlnet.ora. TCP.VALIDNODE_CHECKING = yes TCP.INVITED_NODES = (dbclient001,chltlxlsc1) chltlxlsc1 is my db server, I include it in the list, it is required to start the listener locally. […]
backup your blog!
You surely have not missed the “Amazing November 2006 Blog Catastrophe” of Mark Rittman. I use blogger and by typing “backup blogger” in google, I found [edit]something that has been removed in the meantime (and I do not use blogger anymore) [/edit, janv 2011]. It let you change the formatting of your blog to have […]
pivot table
First I apologize for the confusion with previous post of mines, where I defined row generators as pivot table. Here I talking about transposing rows into columns PIVOT and transposing columns into rows UNPIVOT Ok, back in 2003, I had a data model were all attributes were stored in same table (a miracle of java […]
How To Add The Domain Name Of The Host To Name Of The Agent
I have been looking for this note for ages : Metalink note 295949.1 Now I know how to rename my targets in Grid Control! the trick is to stop the agent AH/emctl stop agent to remove the upload and state files/subdirectories cd AH/sysman/emd find state upload recv agntstmp.txt lastupld.xml protocol.ini -type f -exec rm {} […]
sqldeveloper 1.1 evaluation available for download
check Oracle SQL Developer 1.1 Evaluation Release is Now Available! PS: there is now a RPM for Linux, which I installed on my SLES 10 notebook with SUN JDK 1.6.
difference between two dates
How can i get the difference in days between two dates, d1 and d2 ? – for example : with t as (select to_date(‘2000-02-01′,’YYYY-MM-DD’) d1, to_date(‘2000-01-23′,’YYYY-MM-DD’) d2 from dual) select d1,d2,d2-d1 from t; D1 D2 D2-D1 ———- ———- ———- 01.02.2000 23.01.2000 -9 How can i get the difference in hours:minutes:seconds between two dates, d1 and […]
alias oraver 2.0
Thanks to an anonymous comment in my post yesterday, I can now provide a more flexible version of my alias, which do not require the database to be running nor the sysdba privilege $ alias oraver oraver=’echo ‘\”ORACLE_SID VERSION %CPU RSZ VSZ START_TIME’\”;awk -F: ‘\”/^[^ *#]/{print “printf 42%-9s %11s %5s %8s %8s %s\\n42″,$1,”$(ORACLE_HOME=”$2,$2″/bin/sqlplus -v 2>/dev/null|cut […]
ps -ef |grep pmon alternative
I just wrote a new alias to check if the databases are up and running. I added the version and a dash for non-running database. Needed is /etc/oratab + sysdba access to the database. Here it is : awk -F: ‘/^[^*# ]/{system(“echo 42select 47+ “$1″ 1147||version from v\\$instance;42|ORACLE_SID=”$1″ ORACLE_HOME=”$2” “$2″/bin/sqlplus -s 42/ as sysdba42 2>/dev/null|grep […]
rac automation
Werner Puschitz talked yesterday about Automated Oracle Real Application Clusters Deployment: How Dell Does IT. The result of the automation is, install a 6 nodes cluster in 30 minutes. Which is quite impressive. Werner divided the automation in three RPM packages. 1) configure the host: set up private and virtual interface (according to a naming […]
Toad 9 is available
In the Metreon Theater, Quest announced toad 9. Steven Feuerstein presented one feature : Unit Testing in TOAD. Go to http://www.toadworld.com, unless you are a vi man
Larry Ellison announced oracle support for redhat
I like this one. It will really ease the migration to Linux. A very good news for me. Go to oracle.com/linux
11g new features part II
I have been following 2 sessions with Juan Loaiza about new features. A very few of them here : SQL> create edition v1_0; SQL> alter session set edition=v1_0; You can create a versioning of your objects, so you will be able to have many versions of the same package at the same time. It is […]