ttIsql connection loading Oracle data - string TT user is different from OracleUser

Hello

I work in an Exalytics with TimesTen project and we want to load some data from an Oracle to TimesTen database.

The point is that the OracleUser (DEV_TAX) has a different name than the user TT (TAX)

Example:

ttIsql f /home/ora/ttscript/LoadData.sql "DSN = TT_TAX; UID = tax; PWD = tax; OraclePWD = devtax; OracleNetServiceName = devtax; »

Here, I can't specify an OracleUID DEV_TAX

any suggestions?

Thank you very much

Thorsten

Hi Thorsten,

Two possibilities:

1. create a user in TimesTen with the same name as the user Oracle (DEV_TAX), grant CREATE SESSION user and on the relevant tables belonged to TT_TAX in TimesTen. Then connect to TimesTen as DEV_TAX and run the upload script.

2. create a TT_TAX user in Oracle and GRANT SELECT to her for all tables to be loaded.

TimesTen is currently limited to using the same UID for TT and Oracle when you use the cache or other features (such as ttLoadFromOracle in this case).

Kind regards

Chris

Tags: Database

Similar Questions

  • work load Oracle data

    Hello

    I load the data from one table to another.table. as table source is having huge data we want to load past 3 months 5 days of target.every data source data, we expect to move from source to the target. I need a procedure which calls oracle work once daily at night from 23:00, the procedure will be

    load 5 days data .i need a logic of the procedure for loading data 5 days of data every day.

    I found logic.this works fine

    declare

    date of l_end_date: = 11 August 15 '; -promote the date

    date of l_start_date: = add_months (August 11, 15 ', - 3); -promote date-3 months

    The CNT number;

    -date of l_max_crt_date;

    number of rm_cnt; - remove

    Start

    Select count (*) in the abc_tst cnt t;

    If cnt = 0 then

    INSERT / * + APPEND * /.

    IN abc_tst

    SELECT *.

    ABC t

    where t.created_date between l_start_date and (l_start_date + 5);

    on the other

    Select TRUNC (max (t.created_date))

    in l_max_crt_date

    of abc_tst t

    When trunc (created_date)<=>

    If l_max_crt_date! = l_end_date then

    dbms_output.put_line ('l_max_crt_date' | l_max_crt_date);

    dbms_output.put_line ('l_end_date' | l_end_date);

    l_start_date: = l_max_crt_date + 1;

    ----

    / * SELECT count (*) from rm_cnt

    ABC t

    where t.created_date between l_start_date and (l_start_date + 5);

    dbms_output.put_line (rm_cnt);

    dbms_output.put_line ('l_start_date' | l_start_date) ;*/

    ----

    INSERT / * + APPEND * /.

    IN abc_tst

    SELECT *.

    ABC t

    where t.created_date between l_start_date and (l_start_date + 5);

    on the other

    dbms_output.put_line (' return ' | l_max_crt_date);

    return;

    end if;

    end if;

    end;

  • How to load oracle data

    I wonder a situation like this: a table contains a few million records (lines) that add up to 100 GB of data, while the RAM is 4 GB. When I run a SQL statement such as select * from mytable where certain conditions. How Oracle process the request? Clearly Oracle cannot load all data in RAM at a time.



    Scott

    A process in an operating system can use the RAM and disk storage. Just in case the RAM is not enough, the data are SWAPPED IN the disk and RAM disk will be EXCHANGED when necessary. And using the disk is a bottleneck (as it's IO and also mechanically, run instead of the RAM that is run electronically) so it slows down the process.

  • Select the lines with the maximum value for a date where another column is different from 0

    Hello

    I need to write a query on a table (called DEPRECIATION) that returns only the rows whose date maximum (PERENDDAT_0 column) for a specific record (identified by AASREF_0), and where the other column in the table called DPRBAS_0 is different from 0.

    If DPRBAS_0 is equal to 0 in all the lines of a specific record, then return the line with date maximum (PERENDDAT_0 column).

    To be clearer, I give the following example:

    Suppose we have the following data in the table of DEPRECIATION:

    AASREF_0 PERENDDAT_0 DPRBAS_0
    I2011001074331/12/20150
    I2011001074331/12/20140
    I2011001074331/12/20130
    I2011001085612/31/20160
    I2011001085631/12/20150
    I2011001085631/12/2014332
    I2014001223812/31/2016445
    I2014001223831/12/2015445
    I2014001223831/12/20140

    The query must return only the following lines:

    AASREF_0 PERENDDAT_0 DPRBAS_0
    I2011001074331/12/20150
    I2011001085631/12/2014332
    I2014001223812/31/2016445

    Thanks a lot for your help!

    This message was edited by: egk

    Hello Egk,

    The following query works for you.

    SELECT AASREF_0, PERENDDAT_0, DPRBAS_0

    FROM (SELECT AASREF_0,

    PERENDDAT_0,

    DPRBAS_0,

    ROW_NUMBER)

    DURING)

    AASREF_0 PARTITION

    ORDER BY

    CASE WHEN DPRBAS_0 <> 0 THEN 1 OTHER 0 END DESC,.

    PERENDDAT_0 DESC)

    RN

    DEPRECIATIONS)

    WHERE rn = 1

  • Why the date of the INVOICE is different from the date of the ORDER?

    Something weird is happening... I get notifications of workflow of the Business Catalyst for invoices, but sometimes the date of the order is the eve of the invoice. Causing havoc on the side shipping because when I print the invoice, good delivery and export order files, they do not correspond to the top and sometimes customers are duds.

    No idea why the date of the invoice would be different from the order date and how do I do to make them the same?

    Thanks in advance!

    Hey there,

    An invoice is not an order. It's an important thing to know.

    An order is generated by a few ways but especially as soon as a product is added to a basket - this order exists and that date. An invoice is a purchase and comes from an order.

    You create an order in the admin and save it but add no invoice number. You can see that you have just made an order and you'll see the button to generate the invoice.

    API may make an order and no invoice, a person can add items to the basket and finish the next day if they have their session open that long... Many reasons why these dates may differ.

  • Loading Oracle data to essbase using erroneous ODI

    I am trying to load data from oral table to essbase. But I get the following error.

    org.apache.bsf.BSFException: exception of Jython:
    Traceback (innermost last):
    "< String >" file, line 23, in there?
    com.hyperion.odi.essbase.ODIEssbaseException: lack of standard dimension for data loading column
    at com.hyperion.odi.essbase.ODIEssbaseDataWriter.loadData (unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (unknown Source)
    at java.lang.reflect.Method.invoke (unknown Source)
    at org.python.core.PyReflectedFunction.__call__ (PyReflectedFunction.java)
    at org.python.core.PyMethod.__call__ (PyMethod.java)
    at org.python.core.PyObject.__call__ (PyObject.java)
    at org.python.core.PyInstance.invoke (PyInstance.java)
    to org.python.pycode._pyx3.f$ 0 (< string >: 23)
    to org.python.pycode._pyx3.call_function (< string >)
    at org.python.core.PyTableCode.call (PyTableCode.java)
    at org.python.core.PyCode.call (PyCode.java)
    at org.python.core.Py.runCode (Py.java)
    at org.python.core.Py.exec (Py.java)
    at org.python.util.PythonInterpreter.exec (PythonInterpreter.java)
    at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:144)
    at com.sunopsis.dwg.codeinterpretor.k.a (k.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt (SnpSessTaskSqlI.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep (SnpSessStep.java)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession (SnpSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand (DwgCommandSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandBase.execute (DwgCommandBase.java)
    at com.sunopsis.dwg.cmd.e.i (e.java)
    at com.sunopsis.dwg.cmd.h.y (h.java)
    at com.sunopsis.dwg.cmd.e.run (e.java)
    at java.lang.Thread.run (unknown Source)
    Caused by: com.hyperion.odi.essbase.ODIEssbaseException: lack of standard dimension for data loading column
    at com.hyperion.odi.essbase.ODIEssbaseDataWriter.validateColumns (unknown Source)
    ... 32 more

    com.hyperion.odi.essbase.ODIEssbaseException: com.hyperion.odi.essbase.ODIEssbaseException: lack of standard dimension for data loading column

    at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
    at com.sunopsis.dwg.codeinterpretor.k.a (k.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt (SnpSessTaskSqlI.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep (SnpSessStep.java)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession (SnpSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand (DwgCommandSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandBase.execute (DwgCommandBase.java)
    at com.sunopsis.dwg.cmd.e.i (e.java)
    at com.sunopsis.dwg.cmd.h.y (h.java)
    at com.sunopsis.dwg.cmd.e.run (e.java)
    at java.lang.Thread.run (unknown Source)


    Also, I have the following doubts

    1. what should be the LKM defined for the soruce. What is LKM SQL FOR SQL

    2. I have 6 standard dimensions in the table oracle but Currncy and hsprates in essbase. So, how can I ignore these two dimensions by loading data. Or is there a way where I can have the default options set for these two dimensions.

    3. can I load data from several tables into essbase. If Yes please let me know the procedure.

    Hello

    In the interface and the target data store, you can enter a value in the field of cartography.
    For example, if you have a column called year in your target data store and you still want to load FY09, then you would enter "FY09" in the field of cartography

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • What is the fastest way bulk load the data from ACE / 400 to Oracle?

    Asked me to move data from the AS / 400 to Oracle11gR2 as fast that ODI may eventually. Quinte just no mapping, no transformation, no membership.

    An ODI11g agent is started on the computer of Oracle target, but being new ODI, I don't know how to use SQL for Oracle LKM loading in a scene and then updated incremental Oracle IKM layout from staging to the target table.

    It took 50 minutes to move recorded about 4 million. I need to get this in about 10 minutes. So guys, if there is a best practice to do this, please let me know, but now I'll try any suggestion you might think.

    Thank you in advance.

    Means the faster is to use a combination of ODI interface and ODI tool named OdiSqlUnload.
    N ° 1). Use the ODI OdiSqlUnload tool to export the data from the AS / 400 files in a flat file of the BONES.
    Step 2.) Use this flat file as source and LKM file for Oracle (SQLLDR) and Oracle IKM incremental update to load Oracle data.

    Your current path is slow because it operates on a row by row basis.

  • Loading the data into the planning

    I'm a little confused how loading data in the planning of the work of the application. I have created the new application of planning with the Application Wizard, created the database, etc.. Then, after documentation (the administrator Planning Guide), I loaded the metadata using contour loading utility (OutlineLoad). Now I want to load the data. Following a few steps from ducumentation I add DIRECT_DATA_LOAD = False parameter (there is no front) and the DATA_LOAD_FILE_PATH parameter points to a directory on the server (I tried creating the empty file and DATA_LOAD_FILE_PATH the value piont this file). After saving configuration and restart the schedule I used Adminsitation to load data to choose the size of data loading, Driver-Dimension, I recorded it and then... no new files in the DATA_LOAD_FILE_PATH catalog has been created. What I am doing wrong?

    EPM 11.1.1.1.0 on Windows 2003 Server EE

    Hello

    Let me give you an example of loading data from the sample application planning.

    Dimensions
    Account, currency, entity, period, scenario, Version, year, Segments

    Loading data Dimension = account

    Driver dimension = scenario

    Selected member real =

    The format of the csv file is

    Account, Point of view, data load Cube real name
    330000, "USD, Jan, E05 NoSegment, work, AFA 08 ', Consol, 1000

    I hope that gives you an idea?

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Format of the connection string to connect to Oracle DB via LDAP

    Hello

    I have an Oracle database and its details are configured in LDAP. I have the c# code that I want to connect to Oracle DB using LDAP details. So I wrote the code to connect to the Oracle DB, but not able to connect. Implementation error at the con. Open() statement: "ORA-12154: TNS: could not resolve the connect identifier specified.

    Code:
    --------
    String s = "Data Source = @ldap://abc.pq.xyz.com: 11389/myldap, cn = OracleContext, dc = pq, dc = xyz, dc = com; User Id = MyDB; Password = MyPass";

    Con OracleConnection = new OracleConnection (constr.);
    con. Open();

    I need help in the formation of the connection string.

    user8786648 wrote:
    Hello

    I have an Oracle database and its details are configured in LDAP. I have the c# code that I want to connect to Oracle DB using LDAP details. So I wrote the code to connect to the Oracle DB, but not able to connect. Implementation error at the con. Open() statement: "ORA-12154: TNS: could not resolve the connect identifier specified.

    Code:
    --------
    String s = "Data Source = @ldap://xyz.us.oracle.com: 11389/xyz_ldap, cn = OracleContext, dc =, dc = oracle, dc = com; User Id = xyz; Password = xyz";

    Con OracleConnection = new OracleConnection (constr.);
    con. Open();

    I need help in the formation of the connection string.

    This isn't how you use LDAP for Oracle name resolution.

    You must configure the LDAP protocol. ORA and SQLNET. ORA files properly.

    For example, you can review the LDAP protocol. Documentation of ORA here:

    http://docs.Oracle.com/CD/E11882_01/network.112/e10835/LDAP.htm#i500397

    And the SQLNET. Documentation of ORA here:

    http://docs.Oracle.com/CD/E11882_01/network.112/e10835/SQLNET.htm#i500318

    A quick search on the terms "example of oracle ldap.ora", shot to the top of several examples.

    Also, if these are real values that you posted in your example of a connection string, you can change.

  • With FDM/ERPi of Oracle Data Source incremental data loads

    Hello

    I use ERPi 11.1.2.1. In the workspace, it is possible to set the option of the rule of the data load to be instant, or incremental. However, I use FDM/ERPi set to load data from Oracle GL in Essbase. Is it possible for me to put in place the FDM for the data to load incremental data rules charges? Could be a parameter in the source ERPi adapter?

    Thanks for any information you could provide.

    Yes, the source ERPi adapter there is an option for "Method of Load Data" that will allow you to define how the rule of the DL is run. By default, it is "FULL REFRESH" but can be changed.

    (A) connecting to the application via the workbench and the source system adapters
    (B) make a right click on the Source ERPI adapter and choose "options".

    You will see an option to load method and it will be the full refresh value, choose the value of the option you want in the menu drop-down and save.

  • The user profile Service service has no logon. User profile cannot be loaded. Then I deleted my user profile in safe mode, and when I connected, all the files in C:\users\(old users name) are all gone

    I use Vista Home Premium

    1. Windows automatically updated and turn off the power.
    2. I couldn't connect, it says that the service user profile service does not logon. User profile cannot be loaded.
    3. Then I deleted my user profile in SafeMode by doing: 'make right click on computer - properties - settings - advanced - user - deleted my old account profile settings '. There is no option for me to "keep my files."
    4. Then I managed to connect, I guess having creates a default user account? Because there is a new folder in C:\Users\, called (former name). (old name) - PC. In C:\Users\(old name), it is empty.

    Now, all my original files are gone because I deleted my old user profile. The size of my c: drive-has not changed much, so I guess all my files are still in only my computer, it's just that I can't find their "PATH". How could I get re-navigate to all my files? I need them so badly.

    Thank you very much for the one who can help me.

    Hello

    Log on as ADMIN and look in C:\Users where C: is the drive where the user folders.

    You can try to fix it with Safe Mode - repeatedly press F8 as you bootup.

    Some programs such as the updated Google (if you added the toolbar Google, Chrome or Google
    Earth) has been known to cause this problem.

    How to fix error "the user profile Service has no logon. User profile cannot be loaded. »
    http://www.Vistax64.com/tutorials/130095-user-profile-service-failed-logon-user-profile-cannot-loaded.html

    How to fix error "your user profile was not loaded correctly! You have been connected with a
    temporary profile. "in Vista
    http://www.Vistax64.com/tutorials/135858-user-profile-error-logged-temporary-profile.html

    BE VERY CAREFUL IF YOU USE THIS ONE:

    DO NOT USE THE ACCOUNT HIDDEN ON A DAILY BASIS! If it corrrups you are TOAST.

    How to enable or disable the real built-in Administrator account in Vista
    http://www.Vistax64.com/tutorials/67567-administrator-account.html

    Use the hidden administrator account to lower your user account APPLY / OK and then lift it to ADMIN.
    This allows clear of corruption. Do the same for other accounts if necessary after following the above message.

    You can use the hidden - administrator account to make another account as ADMINISTRATOR with password even
    (or two with the same password) use a test or fix the other.

    You can run the Admin account hidden from the prompt by if necessary.

    This tells you how to access the System Recovery Options and/or a Vista DVD
    http://windowshelp.Microsoft.com/Windows/en-us/help/326b756b-1601-435e-99D0-1585439470351033.mspx

    If you cannot access your old account, you can still use an Admin to migrate to another (don't forget
    always leave to an Admin who is not used except for testing and difficulty account).

    Difficulty of a corrupted user profile
    http://windowshelp.Microsoft.com/Windows/en-AU/help/769495bf-035C-4764-A538-c9b05c22001e1033.mspx

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • Error message at startup: error loading: \App Data\Roaming\pxma2.dll C\Users\ (my name). Access denied

    Hello activity (yet) on Vista 32 bit, I receive a message (at the start). Error loading: \App Data\Roaming\pxma2.dll C\Users\ (my name). Access denied. Please notify.

    Hello

    Cannot find this file on Google so you probably dodged some software malware and you should do a
    very thorough control. Message on how to remove the error message if still it y
    After the audits of malware.

    If you need search malware here's my recommendations - they will allow you to
    scrutiny and the withdrawal without ending up with a load of spyware programs running
    resident who can cause as many questions as the malware and may be more difficult to detect as the
    cause.

    No one program cannot be used to detect and remove any malware. Added that often
    easy to detect malicious software often comes with a much harder to detect and remove the
    payload. So its best to be now too thorough than paying the high price later. Check
    with an extreme overdose point and then run the cleaning only when you are very
    that the system is clean.

    It can be made repeatedly in Mode safe - F8 tap you start, however, you should
    also run in regular Windows when you can.

    Download malwarebytes and scan with it, run MRT and add Prevx to be sure that he is gone.
    (If Rootkits run UnHackMe)

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Malwarebytes - free
    http://www.Malwarebytes.org/

    Run the malware removal tool from Microsoft

    Start - type in the search box-> find MRT top - right on - click RUN AS ADMIN.

    You should get this tool and its updates via Windows updates - if necessary, you can
    Download it here.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
    (Then run MRT as shown above.)

    Microsoft Malicious - 32-bit removal tool
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=AD724AE0-E72D-4F54-9AB3-75B8EB148356&displaylang=en

    Microsoft Malicious removal tool - 64 bit
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=585D2BDE-367F-495e-94E7-6349F4EFFC74&displaylang=en

    also install Prevx to be sure that it is all gone.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Prevx - Home - free - small, fast, exceptional CLOUD protection, working with the other security
    programs. It is a single scanner, VERY EFFICIENT, if it finds something come back here or
    Use Google to see how to remove.
    http://www.prevx.com/   <-->
    http://info.prevx.com/downloadcsi.asp  <-->

    Choice of PCmag editor - Prevx-
    http://www.PCMag.com/Article2/0, 2817,2346862,00.asp

    Try the demo version of Hitman Pro:

    Hitman Pro is a second scanner reviews, designed to save your computer from malicious software
    (viruses, Trojans, rootkits, etc.). who infected your computer despite safe
    what you have done (such as antivirus, firewall, etc.).
    http://www.SurfRight.nl/en/hitmanpro

    --------------------------------------------------------

    If necessary here are some free online scanners to help the

    http://www.eset.com/onlinescan/

    -----------------------------------

    Original version is now replaced by the Microsoft Safety Scanner
    http://OneCare.live.com/site/en-us/default.htm

    Microsoft safety scanner
    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    ----------------------------------

    http://www.Kaspersky.com/virusscanner

    Other tests free online
    http://www.Google.com/search?hl=en&source=HP&q=antivirus+free+online+scan&AQ=f&OQ=&AQI=G1

    --------------------------------------------------------

    Also follow these steps for the General corruption of cleaning and repair/replace damaged/missing system
    files.

    Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup

    Start - type this into the search-> find COMMAND to top box and RIGHT CLICK-
    RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker
    (SFC.exe) program generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Run checkdisk - schedule it to run at the next startup, then apply OK your way out then
    turn it back on.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    -----------------------------------------------------------------------

    If we find Rootkits use this thread and other suggestions. (Run UnHackMe)

    http://social.answers.Microsoft.com/forums/en-us/InternetExplorer/thread/a8f665f0-C793-441A-a5b9-54b7e1e7a5a4/

    I hope this helps.

  • Need to find a way to understand how DB2 connect to Oracle and mirroring of data etc.

    Hi, gurus,

    I just take over a source project which is the ICOMS as400 db2 database. Seems data mirro that CDC is used to replicate from DB2 to oracle.

    I am very new to this CDC datamirror, more I am new to figure out how db2 connect to oracle, it is only through db link or what? or is it tnsnames entry?

    I wish someone in this forum can point me in the right direction.

    Thanks in advance.

    Hello

    What do you not sure about?
    If Oracle can be the site of conduct, you can use the gateway for DRDA database and we can help you with that. If you need assistance on setting up DataMirror CDC to connect to Oracle, then you will need to contact IBM because it is one of their products.

    Kind regards

    Mike

  • CONNECT IN a loop in the user data

    Could someone help me because I can not find a solution.

    I want to build a tree of 3 tables (parent-> children-> detail)

    Everything works fine with 2 tables, but when I add the third table I get always an error ORA: ORA-01436: CONNECT BY a loop in the user data

    CREATE TABLE nineham (organisatie_id NUMBER

    (, naam VARCHAR2 (50));

    --

    CREATE TABLE seizoenen (seizoen_id NUMBER

    organisatie_id NUMBER

    (, naam VARCHAR2 (50));

    --

    CREATE TABLE competities (competitie_id NUMBER

    seizoen_id NUMBER

    (, naam VARCHAR2 (50));

    --

    INSERT INTO nineham (organisatie_id, name) VALUES (1, 'ORGANISATIE_1');

    INSERT INTO nineham (organisatie_id, name) VALUES (2, 'ORGANISATIE_2');

    --

    INSERT INTO seizoenen (seizoen_id, organisatie_id, naam) VALUES (1, 1, 'SEIZOEN_1');

    INSERT INTO seizoenen (seizoen_id, organisatie_id, naam) VALUES (2, 1, 'SEIZOEN_2');

    INSERT INTO seizoenen (seizoen_id, organisatie_id, naam) VALUES (1, 2, 'SEIZOEN_3');

    INSERT INTO seizoenen (seizoen_id, organisatie_id, naam) VALUES (2, 2, 'SEIZOEN_4');

    --

    INSERT INTO competities (competitie_id, seizoen_id, naam) VALUES (1, 1, 'COMPETITIE_1');

    INSERT INTO competities (competitie_id, seizoen_id, naam) VALUES (2, 1, 'COMPETITIE_2');

    INSERT INTO competities (competitie_id, seizoen_id, naam) VALUES (3, 2, 'COMPETITIE_3');

    INSERT INTO competities (competitie_id, seizoen_id, naam) VALUES (4, 2, "COMPETITIE_4");

    INSERT INTO competities (competitie_id, seizoen_id, naam) VALUES (5, 2, "COMPETITIE_5");

    --

    --

    --

    SELECT LPAD (' ', LEVEL * 2, ' ') | Naam AS display

    LEVEL AS lvl

    DE)

    SELECT NULL AS parent

    child organisatie_id

    naam

    To nineham

    UNION ALL

    SELECT organisatie_id AS parent

    child seizoen_id

    naam

    OF seizoenen

    UNION ALL

    Seizoen_id SELECT parent

    Child AS NULL

    naam

    OF competities

    )

    START WITH parent IS NULL

    CONNECT BY PRIOR child = parent

    ;

    Hello

    When you perform a CONNECT BY query, you must have an identifier unique to each child.  You use numbers that are unique to each table, but are no longer unique when you UNION the paintings together.  When the query finds children 1, the fact that average organisatie_id = 1, or does that mean seizoen_id = 1, or does this mean competetite_id = 1?

    Etbin suggested you change data.  Which can be difficult; It might not even be possible.  In addition, you must make sure that the new IDS are unique.  When you assign advent = 10 to a node, for example, you must be sure that 10 is not an organisatie_id.

    Here is another solution that is guarranted to generate unique IDS, without changing the actual tables:

    SELECT LPAD (' ', LEVEL * 2, ' ') | Naam AS display

    LEVEL AS lvl

    DE)

    SELECT NULL AS parent

    organisatie_id AS child

    , 1 AS the level of

    naam

    To nineham

    UNION ALL

    SELECT organisatie_id AS parent

    seizoen_id AS child

    , 2 AS the level of

    naam

    OF seizoenen

    UNION ALL

    SELECT seizoen_id AS parent

    Child AS NULL

    , 3 AS the level of

    naam

    OF competities

    )

    START WITH parent IS NULL

    AND level = 1

    CONNECT BY PRIOR child = parent

    AND layer = FIRST + 1

    ;

    The composite key formed by your original ID, and the new level number is unique.

    Note that the query above is exactly what you have posted, with the addition of the lines that refer to level.

  • Oracle Grid11g on Linux el5 connection to the host as a user failed

    Hello

    I have 11g Linux oracle grid control.
    I have configured to monitor a target (Oracle 10 g server) on solaris 10, but I'm not able to plan backups.
    "" I get error * "failed to connect to the host as a user."
    I provided the oracle for the solaris user account details.

    I tried to connect to normal Enterprise Manager for the oracle 10g database and the identification of the host information has been validated.

    Can you advice why even host credentials failed on the grid?

    Help, please.

    Did you run root.sh after the installation of the agent software?

    If this is not the case, stop the agent and run the root.sh as user root script. Then, start the agent and try again.

    Concerning
    Jomon

    Published by: JohnJomon on November 10, 2011 11:42

Maybe you are looking for

  • Sudden kernel panic during navigation

    Hi, Macbook Pro late 2008 running osx osx 10.9.5, crashed and restarted while I was surfing with Firefox. This is the crash report, should I worry? Anonymous UUID: D862A5C9-67A9-8A33-E589-1C480EDFD498 Sun Jul 10 13:07:51 2016 panic (appellant cpu 1 0

  • Trying to tell me that I need an iTunes Store account

    I'm trying to submit my podcast in iTunes. It redirects me to Podcasts Connect where, as soon as I log in, I get a page that says: "Podcasts Connect requires an iTunes Store account." I click on the link and it sent it to me to https://www.apple.com/

  • Audio input T510

    Hello I just bought a T510 and wanted to set up my Ventrilo Client, I recognized that I have just an audio output on the right side of the laptop. Is there an audio input for my microphone and where can I find it? I hope you can help me Best regards

  • BlackBerry Z30 Sync interval set to "manual".

    Hello I have a mail account for which I have the "sync interval" in the settings for the "manual". However, it seems that I continue to receive emails to this account automatically. I was wondering if there is a solution to this or I'm wrong interpre

  • Two monitors when I have a fullscreen video on overlays of TI 2 monitor monitor 1 is it possible to fix this?

    I use two monitors and when I go to full screen video overlays 2 on the monitor on the primary monitor. It just started doing this today never done before. is there a way to solve this problem.