Using Sequence with Data Warehouse Table

I am working on a Uni exercise on data warehousing and am trying to create and populate a table with a sequence on one database with data located on another database.
For this particular table, I have to reset the primary key (primary keys on operational table start from 4000). In my notes, I have been told to create a sequence first and use yoursequence.nextval in the sub query. I am not very experienced with using sequences and am not sure what a subquery is in relation to them.
I tried the following but it didn't work. Hopefully it will give you an idea as to what I am trying to achieve:
create table Region as select region_id_seq, Region_Name, Management_area, Country from dw_op.Sales_Region@q_link;
Any help with this would be great.

Thanks again, Justin.
My instructions tell me to use the schema name along with the db link and it created the table correctly so I'll just have to keep my eye on it.
Do oyu know how I could use the function initcap to ensure all data is of the same format? I did a bit of research and found that I should be using column aliases which I duly tried but I received an error saying the following line needs a column alias:
initcap(s.region_name),
Just thought you may know how this can be done.
Thanks.

Similar Messages

  • Error while creating data warehouse tables.

    Hi,
    I am getting an error while creating data warehouse tables.
    I am using OBIA 7.9.5.
    The contents of the generate_clt log are as below.
    >>>>>>>>>>>>>>>>>>>>>>>>>>
    Schema will be created from the following containers:
    Oracle 11.5.10
    Universal
    Conflict(s) between containers:
    Table Name : W_BOM_ITEM_FS
    Column Name: INTEGRATION_ID.
    The column properties that are different :[keyTypeCode]
    Success!
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    There are two rows in the DAC repository schema for the column and the table.
    The w_etl_table_col.KEY_TYPE_CD value for DW application is UNKNOWN and for the ORA_11i application it is NULL.
    Could this be the cause of the issue? If yes, why could the values be different and how to resolve this?
    If not, then what could be the problem?
    Any responses will be appreciated.
    Thanks and regards,
    Manoj.

    Strange. The OBIA 7.9.5 Installation and Configuration Guide says the following:
    4.3.4.3 Create ODBC Database Connections
    Note: You must use the Oracle Merant ODBC driver to create the ODBC connections. The Oracle Merant ODBC driver is installed by the Oracle Business Intelligence Applications installer. Therefore, you will need to create the ODBC connections after you have run the Oracle Business Intelligence Applications installer and have installed the DAC Client.
    Several other users are getting the same message creating DW tables.

  • Merant Driver is not available for Windows 7 to create data warehouse table

    Hi All,
    I had installed Database, OBIA, DAC and Informatica in windows 7 64 bit. Installation is successful.
    To create data warehouse tables through DAC, we need merant driver. But Merant driver is not available in windows 64bit.
    I followed the below procedue to create a merant driver.
    "C:\Windows\SysWOW64\odbcad32.exe"
    Executed odbcad32.exe, and I found the merant driver in the list, when i try to create DSN, I am getting the following error.
    Specified Driver could not be loaded due to system error 193: (Oracle Merant Driver in DAC 10g_Oracle-OH1635326477, c:\orahome\10gR3_1\bifoundation\dac\utilities\DataDirectODBC\seor820.dll).
    Can any one please provide me the solution.
    Regards,
    Kumar

    I know the docs say you must use the merant driver however did you try a normal oracle odbc connnection. I am sure i did this in the past.
    BTW I hope this is just your laptop and you are playing around. I do'nt think Windows 7 is a supported environment. You should consider a supported platform for production and maybe a virtual machine on your windows 7 machine in development so you can practice the install.
    See
    Oracle Fusion Middleware Supported System Configurations
    http://www.oracle.com/technetwork/middleware/ias/downloads/fusion-certification-100350.html
    System Requirements and Supported Platforms for Oracle Business Intelligence Applications 7.9.6.3 http://www.oracle.com/technetwork/middleware/bi/obia7963cert-matrix-395521.xls

  • How to reset data Warehouse table

    For fixing some mistakes, I'd like to reset the whole Data Warehouse tables ( clear alll data in the tables).
    Is there any way to achieve this with DAC client?
    Roger

    Nothing to worry. We have the option in DAC. Navigate to Tools -> ETL Management -> Reset Data Sources. Give the confirmation text in the dialog box. With this action the refresh dates will become Null for all tables and which causes to do a full load in the next ETL run.

  • "Create Data Warehouse Tables"  doesn't create any tables ?

    We are attempting to install and configure OBIA 7.9.6 for Peoplesoft 8.9. The steps to install and configure Informtica and DAC and their respective repositories are completed. However, Step 4.12 to Create Data Warehouse Tables on Oracle database, although apparently successful (returns no error) does not create any tables or other objects in the datawarehouse schema. Apparently, "oracle_bi_dw.ctl" is being generated with NO DDL definitions only a two line header to the effect
    [DDL File]
    Version = 1Has anyone encountered a similar issue and resolved it ? (We have an SR open with Oracle Support).
    NOTE : ddlimp does connect succesfully to the database -- I created a Database ON LOGON trigger to catch and trace logons by the datawarehouse schema.
    Hemant K Chitale
    Edited by: Hemant K Chitale on Nov 20, 2009 11:54 AM

    Closing this thread.
    A Reinstall worked.

  • How to use Count with Date Parameters

    Hello,
    I am having issues using the Count() function in conjunction with date parameters.
    This is a Siebel report and in my report I have 2 date parameters(From Date, To Date). In a nutshell I am basically trying to count Opportunities that has a start date within the given date period. However I don't see a reasonable way to put my date parameters within the Count() function. The reason being is that I need to have a huge chunk of code to convert the dates into a common format that can be compared, and it won't even fit within the code block in my rtf template. I am not even sure how to put multiple conditional statements inside a Count() function since all the examples I have seen are very simple.
    Anyone have a suggestion on how to use Count() with date parameters?
    Thanks.

    Any chance you can get the date formats in the correct format from siebel?
    I don't know Siebel - so I can't help you with that. If you get the correct format it is just
    <?count(row[(FromDate>=date) and  (date<=ToDate))?>
    Otherwise the approach would probably need to use string function to get year/monthd/day from the date
    and store it into a varialbe and compare later the same way
    <?variable@incontext:from; ....?>
    <?variable@incontext:to; ...?>
    <?count(row[($from>=date) and  (date<=$to))?>
    Potentially you can use the date functions such as xdofx:to_date to do the conversion
    [http://download.oracle.com/docs/cd/E12844_01/doc/bip.1013/e12187/T421739T481158.htm]
    But I am not sure if they are available in your siebel implementation.
    Hope that helps

  • Issue with data dictionary -Table maintanance generator

    Hi all,
    I have an issue with Data dictionary, table maintenance generator. I have entered some records in a custom table (ZBCSECROLETOGRP) and changed the delivery class from C to A. When I create the table maintainance generator, I am encountered with the following errors:
    1)Field ZBCSECROLETOGRP-PORTALGROUP shortened (new visible length: 000032)
    2)0012 could not be generated
    3)In TCTRL_ZBCSECROLETOGRP field LENGTH has the invalid value 01
    My main motto is to create the table maintainace generator and transport to the furthur systems .
    Please help.
    ThnX in advance,
    Vishal..

    HI,
    Regenerate the table maintenance by selecting the checkbox of "Modified field structure" => new entry & then save.
    Also ensure that the new changes are not affecting old data bcz of data type changes. If that is the case, then delete the old records, regenerate table maint. & re-enter those records which you had deleted.
    Thanks,
    Best regards,
    Prashant

  • Using colspan with nested html tables

    Please see my question on stackoverflow at:
    using colspan with nested html tables - Stack Overflow

    You should be posting in the Dreamweaver forum.  This is not a design
    question as such is it? Dreamweaver forum is the most busiest forum on
    Adobe portal and you are very likely to get the response and a solution
    almost quickly.
    <https://forums.adobe.com/community/dreamweaver>
    Good luck.

  • Can we use sequences with strings?

    In Sql can we use sequence with strings? ......please tel me

    Hi,
    Sorry, sequences only generate numbers.
    You could write a function in PL/SQL which generates a string, based on the value it gets from a sequence.
    Edited by: Frank Kulash on Jan 22, 2009 2:31 PM
    Of course, you can convert the number to a string, like Salim demonstrated. I assume you're talking about something that generates, for example, 'A', 'B', ..., 'Z', 'AA', 'BB', ..., 'ZZ', 'AAA', ...

  • Using expdp to export a mix of tables with data and tables without data

    Hi,
    I would like to create a .dmp file using expdp, exporting a set of tables with data and another set without data. Is there a way to do this in a single .dmp file? For example, I want all the tables in a schema with data, but for the fact tables in that schema, I only want the fact table objects, not the data. I thought it might be easier to create two separate .dmp files, one for each scenario, but would be nice to have one .dmp file that satisfies my requirement. Any help is appreciated.
    Thanks,
    -Rodolfo
    Edited by: user6902559 on May 11, 2010 12:05 PM

    You could do this with where clauses. Let's say you have 10 tables to export, 5 with data and 5 without data. I would do it like this
    tab1_w_data
    tab2_w_data
    tab3_w_data
    tab4_w_data
    tab5_w_data
    tab1_wo_data
    tab2_wo_data
    tab3_wo_data
    tab4_wo_data
    tab5_wo_data
    I would make one generic query
    query="where rownum = 0"
    and I would make 5 specific queries
    query=tab1_w_data:"where rownum > 0"
    query=tab2_w_data:"where rownum > 0"
    query=tab3_w_data:"where rownum > 0"
    query=tab4_w_data:"where rownum > 0"
    query=tab5_w_data:"where rownum > 0"
    The first query will be applied to all tables that don't have their own specific query and it will export no rows, the next 5 will apply to each of the corresponding table.
    Dean

  • Performance issues with data warehouse loads

    We have performance issues with our data warehouse load ETL process. I have run
    analyze and dbms_stats and checked database environment. What other things can I do to optimize performance? I cannot use statspack since we are running Oracle 8i. Thanks
    Scott

    Hi,
    you should analyze the db after you have loaded the tables.
    Do you use sequences to generate PKs? Do you have a lot of indexex and/or triggers on the tables?
    If yes:
    make sure your sequence caches (alter sequence s cache 10000)
    Drop all unneeded indexes while loading and disable trigger if possible.
    How big is your Redo Log Buffer? When loading a large amount of data it may be an option to enlarge this buffer.
    Do you have more then one DBWR Process? Writing parallel can speed up things when a checkpoint is needed.
    Is it possible using a direct load? Or do you already direct load?
    Dim

  • Strategy in Data Warehouse Table Structure

    I'm building a relational data warehouse, and there are two approaches that seem almost interchangeable to me, despite being quite different from each other. 
    The first approach is rather simple.  I have a "User" table with a bunch of foreign keys, and then I have a bunch of other tables containing user attributes.  One table for "department," another for "payroll type,"
    another for "primary location," and so on for 20 different user attributes.
    The second approach, instead of using 20+ tables, combines this down into far fewer.  I would have an "Attribute Type" table and "Attribute" table.  These two, in conjunction with a bridge table, could accommodate as many
    attributes as necessary within three tables.  If the business wants to track a new "user-related" attribute, I don't need any new tables.  I would simply add the new attribute into the "Attribute Type" table as, say, "attribute
    21," and begin tracking it.  All the work could be done without ever adding new tables or columns.
    Both approaches seem to maintain (at least) 3NF.  Is one approach better in certain circumstances, and the other approach more appropriate at other times?  Any insight is appreciated!
    BrainE

    Hi Brian,
    The second approach with three tables is not really good here. Query Optimizer in SQL Server has a few enhancements for Star/Snowflake schemas in DW environment and 3-table schema would not be able to benefit from them. It would be also harder to maintain,
    load data and query. Finally, your attributes could have different data types, which you need to store. 
    I would suggest to go with first solution (multiple dimensions table) and follow a few extra rules:
    Avoid nullable attributes
    Choose attribute data types as narrow as possible
    Avoid string attributes. If needed create separate dimension tables for them
    Use columnstore indexes and
    Upgrade to SQL Server 2014 if it is all possible - there are multiple enhancementsin batch-mode processing there
    Thank you!
    Dmitri V. Korotkevitch (MVP, MCM, MCPD)
    My blog: http://aboutsqlserver.com

  • Data loading into Data warehouse Tables

    Hi all,
    I am having scenario like this. I am having table with lacks of records. Every day, new data will come with some records DELETE ed, some new records
    INSERT ed, some records UPDATE ed. I have to load this new data into parent table.
    Currently, we are DELETING all parent data and inserting new data. It is taking a lot of time. There is NO PRIMARY KEY on this parent
    table.
    What are the best options to load the new data. Actually, there are several tables are there. I have mentioned one table for example.
    Oracle version is 9i.
    Thanks,
    Pal

    I need to know which is a better way of loading flat
    files data into Warehouse tables. SQL*Loader or
    Oracle DataMart Suite. Doesn't make much odds. The advantage of using the
    Delimited or Fixed Length transform is that it keeps
    everything within Data Mart Suite.
    1. What all types of databases are supported by DataMart
    ODBC. DataMart Suite will support most RDBMS's as an
    ODBC source. Sybase, SQL Server, Informix, DB2, Redbrick,
    Teradata. Note this is only a source for the
    data, not a store for the DataMart
    2. Can DataMart suite be programmed for auto operation of
    loading data.There is some limited scheduling functionality based on
    the NT scheduler service. Where you want to run one plan
    following another, you may need to get a bit clever, by
    including some preprocessing to check that the previous
    plan has completed or use a third party scheduler which
    would not start the plan until the previous plan had
    completed.
    3. What is the extend of errors handling in loading operation,
    supported by this suite. Pretty good. All the stuff from SQL Loader, plus each of the
    transforms has it's own error handling.
    ===
    Manish Jain (guest) wrote:
    : Hello,
    : I need to know which is a better way of loading flat
    : files data into
    : Warehouse tables. SQL*Loader or Oracle DataMart Suite.
    : 1. What all types of databases are supported by DataMart ODBC.
    : 2. Can DataMart suite be programmed for auto operation of
    : loading data.
    : 3. What is the extend of errors handling in loading operation,
    : supported by this suite.
    : regards,
    : Manish.
    Oracle Technology Network
    http://technet.oracle.com
    null

  • Issue with Data Load Table

    Hi All,
           i am facing issue with apex 4.2.4 ,using the  Data Load Table concept's and in this look up used the
          Where Clause option  ,it seems to be not working this where clause ,Please help me on this

    hi all,
        it looks this where clause not filter with 'N'  data ,Please help me ,how to solve this or help me on this

  • EEWB : in CRM 4.0 adding  field with data element = table type

    Hi,
    Do you have experience in CRM4.0 to add a customer field with data element that is a table type ?

    Marie,
    I don't believe it is possible in CRM 4.0.  Another drawback of the EEWB is that you can't add currency or quantity fields using the EEWB tool.
    Good Luck,
    Stephen

Maybe you are looking for

  • Flash freezes on Mac G5, dual 2,5 MHz

    Ever since I upgraded from Flash MX 2004 Professional to Flash Professional 8 on my PowerMac G5 it doesn't run. All I can do is open the software but as soon as I click on a menu or a button, whatever, like changing the size it freezes instantly. I'v

  • OS X Mavericks 10.9.2 update causes vertical window slide bar to disappear

    I have had OS X 10.9.1 with no problems on a MacBook (13 in., late 2008). The auto update installed 10.9.2 and the vertical slide bar on all windows disappears, making navigation of documents and windows impossible. The system installed itself twice

  • Jco.JCO$Exception when create a new adaptive model in NWDS

    HI friends: when I create a new adaptive model in NWDS, error occurs: Warning:Creating a connection with Metamodel language <zh_CN> failed. Continuing with language <zh> Fatal: com.sap.mw.jco.JCO$Exception: Missing R3NAME=... or ASHOST=... in connect

  • Sites using flash/shockwave cause Firefox to hang.

    If the shockwave flash plugin is enabled on version >22, visiting a site that contains flash content will cause Firefox to hang/react extremely slowly. I've tried disabling all add-ons with no effect. I'm using shockwave flash 11.2.r202.310 but it do

  • Where will I be able to get the iCloud software for mac OS X 10.5.8

    Hi people! I need to know how to download the iCloud software on my desktop. Also need to know how to set it up with my iPhone. Thanks