dbTalk Databases Forums  

Optimize schema problem

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Optimize schema problem in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Hui
 
Posts: n/a

Default Optimize schema problem - 07-19-2004 , 11:25 PM






I use optimize schema on a cube and there is no join for the processing. I had seen processing errors when the fact table had foreign keys not in a dimension table. However, I happened to find today that the processing did not show any error even though there were foreign keys in the fact table but not in dimension tables. I verified the data and reprocessed the cube, still saw no error in the processing. Anyone has idea about this kind of behavior?

Thanks!

Reply With Quote
  #2  
Old   
Hui
 
Posts: n/a

Default Optimize schema problem - 07-20-2004 , 08:38 AM






Forgot to mention: I copy the cube to another server and
it won't process because a member key is not found in the
dimension table. So the problem is with a specific server.
Don't know what's wrong with that server.

Reply With Quote
  #3  
Old   
Dave Wickert [MSFT]
 
Posts: n/a

Default Re: Optimize schema problem - 07-21-2004 , 12:22 PM



Go in with Analysis Manager and try to process the partition. At the bottom
of the dialog box is an "Advanced" button. It allows you to specify how many
errors you are willing to accept. The default is 0 -- meaning that it will
always fail on 1 error. Someone might have increased or disabled the error
all together.
--
Dave Wickert [MSFT]
dwickert (AT) online (DOT) microsoft.com
Program Manager
BI SystemsTeam
SQL BI Product Unit (Analysis Services)
--
This posting is provided "AS IS" with no warranties, and confers no rights.

"Hui" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
Forgot to mention: I copy the cube to another server and
it won't process because a member key is not found in the
dimension table. So the problem is with a specific server.
Don't know what's wrong with that server.



Reply With Quote
  #4  
Old   
Dave Wickert [MSFT]
 
Posts: n/a

Default Re: Optimize schema problem - 07-22-2004 , 03:58 PM



Very strange. If you haven't turned on the system-wide processing log file,
please do so. Bring up Analysis Manager, right-click on the server name and
select "Properties..." then in the "Logging" tab, check on the processing
log file and specify something simple, like C:\ProcessingLog.txt

Process your partition. Then go to the processing log file and look at the
SQL statement which the service will use.
Execute it interactively. Is it returning fact rows which contain FK to
dimension members which don't exist?

What will sometimes happen is that a DBA will run the optimize schema wizard
and things will work as expected. . . then at a future time there will be
some kind of structural change, e.g. remove and readd the dimension to the
cube. This removes the optimization step.
--
Dave Wickert [MSFT]
dwickert (AT) online (DOT) microsoft.com
Program Manager
BI SystemsTeam
SQL BI Product Unit (Analysis Services)
--
This posting is provided "AS IS" with no warranties, and confers no rights.

"Hui" <Hui (AT) discussions (DOT) microsoft.com> wrote

Quote:
It is 0, but the processing is still successful.

"Dave Wickert [MSFT]" wrote:

Go in with Analysis Manager and try to process the partition. At the
bottom
of the dialog box is an "Advanced" button. It allows you to specify how
many
errors you are willing to accept. The default is 0 -- meaning that it
will
always fail on 1 error. Someone might have increased or disabled the
error
all together.
--
Dave Wickert [MSFT]
dwickert (AT) online (DOT) microsoft.com
Program Manager
BI SystemsTeam
SQL BI Product Unit (Analysis Services)
--
This posting is provided "AS IS" with no warranties, and confers no
rights.

"Hui" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message
news:088801c46e5e$d5368e00$a301280a (AT) phx (DOT) gbl...
Forgot to mention: I copy the cube to another server and
it won't process because a member key is not found in the
dimension table. So the problem is with a specific server.
Don't know what's wrong with that server.






Reply With Quote
  #5  
Old   
Hui
 
Posts: n/a

Default Re: Optimize schema problem - 07-27-2004 , 04:50 PM



I just found out that the problem was not with Analysis
Server. A member was deleted from a dimension table and
the dimension had not been fully processed since then.
Then new facts with that member ID were added and the cube
processed successfully.

Quote:
-----Original Message-----
Very strange. If you haven't turned on the system-wide
processing log file,
please do so. Bring up Analysis Manager, right-click on
the server name and
select "Properties..." then in the "Logging" tab, check
on the processing
log file and specify something simple, like
C:\ProcessingLog.txt

Process your partition. Then go to the processing log
file and look at the
SQL statement which the service will use.
Execute it interactively. Is it returning fact rows which
contain FK to
dimension members which don't exist?

What will sometimes happen is that a DBA will run the
optimize schema wizard
and things will work as expected. . . then at a future
time there will be
some kind of structural change, e.g. remove and readd the
dimension to the
cube. This removes the optimization step.
--
Dave Wickert [MSFT]
dwickert (AT) online (DOT) microsoft.com
Program Manager
BI SystemsTeam
SQL BI Product Unit (Analysis Services)
--
This posting is provided "AS IS" with no warranties, and
confers no rights.

"Hui" <Hui (AT) discussions (DOT) microsoft.com> wrote in message
news:FB134691-0B14-410A-8F8C-82DF68B78A8F (AT) microsoft (DOT) com...
It is 0, but the processing is still successful.

"Dave Wickert [MSFT]" wrote:

Go in with Analysis Manager and try to process the
partition. At the
bottom
of the dialog box is an "Advanced" button. It allows
you to specify how
many
errors you are willing to accept. The default is 0 --
meaning that it
will
always fail on 1 error. Someone might have increased
or disabled the
error
all together.
--
Dave Wickert [MSFT]
dwickert (AT) online (DOT) microsoft.com
Program Manager
BI SystemsTeam
SQL BI Product Unit (Analysis Services)
--
This posting is provided "AS IS" with no warranties,
and confers no
rights.

"Hui" <anonymous (AT) discussions (DOT) microsoft.com> wrote in
message
news:088801c46e5e$d5368e00$a301280a (AT) phx (DOT) gbl...
Forgot to mention: I copy the cube to another
server and
it won't process because a member key is not found
in the
dimension table. So the problem is with a specific
server.
Don't know what's wrong with that server.





.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.