Problem with Create Table from target in CKM Oracle

In CKM following Oracle are:
create table < % = snpRef.getTable ("L", "CHECK_NAME", "W") % >
(
Catalog_name < %=snpRef.getDataType ("DEST_VARCHAR", "100", "") % > < % = snpRef.getInfo ("DEST_DDL_NULL") % >.
Schema_name < %=snpRef.getDataType ("DEST_VARCHAR", "100", "") % > < % = snpRef.getInfo ("DEST_DDL_NULL") % >.
RESOURCE_NAME < %=snpRef.getDataType ("DEST_VARCHAR", "100", "") % > < % = snpRef.getInfo ("DEST_DDL_NULL") % >.
FULL_RES_NAME < %=snpRef.getDataType ("DEST_VARCHAR", "100", "") % > < % = snpRef.getInfo ("DEST_DDL_NULL") % >.
ERR_TYPE < %=snpRef.getDataType ("DEST_VARCHAR", "1", "") % > < % = snpRef.getInfo ("DEST_DDL_NULL") % >.
ERR_MESS < %=snpRef.getDataType ("DEST_VARCHAR", "250", "") % > < % = snpRef.getInfo ("DEST_DDL_NULL") % >.
CHECK_DATE < %=snpRef.getDataType ("DEST_DATE", "", "") % > < % = snpRef.getInfo ("DEST_DDL_NULL") % >.
ORIGINAL < %=snpRef.getDataType ("DEST_VARCHAR", "100", "") % > < % = snpRef.getInfo ("DEST_DDL_NULL") % >.
CONS_NAME < %=snpRef.getDataType ("DEST_VARCHAR", "35", "") % > < % = snpRef.getInfo ("DEST_DDL_NULL") % >.
CONS_TYPE < %=snpRef.getDataType ("DEST_VARCHAR", "2", "") % > < % = snpRef.getInfo ("DEST_DDL_NULL") % >.
ERR_COUNT < %=snpRef.getDataType ("DEST_NUMERIC", "10", "") % > < % = snpRef.getInfo ("DEST_DDL_NULL") % >
)

What is product is...
create the table ETL_STAGING. SNP_CHECK_TAB
(
CATALOG_NAME VARCHAR2 (100 CHAR) NULL,
SCHEMA_NAME VARCHAR2 (100 CHAR) NULL,
RESOURCE_NAME VARCHAR2 (100 CHAR) NULL,
FULL_RES_NAME VARCHAR2 (100 CHAR) NULL,
ERR_TYPE VARCHAR2 (1 CAR) NULL,
ERR_MESS VARCHAR2 (250 CHAR) NULL,
CHECK_DATE DATE NULL,.
ORIGINAL VARCHAR2 (100 CHAR) NULL,
CONS_NAME VARCHAR2 (35 CHAR) NULL,
CONS_TYPE VARCHAR2 (2 CHAR) NULL,
ERR_COUNT NUMBER (10) NULL
)

Why it adds the word TANK in parenthesis? Anyone?

Tom Cusick

Hello

Follow these steps:

(1) go to the topology

(2) physical architecture

(3) modify the Oracle (directory) technology

4) go to the tab "other".

(5) change the "String Mask" (4º-text box) to: VARCHAR2 (%)

That will solve the problem.

Cezar Santos

Tags: Business Intelligence

Similar Questions

  • Problem with create table as select (DEC)

    Hello

    We try to data cleaning of huge tables. And a customer of guise is reanme main table to the backup table. Then create a master table in select * backup table with some test.

    Now the problem with create table select, is that it creates the table without indexes and constraints. Is it possible to use the ETG (create the select table) with the same structure that he was the (all index, constriaints).

    Or any other solution to solve this problem?

    Thanks in advance

    Sweety wrote:
    Hello

    We try to data cleaning of huge tables. And a customer of guise is reanme main table to the backup table. Then create a master table in select * backup table with some test.

    Now the problem with create table select, is that it creates the table without indexes and constraints. Is it possible to use the ETG (create the select table) with the same structure that he was the (all index, constriaints).

    Or any other solution to solve this problem?

    Thanks in advance

    No, this is not possible. You need to get the manuscript of dependent object and create it manually.

  • Problem with creating tables DB DWH

    Hello
    During the generation of tables of data warehouse (dry 4.10.1 how to create the Data Warehouse Tables), I got to the top with an error indicating that "Datawarehouse Creating tables failed '.
    But when I checked in the log "generate_ctl.log" file, it has the message below:

    + "Schema will be created in the following containers: +"
    Oracle 11.5.10
    Oracle R12
    Universal



    Conflict between containers:


    ---------------------------------------------
    Table name: W_BOM_ITEM_FS
    Column name: INTEGRATION_ID.
    + Column properties that are different: [keyTypeCode] +.
    ---------------------------------------------

    Success! "

    When I checked in the database of DWH, I find tables DWH, but do not know if all tables have been created?
    Can someone tell me if my DWH tables are all created? Tables of how much would be created for EBS containers above?
    Also, should I have to drop a container of EBS to create tables DWH successfully?

    The Installation guide States when creating tables DWH fails then "createtables.log" will not be created. But in my case, this log file is created.

    Published by: userOO7 on November 19, 2008 14:41

    Even if you do the install with DBA role, it will fail is that sse_role is not present. Please, create it and try again. You must also create a user of separate database to the data warehouse that is separate from the repository of DAC. Then you can remove and re-create the account of data warehouse without losing the DAC repository.

    4.3.4.1 create databases
    http://download.Oracle.com/docs/CD/E12127_01/doc/BIA.795/e12083/windows_ic.htm#i1081422

  • I have intermittent problems with iphoto importing from iphone since 0sx 10.11.6. Update

    I have intermittent problems with iphoto importing from iphone since 0sx 10.11.6. -Update

    1 iphoto sees not iphone - restart

    2 iphoto sees iphone but says "no pictures" - restart

    3 Iphoto sees phone and photos and I click Import all or import selected - then I have problem of file format and nothing is imported

    NOTE: I have similar problems with image capture - sometimes you can see the phone and photos, and sometimes is not

    I have an imac 2015 - execution of yosemite

    Help my new iphone because 7 is coming today and I am terrified of the transfer.

    Not sure, but in any case iPhoto is a dead - it would be really smart to learn pictures (a totally new and different program with a learning curve and different workflows)

    With the help of pictures with my new iPhone 7 and iCloud photo library all works well without any problem - nothing different photos with my iPhone except the news and the best quality Photos 5

    LN

  • Laptop had a problem to "Solve a problem with PSIKey", solution from Windows & installed according to the instructions. How will I know that the problem is solved?

    has stopped working properly.

    An update is available that solves this problem.

    Downloaded Update site Web Protexis, Inc. and told to follow the steps in the installation wizard. The file downloaded and said he was setting up installation. Then after a few seconds, the box has disappeared and nothing else happened. How will I know if this problem has actually been resolved? My laptop has shown 6 problems with this unit from 30/07/11-08/12/11, where the unit has stopped working. Because I don't know what it is yet, I don't know really if the problem is solved or not. What should I do at this point? I have a SP2 7520-5185, running Vista Home Premium, Acer-Aspire. Thanks for any help you can give.

    Hello

    If you have installed a trial or paid a licensed version of Corel software products, you probably may notice a third unannounced software application makes its way into your computer too. The program is PSIService.exe by Protexis, which installs a Protexis V2 of Licensing Windows operating system service or Protexis licensing service.

    PSIService belongs to protect DRM (digital rights management) copy protection and license management software, which is intended to protect an application or software against piracy and illegal copying. Thus PSI service is normally installed by another program, such as Corel Paint Shop Pro Photo X 2, Corel Paint Shop Pro XI (X 1), Corel Paint Shop Pro X, that uses its service to collect information of license to repatriate much like spyware, protect copy and authenticate the user who is using an authentic version of the program.

    When you tried to download and install the program, if the box that says closed the dialog box when the download is complete has been verified, it will close the dialog box.

    I suggest that you restart the computer and check if you get an error message.

  • I just looked at problems with importing files from nikon D810 in LR 5.7 it pop a window saying it can't read the files to work on an imac 27 "yosemite on my mac pro running after several times he finally managed to read files and import them into LR

    I just looked at problems with importing files from nikon D810 in LR 5.7 it pop a window saying it can't read the files to work on an imac 27 "yosemite on my mac pro running after several times he finally managed to read files and import them into LR, I never had this problem before there was a sort of update that could from cause?

    What is the destination folder that the date be underneath?  In the top right it says users who suggests, you try to put the photos on top of your username instead of under your username.  Maybe that's the problem.  So change your folder in the drop-down list at the bottom right of what it should be rather than users, and if you're going to show us the destination of your photos at least scroll through the list of folders down right so that we can see which is the white highlight.

    Here is how mine looks like if I want to put my photos imported under my subfolder users - Steve - photos by date:

  • Problem with a table

    Hello

    Sorry for my bad English.

    I have a problem with a table. I made a table with a script, but when I add a new line, this script will not work in the new lines. I know that I have something wrong, but I do not know the solution. Anyboy help me? You can see the file in http://www.frmgm.jazztel.es/duda.pdf. I am new in programming.

    I thank you very much.

    OK, now I understand... each row that you add to the table changes the somExpression for objects (so that they are unique). The repeating subform Gets a case number, but the rest of the phrase remains the same. If you do not include a number of occurrence, then the 1st appearance is supposed to... that is why only the 1st row is affected. You can build expressions so that you can derive the correct number of occurrence. The click event code would look like this:

    If (xfa.resolveNode ("Tabla1.Fila1 [" + this.parent.index + "]").) Casillaverificacion1.RawValue == '0') {}
    xfa.resolveNode ("Tabla1.Fila1 [" + this.parent.index + "]"). Casillaverificacion2.access = "readOnly";
    xfa.resolveNode ("Tabla1.Fila1 [" + this.parent.index + "]"). Casillaverificacion3.access = "readOnly";
    xfa.resolveNode ("Tabla1.Fila1 [" + this.parent.index + "]"). Casillaverificacion4.access = "readOnly";
    xfa.resolveNode ("Tabla1.Fila1 [" + this.parent.index + "]"). Boton1.presence = 'hidden ';
    } else {}
    xfa.resolveNode ("Tabla1.Fila1 [" + this.parent.index + "]"). Boton1.presence = "visible";
    xfa.resolveNode ("Tabla1.Fila1 [" + this.parent.index + "]"). Casillaverificacion1.access = "readOnly";
    xfa.resolveNode ("Tabla1.Fila1 [" + this.parent.index + "]"). Casillaverificacion2.access = "open";
    xfa.resolveNode ("Tabla1.Fila1 [" + this.parent.index + "]"). Casillaverificacion3.access = "readOnly";
    xfa.resolveNode ("Tabla1.Fila1 [" + this.parent.index + "]"). Casillaverificacion4.access = "readOnly";
    }

    You can see that the xfa.resolveNode takes a string that represents the object we want to use. The string is then built and the number of occurrence of the Fila1 subform is derived by obtaining the index number of the subform parent of the object that we clicked (this.parent.index). Occurane numbers are wrapped in [] brackets.  The rest has not changed. You will need to update your code to use this technique.

    Hope that helps

    Paul

  • Problem with the Tables of the Buliding warehouse...

    Hi all

    I want to try to create tables DWH via Dac.but now I have error
    takes i.e) Done.some will be fail.we use Sibel 8.1.1 System.
    Once I chicked my logfile.

    createwtables.log

    Siebel Enterprise Applications ODBC import utility, Version 7.7 DDL [18030] ENU
    Copyright (c) 2001 Siebel Systems, Inc. All rights reserved.

    This software is the property of Siebel Systems, Inc., 2207 Bridgepointe Parkway,
    San Mateo, CA 94404.

    The user accepts that any use of this software is governed by: (1) the there is
    the user limits and other conditions of the license agreement which
    has been concluded with Siebel Systems or their dealers. and
    (2) the notice of rights exclusive and limited included in this software.

    WARNING: THIS SOFTWARE IS COPYRIGHTED BY THE AMERICAN AND INTERNATIONAL.
    ANY REPRODUCTION, DISTRIBUTION OR USE OF THIS PROGRAM, OR ANY PART
    OF IT, MAY RESULT IN HEAVY CIVIL AND CRIMINAL PENALTIES, AND WILL BE
    BEING PROSECUTED TO THE EXTENT POSSIBLE UNDER THE LAW.

    If you received this software by mistake, please notify Siebel Systems
    immediately at (650) 295-5000.

    C:\orahome\10gR3_1\bifoundation\dac\UTILITIES\BIN\DDLIMP/i N/s N/u OLAPUSER/p * / OLAP_USER/g SSE_ROLE/f C:\orahome\10gR3_1\bifoundation\dac/conf/sqlgen/ctl-file/oracle_bi_dw.ctl/b/k/x/w Y c

    Connecting to the database...
    Connected.

    Reading tables and DDL file indexes...
    Read 1110 tables and indexes the DDL file 0...

    Existing scheme of reading...
    Read the tablespaces 0, 0 tables and the indexes 0 a schema from existing...

    Running the SQL statements to the database...

    S1000: [DataDirect] [ODBC Oracle driver] [Oracle] ORA-01031: insufficient privileges

    create table M_10A_ORG_D)
    Number DATASOURCE_NUM_ID (10, 0) not null,
    Number (10, 0) ETL_PROC_WID default 0 non-zero.
    Number (10, 0) GEO_WID default 0 non-zero.
    INTEGRATION_ID varchar2 (30 char) not null,
    Number (10, 0) ROW_WID default 0 non-zero.
    Char ACCNT_FLG (1 car).
    ACCNT_REVN (22: 7), the number
    Char ACTIVE_FLG (1 car).
    Char CHANNEL_FLG (1 car).
    CHNL_ANNL_SALES (22: 7), the number
    Char COMPETITOR_FLG (1 car).
    Date of CREATED_DT,
    Char DIVN_FLG (1 car).
    EMP_COUNT (22: 7), the number
    Date of FORMED_DT,
    HIST_SLS_VOL (22: 7), the number
    Char ORG_FLG (1 car).
    Char ORG_PRTNR_FLG (1 car).
    Char PROSPECT_FLG (1 car).
    Date of PRTNRSHP_START_DT,
    Char PRTNR_FLG (1 car).
    PRTNR_SALES_RANK (22: 7), the number
    PTNTL_SLS_VOL (22: 7), the number
    Date of PTSHP_END_DT,
    Char PTSHP_FEE_PAID_FLG (1 car).
    Date of PTSHP_RENEWAL_DT,
    PTSHP_SAT_INDEX (22: 7), the number
    Char PUBLIC_LISTING_FLG (1 car).
    Number SALES_EMP_CNT (10, 0),
    Number SERVICE_EMP_CNT (10, 0),
    U_ACCNT_RVN (22: 7), the number
    Date of U_ACNTRVN_EXCH_DT,
    U_CHNL_ANNL_SLS (22: 7), the number
    Date of U_CH_ASLS_EXCH_DT,
    U_HIST_SLS_VOL (22: 7), the number
    Date of U_HST_SLS_EXCH_DT,
    Date of U_PTL_SLS_EXCH_DT,
    U_PTL_SLS_VOL (22: 7), the number
    ACCNT_LOC varchar2 (50 char),
    ACCNT_STATUS varchar2 (30 char),
    ACCNT_STATUS_I varchar2 (50 char),
    ACCNT_TYPE_CD varchar2 (30 char),
    ACCNT_TYPE_CD_I varchar2 (50 char),
    ANNUAL_REVN_CAT varchar2 (30 char),
    ANNUAL_REVN_CAT_I varchar2 (50 char),
    BASE_CURCY_CD varchar2 (20 char),
    BU_NAME varchar2 (100 char),
    CHNL_SALES_GRWTH varchar2 (30 char),
    CHNL_SALES_GRWTH_I varchar2 (50 char),
    CITY varchar2 (50 char),
    COUNTRY varchar2 (30 char),
    DIVN_TYPE_CD varchar2 (30 char),
    DIVN_TYPE_CD_I varchar2 (50 char),
    DOM_ULT_DUNS_NUM varchar2 (15 char),
    DUNS_NUM varchar2 (15 char),
    EXPERTISE varchar2 (30 char),
    EXPERTISE_I varchar2 (50 char),
    FREQUENCY_CAT varchar2 (30 char),
    FREQUENCY_CAT_I varchar2 (50 char),
    FRGHT_TERMS_CD varchar2 (30 char),
    FRGHT_TERMS_CD_I varchar2 (50 char),
    GLBLULT_DUNS_NUM varchar2 (15 char),
    KEY_COMPETITOR varchar2 (100 char),
    LINE_OF_BUSINESS varchar2 (30 char),
    MAIN_PH_NUM varchar2 (40 char),
    MGR_NAME varchar2 (160 char),
    MONETARY_CAT varchar2 (30 char),
    MONETARY_CAT_I varchar2 (50 char),
    NAME varchar2 (100 char),
    NUM_EMPLOY_CAT varchar2 (30 char),
    NUM_EMPLOY_CAT_I varchar2 (50 char),
    ORG_CITY varchar2 (50 char),
    ORG_COUNTRY varchar2 (30 char),
    ORG_MAIN_PH_NUM varchar2 (40 char),
    ORG_MGR_NAME varchar2 (160 char),
    Nom_org varchar2 (100 char),
    ORG_PRTNR_TIER varchar2 (30 char),
    ORG_PRTNR_TIER_I varchar2 (50 char),
    ORG_PRTNR_TYPE varchar2 (30 char),
    ORG_PRTNR_TYPE_I varchar2 (50 char),
    ORG_STATE varchar2 (50 char),
    ORG_ST_ADDRESS varchar2 (200 char),
    ORG_TERR_NAME varchar2 (75 char),
    ORG_ZIPCODE varchar2 (30 char),
    PAR_DUNS_NUM varchar2 (15 char),
    PAR_INTEGRATION_ID varchar2 (30 char),
    PAR_ORG_NAME varchar2 (100 char),
    PRI_LST_NAME varchar2 (50 char),
    PRTNR_NAME varchar2 (100 char),
    PR_COMPETITOR varchar2 (100 char),
    PR_INDUST_NAME varchar2 (50 char),
    PR_ORG_TRGT_MKT varchar2 (50 char),
    PR_PTSHP_MKTSEG varchar2 (50 char),
    PTSHP_PRTNR_ACCNT varchar2 (100 char),
    PTSHP_STAGE varchar2 (30 char),
    PTSHP_STAGE_I varchar2 (50 char),
    RECENCY_CAT varchar2 (30 char),
    RECENCY_CAT_I varchar2 (50 char),
    Varchar2 (30 char) REGION,
    REGION_I varchar2 (50 char),
    REVN_GROWTH_CAT varchar2 (30 char),
    REVN_GROWTH_CAT_I varchar2 (50 char),
    Varchar2 (50 char) STATE,
    ST_ADDRESS varchar2 (200 char),
    U_ACNTRVN_CURCY_CD varchar2 (20 char),
    U_CH_ASLS_CURCY_CD varchar2 (20 char),
    U_HST_SLS_CURCY_CD varchar2 (20 char),
    U_PTL_SLS_CURCY_CD varchar2 (20 char),
    VIS_PR_BU_ID varchar2 (15 char),
    VIS_PR_POS_ID varchar2 (15 char),
    CODE POSTAL varchar2 (30 char))
    ;
    error writeExecDDL (UTLOdbcExecDirectDDL pDDLSql).
    error writeExecDDL (pOperCallback UTLDbDdlOperTblCreate).
    Error in MainFunction (UTLDbDdlDbMerge).
    Error in the Main function...


    Please let me know how reslove this error...

    Use the setup.exe from Disk1\install\win32
    ex: D:\DAC_V16377-01\dac\Disk1\install\win32

    It works without any problem

    Score pls help if

  • Calc problem with fact table measure used in the bridge table model

    Hi all

    I have problems with the calculation of a measure of table done since I used it as part of a calculation in a bridge table relation.

    A table of facts, PROJECT_FACT, I had a column (PROJECT_COST) whose default aggregate is SUM. Whenever PROJECT_COST was used with any dimension, the appropriate aggregation was made at appropriate levels. But, no more. One of the relationships that project_fact is a dimension, called PROJECT.

    PROJECT_FACT contains details of employees, and every day they worked on a project. So for one day, employee, Joe, could have a PROJECT_COST $ 80 to 123 project, the next day, Joe might have $40 PROJECT_COST for the same project.

    Dimension table, PROJECT, contains details of the project.

    A new feature has been added to the software - several customers can now be charged to a PROJECT, where as before, that a single client has been charged.
    This fresh percentage collapse is in a new table - PROJECT_BRIDGE. PROJECT_BRIDGE has the project, CUSTOMER_ID, will BILL_PCT. BILL_PCT always add up to 1.

    Thus, the bridge table might look like...
    CUSTOMER_ID BILL_PCT PROJECT
    123 100.20
    123 200.30
    123 300.50
    456 400 1.00
    678 400 1.00

    Where to project 123, is a breakdown for multiple clients (. 20,.30.50.)

    Let's say in PROJECT_FACT, if you had to sum up all the PROJECT_COST for project = 123, you get $1000.


    Here are the steps I followed:

    -In the physical layer, PROJECT_FACT has a 1:M with PROJECT_BRIDGE and PROJECT_BRIDGE (a 1:M) PROJECT.
    PROJECT_FACT = > PROJECT_BRIDGE < = PROJECT

    -In the logical layer, PROJECT has a 1:M with PROJECT_FACT.
    PROJECT = > PROJECT_FACT

    -Logical fact table source is mapped to the bridge table, PROJECT_BRIDGE, so now he has several tables, it is mapped (PROJECT_FACT & PROJECT_BRIDGE). They are defined for an INTERNAL join.
    -J' created a measure of calculation, MULT_CUST_COST, using physical columns, which calculates the sum of the PROJECT_COST X the amount of the percentage in the bridge table. It looks like: $ (PROJECT_FACT. PROJECT_COST * PROJECT_BRIDGE. BILL_PCT)
    -J' put MULT_CUST_COST in the presentation layer.

    We still want the old PROJECT_COST autour until it happened gradually, it is therefore in the presentation layer as well.


    Well, I had a request with only project, MULT_CUST_COST (the new calculation) and PROJECT_COST (the original). I expect:

    PROJECT_COST MULT_CUST_COST PROJECT
    123. $1000 $1000

    I'm getting this for MULT_CUST_COST, however, for PROJECT_COST, it's triple the value (perhaps because there are quantities of 3 percent?)...

    PROJECT_COST MULT_CUST_COST PROJECT
    123 $1000 (correct) $3000 (incorrect, it's been tripled)

    If I had to watch the SQL, you should:
    SELECT SUM (PROJECT_COST),
    SUM (PROJECT_FACT. PROJECT_COST * PROJECT_BRIDGE. BILL_PCT),
    PROJECT
    Of...
    PROJECT GROUP


    PROJECT_COST used to work properly at a table of bridge of modeling.
    Any ideas on what I got wrong?

    Thank you!

    Hello

    Phew, what a long question!

    If I understand correctly, I think the problem is with your old measure of cost, or rather that combines with you a new one in the same request. If you think about it, your request as explained above will bring back 3 rows from the database, that's why your old measure of cost is multiplied. I think that if you took it out of the query, your bridge table would work properly for the only new measure?

    I would consider the migration of your historical data in the bridge table model so that you have one type of query. For historical data, each would have a single row in the bridge with a 1.0 BILL_PCT.

    Good luck

    Paul
    http://total-bi.com

  • To load multiple records in multiple tables from target

    I have read several records as a set of a file flat source unique and load in the different target tables.
    I have to read 3 discs as a game and load different targets in 3 tables and read another 3 disks as a game and load in the previous tables 3 target and it will
    until all of the records from flat file are loaded.
    The structure of the file is as follows:
    Header record
    Record line
    Record distribution
    Header record
    Record line
    Record distribution
    ....
    ....
    ... ...

    Read the header record and load into the target table
    Record line to read and load in the target B table
    Record Distribution to read and load in the target C table
    -Repeat the same steps until all records are read and loaded into the target tables.

    I would be grateful if anyone can suggest the best approach to the design of interface/package and error conditions to manage?

    Thank you
    RAM

    Hello

    in this case you must create the data store depending on a model "Flat file".
    For example, create 3 store data with the same resource (file), but change the column definition
    Usually on the first column, set the 'model' for each specific format "variable code.

    You create 3 interfaces and load your target (for example database table)

    Concerning

    Stéphane

  • Problem with creating a sequence

    Hello

    I'm having a problem with a sequence that I am creating. Basically, I'm trying to create a sequence with a default value based on the value in another table, i.e.
    CREATE SEQUENCE seq
    START WITH (
                min(customer_id) from customer
                )
    INCREMENT BY 1;
    Is this possible? I get errors.

    You can use dynamic sql or, if you use SQL * more take advantage of substitution variables:

    SQL> DROP SEQUENCE seq
      2  /
    DROP SEQUENCE seq
                  *
    ERROR at line 1:
    ORA-02289: sequence does not exist
    
    SQL> DECLARE
      2      stmt VARCHAR2(1000);
      3  BEGIN
      4       SELECT  'CREATE SEQUENCE seq START WITH ' || min(empno)
      5         INTO  stmt
      6         FROM  emp;
      7       EXECUTE IMMEDIATE stmt;
      8  END;
      9  /
    
    PL/SQL procedure successfully completed.
    
    SQL> SELECT seq.NEXTVAL FROM dual
      2  /
    
       NEXTVAL
    ----------
          7369
    
    SQL> DROP SEQUENCE seq
      2  /
    
    Sequence dropped.
    
    SQL> COLUMN s NEW_VALUE s NOPRINT
    SQL> SELECT  min(empno) s
      2    FROM  emp
      3  /
    
    SQL> CREATE SEQUENCE seq START WITH &s;
    old   1: CREATE SEQUENCE seq START WITH &s
    new   1: CREATE SEQUENCE seq START WITH       7369
    
    Sequence created.
    
    SQL> SELECT seq.NEXTVAL FROM dual
      2  /
    
       NEXTVAL
    ----------
          7369
    
    SQL> 
    

    SY.

  • Problems with the Display Mode target on end 2009 27 "iMac

    Used late 2009 iMac 27 "in the view target in conjunction with a Dell XPS tower with i7 processor, Windows 7 and the best graphics card I could afford at the time connected by HDMI to mini display port cable.  Worked well for years.  Set aside Dell for a few months and the update of the iMac to El Capitan OS 10.11.3.  Recently tried old setup with same Dell PC and was able to move from Mac to PC, but the PC screen resolution was at the lowest setting. I got an error message when enabling/disabling to PC who said there was a problem with the port causing mini display of the system back to the lowest resolution. Impossible to reset at a higher resolution.

    I tested the Dell PC on another monitor, and it works very well at higher resolution (2560 X 1440). Now, when I reconnected it to the iMac (which works fine), the screen becomes black.

    Is it possible that the operating system upgraded (El Capitan) is not compatible with the targets using mini display port Display Mode?  Any ideas?

    Use your iMac as a display with the target - Apple Support Display Mode , also consider having a bad cable or connection. Does not hurt to try different cables, they can and will the bad!

  • problem with creating

    Hello

    I created the table below.
    -- Create table
    create table RC_ANNEX_CODE
    (
      CODE_ID         NUMBER(8),
      ANNEX_ID        NUMBER(8) not null,
      FORM_TYPE       VARCHAR2(50),
      ANNEX_FORM_CODE VARCHAR2(50) not null,
      ANNEX_CODE_DESC VARCHAR2(200)
    )
    tablespace TS_IRS
      pctfree 10
      initrans 1
      maxtrans 255
      storage
      (
        initial 64K
        minextents 1
        maxextents unlimited
      );
    -- Create/Recreate primary, unique and foreign key constraints 
    alter table RC_ANNEX_CODE
      add constraint PK_RC_ANNEX_FORM_CODE primary key (ANNEX_FORM_CODE)
      using index 
      tablespace TS_IRS
      pctfree 10
      initrans 2
      maxtrans 255
      storage
      (
        initial 64K
        minextents 1
        maxextents unlimited
      );
    After you have created the table below
    create table RCI_annex_code
    (
      I_ANNEX_FORM_CODE_ID VARCHAR2(50) NOT NULL,
      I_ANNEX_FORM_CODE    VARCHAR2(50),
      ANNEX_FORM_CODE_ID   NUMBER(8)
    )
    tablespace TS_IRS
      pctfree 10
      initrans 1
      maxtrans 255
      storage
      (
        initial 64K
        minextents 1
        maxextents unlimited
      );
    -- Create/Recreate primary, unique and foreign key constraints 
    alter table RCI_annex_code
      add constraint PK_RCI_annex_code_ID primary key (I_ANNEX_FORM_CODE_ID)
      using index 
      tablespace TS_IRS
      pctfree 10
      initrans 2
      maxtrans 255
      storage
      (
        initial 64K
        minextents 1
        maxextents unlimited
      );
    When I create constraints, it gives me an error:-ORA-02270: no unique or primary key corresponding to this column list
    alter table RCI_annex_code
      add constraint FK_RCI_annex_code foreign key (ANNEX_FORM_CODE_ID)
      references rc_annex_code (code_ID);
    It gives an error for the altar above, kindly help

    If the parent key is really rc_annex_code.code_id, and the pharmacokinetics of the rc_annex_code is really annex_form_code, and then rc_annex_code.code_id make it unique:

    create table rc_annex_code
    ( code_id              number(8) constraint uk_rc_annex_form_code unique
    , annex_id             number(8) not null
    , form_type            varchar2(50)
    , annex_form_code      varchar2(50) not null constraint pk_rc_annex_form_code primary key
    , annex_code_desc      varchar2(200) )
    tablespace ts_irs;
    
    create table rci_annex_code
    ( i_annex_form_code_id not null
                           constraint pk_rci_annex_code_id primary key
                           constraint fk_rci_annex_code references rc_annex_code (code_id)
    , i_annex_form_code    varchar2(50)
    , annex_form_code_id   number(8) )
    tablespace ts_irs;
    

    Note that it is often a good idea NOT to specify the data type for the columns of the FK and rather define the constraint so he can inherit from the parent.

    It's also a common convention to put the PK columns first in the table definition - it is a bit confused in your example, because code_id is listed first but isn't the PK. That they mix? I noticed that you have defined rci_annex_code.i_annex_form_code_id as varchar2 (50) (as annex_form_code.annex_form_code), but then you try to reference rc_annex_code.code_id, which is number (8). I wonder if you meant rc_annex_code.code_id to be the PK in the first place, that is to say:

    create table rc_annex_code
    ( code_id              number(8) not null constraint pk_rc_annex_form_code primary key
    , annex_id             number(8) not null
    , form_type            varchar2(50)
    , annex_form_code      varchar2(50) constraint uk_rc_annex_form_code unique
    , annex_code_desc      varchar2(200) )
    tablespace ts_irs;
    
    create table rci_annex_code
    ( i_annex_form_code_id not null
                           constraint pk_rci_annex_code_id primary key
                           constraint fk_rci_annex_code references rc_annex_code (code_id)
    , i_annex_form_code    varchar2(50)
    , annex_form_code_id   number(8) )
    tablespace ts_irs;
    

    The whole ' Code ' / ' ID ' naming system is a little confusing so, normally, a code is just a kind of code. You have 'Code' and 'ID' in both table names and column names, with 'annex_form_code' in the 'annex_form_code_id' in the child and parent.

  • Problem with 'show tables' syntex and dashes

    I am currently working on an application that requires me to all tables in a database of output.
    The name of the database consists of the domain name (which include a dash "-") and a name I specified when creating.

    So, when I use:
    < name cfquery = "qTables" > display tables < / cfquery >
    < cfdump var = "" #qTables # "/ >"

    I get a result with the table with the title of the column names: TABLES_IN_DOMAIN-NAME_DBNAME.
    When I try to refer to this variable, SEE process only the name before (and not including) the dashboard.
    So the error I get is: "Element TABLES_IN_DOMAIN is undefined in QTABLES.

    Is there a way around this problem?
    Thank you in advance.

    You can reference the query using the notation of the structure


    #qTables ["TABLES_IN_DOMAIN-NAME_DBNAME"] [currentRow] #.

  • database stress test - datagenerator problem with import data from oracle

    Hi all

    Today, I'm doing a stress test on my new server. Someone from this forum told me that there is a nice software for it:

    http://www.dominicgiles.com

    I have a problem with Datagenerator. I can't fill my user directly in the database. DataGenerator always has an exception. What ever...

    I tried to generate data on hard drive. It seems to go well. In the file data, I found a large number of files:

    *.dat
    *. CTL
    *. SQL

    N, anyone know how I can import only the files of user oracle?


    see you soon

    Dlugasx

    I do the table drop in the first place, I think it's to be sure, there are no objects before loading.

    Nicolas.

Maybe you are looking for

  • My CPU usage is that up to 90% when I go on Facebook, no other site, how can I solve this problem

    Using Win XP, this problem just recently started in a few months. I wouldn't change anything.I can be on other sites, no problem, whenever I go on Facebook, within 3 minutes my fans turn onand my task mngr. My use is going from 75 to 100%.I also rece

  • Store TV freezes during transfers

    Hellomy store TV 2 TB freeze (blue light turns off and it hangs for hours) when you transfer video files from my PC. If I turn off the unit, disconnect and reconnect it and do a rain dance, it works sometimes. I use Windows 7. any suggestions?Thank y

  • Buy now or wait for ICS?

    When I'll be able to find a tablet on the shelves of stores Best Buy with ICS on that? Want to buy my first android Tablet and wait it killing me.

  • Error code: 800 b 0001 (cannot install will want to)

    Hi Please help I tried to solve the problem for a few days now and I'm running out of ideas. I can't download windows updates at all because I get error 800 b 0001.  I tried to go bad it and found the solution to download windows update readiness too

  • Try to install the drivers on HP Pavilion dm4-1165dx AMD

    Hey, I bought the HP Pavilion dm4-1165dx, and saw that my product has two drivers, one motherboard that the computer by using default and the other is an AMD graphics card. When I opened my device manager and go to graphics cards the only device I se