How can create snapshot...
hi all
in my testing database i want to create snapshot..through sqlplus
1.i create statpack ---- spcreate.sql file...as "sys" user
2. then try to conn as "perfstat" but i got error
SQL> conn perfstat/perfstat
ERROR:
ORA-00604: error occurred at recursive SQL level 1
ORA-00922: missing or invalid option
ORA-06512: at line 2
what should i do...
thanx
regards
Mohammadi
CREATE SNAPSHOT command
PURPOSE:
To create a snapshot. A snapshot is a table that contains the
results of a query of one or more tables or views, often located on
a remote database.
SYNTAX:
CREATE SNAPSHOT [schema.]snapshot
[ [PCTFREE integer] [PCTUSED integer]
[INITRANS integer] [MAXTRANS integer]
[TABLESPACE tablespace]
[STORAGE storage_clause]
[ USING INDEX [ PCTFREE integer | TABLESPACE tablespace
| INITTRANS integer | MAXTRANS integer
| STORAGE storage_clause ] ...
| [CLUSTER cluster (column [, column]...)] ]
[ REFRESH [FAST | COMPLETE | FORCE] [START WITH date] [NEXT date]]
AS subquery
where:
schema
is the schema to contain the snapshot. If you omit schema, Oracle
creates the snapshot in your schema.
snapshot
is the name of the snapshot to be created.
Oracle chooses names for the table, views, and index used to
maintain the snapshot by prefixing the snapshot name. To limit
these names to 30 bytes and allow them to contain the entire
snapshot name, Oracle Corporation recommends that you limit your
snapshot names to 23 bytes.
PCTFREE
PCTUSED
INITRANS
MAXTRANS
establishes values for these parameters for the internal table
Oracle uses to maintain the snapshot's data.
TABLESPACE
specifies the tablespace in which the snapshot is to be created. If
you omit this option, Oracle creates the snapshot in the default
tablespace of the owner of the snapshot's schema.
STORAGE
establishes storage characteristics for the table Oracle uses to
maintain the snapshot's data.
USING INDEX
specifies the storage characteristics for the index on a simple
snapshot. If the USING INDEX clause not specified, the index is
create with the same tablespace and storage parameters as the
snapshot.
CLUSTER
creates the snapshot as part of the specified cluster. Since a
clustered snapshot uses the cluster's space allocation, do not use
the PCTFREE, PCTUSED, INITRANS, or MAXTRANS parameters, the
TABLESPACE option, or the STORAGE clause in conjunction with the
CLUSTER option.
REFRESH
specifies how and when Oracle automatically refreshes the snapshot:
FAST
specifies a fast refresh, or a refresh using only the
updated data stored in the snapshot log associated
with the master table.
COMPLETE
specifies a complete refresh, or a refresh that re-
executes the snapshot's query.
FORCE
specifies a fast refresh if one is possible or
complete refresh if a fast refresh is not possible.
Oracle decides whether a fast refresh is possible at
refresh time.
If you omit the FAST, COMPLETE, and FORCE options,
Oracle uses FORCE by default.
START WITH
specifies a date expression for the first automatic
refresh time.
NEXT
specifies a date expression for calculating the
interval between automatic refreshes.
Both the START WITH and NEXT values must evaluate to a time in the
future. If you omit the START WITH value, Oracle determines the
first automatic refresh time by evaluating the NEXT expression when
you create the snapshot. If you specify a START WITH value but omit
the NEXT value, Oracle refreshes the snapshot only once. If you
omit both the START WITH and NEXT values or if you omit the REFRESH
clause entirely, Oracle does not automatically refresh the snapshot.
AS subquery
specifies the snapshot query. When you create the snapshot, Oracle
executes this query and places the results in the snapshot. The
select list can contain up to 253 expressions. A snapshot query is
subject to the same restrictions as a view query.
PREREQUISITES:
To create a snapshot in your own schema, you must have CREATE
SNAPSHOT system privilege. To create a snapshot in another user's
schema, you must have CREATE ANY SNAPSHOT system privilege.
Before a snapshot can be created, the user SYS must run the SQL
script DBMSSNAP.SQL on both the database to contain the snapshot and
the database(s) containing the tables and views of the snapshot's
query. This script creates the package SNAPSHOT which contains both
public and private stored procedures used for refreshing the
snapshot and purging the snapshot log. The exact name and location
of this script may vary depending on your operating system.
When you create a snapshot, Oracle creates a table, two views, and
an index in the schema of the snapshot. Oracle uses these objects
to maintain the snapshot's data. You must have the privileges
necessary to create these objects. For information on these
privileges, see the CREATE TABLE, CREATE VIEW, and CREATE INDEX
commands.
The owner of the schema containing the snapshot must have either
space quota on the tablespace to contain the snapshot or UNLIMITED
TABLESPACE system privilege. Also, both you (the creator) and the
owner must also have the privileges necessary to issue the
snapshot's query.
To create a snapshot, you must be using Oracle with the procedural
option. To create a snapshot on a remote table or view, you must
also be using the distributed option.
Similar Messages
-
How to create snapshot on Oracle VM 3.1.1
Dear All,
Any one know about how to create snapshot in Oracle VM 3.1.1? Where we can find it in Oracle VM 3.1.1?
Please kindly shared experience about this.
Thanks and regards,
VandyThank you very much for your help.
Now I am using Sun Storage 6180 Array direct attach (Fiber Chanel) with 2 Sun Fire X4100M2 Servers as Cluster, I don't know whether this storage can create snapshot for this or not? How about Oracle VM Manager can help for this?
It seem more difficult than VMware vSphere, if Oracle can create a option for this is very good.
Thanks and regards,
Vandy -
How can create a JTree with cellRender is checkbox realized multiple selec
How can create a JTree with cellRender is checkbox realized multiple selection function.thanks for every
one's help.Hi,
1. Create a value node in your context name Table and set its cardinality to 0:n
2. Create 2 value attributes within the Table node name value1 and value2
3. Goto Outline view> Right click on TransparentUIContainer>Apply Template> Select Table>mark the node Table and it's attributes.
you have created a table and binded its value to context
Table UI properties
4.Set Selection Mode to Multi
5.Set Visible Row Count to 5
6.ScrollableColCount to 5
In your implemetaion, you can add values to table as follow:
IPrivate<viewname>.ITableElement ele = wdContext.nodeTable().createTableElement();
ele.setValue1(<value>);
ele.setValue2(<value>);
wdContext.nodeTable().addElement(ele);
The above code will allow you to add elements to your table node.
Regards,
Murtuza -
How can create and change PCA line items.
How can create and change PCA line items.
Please tell me the process and t.codes.If you are in version < 4.7 ee then use 9KE0 tcode for passing profict center entries or trasnafer of balances from one profit center to another.
If you are in new GL regular FI entry like FB50 will hold good for account types "S" -
How to create snapshot portlet and snapshot query using server API
How to create snapshot portlet and snapshot query using server API
Regards
DheerajHi Sebastian,
I have used the query and it is working fine. but, How could i include the headers of the query also in to the Excel Sheet.
RehaanKhan. M
see the method discussed here
http://sqlblogcasts.com/blogs/madhivanan/archive/2008/10/10/export-to-excel-with-column-names.aspx
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
How can create a Simple Flash Preloader
Hi ,
How can create preloader in flash (AS2).
Please help me.put a textfield on stage in frame 1. assign its instance name to be tf in the properties panel. change your code to:
kglad wrote:
stop();
this.onEnterFrame=function(){
var bl:Number=this.getBytesLoaded();
var bt:Number=this.getBytesTotal();
tf.text=Math.round(100*bl/bt);
// you can use bl and bt to animate your movieclip, if you have one
if(bl==bt){
delete this.onEnterFrame;
play(); -
how can create free apple id
did this search for you
https://www.google.dk/search?client=opera&q=iphone+stuck+in+headphone+mode&sourc eid=opera&ie=utf-8&oe=utf-8&channel=suggest#hl=da&gs_rn=14&gs_ri=psy-ab&tok=8byg TCPc3ltPmaPPMtoO0w&pq=iphone%20stuck%20in%20headphone%20mode&cp=10&gs_id=14&xhr= t&q=create+apple+id&es_nrs=true&pf=p&client=opera&hs=mdj&channel=suggest&sclient =psy-ab&oq=create+app&gs_l=&pbx=1&bav=on.2,or.r_cp.r_qf.&bvm=bv.46751780,d.bGE&f p=a420e64a21601afc&biw=1825&bih=750
got this result
https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/wa/createAppleId -
How can create other user same as oracle user
Hi,
I want create one user on linux same as oracle user how can create it?
I have create monitoring purpose one user created same as oracle user name is user01 but how can create it?creating an user in linux
useradd user01 -g dba
i am considering the oracle administrator group is dba ( which is asked during the installation of oracle ) -
How can create a table in sap script?
Hi,
How to create a table in the sap script.i Have to use table in the main window with 11 rows and 3 columns. can any one send sample code. Any ideas?¿
THKS 4all.Try and check on the below logic....
1. write -
2. write headings with '|' at start and end as well as the field separator.
3. write -
4. similar to step two write the data with pipe separators.
5. write -
regards
Anurag -
How can create SEGMENTS and IDOC TYPE in BADI in ECC 6.0 version
Hi All,
Can any one help, how to create SEGMENTS and IDOC TYPE in BADI in ECC 6.0 version.This is my task.
Given BADI name was----VENDOR_ADD_DATA_BI .
ThanksAnil,
look at this thread ..may be this helps you.
Re: 824 IDOC and BADI/User Exit
sateesh. -
How can create air app for version 1.5 with cs5?
How can be created an application for the latest Adobe AIR version ( 1.5 ) with Flash CS5. I have a licensed cs3 and I consider to buy cs5. I want to create an applications for the stable version of Adobe AIR.
I posted about this last week. This should help:
http://forums.adobe.com/message/2829283#2829283 -
How can create badi in version ECC6.0
Hi All,
How can u crate Badi in ECC6.0.We r in Ecc6.o.Ofter giving SE18 and enter badi name and press create button.It will not accept to creat the badi instead of dey giving error(we have to create first enhancement spot).
Coupd any one help regarding this.
ThanksHello Anil,
In SE18 transaction try using the Menu Path
Utilities-Create Classic Badi
With Regards
Avisesh. -
How can create color table for "write bmp file.vi"?
i want to create a color table for a 8 bit bitmap.The color table is the input of "write bmp file.vi". how can i make it?
thanks!> i want to create a color table for a 8 bit bitmap.The color table is
> the input of "write bmp file.vi". how can i make it?
> thanks!
>
There is a color control on the front panel numerics palette. A color
in LV is a four byte xRGB formatted number. So you can make an array of
the color numerics and set them by hand or format the numbers however
you like. If unwired it will use the LV color palette which is pretty
much the HTML palette.
Greg McKaskle -
How can create webi content link in BI Workspace?
Dear Expert,
I'm facing problem with creating 2 webis content link in BI Workspace.
I tried to follow this Creating a BI Workspace in BI4 Feature Pack 3.
But I can not find "PARAMETER_OUT".
Please help me to how can I create "PARAMETER_OUT" to connect with "PARAMETER_IN".
Best regards,
Chenna YonI have created a "Scope Resource Filter"
Knowledge Management --> Content-Management --> Global Services --> Resource Filters --> Scope Resource Filter
"URL (Content Link) Mode (Documents/Web-Pages Only): *" <<exclude>>
I have created a new crawler which uses this filter and re-indexed my content, but without success.
I guess this is the right way, but It seems that I have forgot something...
I would appreciate any help
Thank you and best regards
Khaled el Taki / Cologne, Germany -
How can Create an alias in orion?
I have a plroblem, i'm using apache like web server, there is a site working, Somebody assign me the task for use orion like jsp server, in apache there are alias to folders with images and another files and directories, i want check this site from orion and appears errors, i suppose that errors are cause the alias, i would ask you how create these alias in orion.
Another doubt, how can run apache an orion together.
I have modified the archives xml in orion for restrict certains directories (in directories config and default-web-app), but i must acces into orion services, i made some examples for try, i can use this in the site running in apache.
I graceful with you if can help me, thanks and regards.you dont create a infopack on DTP rather you need to create on datasource.
rightclick on datasource - create infopack (when you schedule this infopack, it will load data only till PSA. From there you need to use DTP to load to further data targets)
Maybe you are looking for
-
Help Please! How can I tell what is stored on my iPod?
I just recently got a new iPod Nano, and started using iTunes to upload music to it. But, for some reason, I can only fit like 60 or so songs onto it. I have a 1 GB Nano. If I click onto my iPod in iTunes, it says at the bottom of the screen that I h
-
How to Download the Custom Package Created with all the objects
Hi All, Could any body let me know how to download a custom package created in sap with all the objects including webdynpros and modulepool programs. Thanks.
-
Dear Friends, I have a lot of c-stored procedures for DB2, now,I want to use these c-stored procedures in Oracle directly without any changes. I'm not sure whether this method is right. Please help me. Guang
-
Registration key required for database 10g software
receive a password and message "Thank you for registering", but never get the key necessary to install software on disk that came with textbook--very frustrating
-
PM Querry regarding PRT & material
hi anybody 1. plz tell what a PRT & material counter and ver r they used and how r they created? regards pushpa