PL\SQL Create table
Hi can anyone help with the below i have 3 variables that I select into then I want to use these variables in the create table but the CREATE table part errors saying it was expecting some thing else ???
declare
month_1 date;
month_2 date;
month_3 date;
begin
select cast('15-'||to_char(add_months(trunc(sysdate),-2),'Mon')||to_char(add_months(trunc(sysdate),-2),'-YYYY')as date) into month_1 from dual ;
select cast('15-'||to_char(add_months(trunc(sysdate),-1),'Mon')||to_char(add_months(trunc(sysdate),-1),'-YYYY')as date) into month_2 from dual ;
select cast('15-'||to_char(trunc(sysdate),'Mon')||to_char(trunc(sysdate),'-YYYY')as date) into month_3 from dual ;
CREATE TABLE TEMP_TABLE
(ACCOUNT_NO NUMBER(11),
ACCOUNT_NAME VARCHAR(152bytes),
month_1 NUMBER,
month_2 NUMBER,
month_3 NUMBER
END;
There were some issues with your code. You can't (without the use of double quotes) start a column name with a number or include hyphens. Also, VARCHAR(152bytes) should be VARCHAR2(152 byte) or even VARCHAR2(152).
This may help;
SQL> declare
month_1 varchar2(11);
month_2 varchar2(11);
month_3 varchar2(11);
begin
select to_char(add_months(trunc(sysdate,'mm')+14,-2),'MON_DD_YYYY') into month_1 from dual;
select to_char(add_months(trunc(sysdate,'mm')+14,-1),'MON_DD_YYYY') into month_2 from dual;
select to_char(trunc(sysdate,'mm')+14,'MON_DD_YYYY') into month_3 from dual;
execute immediate 'create table temp_table( '
|| 'ACCOUNT_NO NUMBER(11), '
|| 'ACCOUNT_NAME VARCHAR(152), '
|| month_1 || ' NUMBER, '
|| month_2 || ' NUMBER, '
|| month_3 || ' NUMBER) ';
end;
PL/SQL procedure successfully completed.
SQL> desc temp_table
TABLE temp_table
Name Null? Type
ACCOUNT_NO NUMBER(11)
ACCOUNT_NAME VARCHAR2(152)
DEC_15_2006 NUMBER
JAN_15_2007 NUMBER
FEB_15_2007 NUMBER
Similar Messages
-
JDBB SQL create table PreparedStatement
Hi
How can I use preparedSatement to create a variable table?
PreparedStatement ps=con.prepareStatement("what is the SQL Code for a table named [?]");
ps.setString(1, tableName);
ResultSet r = ps.executeQuery();I think it'd be the usual SQL:
CREATE TABLE X
FOO INTEGER,
BAR VARCHAR2(80),
etc.
)The types would have to be correct for your RDB.
I don't think it'd be a query, so it wouldn't return a ResultSet. I believe it's like an UPDATE, so you'd call executeUpdate on the statement. - MOD -
Hi guys
im getting an exception with create table. Im sure im doing it with the right syntax but maybe you guys could help me.
This is the exception:
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in CREATE TABLE statement.
at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcStatement.execute(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(Unknown Source)this is the code
Statement stmt1 = conn.createStatement();
stmt1.executeQuery("CREATE TABLE " + t_UID + "Bank (Type int(5), amount int(10))");Ne help is appreciated thanks guysStatement stmt1 = conn.createStatement();
stmt1.executeQuery("CREATE TABLE " + t_UID + "Bank
(Type int(5), amount int(10))");Print out the String you are trying to execute - I would guess you are missing a space or a "." between t_UID and "Bank". -
Hi,
I am trying to create table using EXEC SQL. But, the table that I had created using EXEC SQL is not shown in data dictionary. I can not see that table from SE11. If I run the same program again, then gives error about there is already a table that I want to create. So, How can see it? Is seeing that table possible?
EXEC SQL.
CREATE TABLE ZCOPYTABLE(
NAME CHAR(15) NOT NULL,
SURNAME CHAR(15) NOT NULL,
TEL CHAR(10) NOT NULL,
PRIMARY KEY (NAME, SURNAME)
ENDEXEC.Hello Huseyin,
I don't think you can use the Native SQL statements for DDL (data definition language) statements in SQL.
The reason is that the Native SQL statements by-pass the SAP Application Server and are executed directly at the Database Server. You will find more information on the SAP Online Help Documentation site.
Since the ABAP Dictionary is very much an application, it fails to recognize the tables which were not created through it.
The DDL statements in Native SQL are only for advanced database adminstration tasks.
Hope this helps.
Regards,
Anand Mandalika. -
In training, PL/SQL create table and insert question. (easy for some of you
I have an empty table called messages. The task is this:
a)Insert the numbers 1 to 10, excluding 6 and 8.
b)Commit before the end of the block.
I did this:
SET SERVEROUTPUT ON
SET VERIFY OFF
BEGIN
INSERT INTO messages VALUES (1,2,3,4,5,6,7,9,10);
END;
Which fails at messages. The table is there, I checked and it's empty. ORA-06550:Hello,
c1 is not a valid column name I posted as an example , you need to provide valid column name of your table.
Either post your table structure or replace c1, c2, c3 ... with valid column name from your table.
INSERT INTO MESSAGES (c1, c2, c3, c4, c5, c9, c10)
or
insert into messages (your table column name1 , column name2 ,....) values (....);Regards
Edited by: OrionNet on Feb 21, 2009 9:51 PM -
Randomly generate an ID for SQL Create Table command
Hi,
I need help to randomly generate an integer, which i can use as a primary key for the ID of a table field. I have no idea how to do this so that it generates a different number every single time.
Right now it just increments the ID by 1. Maybe, is there a way to get the last ID value of the table field and then increment starting from that one? thanksYour analysis is flawed! One of my main reasons for
doing this is to reduce the load on the db server. I
don't have to go to the db to get an id every time I
need one. Every now and again (usually less than one
in a 2000) I have to repeat an insert operation.
You already stated that this was the reason, so I used that as part of my assessment. With most, perhaps all databases, the ability to increment a key is done as part of the insert operation. It requires no additional 'trip' to the database to get the ID. There is so much wrong with your idea, I hardly know where to start. I wouldn't be so firm except you stated that you do this all the time. Even using it once is very questionable I wouldn't want this idea to profilerate to other peoples systems without comment.
You also said:
On one project I was having to place usage transaction records
into a database with each one needing an ID. I started using your
technique but it was taking almost as much time as the insert of
each transaction into the database.I agree, and I think dcminter agreed that there are less expensive practices then max(fld)+1 which are in fact using the vendor specific capabilities. However, if this was taking as long as your insert, there was probably something else wrong. For example, if the field you are getting the max value for isn't indexed, or isn't the first field in a contatenated index (an index of multiple fields), then some databases (there are exceptions like redbrick) will require either a full table scan, an index scan or an ackward index lookup to give back the max value. It shouldn't be that way, but it is and you have undestand how your database is resolving max() in order to make the best decisions.
I stand by analysis and I would suggest that rather then use your method "all the time" that you save it for that unusual situation where nothing else will work for you. -
How to grant create table privilege for a user on a specific table
Hi:
I created a user, for a test scenario. I granted this user create any table, and I made the default tablespace as example.
When I connect as the user and try to create a table, I get this:
SQL> create table T1 (NAME varchar2 (500), AGE number(2));
create table T1 (NAME varchar2 (500), AGE number(2))
ERROR at line 1:
ORA-01950: no privileges on tablespace 'EXAMPLE'
How can I grant the necessary privilege to have user create/delete tables on tablespace example?
Thanks.
DAcreate user ADAM identified by radge default tablespace EXAMPLE
quota 10M on EXAMPLE;
for example 10Mbytes given to Example tablespace.... or you can write:
.....quota unlimited on EXAMPLE
and
grant connect to ADAM
grant create table to ADAM .....
or
grant connect , resource to ADAM .... although grant resource is not recommended...
....and something else....
you should define temporary tablespace in create user command... otherwise the system would be used...
Greetings...
Sim
Message was edited by:
sgalaxy -
Getting error while creating table from one database to other.
Hi,
We are getting below error while creating the table from one database to other.
SQL> create table fnd_lobs parallel compress as select * from [email protected];
create table fnd_lobs parallel compress as select * from [email protected]
ERROR at line 1:
ORA-01555: snapshot too old: rollback segment number 28 with name "_SYSSMU28$"
too small
ORA-02063: preceding line from EEXIT2TEST
ORA-01555: snapshot too old: rollback segment number 28 with name "_SYSSMU28$"
too small
ORA-02063: preceding line from EEXIT2TEST
ORA-01555: snapshot too old: rollback segment number 28 with name "_SYSSMU28$"
too small
ORA-02063: preceding line from EEXIT2TEST
ORA-01555: snapshot too old: rollback segment number 28 with name "_SYSSMU28$"
too small
Regards,
Bhatiahi
what are the apps version local and remote database???
Snapshot too old errors occur because Oracle can 't reconstruct a consistent
image of a block for the purposes of a consistent read.
I feel at remote database, you are using UNDO, it will be rather easy to iincrease the undo retention time or increase the undo tablespace size.. if you are dealing with roll back segments, you may have rollback segments whose optimal values are too small...
increase roll back segments size and select again then
the following metalink notes might be helpful
ORA-01555 "Snapshot too old" - Detailed Explanation Doc ID: 40689.1
How To Avoid ORA-01555: Snapshot Too Old When Running PAAPIMP Doc ID: 603259.1
OERR: ORA 1555 "snapshot too old (rollback segment too small)" Doc ID: 18954.1 -
While creating Table it shows error as 'missing or invalid option
I had log on to ap/ap@vis in sqlplus and try to create table but showing error.....here below is the table
Create table Purchase_Order
(Item varchar2(10),
Item_Desc varchar2(100),
Item_Cost Number(7),
Item_Qty Number(7),
Item_Date Date,
Need_by_date date,
Last_updated_date date,
last_updated_by number(10),
creation_date date,
created_by number(10),
Attributed_category varchar2(100),
attribute1 varchar2(100),
attribute2 varchar2(100),
attribute3 varchar2(100),
attribute4 varchar2(100),
attribute5 varchar2(100),
attribute6 varchar2(100));
But it showing error as ORA-00922:missing or invalid optionIt works for me
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL> Create table Purchase_Order
2 (Item varchar2(10),
3 Item_Desc varchar2(100),
4 Item_Cost Number(7),
5 Item_Qty Number(7),
6 Item_Date Date,
7 Need_by_date date,
8 Last_updated_date date,
9 last_updated_by number(10),
10 creation_date date,
11 created_by number(10),
12 Attributed_category varchar2(100),
13 attribute1 varchar2(100),
14 attribute2 varchar2(100),
15 attribute3 varchar2(100),
16 attribute4 varchar2(100),
17 attribute5 varchar2(100),
18 attribute6 varchar2(100));
Table created.
SQL> -
ORA - 00922 Missing or Invalid option error while creating table
I am tryin to create a table with the following syntax
1 CREATE TABLE TEST_FOR_SCRIPT (
2 TEST_A NUMBER NOT NULL
3 ,TEST_B VARCHAR2(30) DEFAULT 'UNDEFINED' NOT NULL
4 )
5* @storage_parms_table_cmn
6 /
@storage_parms_table_cmn
ERROR at line 5:
ORA-00922: missing or invalid option
Here, storage_parms_table_cmn.sql reads like this
tablespace DBK_CMN_DATA
Can anyone please guide me how to overcome this error.What is your Oracle Version?
i can do it exactly what you did without error
sql> CREATE TABLE vd.TEST_FOR_SCRIPT (
2 TEST_A NUMBER NOT NULL
3 ,TEST_B VARCHAR2(30) DEFAULT 'UNDEFINED' NOT NULL
4 )
5 @test1.sql
6 /
Table created.
Cheers
http://fiedizheng.blogspot.com/ -
Hi Chirs
Recently we found this error in JAVA below, as per my understanding, a create operation is holding X lock on table SYS.TABLES for at least 30s, this cause another query operation requering IS lock on table SYS.TABLES is waiting for more than 30s and lead to TT6003 at last.
But I still have some problems about this error:
1. Create table operation normally should be very shot, how it hold the X lock on table SYS.TABLES for serveral seconds.
2. The error indicates query table operation also need locks on table SYS.TABLES. I understand create table needs lock on SYS.TABLES before updating information on it, but query table also need lock (IS lock) on SYS.TABLES? Query table no need to require lock as I thought.
3. How can we create table correctly to avoid TT6003?
Thank you in advance!
java error:
2014-10-23 16:41:25.920 [ajp-bio-10002-exec-2] INFO webstore - 1414053654227_4289_300174投放异常
org.springside.modules.service.ServiceException: 异常
### Error querying database. Cause: java.sql.SQLException: [TimesTen][TimesTen 11.2.2.6.0 ODBC Driver][TimesTen]TT6003: Lock request denied because of time-out
Details: LockWait[30000ms] Tran 37.108 (pid 16637) wants IS lock on table SYS.TABLES. But tran 19.1078876 (pid 14894) has it in X (request was X). Holder SQL (create table PLATWD_SZTQ_TQXC
zctfrwid VARCHAR2(20) not null,
lasttime DATE not
null...) -- file "lockMgr.c", lineno 9410, procedure "sbLockENQandCheckTbl()"
### The error may exist in file [/opt/tompolicy/webapps/ROOT/WEB-INF/classes/mybatis/BestPlatPolicyMapperTimesten.xml]
### The error may involve cn.vetech.platpolicy.dao.PlatpolicyMybatisDao.getBestByPlatWd
### The error occurred while executing a query
### SQL: select * from ( select * from PLATWD_SZHZHK_TAOB where zctfrwid=? and zt=1 and code > ? order by code ) where 15000 >= rownum
### Cause: java.sql.SQLException: [TimesTen][TimesTen 11.2.2.6.0 ODBC Driver][TimesTen]TT6003: Lock request denied because of time-out
Regards
LiHi Chris
Here is the sys.odbc.ini for your reference.
[timesten@policies info]$ cat sys.odbc.ini
[ODBC Data Sources]
TT_1122=TimesTen 11.2.2 Driver
[TT_1122]
Driver=/opt/TimesTen/tt1122/lib/libtten.so
DataStore=/opt/TimesTen/tt1122/info/TT_1122
DatabaseCharacterSet=ZHS16GBK
ConnectionCharacterSet=ZHS16GBK
PermSize=60000
TempSize=8000
OracleNetServiceName=vedb
Connections=300
LogFileSize=128
LogBufMB=128
LockWait=30
[ODBC Data Sources]
tt_1122_c=TimesTen 11.2.2 Client Driver
[tt_1122_c]
TTC_SERVER=tt_1122_c_s
TTC_SERVER_DSN=tt_1122
As to the full text of the CREATE TABLE, I haven't get it from the programmer, will update to you latter.
We sometimes create/truncate table,seldom drop table.
Thanks
Li -
Create Table using DBMS_SQL package and size not exceeding 64K
I have a size contraint that my SQL size should not exceed 64K.
Now I would appriciate if some one could tell me how to create a table using
Dynamic sql along with usage of DBMS_SQL package.
Brief Scenario: Users at my site are not given permission to create table.
I need to write a procedure which the users could use to create a table .ALso my SQL size should not exceed 64K. Once this Procedure is created using DBMS_SQL package ,user should pass the table name to create a table.
Thanks/"If a user doesn't have permission to create a table then how do you expect they will be able to do this"
Well, it depends on what you want to do. I could write a stored proc that creates a table in my schema and give some other user execute privilege on it. They would then be able to create a able in my schema without any explicitly granted create table privilege.
Similarly, assuming I have CREATE ANY TABLE granted directly to me, I could write a stroe proc that would create a table in another users schema. As long as they have quota on their default tablespace, they do not need CREATE TABLE privileges.
SQL> CREATE USER a IDENTIFIED BY a
2 DEFAULT TABLESPACE users TEMPORARY TABLESPACE temp;
User created.
SQL> GRANT CREATE SESSION TO a;
Grant succeeded.
SQL> CREATE TABLE a.t (id NUMBER, descr VARCHAR2(10));
CREATE TABLE a.t (id NUMBER, descr VARCHAR2(10))
ERROR at line 1:
ORA-01950: no privileges on tablespace 'USERS'So, give them quota on the tablespace and try again
SQL> ALTER USER a QUOTA UNLIMITED ON users;
User altered.
SQL> CREATE TABLE a.t (id NUMBER, descr VARCHAR2(10));
Table created.Now lets see if it really belongs to a:
SQL> connect a/a
Connected.
SQL> SELECT table_name FROM user_tables;
TABLE_NAME
T
SQL> INSERT INTO t VALUES (1, 'One');
1 row created.Yes, it definitely belongs to a. Just to show that ther is nothing up my sleeve:
SQL> create table t1 (id NUMBER, descr VARCHAR2(10));
create table t1 (id NUMBER, descr VARCHAR2(10))
ERROR at line 1:
ORA-01031: insufficient privilegesI can almost, but not quite, see a rationale for the second case if you want to enforce some sort of naming or location standards but the whole thing seems odd to me.
Users cannot create tables, so lets give them a procedure to create tables?
John -
Create table with name already existed
Hello,
I am trying to create a table which has the same table name that already exists in a different schema. The table already exist in another user's schema but why can't I create the same table in my own schema with the same name? Thank you.Check this out.
SQL> create user testuser1 identified by testuser1 default tablespace user01;
User created.
SQL> create user testuser2 identified by testuser2 default tablespace user01;
User created.
SQL> grant create session, create table, create public synonym,
2 unlimited tablespace to testuser1;
Grant succeeded.
SQL> grant create session, create table, create public synonym,
2 unlimited tablespace to testuser2;
Grant succeeded.
SQL> connect testuser1/testuser1
Connected.
SQL> create table mytable(col1 number);
Table created.
SQL> create public synonym mytable for testuser1.mytable;
Synonym created.
SQL> grant select on mytable to public;
Grant succeeded.
SQL> connect testuser2/testuser2
Connected.
SQL> create table mytable(col1 number);
Table created.
SQL> drop table mytable;
Table dropped.
SQL> desc mytable
Name Null? Type
COL1 NUMBER
SQL> desc testuser1.mytable
Name Null? Type
COL1 NUMBER
SQL> disconnect
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.3.0 - 64bit Production
With the Partitioning option
JServer Release 9.2.0.3.0 - Production -
Create Table taking long time (more than 60 minutes) and still running
Hi all,
I was able to create and drop table until yesterday, but now the when I issue the below statement the server is stuck, its showing creating table in process.... and then it hangs till you cancel the operation. Query of table and running the procedures are ok, so I am confused why only create table is having issues.
CREATE TABLE table1
( field1 VARCHAR2(20) );
Any help at the earliest will be appreciated,
ThanksJust check up your status of the log files
select * from v$logfile
If the status is inactive,
Just do a
alter system switch logfile
The alert log should have the problem specified check for the file.
also try to recreate another user and take a try in table creation:
SQL> connect sys/******
SQL> create user scott identified by tiger default tablespace users temporary tablespace temp quota 100m on users;
SQL> grant connect, resource to scott;_
SQL> connect scott/tiger
SQL> create table xyz ( a number);
SQL> create table abc ( d number);
Could you successfully create the tables? -
Create table interval partition on a column timestamp with local time zone
Hi
Does anyone have an example for 11g on how to create a table with interval partitioning on a column defined as timestamp with local time zone. I know it's possible. the following does not work.
CREATE TABLE KOMODO_EXPIRED_RESULTS
TEST_EVENT_KEY NUMBER NOT NULL,
HPS_DEVICE_KEY NUMBER NOT NULL,
RCS_DEVICE_KEY NUMBER,
EVENT_START_TIMESTAMP TIMESTAMP(6) with local time zone NOT NULL,
BOOTROMVERSION NUMBER,
CHANNELNUMBER NUMBER,
CLIENTVERSION VARCHAR2(4000 BYTE),
ETHERNET_CRC_ERROR_COUNT NUMBER,
ETHERNET_DROPPED_PACKETS NUMBER,
ETHERNET_THROUGHPUT NUMBER,
ETHERNET_TRAFFIC_IN NUMBER,
ETHERNET_TRAFFIC_OUT NUMBER,
IPADDRESS VARCHAR2(4000 BYTE),
KOMODO_ID VARCHAR2(4000 BYTE),
LASTREBOOTTIME VARCHAR2(4000 BYTE),
OSVERSION VARCHAR2(4000 BYTE),
RECEIVER_AUDIOACCESSCONTROLER NUMBER,
RECEIVER_AUDIOBUFFEROVERFLOWS NUMBER,
RECEIVER_AUDIOBUFFERUNDERRUNS NUMBER,
RECEIVER_AUDIOCODEC VARCHAR2(4000 BYTE),
RECEIVER_AUDIODATADROPPED NUMBER,
RECEIVER_AUDIODATATHROUGHPUT NUMBER,
RECEIVER_AUDIODECODERERRORS NUMBER,
RECEIVER_AUDIODESCBUFFERUNDER NUMBER,
RECEIVER_AUDIODESCCRYPTOERROR NUMBER,
RECEIVER_AUDIODESCDATADROPPED NUMBER,
RECEIVER_AUDIODESCDATATHROUGH NUMBER,
RECEIVER_AUDIODESCDECODERERRO NUMBER,
RECEIVER_AUDIODESCDRMERRORS NUMBER,
RECEIVER_AUDIODESCPTSDELTA NUMBER,
RECEIVER_AUDIODESCPTSDELTAHAL NUMBER,
RECEIVER_AUDIODESCSAMPLESDROP NUMBER,
RECEIVER_AUDIODSPCRASHES VARCHAR2(4000 BYTE),
RECEIVER_AUDIOPTSDELTAHAL NUMBER,
RECEIVER_AUDIOSAMPLESDECODED NUMBER,
RECEIVER_AUDIOSAMPLESDROPPED NUMBER,
RECEIVER_AUDIOUNDERRUN NUMBER,
RECEIVER_BITRATE NUMBER,
RECEIVER_BUFFEROVERRUN NUMBER,
RECEIVER_BYTESCCRECEIVED NUMBER,
RECEIVER_BYTESRECEIVED NUMBER,
RECEIVER_CHANNEL NUMBER,
RECEIVER_DECODERSTALL NUMBER,
RECEIVER_DISCONTINUITIES NUMBER,
RECEIVER_DISCONTINUITIESPACKE NUMBER,
RECEIVER_DRIFT NUMBER,
RECEIVER_DROPPEDPACKETSUNTILR NUMBER,
RECEIVER_ECMLOOKUPERROR NUMBER,
RECEIVER_ECMPARSEERRORS NUMBER,
RECEIVER_PMTCHANGED NUMBER,
RECEIVER_REBUFFER NUMBER,
RECEIVER_SELECTCOMPONENTAUDIO NUMBER,
RECEIVER_TIMELINEDISCONTINUIT NUMBER,
RECEIVER_VIDEOACCESSCONTROLER NUMBER,
RECEIVER_VIDEOACCESSCONTROLUN NUMBER,
RECEIVER_VIDEOBUFFEROVERFLOWS NUMBER,
RECEIVER_VIDEOBUFFERUNDERRUNS NUMBER,
RECEIVER_VIDEOCODEC VARCHAR2(4000 BYTE),
RECEIVER_VIDEOCRYPTOERROR NUMBER,
RECEIVER_VIDEODATADROPPED NUMBER,
RECEIVER_VIDEODATATHROUGHPUT NUMBER,
RECEIVER_VIDEODECODERERRORS NUMBER,
RECEIVER_VIDEODRMERRORS NUMBER,
RECEIVER_VIDEODSPCRASHES VARCHAR2(4000 BYTE),
RECEIVER_VIDEOFIFORD NUMBER,
RECEIVER_VIDEOFIFOSIZE NUMBER,
RECEIVER_VIDEOFRAMESDECODED NUMBER,
RECEIVER_VIDEOFRAMESDROPPED NUMBER,
RECEIVER_VIDEOPTSDELTA NUMBER,
RECEIVER_VIDEOPTSDELTAHAL NUMBER,
RECEIVER_VIDEOUNDERRUN NUMBER,
SUBNETMASK VARCHAR2(4000 BYTE),
TUNER_BITRATE NUMBER,
TUNER_BUFFERFAILURE NUMBER,
TUNER_CCPACKETSRECEIVED NUMBER,
TUNER_CHANNEL NUMBER,
TUNER_DATATIMEOUTS NUMBER,
TUNER_DELIVERYMODE VARCHAR2(4000 BYTE),
TUNER_DROPPAST NUMBER,
TUNER_FILL NUMBER,
TUNER_HOLE NUMBER,
TUNER_HOLEDURINGBURST NUMBER,
TUNER_HOLEDURINGBURSTPACKETS NUMBER,
TUNER_HOLETOOLARGEPACKETS NUMBER,
TUNER_MAXIMUMHOLESIZE NUMBER,
TUNER_MULTICASTADDRESS VARCHAR2(4000 BYTE),
TUNER_MULTICASTJOINDELAY NUMBER,
TUNER_OUTOFORDER NUMBER,
TUNER_OVERFLOWRESET NUMBER,
TUNER_OVERFLOWRESETTIMES NUMBER,
TUNER_PACKETSEXPIRED NUMBER,
TUNER_PACKETSPROCESSED NUMBER,
TUNER_PACKETSRECEIVED NUMBER,
TUNER_PACKETSWITHOUTSESSION NUMBER,
TUNER_PARSEERRORS NUMBER,
TUNER_SRCUNAVAILABLERECEIVED NUMBER,
TUNER_TOTALHOLEPACKETS NUMBER,
TUNER_TOTALPACKETSEXPIRED NUMBER,
TUNER_TOTALPACKETSRECEIVED NUMBER,
TUNER_UNICASTADDRESS VARCHAR2(4000 BYTE),
RECEIVER_TUNEDFOR NUMBER,
MACADDRESS VARCHAR2(4000 BYTE),
RECEIVER_TOTALAVUNDERRUNS NUMBER,
RECEIVER_TOTALDISCONTINUITIES NUMBER,
SERVICEID VARCHAR2(4000 BYTE),
DRIVEPRESENT VARCHAR2(4000 BYTE),
STB_STATE VARCHAR2(32 BYTE),
PREV_EXPIRED NUMBER,
PREV_HOLES NUMBER,
PREV_RECEIVED NUMBER,
PREV_TIMESTAMP TIMESTAMP(6),
PREV_REBOOT VARCHAR2(4000 BYTE),
TOTALPACKETSEXPIRED_RATE NUMBER,
TOTALHOLEPACKETS_RATE NUMBER,
TOTALPACKETSRECEIVED_RATE NUMBER,
CONSTRAINT KOMODO_EXPIRED_RESULTS_PK
PRIMARY KEY
(HPS_DEVICE_KEY, EVENT_START_TIMESTAMP)
USING INDEX
TABLESPACE HPS_SUMMARY_INDEX
TABLESPACE HPS_SUMMARY_DATA
PARTITION BY RANGE (EVENT_START_TIMESTAMP)
INTERVAL( NUMTODSINTERVAL(1,'DAY'))
PARTITION DEFAULT_TIME_PART_01 VALUES LESS THAN (TIMESTAMP' 2010-08-01 00:00:00.000000000 +00:00')
LOGGING
COMPRESS FOR ALL OPERATIONS
TABLESPACE HPS_SUMMARY_DATA
NOCACHE
PARALLEL ( DEGREE DEFAULT INSTANCES DEFAULT )
MONITORING
/I am not sure it can be done.
SQL> create table sales
2 (
3 sales_id number,
4 sales_dt TIMESTAMP(6) with local time zone NOT NULL
5 )
6 partition by range (sales_dt)
7 interval (numtoyminterval(1,'MONTH'))
8 ( partition p0901 values less than (to_date('2009-02-01','yyyy-mm-dd')) );
create table sales
ERROR at line 1:
ORA-14751: Invalid data type for partitioning column of an interval partitioned
table
SQL> ed
Wrote file afiedt.buf
1 create table sales
2 (
3 sales_id number,
4 sales_dt TIMESTAMP(6)
5 )
6 partition by range (sales_dt)
7 interval (numtoyminterval(1,'MONTH'))
8* ( partition p0901 values less than (to_date('2009-02-01','yyyy-mm-dd')) )
SQL> /
Table created.
Maybe you are looking for
-
Ssrs 2008 grand totals of report
In an SSRS 2008 report, I am placing a grand total amount in the report footer since I want the amount at the very end of the report. The problem is when the report is exported to PDF, the amount is a long ways from where the detail lines are located
-
Anyone know how to change the size of PDFs in the iBooks library?
I was wondering if there was a way to increase the size of the thumbnails for PDFs in the iBooks library on your iPad. It's hard to read them at this default size and just about every other app in creation (several of them modeled after OSX's own fil
-
Adobe 9 Pro - eliminating text from original form
i am taking forms and converting them to PDF's. I am looking for a way to delete orginal material from the PDF. When i open it in word there is only a single line, but when it is converted to a PDF there is two thick lines that show up and one needs
-
Javascript error when open firefox
When I try to open Firefox, I get a long pause and then this error message: [Exception... "Could not convert JavaScript argument arg 0 [nsISupports.QueryInterface]" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame :: chrome://
-
Hi, we r using cProject 3.1 ..the problem is wen a project manager is trying to assign any resource for his project role , assign button is disabled though he is having all required roles. regards Ram