ORA-19502 while adding a tablespace
Hello All,
I am using ORACLE 10g R2, on LINUX, red hat 5
When i am trying to add a tablespace through Enterprise manager I am getting the below error:
Failed to commit: ORA-19502: write error on file "/u01/app/oracle/oradata/IMALREF/MDB_O10_DATA", blockno 31488 (blocksize=8192) ORA-27072: File I/O error Linux-x86_64 Error: 2: No such file or directory Additional information: 4 Additional information: 31488 Additional information: 790528
Can i have your suggestion how to solve this error?
Regards,
below is the result:
[oracle@LBLX-RHEL5-DDesign ~]$ id
uid=501(oracle) gid=501(oinstall) groups=501(oinstall),502(dba),503(oper)
[oracle@LBLX-RHEL5-DDesign ~]$ env | sort
CLASSPATH=/u01/app/oracle/product/10.2.0/db_1/JRE:/u01/app/oracle/product/10.2.0/db_1/jlib:/u01/app/oracle/product/10.2.0/db_1/rdbms/jlib
COLORTERM=gnome-terminal
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-Jrdkal32MR,guid=32d3fdef15ec0040a783c0004c7290a9
DESKTOP_SESSION=default
DESKTOP_STARTUP_ID=
DISPLAY=lap-nbeayni.lb.path-solutions.com:1.0
G_BROKEN_FILENAMES=1
GDMSESSION=default
GDM_XSERVER_LOCATION=xdmcp
GNOME_DESKTOP_SESSION_ID=Default
GNOME_KEYRING_SOCKET=/tmp/keyring-w6t17r/socket
GTK_RC_FILES=/etc/gtk/gtkrc:/home/oracle/.gtkrc-1.2-gnome2
HISTSIZE=1000
HOME=/home/oracle
HOSTNAME=LBLX-RHEL5-DDesign
INPUTRC=/etc/inputrc
LANG=en_US.UTF-8
LD_LIBRARY_PATH=/u01/app/oracle/product/10.2.0/db_1/lib:/lib:/usr/lib
LESSOPEN=|/usr/bin/lesspipe.sh %s
LOGNAME=oracle
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
MAIL=/var/spool/mail/oracle
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
ORACLE_SID=IMALREF
ORACLE_TERM=xterm
PATH=/u01/app/oracle/product/10.2.0/db_1/bin:/usr/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin
PWD=/home/oracle
SESSION_MANAGER=local/LBLX-RHEL5-DDesign:/tmp/.ICE-unix/13702
SHELL=/bin/bash
SHLVL=2
SSH_AGENT_PID=13742
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SSH_AUTH_SOCK=/tmp/ssh-ScSlb13702/agent.13702
TERM=xterm
TMPDIR=/tmp
TMP=/tmp
USERNAME=oracle
USER=oracle
_=/usr/bin/env
WINDOWID=46137424
XAUTHORITY=/tmp/.gdmYH4THV
XMODIFIERS=@im=none
[oracle@LBLX-RHEL5-DDesign ~]$ ls -lart /u01/app/oracle/oradata/IMALREF/
total 1051044
drwxrwxrwx 3 oracle oinstall 4096 Aug 23 14:11 ..
-rwxrwxrwx 1 oracle oinstall 20979712 Aug 23 14:14 temp01.dbf
-rwxrwxrwx 1 oracle oinstall 5251072 Aug 23 17:23 users01.dbf
-rwxrwxrwx 1 oracle oinstall 52429312 Aug 23 17:23 redo03.log
-rwxrwxrwx 1 oracle oinstall 52429312 Aug 23 17:23 redo02.log
-rwxrwxrwx 1 oracle oinstall 104865792 Aug 23 17:23 example01.dbf
drwxrwxrwx 2 oracle oinstall 4096 Aug 23 19:14 .
-rwxrwxrwx 1 oracle oinstall 251666432 Aug 23 19:39 sysaux01.dbf
-rwxrwxrwx 1 oracle oinstall 31465472 Aug 23 19:39 undotbs01.dbf
-rwxrwxrwx 1 oracle oinstall 503324672 Aug 23 19:39 system01.dbf
-rwxrwxrwx 1 oracle oinstall 52429312 Aug 23 19:40 redo01.log
-rwxrwxrwx 1 oracle oinstall 7061504 Aug 23 19:40 control03.ctl
-rwxrwxrwx 1 oracle oinstall 7061504 Aug 23 19:40 control02.ctl
-rwxrwxrwx 1 oracle oinstall 7061504 Aug 23 19:40 control01.ctl
[oracle@LBLX-RHEL5-DDesign ~]$ ls -lart /u01/app/oracle/oradata/
total 12
drwxrwxrwx 7 oracle oinstall 4096 Aug 23 14:11 ..
drwxrwxrwx 3 oracle oinstall 4096 Aug 23 14:11 .
drwxrwxrwx 2 oracle oinstall 4096 Aug 23 19:14 IMALREF
[oracle@LBLX-RHEL5-DDesign ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 9.7G 9.0G 246M 98% /
/dev/mapper/VolGroup00-data
82G 184M 78G 1% /data
/dev/mapper/VolGroup00-temp
2.0G 226M 1.7G 12% /tmp
/dev/sda1 494M 17M 452M 4% /boot
tmpfs 1.5G 0 1.5G 0% /dev/shm
/dev/hdc 3.4G 3.4G 0 100% /media/RHEL_5.4 x86_64 DVD
[oracle@LBLX-RHEL5-DDesign ~]$
Similar Messages
-
Error while adding Image: ORA-00001: unique constraint
Dear all,
I have an error while adding images to MDM I can´t explain. I want to add 7231 images. About 6983 run fine. The rest throws this error.
Error: Service 'SRM_MDM_CATALOG', Schema 'SRMMDMCATALOG2_m000', ERROR CODE=1 ||| ORA-00001: unique constraint (SRMMDMCATALOG2_M000.IDATA_6_DATAID) violated
Last CMD: INSERT INTO A2i_Data_6 (PermanentId, DataId, DataGroupId, Description_L3, CodeName, Name_L3) VALUES (:1, :2, :3, :4, :5, :6)
Name=PermanentId; Type=9; Value=1641157; ArraySize=0; NullInd=0;
Name=DataId; Type=5; Value=426458; ArraySize=0; NullInd=0;
Name=DataGroupId; Type=4; Value=9; ArraySize=0; NullInd=0;
Name=Description_L3; Type=2; Value=; ArraySize=0; NullInd=0;
Name=CodeName; Type=2; Value=207603_Img8078_gif; ArraySize=0; NullInd=0;
Name=Name_L3; Type=2; Value=207603_Img8078.gif; ArraySize=0; NullInd=0;
Error: Service 'SRM_MDM_CATALOG', Schema 'SRMMDMCATALOG2_m000', ERROR CODE=1 ||| ORA-00001: unique constraint (SRMMDMCATALOG2_M000.IDATA_6_DATAID) violated
Last CMD: INSERT INTO A2i_Data_6 (PermanentId, DataId, DataGroupId, Description_L3, CodeName, Name_L3) VALUES (:1, :2, :3, :4, :5, :6)
Name=PermanentId; Type=9; Value=1641157; ArraySize=0; NullInd=0;
Name=DataId; Type=5; Value=426458; ArraySize=0; NullInd=0;
Name=DataGroupId; Type=4; Value=9; ArraySize=0; NullInd=0;
Name=Description_L3; Type=2; Value=; ArraySize=0; NullInd=0;
Name=CodeName; Type=2; Value=207603_Img8085_gif; ArraySize=0; NullInd=0;
Name=Name_L3; Type=2; Value=207603_Img8085.gif; ArraySize=0; NullInd=0;
I checked all data. There is no such dataset in the database. Can anybody give me a hint how to avoid this error.
One thing I wonder: The PermanentId is allways the same but I can´t do anything here.
BR
Roman
Edited by: Roman Becker on Jan 13, 2009 12:59 AMHi Ritam,
For such issues, can you please create a new thread or directly email the author rather than dragging back up a very old thread, it is unlikely that the resolution would be the same as the database/application/etc releases would most probably be very different.
For now I will close this thread as unanswered.
SAP SRM Moderators. -
Ora-2270 Error while adding foreign key constraint on top a view
While adding a constraint, referencing a foreign key column from a view raises error. However, it works fine over a table.
Here's the sample script:
create table t_temp (
sample_id number,
text varchar2(40))
alter table t_temp add constraint temp_pk
primary key (sample_id);
create view tempvw as select sample_id,text from t_temp;
create table t_sample (
uniq_id number,
sample_id number,
sample_text varchar(40));
=========
ALTER TABLE t_sample ADD CONSTRAINT FK_sample_temp
FOREIGN KEY (sample_id) REFERENCES t_temp (sample_id);
This works fine.
=========
==============
The following raises ERROR....
ALTER TABLE t_sample ADD CONSTRAINT FK_sample_temp1
FOREIGN KEY (sample_id) REFERENCES tempvw (sample_id);
Error starting at line 1 in command:
ALTER TABLE t_sample ADD CONSTRAINT FK_sample_temp1
FOREIGN KEY (sample_id) REFERENCES tempvw (sample_id)
Error report:
SQL Error: ORA-02270: no matching unique or primary key for this column-list
02270. 00000 - "no matching unique or primary key for this column-list"
*Cause: A REFERENCES clause in a CREATE/ALTER TABLE statement
gives a column-list for which there is no matching unique or primary
key constraint in the referenced table.
*Action: Find the correct column names using the ALL_CONS_COLUMNS
catalog viewWhat exactly are you trying to accomplish by having a
referential integrity constraint on a view (which is
not allowed). PKs and FKs are allowed on views. DISABLE NOVALIDATE is the only allowed state for them. View constraints are used for query rewriting: http://download.oracle.com/docs/cd/B19306_01/server.102/b14223/qradv.htm#sthref1457
Regards,
Dima -
I am getting the following error while adding record into the table CM_RECIPE_ITEM :
<h4> Error </h4>
ORA-20505: Error in DML: p_rowid=626, p_alt_rowid=CRI_ID, p_rowid2=, p_alt_rowid2=. ORA-01410: invalid ROWID ORA-06512: at "COSTMAN.CM_RECIPE_ITEM_T3_AFTER", line 11 ORA-04088: error during execution of trigger 'COSTMAN.CM_RECIPE_ITEM_T3_AFTER'
Error Unable to process row of table CM_RECIPE_ITEM.
Kindly suggest if the problem is because of the Global temporary table or the triggers given below. Also suggest the solution.
Thanking You,
Yogesh
<h4> CM_RECIPE_ITEM Table </h4>
CRI_ID------CRI_CR_ID--------CRI_BOM_CODE--------CRI_CIFG_CODE---------CRI_CIRM_CODE--------CRI_SEQ--------CRI_QTY--------CRI_RM_COST
625----------464-----------------PRODUCT3001----------FG003----------------------10---------------------------1-------------------60-----------------10
626----------464-----------------PRODUCT3001----------FG003----------------------12---------------------------2-------------------40------------------10
<h4>Global temporary table</h4>
DROP TABLE COSTMAN.INTERIM CASCADE CONSTRAINTS;
CREATE GLOBAL TEMPORARY TABLE COSTMAN.INTERIM
ROW_ID ROWID
ON COMMIT PRESERVE ROWS
NOCACHE;
CREATE OR REPLACE TRIGGER COSTMAN."CM_RECIPE_ITEM_T3"
BEFORE INSERT OR UPDATE ON "CM_RECIPE_ITEM" FOR EACH ROW
BEGIN
INSERT INTO interim VALUES (:new.rowid);
END;
<h4>Trigger to update data on CM_RECIPE table </h4>
CREATE OR REPLACE TRIGGER COSTMAN."CM_RECIPE_ITEM_T3_AFTER"
AFTER INSERT OR UPDATE ON "CM_RECIPE_ITEM"
BEGIN
FOR ds IN (SELECT row_id FROM interim) LOOP
UPDATE CM_RECIPE
SET CR_RMC = (
SELECT SUM(CRI_QTY * CRI_RM_COST)/SUM(CR_QUANTITY)
FROM CM_RECIPE_ITEM
WHERE CRI_BOM_CODE = CR_BOM_CODE
AND rowid = ds.row_id
UPDATE CM_RECIPE
SET CR_TOTAL_COST = (
SELECT CIFG_PACKING + CIFG_OVERHEAD +CIFG_OTHERS
FROM CM_ITEM_FG
WHERE CIFG_CODE = CR_CIFG_CODE
AND rowid = ds.row_id
) + CR_RMC;
UPDATE CM_RECIPE
SET CR_GROSS_MARGIN =
(SELECT CIFG_DP_RATE
FROM CM_ITEM_FG
WHERE CIFG_CODE = CR_CIFG_CODE
AND rowid = ds.row_id) - CR_TOTAL_COST) / CR_TOTAL_COST;
END LOOP;
END;
/The scripts of the tables CM_ITEM_FG, CM_RECIPE, CM_RECIPE_ITEM are as follows :
<h4>CM_ITEM_FG</h4>
ALTER TABLE COSTMAN.CM_ITEM_FG
DROP PRIMARY KEY CASCADE;
DROP TABLE COSTMAN.CM_ITEM_FG CASCADE CONSTRAINTS;
CREATE TABLE COSTMAN.CM_ITEM_FG
CIFG_CODE VARCHAR2(13 BYTE) NOT NULL,
CIFG_CCG_ID NUMBER NOT NULL,
CIFG_NAME VARCHAR2(50 BYTE) NOT NULL,
CIFG_PACKING NUMBER NOT NULL,
CIFG_OVERHEAD NUMBER NOT NULL,
CIFG_OTHERS NUMBER NOT NULL,
CIFG_DP_RATE NUMBER NOT NULL,
CIFG_CR_BY VARCHAR2(32 BYTE),
CIFG_CR_ON DATE,
CIFG_UPD_BY VARCHAR2(32 BYTE),
CIFG_UPD_ON DATE
TABLESPACE COST_MANAGER
PCTUSED 0
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
LOGGING
NOCOMPRESS
NOCACHE
NOPARALLEL
MONITORING;
CREATE UNIQUE INDEX COSTMAN.CM_ITEM_FG_PK_001 ON COSTMAN.CM_ITEM_FG
(CIFG_CODE, CIFG_CCG_ID)
LOGGING
TABLESPACE COST_MANAGER
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
NOPARALLEL;
CREATE UNIQUE INDEX COSTMAN.CM_ITEM_FG_UK_001 ON COSTMAN.CM_ITEM_FG
(CIFG_CODE)
LOGGING
TABLESPACE COST_MANAGER
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
NOPARALLEL;
CREATE OR REPLACE TRIGGER COSTMAN."CM_ITEM_FG_T1"
BEFORE UPDATE ON "CM_ITEM_FG"
FOR EACH ROW
BEGIN
BEGIN
UPDATE CM_RECIPE
SET CR_TOTAL_COST = (CR_RMC + :NEW.CIFG_PACKING + :NEW.CIFG_OVERHEAD + :NEW.CIFG_OTHERS);
END;
BEGIN
UPDATE CM_RECIPE
SET CR_GROSS_MARGIN = (:NEW.CIFG_DP_RATE - CR_TOTAL_COST) / CR_TOTAL_COST;
END;
END;
ALTER TABLE COSTMAN.CM_ITEM_FG ADD (
CONSTRAINT CM_ITEM_FG_PK_001
PRIMARY KEY
(CIFG_CODE, CIFG_CCG_ID)
USING INDEX
TABLESPACE COST_MANAGER
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
CONSTRAINT CM_ITEM_FG_UK_001
UNIQUE (CIFG_CODE)
USING INDEX
TABLESPACE COST_MANAGER
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
ALTER TABLE COSTMAN.CM_ITEM_FG ADD (
CONSTRAINT CM_ITEM_FG_FK_001
FOREIGN KEY (CIFG_CCG_ID)
REFERENCES COSTMAN.CM_COST_GROUP (CCG_ID));
<h4>CM_RECIPE</H4>
ALTER TABLE COSTMAN.CM_RECIPE
DROP PRIMARY KEY CASCADE;
DROP TABLE COSTMAN.CM_RECIPE CASCADE CONSTRAINTS;
CREATE TABLE COSTMAN.CM_RECIPE
CR_ID NUMBER NOT NULL,
CR_CCG_ID NUMBER,
CR_EFF_FROM DATE,
CR_CIFG_CODE VARCHAR2(10 BYTE) NOT NULL,
CR_BOM_CODE VARCHAR2(50 BYTE),
CR_QUANTITY NUMBER,
CR_RMC NUMBER,
CR_TOTAL_COST NUMBER,
CR_GROSS_MARGIN NUMBER,
CR_CR_BY VARCHAR2(32 BYTE),
CR_CR_ON DATE,
CR_UPD_BY VARCHAR2(32 BYTE),
CR_UPD_ON DATE
TABLESPACE COST_MANAGER
PCTUSED 0
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
LOGGING
NOCOMPRESS
NOCACHE
NOPARALLEL
MONITORING;
CREATE UNIQUE INDEX COSTMAN.CM_RECIPE_PK_001 ON COSTMAN.CM_RECIPE
(CR_CCG_ID, CR_ID, CR_CIFG_CODE)
LOGGING
TABLESPACE COST_MANAGER
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
NOPARALLEL;
CREATE UNIQUE INDEX COSTMAN.CM_RECIPE_UK_001 ON COSTMAN.CM_RECIPE
(CR_ID)
LOGGING
TABLESPACE COST_MANAGER
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
NOPARALLEL;
CREATE UNIQUE INDEX COSTMAN.CM_RECIPE_UK_002 ON COSTMAN.CM_RECIPE
(CR_BOM_CODE)
LOGGING
TABLESPACE COST_MANAGER
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
NOPARALLEL;
CREATE OR REPLACE TRIGGER COSTMAN."CM_RECIPE_T1"
BEFORE INSERT ON "CM_RECIPE"
FOR EACH ROW
DECLARE
L_ID NUMBER;
BEGIN
IF INSERTING THEN
IF :NEW.CR_ID IS NULL THEN
--SELECT CM_RECIPE_SEQ.NEXTVAL INTO L_ID FROM DUAL;
:NEW.CR_ID := CM_RECIPE_SEQ.NEXTVAL; --L_ID;
END IF;
:NEW.CR_CR_ON := SYSDATE;
:NEW.CR_CR_BY := nvl(v('APP_USER'),USER);
END IF;
IF UPDATING THEN
:NEW.CR_UPD_ON := SYSDATE;
:NEW.CR_UPD_BY := nvl(v('APP_USER'),USER);
END IF;
END;
ALTER TABLE COSTMAN.CM_RECIPE ADD (
CHECK ("CR_EFF_FROM" IS NOT NULL) DISABLE,
CHECK ("CR_CCG_ID" IS NOT NULL) DISABLE,
CHECK ("CR_QUANTITY" IS NOT NULL) DISABLE,
CHECK ("CR_QUANTITY" IS NOT NULL) DISABLE,
CHECK ("CR_QUANTITY" IS NOT NULL) DISABLE,
CHECK ("CR_QUANTITY" IS NOT NULL) DISABLE,
CHECK ("CR_QUANTITY" IS NOT NULL) DISABLE,
CHECK ("CR_QUANTITY" IS NOT NULL) DISABLE,
CONSTRAINT CM_RECIPE_PK_001
PRIMARY KEY
(CR_ID)
USING INDEX
TABLESPACE COST_MANAGER
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
CONSTRAINT CM_RECIPE_UK_002
UNIQUE (CR_BOM_CODE)
USING INDEX
TABLESPACE COST_MANAGER
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
<h4>CM_RECIPE_ITEM</H4>
ALTER TABLE COSTMAN.CM_RECIPE_ITEM
DROP PRIMARY KEY CASCADE;
DROP TABLE COSTMAN.CM_RECIPE_ITEM CASCADE CONSTRAINTS;
CREATE TABLE COSTMAN.CM_RECIPE_ITEM
CRI_ID NUMBER NOT NULL,
CRI_CR_ID NUMBER NOT NULL,
CRI_BOM_CODE VARCHAR2(50 BYTE) NOT NULL,
CRI_CIFG_CODE VARCHAR2(10 BYTE) NOT NULL,
CRI_CIRM_CODE VARCHAR2(10 BYTE) NOT NULL,
CRI_SEQ NUMBER,
CRI_QTY NUMBER,
CRI_RM_COST NUMBER,
CRI_CR_BY VARCHAR2(32 BYTE),
CRI_CR_ON DATE,
CRI_UPD_BY VARCHAR2(32 BYTE),
CRI_UPD_ON DATE
TABLESPACE COST_MANAGER
PCTUSED 0
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
LOGGING
NOCOMPRESS
NOCACHE
NOPARALLEL
MONITORING;
CREATE UNIQUE INDEX COSTMAN.CM_RECIPE_ITEM_PK_001 ON COSTMAN.CM_RECIPE_ITEM
(CRI_ID)
LOGGING
TABLESPACE COST_MANAGER
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
NOPARALLEL;
CREATE OR REPLACE TRIGGER COSTMAN."CM_RECIPE_ITEM_T2"
BEFORE INSERT OR UPDATE ON "CM_RECIPE_ITEM"
FOR EACH ROW
BEGIN
IF :NEW.CRI_CR_ID IS NULL THEN
SELECT CR_ID INTO :NEW.CRI_CR_ID
FROM CM_RECIPE
WHERE CR_BOM_CODE = :NEW.CRI_BOM_CODE;
END IF;
END;
CREATE OR REPLACE TRIGGER COSTMAN."CM_RECIPE_ITEM_T1" BEFORE
INSERT OR UPDATE ON "CM_RECIPE_ITEM" FOR EACH ROW
DECLARE
L_ID NUMBER;
SEQ NUMBER;
BEGIN
IF INSERTING THEN
IF :NEW.CRI_ID IS NULL THEN
SELECT CM_RECIPE_ITEM_SEQ.NEXTVAL
INTO :NEW.CRI_ID
FROM dual;
END IF;
:NEW.CRI_CR_ON := SYSDATE;
:NEW.CRI_CR_BY := NVL(v('APP_USER'),USER);
SELECT (NVL(MAX(CRI_SEQ),0)+1)
INTO SEQ
FROM CM_RECIPE_ITEM
WHERE CRI_BOM_CODE = :NEW.CRI_BOM_CODE;
:NEW.CRI_SEQ := SEQ;
END IF;
IF UPDATING THEN
:NEW.CRI_UPD_ON := SYSDATE;
:NEW.CRI_UPD_BY := NVL(v('APP_USER'),USER);
END IF;
END;
ALTER TABLE COSTMAN.CM_RECIPE_ITEM ADD (
CHECK ("CRI_RM_COST" IS NOT NULL) DISABLE,
CHECK ("CRI_QTY" IS NOT NULL) DISABLE,
CHECK ("CRI_SEQ" IS NOT NULL) DISABLE,
CONSTRAINT CM_RECIPE_ITEM_PK_001
PRIMARY KEY
(CRI_ID)
USING INDEX
TABLESPACE COST_MANAGER
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
ALTER TABLE COSTMAN.CM_RECIPE_ITEM ADD (
CONSTRAINT CM_RECIPE_FK_002
FOREIGN KEY (CRI_CIRM_CODE)
REFERENCES COSTMAN.CM_ITEM_RM (CIRM_CODE),
CONSTRAINT CM_RECIPE_ITEM_FK_001
FOREIGN KEY (CRI_CR_ID)
REFERENCES COSTMAN.CM_RECIPE (CR_ID));
Yogesh -
Error while adding space to the table space
HI Gurus
Can you please put some light on the error which i encountered while adding space to a tablespace
ALTER TABLESPACE "GISR_NDEX" ADD DATAFILE '+DATA2' SIZE 2G;
ALTER TABLESPACE "GISR_INDEX" ADD DATAFILE '+DATA2' SIZE 2G
ERROR at line 1:
ORA-01119: error in creating database file '+DATA2'
ORA-17502: ksfdcre:4 Failed to create file +DATA2
ORA-15041: diskgroup space exhausted
Any suggestion is highly apprciated .
ThanksHello;
The "diskgroup space exhausted" is key.
Try creating smaller files or adding disk space.
ASM Disk Group Unbalanced :
http://surachartopun.com/2010/03/ora-15041-asm-disk-group-unbalanced.html
Best Regards
mseberg -
Error: Internal error (WWC-00006)
An unexpected error has occurred in pages: ORA-06502: PL/SQL: numeric or value error: character to number conversion error (WWC-44847)
Couldn't save attribute Content_Owner. (WWV-03005)
Couldn't save attribute Content_Author. (WWV-03005)
Hi,
I am getting this error while adding portlets to my page group..any suggestions?
Thanks in advanceNo, This is happening with oracle defined portlets. But , I am also not able to add any navigation page as a portlet to any of my page. Is it any database back up issue? as I am testing something in UAT , in dev environment everything is fine.
-
Issue while adding DB resources to the fail safe group
Hi,
we are installaing ERP 6.0 EHP4 , oracle10.2.04 in MSCS
During the step, Adding the oracle Database Resource to the fail safe
group , I am getting the error.
28 13:21:57 ** WARNING : FS-10288: Parameter file C:\oracle\BCP\102\database\init<SID>_OFS.ora is not located on a cluster disk
29 13:21:57 ** WARNING : FS-10404: The database uses a nonclustered disk in one of the system parameters. Value of parameter is C:\ORACLE\<SID>\102\RDBMS\AUDIT
30 13:21:58 ** ERROR : FS-10036: The resource uses disk SAP HDD, which is also used by cluster resource SAP VIP in another group
31 13:21:58 ** ERROR : FS-10778: The Oracle Database resource provider failed to configure the cluster resource <SID>.WORLD
32 13:21:58 ** ERROR : FS-10890: Oracle Services for MSCS failed during the add operation
33 13:21:58 ** ERROR : FS-10497: Starting clusterwide rollback of the operation
34 13:21:58 FS-10488:<primary node name> : Starting rollback of operation
35 13:21:58 > FS-10090: Rolling back Oracle Net changes on node <primary node name>
I am having one local disk C: one shared disk Z: and quorum disk Q:
Shared disk Z: is already used for SAP<sid> group.
Regards
JoelNo crossposting please!
Error while adding oracle database resource to the fail safe group -
I am getting the following error while adding record into the table CM_RECIPE_ITEM :
Error
ORA-20505: Error in DML: p_rowid=626, p_alt_rowid=CRI_ID, p_rowid2=, p_alt_rowid2=. ORA-01410: invalid ROWID ORA-06512: at "COSTMAN.CM_RECIPE_ITEM_T3_AFTER", line 11 ORA-04088: error during execution of trigger 'COSTMAN.CM_RECIPE_ITEM_T3_AFTER'
Error Unable to process row of table CM_RECIPE_ITEM.
Kindly suggest if the problem is because of the Global temporary table or the triggers given below. Also suggest the solution.
Thanking You,
Yogesh
CM_RECIPE_ITEM Table
CRI_ID------CRI_CR_ID--------CRI_BOM_CODE--------CRI_CIFG_CODE---------CRI_CIRM_CODE--------CRI_SEQ--------CRI_QTY--------CRI_RM_COST
625----------464-----------------PRODUCT3001----------FG003----------------------10---------------------------1-------------------60-----------------10
626----------464-----------------PRODUCT3001----------FG003----------------------12---------------------------2-------------------40------------------10
Global temporary table
DROP TABLE COSTMAN.INTERIM CASCADE CONSTRAINTS;
CREATE GLOBAL TEMPORARY TABLE COSTMAN.INTERIM
ROW_ID ROWID
ON COMMIT PRESERVE ROWS
NOCACHE;
CREATE OR REPLACE TRIGGER COSTMAN."CM_RECIPE_ITEM_T3"
BEFORE INSERT OR UPDATE ON "CM_RECIPE_ITEM" FOR EACH ROW
BEGIN
INSERT INTO interim VALUES (:new.rowid);
END;
Trigger to update data on CM_RECIPE table
CREATE OR REPLACE TRIGGER COSTMAN."CM_RECIPE_ITEM_T3_AFTER"
AFTER INSERT OR UPDATE ON "CM_RECIPE_ITEM"
BEGIN
FOR ds IN (SELECT row_id FROM interim) LOOP
UPDATE CM_RECIPE
SET CR_RMC = (
SELECT SUM(CRI_QTY * CRI_RM_COST)/SUM(CR_QUANTITY)
FROM CM_RECIPE_ITEM
WHERE CRI_BOM_CODE = CR_BOM_CODE
AND rowid = ds.row_id
UPDATE CM_RECIPE
SET CR_TOTAL_COST = (
SELECT CIFG_PACKING + CIFG_OVERHEAD +CIFG_OTHERS
FROM CM_ITEM_FG
WHERE CIFG_CODE = CR_CIFG_CODE
AND rowid = ds.row_id
) + CR_RMC;
UPDATE CM_RECIPE
SET CR_GROSS_MARGIN =
(SELECT CIFG_DP_RATE
FROM CM_ITEM_FG
WHERE CIFG_CODE = CR_CIFG_CODE
AND rowid = ds.row_id) - CR_TOTAL_COST) / CR_TOTAL_COST;
END LOOP;
END;
/yogeshyl wrote:
Error
ORA-20505: Error in DML: p_rowid=626, p_alt_rowid=CRI_ID, p_rowid2=, p_alt_rowid2=. ORA-01410: invalid ROWID ORA-06512: at "COSTMAN.CM_RECIPE_ITEM_T3_AFTER", line 11 ORA-04088: error during execution of trigger 'COSTMAN.CM_RECIPE_ITEM_T3_AFTER'
Error Unable to process row of table CM_RECIPE_ITEM.
Kindly suggest if the problem is because of the Global temporary table or the triggers given below. Also suggest the solution.The error message points to the trigger... -
Import error IMP-00017 and ORA-01950 no privileges on tablespace
Hi,
I am trying to do a full import into a 10.2.0.4 database from a 9.2.0.6 export dumpfile. The tablespaces have already been pre-created. I got this error on one tablespace, and I can't figure out why because I was using SYS to do import, how come SYS doesn`t have this privilege. All objects in other tablespaces were created without this problem.
- IMP-00017: following statement failed with ORACLE error 1950:
"CREATE TABLE "FYAERLG" ...
- ORA-01950: no privileges on tablespace 'INFOTABLES'
Please help.
Thanks
-lixidonWho is the owner of "FYAERLG" ?
Try granting the owner of the table, quota on INFOTABLES tablespace.
**Added**
Note [95554.1|https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=95554.1] explains a scenario,which could be the reason for this failure.
Edited by: Bobcatalog on Jan 8, 2009 12:49 PM -
Error while adding attribute to 0material
hello, experts
I've got some errors while adding Z-attribute to 0material as a attribute.
here's a part of the log.
Activate table /BI0/PMATERIAL
Table is not yet classified
/BI0/PMATERIAL: Structure change at field level (DB is adjusted)
Adjust table in DB >>>
sql:
ALTER TABLE "/BI0/PMATERIAL"
ADD ("/BIC/ZMRPTYPE" VARCHAR2 (000002)
DEFAULT ' ' NOT NULL )
ORA-01562: failed to extend rollback segment number
DDL time(___1): .2,144,462 milliseconds
The SQL statement was not executed
Table /BI0/PMATERIAL (Error adjusting the database)
Table /BI0/PMATERIAL was not activated
How could I solve this problem?
Please help.
thx.Hi,
You can also to Tcode:RSRV
Tests in Tran RSRV
->All elementary Test
>Master Data
>Compare Charat Values in SID-,P- andQ- Tables.
Drag that in right panel.
Open that > in right panel and Entry 0MATERIAL.Transfer
Then Execute->Yes in pop-up.
If any problem..click on repair.
Hope this helps....
Regards,
San! -
I'm doing restore and recover of the db using the following command:
RMAN>
run{
set newname for datafile 6 to '/u01/app/oracle/oradata/orcl/tbsad01.dbf';
restore database;
recover database;
I get the following errors during restore command
RMAN-03002: failure of restore command(...)
ORA-19502: write error on file "/u01/app/oracle/oradata/orcl/tbsad01.dbf", block no 6016(blocksize=8192)
ORA-27072: File I/O error
Linux Error: 2: No such file or directory
But the directory exists. It's 10.2 database running on Linux.
Thx,
A.check space at this new mount point '/u01/app/oracle/oradata/orcl/' where you want to restore the file tbsad01.dbf.
moreever restore only concerned tablespace rather alls tablespace i.e
run{
set newname for datafile 1 to
'$HOME/ORADATA/u04/users01.dbf';
restore tablespace users;
switch datafile all;
recover tablespace users;
}Khurram -
Rman : ORA-19502: write error on file "
hi all,
I have a oracle 9.2.0.6, i am taking backup of primary database, my DB is on Sun box and all the datafile are the raw filesystems.......
but while taking backup i am getting an error.....
I have checked across the internet and i got to know that the error occured because of Disk space not sufficient as such the catalog is on win 2003 an oracle home of the catalog db is having 20 Gb of space whereas i am taking backup on H:\ there i am having more than 100gb of space...
please help me to resolve this problem....
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ch1 channel at 05/11/2009 13:00:19
ORA-19502: write error on file "H:\mainbackup\bk_inc0_65_1", blockno 269825 (blo
cksize=8192)
ORA-27063: skgfospo: number of bytes read/written is incorrect
Additional information: 131072
Additional information: 1048576we have more enough space on disks but still getting an error
pls suggest me...
channel ch1: starting piece 1 at 12-MAY-09
released channel: ch1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ch1 channel at 05/12/2009 12:46:07
ORA-19504: failed to create file "G:\mainbackup\bk_inc0_69_1"
ORA-27044: unable to write the header block of file
SVR4 Error: 28: No space left on device
Additional information: 1
{code} -
ORA-604 signalled during: ALTER TABLESPACE...
Oracle 10.2.0.4 EE, Server 2003...
Today I wanted to add new datafile…
First I restart the instance and then used EM to add datafile… After 5 minutes process failed and in AlertSID.ora I get this message:
===========================================================
Mon Feb 08 10:23:04 2010
ALTER TABLESPACE "R1" ADD DATAFILE 'D:\Datafile\R03.DBF' SIZE 15000M AUTOEXTEND ON NEXT 512M MAXSIZE 32767M
Mon Feb 08 10:28:08 2010
ORA-604 signalled during: ALTER TABLESPACE "R1" ADD DATAFILE 'D:\Datafile\R03.DBF' SIZE 15000M AUTOEXTEND ON NEXT 512M MA…
===========================================================
Then I create datafile with command prompt and everything was fine, new datafile was added.
Any Ideas why does this happen?
Thanks!Error message was only:
Mon Feb 08 10:28:08 2010
ORA-604 signalled during: ALTER TABLESPACE "R1" ADD DATAFILE 'D:\Datafile\R03.DBF' SIZE 15000M AUTOEXTEND ON NEXT 512M MAXSIZE 32767M
As I said, I used EM and after 5 minutes EM connection failed. Then I re-connect and EM don’t show me any errors, everything was fine but new datafile was not added. Only I get error message in AlertSID.ora… -
ORA-604 signalled during: create tablespace
Hello,
While creating the my_idx_tablespace tablespace. I am getting ORA-604 error.
=====================================================================
Wed Mar 10 18:16:32 2010
create tablespace my_idx_tablespace
datafile 'E:\Oracle\Database\my_idx.dbf' size 1024m reuse
blocksize 8192
extent management local
segment space management auto
online
Wed Mar 10 18:18:13 2010
ORA-604 signalled during: create tablespace my_idx_tablespace
datafile 'E:\Oracle\Database\my_idx.dbf' size 1024m reuse
blocksize 8192
extent management local
segment space management auto
online...
Wed Mar 10 18:21:31 2010
drop tablespace log1_tablespace including contents and datafiles
ORA-959 signalled during: drop tablespace log1_tablespace including contents and datafile
=====================================================================
Any suggestion ?
OS: Windows 2003 32 bit machine.
Oracle: Oracle 10g enterprise edition 10.2.0.3
Thanks
With Regards
Hemant.Hi,
Thanks for your response.
I will upload the log ASAP.
Can you please let me know some pointer for this error.
Thanks
With Regards
Hemant. -
Error getting while adding BI patch (SQL error 1089 accessing)
Dear Experts ,
here i faced one problem while adding BI patch to newely installed system
the error is at phase import_proper below are shown error log
/usr/sap/trans/log/SAPI-704IFINBICONT.LBD
ERROR LOG
Start import R3TRFUGR/POSDW/CONVERSION_XML ...
1 entry for TADIR updated (R3TRFUGR/POSDW/CONVERSION_XML ).
2 entries from TFTIT deleted (pname /POSDW/SAPLCONVERSION_XML)
7 entries from FUPARAREF deleted (pname /POSDW/SAPLCONVERSION_XML)
2 entries from ENLFDIR deleted (pname /POSDW/SAPLCONVERSION_XML)
2 entries from TFDIR deleted (pname /POSDW/SAPLCONVERSION_XML)
dev trc ,00000 Fri Oct 1 10:28:27 2010 -649694573 88072.488603
dev trc ,00000 OCI-call failed with -1=OCI_ERROR 44 88072.488647
dev trc ,00000 SQL error 1089: 'ORA-01089: immediate shutdown in progress - no operations are permitted'
50 88072.488697
http://dbsloci. ,00000 *** ERROR => Error 1089 in stmt_fetch() from oci_execute_stmt(), orpc=0
59 88072.488756
http://dbsloci. ,00000 *** ERROR => ORA-1089 occurred when executing SQL stmt (parse error offset=0)
50 88072.488806
dev trc ,00000 sc_p=0x110f364a8,no=27,idc_p=0x110f4ece0,con=0,act=1,slen=68,smax=256,#vars=1,stmt=0x111799cc0,table=D010INC
57 88072.488863
dev trc ,00000 SELECT MASTER FROM D010INC WHERE INCLUDE = :A0 ORDER BY MASTER;
47 88072.488910
dev trc ,00000 sc_p=0x110f364a8,no=27,idc_p=0x110f4ece0,con=0,act=1,slen=68,smax=256,#vars=1,stmt=0x111799cc0,table=D010INC
113 88072.489023
dev trc ,00000 prep=0,lit=0,nsql=0,lobret=0,#exec=972,dbcnt=0,upsh_p=(nil),ocistmth_p=0x11179a658
50 88072.489073
dev trc ,00000 IN : cols=1,rmax=1,xcnt=0,rpc=0,rowi=0,rtot=0,upto=4294967295,rsize=80,vmax=32,bound=1,iobuf_p=0x111083a40,v
69 88072.489142
dev trc ,00000 lobs=0,lmax=0,lpcnt=0,larr=(nil),lcurr_p=(nil),rret=0
46 88072.489188
dev trc ,00000 OUT: cols=1,rmax=792,xcnt=792,rpc=0,rowi=0,rtot=0,upto=4294967295,rsize=80,vmax=32,bound=1,iobuf_p=0x111225e
54 88072.489242
dev trc ,00000 lobs=0,lmax=0,lpcnt=0,larr=(nil),lcurr_p=(nil),rret=0
46 88072.489288
dev trc ,00000 SELECT MASTER FROM D010INC WHERE INCLUDE = :A0 ORDER BY MASTER;
46 88072.489334
dbrepo ,06599 ***LOG BY4=>sql error 1089 performing FET on table D010INC dbrepo#4 @ 6599
72 88072.489406
dbrepo ,06599 ***LOG BY0=>ORA-01089: immediate shutdown in progress - no operations are permitted dbrepo#4 @ 6599
50 88072.489456
sap_dext called with msgnr 1:
db call info
function: db_report_interface
fcode: READ_MASTERS
tabname: SOURCE
len (char): 40
key: /POSDW/LCONVERSION_XML$01
retcode: 1
SQL error 1089 accessing : ORA-01089: immediate shutdown in progress - no ope
Main import
End date and time : 20101001102827
Ended with return code: ===> 12 <===
please clarefy me how can i solve this my issue
RegardsDear Smathi,
Based on the error, Error 1089 in stmt_fetch, can you please check this error message with your database
administrator? Please have a look at note #551.
Regards,
Shimon Zafrir
Maybe you are looking for
-
ITUNES WON'T OPEN AND GIVES AN ERROR MESSAGE HELP
my iTunes won't open, and instead pops up a window saying: "The iTunes application could not be opened. An unknown error occured (-200)." Something similar to this is happening with my mac DVD player. When I try to open that, it won't open and says:
-
I go to buy some gems for my dragonvale app an I want the $2 ones but it's wanting to charge me $15, I go to buy some gems for my dragonvale app an I want the $2 ones but it's wanting to charge me $15
-
hi, in my main dialog program, i created a selection screen using statements selection-screen.... i activated it and was able to see that at runtime.. i noticed that the same selection screen was listed in the tree in SE80 under my package under scre
-
Does illustrator CS5 list the images used in a particular document. By this I mean does it tell you the name of the actual images.
-
Error when creating or modifing columns in list
I have a Sharepoint 2013 site in which I have created a new OOB list. If I try to change the name of a column or add a new column, I receive a correlation id error. When I check the logs, this is the error: Unexpected System.ArgumentNullException: