9.2.0.7 Catpatch.sql hangs

Windows 2000
9.2.0.1
I've applied the 9.2.0.7 to my db successfully, but when I run catpatch.sql in migrate mode, the system gets to a certain point and hangs. I thought maybe since the db was a 15G db restored from a cold backup that maybe it was a db size issue, but I let it run for well over 30 hours and no dice. If I reboot the server to see if it processed, this is what I get:
SQL> column comp_id format a15
SQL> column status format a10
SQL> column version format a10
SQL> column comp_name format a35
SQL> select comp_id, status, version, comp_name from dba_registry order by 1;
COMP_ID STATUS VERSION COMP_NAME
AMD INVALID 9.2.0.1.0 OLAP Catalog
APS LOADED 9.2.0.1.0 OLAP Analytic Workspace
CATALOG VALID 9.2.0.1.0 Oracle9i Catalog Views
CATJAVA VALID 9.2.0.1.0 Oracle9i Java Packages
CATPROC INVALID 9.2.0.1.0 Oracle9i Packages and Types
CONTEXT VALID 9.2.0.1.0 Oracle Text
JAVAVM VALID 9.2.0.1.0 JServer JAVA Virtual Machine
ODM LOADED 9.2.0.1.0 Oracle Data Mining
ORDIM LOADED 9.2.0.1.0 Oracle interMedia
OWM VALID 9.2.0.1.0 Oracle Workspace Manager
SDO LOADED 9.2.0.1.0 Spatial
COMP_ID STATUS VERSION COMP_NAME
WK VALID 9.2.0.1.0 Oracle Ultra Search
XDB INVALID 9.2.0.1.0 Oracle XML Database
XML VALID 9.2.0.2.0 Oracle XDK for Java
XOQ LOADED 9.2.0.1.0 Oracle OLAP API
15 rows selected.
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Disabled
Archive destination C:\oracle\ora92\RDBMS
Oldest online log sequence 1984
Next log sequence to archive 1984
Current log sequence 1986
SQL> show parameter shared_pool_size;
NAME TYPE VALUE
shared_pool_size big integer 50331648
SQL> show parameter java_pool_size;
NAME TYPE VALUE
java_pool_size big integer 33554432
SQL> show parameter job_queue_processes;
NAME TYPE VALUE
job_queue_processes integer 10
However, if I create a new empty 9.2.0.1 db, I can patch that to 9.2.0.7 and run catpatch with no problems. I've upgraded before with no issues, so I don't know what the problem is now.
Thanks!!!

I don't follow you. Your db was currently in archivelog mode, but not in automatic. Which seems to implies hang issue.
If your db is not in archivelog mode at all, so, you don't have to put it in archivelog mode.
Nicolas.

Similar Messages

  • Running catpatch.sql hangs

    Hi,
    After I applied 9.2.0.8 patch set, I ran catpatch.sql. However, I noticed it hangs. I checked the alert<SID>.log , I see the following interesting line below:
    Completed: ALTER DATABASE OPEN MIGRATE
    Sat Jun 20 00:10:25 2009
    Thread 1 cannot allocate new log, sequence 3805
    All online logs needed archiving
    Current log# 2 seq# 3804 mem# 0: C:\ORACLE\ORADATA\<DB_NAME>\REDO02.LOG
    This is a development server. I've just learned that this server has archive mode on and automatic archiving is disabled. The drive free space is around 5 GB. I'm afraid that if I enable automatic archiving , this might eat up a lot of space although nobody is using it at this time except me.
    Below are the values of parameters related to this hang:
    OPEN_CURSORS = 300
    SHARED_POOL_SIZE = 50331648
    JAVA_POOL_SIZE = 33554432
    JOB_QUEUE_PROCESSES = 0
    SBGA_MAX_SIZE = 157818330
    My question is What could be the cause of catpatch.sql hanging and what can I do to resolve this?
    Edited by: user5470917 on Jun 19, 2009 4:14 PM
    Edited by: user5470917 on Jun 19, 2009 4:18 PM
    Edited by: user5470917 on Jun 19, 2009 4:34 PM

    Yes, you are right nothing prevents me from deleting those archive log files.
    What I did are:
    1. Kill the hanging catpatch.sql session
    2. shutdown
    3. startup
    4. Enable auto archiving using 'alter system set archive_log_start=true'
    5. shutdown
    6. startup migrate
    7. Check auto archive using ' archive log list'
    7. Run catpatch.sql
    8. Run utlrp.sql
    I have successfully ran the catpatch.sql and utlrp.sql
    Thanks.

  • How much time does CATPATCH.sql take

    Hi,
    Iam upgrading my db from 9.2.0.1 to 9.2.0.4 . Its been 2 hrs since the catpatch.sql script is runnig. When i queried dba_registry it is showing status as loading for packege & body.
    Can any tell me how much does this script takes.
    Thanks in advance.
    Bhavesh

    The speed of execution is very dependent on the memory and CPU of the machine in which the patch is being applied. I have seen times ranging from 30 minutes to 4 hours. The four hours was experienced with a database in a virtual machine with 512MB of RAM.

  • What am I doing about run catpatch.sql ?

    I applied patch on Oracle 9.2.01 to update to 9.2.0.4 version.
    Now I can not export my database .
    problem:
    ORA-31600:invalid input EMIT_SCHEMA for parameter NAME ....
    Login as SYSDBA and run catpatch.sql (without other users logged in).
    Because this Database is 7*24 and RAC,I am worrying about a random operation.
    How am I doing or pay attention to this operation? for example,backup or other thing ...
    help
    thanks

    Hie,
    Applied this rdbms catalogue to resolve your probleme :
    connect to sys as sydba and run it :
    @...\rdbms\admin\catmeta.sql

  • CATPATCH.SQL

    Hi,
    I'm running BIBeans/JDeveloper 9.0.3. I'm not able to connect to BIBDEMO through JDev. When I test the OLAP connection, it says "Successfully connected to the Oracle database but failed to retrieve metadata".
    After reading this forum, I gathered that a file called msvcp60.dll had to be copied to system32 on the server machine. Did that, but I'm still getting the same error.
    After reading some more, I gather that a patch called catpatch.sql has to be applied. I cannot find this patch anywhere. WHere can I get it?
    ALso, do I need it? I don't have any older version of the product installed. This is the first time we're running this.
    thanks in advance
    Jyo

    Hi
    The latest version of JDeveloper and BI Beans only work with version 9.2.0.2 of the 9i database. The installation of Oracle 9i Release 2 database software creates a 9.2.0.1 database environment and instance. To use JDeveloper/BI Beans you need to apply a patchset which is available for download from Metalink. This patchset has two stages
    1) Universal Installer - updates all the Oracle kernel files
    2) SQL Patching process for each instance, the file to run is called CATPATCH.SQL.
    Catpatch.sql is located in the ORACLE_HOME/rdbms/admin directory. It should have been installed during the installation of the 9.2.0.2 database patchset. You can test to see if this patch has been applied and your database is fully patched to 9.2.0.2 status by trying to execute the following command at the SQL Plus prompt
    cwm2_olap_metadata_refresh.mr_refresh
    If this results in an error then CATPATCH.SQL has not been fully run. This package is installed by the 9.2.0.2 catpatch routine. All the intstructions on how to run the patch are in the README file associated with the patchset.
    Hope this helps
    Keith Laker
    Product Manager
    Oracle Business Intelligence Beans

  • Executing catpatch.sql and catcpu.sql needed ???

    hello,
    I have installed oracle 9.2 and i upgraded to 9207 and then applied the Apr2007 CPU. After all these i created the database.
    My concern is do i need to run the catpatch.sql and catcpu.sql.
    TIA,
    Jj

    Because the database has been upgraded after running catpatch.sql only. Before this it was in 9.2.0.1 version.
    .. But that was not the original poster's point.
    - J..J asked if an oracle home was patched, THEN a new database created, if he had to run catcpu.sql and catpatch.sql.
    - viraq and rob schenk said no, the SQL's did not need to be run, since the DB did not exist before the patch.
    - J..J tested this by installing and upgrading the OracleHome to 9.2.0.7, then creating a new database. Curiously, the dba_registry showed old versions of the catalog. He had to run catcpu.sql/catpatch.sql after creating the new DB, even though the DB was created under the new 9207 code base. This conflicts with what viraq and rob said.
    I'm having this same issue with the current jan2009 CPU, and didn't realize this entire time that I was creating databases without running the catcpu/catpatch.sql's, since I was simply following the db install guide. I'm currently trying to track back how far this 'catcpu/catpatch' rule goes.. unless someone can correct my understanding on this.

  • Catpatch.sql not found

    i tried to upgrade my database from 10.2.0.1 to 10.2.0.4
    my os=linux64bit
    all of the step was going ok and i install the patch successfully but there isnt any catpatch.sql in
    rdbms/admin
    what is wrong?
    how could i solve my problem???

    in the patchset document installing suggested
    "Applying Patchset with a 10g Physical Standby in Place"
    document for ugrade when having physical standby database
    in this document said after installing patchset for upgrade database
    use catpatch.sql but i havent this file...
    in stoping oracle proccess i stoped EM,isqlplus,database,listener only.
    pleae help me!!which step did i do wrong?

  • Catalog.sql hangs

    I understand that you must run catalog.sql after creating a new database so that data dictionaries are updated otherwise the Oracle Enterprise Manager (OEM) will not be able to view details of the new database.
    So ... I've run catalog.sql but it hangs immediately. While it's hung, I cannot log into SQL*Plus from another session -- that hangs too. A little ivestigation into what catalog.sql does suggests that it is the standard.sql script (run by @@standard) that is hanging and looking into that suggests that stdspec.sql is hanging.
    Any tips on how to determine the cause of the underlying hang? Note that I can log into my database and run SQL queries without any problems; I simply can't use OEM to administer it (which is why I'm running catalog.sql).
    Thanks.

    Thanks Joel. I ran that script but it failed with:
    2 (u.ebytes/a.fbytes)*100 USEDPCT
    ERROR at line 2:
    ORA-00923: FROM keyword not found where expected
    So I changed it slightly to this:
    SQL> select u.tblspc "TBLSPC", a.fbytes "ALLOC", u.ebytes USED, a.fbytes-u.ebytes UNUSED
    2 from (select tablespace_name tblspc, sum(bytes) ebytes
    from sys.dba_extents
    3 4 group by tablespace_name) u,
    5 (select tablespace_name tblspc, sum(bytes) fbytes
    6 from sys.dba_data_files
    7 group by tablespace_name) a
    8 where u.tblspc = a.tblspc
    9 ;
    and that fails (when run as sysdba or as system, both of whom I assume have privileges to select catalog) with:
    from sys.dba_data_files
    ERROR at line 6:
    ORA-00942: table or view does not exist
    I can't help but feel that something may have gone badly wrong with this Oracle installation.
    Would it be a sensible option to drop all databases (by manually removing all their files) and then try to run catalog.sql on an (allegedly) empty system?

  • Cmclean.sql hangs

    Hi,
    Appl: 11.5.9 and db 9.2.0.5
    My conc, manager was not coming up so i am trying to clean the tabels. But I have too many records in fnd_concurrent_requests.
    cmclean.sql is hanging after a lot of records.
    i WANT to manually delete the records in FND_CONCURRENT_REQUESTS, any MOS doc for this plz.
    Thanks,
    Taher

    Taher,
    You could use "and request_id between <number> and <number>, or use any of the date fields.
    Btw, can you find any errors in the database log file?
    Have you tried to rebuild the indexes on the table and gather the table statistics?
    Thanks,
    Hussein

  • Catbundle_WINBUNDLE_ database SID _ROLLBACK.sql hangs

    Hello experts,
    We are rolling back a opatch i.e. bundle patch 44.
    after rollback when we run the script catbundle_WINBUNDLE_<database SID>_ROLLBACK.sql
    the script hangs after executing for some time, without any error.
    Database version: 11.1.0.7.0.
    O. S. : Windows server 2003
    Please help me urgently.
    Regards
    Rahul Srivastava

    Hello experts,
    I have resolved the issue by
    Starting the database in restricted session
    Disable auto stats collection job
    exec DBMS_AUTO_TASK_ADMIN.DISABLE(
    client_name => 'auto optimizer stats collection',
    operation => NULL,
    window_name => NULL);
    and then executing the script
    catbundle_WINBUNDLE_<database SID>_ROLLBACK.sql
    the script executed succesfully.
    Then we can
    exec DBMS_AUTO_TASK_ADMIN.ENABLE(
    client_name => 'auto optimizer stats collection',
    operation => NULL,
    window_name => NULL);
    and run utlrp.sql .
    Regards
    Rahul Srivastava

  • INSERT SQL Hangs sporadically

    Oracle Version:
    Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
    OS Version:
    Red Hat Enterprise Linux Server release 6.4
    When this code runs successfully, it does so in 3-5 minutes:
    Set Echo off
    Set Head off
    Set Space 0
    Set Feedback ON
    Set Pagesize 0
    Set Termout OFF
    Set Trimspool On
    Set Linesize 200
    Set Serveroutput On
    set autotrace on
    ALTER SESSION SET nls_date_format='yyyymmdd';
    spool como.rs_create_kenshoo APPEND
    truncate table DFS_DATA_A.WEB_KENSHOO_MDA;
    INSERT INTO DFS_DATA_A.WEB_KENSHOO_MDA
    select
           ken.ORDER_NUM,
           o.ORDER_DATE,
           o.DIVISION_CODE,
           CONV_DATE,
           CONV_TIME,
           CONV_DATETIME,
           KEYWORD,
           CHANNEL,
           CAMPAIGN,
           AD_GROUP,
           SEARCH_TERM,
           TYPE,
           DURATION,
           REVENUE,
           FILE_DATE,
           TO_DBASE_DATE,
           UPD_DBASE_DATE,
           SITE_ID
      from
          (select * from
            (select
                   FILE_DATE,
                   ORDER_NUM,
                   T_CONV_DATE CONV_DATE,
                   T_CONV_TIME CONV_TIME,
                   T_CONV_DATETIME CONV_DATETIME,
                   KEYWORD,
                   CHANNEL,
                   CAMPAIGN,
                   AD_GROUP,
                   SEARCH_TERM,
                   TYPE,
                   DURATION,
                   T_REVENUE REVENUE,
                   TO_DBASE_DATE,
                   UPD_DBASE_DATE,
                   SITE_ID,
                   row_number () over (partition by order_num,t_conv_datetime,keyword,channel,campaign,ad_group,t_revenue,site_id order by file_date desc) rnum
              from
                   DFS_STAGE.web_kenshoo_history
                 ) ken_tmp
            where rnum = 1) ken
         left outer join
           (select order_num,
                   order_date,
                   division_code
              from orders where order_date >= '20080101'
            ) o
        on ken.order_num = o.order_num
    spool off
    exit
    I am running it right now, and it hangs. I use the following to identify progress:
    select
             case when v.piece = 0 then s.sql_exec_start else null end sql_exec_start,
             case when v.piece = 0 then s.osuser else null end osuser,
             case when v.piece = 0 then s.username else null end username,
             case when v.piece = 0 then s.sid else null end sid,
             case when v.piece = 0 then s.serial# else null end serial#,
             v.sql_text
    from    gv$session s
              inner join
             gv$process p
              on p.addr = s.paddr
              and p.inst_id = s.inst_id
              left outer join
            sys.v_$sqltext v
              on s.sql_address = v.address
    where    case when v.piece is null then 0 else 1 end = 1
            and to_char(sql_exec_start, 'YYYY-MM-DD HH24:MI:SS') < to_char(current_date - (1/24/60/60*1), 'YYYY-MM-DD HH24:MI:SS')
    order by s.sql_exec_start,
             sid,
             s.serial#,
             v.piece
    accept p_sid prompt 'Enter SID:'
    accept p_serial prompt 'Enter Serial#:'
    select   l.opname,
             l.target,
             to_char((1 - (l.totalwork - l.sofar) / totalwork) * 100, 9999.99) || '%' pct_complete,
             l.start_time,
             l.last_update_time,
             to_char(l.time_remaining / 60, '999,999,999') min_remain,
             to_char(l.elapsed_seconds / 60, '999,999,999') min_elapsd
    from     v$session_longops l
    where    l.sid = &p_sid
             and l.serial# = &p_serial
    order by l.start_time,
            l.last_update_time
    It read the table DFS_STAGE.web_kenshoo_history for about 30 minutes (100% according to my 2nd query), now no longer shows up in v$session_longops. I have verified there are no locks with:
    SELECT
    s1.username || '@' || s1.machine ||
    ' ( SID=' || s1.sid || ' )  is blocking '
    || s2.username || '@' || s2.machine || ' ( SID=' || s2.sid || ' ) ' AS
    blocking_status
    FROM v$lock l1, v$session s1, v$lock l2, v$session s2
    WHERE
    s1.sid=l1.sid and s2.sid=l2.sid
    AND l1.BLOCK=1 and l2.request > 0
    AND l1.id1 = l2.id1
    AND l2.id2 = l2.id2
    System load is not too high:
    11:28:53 up 22 days,  7:04,  1 user,  load average: 3.00, 3.01, 2.92
    Nothing out of the ordinary in the alert.log.
    I am stumped. Any suggestions would be appreciated.

    Oracle Version:
    Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
    OS Version:
    Red Hat Enterprise Linux Server release 6.4
    When this code runs successfully, it does so in 3-5 minutes:
    Set Echo off
    Set Head off
    Set Space 0
    Set Feedback ON
    Set Pagesize 0
    Set Termout OFF
    Set Trimspool On
    Set Linesize 200
    Set Serveroutput On
    set autotrace on
    ALTER SESSION SET nls_date_format='yyyymmdd';
    spool como.rs_create_kenshoo APPEND
    truncate table DFS_DATA_A.WEB_KENSHOO_MDA;
    INSERT INTO DFS_DATA_A.WEB_KENSHOO_MDA
    select
           ken.ORDER_NUM,
           o.ORDER_DATE,
           o.DIVISION_CODE,
           CONV_DATE,
           CONV_TIME,
           CONV_DATETIME,
           KEYWORD,
           CHANNEL,
           CAMPAIGN,
           AD_GROUP,
           SEARCH_TERM,
           TYPE,
           DURATION,
           REVENUE,
           FILE_DATE,
           TO_DBASE_DATE,
           UPD_DBASE_DATE,
           SITE_ID
      from
          (select * from
            (select
                   FILE_DATE,
                   ORDER_NUM,
                   T_CONV_DATE CONV_DATE,
                   T_CONV_TIME CONV_TIME,
                   T_CONV_DATETIME CONV_DATETIME,
                   KEYWORD,
                   CHANNEL,
                   CAMPAIGN,
                   AD_GROUP,
                   SEARCH_TERM,
                   TYPE,
                   DURATION,
                   T_REVENUE REVENUE,
                   TO_DBASE_DATE,
                   UPD_DBASE_DATE,
                   SITE_ID,
                   row_number () over (partition by order_num,t_conv_datetime,keyword,channel,campaign,ad_group,t_revenue,site_id order by file_date desc) rnum
              from
                   DFS_STAGE.web_kenshoo_history
                 ) ken_tmp
            where rnum = 1) ken
         left outer join
           (select order_num,
                   order_date,
                   division_code
              from orders where order_date >= '20080101'
            ) o
        on ken.order_num = o.order_num
    spool off
    exit
    I am running it right now, and it hangs. I use the following to identify progress:
    select
             case when v.piece = 0 then s.sql_exec_start else null end sql_exec_start,
             case when v.piece = 0 then s.osuser else null end osuser,
             case when v.piece = 0 then s.username else null end username,
             case when v.piece = 0 then s.sid else null end sid,
             case when v.piece = 0 then s.serial# else null end serial#,
             v.sql_text
    from    gv$session s
              inner join
             gv$process p
              on p.addr = s.paddr
              and p.inst_id = s.inst_id
              left outer join
            sys.v_$sqltext v
              on s.sql_address = v.address
    where    case when v.piece is null then 0 else 1 end = 1
            and to_char(sql_exec_start, 'YYYY-MM-DD HH24:MI:SS') < to_char(current_date - (1/24/60/60*1), 'YYYY-MM-DD HH24:MI:SS')
    order by s.sql_exec_start,
             sid,
             s.serial#,
             v.piece
    accept p_sid prompt 'Enter SID:'
    accept p_serial prompt 'Enter Serial#:'
    select   l.opname,
             l.target,
             to_char((1 - (l.totalwork - l.sofar) / totalwork) * 100, 9999.99) || '%' pct_complete,
             l.start_time,
             l.last_update_time,
             to_char(l.time_remaining / 60, '999,999,999') min_remain,
             to_char(l.elapsed_seconds / 60, '999,999,999') min_elapsd
    from     v$session_longops l
    where    l.sid = &p_sid
             and l.serial# = &p_serial
    order by l.start_time,
            l.last_update_time
    It read the table DFS_STAGE.web_kenshoo_history for about 30 minutes (100% according to my 2nd query), now no longer shows up in v$session_longops. I have verified there are no locks with:
    SELECT
    s1.username || '@' || s1.machine ||
    ' ( SID=' || s1.sid || ' )  is blocking '
    || s2.username || '@' || s2.machine || ' ( SID=' || s2.sid || ' ) ' AS
    blocking_status
    FROM v$lock l1, v$session s1, v$lock l2, v$session s2
    WHERE
    s1.sid=l1.sid and s2.sid=l2.sid
    AND l1.BLOCK=1 and l2.request > 0
    AND l1.id1 = l2.id1
    AND l2.id2 = l2.id2
    System load is not too high:
    11:28:53 up 22 days,  7:04,  1 user,  load average: 3.00, 3.01, 2.92
    Nothing out of the ordinary in the alert.log.
    I am stumped. Any suggestions would be appreciated.

  • SQL Developer on Linux hangs when disconnecting after VPN reconnect

    Hello,
    I have a problem with using connections after general link failure (Cisco VPN disconnect in my case, lost of route to Oracle DB).
    When I reconnect to a VPN and I'll try to disconnect from a previously opened (before general link failure) connection, I need
    to wait more than 10 minutes to complete this process. SQL Developer is completely unusable during this time.
    Steps to reproduce:
    1. Connect to VPN
    2. Open connection in SQL Developer to host accessible only by this VPN
    3. Restart VPN
    4. Try to do anything with this connection (disconnect, execute sql in opened SQL Worksheet, view tables, etc.)
    This bug is not new in recent versions, I'm using SQL Developer from over 2 years and this bug was always with me. But if I remember correctly in earlier versions (<3.0) I couldn't reuse the connection to execute sql (hanging SQL Developer for more than 10 minutes) but disconnecting would succeed without a problem.
    Maybe SQL Developer should move connection management to separate thread to resolve this issue... or is there another solution?
    I'm using SQL Developer 3.1.07.42 @ Linux 3.0.4
    For VPN connectivity I use vpnc
    When I restart VPN connection I'm loosing TUN interface and all routes.
    I have tested this issue on a few versions of SQL Developer on Windows XP, including 3.1.07. There is no problem with disconnecting after vpn failure on Windows.
    Maybe I should fill some bug report? When I can do such thing? Metalink?
    Best regards,
    Irek Slonina

    Hi Irek,
    Possibly you can resolve this issue by altering the type of the connection that becomes non-responsive upon a VPN reconnect. What type are you currently using: Basic, TNS, etc?
    In this forum thread (for Windows, unfortunately, not Linux), although different from your case, the solution used Thick/OCI driver, not Thin/Basic:
    Windows 7 VPN
    I have no VPN client on Linux (much less vpnc), only Cisco AnyConnect on Win XP, so I cannot test your scenario.
    Regards,
    Gary
    SQL Developer Team

  • Select query hangs on Oracle 9i but works fine in Oracle 8i

    Hi Guys,
    For a recap of what happened:
    Migrated from Oracle 8i to 9i for a customer, all queries and statements are working fine, except for this particular query. If i run the same query on 8i it works like a charm.
    In 9i, if i remove even one field from the query, it works else it just hangs.
    Any idea, any one???
    **Added 2:09PM: When i removed some ltrim and rtrim that i believe not necessary, the query works fine, is there any field length limitation in Oracle 9i???
    Below is the query:
    set pagesize 100;
    set linesize 1024;
    set heading off;
    set echo off;
    spool scb_xfer_hdr_npsx;
    select ltrim(rtrim(to_char(hdr_srl_no,'99'))) || ';' ||
    'P' || ';' || rtrim(ltrim(payment_type))|| ';'|| ';' ||
    ltrim(rtrim(our_ref_no))|| ';'|| 'MY;KUL;' ||
         rtrim(ltrim(debit_account_no))||';'||
    rtrim(ltrim(to_char(scb_batch_date,'YYYY/MM/DD'))) || ';'|| ';' ||
    rtrim(ltrim(payee_name_1))|| ';'|| ';' ||
    rtrim(ltrim(address_1))|| ';'||
    rtrim(ltrim(address_2))|| ';'||
    rtrim(ltrim(address_3))|| ';'|| ';' ||
    rtrim(ltrim(payee_name_11))|| ';' ||
    rtrim(ltrim(address_11))|| ';'||
    rtrim(ltrim(address_21))|| ';'||
    rtrim(ltrim(address_31))|| ';'|| ';' ||
         rtrim(ltrim(payee_bank_code)) || ';' || ';' ||
         rtrim(ltrim(payee_account_no)) || ';' ||
         rtrim(ltrim(our_ref_no2)) || ';' || ';' ||
         rtrim(ltrim(our_ref_no2)) || ';' || ';' || ';' || ';' ||
    rtrim(ltrim(payment_currency))|| ';'||
    rtrim(ltrim(to_char(payment_amount,'9999999999.99')))|| ';'||
         'C;P;;' || rtrim(ltrim(payee_bank_name))|| ';' ||
         'KL;;' ||
         rtrim(ltrim(delivery_method)) || ';' ||
         rtrim(ltrim(delivery_by)) || ';' ||
         rtrim(ltrim(counter_pickup_location))
    from scb_xfer_hdr_npsx
    order by hdr_srl_no;
    select distinct 'T;' || ltrim(rtrim(to_char(total_payments))) || ';' ||
         ltrim(rtrim(to_char(total_pay_amount,'9999999999.99')))
    from scb_xfer_hdr_npsx;
    spool off;
    spool scb_xfer_dtl_npsx;
    select ltrim(rtrim(to_char(srl_no,'99'))) || ';' || 'I' || ';' ||
         ltrim(rtrim(doc_no)) || ';' || ltrim(rtrim(to_char(doc_date,'yyyy/mm/dd'))) || ';' ||
         ltrim(rtrim(doc_description)) || ';' ||
         ltrim(rtrim(to_char(doc_amount,'9999999999.99')))
    from scb_xfer_dtl_npsx
    order by srl_no;
    spool off;
    set echo on;
    exit;
    Message was edited by:
    Logesh

    Hi,
    are you still on a 32bit kernel on AIX?
    How are the Form4.5 connected, are they on the same box, or are they using the forms GUI?
    What about the statistics, how do you collect them? Is the database set to the COST based optimizer?
    Do you use dbms_utility.analyze_schema, or this:
    exec dbms_stats.gather_schema_stats( -
    ownname => '$OWNER', -
    estimate_percent => 10, -
    granularity => 'ALL', -
    method_opt => 'FOR ALL COLUMNS SIZE 75', -
    degree => NULL , -
    options => 'GATHER $GATH', -
    cascade => TRUE -
    What does it mean the SQL hangs? Can you cancel the query? Do you have to kill the session? Do you use any diagnostic tools like TOAD to trace the session, see what it is doing? Usually if this is a performance/tuning issue, you will see the session is not dead, but you will see advancing reads.
    Regards,
    Richard.

  • EXPORT catexp.sql 9.2.0.4.0

    Hi
    I would like to install catexp.sql with SYS user as SYSDBA.
    It was succesfully but when I tried to run "exp" I got the following errors:
    (Export option was OWNER=wps, GRANTS=y, ROWS=y, COMPRESS=y
    The database run on SUN SERVER.
    :>showrev
    Hostname: wps-sun
    Hostid: 8323de56
    Release: 5.8
    Kernel architecture: sun4u
    Application architecture: sparc
    Hardware provider: Sun_Microsystems
    Domain:
    Kernel version: SunOS 5.8 Generic 108528-13 December 2001
    Connected to: Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.4.0 - Production
    Export done in WE8ISO8859P1 character set and AL16UTF16 NCHAR character set
    About to export specified users ...
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user WPS
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions for user WPS
    About to export WPS's objects ...
    . exporting database links
    . exporting sequence numbers
    . exporting cluster definitions
    EXP-00056: ORACLE error 31600 encountered
    ORA-31600: invalid input value EMIT_SCHEMA for parameter NAME in function SET_TRANSFORM_PARAM
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
    ORA-06512: at "SYS.DBMS_METADATA_INT", line 3926
    ORA-06512: at "SYS.DBMS_METADATA_INT", line 4050
    ORA-06512: at "SYS.DBMS_METADATA", line 836
    ORA-06512: at line 1
    EXP-00000: Export terminated unsuccessfully
    Could you help me in this problem what can I do ?
    Thank you in advance !
    Laszlo

    If you have a Metalink access, have a look at Note:232120.1 or Doc:498457.994
    If not, try running the catpatch.sql script in the $ORACLE_HOME/rdbms/admin directory, as sysdba and with no users connected.

  • Several errors after running catalog.sql

    I did a fresh installation of oracle apps EBS 11.5.10.2 on Linux OEL and was trying to do an import/export and it was not working as expected. So after i looked at Oracle's documentation it said catalog.sql has to be run before using the import/export. So i ran catalog.sql first but i did not run it with SYSDBA but ran it as SYSTEM and i saw several errors like access denied etcv. after i ran the catalog.sql i was not able to login via apps or any other user except SYSTEM and was giving me erros like ORA-04065:not executed,altered or dropped stored procedure "SYS.DBMS_SESSION"
    After this to fix the issue i ran @?/rdbms/admin/catpatch.sql and @?/rdbms/admin/utlrp as SYSDBA but both executed a lot of grants etc but are haging at some point and not finishing.
    The current state of the database is that im not able to login via any user except SYSTEM and i think i corrupted the db dictionary as everywhere i see they say running catalog.sql on an existing database is a bad idea. Can anyone help?

    Hi Dheeraj,
    My db version is 9.2.0.5.0 and OS is OEL 5.7.
    The doc where it was mentioned to run catalog.sql before using import/export is below:
    http://docs.oracle.com/cd/B10501_01/server.920/a96652/ch01.htm
    Please do not follow the steps in this link and instead follow the steps in (9i Export/Import Process for Oracle Applications Release 11i [ID 230627.1]).
    Currently when im trying to login using apps or any other user below are errors i get.
    ERROR:
    ORA-00604: error occurred at recursive SQL level1
    ORA-04068: existing state of packages has been discarded
    ORA-04065: not executed, altered or dropped stored procedure "SYS.DBMS_SESSION"
    ORA-06508: PL/SQL: could not find program unit being called
    ORA-06512:at "SYS.OWA_VPD_CTX", line 5
    ORA-06512:at "SYS.PORTAL_LOGIN", line 3
    ORA-06512:at line 2
    Can you pls help me to fix this.The status of the package is invalid and you need to validate it. Connect as sysdba and issue:
    SQL> select owner, object_type, status
    from dba_objects
    where object_name = 'DBMS_SESSION';
    SQL> alter package DBMS_SESSION compile body;
    SQL> show error
    SQL> alter package DBMS_SESSION compile;
    SQL> show errorPlease also see:
    Data Dictionary Objects Invalid after Running catalog.sql, catproc.sql, utlrp.sql or catpatch.sql [ID 752783.1]
    Debug and Validate Invalid Objects [ID 300056.1]
    How to Diagnose Invalid or Missing Data Dictionary (SYS) Objects [ID 554520.1]
    Thanks,
    Hussein

Maybe you are looking for

  • Adobe Reader PDF Desktop Icons No Longer Thumbnail Images

    Hi... I am running Windows 7 Home Premium x 64 - and thanks to a fix for this I found somewhere a while ago, it's been working fine for the longest time.  In the past week, I see that my Adobe Reader desktop icons are no longer thumbnail images - the

  • File -XI-Idoc partner profile error.

    Hi All, Iam trying to post a file to idoc scenario thru xi..when I post the idoc into the r3 system, it gives me an error saying partenr profile not available. I checked in the r3 system and have created a partner profile for my XI system and also ad

  • I don't know how to program my DVR to edit out the commercial​s

    Does anyone know how to program the DVR not to record the commercials?  Its not a problem on public television, of course.

  • Increasing size of image?

    i sometimes need to add files to an image file ive made, the .dmg, and i was wondering if theres anyway to increase the size of the dmg as i need to add more to it or do i have to make a new bigger image file?

  • Cannot start the j2ee engine

    hello. we are facing a problem with the J2EE engine of WAS. we stopped the server for some reasons and when trying to restart it, the server shows an error after loading the service manager ,in the server and the server is not getting connected.i am