error in ddl execution

Hello

location:
I've created a diagram-ER in ODI (MODEL-> DIAGRAM)
Create the tables and columns.
3 tables (Dimension) each table has a PK
1 table (fact)
Each table (size), I create a FK to the fact.
Create the DDL
Run the DDL
I have check the operator and a brand of error checking.

The error is derived from the addition of the FKs


I have a following error message:

ODI-1228: task DDL FRT_TIMEENGINE_TARGET 020 (Prozedur) EIB connection ORACLE_DEIMOS mit Ziel ORACLE nicht been.
Caused by: java.sql.SQLSyntaxErrorException: ORA-02270: kein oder Primar.-o eindeutiger Schlüssel as sharp Spaltenliste

at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:457)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:889)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:476)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:204)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:540)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1079)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1466)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3752)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3937)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1535)
at oracle.odi.runtime.agent.execution.sql.SQLCommand.execute(SQLCommand.java:163)
at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:102)
at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:1)
at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2906)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2609)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:537)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:453)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1740)
to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ 2.doAction(StartSessRequestProcessor.java:338)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:214)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:272)
to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 0 (StartSessRequestProcessor.java:263)
to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:822)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:123)
to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:82)
at java.lang.Thread.run(Thread.java:662)

source code by ODI

ALTER table DWH. PROJECT_MANAGER
Add constraint FK_PROJECT_MANAGER
foreign key (DIMENSION_KEY_PROJECT_MANAGER)
references DWH. FACT
(DIM_PROJECT_MANAGER)

can someone help me?

Thank you

should not be the other way around? I mean that the foreign key must be created on the fact that referring to the DIM_PROJECT_MANAGER which seems to be the unique key in the table (PROJECT_MANAGER) DIM.

Go by the error message, it requires a unique index using the DIM_PROJECT_MANAGER column in the target table (fact), which seems logically correct. Therefore, the first statement.

Tags: Business Intelligence

Similar Questions

  • Get the error during the execution of the IOM in script integrated purge OIM_ReconArch.sh

    Get the error during the execution of the IOM in script integrated purge OIM_ReconArch.sh


    bash-3. $00 cat Err_Arch_Recon_2012_11_01_15_36_06.log
    ****
    -The execution state of archives reconciliation
    ****
    BEGIN OIM_SP_ReconArchival ("n", "n", 200000, 'ARCHIVE_SELECT_WITH_CONS_DROP_REC', 'both, '20110101',' 20111231'); END;

    *
    ERROR on line 1:
    ORA-00942: table or view does not exist
    ORA-06512: at "PREPRD. OIM_SP_RECONARCHIVAL', line 722
    ORA-00942: table or view does not exist
    ORA-01031: insufficient privileges
    ORA-06512: at line 1


    Help, please

    ORA-06512: at "PREPRD. OIM_SP_RECONARCHIVAL', line 722
    ORA-00942: table or view does not exist
    ORA-01031: insufficient privileges

    (1) check if the OIM_SP_RECONARCHIVAL table or the view exists or not...
    (2) if it exists, check if the DEV_OIM user has enough privilege to view this table...
    Otherwise, give it all privileges to open as a sys as sysdba

    GRANT ALL PRIVILEGES ON DEV_OIM;

    COMMIT;

  • Error prevention of execution of data while trying to play star trek online Facebook

    I received a Data Execution Prevention error when trying to load a Facebook game called "Star Trek Online" via a company called Perfect World.  Have you had problems with them before?  Is a data execution error a serious threat? This company via facebook was trying to infiltrate there PC or give a virus?  Thank you for your answers and the time.

    Hello Joseph,.

    I would suggest following the instruction in this article on the change Data Execution Prevention settings:
    There is also a FAQ on this subject:
  • Please help get this error: "the Server execution failed code 0.

    Original title: Server error

    I get an error msg 0 code Server execution failed. I also had this on the msg http:/od.yieldmanager.com/imp 2 = OxO & Y = 1941234 & _salt + 2602137321 & B = 10 & r = 1. Can someone tell me what this means and how to fix it. He added that Internet Explorer error is an error occurred in the script on this page.

    I also something called BrowseIt running I can't close the application. then I get an another msg zaberg.exe and one another ntdrive.exe. Cansomeone please help me with this. I am unabel get to any internet firefox GGP.
    Thank you
    Debi

    Ask the help of the web page for your first question.

    For the second, you are infected/infested and need to clean up.  What AntiVirus you are using has not been able or has not updated or you had an interruption in service.

    Search for malware:

    Download, install, execute, update and perform analyses complete system with the two following applications:

    Remove anything they find.  Reboot when necessary.  (You can uninstall one or both when finished.)

    Search online with eSet Online Scanner.

    The less you have to run all the time, most things you want to run will perform:

    Use Autoruns to understand this all starts when your computer's / when you log in.  Look for whatever it is you do not know using Google (or ask here.)  You can hopefully figure out if there are things from when your computer does (or connect) you don't not need and then configure them (through their own built-in mechanisms is the preferred method) so they do not - start using your resources without reason.

    You can download and use Process Explorer to see exactly what is taking your time processor/CPU and memory.  This can help you to identify applications that you might want to consider alternatives for and get rid of all together.

  • Error LogiLDA.ddl

    I upgraded to Windows 7 Professional to Windows 10 and I have the following error:

    LogiLDA.ddl not found.

    System apparently works fine.

    I also use Ccleaner and Norton Internet Security.

    Can anyone help?

    Thank you very much.

    Hello Cesare,

    Thanks for posting your query in Microsoft Community.

    I understand that you found the .dll error and I will be happy to answer your query.

    This error is caused by the Logitech download Assistant component. This error message comes from the wizard to download Logitech (LDA). It is a Logitech component that verifies the updated drivers.

    It is a common problem after removing the Logitech devices. Please, try the following fix and verify.

    1. from the desktop, right-click on the taskbar and select Task Manager. In the Task Manager click on the Startup tab.

    2 locate the LogiLDA entry. Right-click on the item and select disable .

    Hope this information is useful. Please feel free to answer in the case where you are facing in the future other problems with Windows.

  • Win7 WMP12 error: failed server execution

    ___? It begins to annoy _ on me whenever I click on an mp3 file, I get an error

    C:\Users\Justin RPG\Documents\MP3\BN.mp3

    Server execution failed

    It does now with EVERY mp3 I try opening, but even with the other mp3s it still errors like BN.mp3 (even if I click on others)

    Hi justinrpg7,

    1 when was the last time it was working fine?

    2. did you of recent changes on the computer?

    Method 1

    I suggest that you rename the folder of WMP network information and check if it works.

    (a) close Windows Media Player.

    (b) click the Start button, type "%userprofile%\appdata\local\Microsoft\Windows Media"(sans les guillemets) in the Search box and press enter. "."

    (c) in the opened folder, right click on the Windows MediaPlayer 12.0 folder and choose Rename. Rename the folder 12.0.bak.

    Method 2

    If the previous step fails, and then save the WMP components and check if it works.

    (a) close all other windows and Windows Media Player .

    (b) click Start, all programs, Accessories

    (c) right click on "command prompt" and choose "run as administrator", accept invites UAC.

    (d) type the following commands and press ENTER after each line.

    1. regsvr32 jscript.dll

    2. regsvr32 vbscript.dll

    (e) output

    Now, check if you can play the files in Windows media player.

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Version of 5.0.2.00.07(online à APEX) - error in the execution of a stored procedure through anonymous block

    DECLARE

    the stored procedure varchar2 (25);

    BEGIN

    -DBMS_OUTPUT. Put_line ("enter the name of the procedure :'||: procname");

    the stored procedure: =: procname;

    DBMS_OUTPUT. Put_line (' procedure :'|| stored procedure);

    stored procedure.

    END;

    : procname is a variable binding in the apex to switch the running value.

    apex-bind_var.png

    This is the error I get

    ORA-06550: line 7, column 2:

    PLS-00221: "STORED procedure" is not a procedure or is not defined

    ORA-06550: line 7, column 2:

    PL/SQL: Statement ignored

    5the stored procedure: =: procname;

    6 DBMS_OUTPUT. Put_line (' procedure :'|| stored procedure);

    7. the stored procedure.

    8 END;

    SmtWtL wrote:

    DECLARE

    the stored procedure varchar2 (25);

    BEGIN

    -DBMS_OUTPUT. Put_line ("enter the name of the procedure :'||: procname");

    the stored procedure: =: procname;

    DBMS_OUTPUT. Put_line (' procedure :'|| stored procedure);

    stored procedure.

    END;

    : procname is a variable binding in the apex to switch the running value.

    This is the error I get

    ORA-06550: line 7, column 2:

    PLS-00221: "STORED procedure" is not a procedure or is not defined

    ORA-06550: line 7, column 2:

    PL/SQL: Statement ignored

    5. the stored procedure: =: procname;

    6 DBMS_OUTPUT. Put_line (' procedure :'|| stored procedure);

    7. the stored procedure.

    8 END;

    What you're trying to achieve?

    Bind variables cannot be used for the dynamic execution of stored programs. Dynamic SQL using lexical rather than bind substitution must be used to run when the program name is not known until execution of the programs.

    declare
      sproc varchar2(25);
    begin
      sproc := :procname;
      dbms_output.put_line('procedure:'||sproc);
      execute immediate 'begin ' || sproc || '; end;'; -- DO NOT DO THIS!
    end;
    

    It is a fundamental design flaw and a security disaster. It's stops essential compilation controls is performed and is open to attack by SQL injection and other security vulnerabilities. There is no good reason to do this.

  • Error in DDL generation

    I created a relational model with a few tables and FK between them.

    When I generate the DDL for the previous model, I get a few bad results:

    (1) DOF for the schema is or even which created tools > Preferences > Data Modeler > DOF > 'include the schema in the DDL' is checked

    My model contains a schema called power

    (2) the DOF contain lines like

    -ERROR: Invalid view V_Difficulty

    ALTER VIEW Food.V_Difficulty ADD CONSTRAINT Difficulty_PKv1 PRIMARY KEY (DifficultyId) DISABLE;

    When there is not a prior statement of 'create view' to: Food.V_Difficulty in the DDL script generated by the SQL Data Modeler.

    I try to remove all theses view the relational model and save the drawing, but when you reopen the design, these views will appear again.

    There is only one view named v_tablename for each table in the relational model. I created directly these views. Maybe I chose an option about a wizard who create them, but I don't remember.

    (3) for the main/master table of my relational model, the DDL contains a trigger with a few columns added that as I have not created directly

    In addition, the trigger is created in 'emp2' when I have no table named emp2 on my model!

    CREATE OR REPLACE TRIGGER Food.Recipe_JNtrg

    AFTER

    INSERT OR

    UPDATE OR

    DELETE ON emp2 for each line

    Declare

    REC Food.Recipe_JN%ROWTYPE;

    Food.Recipe_JN%ROWTYPE empty;

    BEGIN

    REC: = empty;

    IF THE INSERT OR UPDATE CAN

    recomm. Chutney: =: NEW. Chutney;

    ...

    recomm. JN_DATETIME: = SYSDATE;

    recomm. JN_ORACLE_USER: = SYS_CONTEXT ('USERENV', "SESSION_USER");

    recomm. JN_APPLN: IS SYS_CONTEXT ('USERENV', 'MODULE');.

    recomm. JN_SESSION: = SYS_CONTEXT ('USERENV', 'SESSIONID');

    IF THE INSERTION

    recomm. JN_OPERATION: = 'INS ';

    ELSIF UPDATE THEN

    recomm. JN_OPERATION: = 'UPD '.

    END IF;

    ELSIF DELETION THEN

    recomm. Chutney: =: OLD. Chutney;

    ...

    recomm. JN_DATETIME: = SYSDATE;

    recomm. JN_ORACLE_USER: = SYS_CONTEXT ('USERENV', "SESSION_USER");

    recomm. JN_APPLN: IS SYS_CONTEXT ('USERENV', 'MODULE');.

    recomm. JN_SESSION: = SYS_CONTEXT ('USERENV', 'SESSIONID');

    recomm. JN_OPERATION: = 'DEL ';

    END IF;

    INSERT into Food.Recipe_JN VALUES rec;

    END;

    /

    I am writing this question after that I tried, without success, other operations like create a new template and copy table-table of the old model to the new model.

    SQL Developer Data Model Version 4.1.1.888

    OS Win7 64 bit

    This is the version 4.1 a stable version?

    Isaac

    Hi Isaac,.

    (1) I have the physical models, right click and select new. SQL Data model the fill with data, but users, appear as MDSYS and Public (I think because the predefined structures that SQL Data Modeler created: MDSYS.) SDO_GEOMETRY and XMLTYPE) and not my food scheme

    You must right-click on the users node and select new.  Then set its name to food and its Implements schema property to refer to the schema of your food.

    (3) there is a way to remove these rules or only apply them in the generation of DDL?

    During DDL generation, on the generation of DDL Options Panel, you can select the 'Of include Scripts Table DDL' tab and make sure that the insert of Scripts checkbox is disabled for all tables.

    David

  • "ORA-12154: TNS: could not resolve the connect identifier specified" error executing the execution in CAD Plan.

    Hi friends,

    We do face-down question when executing the execution Plan in DAC for full charge. We are working on the project of modernization of the OBI Applications and my client has worked on this environment is a few days. Before this, they load to the source 'EBSTST' instance and now changed data for instance 'EBSWKLY '. We have changed the details of connection under the tab 'Physical Data Sources' DAC. Test the connection Source and target are good. We have added input TNS of EBSWKLY in the path: u01/app/oracle/oracle11g/product/11.2.0/client_1/network/admin.

    ORA-12154: TNS: could not resolve the connect identifier specified

    Database driver error...

    Function name: connect

    [The database error: could not connect to the database using the [apps] user and the connection string [EBSWKLY].].

    Please suggest me if I m done mistake anywhere...

    Thanks in advance.

    Raghu Jen7782

    I was saying about the environment variables defined by you on the server of informatica/dac under the .profile or .bash_profile as below:

    TNS_ADMIN = $ORACLE_HOME/network/admin; Export TNS_ADMIN

    ORACLE_BASE = / home/oracle/app/oracle; export ORACLE_BASE

    ORACLE_HOME=$ORACLE_BASE/product/11.2.0/; Export ORACLE_HOME

    ORACLE_SID = InstanceName; export ORACLE_SID

    Path = $PATH: / usr/sbin: $ORACLE_HOME/bin. export PATH

    LD_LIBRARY_PATH=.:$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH

    CLASSPATH = $ORACLE_HOME/jlib: $ORACLE_HOME/rdbms/jlib. Export CLASSPATH

    Here are some examples I mentioned everything. You can set them in the user profile from which you installed the server informatica/dac.

    If it is a CAR Forum, try to set the value of the instance-specific SID for example: orcl11 or orcl12 or orcl13... try to connect to each instance. Sometimes the general SID does not recognize configuration

  • Space of bunch of java error when executing execution plan

    I get this error at the start of the execution plan ETL, to the capture of change task.

    I ve tried to change the startclient.bat and using a larger setting... -Xmx1612... I can not set more... (get a JVM error).

    Pls. y at - it suggestions to work around this error? The race AND stop right there... and nothing is loaded.

    TXS.

    Antonio

    Solved... the increase in the parameter - Xmx in startserver.sh did the trick.

    TXS for all your comments.

    Antonio

  • Syntax error in conditional execution

    I wrote the following script:

    var CB3 = this.getField("CheckBox3").value;

    var nSub2 = this.getField("Subtotal").value;

    If (CB3 == '0') & & (nSub2 < = 60)

    Event.Value = 15;

    ElseIf (CB3 == '0') & & (nSub2 > 60)

    NSub2 = Event.Value * 0.25;

    Seems simple enough to me, but I get an error of syntax on line 4, and when I get it in the debugger, I get nothing.

    I am currently developing my conditional execution if the box is checked and the subtotal is less than or equal to 60, the result should be 15; However, if the box is checked and the subtotal is over 60, the result should be 25% of the subtotal.

    I'm sure he's probably going to be a very simple answer, but I am a free student of javascript, and I not all down tools to understand why it does not work.  So, any help would be appreciated.

    Thank you.

    Try this:

    var CB3 = this.getField("CheckBox3").value;

    var nSub2 = this.getField("Subtotal").value;

    If ((CB3 == "0") & (nSub2)<=>

    Event.Value = 15;

    ElseIf ((CB3 == "0") & (nSub2 > 60))

    NSub2 = Event.Value * 0.25;

    But what do you do if none of these conditions are true?

  • A lot of EXE errors during the execution of the tasks

    When I try and do any what - restoration of the IE system, etc. - it is said that C:\WINDOWS\system32\rundll.exe APPLICATION NOT FOUND - a window opens and asks me what program I want to run it since... I don't know - what is happening on all that is needed. EXE

    Cannot download same adobe reader, etc.   I get this error when you try to use both control panel - any application.    Rundll.exe is located in the correct folder... but the icon is weird - not the little box that usually has been there.    protection against all viruses has been executed and validated.

    Hello

    I suggest you to follow these steps and check if that helps:

    Method 1:
    Try to perform the clean boot and check if it helps:
    http://support.Microsoft.com/kb/310353

    NOTE: When you are finished troubleshooting, make sure that you reset the computer in start mode normal such as suggested in step 7 of the above article.

    Method 2:
    Try the running System File Checker and see if it helps:
    http://support.Microsoft.com/kb/310747

    It will be useful.

  • I'm unable to send e-mail messages. I get an error saying 'Data Execution Prevention'

    original title: send email problem

    problem with sending of e-mail - their reception ok by sending them a problem - message received this problem is Data Execution Prevention. Can someone give MOE advise?

    Using Windows Live Mail or Outlook?

    For Windows Live Mail:

    The best place to ask your question of Windows Live is inside Windows Live help forums. The experts he specialize in all things, Windows Live and I would be happy to help you with your questions! Please choose a product below to be redirected to the appropriate community:

    Windows Live Mail

    Windows Live Hotmail

    Looking for a different product to Windows Live? Visit the home page Windows Live Help for the complete list of Windows Live forums at www.windowslivehelp.com.

    For Outlook:

    http://answers.Microsoft.com/en-us/Office/Forum/Outlook

  • system error code: 5 execution of commands at the command prompt

    How to cancel the error code: 5

    Run with high or administrative privileges command prompt.

    1. click on the Start button.

    2. in the search box, type command prompt.

    3. in the list of results (top), right-click Guest, and then click Run as administrator.  If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

  • I get an error 0xc0000142 during execution of Windows Easy Transfer.

    Original title: Windows easy transfer does not work

    I anm try to transfer a profile of an old XP machine to my Win 7 PC.

    When I try to run Windows Easy Tranmsfer on the Win7 PC I get an error Application failed to start correctly (0xc0000142)

    How can I get it to work?

    You must use the Windows 7 PC easy transfer utility to create the file to transfer on the XP PC. The file generated by the XP version of the utility is not compatible with Windows 7

    On the Windows 7 PC to run the Windows easy transfer utility

    On the home screen select next and then choose the method of transfer (external drive)?

    Then select so this is my new computer, on the next screen, it asks if you have already saved your files, click on no, then I need to install it now.

    You can create the installation program on the device you want to use for the transfer as the external HARD disk or USB key. It will then copy the utility to transfer files on the selected device.

    Connect it to PC XP and run the transfer utility on the XP PC, which was created by Windows 7. It will recreate your file transfer but this time they should work on Windows 7 PCs.

Maybe you are looking for

  • Giant PDF scans from Sierra update

    I like to use the 'digital images' app to scan documents and save them directly as a PDF. Ever since I updated my system to Mac OS Sierra pdf files created when scanning are about three times the size they were before and I can't find a place to chan

  • the address of a server en datasocket escribo como

    Hola He estado doing conexiones con el datasocket con el protocolo that y in mi casa han funcionado muy well; I have 2 computers, investigo intellectual property of the Québec uso como servidor computadora con el comando "ipconfig" in el symbol del s

  • Can't set up my bluetooth

    Original title: "Bluetooth" Hi I have Windows Vista OS in my laptop. I was not able to set up my bluetooth. I did some Internet documents to configure. But no luck. Please help on this. Maria Maria

  • Wireless for HP OfficeJet 6500 a configuration more all-in-One on Ubuntu 10.04

    I bought a HP OfficeJet 6500 has more all-in-One CN557A, I want to use with ubuntu 10.04 64 bits as a wireless network printer.Before, I bought, I checked the compatibility on www.hplipopensource.org and www.openprinting.org, and everything was in or

  • IPSec-s2s-sessiondb-details

    Hi guys,. I have about 3000 s2s vpn tunnels in my asa. in the output attached to the vpn-sessiondb detail, im seen 9046 as total (ikev1 + ipsec) Can someone help me here... attached to the output - especially the last three lines of the output is con