Difference between ORA-00018 & ORA-00020

Hi experts,
I am confused about ORA-00018 & ORA-00020, it easier to understand how number of session increased [ora-18],
but what are the special causes that increase number of oracle processes [ora-20] ?
Thanks in advance.

There is a relationship between sessions on a database and the
number of
processes. What happens if we increase the number of sessions without
increasing the number of processes???
The parameters SESSIONS and PROCESSES determine the
size of two arrays in the SGA.
If you try to create more sessions on an instance than specified
by the SESSIONS parameter, you will get an ORA-00018: maximum
number of sessions exceeded.
If you try to create more processes on an instances than specified
by the PROCESSES prameter, you wil get an ORA-00020: maximum
number of processes exceeded.
The number of sessions and processes on your instance can been
seen using a COUNT(*) against V$PROCESS and V$SESSION.
Your job is to determine resonable values, so your users can continue
to work without getting neither ORA-18 nor ORA-20 during normal
conditions. (A run away job, that keeps starting new sessions is not
a normal condition, and it should be stopped by ORA-18 or ORA-20
whichever happens first).
You can join the two V$-views using the columns V$SESSION.PADDR
and V$PROCESS.ADDR.
It is quite normal to see a 1:1 relationship between processes
and sessions. However one OCI-program can create multiple
sessions belonging to one process. Users of Oracle Portal
will experience this behaviour.
The default value for SESSIONS is 1.1*PROCESSES + 5.
It is appropriate for some databases and inappropriate for
others (e.g. Oracle Portal).
Also, I remember a limit on the OS regarding the number of processes
allowed per Oracle user - also I know there is a semaphore
relationship.
On HP-UX there is a kernel parameter called NPROC. Like
PROCESSES and SESSIONS it should have a reasonable
value.
answered by
Jesper Haure Norrevangsource:-http://ora-00020.ora-code.com/msg/40800.html

Similar Messages

  • Ora-12801,Ora-00018,Ora-06512 encountered running utlrp.sql

    Hi All ,
    I am on oracle version 11.1.0.7.0 and OS is solaris SPARC.
    I am applying the CPU April 2011 patch..
    I ran the catbundle.sql file and post that , most of views under sys schema got invalid.
    So i ran @$ORACLE_HOME/cpu/view_recompile/recompile_precheck_jan2008cpu.sql
    and
    @$ORACLE_HOME/cpu/view_recompile/view_recompile_jan2008cpu.sql
    Inspite of this they were invalid.
    So i tried running utlrp.sql query and I facing these errors while running the query :
    ERROR at line 1:
    ORA-12801: error signaled in parallel query server P051
    ORA-00018: maximum number of sessions exceeded
    ORA-06512: at "SYS.UTL_RECOMP", line 760
    ORA-06512: at line 4I increased the number of processes.. but still I am facing this error... I am searching on metalink also..
    Any help would be appreciated..
    Regards
    Kk

    Hi All ,
    This issue is resolved.. I checked on Metalink for a similar solution , it was mentioned to do the following steps :
    shutdown immediate
    startup upgrade
    shutdown immediate
    startupDid these steps and i ran it again.. its working fine now.. All sys objects have been compiled successfully.
    Also , i came across this :
    Number of Sessions Exceeded During Database Creation While Executing SYS.UTL_RECOMP [ID 749359.1]
    I would have tried to increase the number of sessions to a very high value if the above solution had not worked.
    Thanks
    Kk

  • Difference between ora-00600 and ora-07445

    Hi all,
    Both ora-00600 and 07445 are generic errors, which arises due to n number of reasons. Is there any particular difference between these two errors. If so please let me know.....
    Thanks in advance
    kumareshan.......

    I don't think the statement is true. The answers is in the two metalink doc you posted.
    [Note:146580.1] Additional ORA-600 related information.
    [Note:211909.1] Additional ORA-7445 related information.
    in short,
    ORA-600 is from kernel code of the Oracle
    An ORA-7445 error is raised by an Oracle server process when it has received a fatal signal from the operating system.

  • ORA-00604: error occurred at recursive SQL level 1#ORA-00018

    Hi All,
    I have just rebuilt an existing application server, the setup I have now is a database server with oracle and two application servers.  The problem I am having is whenever I bring up the new application server I get short dumps and error messages in the log which is ORA-00604: error occurred at recursive SQL level 1#ORA-00018 does anyone have an idea of why I am getting this error when the new server is started?
    Thanks
    Jay

    hello,
    the oracle error ora-00018 means
    ORA-00018: maximum number of sessions exceeded
    This means that too many R/3 workprocesses  (new application server - additional work
    processes connecting to the oracle database) try to connect to the database at the
    same time. You need to increase the value for the oracle sessions in the initSID.ora
    file or/and spfile.
    Kind regards,
    Andreas

  • ORA-12801 error signalled in parallel query with ORA-00018 max # session

    Hello,
    I've just run dbca to create a new database. On completion I received the following:
    ORA-12801 error was signalled in parallel query server
    ORA-00018 maximum number of sessions exceeded
    ORA-06512 at sys_utl_recomp line 760
    ORA-06512 as sys_utl_recomp line 773
    ORA-06512 as sys_utl_recomp line 1
    The processes are set at 100, sessions is set at 115?
    Can you tell how to address this error and resolve the problem? I'm thinking that I should rerun sys_utl_recomp

    Hi,
    You didn't mention oracle version as well OS.
    might be you hit a bug.
    check the below link for reference
    https://metalink2.oracle.com/metalink/plsql/f?p=130:14:8051847734518941130::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,21564.1,1,1,1,helvetica
    Regards,
    Taj

  • Relation between tnsname.ora, Listner.ora, Init.ora

    Hi
    Can any body send me link of documentation which tells the relation between
    tnsnames.ora, listner.ora, init.ora file.
    and any link which tells what is sid, Service_name, db_name and service.
    and how to see them all
    thanks
    Message was edited by:
    umesh049

    Hi,
    Why don't you try Tahiti at http://tahiti.oracle.com/?
    Type in tnsnames.ora and you will get a list with - for example - 698 matches for DB 10g. Click on 'Search this library' and proceed from there.
    Happy reading,
    Guido

  • ORA-00018 maximum number of session

    Hello:
    We have a strange problem with a sql statement that when is invoked inside a php or asp program generates the following error:
    ORA-00018 maximum number of session
    We are using Oracle 9i installed over Red Hat with IIS 5.0. This query works fine in sqlplus. The query is:
    select * from vnoticias_p WHERE contains(titulo, '" . $nom . "') > 0
    titulo is a context type index formed with two concatenated fields.
    The problem had caused serious problems for us, because hangs our server every time the script is being executed.
    We ran this script only with one user connected, and we don´t understand how this query generates too many sessions?
    Appreciate your help
    Thanks

    Thanks for update.
    It is supposed that PROCESSES is the default value during installation. I don't know what is the default PROCESSES value of Oracle 11g in Solaris 10. Can you tell me so that I can correct SESSIONS?
    During Oracle 11g installation on Solaris 10, why did I get the following errors?
    ORA-12801: error signaled in parallel query server P072
    ORA-00018: maximum number of sessions exceeded
    ORA-06512: at "SYS.UTL_RECOMP", line 629
    ORA-06512: at "SYS.UTL_RECOMP", line 671
    ORA-06512: at line 1
    What is the best method to solve the above problem for Oracle 11g installation?
    SPFILE can not be modified manually. "ALTER SYSTEM " is one way. When I create another new Oracle instance, new Oralce instance uses the default PREOCESSES value or new PROCESSES value which I changed by "alter system"?
    Thanks,
    Jerry

  • ORA-00018 when no where near session limit

    We have a database where we get ORA-00018 even though we have no where near the number of sessions configured in the database. We think we only have a couple of dozen sessions, and indeed select * from v$session shows only 33 rows.
    Is it possible that there is a Linux limit or some other problem that is generating this error? Can I look at an error log to learn more?
    Thanks for any help offered.

    Hi,
    I guess, that resource_limit parameter is not your problem
    What is the current value for the sessions parameter ?
    SQL*Plus: Release 10.2.0.1.0 - Production on Dom Out 15 13:34:01 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> show parameter sessions
    NAME                                 TYPE        VALUE
    java_max_sessionspace_size           integer     0
    java_soft_sessionspace_limit         integer     0
    license_max_sessions                 integer     0
    license_sessions_warning             integer     0
    logmnr_max_persistent_sessions       integer     1
    sessions integer 49
    shared_server_sessions               integer
    SQL>Cheers

  • What is the difference between "= NULL" and "IS NULL" in SQL?

    Hi,
    I believe there is a difference between "= NULL" and "IS NULL" comparsion, but I couldn't find it. Anyone knows the difference?
    Thanks,
    Denny

    Aha, thanks:
    SQL> create table william_test_tab (col binary_double);
    Table created.
    SQL> insert into william_test_tab
      2  select rownum / (rownum - 1) from user_tables where rownum < 4;
    select rownum / (rownum - 1) from user_tables where rownum < 4
    ERROR at line 2:
    ORA-01476: divisor is equal to zero
    SQL> insert into william_test_tab
      2  select 1d * rownum / (rownum - 1) from user_tables where rownum < 4;
    3 rows created.
    SQL> select * from william_test_tab;
           COL
           Inf
      2.0E+000
      1.5E+000
    3 rows selected.
    SQL> select * from william_test_tab where col is infinite;
           COL
           Inf
    1 row selected.
    SQL>

  • What are differences between the target tablespace and the source tablespac

    The IMPDP command create so manay errors. But the EXAMPLE tablespace is transported to the target database successfully. It seems that the transported tablespace is no difference with the source tablespace.
    Why create so many errors?
    How to avoid these errors?
    What are differences between the target tablespace and the source tablespace?
    Is this datapump action really successfull?
    Thw following is the log output:
    [oracle@hostp ~]$ impdp system/oracle dumpfile=user_dir:demo02.dmp tablespaces=example remap_tablespace=example:example
    Import: Release 10.2.0.1.0 - Production on Sunday, 28 September, 2008 18:08:31
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Master table "SYSTEM"."SYS_IMPORT_TABLESPACE_01" successfully loaded/unloaded
    Starting "SYSTEM"."SYS_IMPORT_TABLESPACE_01": system/******** dumpfile=user_dir:demo02.dmp tablespaces=example remap_tablespace=example:example
    Processing object type TABLE_EXPORT/TABLE/TABLE
    ORA-39117: Type needed to create table is not included in this operation. Failing sql is:
    CREATE TABLE "OE"."CUSTOMERS" ("CUSTOMER_ID" NUMBER(6,0), "CUST_FIRST_NAME" VARCHAR2(20) CONSTRAINT "CUST_FNAME_NN" NOT NULL ENABLE, "CUST_LAST_NAME" VARCHAR2(20) CONSTRAINT "CUST_LNAME_NN" NOT NULL ENABLE, "CUST_ADDRESS" "OE"."CUST_ADDRESS_TYP" , "PHONE_NUMBERS" "OE"."PHONE_LIST_TYP" , "NLS_LANGUAGE" VARCHAR2(3), "NLS_TERRITORY" VARCHAR2(30), "CREDIT_LIMIT" NUMBER(9,2), "CUST_EMAIL" VARCHAR2(30), "ACCOUNT_MGR_ID" NU
    ORA-39117: Type needed to create table is not included in this operation. Failing sql is:
    ORA-39117: Type needed to create table is not included in this operation. Failing sql is:
    CREATE TABLE "IX"."ORDERS_QUEUETABLE" ("Q_NAME" VARCHAR2(30), "MSGID" RAW(16), "CORRID" VARCHAR2(128), "PRIORITY" NUMBER, "STATE" NUMBER, "DELAY" TIMESTAMP (6), "EXPIRATION" NUMBER, "TIME_MANAGER_INFO" TIMESTAMP (6), "LOCAL_ORDER_NO" NUMBER, "CHAIN_NO" NUMBER, "CSCN" NUMBER, "DSCN" NUMBER, "ENQ_TIME" TIMESTAMP (6), "ENQ_UID" VARCHAR2(30), "ENQ_TID" VARCHAR2(30), "DEQ_TIME" TIMESTAMP (6), "DEQ_UID" VARCHAR2(30), "DEQ_
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    . . imported "SH"."CUSTOMERS" 9.850 MB 55500 rows
    . . imported "SH"."SUPPLEMENTARY_DEMOGRAPHICS" 695.9 KB 4500 rows
    . . imported "OE"."PRODUCT_DESCRIPTIONS" 2.379 MB 8640 rows
    . . imported "SH"."SALES":"SALES_Q4_2001" 2.257 MB 69749 rows
    . . imported "SH"."SALES":"SALES_Q1_1999" 2.070 MB 64186 rows
    . . imported "SH"."SALES":"SALES_Q3_2001" 2.129 MB 65769 rows
    . . imported "SH"."SALES":"SALES_Q1_2000" 2.011 MB 62197 rows
    . . imported "SH"."SALES":"SALES_Q1_2001" 1.964 MB 60608 rows
    . . imported "SH"."SALES":"SALES_Q2_2001" 2.050 MB 63292 rows
    . . imported "SH"."SALES":"SALES_Q3_1999" 2.166 MB 67138 rows
    Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'USER1' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."REGIONS" TO "USER1"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'EXAM_03' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."REGIONS" TO "EXAM_03"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'USER1' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."COUNTRIES" TO "USER1"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'EXAM_03' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."COUNTRIES" TO "EXAM_03"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'USER1' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."LOCATIONS" TO "USER1"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'EXAM_03' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."LOCATIONS" TO "EXAM_03"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'USER1' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."DEPARTMENTS" TO "USER1"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'EXAM_03' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."DEPARTMENTS" TO "EXAM_03"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'USER1' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."JOBS" TO "USER1"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'EXAM_03' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."JOBS" TO "EXAM_03"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'USER1' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."EMPLOYEES" TO "USER1"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'EXAM_03' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."EMPLOYEES" TO "EXAM_03"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'USER1' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."JOB_HISTORY" TO "USER1"
    ORA-39083: Object type OBJECT_GRANT failed to create with error:
    ORA-01917: user or role 'EXAM_03' does not exist
    Failing sql is:
    GRANT SELECT ON "HR"."JOB_HISTORY" TO "EXAM_03"
    ORA-39112: Dependent object type OBJECT_GRANT:"OE" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type OBJECT_GRANT:"OE" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
    ORA-39112: Dependent object type INDEX:"OE"."CUSTOMERS_PK" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type INDEX:"OE"."CUST_ACCOUNT_MANAGER_IX" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type INDEX:"OE"."CUST_LNAME_IX" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type INDEX:"OE"."CUST_EMAIL_IX" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type INDEX:"PM"."PRINTMEDIA_PK" skipped, base object type TABLE:"PM"."PRINT_MEDIA" creation failed
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    ORA-39112: Dependent object type CONSTRAINT:"OE"."CUSTOMER_CREDIT_LIMIT_MAX" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type CONSTRAINT:"OE"."CUSTOMER_ID_MIN" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type CONSTRAINT:"OE"."CUSTOMERS_PK" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type CONSTRAINT:"PM"."PRINTMEDIA__PK" skipped, base object type TABLE:"PM"."PRINT_MEDIA" creation failed
    ORA-39112: Dependent object type CONSTRAINT:"IX"."SYS_C005192" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
    Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"OE"."CUSTOMERS_PK" creation failed
    ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"OE"."CUST_ACCOUNT_MANAGER_IX" creation failed
    ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"OE"."CUST_LNAME_IX" creation failed
    ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"OE"."CUST_EMAIL_IX" creation failed
    ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"PM"."PRINTMEDIA_PK" creation failed
    Processing object type TABLE_EXPORT/TABLE/COMMENT
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type COMMENT skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
    ORA-39112: Dependent object type REF_CONSTRAINT:"OE"."CUSTOMERS_ACCOUNT_MANAGER_FK" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39083: Object type REF_CONSTRAINT failed to create with error:
    ORA-00942: table or view does not exist
    Failing sql is:
    ALTER TABLE "OE"."ORDERS" ADD CONSTRAINT "ORDERS_CUSTOMER_ID_FK" FOREIGN KEY ("CUSTOMER_ID") REFERENCES "OE"."CUSTOMERS" ("CUSTOMER_ID") ON DELETE SET NULL ENABLE
    ORA-39112: Dependent object type REF_CONSTRAINT:"PM"."PRINTMEDIA_FK" skipped, base object type TABLE:"PM"."PRINT_MEDIA" creation failed
    Processing object type TABLE_EXPORT/TABLE/TRIGGER
    ORA-39082: Object type TRIGGER:"HR"."SECURE_EMPLOYEES" created with compilation warnings
    ORA-39082: Object type TRIGGER:"HR"."SECURE_EMPLOYEES" created with compilation warnings
    ORA-39082: Object type TRIGGER:"HR"."UPDATE_JOB_HISTORY" created with compilation warnings
    ORA-39082: Object type TRIGGER:"HR"."UPDATE_JOB_HISTORY" created with compilation warnings
    Processing object type TABLE_EXPORT/TABLE/INDEX/FUNCTIONAL_AND_BITMAP/INDEX
    ORA-39112: Dependent object type INDEX:"OE"."CUST_UPPER_NAME_IX" skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/FUNCTIONAL_AND_BITMAP/INDEX_STATISTICS
    ORA-39112: Dependent object type INDEX_STATISTICS skipped, base object type INDEX:"OE"."CUST_UPPER_NAME_IX" creation failed
    Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
    ORA-39112: Dependent object type TABLE_STATISTICS skipped, base object type TABLE:"OE"."CUSTOMERS" creation failed
    ORA-39112: Dependent object type TABLE_STATISTICS skipped, base object type TABLE:"PM"."PRINT_MEDIA" creation failed
    ORA-39112: Dependent object type TABLE_STATISTICS skipped, base object type TABLE:"PM"."PRINT_MEDIA" creation failed
    ORA-39112: Dependent object type TABLE_STATISTICS skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
    Processing object type TABLE_EXPORT/TABLE/INDEX/DOMAIN_INDEX/INDEX
    Processing object type TABLE_EXPORT/TABLE/POST_INSTANCE/PROCACT_INSTANCE
    ORA-39112: Dependent object type PROCACT_INSTANCE skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
    ORA-39083: Object type PROCACT_INSTANCE failed to create with error:
    ORA-01403: no data found
    ORA-01403: no data found
    Failing sql is:
    BEGIN
    SYS.DBMS_AQ_IMP_INTERNAL.IMPORT_SIGNATURE_TABLE('AQ$_ORDERS_QUEUETABLE_G');COMMIT; END;
    Processing object type TABLE_EXPORT/TABLE/POST_INSTANCE/PROCDEPOBJ
    ORA-39112: Dependent object type PROCDEPOBJ:"IX"."AQ$_ORDERS_QUEUETABLE_V" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
    ORA-39112: Dependent object type PROCDEPOBJ:"IX"."ORDERS_QUEUE_N" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
    ORA-39112: Dependent object type PROCDEPOBJ:"IX"."ORDERS_QUEUE_R" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
    ORA-39112: Dependent object type PROCDEPOBJ:"IX"."AQ$_ORDERS_QUEUETABLE_E" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
    ORA-39112: Dependent object type PROCDEPOBJ:"IX"."ORDERS_QUEUE" skipped, base object type TABLE:"IX"."ORDERS_QUEUETABLE" creation failed
    Job "SYSTEM"."SYS_IMPORT_TABLESPACE_01" completed with 63 error(s) at 18:09:14

    Short of trying to then reverse-engineer the objects that are in the dump file (I believe Data Pump export files contain some XML representations of DDL in addition to various binary bits, making it potentially possible to try to scan the dump file for the object definitions), I would tend to assume that the export didn't include those type definitions.
    Since it looks like you're trying to set up the sample schemas, is there a reason that you wouldn't just run the sample schema setup scripts on the destination database? Why are you using Data Pump in the first place?
    Justin

  • Difference between Unique key and Primary key(other than normal difference)

    Hello,
    1).Can any one tell me any other difference between Unique key and Primary key other than it having NULLs.
    2). What is the difference the words 'DISTINCT' and 'UNIQUE' in a sql query.
    Thanks in advance.

    Hi
    If you don't believe me than see the documentation in
    OTN.
    Ott Karesz
    http://www.trendo-kft.hu
    SQL> create table scott.tbl_clob
      2  (sss CLOB)
      3  /
    Tabelle wurde angelegt.
    SQL> insert into scott.tbl_clob values('wrwrwrw')
      2  /
    1 Zeile wurde erstellt.
    SQL> insert into scott.tbl_clob values('wrwrwrw')
      2  /
    1 Zeile wurde erstellt.
    SQL> select distinct sss from scott.tbl_clob
      2  /
    select distinct sss from scott.tbl_clob
    FEHLER in Zeile 1:
    ORA-00932: nicht übereinstimmende Datentypen
    SQL> select unique sss from scott.tbl_clob
      2  /
    select unique sss from scott.tbl_clob
    FEHLER in Zeile 1:
    ORA-00932: nicht übereinstimmende Datentypen
    SQL> select distinct to_char(sss) from scott.tbl_clob
      2  /
    TO_CHAR(SSS)
    wrwrwrw
    SQL> select unique to_char(sss) from scott.tbl_clob
      2  /
    TO_CHAR(SSS)
    wrwrwrw
    SQL>

  • What's the difference between redundancy and recovery window for retention?

    Hello all,
    I'm still trying to get a grip on this concept for RMAN backup planning.
    I recently ran into a situation as follows.
    I have the backups set to a redundancy of 1.
    I have instance1, which had GRID jobs to run RMAN backups as follows
    Incremental database level=0 weekly at Wed at 2:30am
    I have daily backups, incremental level=1 each evening
    I have archive log backups through the day.
    What happened, was that apparently on a Tues some time, the development team deleted data from almost every table in their schema.
    The didn't discover this till midday or so on Wednesday.
    I went to try to restore...and RMAN couldn't do it. I had found a SCN for early the Tues they did it...but I got the following error:
    RMAN> RUN
    2> {
    3> SET UNTIL SCN 4590383198282;
    4> RESTORE DATABASE;
    5> RECOVER DATABASE;
    6> }
    executing command: SET until clause
    Starting restore at 28-APR-10
    allocated channel: ORA_SBT_TAPE_1
    channel ORA_SBT_TAPE_1: SID=639 device type=SBT_TAPE
    channel ORA_SBT_TAPE_1: NMO v4.5.0.0
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=638 device type=DISK
    creating datafile file number=1 name=+DATADG/instance1/datafile/system.284.697137287
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 04/28/2010 15:53:00
    ORA-01180: can not create datafile 1
    ORA-01110: data file 1: '+DATADG/instance1/datafile/system.284.697137287'
    From what research I did...it appears that since I did not have a level=0 incremental from before, it could not reset the database back in time. The previous one had been deleted since, I guess I had a redundancy of 1.
    So, I thought I had a week backup they way I have it set..but that assumes that errors are found pretty quickly before the next level=0 backup.
    I want at least 1 to 1.5 weeks worth of backups. I do have the problem that we do not have many tapes in rotation, so I cannot go for too long...may 2x weeks tops.
    I'm trying to rethink my strategy, but I'm confused as I read as to the difference between setting RMAN retention with redundancy vs recovery window.
    Can someone give me an explanation how you understand it? I'm reading on the web and in oracle books, and for some reason, it just isn't clear to me what is the best way to go....especially when I see that redundancy and recovery window might both be set??
    Thank you in advance,
    cayenne

    Dear Cayenne
    AFAIK RMAN doesn't claim that "you haven't enough backup". Please read the error you got carefully
    ORA-01180: can not create datafile 1
    ORA-01110: data file 1: '+DATADG/instance1/datafile/system.284.697137287'
    and check the following link:
    ORA-01180: Cannot create datafile 1 when doing RMAN restore onto 2nd server
    Moreover, could you please use LIST BACKUP command and see whether you have enough backups?
    Read "Redundancy Based Backup Retention Policy" from the following link:
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/strategy003.htm#sthref139

  • Differences between Oracle SID / Instance/ Listener / Service or Service_Na

    Hi guys, i am confuse about the following terms above and how they relate to one another when connecting to a database..
    This is what i know
    - SID is the identifier of an Oracle Instance.
    - An Oracle Instance is a group of programs and memory allocated for accessing the database.
    - A database is a group of data files, control files etc.
    - A database can be accessed by different instances at the same time.
    - A instance can only access 1 database at a time.
    From what i know, this are my questions below
    1) An instance can only access 1 database(9i) at a time, but does that mean an instance can also access another database of different version(10g) at another time ? If it is possible, what parameter file should i look into ?
    2) Can i run two or more instances in the same computer if each instance is assign to access different database of the same version or different version?
    3) let say i have 2 instance each accessing a database of its own, how many listener do i need ?
    4) when i look into tnsnames.ora, some of the connect_data contains SID, whereas some only contains service_name.
    Can I know what is Service_Name ?
    What is the difference between SID and service_name when use in accessing the database?
    Care to advice? Thanks gurus. Deeply appreciated.

    Hi guys, i am confuse about the following terms above
    and how they relate to one another when connecting to
    a database..
    This is what i know
    - SID is the identifier of an Oracle Instance.
    - An Oracle Instance is a group of programs and
    memory allocated for accessing the database.
    - A database is a group of data files, control files
    etc.
    - A database can be accessed by different instances
    at the same time.
    - A instance can only access 1 database at a time.
    From what i know, this are my questions below
    1) An instance can only access 1 database(9i) at a
    time, but does that mean an instance can also access
    another database of different version(10g) at another
    time ? If it is possible, what parameter file should
    i look into ?No it is not possible, the instance is associated to only one database. The oracle instance is created based on the rdbms installed version, and the rdbms version (including patchset) should match the database version, otherwise, the operation dba should perform is the upgrade process.
    2) Can i run two or more instances in the same
    computer if each instance is assign to access
    different database of the same version or different
    version?Yes, you can first have as much installed RDBMS as your computer can have, obviously each rdbms installed on different Oracle Homes (restriction started since 8.1.5), and you can start as many instances as the host is able to handle depending on the resources and kernel parameter the host is configured with.
    3) let say i have 2 instance each accessing a
    database of its own, how many listener do i need ?The minimum number of listeners is 1, this is enough to handle all connections, if you are planning to setup more than two listeneres, it is up to you, each listener must have its own port and you should beware of the self-instance registration issues at the default 1521 port.
    4) when i look into tnsnames.ora, some of the
    connect_data contains SID, whereas some only contains
    service_name.
    Can I know what is Service_Name ?
    What is the difference between SID and service_name
    when use in accessing the database?SID is the way Oracle used to configure tns connect alias up to version 8.0 it is just considered for backward compatibility, but its use should be deprecated. Using services is the way to configure tns connect alias starting from 8i. A service is a way to refer to an instance. Administering by means of services is a helpful topic when administering RAC environments. You can declare certain instances to belong to a service and other to another service name, this way you can better distribuite workloads during peak hours and off time, you can better schedule tasks and avoid bottlenecks by redirecting jobs to specific services and using features such as resource manager.
    ~ Madrid

  • Any difference between distinct and aggregate function in sql query cost???

    Hi,
    I have executed many sql stmts patterns- such as:
    a) using a single table
    b) using two tables, using simple joins or outer joins
    but i have not noticed any difference in sql stmts in cost and in execution plan....
    Anyway, my colleague insists on that using aggregate function is less costly compared to
    distinct....(something i have not confirmed, that's why i beleive that they are exactly the same...)
    For the above reffered 1st sql pattern.. we could for example use
    select distinct deptno
    from emp
    select count(*), deptno
    from emp
    group by deptno select distinct owner, object_type from all_objects
    select count(*), owner, object_type from all_objects
    group by owner, object_typeHave you found any difference between the two ever...????
    Note: I use Ora DB 10g v2.
    Thank you,
    Sim

    distinct and aggregate function are for different uses and may give same result but if u r using aggregate function to get distinct records, it will be expensive...
    ex
    select distinct deptno from scott.dept;
    Statistics
    0 recursive calls
    0 db block gets
    2 consistent gets
    0 physical reads
    0 redo size
    584 bytes sent via SQL*Net to client
    488 bytes received via SQL*Net from client
    2 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    4 rows processed
    select deptno from scott.emp group by deptno;
    Statistics
    307 recursive calls
    0 db block gets
    60 consistent gets
    6 physical reads
    0 redo size
    576 bytes sent via SQL*Net to client
    488 bytes received via SQL*Net from client
    2 SQL*Net roundtrips to/from client
    6 sorts (memory)
    0 sorts (disk)
    3 rows processed
    Nimish Garg
    Software Developer
    *(Oracle & ASP.NET)*
    Indiamart Intermesh Limited, Noida
    To Get Free Oracle & ASP.NET Code Snippets
    Follow: http://nimishgarg.blogspot.com

  • Difference between 2 date variables

    I have a query that selects data based on :
    WHERE START_DATE >= &BEGIN
    AND start_date <= &END
    I need to find the difference between these 2 dates in order to use the result in a calculation in the totals area in a rtf I have, but don't know how to do a datediff with variables. Is it possible?
    Thanks

    You are running into a problem casting your character variables into dates. As you can see here, it is not such a good idea to let the database do this for you...
    WITH temp AS
    SELECT SYSDATE start_date FROM dual
    SELECT *
    FROM   temp
    WHERE START_DATE >= &BEGIN
    AND start_date <= &END + 1;
    Enter value for begin: '01-dec-07'
    old   7: WHERE START_DATE >= &BEGIN
    new   7: WHERE START_DATE >= '01-dec-07'
    Enter value for end: '01-jan-08'
    old   8: AND start_date <= &END + 1
    new   8: AND start_date <= '01-jan-08' + 1
    AND start_date <= '01-jan-08' + 1
    ERROR at line 8:
    ORA-00932: inconsistent datatypes: expected DATE got NUMBERBut if you wrap the character strings with to_date()....
    WITH temp AS
    SELECT SYSDATE start_date FROM dual
    SELECT *
    FROM   temp
    WHERE START_DATE >= to_date(&BEGIN,'DD-MON-YY')
    AND start_date <= to_date(&END,'DD-MON-YY') + 1;
    Enter value for begin: '01-DEC-07'
    old   7: WHERE START_DATE >= to_date(&BEGIN,'DD-MON-YY')
    new   7: WHERE START_DATE >= to_date('01-DEC-07','DD-MON-YY')
    Enter value for end: '01-JAN-08'
    old   8: AND start_date <= to_date(&END,'DD-MON-YY') + 1
    new   8: AND start_date <= to_date('01-JAN-08','DD-MON-YY') + 1
    START_DAT
    18-DEC-07And to be absolutely correct, you should actually use a format mask with a full YYYY and supply a full year with your variables.
    Greg

Maybe you are looking for

  • Inserting Dynamic Images in to a Crystal Report 10

    Hi all, I am trying to insert dynamic pictures into my report from repository, by getting the path for the picture from database fields. The version that I am using is Crystal Reports 10. Here is what I have done. I inserted an OLE object into the re

  • Script help

    Dear friends,     I need to do the following task.    For Movement 911, I need to remove hard coding (PROD) and incorporate the following logic in the script program. Data is maintained (set-id:z_vendor_assembly_area) in both “Format Group (PRTCLASS)

  • I can't quicklook .avi files in finder after I change their extension (from .vlc or .mkv)

    The title says it all. I received a few movies from a friend and some of them were in formats such as .mkv or others, but I couldn't quicklook them with the preview function in finder. I tried to change the extension to .avi since with that format I

  • Backup for macbook air

    What would you suggest as the best set-up for NAS & backup? I want my photos, music, documents etc. on the NAS so I can access media and data on my iPhone and ATV when the MBA is asleep or on the road somewhere. Am confused by all the different posts

  • In the browser's menu View no longer has a Reload option in the recently updated Firefox. Why?

    Trying to access my main communication site www.churchnotes.net but keep getting an error message that Domino Web Access is unable to process my request at this time. They suggested that I select View then Reload from the browser's menu but I am not