How to generate oracle sequence using Database Designer Transformer

I created Entity Relationship Diagram.I can generate Table relavant to that every entity.(using Database Design Transformer).Normaly the Database Design Transformer tries to find a suitable unique key that can be used as the primary key. If it cannot find one, it creates a surrogate primary key.it create sequence for that surrogate key.But I didn't want that.I want generate sequence only the attribute that have primary key.how can i do

So a digital pulse??

Similar Messages

  • How to prevent Oracle from using an index when joining two tables ...

    How to prevent Oracle from using an index when joining two tables to get an inline view which is used in an update statement?
    O.K. I think I have to explain what I mean:
    When joining two tables which have many entries sometimes it es better not to use an index on the column used as join criteria.
    I have two tables: table A and table B.
    Table A has 4.000.000 entries and table B has 700.000 entries.
    I have a join of both tables with a numeric column as join criteria.
    There is an index on this column in table A.
    So I instead of
      where (A.col = B.col)I want to use
      where (A.col+0 = B.col)in order to prevent Oracle from using the index.
    When I use the join in a select statement it works.
    But when I use the join as inline view in an update statement I get the error ORA-01779.
    When I remove the "+0" the update statement works. (The column col is unique in table B).
    Any ideas why this happens?
    Thank you very much in advance for any help.
    Regards Hartmut

    I think you should post an properly formatted explain plan output using DBMS_XPLAN.DISPLAY including the "Predicate Information" section below the plan to provide more details regarding your query resp. update statement. Please use the \[code\] and \[code\] tags to enhance readability of the output provided:
    In SQL*Plus:
    SET LINESIZE 130
    EXPLAIN PLAN FOR <your statement>;
    SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY);Usually if you're using the CBO (cost based optimizer) and have reasonable statistics gathered on the database objects used the optimizer should be able to determine if it is better to use the existing index or not.
    Things look different if you don't have statistics, you have outdated/wrong statistics or deliberately still use the RBO (rule based optimizer). In this case you would have to use other means to prevent the index usage, the most obvious would be the already mentioned NO_INDEX or FULL hint.
    But I strongly recommend to check in first place why the optimizer apparently seems to choose an inappropriate index access path.
    Regards,
    Randolf
    Oracle related stuff:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle:
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • How to generate addm report using grid

    Hi,
    how to generate addm report using grid, please provide any relevant doc/links etc.
    Thanks in advance.

    how to generate addm report using grid, please provide any relevant doc/links etc.When you start with the wrong question, no matter how good an answer you get, it won't matter very much.
    what is best way to divide board into 2 pieces using a hammer?
    Edited by: sb92075 on Oct 25, 2010 7:22 AM

  • How to generate multiple sheets using xml publisher

    Hi,
    how to generate multiple sheets using xml publisher.
    Thanks,
    Nur

    http://lmgtfy.com/?q=how+to+generate+multiple+sheets+using+xml+publisher

  • How to generate Webservices.xml using tool in Sun One App Server?

    How to generate Webservices.xml using tool in Sun One App Server?

    Hi,
    The build.xml file should be in a directory from where
    you are running the asant command.
    To resolve the common.xml file not found error,
    open your build.xml and check from which location the common.xml file is incuded.
    In the sample application it is four directories above
    the directory where build.xml is located.
    You can copy the common.xml in the current directory and then change the following in your build.xml
    <!ENTITY include SYSTEM "../../../../common.xml">
    to <!ENTITY include SYSTEM "common.xml">
    Hope this helps.
    Get back in case you have more issues

  • How to generate pwm pulse using NI DAQ in MATLAB

    hi everyone. please tell me how to generate pwm pulses using Ni DAQ card in MATLAB Simulink. if through coding is possible then post the corresponding code.....reply me 

    Make sure you have installed the Measurement studio support for VB 6.0 then you will be able to find examples in the folder below on win7 and 8.
    C:\Users\Public\Documents\National Instruments\NI-DAQ\Examples
    Narrow down to Analog Output and choose update voltage example for measurement studio.
    You also have the possibility to use DAQ assistant if you have measurement studio installed. This function is a configuration type programming. After going through the configuration Wizard code is automatically scripted for you so that you can output the voltage you need. Read more about DAQ assistant in the blow link.
    http://www.ni.com/white-paper/4652/en/
    Best Regards
    Jonas Mäki
    Applications Engineering
    National Instruments

  • How to connect Oracle 7.x database using weblogic 11g

    Hi,
    For one of my requirement, I need to connect to a Oracle 7.x database using weblogic 11g Application server.
    Any idea?

    Tried as per the suggestion from the link :
    http://jvzoggel.wordpress.com/2011/07/26/weblogic-ojdbc-driver/
    It worked.

  • Generate alphanumeric sequence using oracle sequence

    Hi,
    Can we generate alphanumeric sequence from Oracle sequence.
    Sequence would be something like this. Please advice
    TEMP-0001
    TEMP-0002
    TEMP-0010
    Thanks,
    Lak

    hi,
    You can try below procedure...
    SQL> create sequence sec
      2  minvalue 0
      3  start with 001
      4  increment by 1
      5  nocache;
    Sequence created.
    SQL> select 'temp-'||to_char(sec.nextval) from dual;
    'TEMP-'||TO_CHAR(SEC.NEXTVAL)
    temp-1

  • How to create a sequence using Toplink for DUAL table

    Hi All,
    How do I create below sequence using TOPLINK
    CREATE sequence my_seq start WITH 1;
    Regards,
    Dheeraj

    Hi Dheeraj,
    Sequence Object should be created in Database and specify the type of sequence that will be used in toplink to create sequence value.For example,sequence objects created in database needs to be configured using Native Sequence.
    For more information refer to the below link.Use JDeveloper Toplink Wizards for declarative programming of Toplink native Sequencing.
    http://www.oracle.com/technology/products/ias/toplink/doc/1013/main/_html/reldscfg003.htm.
    Regards,
    P.Vinay Kumar

  • How to generate PN sequence?

    Thank you in advance.
    Now I'm converting Matlab codes into a LabVIEW code. While doing it, I don't know how to generate a PN sequence that I generated on Matlab using 'commsrc.pn' or 'seqgen.pn' function. I searched some threads, and found out that the Binary MLS VI can generate it, but I'm not sure it will generate the same sequence or not. Can anyone help me with this?

    Does the PN sequence need to follow a particular distribution or constrain?  
    Kudos and Accepted as Solution are welcome!

  • How to find Oracle is using swap space or not?

    Hi,
    I have a SuSe Linux database server on which 2 Oracle 10g databases and one MySQL server is running.
    I can see a very little swap space is being used in the server while there is almost 100% RAM utlization.
    I want to know if my Oracle databases are using swap or not. If it is using, how much of swap being used currently by each Oracle database?
    Can someone please guide me on how to do that?
    Thanks in advance for your help.
    Regards,
    Murali Mohan

    I did "vmstat 1 10" and here is the output.
    What I want to know how much swap space is used by each of my oracle database while the below output is for total swap usage
    procs -----------memory---------- ---swap-- -----io---- system ----cpu----
    r b swpd free buff cache si so bi bo in cs us sy id wa
    0 0 2366860 36996 81660 9458664 67 44 4160 356 9 13 5 3 82 9
    0 0 2366860 38224 81748 9458576 0 0 0 512 1041 369 0 0 99 1
    1 0 2366860 38224 81748 9458576 0 0 4 80 1053 293 6 0 93 0
    2 0 2366860 38224 81752 9458572 0 0 80 40 1467 956 22 7 70 1
    2 1 2366860 38248 81760 9458564 0 0 0 580 1150 444 32 17 50 1
    1 1 2366860 38124 81808 9458516 0 0 360 1040 1672 1158 28 13 51 8
    2 0 2366860 38124 81832 9458492 0 0 84 288 1380 931 33 10 57 1
    2 0 2366860 36596 81884 9458388 52 0 52 4088 1098 475 36 16 46 1
    2 0 2366860 38188 81916 9458356 0 0 144 1096 1251 570 36 12 49 2
    2 0 2366860 38180 81916 9458356 0 0 68 136 1595 1134 28 9 63 1

  • How to generate random sequence numbers

    Hello experts
    Iu2019m writing a custom program and pulling data from VBAK & VBAP. As per requirement I also need to generate a sequence number randomly and finally store all data in text file and upload at server. The hiccup is I donu2019t know how to generate sequence numbers. Can somebody please show me how I can accomplish it?
    Thanks a lot in advance

    Find the below code,
      data: lv_range type datatype-char0128.
      call function 'RANDOM_C'
        exporting
          len_min   = 20
          len_max   = 20
          char_min  = 1
          char_max  = 20
        importing
          rnd_value = lv_range.
    LV_RANGE param will have a random value..
    If you need number you can use the FM "RANDOM_I4"
    Thanks,
    Prathap

  • How to tell Oracle to use spindles efficiently?

    I am creating an Oracle database on a server that has multiple disks and is running a RAID set. How do I tell Oracle to use all the disk spindles efficently by striping the data across all disks on the server?
    Thank you!

    I'm not using 8.0.5 anymore; I'm using 8.1.7, so I can't test
    any theories on what will work in 8.0.5, but I believe I
    remember that the "PRAGMA RESTRICT_REFERENCES (WNDS);" was only
    required for packaged functions. Can you compile your function
    all by itself, outside of the package, and just call it from
    some procedure within the package? I think that would eliminate
    the conflict between WNDS and DBMS_SQL.PARSE. I did a little
    testing and the following seemed to work:
    CREATE OR REPLACE FUNCTION GetMaxNum
      (nTable IN VARCHAR2,
       year   IN NUMBER)
      RETURN     NUMBER
    IS
      cid        INTEGER;
      rows       INTEGER;
      n          NUMBER (6);
    BEGIN
      cid := DBMS_SQL.OPEN_CURSOR;
      DBMS_SQL.PARSE (cid,
          'SELECT    MAX (numero)'
      || ' FROM ' || nTable
      || ' WHERE     TO_NUMBER(TO_CHAR(date_,''YYYY''))='
                  || year,
      DBMS_SQL.NATIVE);
      DBMS_SQL.DEFINE_COLUMN (cid, 1, n);
      rows := DBMS_SQL.EXECUTE_AND_FETCH (cid, FALSE);
      IF rows > 0
      THEN
        DBMS_SQL.COLUMN_VALUE (cid, 1, n);
      ELSE
        n := 0;
      END IF;
      DBMS_SQL.CLOSE_CURSOR (cid);
      RETURN n;
    EXCEPTION
      WHEN OTHERS THEN
        DBMS_SQL.CLOSE_CURSOR (cid);
      RAISE;
    END GetMaxNum;
    CREATE OR REPLACE PACKAGE GetMaxNumber_pkg
    AS
      PROCEDURE GetMaxNumber
        (nTable IN VARCHAR2,
         year   IN NUMBER);
    END GetMaxNumber_pkg;
    CREATE OR REPLACE PACKAGE BODY GetMaxNumber_pkg
    AS
      PROCEDURE GetMaxNumber
        (nTable IN VARCHAR2,
         year   IN NUMBER)
      IS
        n          NUMBER (6);
      BEGIN
        SELECT GetMaxNum (nTable, year)
        INTO   n
        FROM   dual;
      END GetMaxNumber;
    END GetMaxNumber_pkg;

  • How to generate localized chars using code point in Solaris 10?

    Hi All,
    Do enybody know how to generate localized chars (for example Japanese) using code points in Solaris 10?
    Like in the following web page:
    http://www.isthisthingon.org/unicode/index.phtml
    Unicode, shift-jis
    U+4e2f 87a3 �N
    U+4e3b 8ee5 ��
    U+4e3c 98a5 �S
    U+4f5c 8dec ��
    Thanks,
    Daniel

    I have found a "Code Point Input Method" tool in the following page:
    http://java.sun.com/products/jfc/tsc/articles/InputMethod/inputmethod.html
    Using this tool user can enter hexadecimal code point and the output is some char.
    But this tool doesn't work. I run this in the follwoing way:
    # java -jar CodePointIM.jar
    After this error message appers:
    Failed to load Main-Class manifest attribute from
    codepointim.jar
    If anybody could help I will be appreciate.
    Regards,
    Daniel

  • How to create oracle services using grid control

    Hi All,
    I have oracle grid control account my grid control version is 10.2.0.4.0.Can any one please let me know the tab from which I can create Oracle services.
    I know we can create oracle services using DBCA also.When I'm trying to do that way it is giving below error.
    dbca
    DISPLAY not set.
    Set DISPLAY environment variable, then re-run.
    How to set DISPLAY environment variable.
    Thanks,
    Rafi.

    Normally, you set DISPLAY to an IP address with the suffix : and 0.0: the IP address must match a machine able to display X11 windows.
    Example with Linux bash shell:
    export DISPLAY=192.168.0.1:0.0What is your OS version ? What is your shell (bash, ksh, sh, csh) ? How do you connect to the UNIX host ?
    Edited by: P. Forstmann on 8 févr. 2010 09:05

Maybe you are looking for

  • MSI GF4 Ti-4200 doesnt work with WindowsXP

    I can't get the MSI display tools to work - it crashes, the vbios.dll doesnt load, it also crashes. the tv in doesnt work ,it crashes the tv out doesnt work ,it crashes. all the supplied software also crashes "application has encountered an error and

  • Sales Quote and Sales Order for Service Module.

    Hi All, I have a scenario with one of the customer where they have a Service Department. The customer is into installation and servicing of Air conditioning systems. The scenario is as mentioned below: Customer does the installation of Air Conditioni

  • Can i buy mac now and pay money later?

    Hi,      I would like to ask an advise. is there any chance to buy iMac and pay for it monthly basis? I am all those years using Windows, and i would like to give a try Max OS. i have never tryied to use MAC OS, i just have an iPhone. Thx

  • Adobe Flash Player not recognized

    After installing Adobe Flash Player 11.7.700.224 to Windows 7 Home Premium using Internet Explorer, I am still prompted to install the latest version of Flash Player.  Any idea why?

  • When trying to sync photos, error -39

    When my son tries to sync photos to his ipod nano 3rd generation he gets the following error:"The Ipod 'Michael's Ipod' cannot be synced. An unknown error occurred (-39). What is wrong? What could have caused it? How can I fix it? Thanks, Craig