Question about Oracle sequences

Please let me know if this question is not the subject of this forum and advise which forum I should post it. Thank you.

We have a database 10g running on the AIX servers. A process of data loading was recently, and the development team is of the opinion that the question can be corrupted in the database sequence. This sequence is used to generate a unique primary key for writing in a table.

Are there problems with 10g about the objects sequence database becomes corrupted? If so, is there a Metalink note published on a fix?

Thank you all for a light on this topic.

Hello

Interview the max value of your column of tabale, in order to know the populeted of the maximum value of the sequence, compare it your currval in the sequence, and the maximum value for the column. If the values are not the same and the currval is lower than the max value, you will probably have the constraint violation, then increment the value of your sequence curr.

Concerning

Tags: Database

Similar Questions

  • question about stacked sequence

    Hello

    I have a question about stacked sequence.

    I have a stacked with 5 sequences sequence (0,..., 4). I would like to run these as this form

    0, 1, 2, 1, 3, 1, 4, 1 then again 0...

    I don't want to duplicate the section 1 because it contains many objects, variable... One possibility would be to out objects and then duplicate the sequence and use of shift registers, but I don't want to use because in 1, I have some graphs in real time to draw...

    Will there be another (easy) way to do this?

    Thanks for the ideas,

    Concerning

    Why use a stacked sequence?  What you want is a state machine something like this

  • Question about Oracle schema E/R database dictionary

    Hello

    As we know, the dictionary in an Oracle database is a fairly large beast. I was wondering if there was an ERD of the tables/views most commonly used or available useful. That would make familiar you with the dictionary quite a little easier.

    I've been Googling for such a scheme, but without success.

    The question is: does anyone know where such a diagram might be available? If Yes, where?

    Thank you for your help,

    John.

    Are you talking about view DBA_xxx (DBA_TABLES, DBA_USERS, etc.) or V$? If you're talkink about DBA_xxx views, please google with "poster oracle dictionary '..."

    Edited by: P. Forstmann on Sept. 5. 2010 18:57

  • Question about oracle objects

    Hi people

    I came across the below example on the oracle documentation.

    I'm not quite sure why "emp is NULL #2' always get printed even if the Member attribute is assigned a value that should be non-NULL and" ""emp is NULL #3"isn't even after printing has been assigned to the object with a NULL value."

    Can one of you you please explain about it. or give the overview of the conditions of the NULLable object. Thank you!!

    DECLARE

    EMP employee_typ; -emp is atomically null

    BEGIN

    If emp IS NOTHING THEN DBMS_OUTPUT. Put_line ("emp is NULL #1"); END IF;

    IF emp.employee_id IS NULL THEN

    DBMS_OUTPUT. Put_line ("emp.employee_id is NULL #1");

    END IF;

    EMP.employee_id: = 330;

    If emp IS NOTHING THEN DBMS_OUTPUT. Put_line ("emp is NULL #2"); END IF;

    IF emp.employee_id IS NULL THEN

    DBMS_OUTPUT. Put_line ("emp.employee_id is NULL #2");

    END IF;

    EMP: = employee_typ (NULL, NULL, NULL, NULL,

    NULL, NULL, NULL, NULL, NULL, NULL, NULL,

    address_typ (NULL, NULL, NULL, NULL));

    -emp: = NULL; -It would have made the following statement of the TRUE IF

    If emp IS NOTHING THEN DBMS_OUTPUT. Put_line ("emp is NULL #3"); END IF;

    IF emp.employee_id IS NULL THEN

    DBMS_OUTPUT. Put_line ("emp.employee_id is NULL #3");

    END IF;

    EXCEPTION

    WHEN ACCESS_INTO_NULL THEN

    DBMS_OUTPUT. Put_line ('impossible to assign object NULL value');

    END;

    /

    The result is:


    EMP is NULL #1
    EMP.employee_id is NULL #1
    EMP is NULL #2
    EMP.employee_id is NULL #3

    I came across the below example on the oracle documentation.

    I'm not very sure why 'emp is NULL #2' always get printed even if the Member attribute is assigned a value that should be non-NULL and ' emp is NULL #3 "is not get printed even though the object is assigned to null."

    Can one of you you please explain about it. or give the overview of the conditions of the NULLable object.

    Have you actually tried this example? Why not?

    The best and often faster, learn is to DO - not just read.

    If you tried this example, you would see that you have been "bitten" by a documentation bug.

    EMP.employee_id: = 330;

    That the line of code won't work - it will trigger an exception is the output you get really

    PEM is NULL #1

    EMP.employee_id is NULL #1

    Can't assign value to the NULL object

    PL/SQL procedure successfully completed.

    SQL >

    The 'emp' instance has the value NULL as shows it the first message. If you cannot assign the 330 value him.

    For others, the example seems to be the Oracle documentation

    http://docs.Oracle.com/CD/B19306_01/AppDev.102/b14261/objects.htm#CIHEJIBA

  • Question about new sequence

    My question is this. What can I do my sequence when I first pull up from PP. My video is stored in mpeg-2 (.mpg)

    PLEASE NOTE that the PPro CS6 screen may be a little different

    For CS5 and later versions, the easy way to ensure that your video and your project

    See 2nd post for the photo of a NEW ELEMENT of process http://forums.adobe.com/thread/872666

  • Technical questions about Oracle Linux

    What is the ideal RAM should I assign to my virtual machine to run Oracle 12 c for personal use.

    Personal use - convenient, cloning, backup of the database. Recovery of database of .dbf file. Sqldeveloper execution. Thanks in advance.

    I did it with 2 GB of RAM dedicated to the virtual machine. If you host only has 4 GB of RAM, so you may not be able to run many other in the VM host upward.

    That being said, I have usually at least 8 GB of RAM on my laptop work/computers positions of our days, if not more. With 8GB, I can create a 4 GB VM and have a better experience.

    See you soon,.
    Brian

  • Questions about oracle advanced concepts

    All,

    Database version: 11.2.0.3

    How can we identify if my database using GG (Golden Gate), ADG (Active Data Guard), TDE (Transparent Data Encryption), advanced security option?

    Are there tables to display these details?

    Thank you

    A lot of information characteristic use is available in the http://docs.oracle.com/cd/E11882_01/server.112/e25513/statviews_3181.htm#I1023396 views DBA_FEATURE_USAGE_STATISTICS
    Some features are available, but require to pay for a license if you use them, so check with your DBA before being the first to use one, or it could cost a lot of money.
    Same V$ OPTION lists the options that are installed, but they could not be approved.

    Oracle Enterprise Manager displays DBA_FEATURE_USAGE_STATISTICS information on the server 'Use of database feature see' page.

    For example
    Select Name, version, Detected_usages of DBA_FEATURE_USAGE_STATISTICS

    where upper(name) like '%GOLDEN%' or upper(name) like '%ACTIVE%'
    or upper(name) like '%TRANSPARENT DATA%' or upper(name) like '%SECURITY%'
    
    NAME                                                             VERSION           DETECTED_USAGES
    ---------------------------------------------------------------- ----------------- ---------------
    Active Data Guard - Real-Time Query on Physical Standby          11.2.0.3.0                      0
    GoldenGate                                                       11.2.0.3.0                      0
    Transparent Gateway                                              11.2.0.3.0                      0
    Transparent Data Encryption                                      11.2.0.3.0                      0
    Label Security                                                   11.2.0.3.0                      0
    
    select parameter, value from v$option
    where upper(parameter) like '%GOLDEN%' or upper(parameter) like '%ACTIVE%'
    or upper(parameter) like '%TRANSPARENT DATA%' or upper(parameter) like '%SECURITY%';
    
    PARAMETER                                                        VALUE
    ---------------------------------------------------------------- ----------------------------------------------------------------
    Enterprise User Security                                         TRUE
    Oracle Label Security                                            FALSE
    Transparent Data Encryption                                      TRUE
    Active Data Guard                                                TRUE
    

    Do not trust with value = TRUE in the parameter $ v as meaning that you can use a feature - you might not be allowed - but if it's WRONG you certainly cannot.

  • Question about Oracle identity analytics

    Hello

    Is it possible in Oracle identity analytics (version 11.1.1.3.0) to compare the datas in OIA and data in LDAP for example?

    The goal is to see the differences between this 2 databases for roles and strategies.

    If possible, can you tell me how to make that comparison?

    Thanks for your help...

    I think not - OIA with no agents / connectors. What you can be able to model the data in the LDAP protocol as a resource in OIA and run a report against that?

  • Question about oracle.jbo.Row

    Hi all!
    I have a ResultSet (for example ResultSet rs) with the result of a query. Now, I need fill out a line of ResultSet data line object (for example line rw).
    I've invoked rs.next () method, but how can I assign these values to the rw?
    Thank you for your time and your answers.
    JDeveloper version 11.1.2.2.0

    Best regards, Stanislav

    Stanislav,

    Why do you want to get the data into a line object, if you do not have a VO? That is to say, what you're going to do with the line object that you build from the updated result? Can you explain your usecase?

    Arun-

  • question about Oracle answers / Business Model

    Hello

    In a table of 'Projects', one of the attributes is work_time.
    I need to create a report in similar responses with a bellows:

    Working time | County
    1 - 10 days | 10
    11-20 days | 100
    ...................

    Can it be fixed when creating the repository? Or in the answers?
    I can solve it side DB, but maybe there is a way to do in BI...

    Thank you!

    Hello

    You can use

    cast(truncate(("Projects.work_time"-1)/10,0) * 10 as char) || ' - ' || cast(truncate(("Projects.work_time"+9)/10,0) * 10 as char) || ' days'
    

    Concerning
    Nicolae

  • Question about Oracle Query Builder

    Hi all

    I'm under Query Builder Version 6.0.7.1.0 to execute a SQL statement. He returned 19200 lines. When I try to export data in the CSV file, it exports only 19000 lines and gives the following error:

    OBE-15502: can have only 19000 lines per document

    Anyone know the cause of the error above? This is a limitation of the export of the query designer or I have some problems of configuration?

    Thank you
    Zahid

    I know the 16000 (not 19000) limit and this limit is coded hard and cannot be changed.

    Werner

  • Question about the Oracle database resource management

    Good evening
    I have a question about Oracle database Resource Management (DRM) for Oracle Database 10 g. I had an incident which, in a development/UAT environment (different instances, same box, don't ask), a developer wrote a wrong SQL statement that consumed 99% of the CPU. Currently, there is no limit of resources on two cases of db, and the developers don't want limits. However, my manager wants a method to prevent something like this does not happen. If I use the Oracle database resources management, create a consumer group (called "DevEnv") at 40% CPU usage, what will happen if a user of DevEnv runs a bad SQL statement that normally consumes 90% CPU again? Anyone would take a different approach? Thank you.

    Sincerely,
    Sho Fukamachi

    782718 wrote:
    If users in the case of "db_uat" use 60% CPU would be users who belongs to DevEnv pending 'db_test' cannot be used more than 40% CPU, so their queries become slower at their end? I would like to know if this behavior works the same in an environment of multiple instances. Thank you.

    Yes, because the available processor would be 40%, they use more, while.

  • A question about the license of Oracle 1 g R2 Enterprise Edition

    Hi all


    I have a question about Oracle license and I would be grateful if you could help me thanks.

    I installed an Oracle (11g R2 Enterprise edition) server on a virtual linux machine. The pc being used for this purpose
    is my cell phone company (so a professional and not a personal computer). However, I use this Oracle Server
    only for the purpose, i.e. learning only to run the examples in my Oracle Press books (SQL, PL/SQL and some)
    administrative tasks) just to learn things.

    There is absolutely no data related to my business, stored or used on this server. Whenever I want to work with my
    data of the company, I use the Oracle server of the company that has the appropriate license of course. So, as I said, I
    Use this server of the company on the virtual machine only to run applications/programs in my Oracle Press books just for
    learning and I'm the only person who uses this server (no remote for other users).

    The reason why I needed to install this server on my PC, is that our DBA could not provide a training environment
    for me, with all the privileges and features.


    Should I buy a license for this Enterprise Server installed on my virtual machine?


    Thanks in advance,
    Dariyoosh

    The OTN license agreement:

    >
    LICENSE RIGHTS
    We grant an exclusive, non-transferable, limited license to use the programs only for the purpose of developing, testing, prototyping and demonstrating your application and not for other purposes. If you use the application you develop in this licence for any internal or for any commercial or purposes data processing production, or you want to use the programs for purposes other that those permitted under this agreement, you must get a production version of the program by contacting us or a reseller of Oracle to obtain the appropriate license. You acknowledge that we may not produce a production version of the programme and the development efforts undertaken by you at your own risk. We can check your use of the programs. Program documentation, if any, may be consulted online at http://otn.oracle.com/docs.

    Ownership and Restrictions all retain us the property and rights of intellectual property in the programs. Programs can be installed on a single computer only and worn by one person in the operating environment identified by us. You can make a copy of the program for backup purposes.

    You can not:
    -Use programs for your own internal data processing or for commercial or production purposes, or programs for any purpose except the development of your application.
    -use the applications you develop with programs for any internal data processing or commercial or production without obtaining an adequate license from us;
    -continue to develop your application after using for any treatment data internal, commercial or production end without obtaining an adequate license from us, or Oracle reseller;
    -remove or change any brand of program or a statement of property rights;
    -put the programs available in any manner to a third party;
    -Use programs to provide a third of training;
    -assign this contract or give or transfer the programs or interest to them to another person or entity; -cause or permit engineering reverse (unless required by law for interoperability), disassembly or decompilation of the programs;
    -disclose the results of benchmark tests of any program without our prior written consent.

  • I have a question about the functionality of Oracle Identity Manager...?

    Hi friends
    I have a question about the features of Oracle Identity Manager.
    Here's my question:
    Self-management is possible network passwords (reset / unlock) with Oracle Identity Manager 9.1.0.2

    Very grateful.

    What Kevin suggested this means that you are managing accounts and their password by IOM. If your condition is the same then follow:

    Re: error during password reset using the self-service portal

  • Question about mismanagement of the effects in the construction of sequence

    Hi all

    I read the BPEL 2.0 document and met a question about management failures and the normal flow of control in the < sequence > construction.

    For example, in the following code fragment:

    <>sequence
    < call...
    < catch faultName = gt; a.
    < / call >
    < receive... >
    < / sequence >

    If fault one is taken and processed by error handler, when the fault handling ends at will are receive > activity start or jumped?

    According to the document: < receive > will begin when < call > complements, but the 'complete' includes the 'ends in vain", (i.e. a fault is stuck inside the < call > and dealt with)?

    Hope you can help me and thank you very much.

    Published by: user8301699 on April 9, 2009 19:04

    Hello

    You have reason, 'full' includes the 'ends in vain", (i.e. a fault is taken inside the and treated).

    Hope this answers your Q.

    See you soon
    Rémy Pucha

Maybe you are looking for

  • Someone had experience with MS Office 2016 and El Capitan?

    I was wondering if anyone has used Microsoft Office 2016 for Mac with OS 10.11.5 for awhile, especially Word? I just finished setting up a new of the retina end 2015 13 "Macbook Pro.  I used Office 2004 and 2008 on my old Macbook (early 2006, OS 10.6

  • Graphics card upgrade

    I have a HP ENVY Phoenix h9-1335 desktop PC and I was wondering if it would deal with a GeForce GTX760 or if I should upgrade my diet as well as the graphics card

  • CD/DVD driver damaged or missing. How to get the new driver?

    After working well for 3 months my CD/DVD drive does not show in my computer.  It appears in Device Manager.  Display properties Drive watch Code 39 driver damaged or missing.  Try to update driver says driver is installed and up-to-date. Said driver

  • Reverse the VPN

    Experts, I am currently implementing devices in Secureworks Dell and they told me that the unit of the Inspector establishes a reverse VPN. Out of curiosity, what is a VPN reverse? What impact does that have on my 5515 ASA - X from a point of view of

  • Confusion of Windows Update lists 115 available updates and my update list installed

    After the necessary at the beginning to W8 update, why MS update screen say I've never updated my computer, lists 115 available updates and my list update installed (by the bottom of the list available) shows many updates successfully, some of which