niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » Oracle » Tools
Workspace Manager question
Post new topic   Reply to topic Page 1 of 1 [11 Posts] View previous topic :: View next topic
Author Message
DA Morgan
*nix forums Guru


Joined: 06 Mar 2005
Posts: 1042

PostPosted: Fri Feb 04, 2005 6:19 pm    Post subject: Re: Workspace Manager question Reply with quote

NowhereMan wrote:

Quote:
You need to be in SQL*Plus as all of my demos assume that
as the tool in use. At the UW we don't let students use
any GUI tools so that they will be as proficient on a
*NIX machine as on Windoze.


Same result:

SQL> @c:\temp\ex.sql
dbms_wm.GetSessionInfo(current_workspace,current_context,current_context_typ
e);
*
ERROR at line 6:
ORA-06550: line 6, column 9:
PLS-00302: component 'GETSESSIONINFO' must be declared
ORA-06550: line 6, column 1:
PL/SQL: Statement ignored

SQL

What permissions have been granted to the user? And were they
granted explicitly or through a role?
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace 'x' with 'u' to respond)
Back to top
NowhereMan
*nix forums beginner


Joined: 02 Feb 2005
Posts: 4

PostPosted: Fri Feb 04, 2005 11:46 am    Post subject: Re: Workspace Manager question Reply with quote

Quote:
You need to be in SQL*Plus as all of my demos assume that
as the tool in use. At the UW we don't let students use
any GUI tools so that they will be as proficient on a
*NIX machine as on Windoze.

Same result:

SQL> @c:\temp\ex.sql
dbms_wm.GetSessionInfo(current_workspace,current_context,current_context_typ
e);
*
ERROR at line 6:
ORA-06550: line 6, column 9:
PLS-00302: component 'GETSESSIONINFO' must be declared
ORA-06550: line 6, column 1:
PL/SQL: Statement ignored

SQL>
Back to top
DA Morgan
*nix forums Guru


Joined: 06 Mar 2005
Posts: 1042

PostPosted: Fri Feb 04, 2005 2:12 am    Post subject: Re: Workspace Manager question Reply with quote

NowhereMan wrote:

Quote:
Thanks, that looks very interesting.
I'm trying to run portions of your demo in SQL*Plus Worksheet.
This runs as expected:
SELECT owner, workspace, parent_workspace
FROM user_workspaces;
As does this:
execute dbms_wm.RemoveWorkspace('TryOut2', TRUE);

When I try this snippet, however,

set serveroutput on

DECLARE
current_workspace VARCHAR2(30);
current_context VARCHAR2(30);
current_context_type VARCHAR2(30);
BEGIN
dbms_wm.GetSessionInfo(current_workspace,current_context,
current_context_type);

dbms_output.put_line('Session currently in workspace: '
|| current_workspace);
END;

I get the error
dbms_wm.GetSessionInfo(current_workspace,current_context,
current_context_type);
*
ERROR at line 6:
ORA-06550: line 6, column 9:
PLS-00302: component 'GETSESSIONINFO' must be declared
ORA-06550: line 6, column 1:
PL/SQL: Statement ignored

Why is GetSessionInfo unrecognized?

Thanks for your help.


The best way I can think of is to read the concept docs
at http://tahiti.oracle.com and run the full demo at
http://www.psoug.org ... click on Morgan's Library ...
click on Workspace Manager.

You need to be in SQL*Plus as all of my demos assume that
as the tool in use. At the UW we don't let students use
any GUI tools so that they will be as proficient on a
*NIX machine as on Windoze.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace 'x' with 'u' to respond)
Back to top
NowhereMan
*nix forums beginner


Joined: 02 Feb 2005
Posts: 4

PostPosted: Thu Feb 03, 2005 11:57 am    Post subject: Re: Workspace Manager question Reply with quote

Thanks, that looks very interesting.
I'm trying to run portions of your demo in SQL*Plus Worksheet.
This runs as expected:
SELECT owner, workspace, parent_workspace
FROM user_workspaces;
As does this:
execute dbms_wm.RemoveWorkspace('TryOut2', TRUE);

When I try this snippet, however,

set serveroutput on

DECLARE
current_workspace VARCHAR2(30);
current_context VARCHAR2(30);
current_context_type VARCHAR2(30);
BEGIN
dbms_wm.GetSessionInfo(current_workspace,current_context,
current_context_type);

dbms_output.put_line('Session currently in workspace: '
|| current_workspace);
END;

I get the error
dbms_wm.GetSessionInfo(current_workspace,current_context,
current_context_type);
*
ERROR at line 6:
ORA-06550: line 6, column 9:
PLS-00302: component 'GETSESSIONINFO' must be declared
ORA-06550: line 6, column 1:
PL/SQL: Statement ignored

Why is GetSessionInfo unrecognized?

Thanks for your help.

Quote:
The best way I can think of is to read the concept docs
at http://tahiti.oracle.com and run the full demo at
http://www.psoug.org ... click on Morgan's Library ...
click on Workspace Manager.
Back to top
DA Morgan
*nix forums Guru


Joined: 06 Mar 2005
Posts: 1042

PostPosted: Thu Feb 03, 2005 7:01 am    Post subject: Re: Workspace Manager question Reply with quote

GreyBeard wrote:

Quote:
On Wed, 02 Feb 2005 19:45:05 -0800, DA Morgan wrote:


Get out of EM and you'll find there are a few materialized views and
other objects too. Creating a workspace creates a lot of objects.


Which, IIRC, you can see using the schema capabilities of EM.

I don't quite follow the reason for your 'get out of EM' comment. Care to
expand on it?

/FGB

I was just assuming since you refered only to the views you couldn't
see the other objects. As I don't use EM I couldn't quickly check it
out. No angst intended.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace 'x' with 'u' to respond)
Back to top
GreyBeard
*nix forums Guru Wannabe


Joined: 10 Mar 2005
Posts: 182

PostPosted: Thu Feb 03, 2005 4:13 am    Post subject: Re: Workspace Manager question Reply with quote

On Thu, 03 Feb 2005 05:11:30 +0000, GreyBeard wrote:

Quote:
On Wed, 02 Feb 2005 19:45:05 -0800, DA Morgan wrote:


Get out of EM and you'll find there are a few materialized views and
other objects too. Creating a workspace creates a lot of objects.

Which, IIRC, you can see using the schema capabilities of EM.

I don't quite follow the reason for your 'get out of EM' comment. Care to
expand on it?

/FGB

BTW: My comment based on OEM9i.
Back to top
GreyBeard
*nix forums Guru Wannabe


Joined: 10 Mar 2005
Posts: 182

PostPosted: Thu Feb 03, 2005 4:11 am    Post subject: Re: Workspace Manager question Reply with quote

On Wed, 02 Feb 2005 19:45:05 -0800, DA Morgan wrote:

Quote:

Get out of EM and you'll find there are a few materialized views and
other objects too. Creating a workspace creates a lot of objects.

Which, IIRC, you can see using the schema capabilities of EM.

I don't quite follow the reason for your 'get out of EM' comment. Care to
expand on it?

/FGB
Back to top
DA Morgan
*nix forums Guru


Joined: 06 Mar 2005
Posts: 1042

PostPosted: Thu Feb 03, 2005 2:45 am    Post subject: Re: Workspace Manager question Reply with quote

GreyBeard wrote:

Quote:
On Wed, 02 Feb 2005 18:50:17 -0500, NowhereMan wrote:


Hello,

I'm reading the "Oracle Workspace Manager Dev Guide", and came across this:

"A workspace logically groups collections of
new row versions from one or more version-enabled tables, and isolates these
versions until they are explicitly merged with production data or discarded,
thus
providing maximum concurrency."

Can someone help me understand how a workspace could have rows from more
than one table? How would the workspace get populated?

Thanks for any insight...


Create a schema with one table, fire up Oracle Enterprise Manager 9i,
create a workspace and enable the table in the workspace. Look at the
resulting schema.

You will find that the table gets replaced by a view that maps to the
table. With the addition of a few columns and supporting info, you can
now simulate a table that supports 'named versions' of rows. With a few
added packages you can now simulate commits, rollbacks, etc. for
transactions that persist across logoffs

lol/FGB

Get out of EM and you'll find there are a few materialized views and
other objects too. Creating a workspace creates a lot of objects.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace 'x' with 'u' to respond)
Back to top
GreyBeard
*nix forums Guru Wannabe


Joined: 10 Mar 2005
Posts: 182

PostPosted: Wed Feb 02, 2005 11:50 pm    Post subject: Re: Workspace Manager question Reply with quote

On Wed, 02 Feb 2005 18:50:17 -0500, NowhereMan wrote:

Quote:
Hello,

I'm reading the "Oracle Workspace Manager Dev Guide", and came across this:

"A workspace logically groups collections of
new row versions from one or more version-enabled tables, and isolates these
versions until they are explicitly merged with production data or discarded,
thus
providing maximum concurrency."

Can someone help me understand how a workspace could have rows from more
than one table? How would the workspace get populated?

Thanks for any insight...

Create a schema with one table, fire up Oracle Enterprise Manager 9i,
create a workspace and enable the table in the workspace. Look at the
resulting schema.

You will find that the table gets replaced by a view that maps to the
table. With the addition of a few columns and supporting info, you can
now simulate a table that supports 'named versions' of rows. With a few
added packages you can now simulate commits, rollbacks, etc. for
transactions that persist across logoffs

lol/FGB
Back to top
DA Morgan
*nix forums Guru


Joined: 06 Mar 2005
Posts: 1042

PostPosted: Wed Feb 02, 2005 11:22 pm    Post subject: Re: Workspace Manager question Reply with quote

NowhereMan wrote:

Quote:
Hello,

I'm reading the "Oracle Workspace Manager Dev Guide", and came across this:

"A workspace logically groups collections of
new row versions from one or more version-enabled tables, and isolates these
versions until they are explicitly merged with production data or discarded,
thus
providing maximum concurrency."

Can someone help me understand how a workspace could have rows from more
than one table? How would the workspace get populated?

Thanks for any insight...

The best way I can think of is to read the concept docs
at http://tahiti.oracle.com and run the full demo at
http://www.psoug.org ... click on Morgan's Library ...
click on Workspace Manager.

Seeing with your own eyes is a good way to understand the functionality.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace 'x' with 'u' to respond)
Back to top
NowhereMan
*nix forums beginner


Joined: 02 Feb 2005
Posts: 4

PostPosted: Wed Feb 02, 2005 10:50 pm    Post subject: Workspace Manager question Reply with quote

Hello,

I'm reading the "Oracle Workspace Manager Dev Guide", and came across this:

"A workspace logically groups collections of
new row versions from one or more version-enabled tables, and isolates these
versions until they are explicitly merged with production data or discarded,
thus
providing maximum concurrency."

Can someone help me understand how a workspace could have rows from more
than one table? How would the workspace get populated?

Thanks for any insight...
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [11 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 1:39 am | All times are GMT
navigation Forum index » Databases » Oracle » Tools
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Newbie question: How to forward a domain to a mailbox? leei Postfix 0 Fri Aug 24, 2007 4:55 pm
No new posts configuration question for httpd Karl Wang Apache 1 Fri Jul 21, 2006 2:10 pm
No new posts nim problem/question Ron AIX 0 Fri Jul 21, 2006 1:57 pm
No new posts question for JAVA developer who r using postgres sql as b... deepak pal PostgreSQL 1 Fri Jul 21, 2006 9:00 am
No new posts Encryption Question dtuttle1@gmail.com Berkeley DB 2 Thu Jul 20, 2006 10:09 pm

Car Loan | Mortgages | Debt Help | Mortgages | MPAA
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2308s ][ Queries: 20 (0.1193s) ][ GZIP on - Debug on ]