ORA-30019

Hi,
I created a new tablespace application and then wanted to create a rollback segment for it by using this command:
CREATE ROLLBACK SEGMENT "APPLICATION"
TABLESPACE "APPLICATION"
STORAGE ( INITIAL 1M NEXT 1M OPTIMAL 4M MINEXTENTS 3
MAXEXTENTS UNLIMITED);
when I press enter it gives me this error :
ORA-30019 : Illegal rollback Segment operation in Automatic Undo mode.
After getting this error, I went to the init.ora file to change the parameter UNDO_MANAGEMENT to MANUAL from AUTOMATIC. Shutdown and restarted the database but still it does not work. What do I do next?
Help is needed urgently

I have succeeded in creating the rollback segment.
I reset the parameter UNDO_MANAGEMENT=Manual in my INIT.ORA file, restart the database and listerner.
Rollback segment created successfully

Similar Messages

  • ERROR ORA-30019

    I have this error when I try to create a new rollback segment (using Enterprise Manager Console) with Oracle 9: ora-30019: rollback segment operation forbidden with automatic undo mode.
    Why and what can I do?

    Yes, you're right.
    In my file .ora, it is written undo_management='AUTO' undo_tablespace='UNDOTBS1'.I have to change these parameters by hand in this file or can I do it for instance with oracle Enterprise manager console?
    I have installed Oracle with default settings. I was thinking by default it has the MANUAL value. How is it possible???

  • Who can help me to review the question? -"ORA-02019: connection description

    Log error was found in Alert.log file in a DB in our production. It shows "ORA-02019: connection description for remote database not found". I check it and find the RECO process prompt this error message.
    I did the following steps to check the issue:
    1) connect system
    2) SQL> select local_tran_id,global_tran_id,state,mixed,advice,retry_time,os_user,host,db_user from dba_2pc_pending;
    LOCAL_TRAN_ID GLOBAL_TRAN_ID STATE MIX RETRY_TIM OS_USER HOST DB_USER
    8.2.7545 ITOWN01M.US.ORACLE.COM.9ed5378 collecting no 27-SEP-04 oracle DB1 EPORT
    a.8.2.7545
    7.35.9404 ITOWN01M.US.ORACLE.COM.9ed5378 collecting no 27-SEP-04 administrator SZITOWN\SZITOWN-016 EPORT
    a.7.35.9404
    3.47.10637 ITOWN01M.US.ORACLE.COM.9ed5378 collecting no 27-SEP-04 administrator SZITOWN\SZITOWN-016 EPORT
    a.3.47.10637
    1.0.20850 ITOWN01M.US.ORACLE.COM.9ed5378 collecting no 27-SEP-04 administrator SZITOWN\SZITOWN-016 EPORT
    a.1.0.20850
    1.47.21806 ITOWN01M.US.ORACLE.COM.9ed5378 collecting no 27-SEP-04 Administrator WORKGROUP\SZITOWN-013 EPORT
    a.1.47.21806
    3) SQL> select local_tran_id,in_out,database,dbuser_owner,interface,dbid,sess#,branch from dba_2pc_neighbors;
    LOCAL_TRAN_ID IN_ DATABASE DBUSER_OWN I DBID SESS# BRANCH
    8.2.7545 in EPORT N 1 0000
    7.35.9404 in EPORT N 1 0000
    3.47.10637 in EPORT N 1 0000
    1.0.20850 in EPORT N 1 0000
    1.47.21806 in EPORT N 1 0000
    8.2.7545 out CIQUSR_HG.US.ORACLE.COM EPORT N 234c63b2 1 4
    7.35.9404 out CIQUSR_HG.US.ORACLE.COM EPORT N 234c63b2 1 4
    3.47.10637 out CIQUSR_HG.US.ORACLE.COM EPORT N 234c63b2 1 4
    1.0.20850 out CIQUSR_HG.US.ORACLE.COM EPORT N 234c63b2 1 4
    1.47.21806 out CIQUSR_HG.US.ORACLE.COM EPORT N 234c63b2 1 4
    4) I try to commit them by FORCE.
    SQL> commit force '8.2.7545';
    commit force '8.2.7545'
    ERROR at line 1:
    ORA-02058: no prepared transaction found with ID 8.2.7545
    5) It seems no such entry, so I want to purge it.
    SQL> exec dbms_transaction.purge_lost_db_entry('8.2.7545');
    BEGIN dbms_transaction.purge_lost_db_entry('8.2.7545'); END;
    ERROR at line 1:
    ORA-30019: Illegal rollback Segment operation in Automatic Undo mode
    ORA-06512: at "SYS.DBMS_TRANSACTION", line 65
    ORA-06512: at "SYS.DBMS_TRANSACTION", line 85
    ORA-06512: at line 1
    What should I do at the point?? Although the issue do not get any bad effect to current Production, I really hope eveything would be OK.
    Any help from you would be appreciated!!
    Robin

    Hello,
    you have to fix the basic problem,ORA-02019 means your remote database cannot be reached because of an invalid connect string. So it's also impossible to do a COMMIT FORCE,same reason.
    ORA-30019 is due to a bug, document 274321.1 in metalink describes what to do. Here's an extract:
    If you get the following errors while purging transactions using "dbms_transaction.purge_lost_db_entry"
    SQL> EXECUTE DBMS_TRANSACTION.PURGE_LOST_DB_ENTRY('5.23.2386');
    BEGIN DBMS_TRANSACTION.PURGE_LOST_DB_ENTRY('5.23.2386'); END;
    ERROR at line 1:
    ORA-30019: Illegal rollback Segment operation in Automatic Undo mode
    ORA-06512: at "SYS.DBMS_TRANSACTION", line 65
    ORA-06512: at "SYS.DBMS_TRANSACTION", line 85
    ORA-06512: at line 1
    Fix:
    ===
    This problem is logged as
    Bug.2191458 (unpublished) UNABLE TO EXEC DBMS_TRANSACTION.PURGE_LOST_DB_ENTRY WITH AUTO UNDO MANAGEMENT and is worked by development.
    Use the following workaround:
    You have to use local_tran_id.....
    Issue commit before alter system set "_smu_debug_mode" = 4;
    Follow the steps,
    SQL>commit;
    SQL> alter session set "_smu_debug_mode" = 4;
    SQL>execute DBMS_TRANSACTION.PURGE_LOST_DB_ENTRY('local_tran_id');

  • Ora-02062

    Hi,
    In my alert log file ora-02062 error occuring last 2days.
    "ORA-02062: distributed recovery received DBID f0da6ea4, expected dbf89da4"
    I recreate all my DB Link but still error occuring.
    Is there any other solution.
    Regards
    Shahid

    hi aman
    dear when i execute procedure then an error raised.
    ORA-30019: Illegal rollback Segment operation in Automatic Undo mode
    ORA-06512: at "SYS.DBMS_TRANSACTION", line 65
    ORA-06512: at "SYS.DBMS_TRANSACTION", line 85
    ORA-06512: at line 1
    wht i do now...

  • Rollback segment  creation problem

    When i try to create rollback segment on oracle 9iRelease2 database in linux operating system, i got the following error, ORA-30019: Illegal rollback Segment operation in Automatic Undo mode.
    I have already modified Undo_management as manual in init file.
    How can i solve this problem?
    Thanks

    In SQL*Plus, can you check what your undo_management is set to, just to verify that it is picking up the change?
    show parameter undo_managementJustin
    Distributed Database Consulting, Inc.
    www.ddbcinc.com/askDDBC

  • SYSTEM Rollback Segment bad

    I ported a database over to a new server.
    It seems there may be transactions pending...which I don't care about.
    I can log as SYS and run queries, but I cannot run DML or DDL statements.
    I have narrowed down the problem to the SYSTEM rollback segment.
    I am running in Automatic Undo mode.
    How do I clear transactions from a rollback segment?
    I don't think I can alter or create a new SYSTEM rollback segment.

    There is no error message.
    When I issue any DML/DDL statement Oracle just hangs forever...and never issues an error message.
    Here is the latest printout from the alert.log file:
    Tue Jul 11 14:33:03 2006
    LGWR: Primary database is in CLUSTER CONSISTENT mode
    Tue Jul 11 14:33:03 2006
    ARCH: Evaluating archive log 3 thread 1 sequence 14697
    ARCH: Beginning to archive log 3 thread 1 sequence 14697
    Creating archive destination LOG_ARCHIVE_DEST_1: 'D:\ORA92\RDBMS\ARC14697.001'
    ARCH: Completed archiving log 3 thread 1 sequence 14697
    Tue Jul 11 14:33:05 2006
    LGWR: Primary database is in CLUSTER CONSISTENT mode
    Thread 1 advanced to log sequence 14700
    Thread 1 opened at log sequence 14700
    Current log# 3 seq# 14700 mem# 0: D:\ORADATA\9.2\ICDB\LOG\LOG3A.ORA
    Successful open of redo thread 1
    Tue Jul 11 14:33:06 2006
    SMON: enabling cache recovery
    Tue Jul 11 14:33:06 2006
    Successfully onlined Undo Tablespace 1.
    Tue Jul 11 14:33:06 2006
    SMON: enabling tx recovery
    Tue Jul 11 14:33:06 2006
    Database Characterset is WE8MSWIN1252
    replication_dependency_tracking turned off (no async multimaster replication found)
    Completed: alter database open
    Tue Jul 11 14:33:53 2006
    SMON: Parallel transaction recovery tried
    Tue Jul 11 14:34:45 2006
    create rollback segment system
    tablespace system
    storage (
    initial 112K
    minextents 1
    maxextents 1
    Tue Jul 11 14:34:45 2006
    ORA-1535 signalled during: create rollback segment system
    tablespace system
    s...
    Tue Jul 11 14:35:02 2006
    Thread 1 cannot allocate new log, sequence 14701
    All online logs needed archiving
    Current log# 3 seq# 14700 mem# 0: D:\ORADATA\9.2\ICDB\LOG\LOG3A.ORA
    Tue Jul 11 14:35:12 2006
    drop rollback segment system
    Tue Jul 11 14:35:12 2006
    ORA-1544 signalled during: drop rollback segment system...
    Tue Jul 11 14:41:33 2006
    alter rollback segment system offline
    Tue Jul 11 14:41:33 2006
    ORA-30019 signalled during: alter rollback segment system offline...

  • RE:Undo_management=MANUAL

    Hi all!
    I'm trying to create the rollback segment below but get the error shown. Even when i set undo_management=MANUAL & restart my PC or stop/start Oracle services, it remains AUTO. What else need i do plz.
    Thnx!
    SQL> create rollback segment test tablespace ts_vas_hr;
    create rollback segment test tablespace ts_vas_hr
    ERROR at line 1:
    ORA-30019: Illegal rollback Segment operation in Automatic Undo mode
    SQL>
    SQL> show parameter undo_management
    NAME TYPE VALUE
    undo_management string AUTO

    You are probably using spfile. So if you have changed the parameter undo_management in pfile,it wont be into effect.
    Do this
    1)Check that you are using spfle or not.Issue
    sql>show parameter spfileThis would give sme value.If it does than you are using spfile
    2)
    alter system set undo_management=mnanual scope=spfile3{code{
    startup forceOr shut immediate and than startup.
    4show parameter undo
    If its shows manual as the setting than retry uour operation.
    HTH
    Aman....                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Create rollback segment

    Anyone knows why I can not create rollback segment in 9i?? I
    used same script in 8i and it works.
    "create rollback segment lims_rollback tablespace lims_rollback;"
    ERROR at line 1:
    ORA-30019: Illegal rollback Segment operation in Automatic Undo
    mode
    what is automatic Undo mode???

    Automatic undo mode is the default behavior in Oracle 9i where
    Oracle server itself manages creation/sizing etc of rollback
    segments. I believe if you want to do it the old 8i/8/7.x way,
    you need to change some parameter to not use Automatic Undo

  • Designer 9i on Oracle 9.2

    Adding to my posting of a minute ago:
    DS9i is augmented by 9.0.2.0.6 patch. Same questions apply to iDS9 + this patch.
    Eliram Braudo

    This is a longer reply than the other I read.
    If you get the error message "ORA-12913: Cannot create managed tablespace" while running ckcreate.sql, the following is the solution:
    Creating tablespace with TEMPORARY clause gives ORA-12913 because it is not allowed to create a dictionary managed tablespace in a database with locally
    managed SYSTEM tablespace, which is a new feature of 9.2.
    fix:
    ====
    To resolve this issue for repositories created on a 9.2 database instance, the following (example) syntax should be used:
    CREATE TEMPORARY TABLESPACE <tbs name> TEMPFILE '<Location>' SIZE
    4M REUSE
    AUTOEXTEND ON NEXT 1M UNIFORM SIZE 1M;
    If you get the error message "ORA-30019: Illegal rollback segment operation in Automatic Undo mode" while running ckcreate.sql, the following is the solution:
    Solution:
    =========
    You get this error message because you attempt to create a Rollback segment while on Automatic Undo Management.
    If you really need to create a rollback segment then Switch Undo Management to manual by setting parameter UNDO_MANAGEMENT to MANUAL and restart the database.
    References
    <Bug:2108361>: CKCREATE SCRIPT UNABLE TO CREATE ROLLBACK SEGMENT
    <Note:135217.1>: Which Operations are Allowed or Prohibited on RBS with or
    without AUM?
    I haven't tried either of these yet but am assured they fix the problems.
    Regards,
    Richard

  • PL/SQL report errors: ORA-01422

    Hi all,
    (before i you read i would like to say i have searched the net for this error code but nothing shows up like this problem..)
    I am getting an error problem when i select certain Schemas from a list on an apex app. page, it only works for some schemas not all..
    When i select one schema, it is supposed to display one row.. when i select [ALL] it is supposed to show them all.
    It does work if i select '[ALL]' from the select list (p3_schema_name), just not for every single individual one.
    the error code:
    ORA-01422: exact fetch returns more than requested number of rows
    declare
      vSchema  varchar2(20);
      vStmt  varchar2(1000);
      vVersion number(5);
      vDBName  varchar2(20);
      vHostName varchar2(80);
      vStmt2  varchar2(1000);
      vVersion2 number(5);
      vDBName2  varchar2(20);
      vServer2 varchar2(80);
      vSchema2 varchar2(80);
      CURSOR c_schemas IS
        select owner from dba_tables@P3_DB_NAME.db_link where table_name = 'DDL_LOG' and num_rows > 0 order by owner;
    begin
      IF :P3_SCHEMA_NAME != '[ALL]' AND :P3_DB_NAME IS NOT NULL AND :P3_SERVER_NAME IS NOT NULL THEN
        vServer2 := :P3_SERVER_NAME;
        vSchema2 := :P3_SCHEMA_NAME;
          vStmt2 := 'select distinct DDH_DB_NM, max(DDH_SCHEMA_NR)keep(dense_rank last order by ddh_runstart_td) AS "PATCH" from &P3_SCHEMA_NAME..ddl_log@&P3_DB_NAME.db_link GROUP BY DDH_DB_NM';
          Execute Immediate vStmt2 into vDBName2, vVersion2;
            htp.p('<br>');
            htp.p('<table border="1">');
            htp.p('<tr>');
            htp.p('<th bgcolor="#FFCC99">SERVER NAME</th>');
            htp.p('<th bgcolor="#FFCC99">DB NAME</th>');
            htp.p('<th bgcolor="#FFCC99">SCHEMA NAME</th>');
            htp.p('<th bgcolor="#FFCC99">PATCH</th>');
            htp.p('</tr>');
            htp.p('<tr>');
            htp.p('<td>');
            htp.p(vServer2);
            htp.p('</td>');
            htp.p('<td>');
            htp.p(vDBName2);
            htp.p('</td>');
            htp.p('<td>');
            htp.p(vSchema2);
            htp.p('</td>');
            htp.p('<td>');
            htp.p(vVersion2);
            htp.p('</td>');
            htp.p('<td>');
            htp.p('<BR>');
            htp.p('</td>');
            htp.p('</tr>');
            htp.p('</tr>');
            htp.p('</table>');
       ELSE IF :P3_SCHEMA_NAME = '[ALL]' AND :P3_DB_NAME IS NOT NULL AND :P3_SERVER_NAME IS NOT NULL THEN
       vHostName := :P3_SERVER_NAME;
       vDBName := :P3_DB_NAME;
         open c_schemas;
          htp.p('<br>');
          htp.p('<table border="1">');
          htp.p('<tr>');
          htp.p('<th bgcolor="#FFCC99">SERVER NAME</th>');
          htp.p('<th bgcolor="#FFCC99">DB NAME</th>');
          htp.p('<th bgcolor="#FFCC99">SCHEMA NAME</th>');
          htp.p('<th bgcolor="#FFCC99">PATCH</th>');
          htp.p('</tr>');
        LOOP
          FETCH c_schemas INTO vSchema;
          EXIT WHEN c_schemas%NOTFOUND;
          vStmt  := 'select max(DDH_SCHEMA_NR)keep(dense_rank last order by ddh_runstart_td) AS "PATCH" from '||vSchema||'.ddl_log@&P3_DB_NAME.db_link where DDH_SCHEMA_NR = (select max(DDH_SCHEMA_NR) from '||vSchema||'.ddl_log@&P3_DB_NAME.db_link) and rownum < 2' ;
          Execute Immediate vStmt into vVersion  ;
          htp.p('<tr>');
          htp.p('<td>');
          htp.p(vHostName);
          htp.p('</td>');
          htp.p('<td>');
          htp.p(vDBName);
          htp.p('</td>');
          htp.p('<td>');
          htp.p(vSchema);
          htp.p('</td>');
          htp.p('<td>');
          htp.p(vVersion);
          htp.p('</td>');
          htp.p('<td>');
          htp.p('<BR>');
          htp.p('</td>');
          htp.p('</tr>');
        END LOOP;
          htp.p('</tr>');
          htp.p('</table>');  
      CLOSE c_schemas;
    END IF;
    END IF;
    END;I have checked the DDH_SCHEMA_NR for repeating entries of the highest number.. some of the ones that dont work do have repeating entries some don't.
    Sorry if this is confusing, i have tried to explain it as best as i can.
    Thanks in advance for any help.
    Ashleigh

    Hello Ashleigh,
    Based on your code, I'd start by running this piece of SQL via command-line (thru SQL Workshop, SQL*Plus, Toad, etc.), replacing &P3_SCHEMA_NAME. and &P3_DB_NAME. with values that are currently causing the routine to fail and see if it returns more than one row. I don't know your data, but DISTINCT and GROUP BY are typically used to return multiple (though grouped/summarized) rows. It appears to be the only statement that would cause the error your seeing (more than one row being returned into single variables).
    select distinct DDH_DB_NM, max(DDH_SCHEMA_NR)keep(dense_rank last order by ddh_runstart_td) AS "PATCH" from &P3_SCHEMA_NAME..ddl_log@&P3_DB_NAME.db_link GROUP BY DDH_DB_NM;I'm actually surprised that the code runs at all. I didn't think 'execute immediate' would know what to do with substitutions indicated as "&something." (I've typically seen that when substituting in dynamic HTML/Javascript code but maybe I'm learning something new). But since you already have vServer2 and vSchema2, I'd be more apt to code it as:
    vStmt2 := 'select distinct DDH_DB_NM, max(DDH_SCHEMA_NR)keep(dense_rank last order by ddh_runstart_td) AS "PATCH" from ' ||
    vSchema2 || '.ddl_log@' || vServer2 || '.db_link GROUP BY DDH_DB_NM';Hope this helps,
    John

  • Ora-00604 error and ora 01000 error while report generation.

    hi all,
    I am trying to generate the multiple reports of same template through a program.
    While this job is running, i get the following error at the BIP console and the reports don't get generated.
    [101711_044115578][][EXCEPTION] java.sql.SQLException: ORA-00604: error occurred
    at recursive SQL level 1
    ORA-01000: maximum open cursors exceeded
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01000: maximum open cursors exceeded
    ORA-01000: maximum open cursors exceeded
    Kindly help.
    Thanks.

    Lots of resources with a simple search to see what this is about, for example:
    http://www.orafaq.com/wiki/ORA-01000
    ORA-01000:     maximum open cursors exceeded
    Cause:     A host language program attempted to open too many cursors. The initialization parameter OPEN_CURSORS determines the maximum number of cursors per user.
    Action:     Modify the program to use fewer cursors. If this error occurs often, shut down Oracle, increase the value of OPEN_CURSORS, and then restart Oracle.
    open_cursors parameter
    http://download.oracle.com/docs/cd/E11882_01/server.112/e25513/initparams160.htm#REFRN10137
    Oracle support note:
    OERR: ORA-1000 maximum open cursors exceeded (Doc ID 18591.1)

  • EA2: ORA-01427 clicking on a view in the navigator

    SQLDev: 1.5.0.52.03
    Java: 1.6.0_04
    Oracle: 9.2.0.7.0
    I'm getting the following error when I click on a view in the navigator pane:
    An error was encountered performing the requested operation:
    ORA-01427: single-row subquery returns more than one row 01427. 00000 - "single-row subquery returns more than one row"I'm not seeing any errors in the shell window.
    After clicking on <OK> in the error dialog, the normal tabs (Columns, Data, Grants, Dependencies, Details, SQL) are displayed, but there is no content in the Columns tab.
    All the other tabs seem to function normally.
    Here is the DDL from the SQL tab
    CREATE OR REPLACE VIEW "SUBSCRIPTIONS"
        "ORDER_ID", "SUNBURST_ORDER_ID", "SIEBEL_ORDER_ID", "ACCOUNT_ID",
        "COMP_ID", "SUBACCOUNT_ID", "START_DATE", "END_DATE", "PULL_DATE",
        "SUBSCRIPTION_TYPE", "PRICE_CLASS", "DESCRIPTION", "SEAT_COUNT",
        "ORDER_DURATION", "CALLBACK_INTERVAL", "UPDATE_DATE", "UPDATE_USERNAME",
        "AFFILIATE"
    AS
        SELECT order_id,
            sunburst_order_id,
            siebel_order_id,
            account_id,
            comp_id,
            subaccount_id,
            start_date,
            end_date,
            pull_date,
            product_id,
            price_class,
            product_name,
            add_users,
            order_duration,
            callback_interval,
            last_mdfy_date,
            last_mdfy_emp,
            affiliate
        FROM csbcrossworlds.subscriptions;We have 15 views in this schema, 3 of them fail this way but the other 12 display the columns just fine. So far I am unable to detect any commonality.
    Any ideas?

    Ok, I think I found the problem. The view in question (SUBSCRIPTIONS) is owned by 'PHILC' and it references a table named 'SUBSCRIPTIONS' owned by 'CSBCROSSWORLDS'. There are two other development schemas that also own tables named 'SUBSCRIPTIONS'.
    I believe the 'Columns' tab is executing the query below. The subquery in this SQL tries to identify the primary key columns for the 'SUBSCRIPTIONS' view in my schema (PHILC):
    SELECT
        c.column_name,
        DECODE(
            data_type,
                'CHAR',      data_type||'('||c.data_length||')',
                'VARCHAR',   data_type||'('||c.data_length||')',
                'VARCHAR2',  data_type||'('||c.data_length||')',
                'NCHAR'   ,  data_type||'('||c.data_length||')',
                'NUMBER'  ,  DECODE(c.data_precision,null,'NUMBER', data_type||'('||c.data_precision||','||c.data_SCALE||')'),
                'NVARCHAR',  data_type||'('||c.data_length||')',
                'NVARCHAR2', data_type||'('||c.data_length||')',
                data_type) data_type,
        DECODE(nullable, 'Y', 'Yes', 'No') nullable,
        c.DATA_DEFAULT,
        column_id,
        com.comments,
        (SELECT 1 FROM all_constraints, all_cons_columns
          WHERE all_constraints.constraint_type = 'P' AND
                all_constraints.constraint_name = all_cons_columns.constraint_name AND
                all_constraints.owner = all_cons_columns.owner AND
                all_cons_columns.table_name = c.table_name AND
                c.column_name = all_cons_columns.column_name) Primary_Key,
        c_update.insertable,
        c_update.updatable,
        c_update.deletable
    FROM
        sys.all_tab_Columns c, sys.all_col_comments com, sys.user_updatable_columns c_update
    WHERE
        c.owner = :OBJECT_OWNER AND
        c.table_name = :OBJECT_NAME AND
        c.table_name = com.table_name AND
        c.owner = com.owner AND
        c.column_name = com.column_name AND
        c_update.column_name = com.column_name AND
        c_update.table_name = com.table_name
    ;Extracting the subquery into this:
    SELECT
        all_constraints.owner,
        all_constraints.table_name,
        all_constraints.constraint_name
    FROM all_constraints, all_cons_columns
    WHERE
        all_constraints.constraint_type = 'P' AND
        all_constraints.constraint_name = all_cons_columns.constraint_name AND
        all_constraints.owner = all_cons_columns.owner and
        all_cons_columns.table_name = 'SUBSCRIPTIONS' and
        'ORDER_ID' = all_cons_columns.column_name;I got this output:
       owner          table_name      constraint_name
    CUTOVER          SUBSCRIPTIONS    SUBSCRIPTIONS_PK
    CROSSWORLDS      SUBSCRIPTIONS    SUBSCRIPTIONS_PK
    CSBCROSSWORLDS   SUBSCRIPTIONS    SUBSCRIPTIONS_PKLooking at the DDL for the view, the row we really want is for owner 'CSBCROSSWORLDS'. Unfortunately, that means having to somehow parse the SQL text to extract the owner name...
    Phil

  • Using database-link in view to get around ORA-01031 error

    I have been granted select rights on a users table. I am therefore able to select from his table. If however I try create a view against his table I run into the ORA-01031 problem. I have worked around this problem by creating a database-link to myself and then adding that to the view creation and it works. What are the downsides of using the database-link in this way?

    The only down side I have been able to identify is that a extra session is created and that the CPU has a little extra work due to the LOOP BACK that takes place. I need to ensure the network is not unnessesarly used and therefore will need to ensure that 127.0.0.1 (local host) is used in the database connection discription. e.g.
    create database link my_db_link connect to scott identified by tiger using '(description=(address=(protocol=tcp)(host=127.0.0.1) (Port = 1521) ) (connect_data= (sid=ora10g)))';

  • Getting ora:00904 invalid indentifier error while running i query

    Hi,
    I have a remote database and local database both are oracle 10gR2.Now i have written the below mentioned query in my local database and is working fine,but in case remote database it is throughing error ora:00904 invalid indentifier.
    I had export the dump from remote db and import it on my local db and i tried the same and it is working fine on local after that also.
    As i believe that this error usually come for column name not exist or column name or it's length or for any special character in column name of the table.But as i said it is working fine on local db but not in remote db though i am using the same dump for local and remote.
    Though when i am querying the table i can able to fetch data for the any record but when i am using the below mentioned query for the same i am getting the error.As i am doing this to fecth the data for child parent related relationship.
    Can any one suggest is there anything related to configaration or something else.
    Please do let me know if you do want some more information on the query what i am doing inside of it.
    Rgds,
    Anit
    Edited by: Anit A. on Sep 1, 2008 2:32 AM
    Edited by: Anit A. on Sep 1, 2008 2:33 AM

    WITH t
    AS
    SELECT decode(t.spnlevel
    ,3,t.u_quotesdtlid
    ,2,decode((select count(*)
    from u_quotesdtl t2
    where t2.u_quotesdtlid = t.u_quotesdtlid
    and t2.parentspn = (t2.jobgroupid||':'||t2.jobtype)
    ),0,(select t1.u_quotesdtlid
    from u_quotesdtl t1
    where t1.spnitemcode = t.parentspn
    and t1.spnlevel = '3'
    and t1.jobtype = t.jobtype
    and t1.jobgroupid = t.jobgroupid
    and t1.QUOTEID = t.QUOTEID
    ),t.u_quotesdtlid
    ,1,decode((select count(*)
    from u_quotesdtl t2
    where t2.QUOTEID = t.QUOTEID
    and t2.parentspn = (t2.jobgroupid||':'||t2.jobtype)
    ),0,t.u_quotesdtlid,decode((select count(*)
    from u_quotesdtl t3
    where t3.QUOTEID = t.QUOTEID
    and t3.parentspn = (t3.jobgroupid||':'||t3.jobtype)
    and t3.u_quotesdtlid in (select t1.u_quotesdtlid
    from u_quotesdtl t1
    where t1.spnitemcode = t.parentspn
    and t1.spnlevel = '2'
    and t1.jobtype = t.jobtype
    and t1.jobgroupid = t.jobgroupid
    and t1.QUOTEID = t.QUOTEID
    ),0,(select t4.u_quotesdtlid
    from u_quotesdtl t4
    ,(select t1.parentspn
    ,t1.jobtype
    ,t1.jobgroupid
    from u_quotesdtl t1
    where t1.spnitemcode = t.parentspn
    and t1.spnlevel = '2'
    and t1.jobtype = t.jobtype
    and t1.jobgroupid = t.jobgroupid
    and t1.QUOTEID = t.QUOTEID
    ) t5
    where t4.spnitemcode = t5.parentspn
    and t4.spnlevel = '3'
    and t4.jobtype = t5.jobtype
    and t4.jobgroupid = t5.jobgroupid
    and t4.QUOTEID = t.QUOTEID
    (select t1.u_quotesdtlid
    from u_quotesdtl t1
    where t1.spnitemcode = t.parentspn
    and t1.spnlevel = '2'
    and t1.jobtype = t.jobtype
    and t1.jobgroupid = t.jobgroupid
    and t1.QUOTEID = t.QUOTEID
    ,null,t.u_quotesdtlid) as parentquoteid
    ,t.u_quotesdtlid as quotesdtlid
    ,t.spnlevel as spnlevel
    FROM u_quotesdtl t
    WHERE t.QUOTEID ='som key id'
    ORDER BY parentquoteid,t.spnlevel desc
    select * from t;

  • 'ORA-01722: Invalid Number' error while Running a Query

    Hi,
    I'm trying to run a query built on a DSO. The DSO has a field 'Start Date'. This Start Date InfoObject has a reference Char as 0DATE.
    This Start Field has blank values due to which I'm getting the ORA-01722 error. I came across many threads with same topic of discussion. As mentioned in one of the Threads I have written a program to update 'Start Date' with 00000000. The code wriiten is "UPDATE /BIC/AZ_MONINV00 SET /BIC/ZSTR_DTE = '00000000' where /BIC/ZSTR_DTE = ' '.
    Now when I see the data in the active data table of DSO the blank value is replaced with '00000000'.
    But If I right click on the DSO click on display data the 'Start Date' field is blank. And now the Query also gets executed without any error. But in the output of the query the 'Start Date' Field has "#" values.
    Can anyone suggest on how can I make these "#" values appear as 00000000 in the report?

    In this case, you have to write a macro to avoid # in Analyzer.
    Right Click-->Display Data will show data from Active table of DSO only.
    If you don't want to show any blank date values in the report, you can exclude in Filter in Query.

Maybe you are looking for

  • External hard drive not spinning up

    Hi, I have a 160GB Freecom FHD-3 external hard drive connected to my iBook with USB 2.0 that I use to store all my music / movies etc. I have a slight problem with this drive and i was wondering if anyone could help me. Firstly when i turn the iBook

  • Java.text.ParseException :UnparseableDate

    Hi, Iam trying to convert a String into Date and that Date in to a customized Date format...,Here it is what iam doing.. import java.util.*; import java.io.*; import java.text.*; public class str2date public static void main(String[] args) try String

  • Safari crashes with message about "ct_plugins"

    Safari now crashes instantly, every single time. It gives me a message saying that the crash was probably caused by "ct_plugins." I cannot find anything called "ct_plugins" by using the Finder. Remarkably unhelpful. Actually reminds me of the old day

  • Oracle Apps Technical or Financial

    Hi, I m working as core DBA since 1 year. now i want to switch to Apps DBA field. But i m confused that oracle are giving many Apps DBA trainings like - 11i install, patch, monitor - Oracle Apps Technical - Oracle Apps Financial. As i m new in apps d

  • Can't save Cisco ASA configuration in GNS3 via write memory command

    Hi all, I'm having a problem to save Cisco ASA configuration in GNS3 via write memory command.    ciscoasa(config)# wr mem    Building configuration-    Cryptochecksum: c066a7ab b5b9071e bb5ee1f6 2d93be53    %Error copying system:/running-config (Not