dbTalk Databases Forums  

analyze_schema on remote database?

comp.databases.oracle.server comp.databases.oracle.server


Discuss analyze_schema on remote database? in the comp.databases.oracle.server forum.



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

Default analyze_schema on remote database? - 08-05-2011 , 07:24 AM






(This in Oracle 11g.)

I'm trying to run DBMS_UTILITY.ANALYZE_SCHEMA on a database through a
link.

I'm connected as USER01/PW01 (AT) LINK01 (DOT)

First, I tried DBMS_UTILITY.ANALYZE_SCHEMA ('USER01','COMPUTE');

I get "user 'USER01' does not exist.

Same thing if I substitute 'USER01@LINK01' for 'USER01'.

Can I do this? How?

Reply With Quote
  #2  
Old   
Mladen Gogala
 
Posts: n/a

Default Re: analyze_schema on remote database? - 08-05-2011 , 12:13 PM






On Fri, 05 Aug 2011 05:24:46 -0700, blindsey wrote:

Quote:
(This in Oracle 11g.)

I'm trying to run DBMS_UTILITY.ANALYZE_SCHEMA on a database through a
link.

Why in the world would you do DBMS_UTILITY.ANALYZE_SCHEMA and not
DBMS_STATS.GATHER_SCHEMA_STATS on 11G?

Quote:
I'm connected as USER01/PW01 (AT) LINK01 (DOT)

First, I tried DBMS_UTILITY.ANALYZE_SCHEMA ('USER01','COMPUTE');

I get "user 'USER01' does not exist.

Same thing if I substitute 'USER01@LINK01' for 'USER01'.

Can I do this? How?

You cannot. You have to log in the database and run stats locally.





--
http://mgogala.byethost5.com

Reply With Quote
  #3  
Old   
vsevolod afanassiev
 
Posts: n/a

Default Re: analyze_schema on remote database? - 08-11-2011 , 06:54 PM



First try running it locally while connected as same user that was
used in the db link.
Once you get it working try executing the same thing remotely.

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.