Tab Set error - ORA-00928
Hi,
I have a strange error can anyone decipher this one - When I edit a page and change the "standard tab set" to a particular tab set I get the following error message when running the page.
"Invalid exists/not exists condition: ORA-00928: missing SELECT keyword "
When I run the page with no tab-set there is no error.
Thanks in advance,
Brandon
Hi,
I have a strange error can anyone decipher this one - When I edit a page and change the "standard tab set" to a particular tab set I get the following error message when running the page.
"Invalid exists/not exists condition: ORA-00928: missing SELECT keyword "
When I run the page with no tab-set there is no error.
Thanks in advance,
Brandon
Similar Messages
-
Hi all,
I created some tables for a database that is going to be OS
independent.
When i put some values to a specific table, I have tha following
problem:
At the time that i put the values, to the table, i receive the
error message "ORA-00928, SELECT Keyword missing"
This table has a foreign key which is referenced to another
table and column.
i don't think that i am making any mistake in the setting of the
constraintsm because i made 2 more tables with the same
constraints and i didnot have any problem.
I am confused, cause I am now bacoming familiar with the oracle
environment and i don't know many things about oracle.
From your experience, what could cause the problem?
Kind regards,
K.Here are some examples that may help make things clearer. In
the following examples, to simplify things and focus on the
problem, I have limited the create table statement to just the
columns, without constraints or anything else.
If you create the table your way, using reserved words enclosed
in doubles quotes:
SQL> CREATE TABLE "SCOTT"."TRANSACTION_BATCH"
2 ("NUMBER" NUMBER(8) NOT NULL,
3 "DATE" DATE NOT NULL,
4 "TYPE" VARCHAR2(10) NOT NULL,
5 "FILENAME" VARCHAR2(20),
6 "TOTALTRANSACTIONS" NUMBER(8) NOT NULL)
7 /
Table created.
The table gets created O.K., but when you try to insert your
way, using the reserved words, without the quotes, you get:
SQL> INSERT INTO "SCOTT"."TRANSACTION_BATCH"
2 (NUMBER,
3 DATE,
4 TYPE,
5 FILENAME,
6 TOTALTRANSACTIONS)
7 VALUES
8 (1,
9 TO_DATE (",'dd-Mon-yyyy HH:MI:SS AM'),
10 '1',
11 ",
12 2)
13 /
(NUMBER,
ERROR at line 2:
ORA-00928: missing SELECT keyword
In the above, when it gets to line 2, it knows it can't insert a
column called NUMBER, so it looks for a SELECT instead, and
doesn't find it.
However, if you insert with double quotes around the column
names, it works:
SQL> INSERT INTO SCOTT.TRANSACTION_BATCH
2 ("NUMBER",
3 "DATE",
4 "TYPE",
5 "FILENAME",
6 "TOTALTRANSACTIONS")
7 VALUES
8 (1,
9 SYSDATE,
10 '1',
11 NULL,
12 2)
13 /
1 row created.
However, it would be better to drop the table and recreate it,
using column names that aren't reserved key words:
SQL> DROP TABLE transaction_batch
2 /
Table dropped.
SQL> CREATE TABLE "SCOTT"."TRANSACTION_BATCH"
2 (NUMBER_COL NUMBER(8) NOT NULL,
3 DATE_COL DATE NOT NULL,
4 TYPE VARCHAR2(10) NOT NULL,
5 FILENAME VARCHAR2(20),
6 TOTALTRANSACTIONS NUMBER(8) NOT NULL)
7 /
Table created.
Then, you can insert without the double quotes:
SQL> INSERT INTO SCOTT.TRANSACTION_BATCH
2 (NUMBER_COL,
3 DATE_COL,
4 TYPE,
5 FILENAME,
6 TOTALTRANSACTIONS)
7 VALUES
8 (1,
9 SYSDATE,
10 '1',
11 NULL,
12 2)
13 /
1 row created.
To further illustrate the problem and show you what I meant when
I said that creating the table without the double quotes would
have brought the problem to your attention then, suppose we try
to do that using the reserved words:
SQL> DROP TABLE transaction_batch
2 /
Table dropped.
SQL> CREATE TABLE "SCOTT"."TRANSACTION_BATCH"
2 (NUMBER NUMBER(8) NOT NULL,
3 DATE DATE NOT NULL,
4 TYPE VARCHAR2(10) NOT NULL,
5 FILENAME VARCHAR2(20),
6 TOTALTRANSACTIONS NUMBER(8) NOT NULL)
7 /
(NUMBER NUMBER(8) NOT NULL,
ERROR at line 2:
ORA-00904: invalid column name
The above tells us that NUMBER is a reserved word and should not
be used as a column name. The same is true for DATE. Putting
them in double quotes to get around that problem causes more
problems than it solves. Unfortunately there are some
applications out there that automatically insert double quotes
in some places and not in others. -
Error ORA-00928: missing SELECT keyword
Dear All,
I have created package and also create function in it return me error..
ORA-00928: missing SELECT keyword..
Package Specification
CREATE OR REPLACE PACKAGE PERSONLIZATION_NEW AS
FUNCTION PO_ITEM_BRANCH (ITEM_ID NUMBER, BRANCH_CODE VARCHAR2)
RETURN NUMBER;
END PERSONLIZATION_NEW;
Package body.
CREATE OR REPLACE PACKAGE BODY PERSONLIZATION_NEW AS
ITEM_ID NUMBER;
BRANCH_CODE NUMBER;
FUNCTION PO_ITEM_BRANCH (ITEM_ID NUMBER, BRANCH_CODE VARCHAR2)
RETURN NUMBER IS RESULT NUMBER;
FUNCTION PO_ITEM_BRANCH (ITEM_ID NUMBER, BRANCH_CODE VARCHAR2)
RETURN NUMBER IS
RESULT NUMBER;
BEGIN
SELECT
count(a.asset_number) into result
FROM
SELECT
c.CATEGORY_ID,
a.ASSET_NUMBER
FROM
FA_ADDITIONS A
,FA_CATEGORIES_VL C
,FA_BOOKS B
,FA_LOCATIONS FL
,FA_DISTRIBUTION_HISTORY DH
,FA_TRANSACTION_HEADERS TH
WHERE
A.ASSET_CATEGORY_ID=C.CATEGORY_ID
AND A.ASSET_ID=B.ASSET_ID
AND A.ASSET_ID=TH.ASSET_ID
AND TH.TRANSACTION_TYPE_CODE='ADDITION'
AND B.TRANSACTION_HEADER_ID_IN=TH.TRANSACTION_HEADER_ID
AND B.ASSET_ID=TH.ASSET_ID
AND A.ASSET_ID=DH.ASSET_ID
AND DH.LOCATION_ID=FL.LOCATION_ID
AND TH.TRANSACTION_TYPE_CODE='ADDITION'
--AND FL.SEGMENT4 = 'Shalimar Campus Lahore'
AND TH.TRANSACTION_TYPE_CODE <> 'FULL RETIREMENT'
-- AND FL.SEGMENT4 = (SELECT flex_value FROM fnd_flex_values WHERE ATTRIBUTE1 = '04010303')
AND A.ASSET_CATEGORY_ID IN (
SELECT
msi.asset_category_id
FROM
po_requisition_lines_all b,
mtl_system_items_b msi
WHERE
b.ITEM_ID = msi.INVENTORY_ITEM_ID
AND msi.inventory_item_id(+) = B.item_id
AND msi.organization_id(+) = B.destination_organization_id
AND b.item_id = ITEM_ID
AND FL.SEGMENT4 = (
SELECT
(SELECT FLEX_VALUE FROM fnd_flex_values WHERE ATTRIBUTE1 = B.ATTRIBUTE2) BRANCH
FROM
po_requisition_lines_all b,
mtl_system_items_b msi
WHERE
b.ITEM_ID = msi.INVENTORY_ITEM_ID
AND msi.inventory_item_id(+) = B.item_id
AND msi.organization_id(+) = B.destination_organization_id
AND b.ATTRIBUTE2 = BRANCH_CODE
) A
RETURN(RESULT);
END;
--END PERSONLIZATION_NEW;Hi,
user10941925 wrote:
Dear All,
I have created package and also create function in it return me error..
ORA-00928: missing SELECT keyword..Whenever you have a problem concerning an error message, post the complete error message, including line numbers.
Make sure it's clear what causes the error. In this case, is it compiling the package spec, compiling the package body, or calling the function?
Package Specification
CREATE OR REPLACE PACKAGE PERSONLIZATION_NEW AS
FUNCTION PO_ITEM_BRANCH (ITEM_ID NUMBER, BRANCH_CODE VARCHAR2)
RETURN NUMBER;
END PERSONLIZATION_NEW;Please format your code to make it readable.
Whenever you post formatted text (including, but not limited to, code) on this site, type these 6 characters:
\(small letters only, inside curly brackets) before and after each section of formatted text, to preserve spacing.
Package body.
CREATE OR REPLACE PACKAGE BODY PERSONLIZATION_NEW AS
ITEM_ID NUMBER;
BRANCH_CODE NUMBER;These global variables aren't being used anywhere, but they're not causing the error.
FUNCTION PO_ITEM_BRANCH (ITEM_ID NUMBER, BRANCH_CODE VARCHAR2)
RETURN NUMBER IS RESULT NUMBER;
You've got two copies of the function signature here. Remove one of them.
>
FUNCTION PO_ITEM_BRANCH (ITEM_ID NUMBER, BRANCH_CODE VARCHAR2)
RETURN NUMBER IS
RESULT NUMBER;
BEGIN
SELECT
count(a.asset_number) into result
FROM
SELECT
c.CATEGORY_ID,
a.ASSET_NUMBER
FROM
FA_ADDITIONS A
,FA_CATEGORIES_VL C
,FA_BOOKS B
,FA_LOCATIONS FL
,FA_DISTRIBUTION_HISTORY DH
,FA_TRANSACTION_HEADERS TH
WHERE
A.ASSET_CATEGORY_ID=C.CATEGORY_ID
AND A.ASSET_ID=B.ASSET_ID
AND A.ASSET_ID=TH.ASSET_ID
AND TH.TRANSACTION_TYPE_CODE='ADDITION'
AND B.TRANSACTION_HEADER_ID_IN=TH.TRANSACTION_HEADER_ID
AND B.ASSET_ID=TH.ASSET_ID
AND A.ASSET_ID=DH.ASSET_ID
AND DH.LOCATION_ID=FL.LOCATION_ID
AND TH.TRANSACTION_TYPE_CODE='ADDITION'
--AND FL.SEGMENT4 = 'Shalimar Campus Lahore'
AND TH.TRANSACTION_TYPE_CODE <> 'FULL RETIREMENT'
-- AND FL.SEGMENT4 = (SELECT flex_value FROM fnd_flex_values WHERE ATTRIBUTE1 = '04010303')
AND A.ASSET_CATEGORY_ID IN (
SELECT
msi.asset_category_id
FROM
po_requisition_lines_all b,
mtl_system_items_b msi
WHERE
b.ITEM_ID = msi.INVENTORY_ITEM_ID
AND msi.inventory_item_id(+) = B.item_id
AND msi.organization_id(+) = B.destination_organization_id
AND b.item_id = ITEM_ID
AND FL.SEGMENT4 = (
SELECT
(SELECT FLEX_VALUE FROM fnd_flex_values WHERE ATTRIBUTE1 = B.ATTRIBUTE2) BRANCH
FROM
po_requisition_lines_all b,
mtl_system_items_b msi
WHERE
b.ITEM_ID = msi.INVENTORY_ITEM_ID
AND msi.inventory_item_id(+) = B.item_id
AND msi.organization_id(+) = B.destination_organization_id
AND b.ATTRIBUTE2 = BRANCH_CODE
) ALooks like you're missing a ; above.
>
RETURN(RESULT);
END;
--END PERSONLIZATION_NEW;The END statement for the package is commented out. -
Error ORA-01152: file 1 was not restored from a sufficiently old backup
Its also not thread just to share info with oracle gurus here.If my findings for the below workaround is wrong then please do correct me.
Sometime you get the error after performing restoring controlfile when you don't have autobackup controlfile on
error ORA-01152: file 1 was not restored from a sufficiently old backup
why?
Cause When you shutdown the database with using the normal,transactional or immediate options not abort a full checkpoint occurs.A full checkpoint ensures that all of the dirty blocks contained in the buffer cache are written to the data files,the database comes into synchronized state at this time i.e controlfile CKPT SCN=databasefile CKPT.
Like in this demo i am not taking backup the database in opened mode
Demo 1
SQL> archive log list
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 9
Current log sequence 11
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.
Total System Global Area 171966464 bytes
Fixed Size 787988 bytes
Variable Size 145488364 bytes
Database Buffers 25165824 bytes
Redo Buffers 524288 bytes
Database mounted.
SQL> alter database archivelog
2 /
Database altered.
SQL> archive log list
Database log mode Archive Mode
Automatic archival Enabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 9
Next log sequence to archive 11
Current log sequence 11
Recovery Manager: Release 10.1.0.2.0 - Production
Copyright (c) 1995, 2004, Oracle. All rights reserved.
RMAN> connect target sys/sys
connected to target database: ORCL1 (DBID=1024798223)
RMAN> list backup
2> ;
using target database controlfile instead of recovery catalog
RMAN> backup database
2> ;
Starting backup at 08-DEC-07
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00001 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\SYSTEM01.DBF
input datafile fno=00003 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\SYSAUX01.DBF
input datafile fno=00002 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\UNDOTBS01.DBF
input datafile fno=00004 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\USERS01.DBF
channel ORA_DISK_1: starting piece 1 at 08-DEC-07
channel ORA_DISK_1: finished piece 1 at 08-DEC-07
piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL1\ORCL1\BACKUPSET\2007_12_08\O1_MF_NNNDF_TAG20071208T143558_3ONSCZBY_.BKP
comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:45
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
including current controlfile in backupset
including current SPFILE in backupset
channel ORA_DISK_1: starting piece 1 at 08-DEC-07
channel ORA_DISK_1: finished piece 1 at 08-DEC-07
piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL1\ORCL1\BACKUPSET\2007_12_08\O1_MF_NCSNF_TAG20071208T143558_3ONSFGN7_.BKP
comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:05
Finished backup at 08-DEC-07
SQL> shutdown immediate
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.Now i delete the controlfile from OS command.
SQL> startup
ORACLE instance started.
Total System Global Area 171966464 bytes
Fixed Size 787988 bytes
Variable Size 145488364 bytes
Database Buffers 25165824 bytes
Redo Buffers 524288 bytes
ORA-00205: error in identifying controlfile, check alert log for more infoi don't have automatized control file backup neither i have control file copy.What i will do
to recover control file i will restore controlfile from backup.Before doing it that i will bring
the database in mount state.
SQL> shutdown immediate
ORA-01507: database not mounted
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.
Total System Global Area 171966464 bytes
Fixed Size 787988 bytes
Variable Size 145488364 bytes
Database Buffers 25165824 bytes
Redo Buffers 524288 bytes
ORA-00205: error in identifying controlfile, check alert log for more infoi have two backup piece in my backupset folder you cant check control file backup
existence with list backup controlfile at RMAN prompt cause it needs database in
mount state.You will have to test both backup set pieces.
RMAN> restore controlfile from
'C:\oracle\flash_recovery_area\orcl1\ORCL1\BACKUPSET\2007_12_08\O1_MF_NCSNF_TAG20071208T143558_3ONSFGN7_.BKP';
Starting restore at 08-DEC-07
using channel ORA_DISK_1
channel ORA_DISK_1: restoring controlfile
channel ORA_DISK_1: restore complete
output filename=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\CONTROL01.CTL
output filename=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\CONTROL02.CTL
output filename=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\CONTROL03.CTL
Finished restore at 08-DEC-07
SQL> startup
ORACLE instance started.
Total System Global Area 171966464 bytes
Fixed Size 787988 bytes
Variable Size 145488364 bytes
Database Buffers 25165824 bytes
Redo Buffers 524288 bytes
Database mounted.
ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
SQL> alter database open resetlogs
2 /
Database altered.You can see database now comes into open mode without raising error error
ORA-01152: file 1 was not restored from a sufficiently old backup,you can see that
database shutdown with immediate which synchronized the control file with database
file.
Demo 2
------------Now in this demo i am taking backup the database in opened mode before backup
database i have deleted alls previous backup.
Database is in opened moder if i take the backup in database opened mode
(i.e full checkpoint will not occur controlfile CKPT SCN<>datafile CKPT SCN)
you will get the error when you will restore controlfile from backup set.
error ORA-01152: file 1 was not restored from a sufficiently old backup
Reason is that CKPT SCN in the datafiles will be ahead of the backupset control file no
full checkpoint occuring. You are not taking backup in consistent state and the
backupset will not be in consistent state.When you will restore the control file from
backupset then yours restored control file SCN will be lesser then yours datafile
checkpoint SCN.
SQL> startup
ORACLE instance started.
Total System Global Area 171966464 bytes
Fixed Size 787988 bytes
Variable Size 145488364 bytes
Database Buffers 25165824 bytes
Redo Buffers 524288 bytes
Database mounted.
Database opened.
RMAN> backup database
2> ;
Starting backup at 11-DEC-07
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00001 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\SYSTEM01.D
BF
input datafile fno=00003 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\SYSAUX01.D
BF
input datafile fno=00002 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\UNDOTBS01.
DBF
input datafile fno=00004 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\USERS01.DB
F
channel ORA_DISK_1: starting piece 1 at 11-DEC-07
channel ORA_DISK_1: finished piece 1 at 11-DEC-07
piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL1\ORCL1\BACKUPSET\2007_12_11\O1_M
F_NNNDF_TAG20071211T125123_3OWJD0V5_.BKP comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:56
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
including current controlfile in backupset
including current SPFILE in backupset
channel ORA_DISK_1: starting piece 1 at 11-DEC-07
channel ORA_DISK_1: finished piece 1 at 11-DEC-07
piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL1\ORCL1\BACKUPSET\2007_12_11\O1_M
F_NCSNF_TAG20071211T125123_3OWJFT97_.BKP comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:09
Finished backup at 11-DEC-07now i shut down the database in order to delete the control file from os command
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> deleting the controlfile from oradata folder
SQL> startup
ORACLE instance started.
Total System Global Area 171966464 bytes
Fixed Size 787988 bytes
Variable Size 145488364 bytes
Database Buffers 25165824 bytes
Redo Buffers 524288 bytes
ORA-00205: error in identifying controlfile, check alert log for more infonow i would restore the controlfile from backupset.
RMAN> restore controlfile from 'C:\oracle\flash_recovery_area\orcl1\ORCL1\BACKUP
SET\2007_12_11\O1_MF_NCSNF_TAG20071211T125123_3OWJFT97_.BKP'
2> ;
Starting restore at 11-DEC-07
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=159 devtype=DISK
channel ORA_DISK_1: restoring controlfile
channel ORA_DISK_1: restore complete
output filename=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\CONTROL01.CTL
output filename=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\CONTROL02.CTL
output filename=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\CONTROL03.CTL
Finished restore at 11-DEC-07
SQL> shutdown immediate
ORA-01507: database not mounted
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 171966464 bytes
Fixed Size 787988 bytes
Variable Size 145488364 bytes
Database Buffers 25165824 bytes
Redo Buffers 524288 bytes
Database mounted.
ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
SQL> alter database open resetlogs
2 /
alter database open resetlogs
ERROR at line 1:
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: 'C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\SYSTEM01.DBF'what would you do that now you have lost controlfile ,you dont have copy either you dont
have autobackup on for controlfile,you need to create the control file
SQL> shutdown immediate
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL> startup nomount
ORACLE instance started.
Total System Global Area 171966464 bytes
Fixed Size 787988 bytes
Variable Size 145488364 bytes
Database Buffers 25165824 bytes
Redo Buffers 524288 bytes
SQL> create controlfile reuse database orcl1 noresetlogs archivelog
2 MAXLOGFILES 50
3 MAXLOGMEMBERS 3
4 MAXDATAFILES 300
5 MAXINSTANCES 8
6 MAXLOGHISTORY 500
7 LOGFILE
8 GROUP 1 'C:\oracle10g\oracle\oradata\orcl1\orcl1\redo01.LOG',
9 GROUP 2 'C:\oracle10g\oracle\oradata\orcl1\orcl1\redo02.LOG',
10 GROUP 3 'C:\oracle10g\oracle\oradata\orcl1\orcl1\redo03.LOG'
11 DATAFILE
12 'C:\oracle10g\oracle\oradata\orcl1\orcl1\SYSAUX01.DBF',
13 'C:\oracle10g\oracle\oradata\orcl1\orcl1\SYSTEM01.DBF',
14 'C:\oracle10g\oracle\oradata\orcl1\orcl1\UNDOTBS01.DBF',
15 'C:\oracle10g\oracle\oradata\orcl1\orcl1\USERS01.DBF'
16
SQL> /
Control file created.
SQL> alter database open
2 /
Database altered.KhurramNo need to manually recreate the controlfile. Simply issue RECOVER DATABASE prior to opening database.
E:\>rman target /
Recovery Manager: Release 10.2.0.1.0 - Production on Sun Dec 30 01:22:34 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database (not started)
RMAN> startup
Oracle instance started
database mounted
database opened
Total System Global Area 612368384 bytes
Fixed Size 2006192 bytes
Variable Size 239076176 bytes
Database Buffers 364904448 bytes
Redo Buffers 6381568 bytes
RMAN> backup database;
Starting backup at 30-DEC-07
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=148 devtype=DISK
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00001 name=E:\ORACLE\ORADATA\ORA10G\SYSTEM01.DBF
input datafile fno=00002 name=E:\ORACLE\ORADATA\ORA10G\UNDOTBS01.DBF
input datafile fno=00003 name=E:\ORACLE\ORADATA\ORA10G\SYSAUX01.DBF
input datafile fno=00004 name=E:\ORACLE\ORADATA\ORA10G\USERS01.DBF
channel ORA_DISK_1: starting piece 1 at 30-DEC-07
channel ORA_DISK_1: finished piece 1 at 30-DEC-07
piece handle=D:\DB_BACKUPS\12J4S23M_1_1.BKP tag=TAG20071230T012302 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:01:35
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
including current control file in backupset
including current SPFILE in backupset
channel ORA_DISK_1: starting piece 1 at 30-DEC-07
channel ORA_DISK_1: finished piece 1 at 30-DEC-07
piece handle=D:\DB_BACKUPS\13J4S26L_1_1.BKP tag=TAG20071230T012302 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03
Finished backup at 30-DEC-07
RMAN> shutdown immediate
database closed
database dismounted
Oracle instance shut down
RMAN> exit
Recovery Manager complete.
E:\>del e:\oracle\oradata\ora10g\*.ctl
E:\>rman target /
Recovery Manager: Release 10.2.0.1.0 - Production on Sun Dec 30 01:25:39 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database (not started)
RMAN> startup
Oracle instance started
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of startup command at 12/30/2007 01:25:56
ORA-00205: error in identifying control file, check alert log for more info
RMAN> restore controlfile from 'D:\DB_BACKUPS\13J4S26L_1_1.BKP';
Starting restore at 30-DEC-07
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=157 devtype=DISK
channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:03
output filename=E:\ORACLE\ORADATA\ORA10G\CONTROL01.CTL
output filename=E:\ORACLE\ORADATA\ORA10G\CONTROL02.CTL
output filename=E:\ORACLE\ORADATA\ORA10G\CONTROL03.CTL
Finished restore at 30-DEC-07
RMAN> alter database mount;
database mounted
released channel: ORA_DISK_1
RMAN> alter database open resetlogs;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of alter db command at 12/30/2007 01:27:33
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: 'E:\ORACLE\ORADATA\ORA10G\SYSTEM01.DBF'
RMAN> recover database;
Starting recover at 30-DEC-07
Starting implicit crosscheck backup at 30-DEC-07
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=156 devtype=DISK
Crosschecked 1 objects
Finished implicit crosscheck backup at 30-DEC-07
Starting implicit crosscheck copy at 30-DEC-07
using channel ORA_DISK_1
Finished implicit crosscheck copy at 30-DEC-07
searching for all files in the recovery area
cataloging files...
no files cataloged
using channel ORA_DISK_1
starting media recovery
archive log thread 1 sequence 1 is already on disk as file E:\ORACLE\ORADATA\ORA10G\REDO03.LOG
archive log filename=E:\ORACLE\ORADATA\ORA10G\REDO03.LOG thread=1 sequence=1
media recovery complete, elapsed time: 00:00:02
Finished recover at 30-DEC-07
RMAN> alter database open resetlogs;
database opened
RMAN> shutdown immediate
database closed
database dismounted
Oracle instance shut down
RMAN> startup
connected to target database (not started)
Oracle instance started
database mounted
database opened
Total System Global Area 612368384 bytes
Fixed Size 2006192 bytes
Variable Size 247464784 bytes
Database Buffers 356515840 bytes
Redo Buffers 6381568 bytes
RMAN> -
Error in CMP ORA-00928: missing SELECT keyword
Hi,
I am using WLS 8.1 and with CMP trying to insert records in oracle 8.1.
But I am getting error as below.
I hv not defined and finder method in the home interface except the default findByPrimaryKey().
javax.transaction.TransactionRolledbackException: EJB Exception: : java.sql.SQLE
xception: ORA-00928: missing SELECT keyword
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:579)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1894)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:109
4)
at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.ja
va:2132)
at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.jav
a:2015)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
nt.java:2877)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePrepar
edStatement.java:608)
at weblogic.jdbc.wrapper.PreparedStatement.executeUpdate(PreparedStateme
nt.java:95)
at weblogic.ejb20.manager.BaseEntityManager.executeInsertStmt(BaseEntity
Manager.java:546)
at weblogic.ejb20.manager.BaseEntityManager.executeDBOperations(BaseEnti
tyManager.java:435)
at weblogic.ejb20.internal.TxManager$TxListener.executeDBOperations(TxMa
nager.java:596)
at weblogic.ejb20.internal.TxManager$TxListener.executeDBOperationsDrive
r(TxManager.java:571)
at weblogic.ejb20.internal.TxManager$TxListener.beforeCompletion(TxManag
er.java:731)
at weblogic.transaction.internal.ServerSCInfo.callBeforeCompletions(Serv
erSCInfo.java:1010)
at weblogic.transaction.internal.ServerSCInfo.startPrePrepareAndChain(Se
rverSCInfo.java:115)
at weblogic.transaction.internal.ServerTransactionImpl.localPrePrepareAn
dChain(ServerTransactionImpl.java:1142)
at weblogic.transaction.internal.ServerTransactionImpl.globalPrePrepare(
ServerTransactionImpl.java:1868)
at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(Se
rverTransactionImpl.java:250)
at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTran
sactionImpl.java:221)
at weblogic.ejb20.internal.BaseEJBHome.postHomeInvoke(BaseEJBHome.java:3
93)
at weblogic.ejb20.internal.EntityEJBHome.create(EntityEJBHome.java:268)
at gateway.GatewayUpdate_f6dwyt_HomeImpl.create(GatewayUpdate_f6dwyt_Hom
eImpl.java:84)
at gateway.LogBean.msg_update(LogBean.java:137)
at gateway.LogBean.onMessage(LogBean.java:57)
at weblogic.ejb20.internal.MDListener.execute(MDListener.java:382)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
In a nushell I am not using any finder methods in my client program.Still I am
getting this error.
Pl.advise.
Regards,
RamHi,
Please do not post the same question in multiple newsgroups.
Please see my reply in the other group.
thanks -
EDQ - error exporting to DB: ORA-00928 missing SELECT
Hi,
I am using EDQ v12.1.3.0.0 and have created a very basic proof of concept process which takes as input a comma-demilited file through the Reader process and then has a Write processor to write the input to Staged Data.
I am then trying to Export the staged data to the relevant table in the database but get the following error message:
'xxxxxx failed: Problem writing insert batch to database: ORA-00928: missing SELECT keyword.
The input file/staged data only contains a single comma-delimited file with 3 fields and on the other side in the database, all I have in the schema is a single table which I am writing to. I can connect to my target DB datastore in EDQ without any problems.
Does anyone have any ideas as to what could be causing this? Reading up on this error suggests that it is to with the SELECT keyword missing from a CREATE VIEW statement but I am not sure where or why it is trying to create a view.
Any help would be much appreciated.Hi Mike,
Many thanks for your quick response.
I am writing to an existing table and wasn't seeing the three options which you've suggested, and which I've seen also appear in the documentation. But based on what you've said above, I now understand that I won't see those options because I am running a standalone export by right-clicking in the tree, rather than in a job.
The target table didn't have a PK defined and I have since added one and ran the stand-alone export again and it has worked this time - Thanks. Thanks also for pointing out that the export will be DELETING and INSERTING - I was wondering why each time the export was failing it was removing records from the table, as I thought in this mode it would just be doing a straightforward INSERT. (So it was doing the DELETE part ok but failing on the INSERT).
I would also like to know another couple of things please.
1) How can I add this Export to a newly created Job? I have created a Job and put my Process in there, but when I try and drag-and-drop the Export, I get a no-entry sign indicating that I'm not allowed to do this. My target datastore is server-based rather than client-based and I thought that this should be ok if doing an export.
2) Is it possible to call database stored procedures on the target database and then let that take care of inserts? E.g. rather than letting EDQ insert the records straight into the target DB, would like to make a call to a PL/SQL stored procedure which takes the data to be inserted as input (if at all possible, I understand this could be difficult if dealing with multiple records, unless the procedure can be called each time for each record), and then performs some checks before inserting the records.
EDIT: regarding point 2 above, I have just come across this - How to call Oracle Stored Procedure using EDQ. -
Please help to solve this error message ORA-00928
hallo, I'm sorry if it's wrong place to answer a question like that cause I'm a newbie :( .
I have some php problem like above :
<?php
//connect to database
$db = "";
$conn = ocilogon("system", "tubes", $db);
if ( !$conn ) {
echo "Status : Connection Error, mangga di lereuskeun heula : " . var_dump( OCIError() );
//input data
$id = $_POST[id_jenis_zakat];
$jenis = $_POST[jenis_zakat];
$barang = $_POST[jenis_barang];
$jumlah = $_POST[jumlah];
$stmt = OCIParse($conn, "insert into zakat value( $id ,$jenis ,$barang ,$jumlah)");
$s = ociexecute($stmt);
if (!$s){
echo "Input Data Error, mangga didangdosan heula".var_dump(ocierror());
?>
but, it's show this message
Warning: ociexecute() [function.ociexecute]: ORA-00928: missing SELECT keyword in C:\xampp\htdocs\baznas\coba.php on line 15
bool(false) Input Data Error, mangga didangdosan heula
so, What should I do ?so, What should I do ?Hm. I'm a php-noob, but it looks like a typo:
$stmt = OCIParse($conn, "insert into zakat value( $id ,$jenis ,$barang ,$jumlah)");Try:
$stmt = OCIParse($conn, "insert into zakat VALUES( $id ,$jenis ,$barang ,$jumlah)");If that doesn't work then perhaps the PHP forum can help you: PHP -
Queue propagation error---ORA-23603
Hi Experts,
I got lots of error as ORA-23603: STREAMS enqueue aborted due to low SGA for Destination
"STRMADMIN"."STREAMS_APPLY"@sale2.net.
However, destination SGA taeget and Max as 2552M. and source target/Max SGA is 1888M.
In source database EM, I saw these propagation and disable source capture and propagation.
we use oracle 10gR4 in window 2003
I check destination database, everything is ok without any error in there.
What do I need to do? I can not start propagation and capture in sourec database.
Thanks,
JimThanks for you help. Actually, we set AQ_TM_PROCESSES as 1.
I try to enable progation. but it does not work.
I try to strat propagation and get error as
SQL> begin
2 DBMS_PROPAGATION_ADM.START_PROPAGATION(
3 propagation_name=>'STREAM_PROPAGAT');
4 end;
5 /
begin
ERROR at line 1:
ORA-01403: no data found
ORA-06512: at "SYS.DBMS_PROPAGATION_INTERNAL", line 752
ORA-06512: at "SYS.DBMS_PROPAGATION_ADM", line 145
ORA-06512: at line 2
SQL>
SQL> show parameter AQ_TM_PROCESSES
NAME_COL_PLUS_SHOW_PARAM TYPE
VALUE_COL_PLUS_SHOW_PARAM
aq_tm_processes integer
1
I saw EM Failures since startup 16. error as 20603. futhter check message tab. i got ORA-23603: STREAMS enqueue aborted due to low SGA in destination apply.
However, I do not see any error for apply in destination DB.
This is a bi_direction stream. From destion DB i also saw same message for source DB Apply issue. I can not find apply error in there too.
What do I need to restart propagation? It is probation that DBA_propagation tanle that have error message ?
Thanks for help!
JIm -
I am getting PAGE_CREATE error while adding a new page. On create new page, after filling page name & description it displays the error message below.
I am runing iAS9\Portal 3.0.8.9 on Win NT4.
No installation errors.
Exact error message:
=======================
ORA-01086: savepoint 'PAGE_CREATE' never established
ORA-06512: at "PORTAL30.WWPOB_PAGE_EDIT", line 320
ORA-06510: PL/SQL: unhandled user-defined exception
ORA-06512: at "PORTAL30.WWPOB_API_PAGE", line 340
ORA-06510: PL/SQL: unhandled user-defined exception
ORA-01400: cannot insert NULL into ("PORTAL30"."WWPOB_PORTLET_INSTANCE$"."PROVIDER_ID")
ORA-06512: at line 8
=======================
Recompiled all packages\package body (there are no 'Invalid' packages) - error still persist.
when this error occurs, portal displays error message on adding a tab (it happens when I click on the tab icon to add a new tab):
Exact error message:
=======================
Portlet Information could not be obtained. (WWC-44334)
An unexpected error occurred: ORA-06550: line 1, column 34:
PLS-00103: Encountered the symbol "." when expecting one of the following:
( - + mod not null <an identifier>
<a double-quoted delimited-identifier> <a bind variable> avg
count current exists max min prior sql stddev sum variance
execute forall time timestamp interval date
<a string literal with character set specification>
<a number> <a single-quoted SQL string>
The symbol "." was ignored. (WWC-43000)
=======================
Everything else in Portal is working fine.
All Rollbacks are online, no error message in the DB alert log.
Any suggestions on how to fix this (other than re-installing portal).
Thanks.
nullWell ... this appears to be a serious problem with the Portal as it renders it incapable of adding pages and tabs. I've tried reinstalling it on 3 different servers, used another instance of Oracle database, and the result is still the same. No installation errors, and suddenly after 7-10 days this error starts appearing.
Am I the only one experiencing this type of error? ...and can anyone offer\suggest ways to fix it? -
Why I got error ORA-02429 when I tried to drop a tablespace?
I use the following command to drop the tablespace:
drop tablespace users including contents and datafiles;The error message is below:
Error report:
SQL Error: ORA-00604: error occurred at recursive SQL level 1
ORA-02429: cannot drop index used for enforcement of unique/primary key
00604. 00000 - "error occurred at recursive SQL level %s"
*Cause: An error occurred while processing a recursive SQL statement
(a statement applying to internal dictionary tables).
*Action: If the situation described in the next error on the stack
can be corrected, do so; otherwise contact Oracle Support.However, I have removed all the tables and indexes in this tablespace.
Nothing found when I issued the following enquiries.
select index_name from user_indexes where TABLESPACE_NAME = 'USERS';
select table_name from user_tables where TABLESPACE_NAME = 'USERS';Is there anything I missed?
Thanks in advance.999274 wrote:
Could you please let me know how to purge recyclebin ?It's bad form to hijack someone else's thread for your own questions.
As for your question
=================================================
Learning how to look things up in the documentation is time well spent investing in your career. To that end, you should drop everything else you are doing and do the following:
Go to [url tahiti.oracle.com]tahiti.oracle.com.
Locate the link for your Oracle product and version, and click on it.
You are now at the entire documentation set for your selected Oracle product and version.
<b><i><u>BOOKMARK THAT LOCATION</u></i></b>
Spend a few minutes just getting familiar with what is available here. Take special note of the "books" and "search" tabs. Under the "books" tab (for 10.x) or the "Master Book List" link (for 11.x) you will find the complete documentation library.
Spend a few minutes just getting familiar with what <b><i><u>kind</u></i></b> of documentation is available there by simply browsing the titles under the "Books" tab.
Open the Reference Manual and spend a few minutes looking through the table of contents to get familiar with what <b><i><u>kind</u></i></b> of information is available there.
Do the same with the SQL Reference Manual.
Do the same with the Utilities manual.
You don't have to read the above in depth. They are <b><i><u>reference</b></i></u> manuals. Just get familiar with <b><i><u>what</b></i></u> is there to <b><i><u>be</b></i></u> referenced. Ninety percent of the questions asked on this forum can be answered in less than 5 minutes by simply searching one of the above manuals.
Then set yourself a plan to dig deeper.
- Read a chapter a day from the Concepts Manual.
- Take a look in your alert log. One of the first things listed at startup is the initialization parms with non-default values. Read up on each one of them (listed in your alert log) in the Reference Manual.
- Take a look at your listener.ora, tnsnames.ora, and sqlnet.ora files. Go to the Network Administrators manual and read up on everything you see in those files.
- When you have finished reading the Concepts Manual, do it again.
Give a man a fish and he eats for a day. Teach a man to fish and he eats for a lifetime.
================================= -
Errors - ORA-01034, ORA-27101 & Linux-x86_64 Error: 2: No such file or dir
I have installed Oracle 10g database and AS 10g on SUSE linux EE 10 (SP2)
When I try to log in as system/system using sqlplus locally on the server, it works fine. However, when I try the following I get error messages:
SQL> conn system/system@botsdb
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
I tried the same from my laptop through sqlplus and the error message is the same.
I checked if the database was up and to check this I executed follwing commands whicle still being logged as system/system:
SQL>Select * from v$database;
SQL>Select * from v$instance;
SQL>Select * from tab;
These do bring results. Also if I try to start up the database again, it gives error message that the database is already up. I have restarted the db number of times, checked if my listener was listening on the service BOTSDB and these all seem fine.
It is very intriguing that when @BOTSDB is attached while connecting, the connection fails.
Can someone please guide me to sort this error?
Thanks and kind regards,
AparnaHi
I am answering all the three questions here.
1) No of instances on the machine, I understand it is 1.
2) Results of lsnrctl status
oracle@linuxserver:~> lsnrctl status
LSNRCTL for Linux: Version 10.1.0.4.2 - Production on 28-JUL-2010 09:19:33
Copyright (c) 1991, 2004, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=linuxserv.dcdm.mu)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 10.1.0.4.2 - Production
Start Date 27-JUL-2010 11:24:12
Uptime 0 days 21 hr. 55 min. 20 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /oracle/app/ora10ginfra/network/admin/listener.ora
Listener Log File /oracle/app/ora10ginfra/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=linuxserver.dcdm.mu)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "metarep.dcdm.mu" has 1 instance(s).
Instance "metarep", status READY, has 3 handler(s) for this service...
The command completed successfully
--Note that lsnrctl status command was issued after loading 10ginfra.env file.
Please note that the listener for the database is set as DBLISTENER and lsnrctl status DBLISTENER was executed after loading 10gdb.env file. The results of lsnrctl status DBLISTENER are as follows:
oracle@linuxserver:~> . ./10gdb.env
oracle@linuxserver:~> lsnrctl status DBLISTENER
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 28-JUL-2010 09:24:44
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=172.16.107.123)(PORT=1650)))
STATUS of the LISTENER
Alias DBLISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 27-JUL-2010 15:11:28
Uptime 0 days 18 hr. 13 min. 15 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /oracle/app/ora10gdb/network/admin/listener.ora
Listener Log File /oracle/app/ora10gdb/network/log/dblistener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.16.107.123)(PORT=1650)))
Services Summary...
Service "BOTSDB" has 1 instance(s).
Instance "BOTSDB", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
3) The output of ps -ef |grep pmon is
oracle@linuxserver:~> ps -ef |grep pmon
oracle 12524 12091 0 09:16 pts/1 00:00:00 grep pmon
oracle 12525 1 0 Jul27 ? 00:00:00 ora_pmon_metarep
oracle 25776 1 0 Jul27 ? 00:00:00 ora_pmon_BOTSDB
The contents of listener.ora in two different Oracle Homes (one for AS infrastrcuture and another one for database) are as follows:
oracle@linuxserver:/oracle/app/ora10ginfra/network/admin> vi listener.ora
# listener.ora Network Configuration File: /oracle/app/ora10ginfra/network/admin/listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /oracle/app/ora10ginfra)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = linuxserv.dcdm.mu)(PORT = 1521))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
oracle@linuxserver:/oracle/app/ora10gdb/network/admin> vi listener.ora
# Generated by Oracle configuration tools.
SID_LIST_DBLISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /oracle/app/ora10gdb/)
(PROGRAM = extproc)
(SID_DESC =
(SID_NAME = BOTSDB)
(ORACLE_HOME = /oracle/app/ora10gdb/)
DBLISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.107.123)(PORT = 1650))
Kind regards,
Aparna -
Hi,everyone,
I had installed R Enterprise in my Oracle 11.2.0.1 base on win7,using the R 2.13.2, ORE 1.1, I can using the part function: like
library(ORE)
options(STERM='iESS', str.dendrogram.last="'", editor='emacsclient.exe', show.error.locations=TRUE)
> ore.connect(user = "RQUSER",password = "RQUSERpsw",conn_string = "", all = TRUE)
> ore.is.connected()
[1] TRUE
> ore.ls()
[1] "IRIS_TABLE"
> demo(package = "ORE")
Demos in package 'ORE':
aggregate Aggregation
analysis Basic analysis & data processing operations
basic Basic connectivity to database
binning Binning logic
columnfns Column functions
cor Correlation matrix
crosstab Frequency cross tabulations
derived Handling of derived columns
distributions Distribution, density, and quantile functions
do_eval Embedded R processing
freqanalysis Frequency cross tabulations
graphics Demonstrates visual analysis
group_apply Embedded R processing by group
hypothesis Hyphothesis testing functions
matrix Matrix related operations
nulls Handling of NULL in SQL vs. NA in R
push_pull RDBMS <-> R data transfer
rank Attributed-based ranking of observations
reg Ordinary least squares linear regression
row_apply Embedded R processing by row chunks
sql_like Mapping of R to SQL commands
stepwise Stepwise OLS linear regression
summary Summary functionality
table_apply Embedded R processing of entire table
> demo("aggregate",package = "ORE")
demo(aggregate)
---- ~~~~~~~~~
Type <Return> to start : Return
> #
> # O R A C L E R E N T E R P R I S E S A M P L E L I B R A R Y
> #
> # Name: aggregate.R
> # Description: Demonstrates aggregations
> # See also summary.R
> #
> #
> #
>
> ## Set page width
> options(width = 80)
> # List all accessible tables and views in the Oracle database
> ore.ls()
[1] "IRIS_TABLE"
> # Create a new table called IRIS_TABLE in the Oracle database
> # using the built-in iris data.frame
>
> # First remove previously created IRIS_TABLE objects from the
> # global environment and the database
> if (exists("IRIS_TABLE", globalenv(), inherits = FALSE))
+ rm("IRIS_TABLE", envir = globalenv())
> ore.drop(table = "IRIS_TABLE")
> # Create the table
> ore.create(iris, table = "IRIS_TABLE")
> # Show the updated list of accessible table and views
> ore.ls()
[1] "IRIS_TABLE"
> # Display the class of IRIS_TABLE and where it can be found in
> # the search path
> class(IRIS_TABLE)
[1] "ore.frame"
attr(,"package")
[1] "OREbase"
> search()
[1] ".GlobalEnv" "ore:RQUSER" "ESSR"
[4] "package:ORE" "package:ORExml" "package:OREeda"
[7] "package:OREgraphics" "package:OREstats" "package:MASS"
[10] "package:OREbase" "package:ROracle" "package:DBI"
[13] "package:stats" "package:graphics" "package:grDevices"
[16] "package:utils" "package:datasets" "package:methods"
[19] "Autoloads" "package:base"
> find("IRIS_TABLE")
[1] "ore:RQUSER"
> # Select count(Petal.Length) group by species
> x = aggregate(IRIS_TABLE$Petal.Length,
+ by = list(species = IRIS_TABLE$Species),
+ FUN = length)
> class(x)
[1] "ore.frame"
attr(,"package")
[1] "OREbase"
> x
species x
1 setosa 50
2 versicolor 50
3 virginica 50
> # Repeat FUN = summary, mean, min, max, sd, median, IQR
> aggregate(IRIS_TABLE$Petal.Length, by = list(species = IRIS_TABLE$Species),
+ FUN = summary)
species Min. 1st Qu. Median Mean 3rd Qu. Max. NA's
1 setosa 1.0 1.4 1.50 1.462 1.575 1.9 0
2 versicolor 3.0 4.0 4.35 4.260 4.600 5.1 0
3 virginica 4.5 5.1 5.55 5.552 5.875 6.9 0
> aggregate(IRIS_TABLE$Petal.Length, by = list(species = IRIS_TABLE$Species),
+ FUN = mean)
species x
1 setosa 1.462
2 versicolor 4.260
3 virginica 5.552
> aggregate(IRIS_TABLE$Petal.Length, by = list(species = IRIS_TABLE$Species),
+ FUN = min)
species x
1 setosa 1.0
2 versicolor 3.0
3 virginica 4.5
> aggregate(IRIS_TABLE$Petal.Length, by = list(species = IRIS_TABLE$Species),
+ FUN = max)
species x
1 setosa 1.9
2 versicolor 5.1
3 virginica 6.9
> aggregate(IRIS_TABLE$Petal.Length, by = list(species = IRIS_TABLE$Species),
+ FUN = sd)
species x
1 setosa 0.1736640
2 versicolor 0.4699110
3 virginica 0.5518947
> aggregate(IRIS_TABLE$Petal.Length, by = list(species = IRIS_TABLE$Species),
+ FUN = median)
species x
1 setosa 1.50
2 versicolor 4.35
3 virginica 5.55
> aggregate(IRIS_TABLE$Petal.Length, by = list(species = IRIS_TABLE$Species),
+ FUN = IQR)
species x
1 setosa 0.175
2 versicolor 0.600
3 virginica 0.775
> # More than one grouping column
> x = aggregate(IRIS_TABLE$Petal.Length,
+ by = list(species = IRIS_TABLE$Species,
+ width = IRIS_TABLE$Petal.Width),
+ FUN = length)
> x
species width x
1 setosa 0.1 5
2 setosa 0.2 29
3 setosa 0.3 7
4 setosa 0.4 7
5 setosa 0.5 1
6 setosa 0.6 1
7 versicolor 1.0 7
8 versicolor 1.1 3
9 versicolor 1.2 5
10 versicolor 1.3 13
11 versicolor 1.4 7
12 virginica 1.4 1
13 versicolor 1.5 10
14 virginica 1.5 2
15 versicolor 1.6 3
16 virginica 1.6 1
17 versicolor 1.7 1
18 virginica 1.7 1
19 versicolor 1.8 1
20 virginica 1.8 11
21 virginica 1.9 5
22 virginica 2.0 6
23 virginica 2.1 6
24 virginica 2.2 3
25 virginica 2.3 8
26 virginica 2.4 3
27 virginica 2.5 3
> # Sort the result by ascending value of count
> ore.sort(data = x, by = "x")
species width x
1 virginica 1.4 1
2 virginica 1.7 1
3 versicolor 1.7 1
4 virginica 1.6 1
5 setosa 0.5 1
6 setosa 0.6 1
7 versicolor 1.8 1
8 virginica 1.5 2
9 versicolor 1.1 3
10 virginica 2.4 3
11 virginica 2.5 3
12 virginica 2.2 3
13 versicolor 1.6 3
14 setosa 0.1 5
15 virginica 1.9 5
16 versicolor 1.2 5
17 virginica 2.0 6
18 virginica 2.1 6
19 setosa 0.3 7
20 versicolor 1.4 7
21 setosa 0.4 7
22 versicolor 1.0 7
23 virginica 2.3 8
24 versicolor 1.5 10
25 virginica 1.8 11
26 versicolor 1.3 13
27 setosa 0.2 29
> # by descending value
> ore.sort(data = x, by = "x", reverse = TRUE)
species width x
1 setosa 0.2 29
2 versicolor 1.3 13
3 virginica 1.8 11
4 versicolor 1.5 10
5 virginica 2.3 8
6 setosa 0.4 7
7 setosa 0.3 7
8 versicolor 1.0 7
9 versicolor 1.4 7
10 virginica 2.1 6
11 virginica 2.0 6
12 virginica 1.9 5
13 versicolor 1.2 5
14 setosa 0.1 5
15 versicolor 1.6 3
16 versicolor 1.1 3
17 virginica 2.4 3
18 virginica 2.5 3
19 virginica 2.2 3
20 virginica 1.5 2
21 virginica 1.6 1
22 virginica 1.4 1
23 setosa 0.6 1
24 setosa 0.5 1
25 versicolor 1.8 1
26 virginica 1.7 1
27 versicolor 1.7 1
> # Preserve just 1 row for duplicate x's
> ore.sort(data = x, by = "x", unique.keys = TRUE)
species width x
1 setosa 0.5 1
2 virginica 1.5 2
3 versicolor 1.1 3
4 setosa 0.1 5
5 virginica 2.0 6
6 setosa 0.3 7
7 virginica 2.3 8
8 versicolor 1.5 10
9 virginica 1.8 11
10 versicolor 1.3 13
11 setosa 0.2 29
> ore.sort(data = x, by = "x", unique.keys = TRUE, unique.data = TRUE)
species width x
1 setosa 0.5 1
2 virginica 1.5 2
3 versicolor 1.1 3
4 setosa 0.1 5
5 virginica 2.0 6
6 setosa 0.3 7
7 virginica 2.3 8
8 versicolor 1.5 10
9 virginica 1.8 11
10 versicolor 1.3 13
11 setosa 0.2 29
but when I use the following The ore.doEval command get the errors,
> ore.doEval(function() { 123 })
Error in .oci.GetQuery(conn, statement, ...) :
ORA-29400: data cartridge error
ORA-24323: ?????
ORA-06512: at "RQSYS.RQEVALIMPL", line 23
ORA-06512: at line 4
and I try to run the demo("row_apply", package="ORE") get the same errors:
demo("row_apply",package = "ORE")
demo(row_apply)
---- ~~~~~~~~~
Type <Return> to start : Return
> #
> # O R A C L E R E N T E R P R I S E S A M P L E L I B R A R Y
> #
> # Name: row_apply.R
> # Description: Execute R code on each row
> #
> #
>
> ## Set page width
> options(width = 80)
> # List all accessible tables and views in the Oracle database
> ore.ls()
[1] "IRIS_TABLE"
> # Create a new table called IRIS_TABLE in the Oracle database
> # using the built-in iris data.frame
>
> # First remove previously created IRIS_TABLE objects from the
> # global environment and the database
> if (exists("IRIS_TABLE", globalenv(), inherits = FALSE))
+ rm("IRIS_TABLE", envir = globalenv())
> ore.drop(table = "IRIS_TABLE")
> # Create the table
> ore.create(iris, table = "IRIS_TABLE")
> # Show the updated list of accessible table and views
> ore.ls()
[1] "IRIS_TABLE"
> # Display the class of IRIS_TABLE and where it can be found in
> # the search path
> class(IRIS_TABLE)
[1] "ore.frame"
attr(,"package")
[1] "OREbase"
> search()
[1] ".GlobalEnv" "ore:RQUSER" "ESSR"
[4] "package:ORE" "package:ORExml" "package:OREeda"
[7] "package:OREgraphics" "package:OREstats" "package:MASS"
[10] "package:OREbase" "package:ROracle" "package:DBI"
[13] "package:stats" "package:graphics" "package:grDevices"
[16] "package:utils" "package:datasets" "package:methods"
[19] "Autoloads" "package:base"
> find("IRIS_TABLE")
[1] "ore:RQUSER"
> # The table should now appear in your R environment automatically
> # since you have access to the table now
> ore.ls()
[1] "IRIS_TABLE"
> # This is a database resident table with just metadata on the R side.
> # You will see this below
> class(IRIS_TABLE)
[1] "ore.frame"
attr(,"package")
[1] "OREbase"
> # Apply given R function to each row
> ore.rowApply(IRIS_TABLE,
+ function(dat) {
+ # Any R code goes here. Operates on one row of IRIS_TABLE at
+ # a time
+ cbind(dat, dat$Petal.Length)
+ })
Error in .oci.GetQuery(conn, statement, ...) :
ORA-29400: data cartridge error
ORA-24323: ?????
ORA-06512: at "RQSYS.RQROWEVALIMPL", line 26
ORA-06512: at line 4
>
whether my oracle's version 11.2.0.1 has no the RDBMS bug fix, and other problems? ThanksOracle R Enterprise 1.1. requires Oracle Database 11.2.0.3, 11.2.0.4. On Linux and Windows. Oracle R Enterprise can also work with an 11.2.0.1 or 11.2.0.2 database if it is properly patched.
Embedded R execution will not work without a patched database. Follow this procedure to patch the database:
1. Go to My Oracle Support:http://support.oracle.com
2. Log in and supply your Customer Support ID (CSI).
3. Choose the Patches & Updates tab.
4. In the Patch Search box, type 11678127
and click Search
5. Select the patch for your version of Oracle Database, 11.2.0.1.
6. Click Download to download the patch.
7. Install the patch using OPatch. Ensure that you are using the latest version of OPatch.
Sherry -
Propogation error - (ora-02019)
Hi All
In our AQ setup the subscriber is a queue on a different db(user = aquser)
I can see all the tables of my subscriber's(aquser) schema in db2
using the dblink(i.e db link is working fine).
select * from [email protected]
But in AQ set up propogation fails. when i queried the dba_queue_schedules table the LAST_ERROR_MSG shows
the error
ORA-02019: connection description for remote database not found.
What could be the cause of this error
Regards
SushantHi All
In our AQ setup the subscriber is a queue on a different db(user = aquser)
I can see all the tables of my subscriber's(aquser) schema in db2
using the dblink(i.e db link is working fine).
select * from [email protected]
But in AQ set up propogation fails. when i queried the dba_queue_schedules table the LAST_ERROR_MSG shows
the error
ORA-02019: connection description for remote database not found.
What could be the cause of this error
Regards
Sushant -
Error ORA-01446:cannot select ROWID - Bug?
Hi
I am getting an error message in SQL Developer 3.0.04.34
Error ORA-01446:cannot select ROWID from view with DISTINCT, GROUP BY, etc.
(you can read the full details at http://www.techonthenet.com/oracle/errors/ora01446.php )
when I create a view containing "DISTINCT" even though it doesn't have a rowid anywhere in the select.
Is this a bug? The view seems to function well enough but sql developer itself seems to be struggling a bit.
I have found accounts of similarish bugs on this site from about 2007 but relating to slightly different sets of circs, but if I am asking an old and obvious question then apologies in advance.
CHi C,
Well, the question may be old (see at least: ORA-01446 error in SQL Developer 3EA4 but I doubt it's obvious.
The simplest cases of create view ... as for the following selects
select distinct deptno from dept;
select deptno, count(*) employees from emp group by deptno;work fine in all the 2.x, 3.x releases in the object viewer data tab. Of course, running a select which includes a rowid on these views from a worksheet will fail as expected.
In such situations a simple, reproducible test case is always nice but, at a minimum, please provide a listing of the broken code and a description of exactly how/where in SQL Developer the error occurs.
Regards,
Gary Graham
SQL Developer Team -
Unable to add external data source in BAM : Error ORA-12505
Hi,
In BAM,
Im trying to add an external data source for creating a data object.
But when i try to test the connection i get the following error:
Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
Source: "java.sql.SQLException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor "
Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
Source: "oracle.net.ns.NetException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor "
As mentioned in another post ((Listener does not currently know of SID given in connection descriptor
i tried
lsnrctl stop.
delete listener.ora
lsnrctl start
lsnrctl reload
But still get the same error;
Im able to access the database with the specified username and password using sqlplus.
Your help will be appreciated.
Regards
Vignesh RamanathanFor #5, not Windows, ConfigMgr 2012 R2. Anything before ConfigMgr 2012 R2 is not supported for the 8.1 ADK.
For the permissions, what accounts are you setting this for. In general, if the share is on the same server, Everyone Full or Read on the Share and System Full or Read on the NTFS should work.
For the error message, it looks like you are trying to import an OS Image and not an OS Install Package. OS images use a WIM file and OS Install Packages use the entire set of source files from the media. For OS images, you must thus explicitly point it
to a specific WIM file.
Jason | http://blog.configmgrftw.com
Maybe you are looking for
-
How can I delete an ODBC data source after 10g client has been uninstalled?
I uninstalled the 10g client and now when I attempt to delete the ODBC data source, I get an error: "The setup routines for the Oracle in Oraclient10g_home2 ODBC driver could not be found. Please reinstall the driver. I re-installed the client and I
-
SCCM 2012 CU2 OSD forest trust: ReleaseRequest failed with error code 0x87d00317
Hello, Actually i have a difficult Problem with my SCCM 2012 R2 CU2 Windows 7 x64 SP1 Tasksequence: I get the folowing error in smsts.log: ::RegQueryValueExW(hSubKey, szReg, NULL, NULL, NULL, &dwSize), HRESULT=80070002 (e:\qfe\nts\sms\framework\tscor
-
Copy and paste in Captivate parallels
I am running Captivate in Windows via Parallels. My Photoshop is installed on the Mac side of my computer. I am having trouble copying backgrounds from Captivate and pasting into Photoshop to edit them. Does anyone know of a work around other than co
-
Want to include the Comments given by Sup[port team in report
Hi , I want to include the comments (solutions comments )given by support team in the report with the transaction crm_dno_monitor .How can i achieve the same .Are these comments already there in the standard report or I have to include it through so
-
Live Migration and Remote Desktop (Terminal Services)
From what I've read about live migration, it seems that network connections are maintained after the migration is complete. If I am migrating a terminal server, will the user sessions be maintained or will they need to reconnect? Eric Logsdon Eric L