XQuery performance in Oracle 10gR2

Hello
I'm actually trying to measure the performances of XQuery FLOWR queries on Oracle 10gR2. For that, I've created a simple table with one integer field (ID) and one XMLType field. This XMLType field contains 10000 documents. The size of these documents varies between 2Kb and 14Kb approximately.
A simple XQuery like below (without "WHERE" or complexe "RETURN" clause) runs quite well and I get the query results in a resonable time.
SELECT xtab.COLUMN_VALUE
FROM contractXDraft, XMLTABLE(
     'declare namespace ctxCD="contractX/contractXDraft";for $x in /ctxCD:contractXDraft
     return
     <response>
          Hello
     </response>'
PASSING OBJECT_VALUE) xtab;
On the other hand, if a add a "WHERE" clause to filter the results, the query execute time become very long (~hours...) and I must always abort the query execution by killing the "oracle" process because the page file memory used by this process increase linearly ! Here below is represented a such query :
SELECT xtab.COLUMN_VALUE
FROM contractXDraft, XMLTABLE(
     'declare namespace ctxCD="contractX/contractXDraft";for $x in /ctxCD:contractXDraft
where $x/ctxCD:ReferenceDetails/ctxCD:ContractHeaderDetails/ctxCD:ContractNumber = "19163-contract657-2.xml"
     return
     <response>
          Hello
     </response>'
PASSING OBJECT_VALUE) xtab;
These above queries are executed on a server dedicated for these tests. This server is a Pentium IV 3.2 GHz with 1GB of RAM and Windows 2003 Server Enterprise SP1 is installed on it.
I want to know if someone can give me an explanation about this huge difference of execution time between the two queries above ?? Is it a syntax mistake ? Is it an hardware problem ?
Thank you very much for your help !!
Regards
MD

MD,
Sounds like your XMLType field is using unstructured storage (i.e., LOB-based) instead of the structured storage (i.e., O-R based). You can check out the XML DB online doc (http://download-west.oracle.com/docs/cd/B19306_01/appdev.102/b14259/xdb01int.htm#BABECDCF) to learn more about the differences between the two. Essentially, without any associated indexes, using XQuery over unstructured storage will result in a full table scan, which can be very slow when there are large number of rows.
Regards,
Geoff

Similar Messages

  • XML queries in ORACLE 10gR1 vs ORACLE 10gR2

    Hi
    in the research project where I'm involved in, we have two databases. One is the test database, upgraded recently in ORACLE 10gR2 and the production database in ORACLE 10gR1.
    We have the same table with the same data in both test and production database.
    I can run successfully the query and get result in test db ORACLE 10gR2:
    SELECT XMLQuery('declare namespace
    mpeg7="urn:mpeg:mpeg7:schema:2001";for $i in /mpeg7:Mpeg7
    return $i' PASSING xmlcolumn RETURNING CONTENT) FROM
    XMLTable WHERE existsNode(xmlcolumn,
    '//@id="2005"',
    'xmlns="urn:mpeg:mpeg7:schema:2001"') = 1;
    but if I try the same query in production db ORACLE 10gR1, I get the error
    return $i' PASSING xml_column RETURNING CONTENT) FROM
    FEHLER in Zeile 3:
    ORA-00907: missing right parenthesis
    Is there any difference in the queries syntax between R1 and R2?
    What should I change in my query?
    Please help. I’m really facing with some problems with XML storage and retrieve.
    Any kind of help will be appreciable
    Best regards,
    Evanela

    Hi Evanela,
    XQuery is available from 10gR2 and higher - the XQuery functionality
    is just not available in 10gR1 ...
    Does this help ...?
    -Carsten

  • Oracle 10gR2 Automated Storage Management implementation on CentOS 4.1

    Actually there are several nice articles on Oracle Technical Network devoted to the same topic. What’s new may be said ?
    The target of this message is to highlight the optimal sequence of steps required to bring Oracle10g (10.2.0.1) ASM-database up on CentOS4.1 , placing ASM instance and serviced databases in different Oracle Homes.Oracleasm library install is done immediately after creating "oracle" linux account and "dba" group to be ready for ASM Instance creating during the first Installer run supposed to build it. ASM instance for disks and disk’s group management is created the first by Installer along with the disk’s group for database supposed to be built during the second run of Installer and to be placed into recently created disk’s group.
    I. Oracle 10gR2 ASM and ASMLib 2.0 I/O.
    1.Install CentOS 4.1
    2.Run as root:
    # groupadd dba # group of users to be granted SYSDBA system privilege
    # groupadd oinstall # group owner of Oracle files
    # useradd -c "Oracle software owner" -g oinstall -G dba oracle
    # passwd oracle
    # mkdir -p /u01/app/oracle
    # chown -R oracle.oinstall /u01
    # mkdir -p /u02/oradata/wtfdata
    # chown -R oracle.oinstall /u02
    OTN instruction:-
    Before installing Automatic Storage Management, it is recommended that you install the optional add-on Automatic Storage Management support library, ASMLib. ASMLib is an application program interface (API) Oracle that is aimed at simplifying the interface between the operating system and the database, and to exploit the capabilities and strengths of storage arrays provided by different vendors ASMLib provides an alternative interface for the Automatic Storage Management-enabled kernel to discover and access block devices. It provides storage and operating system vendors the opportunity to supply extended storage-related features. These features provide benefits such as improved performance and greater data integrity.
    OTN instruction ends.
    3.To install ASMLIB 2.0 run as root:-
    # rpm -Uvh oracleasm-2.6.9-11.ELsmp-2.0.0-1.i686.rpm \
    oracleasmlib-2.0.0-1.i386.rpm \
    oracleasm-support-2.0.0-1.i386.rpm
    Now you get /etc/init.d/oracleasm ready to go.
    Configuring the Oracle ASM library driver:-
    # /etc/init.d/oracleasm configure
    Default user to own the driver interface [oracle]: oracle
    Default group to own the driver interface [dba]: dba
    Start Oracle ASM library driver on boot (y/n) [y]: y
    Fix permissions of Oracle ASM disks on boot (y/n) [y]: y
    Writing Oracle ASM library driver configuration: [  OK  ]
    Scanning system for ASM disks: [  OK  ]
    # /etc/init.d/oracleasm enable
    Create ASM disks as desired utilizing command:
    # /etc/init.d/oracleasm createdisk VLM0X /dev/sdx
    Tune /etc/sysctl.conf,/etc/security/limits.conf,/etc/pam.d/login, /etc/profile.
    and oracle's shell environment as advised in [1].
    Login as oracle:-
    $ cd /tmp/database
    $./runInstaller
    OTN instructions:-
    It’s recommended that you install Automatic Storage Management in its own Oracle home, regardless of whether you plan to only have one or multiple database instances.Installing Automatic Storage Management in its own Oracle home helps ensure higher availability and manageability.With separate Oracle homes, you can upgrade Automatic Storage Management and databases independently, and you can remove database software without impacting the Automatic Storage Management instance. Ensure that the Automatic Storage Management version is the same or later than the Oracle Database version.If an Automatic Storage Management installation does not already exist and you select the Oracle Universal Installer option to install and configure Automatic Storage Management only, then Oracle Universal Installer installs Automatic Storage Management in its own Oracle home.
    OTN instruction ends.
    Select " Advanced installation" and
    create ASM instance in $ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/db_1
    Create disk group during this run .
    Exit installer.
    $ ./runInstaller
    Select " Advanced installation" and create new ASM-database placed into existing disk's group in $ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/db_2 .
    Modify ~oracle/.bash_profile correspondently.Relogin as oracle.
    Next:-
    $ sqlplus /nolog
    SQL> conn / as sysdba
    Connected.
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount;
    ORACLE instance started.
    Total System Global Area 285212672 bytes
    Fixed Size 1218968 bytes
    Variable Size 88082024 bytes
    Database Buffers 188743680 bytes
    Redo Buffers 7168000 bytes
    Database mounted.
    SQL> alter database archivelog;
    Database altered.
    SQL> alter database MastDB flashback on;
    Database altered.
    SQL> alter database open;
    Database altered.
    Open Enterpise Manager console.(Enterprise Manager 10g Database Control URL
    http://ServerCentOS41:1158/em). Create new disk's group for flashback recovery area and modify corresponding value on Recovery Settings page of EM.
    System startup in this case should look like:-
    [oracle@ServerCentOS41 ~]$ ./lsnrstart
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 30-AUG-2005 17:57:41
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Starting /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    System parameter file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ServerCentOS41)(PORT=1521)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ServerCentOS41)(PORT=1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date 30-AUG-2005 17:57:42
    Uptime 0 days 0 hr. 0 min. 0 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Listener Log File /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ServerCentOS41)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 30-AUG-2005 17:57:42
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Starting /u01/app/oracle/product/10.2.0/db_2/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    System parameter file is /u01/app/oracle/product/10.2.0/db_2/network/admin/listener.ora
    Log messages written to /u01/app/oracle/product/10.2.0/db_2/network/log/listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ServerCentOS41)(PORT=1522)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC2)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ServerCentOS41)(PORT=1522)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date 30-AUG-2005 17:57:42
    Uptime 0 days 0 hr. 0 min. 0 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/product/10.2.0/db_2/network/admin/listener.ora
    Listener Log File /u01/app/oracle/product/10.2.0/db_2/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ServerCentOS41)(PORT=1522)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC2)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    [oracle@ServerCentOS41 ~]$ dbstart
    Processing ASM instance "+ASM": log file /u01/app/oracle/product/10.2.0/db_1/startup.log
    Processing Database instance "MastDB": log file /u01/app/oracle/product/10.2.0/db_2/startup.log
    [oracle@ServerCentOS41 ~]$ emctl start dbconsole
    TZ set to US/Eastern
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
    Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    http://ServerCentOS41:1158/em/console/aboutApplication
    Starting Oracle Enterprise Manager 10g Database Control ........................ started.
    Logs are generated in directory /u01/app/oracle/oracle/product/10.2.0/db_2/ServerCentOS41_MastDB/sysman/log
    Install described above was done with different Oracle Homes
    for ASM instance and ASM-database.
    To put ASM instance and ASM-database in same Oracle Home.
    Start runInstaller just once to build all stuff at a time.
    Login as oracle:-
    $ cd /tmp/database
    $./runInstaller
    Select " Advanced option" and install "Software only"
    in ORACLE_HOME - /u01/app/oracle/oracle/product/10.2.0/db_1.
    Modify oracle's .bash_profile:-
    export ORACLE_HOME and new PATH.
    Source new .bash_profile:-
    $. ~oracle/.bash_profile
    $dbca
    During this run the request to start CRS daemons by root will come up.
    # $ORACLE_HOME/bin/localconfig add
    ASM instance , needed disk's groups and ASM-database itself will be created.
    Then perform listener and local TNS names configuration.
    $netca
    II. Oracle 10gR2 ASM and Standard Linux I/O.
    This method creates Oracle database files on raw character devices managed by ASM using standard Linux I/O system calls.It requires to create RAW devices for all disk partitions used by ASM.
    1.Install CentOS 4.1
    2.Run as root:
    # groupadd dba # group of users to be granted SYSDBA system privilege
    # groupadd oinstall # group owner of Oracle files
    # useradd -c "Oracle software owner" -g oinstall -G dba oracle
    # passwd oracle
    # mkdir -p /u01/app/oracle
    # chown -R oracle.oinstall /u01
    # mkdir -p /u02/oradata/data
    # chown -R oracle.oinstall /u02
    Just as an example create 4 partitions:
    /dev/hda6,/dev/hdc6 5 GB each one
    /dev/hda7,/dev/hdc7 3 GB each one
    Create raw devices modifying file /etc/sysconfig/rawdevices as follows:
    /dev/raw/raw1 /dev/hda6
    /dev/raw/raw2 /dev/hdc6
    /dev/raw/raw3 /dev/hda7
    /dev/raw/raw4 /dev/hdc7
    Put in /etc/rc.d/rc.local
    chown oracle:dba /dev/raw/raw*
    chmod 660 /dev/raw/raw*
    I was experiencing problems with loosing "oracle:dba" permissions after Linux
    reboot. Oracle's raw device came up with "root:disk" ownership after reboot.
    Restart Linux
    Run as root:-
    # service rawdevices restart
    Tune /etc/sysctl.conf,/etc/security/limits.conf,/etc/pam.d/login,
    /etc/profile and oracle's shell environment as advised in [1].
    Login as oracle:-
    $ cd /tmp/database
    $./runInstaller
    Select " Advanced installation" and
    create ASM instance in ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/asm
    During this run create diskgroup RAWDATA1 with normal redundancy
    mirroring /dev/raw/raw1 and /dev/raw/raw2.
    You should be fine with discovering raw devices if permissions are in place (oracle:dba)
    Exit installer.
    Export ORACLE_HOME for ASM instance and corresponding PATH.
    Then run "dbca" to create diskgroup RAWDATA2 with
    normal redundancy mirroring /dev/raw/raw3 and /dev/raw/raw4
    $ ./runInstaller
    Select " Advanced installation" and create new ASM-database placed RAWDATA1 diskgroup
    in $ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/db_1.
    Modify ~oracle/.bash_profile correspondently.Relogin as oracle.
    Next:-
    $ sqlplus /nolog
    SQL> conn / as sysdba
    Connected.
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount;
    ORACLE instance started.
    Total System Global Area 285212672 bytes
    Fixed Size 1218968 bytes
    Variable Size 88082024 bytes
    Database Buffers 188743680 bytes
    Redo Buffers 7168000 bytes
    Database mounted.
    SQL> alter database archivelog;
    Database altered.
    SQL> alter database rawdbs flashback on;
    Database altered.
    SQL> alter database open;
    Database altered.
    Open Enterpise Manager console.(Enterprise Manager 10g Database Control
    URL http://ServerCentOS41:1158/em). Put flashback recovery area in RAWDATA2
    modifying corresponding value on Recovery Settings page of EM.
    References.
    1.www.puschitz.com/InstallingOracle10g.shtml
    Message was edited by:
    [email protected]

    Actually there are several nice articles on Oracle Technical Network devoted to the same topic. What’s new may be said ?
    The target of this message is to highlight the optimal sequence of steps required to bring Oracle10g (10.2.0.1) ASM-database up on CentOS4.1 , placing ASM instance and serviced databases in different Oracle Homes.Oracleasm library install is done immediately after creating "oracle" linux account and "dba" group to be ready for ASM Instance creating during the first Installer run supposed to build it. ASM instance for disks and disk’s group management is created the first by Installer along with the disk’s group for database supposed to be built during the second run of Installer and to be placed into recently created disk’s group.
    I. Oracle 10gR2 ASM and ASMLib 2.0 I/O.
    1.Install CentOS 4.1
    2.Run as root:
    # groupadd dba # group of users to be granted SYSDBA system privilege
    # groupadd oinstall # group owner of Oracle files
    # useradd -c "Oracle software owner" -g oinstall -G dba oracle
    # passwd oracle
    # mkdir -p /u01/app/oracle
    # chown -R oracle.oinstall /u01
    # mkdir -p /u02/oradata/wtfdata
    # chown -R oracle.oinstall /u02
    OTN instruction:-
    Before installing Automatic Storage Management, it is recommended that you install the optional add-on Automatic Storage Management support library, ASMLib. ASMLib is an application program interface (API) Oracle that is aimed at simplifying the interface between the operating system and the database, and to exploit the capabilities and strengths of storage arrays provided by different vendors ASMLib provides an alternative interface for the Automatic Storage Management-enabled kernel to discover and access block devices. It provides storage and operating system vendors the opportunity to supply extended storage-related features. These features provide benefits such as improved performance and greater data integrity.
    OTN instruction ends.
    3.To install ASMLIB 2.0 run as root:-
    # rpm -Uvh oracleasm-2.6.9-11.ELsmp-2.0.0-1.i686.rpm \
    oracleasmlib-2.0.0-1.i386.rpm \
    oracleasm-support-2.0.0-1.i386.rpm
    Now you get /etc/init.d/oracleasm ready to go.
    Configuring the Oracle ASM library driver:-
    # /etc/init.d/oracleasm configure
    Default user to own the driver interface [oracle]: oracle
    Default group to own the driver interface [dba]: dba
    Start Oracle ASM library driver on boot (y/n) [y]: y
    Fix permissions of Oracle ASM disks on boot (y/n) [y]: y
    Writing Oracle ASM library driver configuration: [  OK  ]
    Scanning system for ASM disks: [  OK  ]
    # /etc/init.d/oracleasm enable
    Create ASM disks as desired utilizing command:
    # /etc/init.d/oracleasm createdisk VLM0X /dev/sdx
    Tune /etc/sysctl.conf,/etc/security/limits.conf,/etc/pam.d/login, /etc/profile.
    and oracle's shell environment as advised in [1].
    Login as oracle:-
    $ cd /tmp/database
    $./runInstaller
    OTN instructions:-
    It’s recommended that you install Automatic Storage Management in its own Oracle home, regardless of whether you plan to only have one or multiple database instances.Installing Automatic Storage Management in its own Oracle home helps ensure higher availability and manageability.With separate Oracle homes, you can upgrade Automatic Storage Management and databases independently, and you can remove database software without impacting the Automatic Storage Management instance. Ensure that the Automatic Storage Management version is the same or later than the Oracle Database version.If an Automatic Storage Management installation does not already exist and you select the Oracle Universal Installer option to install and configure Automatic Storage Management only, then Oracle Universal Installer installs Automatic Storage Management in its own Oracle home.
    OTN instruction ends.
    Select " Advanced installation" and
    create ASM instance in $ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/db_1
    Create disk group during this run .
    Exit installer.
    $ ./runInstaller
    Select " Advanced installation" and create new ASM-database placed into existing disk's group in $ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/db_2 .
    Modify ~oracle/.bash_profile correspondently.Relogin as oracle.
    Next:-
    $ sqlplus /nolog
    SQL> conn / as sysdba
    Connected.
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount;
    ORACLE instance started.
    Total System Global Area 285212672 bytes
    Fixed Size 1218968 bytes
    Variable Size 88082024 bytes
    Database Buffers 188743680 bytes
    Redo Buffers 7168000 bytes
    Database mounted.
    SQL> alter database archivelog;
    Database altered.
    SQL> alter database MastDB flashback on;
    Database altered.
    SQL> alter database open;
    Database altered.
    Open Enterpise Manager console.(Enterprise Manager 10g Database Control URL
    http://ServerCentOS41:1158/em). Create new disk's group for flashback recovery area and modify corresponding value on Recovery Settings page of EM.
    System startup in this case should look like:-
    [oracle@ServerCentOS41 ~]$ ./lsnrstart
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 30-AUG-2005 17:57:41
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Starting /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    System parameter file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ServerCentOS41)(PORT=1521)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ServerCentOS41)(PORT=1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date 30-AUG-2005 17:57:42
    Uptime 0 days 0 hr. 0 min. 0 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Listener Log File /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ServerCentOS41)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 30-AUG-2005 17:57:42
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Starting /u01/app/oracle/product/10.2.0/db_2/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    System parameter file is /u01/app/oracle/product/10.2.0/db_2/network/admin/listener.ora
    Log messages written to /u01/app/oracle/product/10.2.0/db_2/network/log/listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ServerCentOS41)(PORT=1522)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC2)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ServerCentOS41)(PORT=1522)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date 30-AUG-2005 17:57:42
    Uptime 0 days 0 hr. 0 min. 0 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/product/10.2.0/db_2/network/admin/listener.ora
    Listener Log File /u01/app/oracle/product/10.2.0/db_2/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ServerCentOS41)(PORT=1522)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC2)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    [oracle@ServerCentOS41 ~]$ dbstart
    Processing ASM instance "+ASM": log file /u01/app/oracle/product/10.2.0/db_1/startup.log
    Processing Database instance "MastDB": log file /u01/app/oracle/product/10.2.0/db_2/startup.log
    [oracle@ServerCentOS41 ~]$ emctl start dbconsole
    TZ set to US/Eastern
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
    Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    http://ServerCentOS41:1158/em/console/aboutApplication
    Starting Oracle Enterprise Manager 10g Database Control ........................ started.
    Logs are generated in directory /u01/app/oracle/oracle/product/10.2.0/db_2/ServerCentOS41_MastDB/sysman/log
    Install described above was done with different Oracle Homes
    for ASM instance and ASM-database.
    To put ASM instance and ASM-database in same Oracle Home.
    Start runInstaller just once to build all stuff at a time.
    Login as oracle:-
    $ cd /tmp/database
    $./runInstaller
    Select " Advanced option" and install "Software only"
    in ORACLE_HOME - /u01/app/oracle/oracle/product/10.2.0/db_1.
    Modify oracle's .bash_profile:-
    export ORACLE_HOME and new PATH.
    Source new .bash_profile:-
    $. ~oracle/.bash_profile
    $dbca
    During this run the request to start CRS daemons by root will come up.
    # $ORACLE_HOME/bin/localconfig add
    ASM instance , needed disk's groups and ASM-database itself will be created.
    Then perform listener and local TNS names configuration.
    $netca
    II. Oracle 10gR2 ASM and Standard Linux I/O.
    This method creates Oracle database files on raw character devices managed by ASM using standard Linux I/O system calls.It requires to create RAW devices for all disk partitions used by ASM.
    1.Install CentOS 4.1
    2.Run as root:
    # groupadd dba # group of users to be granted SYSDBA system privilege
    # groupadd oinstall # group owner of Oracle files
    # useradd -c "Oracle software owner" -g oinstall -G dba oracle
    # passwd oracle
    # mkdir -p /u01/app/oracle
    # chown -R oracle.oinstall /u01
    # mkdir -p /u02/oradata/data
    # chown -R oracle.oinstall /u02
    Just as an example create 4 partitions:
    /dev/hda6,/dev/hdc6 5 GB each one
    /dev/hda7,/dev/hdc7 3 GB each one
    Create raw devices modifying file /etc/sysconfig/rawdevices as follows:
    /dev/raw/raw1 /dev/hda6
    /dev/raw/raw2 /dev/hdc6
    /dev/raw/raw3 /dev/hda7
    /dev/raw/raw4 /dev/hdc7
    Put in /etc/rc.d/rc.local
    chown oracle:dba /dev/raw/raw*
    chmod 660 /dev/raw/raw*
    I was experiencing problems with loosing "oracle:dba" permissions after Linux
    reboot. Oracle's raw device came up with "root:disk" ownership after reboot.
    Restart Linux
    Run as root:-
    # service rawdevices restart
    Tune /etc/sysctl.conf,/etc/security/limits.conf,/etc/pam.d/login,
    /etc/profile and oracle's shell environment as advised in [1].
    Login as oracle:-
    $ cd /tmp/database
    $./runInstaller
    Select " Advanced installation" and
    create ASM instance in ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/asm
    During this run create diskgroup RAWDATA1 with normal redundancy
    mirroring /dev/raw/raw1 and /dev/raw/raw2.
    You should be fine with discovering raw devices if permissions are in place (oracle:dba)
    Exit installer.
    Export ORACLE_HOME for ASM instance and corresponding PATH.
    Then run "dbca" to create diskgroup RAWDATA2 with
    normal redundancy mirroring /dev/raw/raw3 and /dev/raw/raw4
    $ ./runInstaller
    Select " Advanced installation" and create new ASM-database placed RAWDATA1 diskgroup
    in $ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/db_1.
    Modify ~oracle/.bash_profile correspondently.Relogin as oracle.
    Next:-
    $ sqlplus /nolog
    SQL> conn / as sysdba
    Connected.
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount;
    ORACLE instance started.
    Total System Global Area 285212672 bytes
    Fixed Size 1218968 bytes
    Variable Size 88082024 bytes
    Database Buffers 188743680 bytes
    Redo Buffers 7168000 bytes
    Database mounted.
    SQL> alter database archivelog;
    Database altered.
    SQL> alter database rawdbs flashback on;
    Database altered.
    SQL> alter database open;
    Database altered.
    Open Enterpise Manager console.(Enterprise Manager 10g Database Control
    URL http://ServerCentOS41:1158/em). Put flashback recovery area in RAWDATA2
    modifying corresponding value on Recovery Settings page of EM.
    References.
    1.www.puschitz.com/InstallingOracle10g.shtml
    Message was edited by:
    [email protected]

  • Solaris 10 + Oracle 10gR2 RAC question

    Hello everyone
    Has anyone come across the case where the CRS services of Oracle cause
    the public interface to get turned off and then restored at random
    time intervals? To elaborate, we have a 2 node cluster database.
    Solaris 10, Oracle 10gR2 RAC with patch 10.2.0.3 applied. No SUN
    clustering is involved. When the cluster software is down (nodeapps,
    asm, database instances all down) /var/adm/messages show nothing. When
    we start nodeapps on the 2 nodes(thus initiating some form of
    communication between the nodes), at random time intervals we get
    "interface ce0 turned off and interface ce0 restored" in /var/adm/
    messages. When we check the status of the RAC, we see that one node's
    vip has been assigned to the other. This on/off behaviour of the NIC
    can be eliminated only if we continuously PING it from a another
    client in the network.
    As a matter of fact, the RAC and the RDBMS work perfectly when we keep
    pinging the 2 nodes from an other client on the network. We even
    managed to run a long batch job, distributed on cluster managed
    services on the 2 instances, and it completed after 9 hours without
    any problems.
    Does anyone have a hint on this behaviour? Is there some sort of
    timeout for the network cards? Some power saving features? Googling
    around I came across the new Containers feature available on Solaris
    10. Is there a way that I can verify that either RAC or the RDBMS is
    running in "container" mode ( since the solaris and Oracle
    installation was not performed by me)? Any other ideas?
    Thank you for reading

    Im an Oracle guy - not the SA type -
    But on ours - the SA configured this cluster incorrectly. We use veritas. instead of making ipmp groups for the interfaces - he built the cluster according to veritas docs. That is - he has two publics - on difference interfaces and different privates on different interfaces. oracle can only two interfaces - no matter if its a ipmp group or a device name. one is used for private- the other is used for public - So sure the veritas cluster filesystems will survive - but the Oracle Cluster will not - nodes will reboot -
    Is your system set up incorrectly as i described above? if it is - a quick test would be - turn down the other interfaces - and only leave the two interfaces you mention above up that you configured for Oracle CRS
    This other sharp sa was able to go through the arp table and see duplicate IPs - and the routing was attempted via an interface that oracle doesnt see. You can not define two different interfaces public - and two different interfaces for private -

  • Documentation on Advance Replication in Oracle 10gR2

    Hello Everyone,
    I am in need of an proper documentation on Advance Replication as i have been assigned a task to perform Replication on DB in Oracle 10gR2 but the content i have is not enough to clear my doubts so can any one provide me the perfect documentation
    please i am in a need as i am new to the concept
    Thanks & Regards
    Pratik Lakhpatwala
    Jr Oracle DBA

    Thanks a lot Sir,
    This Doc will help me a lot...
    Thanks & Regards
    Pratik Lakhpatwala
    Jr Oracle DBA

  • Upgrade oracle 10gR2(10.2.0.1) xe to oracle 10gR2(10.2.0.3) in Linux 4

    Hello everyone,
    I am using Patchset "p5337014 10203 LINUX.ZIP" to upgrade the oracle 10gR2(10.2.0.1)express edition into oracle10gR2(10.2.0.3).In Installation i got the followoing error:
    OUI-10091: There are no patches that neeed to be applied from the patchset oracle Database 10gR2 patchset 2 10.2.0.3.0
    Please help me .
    Thanks in advance!

    hello shrinivas,
    I have already done all the things that are mentioned in links.
    now i am sending u my log file..
    please see it and help me..
    INFO: Using paramFile: /usr/lib/oracle/xe/Disk1/install/oraparam.ini
    INFO:
    INFO:
    INFO: Checking installer requirements...
    INFO:
    INFO: Checking operating system version: must be redhat-3, SuSE-9, SuSE-10, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
    INFO: Passed
    INFO:
    INFO:
    INFO: All installer requirements met.
    INFO:
    INFO:
    INFO: The commandline for unzip:
    INFO: /usr/lib/oracle/xe/Disk1/install/unzip -qqqo ../stage/Components/oracle.swd.jre/1.4.2.8.0/1/DataFiles/\*.jar -d /tmp/OraInstall2008-08-05_12-06-51PM
    INFO: The commandline for unzip:
    INFO: /usr/lib/oracle/xe/Disk1/install/unzip -qqqo ../stage/Components/oracle.swd.oui/10.2.0.3.0/1/DataFiles/\*.jar -d /tmp/OraInstall2008-08-05_12-06-51PM
    INFO: The commandline for unzip:
    INFO: /usr/lib/oracle/xe/Disk1/install/unzip -qqqo ../stage/Components/oracle.swd.oui.core/10.2.0.3.0/1/DataFiles/\*.jar -d /tmp/OraInstall2008-08-05_12-06-51PM
    INFO:
    INFO: The number of files bootstrapped for the jre is 590.
    INFO:
    INFO: The number of files bootstrapped for the oui is 65.
    INFO: Execvp of the child jre : the cmdline is /tmp/OraInstall2008-08-05_12-06-51PM/jre/1.4.2/bin/java, and the argv is
    INFO: /tmp/OraInstall2008-08-05_12-06-51PM/jre/1.4.2/bin/java
    INFO: -Doracle.installer.library_loc=/tmp/OraInstall2008-08-05_12-06-51PM/oui/lib/linux
    INFO: -Doracle.installer.oui_loc=/tmp/OraInstall2008-08-05_12-06-51PM/oui
    INFO: -Doracle.installer.bootstrap=TRUE
    INFO: -Doracle.installer.startup_location=/usr/lib/oracle/xe/Disk1/install
    INFO: -Doracle.installer.jre_loc=/tmp/OraInstall2008-08-05_12-06-51PM/jre/1.4.2
    INFO: -Doracle.installer.nlsEnabled="TRUE"
    INFO: -Doracle.installer.prereqConfigLoc=/tmp/OraInstall2008-08-05_12-06-51PM/prereq
    INFO: -Doracle.installer.unixVersion=2.6.9-55.ELsmp
    INFO: -mx150m
    INFO: -cp
    INFO: /tmp/OraInstall2008-08-05_12-06-51PM:/tmp/OraInstall2008-08-05_12-06-51PM/oui/jlib/OraInstaller.jar:/tmp/OraInstall2008-08-05_12-06-51PM/oui/jlib/oneclick.jar:/tmp/OraInstall2008-08-05_12-06-51PM/oui/jlib/xmlparserv2.jar:/tmp/OraInstall2008-08-05_12-06-51PM/oui/jlib/srvm.jar:/tmp/OraInstall2008-08-05_12-06-51PM/oui/jlib/share.jar:/tmp/OraInstall2008-08-05_12-06-51PM/oui/jlib/OraInstallerNet.jar:/tmp/OraInstall2008-08-05_12-06-51PM/oui/jlib/xml.jar:/tmp/OraInstall2008-08-05_12-06-51PM/oui/jlib/orai18n-collation.jar:/tmp/OraInstall2008-08-05_12-06-51PM/oui/jlib/orai18n-mapping.jar:/tmp/OraInstall2008-08-05_12-06-51PM/oui/jlib/emCfg.jar:/tmp/OraInstall2008-08-05_12-06-51PM/oui/jlib/ojmisc.jar:/tmp/OraInstall2008-08-05_12-06-51PM/oui/jlib/InstImages.jar:/tmp/OraInstall2008-08-05_12-06-51PM/oui/jlib/InstHelp.jar:/tmp/OraInstall2008-08-05_12-06-51PM/oui/jlib/InstHelp_de.jar:/tmp/OraInstall2008-08-05_12-06-51PM/oui/jlib/InstHelp_es.jar:/tmp/OraInstall2008-08-05_12-06-51PM/oui/jlib/InstHelp_fr.jar:/tmp/OraInstall2008-08-05_12-06-51PM/oui/jlib/InstHelp_it.jar:/tmp/OraInstall2008-08-05_12-06-51PM/oui/jlib/InstHelp_ja.jar:/tmp/OraInstall2008-08-05_12-06-51PM/oui/jlib/InstHelp_ko.jar:/tmp/OraInstall2008-08-05_12-06-51PM/oui/jlib/InstHelp_pt_BR.jar:/tmp/OraInstall2008-08-05_12-06-51PM/oui/jlib/InstHelp_zh_CN.jar:/tmp/OraInstall2008-08-05_12-06-51PM/oui/jlib/InstHelp_zh_TW.jar:/tmp/OraInstall2008-08-05_12-06-51PM/oui/jlib/oracle_ice.jar:/tmp/OraInstall2008-08-05_12-06-51PM/oui/jlib/help4.jar:/tmp/OraInstall2008-08-05_12-06-51PM/oui/jlib/help4-nls.jar:/tmp/OraInstall2008-08-05_12-06-51PM/oui/jlib/ewt3.jar:/tmp/OraInstall2008-08-05_12-06-51PM/oui/jlib/ewt3-swingaccess.jar:/tmp/OraInstall2008-08-05_12-06-51PM/oui/jlib/ewt3-nls.jar:/tmp/OraInstall2008-08-05_12-06-51PM/oui/jlib/swingaccess.jar:/tmp/OraInstall2008-08-05_12-06-51PM/oui/jlib/classes12.jar::/tmp/OraInstall2008-08-05_12-06-51PM/oui/jlib/OraPrereq.jar:/tmp/OraInstall2008-08-05_12-06-51PM/oui/jlib/jewt4.jar:/tmp/OraInstall2008-08-05_12-06-51PM/oui/jlib/jewt4-nls.jar
    INFO: oracle.sysman.oii.oiic.OiicInstaller
    INFO: -scratchPath
    INFO: /tmp/OraInstall2008-08-05_12-06-51PM
    INFO: -sourceLoc
    INFO: /usr/lib/oracle/xe/Disk1/install/../stage/products.xml
    INFO: -sourceType
    INFO: network
    INFO: -timestamp
    INFO: 2008-08-05_12-06-51PM
    INFO: Environment Variables:
    INFO:      ORACLE_HOME =
    INFO:      PATH = /usr/bin:/usr/ccs/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/lib/oracle/xe/Disk1/install
    INFO:      CLASSPATH =
    INFO: Username:oracle
    INFO: Setting variable 'PREREQ_CONFIG_LOCATION' to '/tmp/OraInstall2008-08-05_12-06-51PM/prereq'. Received the value from variable association.
    INFO: Reader/Writer 'oracle.sysman.oii.oiic.OiicGlobalContextXMLReaderWriter' was created.
    INFO: Retrieving the global context: OiicGlobalContext.getGlobalContext()
    INFO:
    *** Welcome Page***
    INFO:
    *** Specify Inventory directory and credentials Page***
    INFO: Setting the 'InventoryLocation ( INVENTORY_LOCATION )' property to '/usr/lib/oracle/xe/oraInventory'. Received the value from the UI page.
    INFO: Setting the 'UnixInstallGroup ( UNIX_GROUP_NAME )' property to 'dba'. Received the value from the UI page.
    INFO: Initializing install inventory
    INFO: Setting up install inventory
    INFO: Unable to read the list of homes from the inventory.
    INFO: Oracle Universal Installer version is 10.2.0.3.0
    INFO:
    *** Specify Source Location Page***
    INFO: Initializing OUI Shiphome access setup
    INFO: DefaultifyLangiages : Value of oracle.installer.defaultifyLanguages : false
    INFO: fetch the file: /usr/lib/oracle/xe/Disk1/stage/shiphomeinfo.properties
    INFO: Performing operation for OUI Shiphome access setup
    INFO:
    *** Select a Product to Install Page***
    INFO: Setting the 'TopLevelComp ( ToplevelComp )' property to 'oracle.patchset.db, 10.2.0.3.0, >10.2.0.3.0, [ ][OH:2]'. Received the value from the default settings.
    INFO:
    *** Select Installation Type Page***
    INFO: Setting the 'InstallType ( DEP_MODE )' property to 'Custom'. Received the value from the default settings.
    INFO: Setting the 'TopLevelInstallType ( TLDepModes )' property to 'Custom'. Received the value from the default settings.
    INFO: install properties filename: /tmp/OraInstall2008-08-05_12-06-51PM/oracle.patchset.db_Custom.properties
    INFO:
    *** Specify Home Details Page***
    INFO: Setting the 'OracleHome ( ORACLE_HOME )' property to '/usr/lib/oracle/xe/oracle/product/10.2.0/db_1'. Received the value from the UI page.
    INFO: Setting the 'OracleHomeName ( ORACLE_HOME_NAME )' property to 'OraDb10g_home1'. Received the value from the UI page.
    INFO: Initializing OUI Oracle Home access setup
    INFO: Setting variable 'ORACLE_HOME' to '/usr/lib/oracle/xe/oracle/product/10.2.0/db_1'. Received the value from the UI page.
    INFO: Loading shiphomepropertiesfrom /tmp/OraInstall2008-08-05_12-06-51PM/shiphomeproperties.xml
    INFO: DefaultifyLangiages : Value of oracle.installer.defaultifyLanguages : false
    INFO: Setting the PROD_HOME variable of 'oracle.swd.oui_10.2.0.3.0' to '/usr/lib/oracle/xe/oracle/product/10.2.0/db_1/oui'. Received the value from the variable calculation.
    INFO: Setting the PROD_HOME variable of 'oracle.swd.oui.core_10.2.0.3.0' to '/usr/lib/oracle/xe/oracle/product/10.2.0/db_1/oui'. Received the value from the variable calculation.
    INFO: Setting the PROD_HOME variable of 'oracle.swd.opatch_10.2.0.3.0' to '/usr/lib/oracle/xe/oracle/product/10.2.0/db_1/OPatch'. Received the value from the variable calculation.
    INFO: Setting the PROD_HOME variable of 'oracle.swd.jre_1.4.2.8.0' to '/usr/lib/oracle/xe/oracle/product/10.2.0/db_1/jre/1.4.2'. Received the value from the variable calculation.
    INFO: Performing operation for OUI Oracle Home access setup
    INFO: Unable to read /usr/lib/oracle/xe/oracle/product/10.2.0/db_1/inventory/ContentsXML/comps.xml. Some inventory information may be lost.
    INFO: OUI-10070:The patch oracle.ons 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.assistants.server 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.client 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.companionCD.db 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.companionCD.midtier 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.crs 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.csmig 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.rdbms 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.dbjava.dev 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.dbjava.ic 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.server 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.sysman.console.emcp 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.sqlplus 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.has.common 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.has.crs 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.has.db 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.sqlplus.ic 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.htmldb 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.isearch.client 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.isearch.is_common 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.isearch.server 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.javavm.client 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.javavm.companion 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.javavm.server 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.ldap.client 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.sqlplus.isqlplus 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.network.aso 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.network.client 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.network.cman 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.network.listener 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.network.owm 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.precomp.common 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.tg4drda 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.network.ssl 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.tg4drda.sna 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.odbc 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.oem.client 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.tg4drda.tcp 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.oraolap 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.oraolap.api 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.oraolap.dbscripts 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.ordim.client 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.ordim.companion 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.ordim.rdbms 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.ordim.server 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.pg4appc 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.pg4mq 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.wwg.plsql 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.precomp.lang 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.xdk 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.ctx 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.rdbms.companion 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.rdbms.crs 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.rdbms.dbscripts 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.rdbms.dm 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.rdbms.dmse 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.rdbms.hs_common 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.rdbms.ic 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.rdbms.install.common 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.rdbms.install.seeddb 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.rdbms.install.seeddb.sample_schema 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.rdbms.lbac 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.rdbms.locator 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.rdbms.oci 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.rdbms.olap 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.rdbms.partitioning 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.rdbms.plsql 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.rdbms.rman 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.xdk.companion 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.rdbms.util 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.sdo.companion 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.sdo.locator 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.xdk.parser.java 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.assistants.acf 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.dbjava.jdbc12 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: Unable to read /usr/lib/oracle/xe/oraInventory/ContentsXML/comps.xml. Some inventory information may be lost.
    INFO: OUI-10070:The patch oracle.has.cfs 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10071:The patch could not be found in the staging area.
    INFO: OUI-10070:The patch oracle.nlsrtl.companion 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.odbc.ic 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10071:The patch could not be found in the staging area.
    INFO: OUI-10070:The patch oracle.rdbms.tg4sybs 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10071:The patch could not be found in the staging area.
    INFO: OUI-10070:The patch oracle.rdbms.tg4tera 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10071:The patch could not be found in the staging area.
    INFO: OUI-10070:The patch oracle.dbjava.jdbc14 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.oraolap.mgmt 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.ordim.jai 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.sqlj.sqljruntime 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.sqlj 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.xdk.server 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.ntmgmtobjs 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10071:The patch could not be found in the staging area.
    INFO: OUI-10070:The patch oracle.ntmgmtobjs.companion 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10071:The patch could not be found in the staging area.
    INFO: OUI-10070:The patch oracle.ntoledb.ode_net 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10071:The patch could not be found in the staging area.
    INFO: OUI-10070:The patch oracle.ntoledb.odp_net 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10071:The patch could not be found in the staging area.
    INFO: OUI-10070:The patch oracle.ntoramts 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10071:The patch could not be found in the staging area.
    INFO: OUI-10070:The patch oracle.ntrdbms.admin 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10071:The patch could not be found in the staging area.
    INFO: OUI-10070:The patch oracle.ntrdbms.oraconfig 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10071:The patch could not be found in the staging area.
    INFO: OUI-10070:The patch oracle.ntrdbms.perfmon 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.sysman.agent.db 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.sysman.bsln 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.sysman.console.db 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.xdk.rsf 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.emdw.rsf 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.dbjava.rsf 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.ldap.rsf 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.precomp.rsf 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.has.rsf 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.rdbms.rsf.ic 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.rdbms.rsf 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.sqlplus.rsf 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.network.rsf.ic 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.network.rsf 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.nlsrtl.rsf 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.oracore.rsf 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.buildtools.rsf 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.isearch.rdbms 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.mgw.common 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.dv 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.rdbms.dv 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.rdbms.dv.oc4j 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.sysman.agent.core 10.2.0.3.0a, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.sysman.common.core 10.2.0.3.0a, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.sysman.repository.core 10.2.0.3.0a, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.javavm.containers 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.rdbms.tg4msql 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10071:The patch could not be found in the staging area.
    INFO: OUI-10070:The patch oracle.ctx.companion 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: OUI-10070:The patch oracle.sysman.repository.db 10.2.0.3.0, which is part of patch set Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 , has not been selected for installation.
    INFO: SRVM ClusterInfo.IsLocalOnly() called. Return value obtained is 'false'.
    INFO: The CRS clusterware location for 'oracle.crs 10.1.0.2.0' is not found.
    INFO: This is not a cluster system.
    INFO: Node selection page will not be shown.
    SEVERE: OUI-10091:There are no patches that need to be applied from the patchset Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0 .
    INFO: User Selected: Yes/OK
    INFO: Performing operation for OUI Oracle Home access setup
    Thanks

  • Set up export script and how to run it. Oracle 10gR2

    Can someone help explain this script to a newbie. I need to write a script to export all data from our Oracle 10gR2 Tru64 Unix to another system. We need to test how long a 200GB tablespace export will take writing directly to nfs mount on SAN.
    1. The only option we have is to use a NFS Mount to the new SAN. ( there is no space on our existing system)
    2. What needs to be declared to describe the environment in both Oracle and/or in the script to make it run?
    3. Do I need to tell Oracle where the export directory is? (NFS Mount).
    4. how is exp run? Do dba run via a XXX.sh script or SQLPLUS XXX.sql script?
    5. how can I check the progress....
    I don't understand the set up of the oracle environment lines, can someone help me?
    Here is a sample script I found on our system....
    1 #!/bin/sh
    2 # /usr/users/oracle/nfsoraexpt_linux.sh
    3 # Export up the specified instance of the db tar it to an nfs mount point and log it
    4
    5 # Set up the oracle instance and environment
    6
    7 ORACLE_SID=pdsprod; export ORACLE_SID
    8
    9 ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1; export ORACLE_HOME
    10 PATH=/usr/bin:/u01/app/oracle/product/10.2.0/db_1/bin:/apg/0800/mercator:/usr/users/oracle/bin:.; export PATH
    11
    12 # Do logging and export the instance
    13 rm /nfs_dir/oraexpt.log
    14 echo `date` >> /nfs_dir/oraexpt.log
    15 exp user/password file='/nfs_dir/pdsprod.exp' log='/nfs_dir/pdsprodexp.log' full=y direct=y feedback=5000000
    16 #exp user/password file='/nfs_dir/pdsprod.exp' log='/nfs_dir/pdsprodexp.log' tablespace='ENC_DS_DATA' direct=y feedback=5000000
    17 cat /nfs_dir/pdsprodexp.log >> /nfs_dir/oraexpt.log; rm /nfs_dir/pdsprodexp.log
    18
    19 echo `date` >> /nfs_dir/oraexpt.log
    20 cd /nfs_dir
    21 # gzip -f pdsprod.exp
    22 ls -al pdsprod.exp >> oraexpt.log
    23 mail -r email email2 < /nfs_dir/oraexpt.log
    24
    Any help for this first time user would be appreciated. Thanks

    First it sets some environment variables in the shell.
    Then it removes a log file.
    Then it uses an obsolete tool to export some data.
    Then it displays the contents of the log file.
    Then it changes the present working directory.
    Then it lists the files in the directory.
    Then, presumably, it emails a copy of the log file somewhere.
    In 10gR2 I would suggest throwing it away and using a proper tool to do the job such as RMAN or DataPump.
    Additionally find someone to teach you how to navigate and perform basic tasks in Linux. This may help.
    http://www.psoug.org/reference/unix_vi.html
    as might Arup Nanda's excellent tutorial here:
    http://www.oracle.com/technology/pub/articles/advanced-linux-commands/part1.html

  • EXTREMELY SLOW XQUERY PERFORMANCE AND SLOW DOCUMENT INSERTS

    EXTREMELY SLOW XQUERY PERFORMANCE AND SLOW DOCUMENT INSERTS.
    Resolution History
    12-JUN-07 15:01:17 GMT
    ### Complete Problem Description ###
    A test file is being used to do inserts into a schemaless XML DB. The file is inserted and then links are made to 4
    different collection folders under /public. The inserts are pretty slow (about
    15 per second and the file is small)but the xquery doesn't even complete when
    there are 500 documents to query against.
    The same xquery has been tested on a competitors system and it has lightening fast performance there. I know it
    should likewise be fast on Oracle, but I haven't been able to figure out what
    is going on except that I suspect somehow a cartesian product is the result of
    the query on Oracle.
    ### SQLXML, XQUERY, PL/SQL syntax used ###
    Here is the key plsql code that calls the DBMS_XDB procedures:
    CREATE OR REPLACE TYPE "XDB"."RESOURCEARRAY" AS VARRAY(500) OF VARCHAR2(256);
    PROCEDURE AddOrReplaceResource(
    resourceUri VARCHAR2,
    resourceContents SYS.XMLTYPE,
    public_collections in ResourceArray
    ) AS
    b BOOLEAN;
    privateResourceUri path_view.path%TYPE;
    resource_exists EXCEPTION;
    pragma exception_init(resource_exists,-31003);
    BEGIN
    /* Store the document in private folder */
    privateResourceUri := GetPrivateResourceUri(resourceUri);
    BEGIN
    b := dbms_xdb.createResource(privateResourceUri, resourceContents);
    EXCEPTION
    WHEN resource_exists THEN
    DELETE FROM resource_view WHERE equals_path(res, privateResourceUri)=1;
    b := dbms_xdb.createResource(privateResourceUri, resourceContents);
    END;
    /* add a link in /public/<collection-name> for each collection passed in */
    FOR i IN 1 .. public_collections.count LOOP
    BEGIN
    dbms_xdb.link(privateResourceUri,public_collections(i),resourceUri);
    EXCEPTION
    WHEN resource_exists THEN
    dbms_xdb.deleteResource(concat(concat(public_collections(i),'/'),resourceUri));
    dbms_xdb.link(privateResourceUri,public_collections(i),resourceUri);
    END;
    END LOOP;
    COMMIT;
    END;
    FUNCTION GetPrivateResourceUri(
    resourceUri VARCHAR2
    ) RETURN VARCHAR2 AS
    BEGIN
    return concat('/ems/docs/',REGEXP_SUBSTR(resourceUri,'[a-zA-z0-9.-]*$'));
    END;
    ### Info for XML Querying ###
    Here is the XQuery and a sample of the output follows:
    declare namespace c2ns="urn:xmlns:NCC-C2IEDM";
    for $cotEvent in collection("/public")/event
    return
    <cotEntity>
    {$cotEvent}
    {for $d in collection("/public")/c2ns:OpContextMembership[c2ns:Entity/c2ns:EntityIdentifier
    /c2ns:EntityId=xs:string($cotEvent/@uid)]
    return
    $d
    </cotEntity>
    Sample output:
    <cotEntity><event how="m-r" opex="o-" version="2" uid="XXX541113454" type="a-h-G-" stale="2007-03-05T15:36:26.000Z"
    start="2007-03-
    05T15:36:26.000Z" time="2007-03-05T15:36:26.000Z"><point ce="" le="" lat="5.19098483230079" lon="-5.333597827082126"
    hae="0.0"/><de
    tail><track course="26.0" speed="9.26"/></detail></event></cotEntity>

    19-JUN-07 04:34:27 GMT
    UPDATE
    =======
    Hi Arnold,
    you wrote -
    Please use Sun JDK 1.5 java to perform the test case.Right now I have -
    $ which java
    /usr/bin/java
    $ java -version
    java version "1.4.2"
    gcj (GCC) 3.4.6 20060404 (Red Hat 3.4.6-3)
    sorry as I told you before I am not very knowledgeable in Java. Can you tell me what setting
    s I need to change to make use of Sun JDK 1.5. Please note I am testing on Linux
    . Do I need to test this on a SUN box? Can it not be modify to run on Linux?
    Thanks,
    Rakesh
    STATUS
    =======
    @CUS -- Waiting for requested information

  • Oracle 10gR2 WebService Call-In & Call-Out via PL/SQL (Step-by-Step Guide)

    Hi Everyone,
    This guide is for those of you who tried to Call-In and Call-Out WebService via Oracle 10gR2 using PL/SQL but failed a couple of times, re-installed a couple of times and retry, got it to work but don't know what made it work scenarios.
    Hope this helps ;-)
    Thanks,
    Henry Wu
    Instructions on how to use Oracle10gR2 Webservice Call-Out feature (Oracle JAX-RPC DII - Dynamic Invocation (DII) APIs)
    PREREQUISITE
    =================================================================
    1. Download Oracle Database 10g Release 2 (10.2.0.1.0) (ZIP, ~655MB)
    http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10201winsoft.html
    http://download.oracle.com/otn/nt/oracle10g/10201/10201_database_win32.zip
    1.1 Choose Enterprise Edition
    2. Download 10.1.3.1 Callout Utility for 10g (R1 +R2) RDBMS (ZIP, ~13MB)
    http://download.oracle.com/technology/sample_code/tech/java/jsp/dbws-callout-utility-10131.zip
    2.1 Extract to C:\oracle\product\10.2.0\db_1\dbws_callout_utility_10131
    3. Download OC4J Standalone - Oracle Containers for J2EE (OC4J) 10g Release 3 (10.1.3.3) (ZIP, ~93MB; Pure Java—runs on all certified platforms)
    http://www.oracle.com/technology/software/products/ias/index.html (Download Site)
    http://download.oracle.com/otn/java/oc4j/101330/oc4j_extended_101330.zip
    3.1 Extract to C:\oracle\product\10.2.0\db_1\oc4j_extended_101330
    STEP-BY-STEP PROCEDURES
    =================================================================
    1. Prepare the database
    1.1 Connect to SYS account (or any account that can connect as SYSDBA)
    1.2 alter system set shared_pool_size=96M scope=both
    1.3 alter system set java_pool_size=80M scope=both
    1.4 ALTER USER SCOTT ACCOUNT UNLOCK;
    1.5 ALTER USER SCOTT IDENTIFIED BY "tiger";
    1.6 ALTER USER SCOTT QUOTA UNLIMITED ON USERS;
    1.7 GRANT PUBLIC TO SCOTT;
    1.8 GRANT Create Public Synonym TO SCOTT;
    2. Load Oracle SOAP client to SCOTT (for Oracle 10g Release 2 Database)
    2.1 Commands
    2.1.1 Open command prompt (cmd.exe)
    2.1.2 loadjava -u scott/tiger -r -v -f -genmissing -s -grant public C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\webservices\lib\soap.jar C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\lib\dms.jar C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\jlib\javax-ssl-1_1.jar C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\lib\servlet.jar C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\lib\mail.jar C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\lib\activation.jar C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\lib\http_client.jar C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\lib\ejb.jar
    2.1.3 It will take around 3 minutes and you will see "something" like the following when it completes (count may not be exact) :
    Classes Loaded: 909
    Resources Loaded: 75
    Sources Loaded: 0
    Published Interfaces: 0
    Classes generated: 0
    Classes skipped: 0
    Synonyms Created: 984
    Errors: 0
    2.1.3 Close this command prompt
    3. Load Oracle JAX-RPC client to SYS (for Oracle 10g Release 2 Database)
    3.1 Commands
    3.1.1 Open command prompt (cmd.exe)
    3.1.2 loadjava -u sys/oracle -r -v -f -genmissing -s -grant public C:\oracle\product\10.2.0\db_1\dbws_callout_utility_10131\sqlj\lib\dbwsclientws.jar C:\oracle\product\10.2.0\db_1\dbws_callout_utility_10131\sqlj\lib\dbwsclientdb102.jar
    3.1.2.1 It will take around 15 minutes and you will see "something" like following when it completes (count may not be exact) :
    Classes Loaded: 4027
    Resources Loaded: 81
    Sources Loaded: 0
    Published Interfaces: 0
    Classes generated: 61
    Classes skipped: 0
    Synonyms Created: 4108
    Errors: 0
    3.1.3 Close this command prompt
    4. Execute UTL_DBWS packages to SYS (for Oracle 10g Release 2 Database)
    4.1 Commands
    4.1.1 Connect to SYS account only
    4.1.2 Execute the following (in TOAD you should execute them as Script, press the "thunder" button)
    4.2.1 @"C:\oracle\product\10.2.0\db_1\dbws_callout_utility_10131\sqlj\lib\utl_dbws_decl.sql"
    4.2.2 @"C:\oracle\product\10.2.0\db_1\dbws_callout_utility_10131\sqlj\lib\utl_dbws_body.sql"
    4.2.3 CREATE PUBLIC SYNONYM utl_dbws FOR sys.utl_dbws;
    5. Call-out a free Web Service using SCOTT
    5.1 Commands
    5.1.1 Connect to user SCOTT with password of TIGER
    5.1.2 Copy and Paste the following "Anonymous Block" (sample #1) and execute it :
    5.1.2.1 It sould return "PL/SQL DII client return ===> Redwood City"
    declare
    service_ utl_dbws.SERVICE;
    call_ utl_dbws.CALL;
    service_qname utl_dbws.QNAME;
    port_qname utl_dbws.QNAME;
    operation_qname utl_dbws.QNAME;
    string_type_qname utl_dbws.QNAME;
    retx ANYDATA;
    retx_string VARCHAR2(1000);
    retx_double number;
    retx_len number;
    params utl_dbws.ANYDATA_LIST;
    l_input_params utl_dbws.anydata_list;
    l_result ANYDATA;
    l_namespace VARCHAR2(1000);
    begin
    -- open internet explorer and navigate to http://webservices.imacination.com/distance/Distance.jws?wsdl
    -- search for 'targetNamespace' in the wsdl
    l_namespace := 'http://webservices.imacination.com/distance/Distance.jws';
    -- search for 'service name' in the wsdl
    service_qname := utl_dbws.to_qname(l_namespace, 'DistanceService');
    -- this is just the actual wsdl url
    service_ := utl_dbws.create_service(HTTPURITYPE('http://webservices.imacination.com/distance/Distance.jws?wsdl'), service_qname);
    -- search for 'portType name' in the wsdl
    port_qname := utl_dbws.to_qname(l_namespace, 'Distance');
    -- search for 'operation name' in the wsdl
    -- there will be a lot, we will choose 'getCity'
    operation_qname := utl_dbws.to_qname(l_namespace, 'getCity');
    -- bind things together
    call_ := utl_dbws.create_call(service_, port_qname, operation_qname);
    -- default is 'FALSE', so we make it 'TRUE'
    utl_dbws.set_property(call_, 'SOAPACTION_USE', 'TRUE');
    -- search for 'operation soapAction' under <wsdl:operation name="getCity">
    -- it is blank, so we make it ''
    utl_dbws.set_property(call_, 'SOAPACTION_URI', '');
    -- search for 'encodingstyle' under <wsdl:operation name="getCity">
    utl_dbws.set_property(call_, 'ENCODINGSTYLE_URI', 'http://schemas.xmlsoap.org/soap/encoding/');
    -- search for 'binding style'
    utl_dbws.set_property(call_, 'OPERATION_STYLE', 'rpc');
    -- search for 'xmlns:xs' to know the value of the first parameter
    -- under <wsdl:message name="getCityResponse"> you will see the line <wsdl:part name="getCityReturn" type="xsd:string" />
    -- thus the return type is 'string", removing 'xsd:'
    string_type_qname := utl_dbws.to_qname('http://www.w3.org/2001/XMLSchema', 'string');
    -- in the line <wsdl:operation name="getCity" parameterOrder="zip">
    -- the parameterOrder is 'zip', thus we put in 'zip'
    -- the 'ParameterMode.IN' is used to specify that we will be passing an "In Parameter" to the web service
    -- the 'ParameterMode.IN' is a constant variable in the sys.utl_dbws package
    utl_dbws.add_parameter(call_, 'zip', string_type_qname, 'ParameterMode.IN');
    utl_dbws.set_return_type(call_, string_type_qname);
    -- supply the In Parameter for the web service
    params(0) := ANYDATA.convertvarchar('94065');
    -- invoke the web service
    retx := utl_dbws.invoke(call_, params);
    -- access the returned value and output it to the screen
    retx_string := retx.accessvarchar2;
    dbms_output.put_line('PL/SQL DII client return ===> ' || retx_string);
    -- release the web service call
    utl_dbws.release_service(service_);
    end;
    5.1.3 Copy and Paste the following "Anonymous Block" (sample #2) and execute it :
    5.1.3.1 It should return "PL/SQL DII client return ===> twelve thousand three hundred and forty five"
    declare
    service_ utl_dbws.SERVICE;
    call_ utl_dbws.CALL;
    service_qname utl_dbws.QNAME;
    port_qname utl_dbws.QNAME;
    operation_qname utl_dbws.QNAME;
    string_type_qname utl_dbws.QNAME;
    retx ANYDATA;
    retx_string VARCHAR2(1000);
    retx_double number;
    retx_len number;
    params utl_dbws.ANYDATA_LIST;
    l_input_params utl_dbws.anydata_list;
    l_result ANYDATA;
    l_namespace VARCHAR2(1000);
    begin
    -- open internet explorer and navigate to http://www.dataaccess.com/webservicesserver/numberconversion.wso?WSDL
    -- search for 'targetNamespace' in the wsdl
    l_namespace := 'http://www.dataaccess.com/webservicesserver/';
    -- search for 'service name' in the wsdl
    service_qname := utl_dbws.to_qname(l_namespace, 'NumberConversion');
    -- this is just the actual wsdl url
    service_ := utl_dbws.create_service(HTTPURITYPE('http://www.dataaccess.com/webservicesserver/numberconversion.wso?WSDL'), service_qname);
    -- search for 'portType name' in the wsdl
    port_qname := utl_dbws.to_qname(l_namespace, 'NumberConversionSoap');
    -- search for 'operation name' in the wsdl
    -- there will be a lot, we will choose 'NumberToWords'
    operation_qname := utl_dbws.to_qname(l_namespace, 'NumberToWords');
    -- bind things together
    call_ := utl_dbws.create_call(service_, port_qname, operation_qname);
    -- default is 'FALSE', so we make it 'TRUE'
    utl_dbws.set_property(call_, 'SOAPACTION_USE', 'TRUE');
    -- search for 'operation soapAction' under <operation name="NumberToWords">
    -- it is blank, so we make it ''
    utl_dbws.set_property(call_, 'SOAPACTION_URI', '');
    -- search for 'encodingstyle'
    -- cannot find xml tag 'encodingstyle', so we just use the following as the generic encoding style
    utl_dbws.set_property(call_, 'ENCODINGSTYLE_URI', 'http://schemas.xmlsoap.org/soap/encoding/');
    -- search for 'binding style'
    -- although 'document' was used, it produced an error, thus we will use 'rpc'
    -- this value is generally only 'document' or 'rpc'
    utl_dbws.set_property(call_, 'OPERATION_STYLE', 'rpc');
    -- search for 'xmlns:xs' to know the value of the first parameter
    -- under <xs:element name="NumberToWords"> you will see the line <xs:element name="ubiNum" type="xs:unsignedLong" />
    -- thus the return type is 'unsignedlong', removing 'xs:'
    -- however, upon testing, using 'unsignedlong' produced an error, while 'string' did not, so we will use 'string'
    string_type_qname := utl_dbws.to_qname('http://www.w3.org/2001/XMLSchema', 'string');
    -- under <xs:element name="NumberToWords"> you will see the line <xs:element name="ubiNum" type="xs:unsignedLong" />
    -- the element name is 'ubiNum', thus we put in 'ubiNum'
    -- the 'ParameterMode.IN' is used to specify that we will be passing an "In Parameter" to the web service
    -- the 'ParameterMode.IN' is a constant variable in the utl_dbws package
    utl_dbws.add_parameter(call_, 'ubiNum', string_type_qname, 'ParameterMode.IN');
    utl_dbws.set_return_type(call_, string_type_qname);
    -- supply the In Parameter for the web service
    params(0) := ANYDATA.convertvarchar('12345');
    -- invoke the web service
    retx := utl_dbws.invoke(call_, params);
    -- access the returned value and output it to the screen
    retx_string := retx.accessvarchar2;
    dbms_output.put_line('PL/SQL DII client return ===> ' || retx_string);
    -- release the web service call
    utl_dbws.release_service(service_);
    end;
    NOTES AND REFERENCES
    =================================================================
    This detailed step-by-step guide was produced with the following guide http://www.oracle.com/technology/sample_code/tech/java/jsp/callout_users_guide.htm
    I could still not load Oracle JAX-RPC client to SCOTT (step 4) as it produces an error. See the following for more details :
    http://forums.oracle.com/forums/thread.jspa?threadID=633219&tstart=0
    Also, I could not consume some of the other free Web Services out there for reasons I don't know, hope someone can help clarify. See the following for more details :
    http://forums.oracle.com/forums/thread.jspa?threadID=630733&tstart=0
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    Instructions on how to use Oracle10gR2 Webservice Call-In feature
    PREREQUISITE
    =================================================================
    1. Download Oracle Database 10g Release 2 (10.2.0.1.0) (ZIP, ~655MB)
    http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10201winsoft.html
    http://download.oracle.com/otn/nt/oracle10g/10201/10201_database_win32.zip
    1.1 Choose Enterprise Edition
    2. Download OC4J Standalone - Oracle Containers for J2EE (OC4J) 10g Release 3 (10.1.3.3) (ZIP, ~93MB; Pure Java—runs on all certified platforms)
    http://www.oracle.com/technology/software/products/ias/index.html (Download Site)
    http://download.oracle.com/otn/java/oc4j/101330/oc4j_extended_101330.zip
    2.1 Extract to C:\oracle\product\10.2.0\db_1\oc4j_extended_101330
    STEP-BY-STEP PROCEDURES
    =================================================================
    1. Connect to SYS account and create user STORE
    CREATE USER store IDENTIFIED BY store;
    GRANT connect, resource TO store;
    2. Connect to Oracle using the user STORE and password STORE
    CONNECT store/store;
    3. Execute the following objects for this excercise
    CREATE SEQUENCE order_sq;
    CREATE TABLE product_types (
    product_type_id INTEGER
    CONSTRAINT product_types_pk PRIMARY KEY,
    name VARCHAR2(10) NOT NULL
    CREATE TABLE products (
    product_id INTEGER
    CONSTRAINT products_pk PRIMARY KEY,
    product_type_id INTEGER
    CONSTRAINT products_fk_product_types
    REFERENCES product_types(product_type_id),
    name VARCHAR2(30) NOT NULL,
    description VARCHAR2(50),
    price NUMBER(5, 2)
    CREATE TABLE customers (
    customer_id INTEGER
    CONSTRAINT customers_pk PRIMARY KEY,
    first_name VARCHAR2(10) NOT NULL,
    last_name VARCHAR2(10) NOT NULL,
    dob DATE,
    phone VARCHAR2(12)
    CREATE TABLE orders (
    order_id INTEGER
    CONSTRAINT orders_pk PRIMARY KEY,
    product_id INTEGER
    CONSTRAINT purchases_fk_products
    REFERENCES products(product_id),
    customer_id INTEGER
    CONSTRAINT purchases_fk_customers
    REFERENCES customers(customer_id),
    quantity INTEGER NOT NULL
    INSERT INTO customers (
    customer_id, first_name, last_name, dob, phone
    ) VALUES (
    1, 'John', 'Brown', '01-JAN-1965', '800-555-1211'
    INSERT INTO product_types (
    product_type_id, name
    ) VALUES (
    1, 'Book'
    INSERT INTO products (
    product_id, product_type_id, name, description, price
    ) VALUES (
    1, 1, 'Modern Science', 'A description of modern science', 19.95
    COMMIT;
    CREATE OR REPLACE PACKAGE dbfunc AS
    FUNCTION place_order (
    p_product_id INTEGER,
    p_customer_id INTEGER,
    p_quantity INTEGER
    RETURN VARCHAR2;
    END dbfunc;
    CREATE OR REPLACE PACKAGE BODY dbfunc AS
    FUNCTION place_order (
    p_product_id INTEGER,
    p_customer_id INTEGER,
    p_quantity INTEGER
    RETURN VARCHAR2 IS
    v_customer_count INTEGER;
    v_product_count INTEGER;
    v_order_id INTEGER;
    BEGIN
    -- count the number of products with the
    -- supplied p_product_id (should be 1 if the product exists)
    SELECT COUNT(*)
    INTO v_product_count
    FROM products
    WHERE product_id = p_product_id;
    IF v_product_count = 0 THEN
    RETURN 'No such product';
    END IF;
    -- count the number of customers with the
    -- supplied p_customer_id (should be 1)
    SELECT COUNT(*)
    INTO v_customer_count
    FROM customers
    WHERE customer_id = p_customer_id;
    IF v_customer_count = 0 THEN
    RETURN 'No such customer';
    END IF;
    -- get the next value from orders_sq
    SELECT order_sq.nextval
    INTO v_order_id
    FROM dual;
    -- place the order
    INSERT INTO orders (
    order_id, product_id, customer_id, quantity
    ) VALUES (
    v_order_id, p_product_id, p_customer_id, p_quantity
    COMMIT;
    RETURN 'Order placed with id of ' || v_order_id;
    EXCEPTION
    WHEN OTHERS THEN
    ROLLBACK;
    RETURN 'Order not placed';
    END place_order;
    END dbfunc;
    4. Install and Configure OC4J
    4.1 Change Directory
    4.1.1 Open command prompt (cmd.exe)
    4.1.2 CD C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\bin
    4.2 Configure Environment variables (type in command prompt)
    4.2.1 set JAVA_HOME=C:\oracle\product\10.2.0\db_1\jdk
    4.2.2 set ORACLE_HOME=C:\oracle\product\10.2.0\db_1\oc4j_extended_101330
    4.3 Starting OC4J for the first time
    4.3.1 oc4j -start
    4.3.2 If this is not your first time to "start" oc4j, go to step 4.3.4
    4.3.3 Set oc4jadmin password (use the password "oracle" w/o the quotation marks)
    08/03/21 17:13:54 Set OC4J administrator's password (password text will not be displayed as it is entered)
    Enter password:
    Confirm password:
    Confirm password: The password for OC4J administrator "oc4jadmin" has been set.
    08/03/21 17:14:01 The OC4J administrator "oc4jadmin" account is activated.
    4.3.4 OC4J has started if you see the message :
    08/03/21 17:14:16 Oracle Containers for J2EE 10g (10.1.3.3.0) initialized
    4.3.5 Leave this command prompt open
    4.4 Configure Data Source
    4.4.1 Open a new command prompt via the cmd.exe command
    4.4.2 type "hostname" and then press enter
    4.4.3 Keep this command prompt open for later use
    4.4.4 Open Windows Explorer and navigate to the folder C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\config
    4.4.5 Open the file data-sources.xml
    4.4.6 Modify and Save the file so that it will look something like the following :
    4.4.6.1 Note that "hpv2710us" is my hostname found in step 4.4.2
    4.4.6.2 Note that "ORCLDEV" is the name of my Oracle Instance. (Default installation uses ORCL only)
    <connection-pool name="Example Connection Pool">
    <connection-factory factory-class="oracle.jdbc.pool.OracleDataSource"
    user="store"
    password="store"
    url="jdbc:oracle:thin:@//hpv2710us:1521/ORCLDEV">
    </connection-factory>
    </connection-pool>
    4.4.7 Close the text editor
    4.4.8 Close the Windows Explorer
    4.4.9 Close this command prompt (type exit)
    5. Publishing a PL/SQL Package as a Database Web Service
    5.1 Create the config.xml file
    5.1.1 Open Notepad.exe
    5.1.2 Copy and Paste the following :
    5.1.2.1 Note that "hpv2710us" is my hostname found in step 4.4.2
    5.1.2.2 Note that "ORCLDEV" is the name of my Oracle Instance. (Default installation uses ORCL only)
    <web-service>
    <display-name>PLSQL Web Service</display-name>
    <description>PLSQL Sample</description>
    <destination-path>./dbfunc.ear</destination-path>
    <temporary-directory>/tmp</temporary-directory>
    <context>/plsqlsample</context>
    <stateless-stored-procedure-java-service>
    <jar-generation>
    <schema>store/store</schema>
    <db-url>jdbc:oracle:thin:@hpv2710us:1521:ORCLDEV</db-url>
    <prefix>db.func.place.order</prefix>
    <db-pkg-name>dbfunc</db-pkg-name>
    </jar-generation>
    <uri>/dbfunc</uri>
    <database-JNDI-name>jdbc/OracleDS</database-JNDI-name>
    </stateless-stored-procedure-java-service>
    <wsdl-gen>
    <wsdl-dir>wsdl</wsdl-dir>
    <option name="force">true</option>
    <option name="httpServerURL">http://localhost:8888</option>
    </wsdl-gen>
    <proxy-gen>
    <proxy-dir>proxy</proxy-dir>
    <option name="include-source">true</option>
    </proxy-gen>
    </web-service>
    5.1.3 Save file as config.xml in the directory C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\config
    5.1.3.1 Note it should be config.xml and not config.txt
    5.1.4 Close the text editor
    5.2 Publish dbfunc Oracle Package as a Web Service
    5.2.1 Open a new command prompt via the cmd.exe command
    5.2.2 CD C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home
    5.2.3 mkdir ear
    5.2.4 CD ear
    5.2.5 set ORACLE_HOME=C:\oracle\product\10.2.0\db_1\oc4j_extended_101330
    5.2.6 set CLASSPATH=.;%ORACLE_HOME%\webservices\lib\wsdl.jar;%ORACLE_HOME%\lib\xmlparserv2.jar;%ORACLE_HOME%\soap\lib\soap.jar
    5.2.7 java -jar %ORACLE_HOME%\webservices\lib\WebServicesAssembler.jar -config C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\config\config.xml
    Please wait ...
    STORE.DBFUNC
    5.2.8 java -jar %ORACLE_HOME%\j2ee\home\admin_client.jar deployer:oc4j:localhost:23791 oc4jadmin oracle -deploy -file C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\ear\dbfunc.ear -deploymentName dbfunc
    08/03/21 17:46:23 Notification ==>Application Deployer for dbfunc COMPLETES. Operation time: 296 msecs
    5.2.9 java -jar %ORACLE_HOME%\j2ee\home\admin_client.jar deployer:oc4j:localhost:23791 oc4jadmin oracle -bindWebApp -appname dbfunc -webModuleName dbfunc_web
    5.2.10 java -jar %ORACLE_HOME%\j2ee\home\admin_client.jar deployer:oc4j:localhost:23791 oc4jadmin oracle -bindAllWebApps -appname dbfunc
    5.2.11 Close this command prompt (type exit)
    6. Test dbfunc Web Service
    6.1 Restart OC4J
    6.1.1 Open the command prompt you used to start OC4J in step 4.1.1/4.3.1
    6.1.2 In the keyboard, hit Ctrl+C
    6.1.2.1 Type "Y" and then hit Enter
    08/03/21 18:02:51 Shutting down OC4J...
    Terminate batch job (Y/N)? Y
    6.1.2.2 Note that the command prompt should still be open
    6.1.2.2.1 If you accidentally closed the command prompt just do the following
    6.1.2.2.1.1 Do 4.1.1 to 4.2.2 and then proceed to 6.1.3
    6.1.3 oc4j -start
    Starting OC4J from C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home...
    08/03/21 18:07:57 Oracle Containers for J2EE 10g (10.1.3.3.0) initialized
    6.1.4 Leave this command prompt open
    6.2 Use the Web Service to "Order an Item"
    6.2.1 Connect to Oracle using the user STORE and password STORE
    6.2.2 select * from orders
    6.2.2.1 Zero row should return
    6.2.3 Open Internet Explorer
    6.2.4 Navigate to http://localhost:8888/plsqlsample/dbfunc
    6.2.5 Input the following :
    6.2.5.1 param0 value: 1
    6.2.5.2 param1 value: 1
    6.2.5.3 param2 value: 10
    6.2.6 Click the Invoke button
    6.2.7 A pop-up window will appear having the following contents :
    <?xml version="1.0" encoding="UTF-8" ?>
    - <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    - <SOAP-ENV:Body>
    - <ns1:placeOrderResponse xmlns:ns1="http://db.func.place.order/dbfunc.wsdl" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <return xsi:type="xsd:string">Order placed with id of 1</return>
    </ns1:placeOrderResponse>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    6.2.8 Go back to SQLPLUS or Toad and execute "select * from orders" again
    6.2.8.1 There should be one row
    ORDER_ID, PRODUCT_ID, CUSTOMER_ID, QUANTITY
    1, 1, 1, 10
    NOTES AND REFERENCES
    =================================================================
    This detailed step-by-step guide was produced with the following article by Jason Price http://www.oracle.com/technology/pub/articles/price_10gws.html

    Success!!!
    I had to grant this permissions:
    call dbms_java.grant_permission( 'WS_TEST', 'SYS:java.lang.RuntimePermission', 'getClassLoader', '' );
    call dbms_java.grant_permission( 'WS_TEST', 'SYS:java.lang.RuntimePermission', 'accessClassInPackage.sun.util.calendar', '' );
    call dbms_java.grant_permission( 'WS_TEST', 'SYS:java.lang.RuntimePermission', 'setFactory', '' )
    call dbms_java.grant_permission( 'WS_TEST', 'SYS:java.util.PropertyPermission', 'HTTPClient.socket.idleTimeout', 'write' );
    call dbms_java.grant_permission( 'WS_TEST', 'SYS:java.net.SocketPermission', 'localhost', 'resolve' );
    call dbms_java.grant_permission( 'WS_TEST', 'SYS:java.net.SocketPermission', '127.0.0.1:8084', 'connect,resolve' );
    As I wrote earlier, WS_TEST is my user into which I load JAX-RPC client. Note that, if you load JAX-RPC client into user another than SYS, you have NOT to use -s -grant public option (wassam wrote about this too). Another thing is that I (finally) didn't load OC4J. To consume WebService I use utl_dbws.invoke(call_Handle CALL, request SYS.XMLTYPE) function.
    voytec001

  • Oracle 10gR2 installation problem on Solaris (sparc-64 bit)

    Hi All,
    I am unable to install Oracle 10gR2 on Solaris, I cannot understand what is wrong could u anybody help me that,
    Regards
    Harpreet Singh

    I also have a similar problem, when I insert the key in my car sometimes it does not start. I cannot understand what is wrong could you help me?
    Otherwise, It's been raining lately and our crystal ball's are somewhat foggy; therefore we cannot guess what is you problem.

  • How to improve performance of Oracle Forms Server ?

    Recently we converted our Application which was Developed in Forms 5.0 and Reports 3.0 into Forms6i to host that on to Web. We also loaded ORACLE 9iAS (on Windows NT 4 with service pack 3) from "Enterprise Edition" option by selecting Oracle Database Cache, Forms Server and Reports Server, HTTP Server(on port 80),Oracle Web Cache. Everything loaded succesfully including Caches.
    Forms server is working perfectly and we were able to run our Application in Browser, but performance is the issue. We thought the caches will improve the performance, but it seems they are not at all working. When we run a report or form the Database cache is not giving any statistics whether a particular Query is a Hit or Miss though the cache is running. We got a doubt and searched in FAQ's and we found the following questions.
    Oracle9iAS Web Cache Frequently Asked
    Questions February 2001
    Does Oracle9iAS Web Cache work with applications that use Oracle9iAS Forms?
    Not in the 1.x release of Oracle9iAS. Integration between Oracle9iAS Web Cache and Oracle9iAS Forms will be addressed at a future date.
    Oracle9iAS Database Cache
    Does the Cache work with Oracle Forms and Portal in Oracle9i AS?
    Since Oracle Forms and Portal utilize read/write PL/SQL stored procedures, these components cannot take advantage of the Cache. This support is being considered for a future version.
    After coming to know that Caches doesnot boost the performance of Oracle Forms and reports. We have the following queries.
    1) Clarify whether the above are True.
    2) Apart from DB and Web Cache is there any other way where in we can improve the performance of Oracle Forms and Reports in Forms Server including the start up time.
    3) What is the ideal configuration required for each tier (iAS Server,Database Server and Client) to host Forms on to Web considering our application as Medium scale.
    (Presently our configuration are,
    Application Server Configuration : Windows NT 4 with service pack 3,256 MB RAM,1 GB Virtual memory and 4GB free space and almost the same configuration is being used for
    Database Configuration.
    Client Configuration : Windows 98 with 64MB RAM).
    4) Is there any way to track the performance and know the problem areas like TRACE.
    Gopi Kumar
    null

    A couple of questions for you:
    1) What version of IAS are you using?
    2) What's the version of Forms&Reports and
    3) What version of patch are you using if any
    for forms&Reports?
    4) What applications are you running on the
    machine where Forms&Reports is installed?
    (I mean non-Oracle applications?)
    The problem could be that, the base addresses
    of the DLL's in Forms&Reports could be having base address conflicts with some other application's DLL's.
    Forms and Reports needs to be fully rebased to achieve full performance on NT. Before release of Forms and Reports, Oracle rebases all DLLs. Rebasing assigns unique base addresses to all of the DLL's in use by an executable. A properly based DLL will load at its preferred base address, greatly improving the efficiency of memory utilization and the runtime performance of the executable.
    Multiple utilities are available on NT to verify proper rebasing of DLLs. HandleEx v4.0 is one such freeware from Sysinternals and is available at www.sysinternals.com. Some others are "depends.exe" that's part of the MS Visual Studio or msinfo32.exe that comes with Office 2000 on NT.
    If after running any of these utilities you discover that the DLL's ar not properly rebased, you need to contact Oracle worldwide support.
    If you find that rebasing is not the problem, then please post your feedback again. Hope this helps.

  • JRE Error : while Install oracle 10gR2 on Windows Server 2003

    Hello,
    I am trying to install a Oracle 10gR2 on windows server 2003.
    I have unziped the files and when I run the oui.exe it gives the below error:
    cannot find any matches for wildcard specification "../stage/components/oracle.swd.jre/1.5.0.0./1/DataFiles/*.jar
    Error : JRE missing in Scratch Path
    I tried changing the oraparmaini file but it did not allow to make any changes.
    Not sure if its looking for any particular java files.
    What should i edit ,to specify the java location.
    Thanks

    What exactly did you unzip? This error occurs if there are several zip-files extracted to different target locations. But - if I remember correctly - 10gR2 database is only one zip-file, so you should not face this issue. JRE for OUI is part of the downloaded software,so you don't need to specify a location for JRE, OUI knows where to find this.
    Werner

  • Installation of oracle 10gR2 on Windows Vista Home Premium 64 bit OS

    can we install oracle 10gR2 on Windows Vista Home Premium 64 bit OS ???
    While doing sqlplus from command prompt,
    it's giving error like
    'SP2-1503 Unable to initialise Oracle Call interface'
    'SP2-0152 Oracle may not be functioning Properly'
    How to troubleshoot the above errors,
    Has anybody tried it ???
    Plz assist.

    No Oracle product is certified against any Windows Home OS.
    As Vista was released after Oracle 10gR2, 10gR2 is not certified against any edition of Vista.
    You need to downgrade to XP, or install Linux.
    Sybrand Bakker
    Senior Oracle DBA

  • SQL query was failed in my report after migrating to Oracle 10gR2

    We have a aplication running under Oracle 9.2.0.4 DB. we migrated our DB to Oracle 10gR2. While running the report, we got an error:
    ORA-00904: "A3"."FACILITY_SYSTEM_ID": invalid identifier
    ORA-06512: at "CEAS_MK_RPT.GET_LIST", line 12
    The SQL query which causes this error is:
    INSERT INTO gtt_facility_seq_generator
    (date_range)
    SELECT get_list
    (CURSOR (SELECT auf.facility_system_id
    FROM authorized_facility auf
    WHERE auf.facility_system_id = afs.facility_system_id
    AND auf.credit_application_system_id = :p_cred_appln_id
    FROM authorized_facility afs,
    (SELECT af.facility_system_id facility_system_id
    FROM facility_obligor fo, authorized_facility af, party p
    WHERE fo.facility_system_id = af.facility_system_id
    AND fo.party_system_id = p.party_system_id
    AND NOT EXISTS (
    SELECT NULL
    FROM facility_third_party_subst iftps
    WHERE iftps.facility_system_id =
    fo.facility_system_id)
    ) tab1
    WHERE afs.credit_application_system_id = :p_cred_appln_id
    AND tab1.facility_system_id = afs.facility_system_id
    ORDER BY afs.creation_date;
    The content of function get_list() is:
    CREATE OR REPLACE FUNCTION CEAS_MK_RPT.Get_List
    p_cursor IN sys_refcursor
    RETURN VARCHAR2
    IS
    l_sep VARCHAR2(4);
    l_text VARCHAR2(30000);
    l_text_return VARCHAR2(30000);
    BEGIN
    LOOP
    FETCH p_cursor INTO l_text;
    EXIT WHEN p_cursor%NOTFOUND;
    l_text_return := l_text_return || l_sep || l_text;
    l_sep := CHR(10);
    END LOOP;
    CLOSE p_cursor;
    RETURN l_text_return;
    dbms_output.put_line ('a');
    END Get_List;
    The same report was executed perfectly in Oracle 9i. Kindly help us to short out this issue. Thanks in advance.
    Regards,
    Sengol S

    Hi Nirav,
    Many thanks for your response. I verified the same, but the same query was executed successfully after removing the INSERT INTO part(executed the SELECT part only). What might be the cause for this error?
    For your kind information :
    I have 2 schema in my DB( ceas_mk_app and ceas_mk_rpt ).
    All the source tables are present in ceas_mk_app schema - These tables are used by ceas_mk_rpt schema(using synonym) to generate the report.
    I'm executing the above said query from ceas_mk_rpt to insert the necessary data in to report temp. table.
    Thanks,
    Sengol S
    Edited by: seng1256 on Dec 22, 2008 12:31 PM

  • Differences between oracle 10gr2 and 11gr2 warehouse bulider

    Hi All,
    Could you please let me know the main differences between Oracle 10gr2 and Oracle 11gR2 warehouse builder.
    Also , it would be great if anyone point me to the document where i can see the major differences.
    Thanks,
    Naveen.

    Hi Naveen,
    The major difference between OWB10gR2 and 11gR2 is the target RDBMS.
    In 10gR2 you have to use ORACLE as your target RDBMS (unless you are going for DB Gateways, that is a complete different story).
    Where as in 11gR2 allows you to use any RDBMS as your target system . This is achieved by Code-Template mapping.
    All is needed is that proper jdbc driver for the target system.
    Also 11gR2 supports OBIEE RPD creation and etc.
    http://blogs.oracle.com/warehousebuilder/2009/09/oracle_warehouse_builder_11gr2.html
    http://www.rittmanmead.com/2009/09/a-look-at-the-new-features-in-owb11gr2/
    http://www.oracle.com/technetwork/developer-tools/warehouse/owb-11gr2-new-features-summary-129693.pdf
    Thanks,
    Sutirtha

Maybe you are looking for

  • How do i print sms messages from my iphone without a 3rd party app?

    How do I print a complete SMS message from my iphone without using a 3rd party app?

  • GSM Phone capabilities on Windows 8.1 Pro system

    Is it possible to have GSM phone (voice call) capability on a Windows 8.1 Pro system (e.g. a laptop/tablet with a GSM voice-capable mini PCI-E card such as Option's GTM671WFS)? And how would one go about getting it to work (assuming it is possible)?

  • My nokia browser is not closing.

    Hi sir, when i opened internet on my device 311 there's a massage to update and i do that. But after that i browse my internet and want to close that app then its not clossing. What i have to do? Please help.

  • Solaris 10: shminfo_shmmax

    Hello, I�m an Oracle DBA trying to understand the impacts that shmmax can have in a Solaris 10 system. 1. how does shminfo_shmmax setting affect the system performance (memory,paging,CPU) in Solaris 10? 2. Our server has 8G of RAM and runs with shmsy

  • Iphoto keeps removing my facebook albums

    When I log in to iPhoto and go to upload a picture on Facebook, iPhoto will give me an alert saying it has removed other albums that I have in my facebook. How can I stop it from removing photos?