Quantcast
Channel: SCN: Message List - Conceptual and Logical schema generation
Viewing all articles
Browse latest Browse all 3

Conceptual and Logical schema generation

$
0
0

We are implementing a DWH project here and i'm having a small trouble with Powerdesigner 16.5. Not sure that i use it in a right way, but what i've done so far:

1. Created teoretical Conceptual DW model with all description part in it, inculding key description, relationsips etc..

2. Converted this model into Logical

3. Execute it against our DW which is in Hana 1.0, but here i got bunch of problems:

-when I check the model, then I got an error message which says that Owner is needed. Ok, i create schema name which matches schema name in my Hana box, for example DW. Also, I add this DW schema to TABLE->GENERAL->Schema

 

sample DDL looks like

 

DROP TABLE TABLE_1 CASCADE;

 

 

/*==============================================================*/

/* Table: TABLE_1                                               */

/*==============================================================*/

CREATE row TABLE TABLE_1 (

   ID                   INTEGER              NOT NULL,

   NAME                 VARCHAR(2),

   PRIMARY KEY CPBTREE (ID)

);

which is perfectly Ok

4. When I want to execute it, then i go to Apply Model changes to database and the DDL looks like

 

/*==============================================================*/

/* User: DW                                               */

/*==============================================================*/

CREATE SCHEMA DW;

 

 

/*==============================================================*/

/* Table: TABLE_1                                               */

/*==============================================================*/

CREATE row TABLE TABLE_1 (

   ID                   INTEGER              NOT NULL,

   NAME                 VARCHAR(2),

   PRIMARY KEY CPBTREE (ID)

);

 

Why do I have Create schema here? Am I doing smth wrong??

 

 

If i click Generate database, which I assume is not the right option i got:

 

DROP TABLE TABLE_1 CASCADE;

 

 

DROP SCHEMA DW CASCADE;

 

 

/*==============================================================*/

/* User: DW                                               */

/*==============================================================*/

CREATE SCHEMA DW;

 

 

/*==============================================================*/

/* Table: TABLE_1                                               */

/*==============================================================*/

CREATE row TABLE TABLE_1 (

   ID                   INTEGER              NOT NULL,

   NAME                 VARCHAR(2),

   PRIMARY KEY CPBTREE (ID)

);

 

 

is there a way how to load all schemas and avoid Create schema part in PD?


Viewing all articles
Browse latest Browse all 3

Trending Articles