Wrong sequencing with Oracle db using sequence table?

Hi,
we have a strange problem resulting in primary key violations in a table which is using a sequence (no native sequencing, but a sequence table).
We use Oracle 9.2.0.x
We have a table which is mapped to a Java type which has two derived types, i. e. in the table, two different "object types" are contained (the table contains all attributes of both classes). This table uses a sequence key as primary key.
This works pretty fine when the table is left empty in the beginning.
However, if we fill 15 records in this table by a SQL script - not by toplink! - (for migration purposes), and then set the initial sequence value in the sequence table to 500 (which should be greater than 15 ;-) by the same SQL script, then restart the application server (Bea Weblogic), and then try to add new records via Toplink, we get a primary key violation.
It sounds odd but it seems as if Toplink would store the initial sequence value somewhere else and does not care about the value we entered "manually" in the sequence table.
Can anybody give us a hint what the reason could be for this problem? Is it the inheritance of the Java Types from one abstract type? Does sequence number caching play a role (we used a preallocation size of 500 and of 1 - with the same negative effect).
If you need additional information, don't hesitate to drop me a notice.
Thanks,
Andreas.

Each time the application using TopLink starts it will lazily acquire the next pre-allocation batch of values from the database.
You will see SQL entries like:
UPDATE SEQUENCE SET SEQ_COUNT = SEQ_COUNT + 50 WHERE SEQ_NAME = 'EMP_SEQ'
SELECT SEQ_COUNT FROM SEQUENCE WHERE SEQ_NAME = 'EMP_SEQ'
TopLink will increment the table's value and then use the values from 1 greater then initial value up to and including the value it just incremented the row to.
In your example you should see, after re-starting the server, the next value to be 501.
What exact version of TopLink are you using?
When you enable SQL logging what statement do you see executed, related to the sequence table prior to the invalid INSERT?
Doug

Similar Messages

  • Integrating with Oracle EBS using XMLGateway issues

    Hi all,
    I'm trying to integrating with Oracle EBS using XMLGateway, and I meet some issues. Here are the steps I did.
    1) Update DATA_MAP.xgm file and DATA_TEST.dtd file into XMLGateway repository
    2) Define transactions in EBS client:
    Party Type: Supplier
    Transaction Type: Cat
    Transaction Subtype: Dog
    Transaction Description: test for cat and dog
    Standard Code: OAG
    External Transaction Direction: IN
    External Transaction Type: Cat
    External Transaction Subtype: Dog
    Queue: APPLSYS.ECX_IN_OAG_Q
    3) Define trading partners in EBS client
    Operating Unit: Vision Operations
    Trading Partener Type: Supplier
    Trading Partener name: ****
    Trading Partener site: ****
    Company Admin email: [email protected]
    ... other transaction info defined in step 2)
    4) Send inbound message using OTA send Inbound Page. It succeed.
    a. The return page display status code 1000 with status discription OK.
    b. From the transaction monitor, I can see the inbound message was processed successfully.
    c. From the database, I can see that this inbound message first arrived in ecx_inqueue table, and then moved to ecx_in_oag_q_table. And last disappeared from the ecx_in_oag_q_table. That means XMLGateway process the inbound message in transaction queue successfully.
    5) Send inbound message using SOAPUi. It failed.
    a. The return page display status code 200. That means the inbound message has been sent to inbound message queue successfully.
    b. From transaction monitor, I cannot see this request record.
    c. From the database, I can saw that this inbound message first arrived in wf_ws_jms_in table, then disappeared. It didn't moved to transaction queue which I selected when defined transations, so I guess it wasn't processed by XMLGateway. Using the following SQL, but cannot find error reason.
    select * from ecx_inbound_logs where process_id='******************'
    select * from apps.ecx_error_msgs where error_id='*****'
    I guess the reason is something happend to prevent inbound message to move from inbound message queue to transaction queue. So XMLGateway cannot process this inbound message.
    From XMLGateway user guide, I understand that there are three kinds of inbound queues(ECX_INBOUND which OTA uses, WF_WS_JMS_IN which soap over https uses, WF_JMS_IN which JMS uses), does't mention what are the corresponding transaction queues? Can they share the same transaction queue? Also see from this user guide, ecx_in_oag_q (transaction queue) is only for ecx_inbound queue. But when I try to define a transaction in EBS client, it seems that only ecx_in_oag_q can be chosen. I wondered why my second senarios failed when I used the same transation and trading partner. The message already arrived at wf_ws_jms_in and then disappeared. Is that because I selected the wrong transaction queue when defining transactions? But it was really cannot select any other transaction queues there. Or I missed some steps when using SOAP over HTTP/S?
    Appreciate you can give me some suggestions. Hope to hear your voice. Thanks in advance.

    Hi,
    Regarding the integration what type of integration you want.
    Can you please elaborate?There are some integration tools releases by Oracle for the integration.
    Regards
    Pramod

  • NCHAR issue with oracle database using JDBC adapter

    Hi,
    We have a requirement to develop an XI interface from FTP server(File adapter) to oracle database using JDBC adapter. In the oracle database table few fields are of type NCHAR/NVARCHAR. when we try to insert the character(A,B,c..) values into oracle table fields of type NCHAR/NVARCHAR, we are getting the following error message in the JDBC adapter audit log. IF we pass the numeric value to the same field, then we are able to insert the records successfully.
    Unable to execute statement for table or stored procedure. 'IPCSDD_DOWNLOAD_PROCESS' (Structure 'StatementName1') due to java.sql.SQLException: ORA-00904: "P": invalid identifier
    2010-10-19 22:29:59 Error JDBC message processing failed; reason Error processing request in sax parser: Error when executing statement for table/stored proc. 'IPCSDD_DOWNLOAD_PROCESS' (structure 'StatementName1'): java.sql.SQLException: ORA-00904: "P": invalid identifier
    2010-10-19 22:29:59 Error MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'IPCSDD_DOWNLOAD_PROCESS' (structure 'StatementName1'): java.sql.SQLException: ORA-00904: "P": invalid identifier
    Please find the system information below.
    Oracle version- 10.2.4
    XI version - 3.0/ service pack 19
    JDBC driver- oracle.jdbc.driver.OracleDriver
    Please suggest.
    Thanks,
    Venkata
    Edited by: Venkata Narayana  Eepuri on Oct 21, 2010 12:10 AM

    Dear Venkata Narayana,
    Concerning the error, kindly go through the following note :
    731 - Collective note: ORA-00904
    follow the recommendations mentioned in that and please check if that helps.
    Best Regards
    Nishwanth

  • Search and replace, with pattern matching using a table

    I need to inspect a data stream and standardise a set of codes. I need to
    1. Match any patterns with a dash character and remove the dash and any following characters, eg BN-S -> BN, BN-SH -> BN, ARG-22 -> ARG, etc.
    2. Make a few specific word for word replacements, eg, PAEDSH -> PAED
    This is easy to hard code but can it be done using a table of regex substitutions? Can anyone give a pointer or link to some example code? The couple of regex replacement examples I've found use regex to locate but hard code substitutions.
    Thanks

    You could store all your patterns in a Map. Then iterate over the map inserting the patterns into a regex.

  • RAC with Oracle Linux (Using firewire drive)

    Guys
    Did anyone install RAC (10g or 11g) using Oracle Linux using firewire drive? Does Oracle linux support firewire technology?
    Please share your experience.
    Regards
    PJ

    Start here
    Installing Oracle Database 11g Release 1 on Enterprise Linux 5 (32- and 64-bit)
    http://www.oracle.com/technology/pub/articles/smiley-11gr1-install.html#kernel
    My installation:
    [root@linux3 OCFS2]# uname -a
    Linux linux3 2.6.18-8.el5 #1 SMP Tue Jun 5 23:11:13 EDT 2007 i686 i686 i386 GNU/Linux
    OCFS2
    -rw-r--r-- 1 root root 274826 May 2 17:22 ocfs2-2.6.18-8.el5-1.2.8-2.el5.i686.rpm
    -rw-r--r-- 1 root root 9123303 May 2 17:23 ocfs2-2.6.18-8.el5-debuginfo-1.2.8-2.el5.i686.rpm
    -rw-r--r-- 1 root root 1144294 May 2 17:27 ocfs2-tools-1.2.7-1.el5.i386.rpm
    Others rpms needed in my case after installation
    -rw-r--r-- 1 root root 39297 Jun 7 2007 rsh-server-0.17-37.el5.i386.rpm
    -rw-r--r-- 1 root root 126577 Jun 7 2007 xinetd-2.3.14-10.el5.i386.rpm
    lsmod
    parport 37513 2 lp,parport_pc
    snd_page_alloc 13641 2 snd_intel8x0,snd_pcm
    serio_raw 10693 0
    ohci1394 32964 1
    ieee1394 83252 2 sbp2,ohci1394 <-
    ohci is part of kernel modules !
    ./modules/2.6.18-8.el5/updates/drivers/ieee1394/sbp2.ko
    ext3 123081 1
    jbd 56553 2 ocfs2,ext3
    ehci_hcd 32845 0
    When the driver was loaded succesful looks similar to this, please verify other configuration like serialize_io
    [root@linux3 sysconfig]# dmesg | grep 1394
    ieee1394: no version for "struct_module" found: kernel tainted.
    ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[201] MMIO=[ea125000-ea1257ff] Max Packet=[2048] IR/IT contexts=[4/8]
    ieee1394: The root node is not cycle master capable; selecting a new root node and resetting...
    ieee1394: Node added: ID:BUS[0-00:1023] GUID[0030e002e04546d5]
    ieee1394: Host added: ID:BUS[0-01:1023] GUID[001106664001995a]
    ieee1394: sbp2: Driver forced to serialize I/O (serialize_io=1)
    ieee1394: sbp2: Try serialize_io=0 for better performance
    scsi0 : SBP-2 IEEE-1394
    ieee1394: sbp2: Logged into SBP-2 device
    ieee1394: Node 0-00:1023: Max speed [S400] - Max payload [2048]
    and here we are!
    [root@linux3 etc]# fdisk -l
    Disk /dev/hda: 40.0 GB, 40020664320 bytes
    255 heads, 63 sectors/track, 4865 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Device Boot Start End Blocks Id System
    /dev/hda1 1 1824 14651248+ 83 Linux
    /dev/hda2 * 1959 4699 22017082+ 83 Linux
    /dev/hda3 4700 4865 1333395 82 Linux swap / Solaris
    /dev/hda4 1825 1958 1076355 82 Linux swap / Solaris
    Partition table entries are not in disk order
    Disk /dev/sda: 82.3 GB, 82348277760 bytes <= Firewire Disk
    255 heads, 63 sectors/track, 10011 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Device Boot Start End Blocks Id System
    /dev/sda1 1 5000 40162468+ 83 Linux
    /dev/sda2 5001 6217 9775552+ 83 Linux
    /dev/sda3 6218 7434 9775552+ 83 Linux
    /dev/sda4 7435 10011 20699752+ 83 Linux
    Please let me know if you need more information.
    J

  • How to integrate android application with oracle database using oracle mobile database server.

    Hi,
    I developed one web application using oracle database. I want to implement same web application in android. My problem is how to integrate android application with existing oracle database using oracle database mobile server. Can u please guide me how to install oracle database mobile server and how to integrate android app with existing oracle database..
    Thank you.

    In the Database Mobile Doc set there is an entire book that covers the Installation of Oracle Database Mobile Server.   Chap 4 of that book contains screen shots and all kinds of information that will help guide you through the installation.   We also have a doc on the different mobile clients.  Chap 2 of that guide covers installs and integration of an android app. 
    thanks
    mike

  • Source(oracle 11g) with oracle 8i using db link with full table scan

    Hi,
    I'm using oracle 8i version and i'm facing some issue  while using DBlinks.
    SourceDB1 I'm using oracle 8i(Source)
    select *  from tab1
    tabl where id in
    (select id from stab1@SourceDB1  where updt_seq_num > 167720 and work_grp_id in (2900,2901))
    For this, I could able to retrive the data.
    but, today we have migrated one of our source from oracle 8i to oracle 11G
    when I'm executing
    select *  from tab2
    tabl where id in
    (select id from stab2@SourceDB2  where updt_seq_num > 167720 and work_grp_id in (2900,2901))
    we couldn't able to retrive data as it's scaning full table scan.
    when oracle 8i source it's scanning using INDEX scan but if the source oracle 11 h it's scanning full table scan.
    Could you please advise how to resolve this issue for source oracle 11i ?
    Please let us know, if you need any information.

    Blocks that are read via full table scans are stored in the buffer cache, but putting them at the MRU end ensures that they don't push the rest of the useful blocks out of the buffer cache. In your example, if you're full scanning a 2 GB table (T) with a 500 MB buffer cache, the first block that is read from T is put at the MRU end of the buffer cache, displacing the previous block that was at the MRU end of the cache. The next block that is read from T is also put at the MRU end of the buffer cache, displacing the previous block that was at the MRU end of the cache, so block #2 from T displaces block #1 from T. So, you're reading 2 GB of data, but you're constantly purging the older blocks, so you're only really using that last block of the buffer cache.
    Justin

  • Error importing CSV files with 'hidden' characters using External Table

    Hi Folks
    Bit of a strange one here.
    We're well used to using the External Table method of loading data from CSV files into the database but a recent event has presented us with a problem.
    We have received some CSV files that 'look' like regular CSV files but Oracle will not load them.
    When we examined the CSV file using VIM on a UNIX box we saw the following 'hidden' characters between every regular character in the file.
    ^@So a string that looks like this when opened in Excel/Wordpad etc
    "TEST","TEXT"Looks like this when exmained with VIM
    ^@"^@T^@E^@S^@T^@"^@,^@"^@T^@E^@X^@T^@"Has anyone come across this before?
    Many thanks
    Simon Gadd
    Oracle 11g 11.2.0.1.0

    Hi Simon,
    ^@ represents the NUL character (0x00).
    So, most likely, you've got a Unicode-encoded file.
    You'll have to specify the character set in the record specification (and if necessary the byte order mark), for instance :
    CREATE TABLE ext_table
      col1 VARCHAR2(10),
      col2 VARCHAR2(10)
    ORGANIZATION EXTERNAL
      TYPE ORACLE_LOADER
      DEFAULT DIRECTORY dump_dir
      ACCESS PARAMETERS
       RECORDS DELIMITED BY '
    ' CHARACTERSET 'UTF16'
      FIELDS TERMINATED BY ','
      LOCATION ('dump.csv')
    REJECT LIMIT UNLIMITED;http://download.oracle.com/docs/cd/E11882_01/server.112/e16536/et_params.htm#i1009499

  • Issues with pagination when using Adobe table with Web dynpro for ABAP

    Hi All,
    I am facing strange issue with table text.
    I have three cols in table, one is of type Char255 and other two cols are of type string.
    The text in the col 1 is displayed perfectly but in other two cols of type string whenever we have pagination the text in table is getting truncated and in next page new row starts.
    Could you please tell me the settings that will enable flowing of text in the row of table to next page.
    Thanks,
    Arti.

    Check the properties of the text field you use for those columns (if you want to control it on this level) or check the same attribute for the row subform (one level up control): "allow page break within content".
    Regards Otto
    p.s.: we all have deadlines... and manage to pay something back. Think about it.

  • Wrong value with calculated item in pivot table

    I have a report with 4 columns:
    First Column are Department Dimension
    Second Column is Actual value
    Third Column is Previous value
    Four Column is: ((Actual Value-Previous Value)/Previous Value))*100 that called Var
    Then I do a pivot table and I have new calculated item: Department1/Department2 and I have wrong value in four column:
    Department----------------------------------Actual-------Previous------Var
    Dept1------------------------------------------18503--------16308--------13,5
    Dept2-------------------------------------------3758---------3518----------6,8
    (Calculated Item: Dept1/Dept2)--------4,92---------4,64------------*2* <---- This value is wrong...and it has to be: 6,03
    Is possible to get the correct value???
    Thank you very much!

    hi,
    Create a logical column with ur calculation formula and make it as default agg rule in rpd and answers change it to server determined/server complex agg.I did the same it was working fine for me!!
    Check this link
    http://books.google.com/books?id=OnbYrkWa4RsC&pg=PA74&lpg=PA74&dq=%22server+complex+aggregate%22&source=web&ots=qxrpaFXmo2&sig=CxLOemzcOlvIiaQ_sQD4fPQotdM&hl=en&sa=X&oi=book_result&resnum=5&ct=result#v=onepage&q=%22server%20complex%20aggregate%22&f=false
    thanks,
    saichand

  • Connectivity with  oracle database using web Dynpro(for java)

    Hi,
    In web Dynpro we will connect to SAP systems by using Adaptive RFC.  Then How to connect the oracle 8i/9i using webdynpro? Plese tell me the procedure to establish the connecting using enterprise portal?
    Thanks & Regards,
    Mastanvali Shaik

    Hi,
    Check these:
    WebDynpro and Oracle using DTOs
    https://wiki.sdn.sap.com/wiki/display/VC/JDBCConnectionSetup
    Connecting Problum of SQL
    Greetings,
    Praveen Gudapati
    [Points are welcome for helpful answers]

  • Help with Oracle text using CTX_DOC.SNIPPET

    I used to find the code as follows:
         SELECT ROWIDS,ID,NGAYTAO,NGAYXUATBAN,CHUYENMUC,FULLPATH,NGONNGU,NOIDUNG,TIEUDE
                                       ,(SELECT CTX_DOC.SNIPPET('SEARCH_DNICT_MOTA_IDX',ROWIDS,:tukhoa) FROM DUAL) || '..' ||
                                        (SELECT CTX_DOC.SNIPPET('SEARCH_DNICT_NOIDUNG_IDX',ROWIDS,:tukhoa) FROM DUAL) || '..' ||
                                        (SELECT CTX_DOC.SNIPPET('SEARCH_DNICT_TTHC1_IDX',ROWIDS,:tukhoa) FROM DUAL) || '..' ||
                                        (SELECT CTX_DOC.SNIPPET('SEARCH_DNICT_TTHC2_IDX',ROWIDS,:tukhoa) FROM DUAL) || '..' ||
                                        (SELECT CTX_DOC.SNIPPET('SEARCH_DNICT_TTHC3_IDX',ROWIDS,:tukhoa) FROM DUAL) || '..' ||
                                        (SELECT CTX_DOC.SNIPPET('SEARCH_DNICT_TTHC4_IDX',ROWIDS,:tukhoa) FROM DUAL) || '..' MOTA
                                        FROM SEARCH_DNICT
                                        WHERE (CONTAINS(SEARCH_DNICT.TIEUDE,:tukhoa,1)>0
                                        OR CONTAINS(SEARCH_DNICT.MOTA,:tukhoa,2)>0
                                        OR CONTAINS(SEARCH_DNICT.NOIDUNG,:tukhoa,3)>0
                                        OR CONTAINS(SEARCH_DNICT.TTHC1,:tukhoa,4)>0
                                        OR CONTAINS(SEARCH_DNICT.TTHC2,:tukhoa,5)>0
                                        OR CONTAINS(SEARCH_DNICT.TTHC3,:tukhoa,6)>0
                                        OR CONTAINS(SEARCH_DNICT.TTHC4,:tukhoa,7)>0)- when I following query return 50 documents it takes 10.969 seconds load just for one use. Now my database is not only very little data
    - I find if such search is too slow, I have studied but have not found a way to accelerate your returns faster results like?
    - I want to improve performance query is how?
    - I hope people will help me solve
    Thanks every body!

    Hi,
    what is the plan for this query? I think it is maybe a full scan on the table and it uses not even the indexes. Is it possible to rewrite the query to use union?
    SELECT ROWIDS,ID,NGAYTAO,NGAYXUATBAN,CHUYENMUC,FULLPATH,NGONNGU,NOIDUNG,TIEUDE ,
    (SELECT CTX_DOC.SNIPPET('SEARCH_DNICT_MOTA_IDX',ROWIDS,:tukhoa) FROM DUAL) || '..' ||
    (SELECT CTX_DOC.SNIPPET('SEARCH_DNICT_NOIDUNG_IDX',ROWIDS,:tukhoa) FROM DUAL) || '..' ||
    (SELECT CTX_DOC.SNIPPET('SEARCH_DNICT_TTHC1_IDX',ROWIDS,:tukhoa) FROM DUAL) || '..' ||
    (SELECT CTX_DOC.SNIPPET('SEARCH_DNICT_TTHC2_IDX',ROWIDS,:tukhoa) FROM DUAL) || '..' ||
    (SELECT CTX_DOC.SNIPPET('SEARCH_DNICT_TTHC3_IDX',ROWIDS,:tukhoa) FROM DUAL) || '..' ||
    (SELECT CTX_DOC.SNIPPET('SEARCH_DNICT_TTHC4_IDX',ROWIDS,:tukhoa) FROM DUAL) || '..' MOTA
    FROM
      SELECT ROWIDS,ID,NGAYTAO,NGAYXUATBAN,CHUYENMUC,FULLPATH,NGONNGU,NOIDUNG,TIEUDE
      FROM SEARCH_DNICT
      WHERE CONTAINS(SEARCH_DNICT.TIEUDE,:tukhoa,1)>0
      UNION
      SELECT ROWIDS,ID,NGAYTAO,NGAYXUATBAN,CHUYENMUC,FULLPATH,NGONNGU,NOIDUNG,TIEUDE
      FROM SEARCH_DNICT
      WHERE CONTAINS(SEARCH_DNICT.MOTA,:tukhoa,2)>0
      UNION
      SELECT ROWIDS,ID,NGAYTAO,NGAYXUATBAN,CHUYENMUC,FULLPATH,NGONNGU,NOIDUNG,TIEUDE
      FROM SEARCH_DNICT
      WHERE CONTAINS(SEARCH_DNICT.NOIDUNG,:tukhoa,3)>0
      UNION
      SELECT ROWIDS,ID,NGAYTAO,NGAYXUATBAN,CHUYENMUC,FULLPATH,NGONNGU,NOIDUNG,TIEUDE
      FROM SEARCH_DNICT
      WHERE CONTAINS(SEARCH_DNICT.TTHC1,:tukhoa,4)>0
      UNION
      SELECT ROWIDS,ID,NGAYTAO,NGAYXUATBAN,CHUYENMUC,FULLPATH,NGONNGU,NOIDUNG,TIEUDE
      FROM SEARCH_DNICT
      WHERE CONTAINS(SEARCH_DNICT.TTHC2,:tukhoa,5)>0
      UNION
      SELECT ROWIDS,ID,NGAYTAO,NGAYXUATBAN,CHUYENMUC,FULLPATH,NGONNGU,NOIDUNG,TIEUDE
      FROM SEARCH_DNICT
      WHERE CONTAINS(SEARCH_DNICT.TTHC3,:tukhoa,6)>0
      UNION
      SELECT ROWIDS,ID,NGAYTAO,NGAYXUATBAN,CHUYENMUC,FULLPATH,NGONNGU,NOIDUNG,TIEUDE
      FROM SEARCH_DNICT
      WHERE CONTAINS(SEARCH_DNICT.TTHC4,:tukhoa,7)>0
    ) If above doesn't help, then maybe a combined index on the fields will help. Examples are given in this forum if you search for multi colum index.
    Herald ten Dam
    http://htendam.wordpress.com

  • Oracle jdbc creating a table, sequence and trigger

    I'm trying to create a table with a sequence and with a trigger for that sequence. When I do this within Oracle Express edition I have the following SQL statements. Which DO run correctly inside Oracle Express using the same user I log in with JDBC.
    CREATE table "TEST" (
    "ID" NUMBER(10) NOT NULL,
    "NAME" VARCHAR2(20),
    constraint "TEST_PK" primary key ("ID")
    CREATE sequence "TEST_SEQ"
    CREATE trigger "BI_TEST"
    before insert on "TEST"
    for each row
    begin
    if :NEW."ID" is null then
    select "TEST_SEQ".nextval into :NEW."ID" from dual;
    end if;
    end;
    So now what I do is put each of these into a List of Strings and execute 1 by one like this:
    List<String> commands = new ArrayList<String>(4);
    commands.add("Create table ...");
    commands.add("Create sequence ...");
    commands.add("Create trigger...");
    st = con.createStatement();
    for (String command : commands) {
    st.execute(command);
    etc...
    But I get an error with the trigger statement. "Error with Oracle command: ORA-00942: table or view does not exist"
    It seems to me that Oracle has not yet seen the new table at this point. or maybe my user can create tables but not triggers? If that's the case why did it work in the express application itself?
    TIA

    SproketBoy wrote:
    But I get an error with the trigger statement. "Error with Oracle command: ORA-00942: table or view does not exist"Keep in mind: Oracle is not lying to you.
    >
    It seems to me that Oracle has not yet seen the new table at this point. or maybe my user can create tables but not triggers? If that's the case why did it work in the express application itself?No, DDL commands cause an explicit commit. As soon as you invoke them, the change is permanent. If it was a rights problem, you'd get a different ORA error stating that, it won't silently fail.
    Lets not assume it is anything difficult, perhaps there is simply a typo in a name somewhere?

  • How can we achive active/active cluster setup with Oracle

    Hi Experts,
    How can we achieve active/active database setup with oracle WITHOUT USING RAC.. As far as I know it's impossible (unless I'm wrong)..
    We are using Oracle 11.2.0.1 64bit on Windows 2008 server. We deployed Oracle FailSafe but that's more of an active/passive solution based on a windows cluster.
    The other solution we were thinking about is to use DataGuard and replication.. two servers.. the oracle instance running on one server generating logs, and the other server receive the logs and apply them to the physical standby db.. Still, this is not a real active/active setup.
    So, is it possible to run 2 servers in an active/active cluster and have the oracle database in an active/active setup or have the instance running on multiple nodes (at the same time)?
    Thanks

    Let me give you a brief explanation of what the situation is and you can be the judge..
    My client have four databases with the smallest one being 20GB and the biggest around the 35gb (SGA 750mb to 1.4gb (Tiny by DB standards) and probably on a normal day, you can run all four of them on a decent desktop).. The DBs are used to keep track of people information. Through out the year, the databases are almost sitting idle, and by idle I mean, the odd update here and there, the odd report..etc. No hard real processing of any sort. Two days of the year (end of year) we have all the operators consolidating records and what's not and they will be pounding away entering data and updating the tables - with hourly reports that goes to 3rd parties. The client expects a 99.99 up time and availability during those 2 days.
    Now, tell me, How can I justify using RAC and spending hundreds of thousands of dollars in licensing and what ever extra costs introduced by the complexity of the environment for the above scenario knowing that I don't have any real use for RAC for 363 days of the year; and we MIGHT need it for 2 days of the year? This is the dilemma we're facing.
    Thanks
    Edited by: rsar001 on Sep 3, 2010 9:42 AM

  • IMP-00017: following statement failed with ORACLE error 922

    Hi all,
    I'm trying to import a partitioned table. I'm using the imp utility with ignore=y,
    but I got the error:
    IMP-00017: following statement failed with ORACLE error 922:
    "CREATE TABLE "TAB_EX" ("ID_EX" CHAR(12), "C2" NUM"
    "BER(3, 0), "C3" DATE, "C5" DATE, "C4" NUMBER("
    "8, 2), "C6" NUMBER(5, 0), "C7" NUMBER(6, "
    "0), "C8" NUMBER(6, 0))  PCTFREE 2 PCTUSED 98 INITRANS 1 MAXTRANS 25"
    "5 TABLESPACE "ETMTSD01" NOLOGGING PARALLEL ( DEGREE 4 INSTANCES 1) PARTITIO"
    "N BY RANGE ("DT_ABERTURA" )  SUBPARTITION BY HASH ("ID_ATM" )  SUBPARTITION"
    "S 4 SUBPARTITION TEMPLATE( SUBPARTITION "AB_SUBPART_1" VALUES ()  TABLESPAC"
    "E "ETMTSD03", SUBPARTITION "AB_SUBPART_2" VALUES ()  TABLESPACE "ETMTSD03","
    " SUBPARTITION "AB_SUBPART_3" VALUES ()  TABLESPACE "ETMTSD03", SUBPARTITION"
    " "AB_SUBPART_4" VALUES ()  TABLESPACE "ETMTSD03" ) (PARTITION "AB_PART_BEFO"
    "RE" VALUES LESS THAN (TO_DATE(' 2008-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:"
    "SS', 'NLS_CALENDAR=GREGORIAN'))  PCTFREE 2 PCTUSED 98 INITRANS 1 MAXTRANS 2"
    "55 TABLESPACE "ETMTSD01" LOGGING (SUBPARTITION "AB_PART_BEFORE_AB_SUBPART_1"
    ""  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_BEFORE_AB_SUBPART_2"  TABLE"
    "SPACE "ETMTSD03", SUBPARTITION "AB_PART_BEFORE_AB_SUBPART_3"  TABLESPACE "E"
    "TMTSD03", SUBPARTITION "AB_PART_BEFORE_AB_SUBPART_4"  TABLESPACE "ETMTSD03""
    " ), PARTITION "AB_PART_2008_01" VALUES LESS THAN (TO_DATE(' 2008-02-01 00:0"
    "0:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))  PCTFREE 2 PCTU"
    "SED 98 INITRANS 1 MAXTRANS 255 TABLESPACE "ETMTSD01" LOGGING (SUBPARTITION "
    ""AB_PART_2008_01_AB_SUBPART_1"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PAR"
    "T_2008_01_AB_SUBPART_2"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_"
    "01_AB_SUBPART_3"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_01_AB_S"
    "UBPART_4"  TABLESPACE "ETMTSD03" ), PARTITION "AB_PART_2008_02" VALUES LESS"
    " THAN (TO_DATE(' 2008-03-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALEN"
    "DAR=GREGORIAN'))  PCTFREE 2 PCTUSED 98 INITRANS 1 MAXTRANS 255 TABLESPACE ""
    "ETMTSD01" LOGGING (SUBPARTITION "AB_PART_2008_02_AB_SUBPART_1"  TABLESPACE "So, the rows cannot be imported because this error.
    Why am I getting this error with ignore=y?
    thanks!

    imp userdba fromuser=etmown touser=etmown file=etmown.dmp log=etmown_imp10g.log statistics=none grants=no ignore=Ythe log:
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Export file created by EXPORT:V09.02.00 via conventional path
    Warning: the objects were exported by ETMOWN, not by you
    import done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    . importing ETMOWN's objects into ETMOWN
    IMP-00017: following statement failed with ORACLE error 922:
    "CREATE TABLE "TAB_EX" ("c1" CHAR(12), "c2" NU"
    "MBER(3, 0), "C3" DATE, "C4" DATE, "C5" NUMBER"
    "(8, 2), "C6" NUMBER(5, 0), "C7" NUMBER(6,"
    " 0), "C8" NUMBER(6, 0))  PCTFREE 2 PCTUSED 98 INITRANS 1 MAXTRANS 2"
    "55 TABLESPACE "ETMTSD01" NOLOGGING PARALLEL ( DEGREE 4 INSTANCES 1) PARTITI"
    "ON BY RANGE ("C3" )  SUBPARTITION BY HASH ("C1" )  SUBPARTITIO"
    "NS 4 SUBPARTITION TEMPLATE( SUBPARTITION "AB_SUBPART_1" VALUES ()  TABLESPA"
    "CE "ETMTSD03", SUBPARTITION "AB_SUBPART_2" VALUES ()  TABLESPACE "ETMTSD03""
    ", SUBPARTITION "AB_SUBPART_3" VALUES ()  TABLESPACE "ETMTSD03", SUBPARTITIO"
    "N "AB_SUBPART_4" VALUES ()  TABLESPACE "ETMTSD03" ) (PARTITION "AB_PART_BEF"
    "ORE" VALUES LESS THAN (TO_DATE(' 2008-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI"
    ":SS', 'NLS_CALENDAR=GREGORIAN'))  PCTFREE 2 PCTUSED 98 INITRANS 1 MAXTRANS "
    "255 TABLESPACE "ETMTSD01" LOGGING (SUBPARTITION "AB_PART_BEFORE_AB_SUBPART_"
    "1"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_BEFORE_AB_SUBPART_2"  TABL"
    "ESPACE "ETMTSD03", SUBPARTITION "AB_PART_BEFORE_AB_SUBPART_3"  TABLESPACE ""
    "ETMTSD03", SUBPARTITION "AB_PART_BEFORE_AB_SUBPART_4"  TABLESPACE "ETMTSD03"
    "" ), PARTITION "AB_PART_2008_01" VALUES LESS THAN (TO_DATE(' 2008-02-01 00:"
    "00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))  PCTFREE 2 PCT"
    "USED 98 INITRANS 1 MAXTRANS 255 TABLESPACE "ETMTSD01" LOGGING (SUBPARTITION"
    " "AB_PART_2008_01_AB_SUBPART_1"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PA"
    "RT_2008_01_AB_SUBPART_2"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008"
    "_01_AB_SUBPART_3"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_01_AB_"
    "SUBPART_4"  TABLESPACE "ETMTSD03" ), PARTITION "AB_PART_2008_02" VALUES LES"
    "S THAN (TO_DATE(' 2008-03-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALE"
    "NDAR=GREGORIAN'))  PCTFREE 2 PCTUSED 98 INITRANS 1 MAXTRANS 255 TABLESPACE "
    ""ETMTSD01" LOGGING (SUBPARTITION "AB_PART_2008_02_AB_SUBPART_1"  TABLESPACE"
    " "ETMTSD03", SUBPARTITION "AB_PART_2008_02_AB_SUBPART_2"  TABLESPACE "ETMTS"
    "D03", SUBPARTITION "AB_PART_2008_02_AB_SUBPART_3"  TABLESPACE "ETMTSD03", S"
    "UBPARTITION "AB_PART_2008_02_AB_SUBPART_4"  TABLESPACE "ETMTSD03" ), PARTIT"
    "ION "AB_PART_2008_03" VALUES LESS THAN (TO_DATE(' 2008-04-01 00:00:00', 'SY"
    "YYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))  PCTFREE 2 PCTUSED 98 INI"
    "TRANS 1 MAXTRANS 255 TABLESPACE "ETMTSD01" LOGGING (SUBPARTITION "AB_PART_2"
    "008_03_AB_SUBPART_1"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_03_"
    "AB_SUBPART_2"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_03_AB_SUBP"
    "ART_3"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_03_AB_SUBPART_4" "
    " TABLESPACE "ETMTSD03" ), PARTITION "AB_PART_2008_04" VALUES LESS THAN (TO_"
    "DATE(' 2008-05-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGOR"
    "IAN'))  PCTFREE 2 PCTUSED 98 INITRANS 1 MAXTRANS 255 TABLESPACE "ETMTSD01" "
    "LOGGING (SUBPARTITION "AB_PART_2008_04_AB_SUBPART_1"  TABLESPACE "ETMTSD03""
    ", SUBPARTITION "AB_PART_2008_04_AB_SUBPART_2"  TABLESPACE "ETMTSD03", SUBPA"
    "RTITION "AB_PART_2008_04_AB_SUBPART_3"  TABLESPACE "ETMTSD03", SUBPARTITION"
    " "AB_PART_2008_04_AB_SUBPART_4"  TABLESPACE "ETMTSD03" ), PARTITION "AB_PAR"
    "T_2008_05" VALUES LESS THAN (TO_DATE(' 2008-06-01 00:00:00', 'SYYYY-MM-DD H"
    "H24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))  PCTFREE 2 PCTUSED 98 INITRANS 1 MAX"
    "TRANS 255 TABLESPACE "ETMTSD01" LOGGING (SUBPARTITION "AB_PART_2008_05_AB_S"
    "UBPART_1"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_05_AB_SUBPART_"
    "2"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_05_AB_SUBPART_3"  TAB"
    "LESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_05_AB_SUBPART_4"  TABLESPACE"
    " "ETMTSD03" ), PARTITION "AB_PART_2008_06" VALUES LESS THAN (TO_DATE(' 2008"
    "-07-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))  PCT"
    "FREE 2 PCTUSED 98 INITRANS 1 MAXTRANS 255 TABLESPACE "ETMTSD01" LOGGING (SU"
    "BPARTITION "AB_PART_2008_06_AB_SUBPART_1"  TABLESPACE "ETMTSD03", SUBPARTIT"
    "ION "AB_PART_2008_06_AB_SUBPART_2"  TABLESPACE "ETMTSD03", SUBPARTITION "AB"
    "_PART_2008_06_AB_SUBPART_3"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2"
    "008_06_AB_SUBPART_4"  TABLESPACE "ETMTSD03" ), PARTITION "AB_PART_2008_07" "
    "VALUES LESS THAN (TO_DATE(' 2008-08-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS',"
    " 'NLS_CALENDAR=GREGORIAN'))  PCTFREE 2 PCTUSED 98 INITRANS 1 MAXTRANS 255 T"
    "ABLESPACE "ETMTSD01" LOGGING (SUBPARTITION "AB_PART_2008_07_AB_SUBPART_1"  "
    "TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_07_AB_SUBPART_2"  TABLESP"
    "ACE "ETMTSD03", SUBPARTITION "AB_PART_2008_07_AB_SUBPART_3"  TABLESPACE "ET"
    "MTSD03", SUBPARTITION "AB_PART_2008_07_AB_SUBPART_4"  TABLESPACE "ETMTSD03""
    " ), PARTITION "AB_PART_2008_08" VALUES LESS THAN (TO_DATE(' 2008-09-01 00:0"
    "0:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))  PCTFREE 2 PCTU"
    "SED 98 INITRANS 1 MAXTRANS 255 TABLESPACE "ETMTSD01" LOGGING (SUBPARTITION "
    ""AB_PART_2008_08_AB_SUBPART_1"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PAR"
    "T_2008_08_AB_SUBPART_2"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_"
    "08_AB_SUBPART_3"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_08_AB_S"
    "UBPART_4"  TABLESPACE "ETMTSD03" ), PARTITION "AB_PART_2008_09" VALUES LESS"
    " THAN (TO_DATE(' 2008-10-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALEN"
    "DAR=GREGORIAN'))  PCTFREE 2 PCTUSED 98 INITRANS 1 MAXTRANS 255 TABLESPACE ""
    "ETMTSD01" LOGGING (SUBPARTITION "AB_PART_2008_09_AB_SUBPART_1"  TABLESPACE "
    ""ETMTSD03", SUBPARTITION "AB_PART_2008_09_AB_SUBPART_2"  TABLESPACE "ETMTSD"
    "03", SUBPARTITION "AB_PART_2008_09_AB_SUBPART_3"  TABLESPACE "ETMTSD03", SU"
    "BPARTITION "AB_PART_2008_09_AB_SUBPART_4"  TABLESPACE "ETMTSD03" ), PARTITI"
    "ON "AB_PART_2008_10" VALUES LESS THAN (TO_DATE(' 2008-11-01 00:00:00', 'SYY"
    "YY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))  PCTFREE 2 PCTUSED 98 INIT"
    "RANS 1 MAXTRANS 255 TABLESPACE "ETMTSD01" LOGGING (SUBPARTITION "AB_PART_20"
    "08_10_AB_SUBPART_1"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_10_A"
    "B_SUBPART_2"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_10_AB_SUBPA"
    "RT_3"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_10_AB_SUBPART_4"  "
    "TABLESPACE "ETMTSD03" ), PARTITION "AB_PART_2008_11" VALUES LESS THAN (TO_D"
    "ATE(' 2008-12-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORI"
    "AN'))  PCTFREE 2 PCTUSED 98 INITRANS 1 MAXTRANS 255 TABLESPACE "ETMTSD01" L"
    "OGGING (SUBPARTITION "AB_PART_2008_11_AB_SUBPART_1"  TABLESPACE "ETMTSD03","
    " SUBPARTITION "AB_PART_2008_11_AB_SUBPART_2"  TABLESPACE "ETMTSD03", SUBPAR"
    "TITION "AB_PART_2008_11_AB_SUBPART_3"  TABLESPACE "ETMTSD03", SUBPARTITION "
    ""AB_PART_2008_11_AB_SUBPART_4"  TABLESPACE "ETMTSD03" ), PARTITION "AB_PART"
    "_2008_12" VALUES LESS THAN (TO_DATE(' 2009-01-01 00:00:00', 'SYYYY-MM-DD HH"
    "24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))  PCTFREE 2 PCTUSED 98 INITRANS 1 MAXT"
    "RANS 255 TABLESPACE "ETMTSD01" LOGGING (SUBPARTITION "AB_PART_2008_12_AB_SU"
    "BPART_1"  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_12_AB_SUBPART_2"
    ""  TABLESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_12_AB_SUBPART_3"  TABL"
    "ESPACE "ETMTSD03", SUBPARTITION "AB_PART_2008_12_AB_SUBPART_4"  TABLESPACE "
    ""ETMTSD03" ) )"
    IMP-00003: ORACLE error 922 encountered
    ORA-00922: missing or invalid option
    Import terminated successfully with warnings.thank u very much! :-)
    Edited by: [email protected] on Sep 12, 2008 3:11 PM

Maybe you are looking for

  • How to develope application with multiple schema

    Hi, In my application, there is 3 schema, forms are from different schema, but the database is one. How should I manage it, When i open the form with different schema I am not getting the expected result, I am using Oracle 10g Forms & Database Thanks

  • How to enter a Private key into a keystore

    Hi, We have a propriteary CA, developed by us. I need to use this CA for my Signed Applet. I would enter this CA's public key(a X509 certificate) into my cacerts file. Following is what I have done : 1) I have generated my own keystore, public and pr

  • Cant create placeholder

    Hello everybody, when I try to add a placeholder I get following error message: While I tried to add a placeholder with serialnumber e.g. CK05000JD5G I get following messages in the Logs: I tried this between 16:50 - 16:53 Server 3.1.2 PostgreSQL-201

  • DVD-R burn error "medium write error"

    Just received a refurbished iMac today. Doing a basic Disc Copy from Disk Utility and burn one disc OK. The second disc ejects half way through burn and "medium write error" pops up. All the disc I pull out are blazing hot as well. I don't know if th

  • Usage of Date field

    Hi, We have ERDAT date field in MM.We are able to create a report using ERDAT filed,Material, Material Group and Purchase Order value.But we need to generate the same report with month wise and year wise also. 1)By using the Date field how can we  ag